From be9fb33ede7e4e589e58ec1dc0b5ceaa111b2643 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Thu, 6 Jun 2024 16:23:32 -0400 Subject: [PATCH 01/22] padawan - settimeout to keep container alive while user is on page --- app/views/layouts/application.html.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 72ccec40..911ff47d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -35,4 +35,10 @@ // Make the VAPID public key available to the client as a string window.VAPID_PUBLIC_KEY = "<%= ENV['VAPID_PUBLIC_KEY'].delete('=') %>" + From a115e68ac02d6bd1361b0680dcf07120275c7b00 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:59:35 -0400 Subject: [PATCH 02/22] padawan - deploy script --- scripts/deploy.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 44e834e1..8a20c819 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -29,13 +29,11 @@ if [[ "$1" = "google" ]]; then gcloud run deploy sway --project=sway-421916 --region=us-central1 --image=us-central1-docker.pkg.dev/sway-421916/sway/sway:latest --revision-suffix=${1} -elif [[ "$1" = "flyio" ]]; then - +else + # Store an image of Sway in github echo $GITHUB_ACCESS_TOKEN | docker login ghcr.io -u dcordz --password-stdin docker buildx build . -f docker/dockerfiles/production.dockerfile --platform linux/amd64 -t ghcr.io/plebeian-technology/sway:latest --compress --push - # docker buildx build . -f docker/dockerfiles/production.dockerfile --platform linux/amd64 -t sway-prod:latest --compress - fly deploy fi \ No newline at end of file From d152ba2d3a6b0ecb10192eae3569b55651bbc661 Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Sat, 6 Jul 2024 11:48:44 -0400 Subject: [PATCH 03/22] padawan - ignore wireguard --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3a080fe9..bf238bd7 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,6 @@ tf/plans litestream/config/* litestream/dbs/* - +wireguard.conf !**/**/.keep \ No newline at end of file From 5d1ed4251e5d7ed5f74fd229a9e64b6818a62fde Mon Sep 17 00:00:00 2001 From: dcordz <17937472+dcordz@users.noreply.github.com> Date: Sat, 6 Jul 2024 11:50:25 -0400 Subject: [PATCH 04/22] padawan - remove turnstile --- app/frontend/pages/Passkey.tsx | 59 ++-------------------------------- package-lock.json | 10 ------ package.json | 1 - 3 files changed, 3 insertions(+), 67 deletions(-) diff --git a/app/frontend/pages/Passkey.tsx b/app/frontend/pages/Passkey.tsx index 9e3b140d..f3ff3f55 100644 --- a/app/frontend/pages/Passkey.tsx +++ b/app/frontend/pages/Passkey.tsx @@ -3,7 +3,7 @@ import { useDispatch } from "react-redux"; import { sway } from "sway"; import { setUser } from "app/frontend/redux/actions/userActions"; -import { handleError, logDev, notify } from "app/frontend/sway_utils"; +import { logDev, notify } from "app/frontend/sway_utils"; import { PHONE_INPUT_TRANSFORMER, isValidPhoneNumber } from "app/frontend/sway_utils/phone"; import { ErrorMessage, Field, FieldAttributes, Form, Formik, FormikProps } from "formik"; import { Form as BootstrapForm, Button } from "react-bootstrap"; @@ -14,7 +14,6 @@ import { useSendPhoneVerification } from "app/frontend/hooks/authentication/phon import { useWebAuthnAuthentication } from "app/frontend/hooks/authentication/useWebAuthnAuthentication"; import { AxiosError } from "axios"; import { Animate } from "react-simple-animate"; -import Turnstile, { useTurnstile } from "react-turnstile"; import * as yup from "yup"; interface ISigninValues { @@ -42,33 +41,6 @@ const Passkey: React.FC = () => { const dispatch = useDispatch(); - const turnstile = useTurnstile(); - const [turnstileVerified, setTurnstileVerified] = useState(false); - const handleTurnstileVerify = useCallback( - (token: string) => { - fetch("https://turnstile.sway.vote", { - method: "POST", - body: JSON.stringify({ token }), - headers: { - "Content-Type": "application/json", - }, - }) - .then((res) => res.json()) - .then((j) => { - setTurnstileVerified(j.success); - if (!j.success) { - setTurnstileVerified(false); - handleError(new Error(j.message)); - } - }) - .catch((e) => { - console.error(e); - turnstile.reset(); - }); - }, - [turnstile], - ); - const onAuthenticated = useCallback( (user: sway.IUser) => { if (!user) return; @@ -103,8 +75,6 @@ const Passkey: React.FC = () => { const handleSubmit = useCallback( async ({ phone, code }: { phone: string; code?: string }) => { - if (!turnstileVerified) return; - if (code && isConfirmingPhone) { confirmPhoneVerification(phone, code); } else { @@ -136,14 +106,7 @@ const Passkey: React.FC = () => { }); } }, - [ - turnstileVerified, - isConfirmingPhone, - confirmPhoneVerification, - startAuthentication, - verifyAuthentication, - sendPhoneVerification, - ], + [isConfirmingPhone, confirmPhoneVerification, startAuthentication, verifyAuthentication, sendPhoneVerification], ); const handleCancel = useCallback((e: React.MouseEvent) => { @@ -182,17 +145,6 @@ const Passkey: React.FC = () => { - -
- -
{
-
diff --git a/package-lock.json b/package-lock.json index dbff31fe..da81facd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,6 @@ "react-simple-animate": "^3.5.2", "react-social-icons": "^6.16.0", "react-textarea-autosize": "^8.5.3", - "react-turnstile": "^1.1.3", "redux": "^5.0.1", "remark-gfm": "^4.0.0", "use-places-autocomplete": "^4.0.1", @@ -7604,15 +7603,6 @@ "react-dom": ">=16.6.0" } }, - "node_modules/react-turnstile": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/react-turnstile/-/react-turnstile-1.1.3.tgz", - "integrity": "sha512-nWgsnN2IgDSj91BK2iF/9GMVRJK0KPuDDxgnhs4o/7zfIRfyZG/ALWs+JJ8unW84MtFXpcEiPsookkd/FIb4aw==", - "peerDependencies": { - "react": ">= 16.13.1", - "react-dom": ">= 16.13.1" - } - }, "node_modules/redux": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", diff --git a/package.json b/package.json index 0792d828..2b39685b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "react-simple-animate": "^3.5.2", "react-social-icons": "^6.16.0", "react-textarea-autosize": "^8.5.3", - "react-turnstile": "^1.1.3", "redux": "^5.0.1", "remark-gfm": "^4.0.0", "use-places-autocomplete": "^4.0.1", From 0e0e6cd62f9382602c04e5b7ff7b5ea04f4823ef Mon Sep 17 00:00:00 2001 From: Dave Bellawatt <17937472+dcordz@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:54:29 -0400 Subject: [PATCH 05/22] inertia - remove redux and use inertia instead --- .node-version | 2 +- .nvmrc | 2 +- .ruby-version | 1 - Gemfile | 2 +- Gemfile.lock | 278 +-- README.md | 26 +- app/controllers/application_controller.rb | 18 + app/frontend/components/Layout.tsx | 4 +- .../components/bill/BillsListItem.tsx | 4 +- app/frontend/components/hoc/SetupPage.tsx | 35 - .../components/legislator/Legislator.tsx | 1 - app/frontend/components/user/Invite.tsx | 37 +- .../components/user/LocaleSelector.tsx | 21 +- .../components/user/settings/UserSettings.tsx | 1 - app/frontend/entrypoints/application.tsx | 28 +- app/frontend/hooks/useLocales.ts | 76 +- app/frontend/hooks/users/useUser.ts | 11 +- app/frontend/hooks/users/useUserInviteUuid.ts | 13 +- app/frontend/hooks/users/useUserSettings.ts | 17 - app/frontend/index.d.ts | 6 + app/frontend/pages/Bill.tsx | 1 - app/frontend/pages/BillOfTheWeek.tsx | 4 +- app/frontend/pages/BillOfTheWeekCreator.tsx | 3 +- app/frontend/pages/Bills.tsx | 4 +- app/frontend/pages/Influence.tsx | 3 +- app/frontend/pages/Legislators.tsx | 6 +- app/frontend/pages/Passkey.tsx | 27 +- app/frontend/pages/Registration.tsx | 18 +- app/frontend/redux/actions/localeActions.ts | 5 - app/frontend/redux/actions/userActions.ts | 5 - app/frontend/redux/index.ts | 1 - app/frontend/redux/reducers/localeReducer.ts | 26 - app/frontend/redux/reducers/userReducer.ts | 19 - app/frontend/redux/store.ts | 34 - db/schema.rb | 8 - lib/census.rb | 5 +- package-lock.json | 1574 +++++++++-------- package.json | 56 +- vite.config.build.ts | 1 - 39 files changed, 1089 insertions(+), 1294 deletions(-) delete mode 100644 app/frontend/components/hoc/SetupPage.tsx delete mode 100644 app/frontend/hooks/users/useUserSettings.ts delete mode 100644 app/frontend/redux/actions/localeActions.ts delete mode 100644 app/frontend/redux/actions/userActions.ts delete mode 100644 app/frontend/redux/index.ts delete mode 100644 app/frontend/redux/reducers/localeReducer.ts delete mode 100644 app/frontend/redux/reducers/userReducer.ts delete mode 100644 app/frontend/redux/store.ts diff --git a/.node-version b/.node-version index 87834047..016e34ba 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -20.12.2 +v20.17.0 diff --git a/.nvmrc b/.nvmrc index a81debae..016e34ba 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.12.2 +v20.17.0 diff --git a/.ruby-version b/.ruby-version index 47725433..e69de29b 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +0,0 @@ -3.3.2 diff --git a/Gemfile b/Gemfile index cac252a5..4e5e470c 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' -ruby '3.3.2' +ruby '3.3.4' # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem 'rails', '~> 7.1.3', '>= 7.1.3.2' diff --git a/Gemfile.lock b/Gemfile.lock index c007a553..d3b44f05 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,35 +1,35 @@ GEM remote: https://rubygems.org/ specs: - actioncable (7.1.3.3) - actionpack (= 7.1.3.3) - activesupport (= 7.1.3.3) + actioncable (7.1.3.4) + actionpack (= 7.1.3.4) + activesupport (= 7.1.3.4) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.1.3.3) - actionpack (= 7.1.3.3) - activejob (= 7.1.3.3) - activerecord (= 7.1.3.3) - activestorage (= 7.1.3.3) - activesupport (= 7.1.3.3) + actionmailbox (7.1.3.4) + actionpack (= 7.1.3.4) + activejob (= 7.1.3.4) + activerecord (= 7.1.3.4) + activestorage (= 7.1.3.4) + activesupport (= 7.1.3.4) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.1.3.3) - actionpack (= 7.1.3.3) - actionview (= 7.1.3.3) - activejob (= 7.1.3.3) - activesupport (= 7.1.3.3) + actionmailer (7.1.3.4) + actionpack (= 7.1.3.4) + actionview (= 7.1.3.4) + activejob (= 7.1.3.4) + activesupport (= 7.1.3.4) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp rails-dom-testing (~> 2.2) - actionpack (7.1.3.3) - actionview (= 7.1.3.3) - activesupport (= 7.1.3.3) + actionpack (7.1.3.4) + actionview (= 7.1.3.4) + activesupport (= 7.1.3.4) nokogiri (>= 1.8.5) racc rack (>= 2.2.4) @@ -37,35 +37,35 @@ GEM rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - actiontext (7.1.3.3) - actionpack (= 7.1.3.3) - activerecord (= 7.1.3.3) - activestorage (= 7.1.3.3) - activesupport (= 7.1.3.3) + actiontext (7.1.3.4) + actionpack (= 7.1.3.4) + activerecord (= 7.1.3.4) + activestorage (= 7.1.3.4) + activesupport (= 7.1.3.4) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.1.3.3) - activesupport (= 7.1.3.3) + actionview (7.1.3.4) + activesupport (= 7.1.3.4) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (7.1.3.3) - activesupport (= 7.1.3.3) + activejob (7.1.3.4) + activesupport (= 7.1.3.4) globalid (>= 0.3.6) - activemodel (7.1.3.3) - activesupport (= 7.1.3.3) - activerecord (7.1.3.3) - activemodel (= 7.1.3.3) - activesupport (= 7.1.3.3) + activemodel (7.1.3.4) + activesupport (= 7.1.3.4) + activerecord (7.1.3.4) + activemodel (= 7.1.3.4) + activesupport (= 7.1.3.4) timeout (>= 0.4.0) - activestorage (7.1.3.3) - actionpack (= 7.1.3.3) - activejob (= 7.1.3.3) - activerecord (= 7.1.3.3) - activesupport (= 7.1.3.3) + activestorage (7.1.3.4) + actionpack (= 7.1.3.4) + activejob (= 7.1.3.4) + activerecord (= 7.1.3.4) + activesupport (= 7.1.3.4) marcel (~> 1.0) - activesupport (7.1.3.3) + activesupport (7.1.3.4) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -75,8 +75,8 @@ GEM minitest (>= 5.1) mutex_m tzinfo (~> 2.0) - addressable (2.8.6) - public_suffix (>= 2.0.2, < 6.0) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) android_key_attestation (0.3.0) annotate (3.2.0) activerecord (>= 3.2, < 8.0) @@ -93,9 +93,9 @@ GEM bindex (0.8.1) binding_of_caller (1.0.1) debug_inspector (>= 1.2.0) - bootsnap (1.18.3) + bootsnap (1.18.4) msgpack (~> 1.2) - builder (3.2.4) + builder (3.3.0) capybara (3.40.0) addressable matrix @@ -107,9 +107,9 @@ GEM xpath (~> 3.2) cbor (0.5.9.8) coderay (1.1.3) - concurrent-ruby (1.2.3) + concurrent-ruby (1.3.4) connection_pool (2.4.1) - cose (1.3.0) + cose (1.3.1) cbor (~> 0.5.9) openssl-signature_algorithm (~> 1.0) crass (1.0.6) @@ -125,49 +125,55 @@ GEM rake (>= 12.0.0, < 14.0.0) dotenv (3.1.2) drb (2.2.1) - dry-cli (1.0.0) - erubi (1.12.0) + dry-cli (1.1.0) + erubi (1.13.0) factory_bot (6.4.6) activesupport (>= 5.0.0) factory_bot_rails (6.4.3) factory_bot (~> 6.4) railties (>= 5.0.0) - faker (3.3.1) + faker (3.4.2) i18n (>= 1.8.11, < 2) - faraday (2.9.0) + faraday (2.10.1) faraday-net_http (>= 2.0, < 3.2) - faraday-net_http (3.1.0) + logger + faraday-net_http (3.1.1) net-http - ffi (1.16.3) + ffi (1.17.0-aarch64-linux-gnu) + ffi (1.17.0-aarch64-linux-musl) + ffi (1.17.0-arm64-darwin) + ffi (1.17.0-x86_64-darwin) + ffi (1.17.0-x86_64-linux-gnu) + ffi (1.17.0-x86_64-linux-musl) geocoder (1.8.3) base64 (>= 0.1.0) csv (>= 3.0.0) globalid (1.2.1) activesupport (>= 6.1) - google-apis-core (0.15.0) + google-apis-core (0.15.1) addressable (~> 2.5, >= 2.5.1) googleauth (~> 1.9) - httpclient (>= 2.8.1, < 3.a) + httpclient (>= 2.8.3, < 3.a) mini_mime (~> 1.0) + mutex_m representable (~> 3.0) retriable (>= 2.0, < 4.a) - rexml - google-apis-iamcredentials_v1 (0.20.0) - google-apis-core (>= 0.14.0, < 2.a) - google-apis-storage_v1 (0.38.0) + google-apis-iamcredentials_v1 (0.21.0) + google-apis-core (>= 0.15.0, < 2.a) + google-apis-storage_v1 (0.43.0) google-apis-core (>= 0.15.0, < 2.a) - google-cloud-core (1.7.0) + google-cloud-core (1.7.1) google-cloud-env (>= 1.0, < 3.a) google-cloud-errors (~> 1.0) google-cloud-env (2.1.1) faraday (>= 1.0, < 3.a) google-cloud-errors (1.4.0) - google-cloud-storage (1.51.0) + google-cloud-storage (1.52.0) addressable (~> 2.8) digest-crc (~> 0.4) google-apis-core (~> 0.13) google-apis-iamcredentials_v1 (~> 0.18) - google-apis-storage_v1 (~> 0.37) + google-apis-storage_v1 (~> 0.38) google-cloud-core (~> 1.6) googleauth (~> 1.9) mini_mime (~> 1.0) @@ -185,22 +191,23 @@ GEM httpclient (2.8.3) i18n (1.14.5) concurrent-ruby (~> 1.0) - inertia_rails (3.1.4) + inertia_rails (3.2.0) railties (>= 5) io-console (0.7.2) - irb (1.13.1) + irb (1.14.0) rdoc (>= 4.0.0) reline (>= 0.4.2) jbuilder (2.12.0) actionview (>= 5.0.0) activesupport (>= 5.0.0) json (2.7.2) - jwt (2.8.1) + jwt (2.8.2) base64 language_server-protocol (3.17.0.3) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) + logger (1.6.0) loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -213,14 +220,14 @@ GEM matrix (0.4.2) method_source (1.1.0) mini_mime (1.1.5) - mini_portile2 (2.8.6) - minitest (5.23.1) + mini_portile2 (2.8.7) + minitest (5.25.1) msgpack (1.7.2) multi_json (1.15.0) mutex_m (0.2.0) net-http (0.4.1) uri - net-imap (0.4.11) + net-imap (0.4.14) date net-protocol net-pop (0.1.2) @@ -231,33 +238,33 @@ GEM net-protocol netrc (0.11.0) nio4r (2.7.3) - nokogiri (1.16.5-aarch64-linux) + nokogiri (1.16.7-aarch64-linux) racc (~> 1.4) - nokogiri (1.16.5-arm64-darwin) + nokogiri (1.16.7-arm64-darwin) racc (~> 1.4) - nokogiri (1.16.5-x86_64-darwin) + nokogiri (1.16.7-x86_64-darwin) racc (~> 1.4) - nokogiri (1.16.5-x86_64-linux) + nokogiri (1.16.7-x86_64-linux) racc (~> 1.4) openssl (3.2.0) openssl-signature_algorithm (1.3.0) openssl (> 2.0) os (1.1.4) - parallel (1.24.0) - parser (3.3.1.0) + parallel (1.26.3) + parser (3.3.4.2) ast (~> 2.4.1) racc - prism (0.29.0) + prism (0.30.0) pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) psych (5.1.2) stringio - public_suffix (5.0.5) + public_suffix (6.0.1) puma (6.4.2) nio4r (~> 2.0) - racc (1.8.0) - rack (3.0.11) + racc (1.8.1) + rack (3.1.7) rack-proxy (0.7.7) rack rack-session (2.0.0) @@ -267,20 +274,20 @@ GEM rackup (2.1.0) rack (>= 3) webrick (~> 1.8) - rails (7.1.3.3) - actioncable (= 7.1.3.3) - actionmailbox (= 7.1.3.3) - actionmailer (= 7.1.3.3) - actionpack (= 7.1.3.3) - actiontext (= 7.1.3.3) - actionview (= 7.1.3.3) - activejob (= 7.1.3.3) - activemodel (= 7.1.3.3) - activerecord (= 7.1.3.3) - activestorage (= 7.1.3.3) - activesupport (= 7.1.3.3) + rails (7.1.3.4) + actioncable (= 7.1.3.4) + actionmailbox (= 7.1.3.4) + actionmailer (= 7.1.3.4) + actionpack (= 7.1.3.4) + actiontext (= 7.1.3.4) + actionview (= 7.1.3.4) + activejob (= 7.1.3.4) + activemodel (= 7.1.3.4) + activerecord (= 7.1.3.4) + activestorage (= 7.1.3.4) + activesupport (= 7.1.3.4) bundler (>= 1.15.0) - railties (= 7.1.3.3) + railties (= 7.1.3.4) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -292,9 +299,9 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (7.1.3.3) - actionpack (= 7.1.3.3) - activesupport (= 7.1.3.3) + railties (7.1.3.4) + actionpack (= 7.1.3.4) + activesupport (= 7.1.3.4) irb rackup (>= 1.0.0) rake (>= 12.2) @@ -305,38 +312,39 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rbi (0.1.13) + rbi (0.1.14) prism (>= 0.18.0, < 1.0.0) sorbet-runtime (>= 0.5.9204) - rdoc (6.6.3.1) + rdoc (6.7.0) psych (>= 4.0.0) - redis (5.2.0) + redis (5.3.0) redis-client (>= 0.22.0) redis-client (0.22.2) connection_pool regexp_parser (2.9.2) - reline (0.5.7) + reline (0.5.9) io-console (~> 0.5) representable (3.2.0) declarative (< 0.1.0) trailblazer-option (>= 0.1.1, < 0.2.0) uber (< 0.2.0) retriable (3.1.2) - rexml (3.2.8) - strscan (>= 3.0.9) + rexml (3.3.6) + strscan rgeo (3.0.1) - rgeo-geojson (2.1.1) + rgeo-geojson (2.2.0) + multi_json (~> 1.15) rgeo (>= 1.0.0) - rouge (4.2.1) + rouge (4.3.0) rspec-core (3.13.0) rspec-support (~> 3.13.0) - rspec-expectations (3.13.0) + rspec-expectations (3.13.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-mocks (3.13.1) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-rails (6.1.2) + rspec-rails (6.1.4) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) @@ -347,18 +355,18 @@ GEM rspec-sorbet (1.9.2) sorbet-runtime rspec-support (3.13.1) - rubocop (1.63.5) + rubocop (1.65.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) + regexp_parser (>= 2.4, < 3.0) rexml (>= 3.2.5, < 4.0) rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.31.3) + rubocop-ast (1.32.1) parser (>= 3.3.1.0) ruby-progressbar (1.13.0) rubyzip (2.3.2) @@ -366,8 +374,9 @@ GEM jwt (~> 2.0) scout_apm (5.3.8) parser - selenium-webdriver (4.21.1) + selenium-webdriver (4.23.0) base64 (~> 0.2) + logger (~> 1.4) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) @@ -378,48 +387,48 @@ GEM faraday (>= 0.17.5, < 3.a) jwt (>= 1.5, < 3.0) multi_json (~> 1.10) - sorbet (0.5.11386) - sorbet-static (= 0.5.11386) - sorbet-runtime (0.5.11386) - sorbet-static (0.5.11386-aarch64-linux) - sorbet-static (0.5.11386-universal-darwin) - sorbet-static (0.5.11386-x86_64-linux) - sorbet-static-and-runtime (0.5.11386) - sorbet (= 0.5.11386) - sorbet-runtime (= 0.5.11386) - spoom (1.3.2) + sorbet (0.5.11535) + sorbet-static (= 0.5.11535) + sorbet-runtime (0.5.11535) + sorbet-static (0.5.11535-aarch64-linux) + sorbet-static (0.5.11535-universal-darwin) + sorbet-static (0.5.11535-x86_64-linux) + sorbet-static-and-runtime (0.5.11535) + sorbet (= 0.5.11535) + sorbet-runtime (= 0.5.11535) + spoom (1.4.2) erubi (>= 1.10.0) - prism (>= 0.19.0) + prism (>= 0.28.0) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) sprockets (4.2.1) concurrent-ruby (~> 1.0) rack (>= 2.2.4, < 4) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) + sprockets-rails (3.5.2) + actionpack (>= 6.1) + activesupport (>= 6.1) sprockets (>= 3.0.0) sqlite3 (1.7.3) mini_portile2 (~> 2.8.0) - stringio (3.1.0) + stringio (3.1.1) strscan (3.1.0) - tapioca (0.14.2) + tapioca (0.16.1) bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) - rbi (>= 0.1.4, < 0.2) + rbi (>= 0.1.14, < 0.2) sorbet-static-and-runtime (>= 0.5.11087) spoom (>= 1.2.0) thor (>= 1.2.0) yard-sorbet thor (1.3.1) timeout (0.4.1) - tpm-key_attestation (0.12.0) + tpm-key_attestation (0.12.1) bindata (~> 2.4) openssl (> 2.0) openssl-signature_algorithm (~> 1.0) trailblazer-option (0.1.2) - twilio-ruby (7.0.2) + twilio-ruby (7.2.3) faraday (>= 0.9, < 3.0) jwt (>= 1.5, < 3.0) nokogiri (>= 1.6, < 2.0) @@ -431,7 +440,7 @@ GEM vite_rails (3.0.17) railties (>= 5.1, < 8) vite_ruby (~> 3.0, >= 3.2.2) - vite_ruby (3.5.0) + vite_ruby (3.8.0) dry-cli (>= 0.7, < 2) rack-proxy (~> 0.6, >= 0.6.1) zeitwerk (~> 2.2) @@ -455,23 +464,28 @@ GEM safety_net_attestation (~> 0.4.0) tpm-key_attestation (~> 0.12.0) webrick (1.8.1) - websocket (1.2.10) + websocket (1.2.11) websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) yard (0.9.36) - yard-sorbet (0.8.1) - sorbet-runtime (>= 0.5) - yard (>= 0.9) - zeitwerk (2.6.14) + yard-sorbet (0.9.0) + sorbet-runtime + yard + zeitwerk (2.6.17) PLATFORMS aarch64-linux - arm64-darwin + aarch64-linux-gnu + aarch64-linux-musl + arm64-darwin-23 + universal-darwin x86_64-darwin x86_64-linux + x86_64-linux-gnu + x86_64-linux-musl DEPENDENCIES annotate @@ -516,7 +530,7 @@ DEPENDENCIES webauthn RUBY VERSION - ruby 3.3.2p78 + ruby 3.3.4p94 BUNDLED WITH - 2.5.9 + 2.5.15 diff --git a/README.md b/README.md index 0e0b4c82..2abf5f16 100644 --- a/README.md +++ b/README.md @@ -120,14 +120,11 @@ To create this key: 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 + + - a website restriction to localhost + - The "Maps JavaScript API" selected + - The "Places API" selected + - The "Geocoding API" selected #### Create VAPID keys and set values for the keys below: @@ -150,11 +147,11 @@ Copy the full key, including the `=` at the end into each environment variable a 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://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://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) +- [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) #### Add your phone number as an Admin phone number by setting the below key in the same format: @@ -177,9 +174,10 @@ Just a reminder that this is only used for development. #### Create SSL Certificates ```zsh -brew install mkcert +brew install mkcert nss mkcert -install mkcert localhost +mkdir -p config/ssl mv localhost.pem config/ssl/cert.pem mv localhost-key.pem config/ssl/key.pem ``` @@ -187,6 +185,7 @@ mv localhost-key.pem config/ssl/key.pem 1. In one terminal window/tab/pane: #### Set up Rails + ```zsh bundle install bundle exec rails db:create @@ -198,6 +197,7 @@ 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' ``` @@ -205,11 +205,13 @@ bin/rails server -b 'ssl://localhost:3000?key=config/ssl/key.pem&cert=config/ssl 2. In a second terminal window/tab/pane: #### Setup React with Vite + ```zsh npm install ``` #### Run React with Vite + ```zsh ./bin/vite dev ``` diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f91cfd59..3a47b34c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -6,6 +6,7 @@ class ApplicationController < ActionController::Base include SwayProps before_action :redirect_if_no_current_user + before_action :set_sway_locale_id_in_session T::Configuration.inline_type_error_handler = lambda do |error, _opts| Rails.logger.error error @@ -180,6 +181,17 @@ def sign_in(user) session[:sway_locale_id] ||= user.default_sway_locale&.id end + inertia_share do + { + user: current_user, + swayLocale: current_sway_locale, + swayLocales: current_user&.sway_locales&.map { |s| s.to_builder(current_user).attributes! } || [], + params: { + sway_locale_id: params[:sway_locale_id] + } + } + end + sig { void } def sign_out reset_session @@ -218,4 +230,10 @@ def redirect_if_no_current_user def verify_is_admin redirect_to root_path unless current_user&.is_admin? end + + def set_sway_locale_id_in_session + if params[:sway_locale_id].present? + session[:sway_locale_id] = params[:sway_locale_id].to_i + end + end end diff --git a/app/frontend/components/Layout.tsx b/app/frontend/components/Layout.tsx index af74fd31..1a2b20dd 100644 --- a/app/frontend/components/Layout.tsx +++ b/app/frontend/components/Layout.tsx @@ -1,11 +1,9 @@ import Footer from "app/frontend/components/Footer"; import AppDrawer from "app/frontend/components/drawer/AppDrawer"; -import SetupPage from "app/frontend/components/hoc/SetupPage"; import React, { PropsWithChildren } from "react"; // Load react-select // @ts-expect-error - unused Select, importing here to have styles available -import Select from "react-select"; // eslint-disable-line import { Animate } from "react-simple-animate"; interface IProps extends PropsWithChildren { @@ -25,7 +23,7 @@ const _Layout: React.FC = ({ children, ...props }) => ( ); // SetupPage sends locale + user to redux store -const Layout = SetupPage(_Layout); +const Layout = _Layout; const LayoutWithPage = (page: React.JSX.Element) => {page}; diff --git a/app/frontend/components/bill/BillsListItem.tsx b/app/frontend/components/bill/BillsListItem.tsx index b40f020a..ef9a9d25 100644 --- a/app/frontend/components/bill/BillsListItem.tsx +++ b/app/frontend/components/bill/BillsListItem.tsx @@ -1,6 +1,6 @@ /** @format */ import { IS_MOBILE_PHONE, ROUTES } from "app/frontend/sway_constants"; -import { logDev, titleize } from "app/frontend/sway_utils"; +import { titleize } from "app/frontend/sway_utils"; import { lazy, useCallback } from "react"; import { Button } from "react-bootstrap"; @@ -27,8 +27,6 @@ interface IProps { const BillsListItem: React.FC = ({ bill, userVote, isLastItem }) => { const [locale] = useLocale(); - logDev("BIIDISGDHGS", bill); - const { category, externalId, title } = bill; const handleGoToSingleBill = useCallback(() => { diff --git a/app/frontend/components/hoc/SetupPage.tsx b/app/frontend/components/hoc/SetupPage.tsx deleted file mode 100644 index 8b384e5a..00000000 --- a/app/frontend/components/hoc/SetupPage.tsx +++ /dev/null @@ -1,35 +0,0 @@ -// NOSONAR - -import { setSwayLocale } from "app/frontend/redux/actions/localeActions"; -import { setUser } from "app/frontend/redux/actions/userActions"; -import { useEffect } from "react"; -import { useDispatch } from "react-redux"; -import { sway } from "sway"; - -interface IBaseProps { - swayLocale: sway.ISwayLocale; - user: sway.IUser; -} - -interface IProps extends IBaseProps { - [key: string]: any; -} - -const SetupPage = - (Component: React.FC): React.FC => - (props): React.ReactNode => { - // eslint-disable-next-line - const dispatch = useDispatch(); // NOSONAR - - // eslint-disable-next-line - useEffect(() => { - // NOSONAR - dispatch(setUser(props.user)); - dispatch(setSwayLocale(props.swayLocale)); - // dispatch(setSwayLocales([props.swayLocale])); - }, [dispatch, props.swayLocale, props.user]); - - return ; - }; - -export default SetupPage; diff --git a/app/frontend/components/legislator/Legislator.tsx b/app/frontend/components/legislator/Legislator.tsx index b2d03dd8..018aef0a 100644 --- a/app/frontend/components/legislator/Legislator.tsx +++ b/app/frontend/components/legislator/Legislator.tsx @@ -12,6 +12,5 @@ const _Legislator: React.FC = ({ legislator }) => { return ; }; -// const Legislator = SetupPage(_Legislator) const Legislator = _Legislator; export default Legislator; diff --git a/app/frontend/components/user/Invite.tsx b/app/frontend/components/user/Invite.tsx index 41cacd6e..57c5c3f1 100644 --- a/app/frontend/components/user/Invite.tsx +++ b/app/frontend/components/user/Invite.tsx @@ -1,37 +1,30 @@ /** @format */ import { logDev } from "app/frontend/sway_utils"; -import { useCallback, useEffect } from "react"; -import { useDispatch } from "react-redux"; -import { useUserInviteUuid } from "../../hooks/users/useUserInviteUuid"; -import { setInviteUid } from "../../redux/actions/userActions"; -import { localSet, SWAY_STORAGE } from "../../sway_utils"; -import FullScreenLoading from "../dialogs/FullScreenLoading"; const Invite: React.FC = () => { - const dispatch = useDispatch(); - const inviterReduxUid = useUserInviteUuid(); + // const inviterReduxUid = useUserInviteUuid(); const inviterUrlUids = (window.location.pathname || "").split("/"); const inviterUrlUid = inviterUrlUids[inviterUrlUids.length - 1]; logDev("handling new user redeeming invite, sender uid -", inviterUrlUid); - const dispatchUid = useCallback( - (_uid: string) => { - dispatch(setInviteUid(_uid)); - }, - [dispatch], - ); + // const dispatchUid = useCallback( + // (_uid: string) => { + // dispatch(setInviteUid(_uid)); + // }, + // [dispatch], + // ); - useEffect(() => { - if (inviterReduxUid) return; - localSet(SWAY_STORAGE.Local.User.InvitedBy, inviterUrlUid); - dispatchUid(inviterUrlUid); - }, [inviterUrlUid, inviterReduxUid, dispatchUid]); + // useEffect(() => { + // if (inviterReduxUid) return; + // localSet(SWAY_STORAGE.Local.User.InvitedBy, inviterUrlUid); + // dispatchUid(inviterUrlUid); + // }, [inviterUrlUid, inviterReduxUid, dispatchUid]); - if (!inviterReduxUid) { - return ; - } + // if (!inviterReduxUid) { + // return ; + // } return null; }; export default Invite; diff --git a/app/frontend/components/user/LocaleSelector.tsx b/app/frontend/components/user/LocaleSelector.tsx index 19125f8e..2cd8e8e3 100644 --- a/app/frontend/components/user/LocaleSelector.tsx +++ b/app/frontend/components/user/LocaleSelector.tsx @@ -1,4 +1,3 @@ -import SwaySpinner from "app/frontend/components/SwaySpinner"; import { toFormattedLocaleName } from "app/frontend/sway_utils"; import { isEmpty } from "lodash"; import { useCallback, useMemo } from "react"; @@ -10,14 +9,13 @@ import { REACT_SELECT_STYLES } from "../../sway_utils"; interface IProps { containerStyle?: React.CSSProperties; - callback?: () => void; } const toSelectOption = (l: sway.ISwayLocale): ISelectOption => ({ label: toFormattedLocaleName(l.name), value: l.id }); -const LocaleSelector: React.FC = ({ callback }) => { - const { options, isLoading: isLoadingLocales } = useLocales(); - const [locale, getLocale, isLoadingLocale] = useLocale(); +const LocaleSelector: React.FC = () => { + const { options } = useLocales(); + const [locale, getLocale] = useLocale(); const selected = useMemo(() => { if (locale) { @@ -32,31 +30,24 @@ const LocaleSelector: React.FC = ({ callback }) => { const handleChange = useCallback( (o: SingleValue) => { if (o) { - getLocale(Number(o.value)).then(callback).catch(console.error); + getLocale(Number(o.value)); } }, - [callback, getLocale], + [getLocale], ); return (
-
+
- # # - # fill_in_rich_text_area "message[content]", with: "Hello world!" - # - # source://actiontext//lib/action_text/system_test_helper.rb#32 - def fill_in_rich_text_area(locator = T.unsafe(nil), with:); end -end - -module ActionText::TagHelper - def rich_text_area_tag(name, value = T.unsafe(nil), options = T.unsafe(nil)); end - - class << self - def id; end - def id=(val); end - end -end - -# source://actiontext//lib/action_text/trix_attachment.rb#4 -class ActionText::TrixAttachment - # @return [TrixAttachment] a new instance of TrixAttachment - # - # source://actiontext//lib/action_text/trix_attachment.rb#51 - def initialize(node); end - - # source://actiontext//lib/action_text/trix_attachment.rb#55 - def attributes; end - - # Returns the value of attribute node. - # - # source://actiontext//lib/action_text/trix_attachment.rb#49 - def node; end - - # source://actiontext//lib/action_text/trix_attachment.rb#59 - def to_html; end - - # source://actiontext//lib/action_text/trix_attachment.rb#63 - def to_s; end - - private - - # source://actiontext//lib/action_text/trix_attachment.rb#68 - def attachment_attributes; end - - # source://actiontext//lib/action_text/trix_attachment.rb#72 - def composed_attributes; end - - # source://actiontext//lib/action_text/trix_attachment.rb#80 - def read_json_attribute(name); end - - # source://actiontext//lib/action_text/trix_attachment.rb#76 - def read_json_object_attribute(name); end - - class << self - # source://actiontext//lib/action_text/trix_attachment.rb#19 - def from_attributes(attributes); end - - private - - # source://actiontext//lib/action_text/trix_attachment.rb#33 - def process_attributes(attributes); end - - # source://actiontext//lib/action_text/trix_attachment.rb#37 - def transform_attribute_keys(attributes); end - - # source://actiontext//lib/action_text/trix_attachment.rb#41 - def typecast_attribute_values(attributes); end - end -end - -# source://actiontext//lib/action_text/trix_attachment.rb#9 -ActionText::TrixAttachment::ATTRIBUTES = T.let(T.unsafe(nil), Array) - -# source://actiontext//lib/action_text/trix_attachment.rb#10 -ActionText::TrixAttachment::ATTRIBUTE_TYPES = T.let(T.unsafe(nil), Hash) - -# source://actiontext//lib/action_text/trix_attachment.rb#8 -ActionText::TrixAttachment::COMPOSED_ATTRIBUTES = T.let(T.unsafe(nil), Array) - -# source://actiontext//lib/action_text/trix_attachment.rb#6 -ActionText::TrixAttachment::SELECTOR = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/trix_attachment.rb#5 -ActionText::TrixAttachment::TAG_NAME = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/gem_version.rb#9 -module ActionText::VERSION; end - -# source://actiontext//lib/action_text/gem_version.rb#10 -ActionText::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) - -# source://actiontext//lib/action_text/gem_version.rb#11 -ActionText::VERSION::MINOR = T.let(T.unsafe(nil), Integer) - -# source://actiontext//lib/action_text/gem_version.rb#13 -ActionText::VERSION::PRE = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/gem_version.rb#15 -ActionText::VERSION::STRING = T.let(T.unsafe(nil), String) - -# source://actiontext//lib/action_text/gem_version.rb#12 -ActionText::VERSION::TINY = T.let(T.unsafe(nil), Integer) - -module ActionView::Helpers - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::TextHelper - include ::ActionView::Helpers::UrlHelper - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::TextHelper - include ::ActionView::Helpers::FormTagHelper - include ::ActionView::Helpers::FormHelper - include ::ActionView::Helpers::TranslationHelper - - mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods - mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - - class << self - # 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.3/lib/action_view/helpers/form_helper.rb#1715 - def initialize(object_name, object, template, options); end - - # 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.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.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.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.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.3/lib/action_view/helpers/form_helper.rb#2021 - def color_field(method, options = T.unsafe(nil)); end - - # 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.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.3/lib/action_view/helpers/form_helper.rb#2021 - def datetime_field(method, options = T.unsafe(nil)); end - - # 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.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.3/lib/action_view/helpers/form_helper.rb#2021 - def email_field(method, options = T.unsafe(nil)); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#2665 - def emitted_hidden_id?; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 - def field_helpers; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 - def field_helpers=(_arg0); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 - def field_helpers?; end - - # 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.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.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.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.3/lib/action_view/helpers/form_helper.rb#2551 - def file_field(method, options = T.unsafe(nil)); end - - # 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.3/lib/action_view/helpers/form_helper.rb#2512 - def hidden_field(method, options = T.unsafe(nil)); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1752 - def id; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1692 - def index; end - - # 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.3/lib/action_view/helpers/form_helper.rb#2021 - def month_field(method, options = T.unsafe(nil)); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1692 - def multipart; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1695 - def multipart=(multipart); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1692 - def multipart?; end - - # 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.3/lib/action_view/helpers/form_helper.rb#1690 - def object; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 - def object=(_arg0); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 - def object_name; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 - def object_name=(_arg0); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 - def options; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1690 - def options=(_arg0); end - - # 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.3/lib/action_view/helpers/form_helper.rb#2021 - def phone_field(method, options = T.unsafe(nil)); end - - # 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.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.3/lib/action_view/helpers/form_helper.rb#2021 - def search_field(method, options = T.unsafe(nil)); end - - # 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.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.3/lib/action_view/helpers/form_helper.rb#2021 - def telephone_field(method, options = T.unsafe(nil)); end - - # 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.3/lib/action_view/helpers/form_helper.rb#2021 - def text_field(method, options = T.unsafe(nil)); end - - # 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.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.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.3/lib/action_view/helpers/form_helper.rb#1711 - def to_model; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1707 - def to_partial_path; end - - # 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.3/lib/action_view/helpers/form_helper.rb#2021 - def week_field(method, options = T.unsafe(nil)); end - - # 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.3/lib/action_view/helpers/form_helper.rb#2750 - def convert_to_legacy_options(options); end - - # 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.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.3/lib/action_view/helpers/form_helper.rb#2699 - def nested_attributes_association?(association_name); end - - # 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.3/lib/action_view/helpers/form_helper.rb#2670 - def objectify_options(options); end - - # 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.3/lib/action_view/helpers/form_helper.rb#1703 - def _to_partial_path; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 - def field_helpers; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 - def field_helpers=(value); end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#1680 - def field_helpers?; end - end -end - -module ActionView::Helpers::FormHelper - include ::ActionView::Helpers::UrlHelper - include ::ActionView::Helpers::SanitizeHelper - include ::ActionView::Helpers::TextHelper - include ::ActionView::Helpers::FormTagHelper - - mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods - mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - - # 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.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.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.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.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.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.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.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.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.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.3/lib/action_view/helpers/form_helper.rb#434 - def form_for(record, options = T.unsafe(nil), &block); end - - # 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.3/lib/action_view/helpers/form_helper.rb#480 - def form_with_generates_ids; end - - # 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.3/lib/action_view/helpers/form_helper.rb#478 - def form_with_generates_remote_forms; end - - # 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.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.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.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.3/lib/action_view/helpers/form_helper.rb#482 - def multiple_file_field_include_hidden; end - - # 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.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.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.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.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.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.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.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.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.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.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.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.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.3/lib/action_view/helpers/form_helper.rb#464 - def apply_form_for_options!(object, options); end - - # 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.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.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.3/lib/action_view/helpers/form_helper.rb#480 - def form_with_generates_ids; end - - # 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.3/lib/action_view/helpers/form_helper.rb#478 - def form_with_generates_remote_forms; end - - # 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.3/lib/action_view/helpers/form_helper.rb#482 - def multiple_file_field_include_hidden; end - - # source://actionview/7.1.3.3/lib/action_view/helpers/form_helper.rb#482 - def multiple_file_field_include_hidden=(val); end - end -end - -module ActionView::Helpers::Tags; end - -class ActionView::Helpers::Tags::ActionText < ::ActionView::Helpers::Tags::Base - include ::ActionView::Helpers::Tags::Placeholderable - - def dom_id(*_arg0, **_arg1, &_arg2); end - def render; end -end diff --git a/sorbet/rbi/gems/actiontext@7.1.4.rbi b/sorbet/rbi/gems/actiontext@7.1.4.rbi new file mode 100644 index 00000000..49385d29 --- /dev/null +++ b/sorbet/rbi/gems/actiontext@7.1.4.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `actiontext` gem. +# Please instead update this file by running `bin/tapioca gem actiontext`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/actionview@7.1.3.3.rbi b/sorbet/rbi/gems/actionview@7.1.4.rbi similarity index 97% rename from sorbet/rbi/gems/actionview@7.1.3.3.rbi rename to sorbet/rbi/gems/actionview@7.1.4.rbi index 4d484b40..15056676 100644 --- a/sorbet/rbi/gems/actionview@7.1.3.3.rbi +++ b/sorbet/rbi/gems/actionview@7.1.4.rbi @@ -13,247 +13,247 @@ class ActionController::Base < ::ActionController::Metal include ::ActionController::BasicImplicitRender extend ::AbstractController::Helpers::Resolution - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods=(_arg0); end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/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.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _process_action_callbacks; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.4/lib/action_controller/metal/renderers.rb#31 def _renderers; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.4/lib/action_controller/metal/renderers.rb#31 def _renderers=(_arg0); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.4/lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_process_action_callbacks(&block); end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.4/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.4/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(_arg0); end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.4/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.4/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.4/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options=(_arg0); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.4/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#36 + # source://actionpack/7.1.4/lib/action_controller/metal/flash.rb#36 def alert; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def default_protect_from_forgery; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def default_protect_from_forgery=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def default_static_extension=(value); end - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.4/lib/action_dispatch/routing/url_for.rb#97 def default_url_options; end - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.4/lib/action_dispatch/routing/url_for.rb#97 def default_url_options=(_arg0); end - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.4/lib/action_dispatch/routing/url_for.rb#97 def default_url_options?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.4/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.4/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest=(_arg0); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.4/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.4/lib/action_controller/metal/conditional_get.rb#13 def etaggers; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.4/lib/action_controller/metal/conditional_get.rb#13 def etaggers=(_arg0); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.4/lib/action_controller/metal/conditional_get.rb#13 def etaggers?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#10 + # source://actionpack/7.1.4/lib/action_controller/metal/flash.rb#10 def flash(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.4/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.4/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(_arg0); end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.4/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#65 def helpers_path; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#65 def helpers_path=(_arg0); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#65 def helpers_path?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#66 def include_all_helpers; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#66 def include_all_helpers=(_arg0); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#66 def include_all_helpers?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def logger=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#36 + # source://actionpack/7.1.4/lib/action_controller/metal/flash.rb#36 def notice; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def perform_caching=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.4/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.4/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.4/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.4/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end private @@ -261,47 +261,47 @@ class ActionController::Base < ::ActionController::Metal # source://actionview//lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end - # source://actionpack/7.1.3.3/lib/action_controller/base.rb#252 + # source://actionpack/7.1.4/lib/action_controller/base.rb#252 def _protected_ivars; end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://actionpack/7.1.3.3/lib/action_controller/form_builder.rb#33 + # source://actionpack/7.1.4/lib/action_controller/form_builder.rb#33 def _default_form_builder; end - # source://actionpack/7.1.3.3/lib/action_controller/form_builder.rb#33 + # source://actionpack/7.1.4/lib/action_controller/form_builder.rb#33 def _default_form_builder=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/form_builder.rb#33 + # source://actionpack/7.1.4/lib/action_controller/form_builder.rb#33 def _default_form_builder?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#8 + # source://actionpack/7.1.4/lib/action_controller/metal/flash.rb#8 def _flash_types; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#8 + # source://actionpack/7.1.4/lib/action_controller/metal/flash.rb#8 def _flash_types=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/flash.rb#8 + # source://actionpack/7.1.4/lib/action_controller/metal/flash.rb#8 def _flash_types?; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#16 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#16 def _helpers; end # source://actionview//lib/action_view/layouts.rb#211 @@ -322,231 +322,231 @@ class ActionController::Base < ::ActionController::Metal # source://actionview//lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _process_action_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _process_action_callbacks=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.4/lib/action_controller/metal/renderers.rb#31 def _renderers; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.4/lib/action_controller/metal/renderers.rb#31 def _renderers=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/renderers.rb#31 + # source://actionpack/7.1.4/lib/action_controller/metal/renderers.rb#31 def _renderers?; end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.4/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.4/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.4/lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.4/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.4/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/params_wrapper.rb#187 + # source://actionpack/7.1.4/lib/action_controller/metal/params_wrapper.rb#187 def _wrapper_options?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def allow_forgery_protection; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def allow_forgery_protection=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def assets_dir=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def csrf_token_storage_strategy; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def csrf_token_storage_strategy=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def default_protect_from_forgery; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def default_protect_from_forgery=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def default_static_extension=(value); end - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.4/lib/action_dispatch/routing/url_for.rb#97 def default_url_options; end - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.4/lib/action_dispatch/routing/url_for.rb#97 def default_url_options=(value); end - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#97 + # source://actionpack/7.1.4/lib/action_dispatch/routing/url_for.rb#97 def default_url_options?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.4/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.4/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.4/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.4/lib/action_controller/metal/conditional_get.rb#13 def etaggers; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.4/lib/action_controller/metal/conditional_get.rb#13 def etaggers=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/conditional_get.rb#13 + # source://actionpack/7.1.4/lib/action_controller/metal/conditional_get.rb#13 def etaggers?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def forgery_protection_origin_check; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def forgery_protection_origin_check=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def forgery_protection_strategy; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def forgery_protection_strategy=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.4/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.4/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.4/lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#65 def helpers_path; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#65 def helpers_path=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#65 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#65 def helpers_path?; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#66 def include_all_helpers; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#66 def include_all_helpers=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/helpers.rb#66 + # source://actionpack/7.1.4/lib/action_controller/metal/helpers.rb#66 def include_all_helpers?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def log_warning_on_csrf_failure; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def log_warning_on_csrf_failure=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def logger=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def per_form_csrf_tokens; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def per_form_csrf_tokens=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def perform_caching=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.4/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.3/lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.4/lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.4/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/redirecting.rb#15 + # source://actionpack/7.1.4/lib/action_controller/metal/redirecting.rb#15 def raise_on_open_redirects=(val); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def request_forgery_protection_token; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def request_forgery_protection_token=(value); end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#115 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.3/lib/active_support/configurable.rb#116 + # source://activesupport/7.1.4/lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end - # source://actionpack/7.1.3.3/lib/action_controller/base.rb#184 + # source://actionpack/7.1.4/lib/action_controller/base.rb#184 def without_modules(*modules); end end end -# :include: actionview/README.rdoc +# :include: ../README.rdoc # # source://actionview//lib/action_view/gem_version.rb#3 module ActionView @@ -865,10 +865,9 @@ class ActionView::ActionViewError < ::StandardError; end # end # end # -# For more information on Builder please consult the {source -# code}[https://github.com/jimweirich/builder]. +# For more information on Builder please consult the {source code}[https://github.com/rails/builder]. # -# source://actionview//lib/action_view/base.rb#141 +# source://actionview//lib/action_view/base.rb#140 class ActionView::Base include ::ActionView::Context include ::ERB::Escape @@ -912,51 +911,51 @@ class ActionView::Base # # @return [Base] a new instance of Base # - # source://actionview//lib/action_view/base.rb#228 + # source://actionview//lib/action_view/base.rb#227 def initialize(lookup_context, assigns, controller); end - # source://actionview//lib/action_view/base.rb#165 + # source://actionview//lib/action_view/base.rb#164 def _routes; end - # source://actionview//lib/action_view/base.rb#165 + # source://actionview//lib/action_view/base.rb#164 def _routes=(_arg0); end - # source://actionview//lib/action_view/base.rb#165 + # source://actionview//lib/action_view/base.rb#164 def _routes?; end - # source://actionview//lib/action_view/base.rb#245 + # source://actionview//lib/action_view/base.rb#244 def _run(method, template, locals, buffer, add_to_stack: T.unsafe(nil), has_strict_locals: T.unsafe(nil), &block); end - # source://actionview//lib/action_view/base.rb#163 + # source://actionview//lib/action_view/base.rb#162 def annotate_rendered_view_with_filenames; end - # source://actionview//lib/action_view/base.rb#163 + # source://actionview//lib/action_view/base.rb#162 def annotate_rendered_view_with_filenames=(val); end - # source://actionview//lib/action_view/base.rb#207 + # source://actionview//lib/action_view/base.rb#206 def assign(new_assigns); end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/attr_internal.rb#33 def assigns; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/attr_internal.rb#33 def assigns=(_arg0); end - # source://actionview//lib/action_view/base.rb#160 + # source://actionview//lib/action_view/base.rb#159 def automatically_disable_submit_tag; end - # source://actionview//lib/action_view/base.rb#160 + # source://actionview//lib/action_view/base.rb#159 def automatically_disable_submit_tag=(val); end # @raise [NotImplementedError] # - # source://actionview//lib/action_view/base.rb#270 + # source://actionview//lib/action_view/base.rb#269 def compiled_method_container; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/attr_internal.rb#33 def config; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/attr_internal.rb#33 def config=(_arg0); end # source://actionview//lib/action_view/helpers/translation_helper.rb#18 @@ -965,104 +964,104 @@ class ActionView::Base # source://actionview//lib/action_view/helpers/translation_helper.rb#18 def debug_missing_translation=(val); end - # source://actionview//lib/action_view/base.rb#157 + # source://actionview//lib/action_view/base.rb#156 def default_formats; end - # source://actionview//lib/action_view/base.rb#157 + # source://actionview//lib/action_view/base.rb#156 def default_formats=(val); end - # source://actionview//lib/action_view/base.rb#145 + # source://actionview//lib/action_view/base.rb#144 def field_error_proc; end - # source://actionview//lib/action_view/base.rb#145 + # source://actionview//lib/action_view/base.rb#144 def field_error_proc=(val); end - # source://actionview//lib/action_view/base.rb#205 + # source://actionview//lib/action_view/base.rb#204 def formats(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/base.rb#205 + # source://actionview//lib/action_view/base.rb#204 def formats=(arg); end - # source://actionview//lib/action_view/base.rb#278 + # source://actionview//lib/action_view/base.rb#277 def in_rendering_context(options); end - # source://actionview//lib/action_view/base.rb#205 + # source://actionview//lib/action_view/base.rb#204 def locale(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/base.rb#205 + # source://actionview//lib/action_view/base.rb#204 def locale=(arg); end - # source://actionview//lib/action_view/base.rb#166 + # source://actionview//lib/action_view/base.rb#165 def logger; end - # source://actionview//lib/action_view/base.rb#166 + # source://actionview//lib/action_view/base.rb#165 def logger=(_arg0); end - # source://actionview//lib/action_view/base.rb#166 + # source://actionview//lib/action_view/base.rb#165 def logger?; end # Returns the value of attribute lookup_context. # - # source://actionview//lib/action_view/base.rb#202 + # source://actionview//lib/action_view/base.rb#201 def lookup_context; end - # source://actionview//lib/action_view/base.rb#154 + # source://actionview//lib/action_view/base.rb#153 def prefix_partial_path_with_controller_namespace; end - # source://actionview//lib/action_view/base.rb#154 + # source://actionview//lib/action_view/base.rb#153 def prefix_partial_path_with_controller_namespace=(_arg0); end - # source://actionview//lib/action_view/base.rb#154 + # source://actionview//lib/action_view/base.rb#153 def prefix_partial_path_with_controller_namespace?; end - # source://actionview//lib/action_view/base.rb#149 + # source://actionview//lib/action_view/base.rb#148 def streaming_completion_on_exception; end - # source://actionview//lib/action_view/base.rb#149 + # source://actionview//lib/action_view/base.rb#148 def streaming_completion_on_exception=(val); end - # source://actionview//lib/action_view/base.rb#205 + # source://actionview//lib/action_view/base.rb#204 def view_paths(*_arg0, **_arg1, &_arg2); end - # source://actionview//lib/action_view/base.rb#205 + # source://actionview//lib/action_view/base.rb#204 def view_paths=(arg); end # Returns the value of attribute view_renderer. # - # source://actionview//lib/action_view/base.rb#202 + # source://actionview//lib/action_view/base.rb#201 def view_renderer; end class << self - # source://actionview//lib/action_view/base.rb#165 + # source://actionview//lib/action_view/base.rb#164 def _routes; end - # source://actionview//lib/action_view/base.rb#165 + # source://actionview//lib/action_view/base.rb#164 def _routes=(value); end - # source://actionview//lib/action_view/base.rb#165 + # source://actionview//lib/action_view/base.rb#164 def _routes?; end - # source://actionview//lib/action_view/base.rb#163 + # source://actionview//lib/action_view/base.rb#162 def annotate_rendered_view_with_filenames; end - # source://actionview//lib/action_view/base.rb#163 + # source://actionview//lib/action_view/base.rb#162 def annotate_rendered_view_with_filenames=(val); end - # source://actionview//lib/action_view/base.rb#160 + # source://actionview//lib/action_view/base.rb#159 def automatically_disable_submit_tag; end - # source://actionview//lib/action_view/base.rb#160 + # source://actionview//lib/action_view/base.rb#159 def automatically_disable_submit_tag=(val); end - # source://actionview//lib/action_view/base.rb#171 + # source://actionview//lib/action_view/base.rb#170 def cache_template_loading; end - # source://actionview//lib/action_view/base.rb#175 + # source://actionview//lib/action_view/base.rb#174 def cache_template_loading=(value); end # @return [Boolean] # - # source://actionview//lib/action_view/base.rb#197 + # source://actionview//lib/action_view/base.rb#196 def changed?(other); end # source://actionview//lib/action_view/helpers/translation_helper.rb#18 @@ -1077,62 +1076,62 @@ class ActionView::Base # source://actionview//lib/action_view/helpers/form_helper.rb#2759 def default_form_builder=(val); end - # source://actionview//lib/action_view/base.rb#157 + # source://actionview//lib/action_view/base.rb#156 def default_formats; end - # source://actionview//lib/action_view/base.rb#157 + # source://actionview//lib/action_view/base.rb#156 def default_formats=(val); end # :stopdoc: # - # source://actionview//lib/action_view/base.rb#214 + # source://actionview//lib/action_view/base.rb#213 def empty; end - # source://actionview//lib/action_view/base.rb#169 + # source://actionview//lib/action_view/base.rb#168 def erb_trim_mode=(arg); end - # source://actionview//lib/action_view/base.rb#145 + # source://actionview//lib/action_view/base.rb#144 def field_error_proc; end - # source://actionview//lib/action_view/base.rb#145 + # source://actionview//lib/action_view/base.rb#144 def field_error_proc=(val); end - # source://actionview//lib/action_view/base.rb#166 + # source://actionview//lib/action_view/base.rb#165 def logger; end - # source://actionview//lib/action_view/base.rb#166 + # source://actionview//lib/action_view/base.rb#165 def logger=(value); end - # source://actionview//lib/action_view/base.rb#166 + # source://actionview//lib/action_view/base.rb#165 def logger?; end - # source://actionview//lib/action_view/base.rb#154 + # source://actionview//lib/action_view/base.rb#153 def prefix_partial_path_with_controller_namespace; end - # source://actionview//lib/action_view/base.rb#154 + # source://actionview//lib/action_view/base.rb#153 def prefix_partial_path_with_controller_namespace=(value); end - # source://actionview//lib/action_view/base.rb#154 + # source://actionview//lib/action_view/base.rb#153 def prefix_partial_path_with_controller_namespace?; end - # source://actionview//lib/action_view/base.rb#149 + # source://actionview//lib/action_view/base.rb#148 def streaming_completion_on_exception; end - # source://actionview//lib/action_view/base.rb#149 + # source://actionview//lib/action_view/base.rb#148 def streaming_completion_on_exception=(val); end - # source://actionview//lib/action_view/base.rb#222 + # source://actionview//lib/action_view/base.rb#221 def with_context(context, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end - # source://actionview//lib/action_view/base.rb#183 + # source://actionview//lib/action_view/base.rb#182 def with_empty_template_cache; end - # source://actionview//lib/action_view/base.rb#218 + # source://actionview//lib/action_view/base.rb#217 def with_view_paths(view_paths, assigns = T.unsafe(nil), controller = T.unsafe(nil)); end # @return [Boolean] # - # source://actionview//lib/action_view/base.rb#179 + # source://actionview//lib/action_view/base.rb#178 def xss_safe?; end end end @@ -3119,11 +3118,11 @@ module ActionView::Helpers::CacheHelper # render 'comments/comments' # render('comments/comments') # - # render "header" translates to render("comments/header") + # render "header" # translates to render("comments/header") # - # render(@topic) translates to render("topics/topic") - # render(topics) translates to render("topics/topic") - # render(message.topics) translates to render("topics/topic") + # render(@topic) # translates to render("topics/topic") + # render(topics) # translates to render("topics/topic") + # render(message.topics) # translates to render("topics/topic") # # It's not possible to derive all render calls like that, though. # Here are a few examples of things that can't be derived: @@ -5483,8 +5482,6 @@ class ActionView::Helpers::FormBuilder # source://actionview//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//lib/action_view/helpers/form_helper.rb#2021 def search_field(method, options = T.unsafe(nil)); end @@ -7035,8 +7032,6 @@ module ActionView::Helpers::FormHelper # source://actionview//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 - # Returns an input of type "search" for accessing a specified attribute (identified by +method+) on an object # assigned to the template (identified by +object_name+). Inputs of type "search" may be styled differently by # some browsers. @@ -12025,7 +12020,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.3/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.4/lib/active_support/log_subscriber.rb#88 def log_levels; end end end @@ -12928,7 +12923,7 @@ end # source://actionview//lib/action_view/railtie.rb#8 class ActionView::Railtie < ::Rails::Engine class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -14104,7 +14099,7 @@ end module ActionView::RoutingUrlFor include ::ActionDispatch::Routing::PolymorphicRoutes - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#99 + # source://actionpack/7.1.4/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 @@ -14206,7 +14201,7 @@ module ActionView::RoutingUrlFor def optimize_routes_generation?; end class << self - # source://actionpack/7.1.3.3/lib/action_dispatch/routing/url_for.rb#99 + # source://actionpack/7.1.4/lib/action_dispatch/routing/url_for.rb#99 def default_url_options=(val); end end end @@ -14360,7 +14355,7 @@ class ActionView::Template # before passing the source on to the template engine, leaving a # blank line in its stead. # - # source://actionview//lib/action_view/template.rb#297 + # source://actionview//lib/action_view/template.rb#298 def encode!; end # Returns the value of attribute format. @@ -14378,7 +14373,7 @@ class ActionView::Template # source://actionview//lib/action_view/template.rb#181 def identifier; end - # source://actionview//lib/action_view/template.rb#276 + # source://actionview//lib/action_view/template.rb#277 def inspect; end # The locals this template has been or will be compiled for, or nil if this @@ -14391,13 +14386,13 @@ class ActionView::Template # to ensure that references to the template object can be marshalled as well. This means forgoing # the marshalling of the compiler mutex and instantiating that again on unmarshalling. # - # source://actionview//lib/action_view/template.rb#363 + # source://actionview//lib/action_view/template.rb#364 def marshal_dump; end - # source://actionview//lib/action_view/template.rb#367 + # source://actionview//lib/action_view/template.rb#368 def marshal_load(array); end - # source://actionview//lib/action_view/template.rb#372 + # source://actionview//lib/action_view/template.rb#373 def method_name; end # Render a template. If the template was not compiled yet, it is done @@ -14410,10 +14405,10 @@ class ActionView::Template # source://actionview//lib/action_view/template.rb#248 def render(view, locals, buffer = T.unsafe(nil), implicit_locals: T.unsafe(nil), add_to_stack: T.unsafe(nil), &block); end - # source://actionview//lib/action_view/template.rb#272 + # source://actionview//lib/action_view/template.rb#273 def short_identifier; end - # source://actionview//lib/action_view/template.rb#280 + # source://actionview//lib/action_view/template.rb#281 def source; end # source://actionview//lib/action_view/template.rb#218 @@ -14429,14 +14424,14 @@ class ActionView::Template # Strict locals are useful for validating template arguments and for # specifying defaults. # - # source://actionview//lib/action_view/template.rb#342 + # source://actionview//lib/action_view/template.rb#343 def strict_locals!; end # Returns whether a template is using strict locals. # # @return [Boolean] # - # source://actionview//lib/action_view/template.rb#356 + # source://actionview//lib/action_view/template.rb#357 def strict_locals?; end # Returns whether the underlying handler supports streaming. If so, @@ -14453,7 +14448,7 @@ class ActionView::Template # source://actionview//lib/action_view/template.rb#228 def translate_location(backtrace_location, spot); end - # source://actionview//lib/action_view/template.rb#268 + # source://actionview//lib/action_view/template.rb#269 def type; end # Returns the value of attribute variable. @@ -14485,44 +14480,44 @@ class ActionView::Template # In general, this means that templates will be UTF-8 inside of Rails, # regardless of the original source encoding. # - # source://actionview//lib/action_view/template.rb#472 + # source://actionview//lib/action_view/template.rb#473 def compile(mod); end # Compile a template. This method ensures a template is compiled # just once and removes the source after it is compiled. # - # source://actionview//lib/action_view/template.rb#394 + # source://actionview//lib/action_view/template.rb#395 def compile!(view); end # This method compiles the source of the template. The compilation of templates # involves setting strict_locals! if applicable, encoding the template, and setting # frozen string literal. # - # source://actionview//lib/action_view/template.rb#419 + # source://actionview//lib/action_view/template.rb#420 def compiled_source; end - # source://actionview//lib/action_view/template.rb#381 + # source://actionview//lib/action_view/template.rb#382 def find_node_by_id(node, node_id); end - # source://actionview//lib/action_view/template.rb#518 + # source://actionview//lib/action_view/template.rb#519 def handle_render_error(view, e); end - # source://actionview//lib/action_view/template.rb#540 + # source://actionview//lib/action_view/template.rb#541 def identifier_method_name; end - # source://actionview//lib/action_view/template.rb#544 + # source://actionview//lib/action_view/template.rb#545 def instrument(action, &block); end - # source://actionview//lib/action_view/template.rb#552 + # source://actionview//lib/action_view/template.rb#553 def instrument_payload; end - # source://actionview//lib/action_view/template.rb#548 + # source://actionview//lib/action_view/template.rb#549 def instrument_render_template(&block); end - # source://actionview//lib/action_view/template.rb#527 + # source://actionview//lib/action_view/template.rb#528 def locals_code; end - # source://actionview//lib/action_view/template.rb#510 + # source://actionview//lib/action_view/template.rb#511 def offset; end class << self @@ -14862,7 +14857,7 @@ end # source://actionview//lib/action_view/template/inline.rb#8 ActionView::Template::Inline::Finalizer = T.let(T.unsafe(nil), Proc) -# source://actionview//lib/action_view/template.rb#284 +# source://actionview//lib/action_view/template.rb#285 ActionView::Template::LEADING_ENCODING_REGEXP = T.let(T.unsafe(nil), Regexp) # source://actionview//lib/action_view/template.rb#184 @@ -15295,13 +15290,13 @@ class ActionView::TestCase < ::ActiveSupport::TestCase extend ::ActiveSupport::Testing::ConstantLookup::ClassMethods extend ::ActionView::TestCase::Behavior::ClassMethods - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods=(_arg0); end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end # source://actionview//lib/action_view/helpers/translation_helper.rb#18 @@ -15311,19 +15306,19 @@ class ActionView::TestCase < ::ActiveSupport::TestCase def debug_missing_translation=(val); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods=(value); end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#16 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#16 def _helpers; end # source://actionview//lib/action_view/test_case.rb#201 @@ -15379,42 +15374,8 @@ module ActionView::TestCase::Behavior mixes_in_class_methods ::ActiveSupport::Testing::ConstantLookup::ClassMethods mixes_in_class_methods ::ActionView::TestCase::Behavior::ClassMethods - # source://actionview//lib/action_view/test_case.rb#298 - def _routes; end - - # source://actionview//lib/action_view/test_case.rb#233 - def config; end - - # Returns the value of attribute controller. - # - # source://actionview//lib/action_view/test_case.rb#63 - def controller; end - - # Sets the attribute controller + # :method: rendered # - # @param value the value to set the attribute controller to. - # - # source://actionview//lib/action_view/test_case.rb#63 - def controller=(_arg0); end - - # source://actionview//lib/action_view/test_case.rb#62 - def lookup_context(*_arg0, **_arg1, &_arg2); end - - # Returns the value of attribute output_buffer. - # - # source://actionview//lib/action_view/test_case.rb#63 - def output_buffer; end - - # Sets the attribute output_buffer - # - # @param value the value to set the attribute output_buffer to. - # - # source://actionview//lib/action_view/test_case.rb#63 - def output_buffer=(_arg0); end - - # source://actionview//lib/action_view/test_case.rb#237 - def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil), &block); end - # Returns the content rendered by the last +render+ call. # # The returned object behaves like a string but also exposes a number of methods @@ -15463,9 +15424,54 @@ module ActionView::TestCase::Behavior # assert_pattern { rendered.json => { title: "Hello, world" } } # end # - # source://actionview//lib/action_view/test_case.rb#294 + # source://actionview//lib/action_view/test_case.rb#298 + def _routes; end + + # source://actionview//lib/action_view/test_case.rb#233 + def config; end + + # Returns the value of attribute controller. + # + # source://actionview//lib/action_view/test_case.rb#63 + def controller; end + + # Sets the attribute controller + # + # @param value the value to set the attribute controller to. + # + # source://actionview//lib/action_view/test_case.rb#63 + def controller=(_arg0); end + + # source://actionview//lib/action_view/test_case.rb#62 + def lookup_context(*_arg0, **_arg1, &_arg2); end + + # Returns the value of attribute output_buffer. + # + # source://actionview//lib/action_view/test_case.rb#63 + def output_buffer; end + + # Sets the attribute output_buffer + # + # @param value the value to set the attribute output_buffer to. + # + # source://actionview//lib/action_view/test_case.rb#63 + def output_buffer=(_arg0); end + + # source://actionview//lib/action_view/test_case.rb#237 + def render(options = T.unsafe(nil), local_assigns = T.unsafe(nil), &block); end + + # Returns the value of attribute rendered. + # + # source://actionview//lib/action_view/test_case.rb#63 def rendered; end + # Sets the attribute rendered + # + # @param value the value to set the attribute rendered to. + # + # source://actionview//lib/action_view/test_case.rb#63 + def rendered=(_arg0); end + # source://actionview//lib/action_view/test_case.rb#243 def rendered_views; end @@ -15773,7 +15779,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.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -15832,7 +15838,7 @@ ActionView::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActionView::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://actionview//lib/action_view/gem_version.rb#13 -ActionView::VERSION::PRE = T.let(T.unsafe(nil), String) +ActionView::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) # source://actionview//lib/action_view/gem_version.rb#15 ActionView::VERSION::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/activejob@7.1.3.3.rbi b/sorbet/rbi/gems/activejob@7.1.4.rbi similarity index 96% rename from sorbet/rbi/gems/activejob@7.1.3.3.rbi rename to sorbet/rbi/gems/activejob@7.1.4.rbi index b6eb91fa..8873db03 100644 --- a/sorbet/rbi/gems/activejob@7.1.3.3.rbi +++ b/sorbet/rbi/gems/activejob@7.1.4.rbi @@ -6,7 +6,7 @@ # :markup: markdown -# :include: activejob/README.md +# :include: ../README.md # # source://activejob//lib/active_job/gem_version.rb#3 module ActiveJob @@ -28,19 +28,19 @@ module ActiveJob # Queue adapters may communicate the enqueue status of each job by setting # successfully_enqueued and/or enqueue_error on the passed-in job instances. # - # source://activejob//lib/active_job/enqueuing.rb#16 + # source://activejob//lib/active_job/enqueuing.rb#14 def perform_all_later(*jobs); end - # source://activejob//lib/active_job.rb#53 + # source://activejob//lib/active_job.rb#56 def use_big_decimal_serializer; end - # source://activejob//lib/active_job.rb#53 + # source://activejob//lib/active_job.rb#56 def use_big_decimal_serializer=(_arg0); end - # source://activejob//lib/active_job.rb#61 + # source://activejob//lib/active_job.rb#64 def verbose_enqueue_logs; end - # source://activejob//lib/active_job.rb#61 + # source://activejob//lib/active_job.rb#64 def verbose_enqueue_logs=(_arg0); end # Returns the currently loaded version of Active Job as a +Gem::Version+. @@ -209,22 +209,22 @@ class ActiveJob::Base extend ::ActiveJob::Exceptions::ClassMethods extend ::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _enqueue_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _perform_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_enqueue_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_perform_callbacks(&block); end # source://activejob//lib/active_job/exceptions.rb#12 @@ -254,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.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers?; end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _enqueue_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _enqueue_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _perform_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _perform_callbacks=(value); end # source://activejob//lib/active_job/queue_adapter.rb#24 @@ -363,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.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://activejob//lib/active_job/exceptions.rb#11 @@ -407,16 +407,16 @@ module ActiveJob::Callbacks mixes_in_class_methods ::ActiveJob::Callbacks::ClassMethods class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _execute_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_execute_callbacks(&block); end end @@ -840,10 +840,10 @@ end # Can be raised by adapters if they wish to communicate to the caller a reason # why the adapter was unexpectedly unable to enqueue a job. # -# source://activejob//lib/active_job/enqueuing.rb#10 +# source://activejob//lib/active_job/enqueuing.rb#8 class ActiveJob::EnqueueError < ::StandardError; end -# source://activejob//lib/active_job/enqueuing.rb#42 +# source://activejob//lib/active_job/enqueuing.rb#40 module ActiveJob::Enqueuing extend ::ActiveSupport::Concern @@ -865,13 +865,13 @@ module ActiveJob::Enqueuing # my_job_instance.enqueue wait_until: Date.tomorrow.midnight # my_job_instance.enqueue priority: 10 # - # source://activejob//lib/active_job/enqueuing.rb#89 + # source://activejob//lib/active_job/enqueuing.rb#87 def enqueue(options = T.unsafe(nil)); end end # Includes the +perform_later+ method for job initialization. # -# source://activejob//lib/active_job/enqueuing.rb#46 +# source://activejob//lib/active_job/enqueuing.rb#44 module ActiveJob::Enqueuing::ClassMethods # Push a job onto the queue. By default the arguments must be either String, # Integer, Float, NilClass, TrueClass, FalseClass, BigDecimal, Symbol, Date, @@ -887,12 +887,12 @@ module ActiveJob::Enqueuing::ClassMethods # # @yield [job] # - # source://activejob//lib/active_job/enqueuing.rb#58 + # source://activejob//lib/active_job/enqueuing.rb#56 def perform_later(*_arg0, **_arg1, &_arg2); end private - # source://activejob//lib/active_job/enqueuing.rb#68 + # source://activejob//lib/active_job/enqueuing.rb#66 def job_or_instantiate(*args, **_arg1); end end @@ -1065,7 +1065,7 @@ ActiveJob::Exceptions::JITTER_DEFAULT = T.let(T.unsafe(nil), Object) # {rescue_from}[rdoc-ref:ActiveSupport::Rescuable::ClassMethods#rescue_from] # are handled. # -# source://activejob//lib/active_job/execution.rb#13 +# source://activejob//lib/active_job/execution.rb#12 module ActiveJob::Execution extend ::ActiveSupport::Concern include GeneratedInstanceMethods @@ -1075,7 +1075,7 @@ module ActiveJob::Execution mixes_in_class_methods ::ActiveSupport::Rescuable::ClassMethods mixes_in_class_methods ::ActiveJob::Execution::ClassMethods - # source://activejob//lib/active_job/execution.rb#61 + # source://activejob//lib/active_job/execution.rb#60 def perform(*_arg0); end # Performs the job immediately. The job is not sent to the queuing adapter @@ -1090,12 +1090,12 @@ module ActiveJob::Execution # # puts MyJob.new(*args).perform_now # => "Hello World!" # - # source://activejob//lib/active_job/execution.rb#46 + # source://activejob//lib/active_job/execution.rb#45 def perform_now; end private - # source://activejob//lib/active_job/execution.rb#66 + # source://activejob//lib/active_job/execution.rb#65 def _perform_job; end module GeneratedClassMethods @@ -1113,16 +1113,16 @@ end # Includes methods for executing and performing jobs instantly. # -# source://activejob//lib/active_job/execution.rb#18 +# source://activejob//lib/active_job/execution.rb#17 module ActiveJob::Execution::ClassMethods - # source://activejob//lib/active_job/execution.rb#27 + # source://activejob//lib/active_job/execution.rb#26 def execute(job_data); end # Performs the job immediately. # # MyJob.perform_now("mike") # - # source://activejob//lib/active_job/execution.rb#23 + # source://activejob//lib/active_job/execution.rb#22 def perform_now(*_arg0, **_arg1, &_arg2); end end @@ -1222,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.3/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.4/lib/active_support/log_subscriber.rb#88 def log_levels; end end end @@ -2723,7 +2723,7 @@ ActiveJob::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveJob::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activejob//lib/active_job/gem_version.rb#13 -ActiveJob::VERSION::PRE = T.let(T.unsafe(nil), String) +ActiveJob::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) # source://activejob//lib/active_job/gem_version.rb#15 ActiveJob::VERSION::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/activemodel@7.1.3.3.rbi b/sorbet/rbi/gems/activemodel@7.1.4.rbi similarity index 99% rename from sorbet/rbi/gems/activemodel@7.1.3.3.rbi rename to sorbet/rbi/gems/activemodel@7.1.4.rbi index 5b8f23d2..08254871 100644 --- a/sorbet/rbi/gems/activemodel@7.1.3.3.rbi +++ b/sorbet/rbi/gems/activemodel@7.1.4.rbi @@ -5,7 +5,7 @@ # Please instead update this file by running `bin/tapioca gem activemodel`. -# :include: activemodel/README.rdoc +# :include: ../README.rdoc # # source://activemodel//lib/active_model/gem_version.rb#3 module ActiveModel @@ -561,7 +561,7 @@ module ActiveModel::AttributeMethods # attribute method. If so, we tell +attribute_missing+ to dispatch the # attribute. This method can be overloaded to customize the behavior. # - # source://activemodel//lib/active_model/attribute_methods.rb#498 + # source://activemodel//lib/active_model/attribute_methods.rb#515 def attribute_missing(match, *args, **_arg2, &block); end # Allows access to the object attributes, which are held in the hash @@ -575,12 +575,12 @@ module ActiveModel::AttributeMethods # class belonging to the +clients+ table with a +master_id+ foreign key # can instantiate master through Client#master. # - # source://activemodel//lib/active_model/attribute_methods.rb#484 + # source://activemodel//lib/active_model/attribute_methods.rb#501 def method_missing(method, *args, **_arg2, &block); end # @return [Boolean] # - # source://activemodel//lib/active_model/attribute_methods.rb#507 + # source://activemodel//lib/active_model/attribute_methods.rb#524 def respond_to?(method, include_private_methods = T.unsafe(nil)); end # A +Person+ instance with a +name+ attribute can ask @@ -590,23 +590,23 @@ module ActiveModel::AttributeMethods private - # source://activemodel//lib/active_model/attribute_methods.rb#535 + # source://activemodel//lib/active_model/attribute_methods.rb#552 def _read_attribute(attr); end # @return [Boolean] # - # source://activemodel//lib/active_model/attribute_methods.rb#520 + # source://activemodel//lib/active_model/attribute_methods.rb#537 def attribute_method?(attr_name); end # Returns a struct representing the matching attribute method. # The struct's attributes are prefix, base and suffix. # - # source://activemodel//lib/active_model/attribute_methods.rb#526 + # source://activemodel//lib/active_model/attribute_methods.rb#543 def matched_attribute_method(method_name); end # @raise [ActiveModel::MissingAttributeError] # - # source://activemodel//lib/active_model/attribute_methods.rb#531 + # source://activemodel//lib/active_model/attribute_methods.rb#548 def missing_attribute(attr_name, stack); end module GeneratedClassMethods @@ -626,7 +626,7 @@ module ActiveModel::AttributeMethods end end -# source://activemodel//lib/active_model/attribute_methods.rb#539 +# source://activemodel//lib/active_model/attribute_methods.rb#556 module ActiveModel::AttributeMethods::AttrNames class << self # We want to generate the methods via module_eval rather than @@ -644,12 +644,12 @@ module ActiveModel::AttributeMethods::AttrNames # Making it frozen means that it doesn't get duped when used to # key the @attributes in read_attribute. # - # source://activemodel//lib/active_model/attribute_methods.rb#556 + # source://activemodel//lib/active_model/attribute_methods.rb#573 def define_attribute_accessor_method(owner, attr_name, writer: T.unsafe(nil)); end end end -# source://activemodel//lib/active_model/attribute_methods.rb#540 +# source://activemodel//lib/active_model/attribute_methods.rb#557 ActiveModel::AttributeMethods::AttrNames::DEF_SAFE_NAME = T.let(T.unsafe(nil), Regexp) # source://activemodel//lib/active_model/attribute_methods.rb#68 @@ -684,22 +684,22 @@ module ActiveModel::AttributeMethods::ClassMethods # source://activemodel//lib/active_model/attribute_methods.rb#204 def alias_attribute(new_name, old_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#224 + # source://activemodel//lib/active_model/attribute_methods.rb#222 def alias_attribute_method_definition(code_generator, pattern, new_name, old_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#375 + # source://activemodel//lib/active_model/attribute_methods.rb#392 def aliases_by_attribute_name; end # Returns the original name for the alias +name+ # - # source://activemodel//lib/active_model/attribute_methods.rb#258 + # source://activemodel//lib/active_model/attribute_methods.rb#256 def attribute_alias(name); end # Is +new_name+ an alias? # # @return [Boolean] # - # source://activemodel//lib/active_model/attribute_methods.rb#253 + # source://activemodel//lib/active_model/attribute_methods.rb#251 def attribute_alias?(new_name); end # Declares a method available for all attributes with the given prefix @@ -832,8 +832,11 @@ module ActiveModel::AttributeMethods::ClassMethods # person.name # => "Bob" # person.name_short? # => true # - # source://activemodel//lib/active_model/attribute_methods.rb#324 - def define_attribute_method(attr_name, _owner: T.unsafe(nil)); end + # source://activemodel//lib/active_model/attribute_methods.rb#322 + def define_attribute_method(attr_name, _owner: T.unsafe(nil), as: T.unsafe(nil)); end + + # source://activemodel//lib/active_model/attribute_methods.rb#331 + def define_attribute_method_pattern(pattern, attr_name, owner:, as:, override: T.unsafe(nil)); end # Declares the attributes that should be prefixed and suffixed by # +ActiveModel::AttributeMethods+. @@ -859,7 +862,7 @@ module ActiveModel::AttributeMethods::ClassMethods # end # end # - # source://activemodel//lib/active_model/attribute_methods.rb#285 + # source://activemodel//lib/active_model/attribute_methods.rb#283 def define_attribute_methods(*attr_names); end # source://activemodel//lib/active_model/attribute_methods.rb#212 @@ -894,7 +897,7 @@ module ActiveModel::AttributeMethods::ClassMethods # person.name_short? # => NoMethodError # person.first_name # => NoMethodError # - # source://activemodel//lib/active_model/attribute_methods.rb#368 + # source://activemodel//lib/active_model/attribute_methods.rb#385 def undefine_attribute_methods; end private @@ -909,69 +912,69 @@ module ActiveModel::AttributeMethods::ClassMethods # significantly (in our case our test suite finishes 10% faster with # this cache). # - # source://activemodel//lib/active_model/attribute_methods.rb#408 + # source://activemodel//lib/active_model/attribute_methods.rb#425 def attribute_method_patterns_cache; end - # source://activemodel//lib/active_model/attribute_methods.rb#412 + # source://activemodel//lib/active_model/attribute_methods.rb#429 def attribute_method_patterns_matching(method_name); end # Define a method `name` in `mod` that dispatches to `send` # using the given `extra` args. This falls back on `send` # if the called name cannot be compiled. # - # source://activemodel//lib/active_model/attribute_methods.rb#421 - def define_proxy_call(code_generator, name, proxy_target, parameters, *call_args, namespace:); end + # source://activemodel//lib/active_model/attribute_methods.rb#438 + def define_proxy_call(code_generator, name, proxy_target, parameters, *call_args, namespace:, as: T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_methods.rb#391 + # source://activemodel//lib/active_model/attribute_methods.rb#408 def generated_attribute_methods; end - # source://activemodel//lib/active_model/attribute_methods.rb#380 + # source://activemodel//lib/active_model/attribute_methods.rb#397 def inherited(base); end # @return [Boolean] # - # source://activemodel//lib/active_model/attribute_methods.rb#395 + # source://activemodel//lib/active_model/attribute_methods.rb#412 def instance_method_already_implemented?(method_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#387 + # source://activemodel//lib/active_model/attribute_methods.rb#404 def resolve_attribute_name(name); end end -# source://activemodel//lib/active_model/attribute_methods.rb#448 +# source://activemodel//lib/active_model/attribute_methods.rb#465 class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern # @return [AttributeMethodPattern] a new instance of AttributeMethodPattern # - # source://activemodel//lib/active_model/attribute_methods.rb#453 + # source://activemodel//lib/active_model/attribute_methods.rb#470 def initialize(prefix: T.unsafe(nil), suffix: T.unsafe(nil), parameters: T.unsafe(nil)); end - # source://activemodel//lib/active_model/attribute_methods.rb#462 + # source://activemodel//lib/active_model/attribute_methods.rb#479 def match(method_name); end - # source://activemodel//lib/active_model/attribute_methods.rb#468 + # source://activemodel//lib/active_model/attribute_methods.rb#485 def method_name(attr_name); end # Returns the value of attribute parameters. # - # source://activemodel//lib/active_model/attribute_methods.rb#449 + # source://activemodel//lib/active_model/attribute_methods.rb#466 def parameters; end # Returns the value of attribute prefix. # - # source://activemodel//lib/active_model/attribute_methods.rb#449 + # source://activemodel//lib/active_model/attribute_methods.rb#466 def prefix; end # Returns the value of attribute proxy_target. # - # source://activemodel//lib/active_model/attribute_methods.rb#449 + # source://activemodel//lib/active_model/attribute_methods.rb#466 def proxy_target; end # Returns the value of attribute suffix. # - # source://activemodel//lib/active_model/attribute_methods.rb#449 + # source://activemodel//lib/active_model/attribute_methods.rb#466 def suffix; end end -# source://activemodel//lib/active_model/attribute_methods.rb#451 +# source://activemodel//lib/active_model/attribute_methods.rb#468 class ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern::AttributeMethod < ::Struct # Returns the value of attribute attr_name # @@ -1450,7 +1453,7 @@ module ActiveModel::Attributes::ClassMethods private # source://activemodel//lib/active_model/attributes.rb#79 - def define_method_attribute=(name, owner:); end + def define_method_attribute=(canonical_name, owner:, as: T.unsafe(nil)); end end # +BlockValidator+ is a special +EachValidator+ which receives a block on initialization @@ -4942,7 +4945,7 @@ ActiveModel::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveModel::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activemodel//lib/active_model/gem_version.rb#13 -ActiveModel::VERSION::PRE = T.let(T.unsafe(nil), String) +ActiveModel::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) # source://activemodel//lib/active_model/gem_version.rb#15 ActiveModel::VERSION::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/activerecord@7.1.3.3.rbi b/sorbet/rbi/gems/activerecord@7.1.4.rbi similarity index 97% rename from sorbet/rbi/gems/activerecord@7.1.3.3.rbi rename to sorbet/rbi/gems/activerecord@7.1.4.rbi index 388689c8..a2342e58 100644 --- a/sorbet/rbi/gems/activerecord@7.1.3.3.rbi +++ b/sorbet/rbi/gems/activerecord@7.1.4.rbi @@ -5,7 +5,7 @@ # Please instead update this file by running `bin/tapioca gem activerecord`. -# :include: activerecord/README.rdoc +# :include: ../README.rdoc # # source://activerecord//lib/active_record/gem_version.rb#3 module ActiveRecord @@ -2559,7 +2559,7 @@ module ActiveRecord::Associations::ClassMethods # belongs_to :account, strict_loading: true # belong_to :note, query_constraints: [:organization_id, :note_id] # - # source://activerecord//lib/active_record/associations.rb#1886 + # source://activerecord//lib/active_record/associations.rb#1892 def belongs_to(name, scope = T.unsafe(nil), **options); end # Specifies a many-to-many relationship with another class. This associates two classes via an @@ -2739,7 +2739,7 @@ module ActiveRecord::Associations::ClassMethods # has_and_belongs_to_many :categories, -> { readonly } # has_and_belongs_to_many :categories, strict_loading: true # - # source://activerecord//lib/active_record/associations.rb#2067 + # source://activerecord//lib/active_record/associations.rb#2073 def has_and_belongs_to_many(name, scope = T.unsafe(nil), **options, &extension); end # Specifies a one-to-many association. The following methods for retrieval and query of @@ -2978,6 +2978,11 @@ module ActiveRecord::Associations::ClassMethods # Serves as a composite foreign key. Defines the list of columns to be used to query the associated object. # This is an optional option. By default Rails will attempt to derive the value automatically. # When the value is set the Array size must match associated model's primary key or +query_constraints+ size. + # [+:index_errors+] + # Enables differentiation of multiple validation errors from the association records, by including + # an index in the error attribute name, e.g. +roles[2].level+. + # The index is based on association order, i.e. database order, with yet to be + # persisted new records placed at the end. # # Option examples: # has_many :comments, -> { order("posted_on") } @@ -2991,8 +2996,9 @@ module ActiveRecord::Associations::ClassMethods # has_many :subscribers, through: :subscriptions, disable_joins: true # has_many :comments, strict_loading: true # has_many :comments, query_constraints: [:blog_id, :post_id] + # has_many :comments, index_errors: true # - # source://activerecord//lib/active_record/associations.rb#1522 + # source://activerecord//lib/active_record/associations.rb#1528 def has_many(name, scope = T.unsafe(nil), **options, &extension); end # Specifies a one-to-one association with another class. This method should only be used @@ -3177,7 +3183,7 @@ module ActiveRecord::Associations::ClassMethods # has_one :credit_card, strict_loading: true # has_one :employment_record_book, query_constraints: [:organization_id, :employee_id] # - # source://activerecord//lib/active_record/associations.rb#1708 + # source://activerecord//lib/active_record/associations.rb#1714 def has_one(name, scope = T.unsafe(nil), **options); end end @@ -5082,7 +5088,7 @@ class ActiveRecord::Associations::JoinDependency # source://activerecord//lib/active_record/associations/join_dependency.rb#242 def construct(ar_parent, parent, row, seen, model_cache, strict_loading_value); end - # source://activerecord//lib/active_record/associations/join_dependency.rb#280 + # source://activerecord//lib/active_record/associations/join_dependency.rb#278 def construct_model(record, node, row, model_cache, id, strict_loading_value); end # source://activerecord//lib/active_record/associations/join_dependency.rb#223 @@ -6111,7 +6117,7 @@ module ActiveRecord::AttributeMethods # person[:organization_id] # => ActiveModel::MissingAttributeError: missing attribute 'organization_id' for Person # person[:id] # => nil # - # source://activerecord//lib/active_record/attribute_methods.rb#412 + # source://activerecord//lib/active_record/attribute_methods.rb#422 def [](attr_name); end # Updates the attribute identified by +attr_name+ using the specified @@ -6124,12 +6130,12 @@ module ActiveRecord::AttributeMethods # person[:date_of_birth] = "2004-12-12" # person[:date_of_birth] # => Date.new(2004, 12, 12) # - # source://activerecord//lib/active_record/attribute_methods.rb#425 + # source://activerecord//lib/active_record/attribute_methods.rb#435 def []=(attr_name, value); end # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#319 + # source://activerecord//lib/active_record/attribute_methods.rb#329 def _has_attribute?(attr_name); end # Returns the name of all database fields which have been read from this @@ -6161,7 +6167,7 @@ module ActiveRecord::AttributeMethods # end # end # - # source://activerecord//lib/active_record/attribute_methods.rb#457 + # source://activerecord//lib/active_record/attribute_methods.rb#467 def accessed_fields; end # Returns an #inspect-like string for the value of the @@ -6180,7 +6186,7 @@ module ActiveRecord::AttributeMethods # person.attribute_for_inspect(:tag_ids) # # => "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]" # - # source://activerecord//lib/active_record/attribute_methods.rb#362 + # source://activerecord//lib/active_record/attribute_methods.rb#372 def attribute_for_inspect(attr_name); end # Returns an array of names for the attributes available on this object. @@ -6192,7 +6198,7 @@ module ActiveRecord::AttributeMethods # person.attribute_names # # => ["id", "created_at", "updated_at", "name", "age"] # - # source://activerecord//lib/active_record/attribute_methods.rb#331 + # source://activerecord//lib/active_record/attribute_methods.rb#341 def attribute_names; end # Returns +true+ if the specified +attribute+ has been set by the user or by a @@ -6213,7 +6219,7 @@ module ActiveRecord::AttributeMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#384 + # source://activerecord//lib/active_record/attribute_methods.rb#394 def attribute_present?(attr_name); end # Returns a hash of all the attributes with their names as keys and the values of the attributes as values. @@ -6225,7 +6231,7 @@ module ActiveRecord::AttributeMethods # person.attributes # # => {"id"=>3, "created_at"=>Sun, 21 Oct 2012 04:53:04, "updated_at"=>Sun, 21 Oct 2012 04:53:04, "name"=>"Francesco", "age"=>22} # - # source://activerecord//lib/active_record/attribute_methods.rb#343 + # source://activerecord//lib/active_record/attribute_methods.rb#353 def attributes; end # Returns +true+ if the given attribute is in the attributes hash, otherwise +false+. @@ -6242,7 +6248,7 @@ module ActiveRecord::AttributeMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#313 + # source://activerecord//lib/active_record/attribute_methods.rb#323 def has_attribute?(attr_name); end # A Person object with a name attribute can ask person.respond_to?(:name), @@ -6264,38 +6270,46 @@ module ActiveRecord::AttributeMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#286 + # source://activerecord//lib/active_record/attribute_methods.rb#296 def respond_to?(name, include_private = T.unsafe(nil)); end private # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#462 + # source://activerecord//lib/active_record/attribute_methods.rb#502 def attribute_method?(attr_name); end # Filters out the virtual columns and also primary keys, from the attribute names, when the primary # key is to be generated (e.g. the id attribute has no value). # - # source://activerecord//lib/active_record/attribute_methods.rb#483 + # source://activerecord//lib/active_record/attribute_methods.rb#523 def attributes_for_create(attribute_names); end # Filters the primary keys, readonly attributes and virtual columns from the attribute names. # - # source://activerecord//lib/active_record/attribute_methods.rb#472 + # source://activerecord//lib/active_record/attribute_methods.rb#512 def attributes_for_update(attribute_names); end - # source://activerecord//lib/active_record/attribute_methods.rb#467 + # source://activerecord//lib/active_record/attribute_methods.rb#507 def attributes_with_values(attribute_names); end - # source://activerecord//lib/active_record/attribute_methods.rb#491 + # source://activerecord//lib/active_record/attribute_methods.rb#531 def format_for_inspect(name, value); end + # source://activerecord//lib/active_record/attribute_methods.rb#482 + def method_missing(name, *_arg1, **_arg2, &_arg3); end + # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#507 + # source://activerecord//lib/active_record/attribute_methods.rb#547 def pk_attribute?(name); end + # @return [Boolean] + # + # source://activerecord//lib/active_record/attribute_methods.rb#472 + def respond_to_missing?(name, include_private = T.unsafe(nil)); end + class << self # source://activerecord//lib/active_record/attribute_methods.rb#31 def dangerous_attribute_methods; end @@ -6443,13 +6457,13 @@ end module ActiveRecord::AttributeMethods::ClassMethods # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#255 + # source://activerecord//lib/active_record/attribute_methods.rb#265 def _has_attribute?(attr_name); end # source://activerecord//lib/active_record/attribute_methods.rb#53 def alias_attribute(new_name, old_name); end - # source://activerecord//lib/active_record/attribute_methods.rb#85 + # source://activerecord//lib/active_record/attribute_methods.rb#93 def alias_attribute_method_definition(code_generator, pattern, new_name, old_name); end # Returns +true+ if +attribute+ is an attribute method and table exists, @@ -6464,9 +6478,14 @@ module ActiveRecord::AttributeMethods::ClassMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#219 + # source://activerecord//lib/active_record/attribute_methods.rb#229 def attribute_method?(attribute); end + # @return [Boolean] + # + # source://activerecord//lib/active_record/attribute_methods.rb#144 + def attribute_methods_generated?; end + # Returns an array of column names as strings if it's not an abstract class and # table exists. Otherwise it returns an empty array. # @@ -6476,7 +6495,7 @@ module ActiveRecord::AttributeMethods::ClassMethods # Person.attribute_names # # => ["id", "created_at", "updated_at", "name", "age"] # - # source://activerecord//lib/active_record/attribute_methods.rb#231 + # source://activerecord//lib/active_record/attribute_methods.rb#241 def attribute_names; end # A method name is 'dangerous' if it is already (re)defined by Active Record, but @@ -6484,7 +6503,7 @@ module ActiveRecord::AttributeMethods::ClassMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#178 + # source://activerecord//lib/active_record/attribute_methods.rb#188 def dangerous_attribute_method?(name); end # A class method is 'dangerous' if it is already (re)defined by Active Record, but @@ -6492,18 +6511,21 @@ module ActiveRecord::AttributeMethods::ClassMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#196 + # source://activerecord//lib/active_record/attribute_methods.rb#206 def dangerous_class_method?(method_name); end # Generates all the attribute related methods for columns in the database # accessors, mutators and query methods. # - # source://activerecord//lib/active_record/attribute_methods.rb#126 + # source://activerecord//lib/active_record/attribute_methods.rb#131 def define_attribute_methods; end # source://activerecord//lib/active_record/attribute_methods.rb#63 def eagerly_generate_alias_attribute_methods(_new_name, _old_name); end + # source://activerecord//lib/active_record/attribute_methods.rb#86 + def generate_alias_attribute_methods(code_generator, new_name, old_name); end + # source://activerecord//lib/active_record/attribute_methods.rb#67 def generate_alias_attributes; end @@ -6520,7 +6542,7 @@ module ActiveRecord::AttributeMethods::ClassMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#249 + # source://activerecord//lib/active_record/attribute_methods.rb#259 def has_attribute?(attr_name); end # source://activerecord//lib/active_record/attribute_methods.rb#43 @@ -6543,20 +6565,20 @@ module ActiveRecord::AttributeMethods::ClassMethods # # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#160 + # source://activerecord//lib/active_record/attribute_methods.rb#170 def instance_method_already_implemented?(method_name); end # @return [Boolean] # - # source://activerecord//lib/active_record/attribute_methods.rb#182 + # source://activerecord//lib/active_record/attribute_methods.rb#192 def method_defined_within?(name, klass, superklass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/attribute_methods.rb#138 + # source://activerecord//lib/active_record/attribute_methods.rb#148 def undefine_attribute_methods; end private - # source://activerecord//lib/active_record/attribute_methods.rb#260 + # source://activerecord//lib/active_record/attribute_methods.rb#270 def inherited(child_class); end end @@ -6587,7 +6609,7 @@ end # person.name_in_database # => "Alice" # person.saved_change_to_name? # => true # person.saved_change_to_name # => ["Allison", "Alice"] -# person.name_before_last_change # => "Allison" +# person.name_before_last_save # => "Allison" # # Similar to ActiveModel::Dirty, methods can be invoked as # +saved_change_to_name?+ or by passing an argument to the generic method @@ -6792,19 +6814,10 @@ end class ActiveRecord::AttributeMethods::GeneratedAttributeMethods < ::Module include ::Mutex_m - # source://mutex_m/0.2.0/mutex_m.rb#91 def lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#81 def locked?; end - - # source://mutex_m/0.2.0/mutex_m.rb#76 def synchronize(&block); end - - # source://mutex_m/0.2.0/mutex_m.rb#86 def try_lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#96 def unlock; end end @@ -7006,7 +7019,7 @@ module ActiveRecord::AttributeMethods::Read::ClassMethods private # source://activerecord//lib/active_record/attribute_methods/read.rb#11 - def define_method_attribute(name, owner:); end + def define_method_attribute(canonical_name, owner:, as: T.unsafe(nil)); end end # = Active Record Attribute Methods \Serialization @@ -7313,7 +7326,7 @@ module ActiveRecord::AttributeMethods::Write::ClassMethods private # source://activerecord//lib/active_record/attribute_methods/write.rb#15 - def define_method_attribute=(name, owner:); end + def define_method_attribute=(canonical_name, owner:, as: T.unsafe(nil)); end end # See ActiveRecord::Attributes::ClassMethods for documentation @@ -7757,14 +7770,14 @@ module ActiveRecord::AutosaveAssociation private - # source://activerecord//lib/active_record/autosave_association.rb#554 + # source://activerecord//lib/active_record/autosave_association.rb#557 def _ensure_no_duplicate_errors; end # If the record is new or it has changed, returns true. # # @return [Boolean] # - # source://activerecord//lib/active_record/autosave_association.rb#475 + # source://activerecord//lib/active_record/autosave_association.rb#478 def _record_changed?(reflection, record, key); end # Is used as an around_save callback to check while saving a collection @@ -7782,7 +7795,7 @@ module ActiveRecord::AutosaveAssociation # @return [Boolean] # - # source://activerecord//lib/active_record/autosave_association.rb#482 + # source://activerecord//lib/active_record/autosave_association.rb#485 def association_foreign_key_changed?(reflection, record, key); end # Returns whether or not the association is valid and applies any errors to @@ -7794,12 +7807,12 @@ module ActiveRecord::AutosaveAssociation # source://activerecord//lib/active_record/autosave_association.rb#335 def association_valid?(reflection, record, index = T.unsafe(nil)); end - # source://activerecord//lib/active_record/autosave_association.rb#534 + # source://activerecord//lib/active_record/autosave_association.rb#537 def compute_primary_key(reflection, record); end # @return [Boolean] # - # source://activerecord//lib/active_record/autosave_association.rb#550 + # source://activerecord//lib/active_record/autosave_association.rb#553 def custom_validation_context?; end # source://activerecord//lib/active_record/autosave_association.rb#276 @@ -7807,7 +7820,7 @@ module ActiveRecord::AutosaveAssociation # @return [Boolean] # - # source://activerecord//lib/active_record/autosave_association.rb#491 + # source://activerecord//lib/active_record/autosave_association.rb#494 def inverse_polymorphic_association_changed?(reflection, record); end # Go through nested autosave associations that are loaded in memory (without loading @@ -7826,7 +7839,7 @@ module ActiveRecord::AutosaveAssociation # # In addition, it will destroy the association if it was marked for destruction. # - # source://activerecord//lib/active_record/autosave_association.rb#502 + # source://activerecord//lib/active_record/autosave_association.rb#505 def save_belongs_to_association(reflection); end # Saves any new associated records, or all loaded autosave associations if @@ -8173,7 +8186,6 @@ end # # source://activerecord//lib/active_record/base.rb#282 class ActiveRecord::Base - include ::ActionText::Encryption include ::ActiveModel::Access include ::ActiveRecord::Core include ::ActiveRecord::Persistence @@ -8235,7 +8247,6 @@ class ActiveRecord::Base include ::ActiveRecord::Marshalling::Methods include ::ActiveStorage::Attached::Model include ::ActiveStorage::Reflection::ActiveRecordExtensions - include ::ActionText::Attribute extend ::ActiveModel::Naming extend ::ActiveSupport::Benchmarkable extend ::ActiveSupport::DescendantsTracker @@ -8296,30 +8307,29 @@ class ActiveRecord::Base extend ::ActiveRecord::Normalization::ClassMethods extend ::ActiveStorage::Attached::Model::ClassMethods extend ::ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods - extend ::ActionText::Attribute::ClassMethods - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _before_commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _create_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _destroy_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _find_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _initialize_callbacks; end # source://activerecord//lib/active_record/reflection.rb#11 @@ -8328,64 +8338,64 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _rollback_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_before_commit_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_commit_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_create_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_destroy_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_find_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_initialize_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_rollback_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_save_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_touch_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_update_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_validation_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _save_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _touch_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _update_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _validation_callbacks; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators?; end # source://activerecord//lib/active_record/reflection.rb#12 @@ -8394,22 +8404,22 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#12 def aggregate_reflections?; end - # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.4/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.4/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end # source://activerecord//lib/active_record/reflection.rb#13 @@ -8484,10 +8494,10 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # source://activerecord//lib/active_record/locking/optimistic.rb#56 @@ -8502,7 +8512,7 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#22 def logger?; end - # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 + # source://activemodel/7.1.4/lib/active_model/naming.rb#255 def model_name(&block); end # source://activerecord//lib/active_record/nested_attributes.rb#15 @@ -8520,7 +8530,7 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 @@ -8607,22 +8617,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.3/lib/active_model/validations.rb#67 + # source://activemodel/7.1.4/lib/active_model/validations.rb#67 def validation_context; end private - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 + # source://activemodel/7.1.4/lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end # source://activerecord//lib/active_record/readonly_attributes.rb#11 @@ -8634,16 +8644,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/readonly_attributes.rb#11 def _attr_readonly?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _before_commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _before_commit_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _commit_callbacks=(value); end # source://activerecord//lib/active_record/counter_cache.rb#9 @@ -8655,10 +8665,10 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/counter_cache.rb#9 def _counter_cache_columns?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _create_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _create_callbacks=(value); end # source://activerecord//lib/active_record/core.rb#24 @@ -8670,22 +8680,22 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#24 def _destroy_association_async_job?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _destroy_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _destroy_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _find_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _find_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _initialize_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _initialize_callbacks=(value); end # source://activerecord//lib/active_record/reflection.rb#11 @@ -8697,70 +8707,70 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _rollback_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _rollback_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _save_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _save_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _touch_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _touch_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _update_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _update_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _validation_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _validation_callbacks=(value); end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators?; end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_find(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_initialize(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_touch(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end # source://activerecord//lib/active_record/reflection.rb#12 @@ -8775,16 +8785,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#105 def application_record_class?; end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end # source://activerecord//lib/active_record/core.rb#125 @@ -8793,31 +8803,31 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/core.rb#129 def asynchronous_queries_tracker; end - # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.4/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.4/lib/active_storage/reflection.rb#53 def attachment_reflections=(value); end - # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.4/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases=(value); end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns=(value); end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end # source://activerecord//lib/active_record/attributes.rb#11 @@ -8838,16 +8848,16 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end # source://activerecord//lib/active_record/core.rb#89 @@ -9042,13 +9052,13 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/model_schema.rb#164 def implicit_order_column?; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # source://activerecord//lib/active_record/model_schema.rb#167 @@ -9111,13 +9121,13 @@ class ActiveRecord::Base # source://activerecord//lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter?; end # source://activerecord//lib/active_record/attribute_methods/dirty.rb#50 @@ -10449,22 +10459,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.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _checkin_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _checkout_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_checkin_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_checkout_callbacks(&block); end # Checks whether the connection to the database is still active. This includes @@ -10496,7 +10506,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activesupport/7.1.3.3/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.4/lib/active_support/deprecation/method_wrappers.rb#46 def all_foreign_keys_valid?(*args, **_arg1, &block); end # @return [Boolean] @@ -10510,13 +10520,13 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # should be overridden by adapters to implement common features with # non-standard syntax like handling duplicates or returning values. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#859 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#858 def build_insert_sql(insert); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#830 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#829 def case_insensitive_comparison(attribute, value); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#826 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#825 def case_sensitive_comparison(attribute, value); end # Override to check all foreign key constraints in a database. @@ -10529,23 +10539,23 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#208 def check_if_write_query(sql); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#874 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#873 def check_version; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#799 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#798 def clean!; end # Clear any caching the database adapter may be doing. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#754 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#755 def clear_cache!(new_connection: T.unsafe(nil)); end # Check the connection back in to the connection pool # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#846 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#845 def close; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#794 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#793 def connect!; end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#313 @@ -10567,18 +10577,18 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#386 def database_exists?; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#870 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#869 def database_version; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#850 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#849 def default_index_type?(index); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#234 def default_timezone; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#822 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#821 def default_uniqueness_comparison(attribute, value); end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -10601,13 +10611,13 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # undefined. This is called internally just before a forked process gets # rid of a connection that belonged to its parent. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#729 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#730 def discard!; end # Disconnects from the database if already connected. Otherwise, this # method does nothing. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#717 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#716 def disconnect!; end # This is meant to be implemented by the adapters that support custom enum types @@ -10647,7 +10657,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#627 def get_advisory_lock(lock_id); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#867 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#866 def get_database_version; end # Returns the value of attribute owner. @@ -10746,7 +10756,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # this client. If that is the case, generally you'll want to invalidate # the query cache using +ActiveRecord::Base.clear_query_cache+. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#814 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#813 def raw_connection; end # Disconnects from the database if already connected, and establishes a new @@ -10783,7 +10793,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#767 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#768 def requires_reloading?; end # Reset the state of this connection, directing the DBMS to clear @@ -10795,7 +10805,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # should call super immediately after resetting the connection (and while # still holding @lock). # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#741 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#742 def reset!; end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -10840,7 +10850,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # numbered migration that has been executed, or 0 if no schema # information is present / the database is empty. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#881 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#880 def schema_version; end # Seconds since this connection was returned to the pool @@ -11100,7 +11110,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # Removes the connection from the pool and disconnect it. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#748 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#749 def throw_away!; end # source://activerecord//lib/active_record/connection_adapters/abstract/query_cache.rb#23 @@ -11129,7 +11139,7 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # This is done under the hood by calling #active?. If the connection # is no longer active, then this method will reconnect to the database. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#774 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#775 def verify!; end # Returns the value of attribute visitor. @@ -11146,13 +11156,13 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # to both be thread-safe and not rely upon actual server communication. # This is useful for e.g. string escaping methods. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1099 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1098 def any_raw_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1204 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1203 def arel_visitor; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1088 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1087 def backoff(counter); end # Builds the result object. @@ -11160,24 +11170,24 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # This is an internal hook to make possible connection adapters to build # custom result objects with connection-specific data. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1215 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1214 def build_result(columns:, rows:, column_types: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1208 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1207 def build_statement_pool; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#840 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#839 def can_perform_case_insensitive_comparison_for?(column); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1190 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1189 def collector; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1179 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1178 def column_for(table_name, column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1185 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1184 def column_for_attribute(attribute); end # Perform any necessary initialization upon the newly-established @@ -11187,51 +11197,51 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # Implementations may assume this method will only be called while # holding @lock (or from #initialize). # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1226 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1225 def configure_connection; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1229 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1228 def default_prepared_statements; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1116 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1115 def extended_type_map_key; end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1074 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1073 def invalidate_transaction(exception); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1142 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1141 def log(sql, name = T.unsafe(nil), binds = T.unsafe(nil), type_casted_binds = T.unsafe(nil), statement_name = T.unsafe(nil), async: T.unsafe(nil), &block); end # @raise [NotImplementedError] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1092 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1091 def reconnect; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#962 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#961 def reconnect_can_restore_state?; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1070 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1069 def retryable_connection_error?(exception); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1081 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1080 def retryable_query_error?(exception); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1158 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1157 def transform_query(sql); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1165 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1164 def translate_exception(exception, message:, sql:, binds:); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1132 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1131 def translate_exception_class(e, sql, binds); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1122 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1121 def type_map; end # Similar to any_raw_connection, but ensures it is validated and @@ -11240,19 +11250,19 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # server... but some drivers fail if they know the connection has gone # away. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1108 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1107 def valid_raw_connection; end # Mark the connection as verified. Call this inside a # `with_raw_connection` block only when the block is guaranteed to # exercise the raw connection. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1066 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1065 def verified!; end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1233 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1232 def warning_ignored?(warning); end # Lock the monitor, ensure we're properly connected and @@ -11288,34 +11298,34 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # still-yielded connection in the outer block), but we currently # provide no special enforcement there. # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#999 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#998 def with_raw_connection(allow_retry: T.unsafe(nil), materialize_transactions: T.unsafe(nil)); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1175 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#1174 def without_prepared_statement?(binds); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _checkin_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _checkin_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _checkout_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _checkout_callbacks=(value); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#89 @@ -11335,13 +11345,13 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#124 def dbconsole(config, options = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#893 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#892 def extended_type_map(default_timezone:); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#95 def find_cmd_and_exec(commands, *args); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#886 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#885 def register_class_with_precision(mapping, key, klass, **kwargs); end # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#68 @@ -11355,19 +11365,19 @@ class ActiveRecord::ConnectionAdapters::AbstractAdapter private - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#953 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#952 def extract_limit(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#949 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#948 def extract_precision(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#942 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#941 def extract_scale(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#902 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#901 def initialize_type_map(m); end - # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#935 + # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#934 def register_class_with_limit(mapping, key, klass); end end end @@ -11387,7 +11397,7 @@ ActiveRecord::ConnectionAdapters::AbstractAdapter::EXCEPTION_IMMEDIATE = T.let(T # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#195 ActiveRecord::ConnectionAdapters::AbstractAdapter::EXCEPTION_NEVER = T.let(T.unsafe(nil), Hash) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#959 +# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#958 ActiveRecord::ConnectionAdapters::AbstractAdapter::EXTENDED_TYPE_MAPS = T.let(T.unsafe(nil), Concurrent::Map) # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#180 @@ -11399,7 +11409,7 @@ ActiveRecord::ConnectionAdapters::AbstractAdapter::SIMPLE_INT = T.let(T.unsafe(n # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#177 ActiveRecord::ConnectionAdapters::AbstractAdapter::THREAD_LOCK = T.let(T.unsafe(nil), ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor) -# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#958 +# source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#957 ActiveRecord::ConnectionAdapters::AbstractAdapter::TYPE_MAP = T.let(T.unsafe(nil), ActiveRecord::Type::TypeMap) # source://activerecord//lib/active_record/connection_adapters/abstract_adapter.rb#274 @@ -12373,7 +12383,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.3/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.4/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. @@ -12544,7 +12554,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#647 def acquire_connection(checkout_timeout); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#716 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#723 def adopt_connection(conn); end # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#541 @@ -12559,7 +12569,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#507 def bulk_make_new_connections(num_new_conns_needed); end - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#726 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#733 def checkout_and_verify(c); end # -- @@ -12570,7 +12580,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # @raise [ConnectionNotEstablished] # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#721 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#728 def checkout_new_connection; end # -- @@ -12606,7 +12616,7 @@ class ActiveRecord::ConnectionAdapters::ConnectionPool # Implementation constraint: a newly established connection returned by this # method must be in the +.leased+ state. # - # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#689 + # source://activerecord//lib/active_record/connection_adapters/abstract/connection_pool.rb#696 def try_to_checkout_new_connection; end # Take control of all existing connections so a "group" action such as @@ -13692,10 +13702,7 @@ class ActiveRecord::ConnectionAdapters::PoolConfig # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#47 def disconnect!(automatic_reconnect: T.unsafe(nil)); end - # source://mutex_m/0.2.0/mutex_m.rb#91 def lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#81 def locked?; end # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#62 @@ -13721,13 +13728,8 @@ class ActiveRecord::ConnectionAdapters::PoolConfig # source://activerecord//lib/active_record/connection_adapters/pool_config.rb#8 def shard; end - # source://mutex_m/0.2.0/mutex_m.rb#76 def synchronize(&block); end - - # source://mutex_m/0.2.0/mutex_m.rb#86 def try_lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#96 def unlock; end class << self @@ -14250,7 +14252,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.3/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.4/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 @@ -14315,10 +14317,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.3/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.4/lib/active_support/deprecation/method_wrappers.rb#46 def load_from(*args, **_arg1, &block); end - # source://activesupport/7.1.3.3/lib/active_support/deprecation/method_wrappers.rb#46 + # source://activesupport/7.1.4/lib/active_support/deprecation/method_wrappers.rb#46 def new(*args, **_arg1, &block); end private @@ -14661,7 +14663,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # add_reference(:products, :supplier, foreign_key: { to_table: :firms }) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1030 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1034 def add_belongs_to(table_name, ref_name, **options); end # Adds a new check constraint to the table. +expression+ is a String @@ -14681,7 +14683,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # [:validate] # (PostgreSQL only) Specify whether or not the constraint should be validated. Defaults to +true+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1260 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1264 def add_check_constraint(table_name, expression, if_not_exists: T.unsafe(nil), **options); end # Add a new +type+ column named +column_name+ to +table_name+. @@ -14847,7 +14849,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # (PostgreSQL only) Specify whether or not the foreign key should be deferrable. Valid values are booleans or # +:deferred+ or +:immediate+ to specify the default behavior. Defaults to +false+. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1140 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1144 def add_foreign_key(from_table, to_table, **options); end # Adds a new index to the table. +column_name+ can be a single Symbol, or @@ -14986,7 +14988,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#886 def add_index(table_name, column_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1436 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1440 def add_index_options(table_name, column_name, name: T.unsafe(nil), if_not_exists: T.unsafe(nil), internal: T.unsafe(nil), **options); end # Adds a reference. The reference column is a bigint by default, @@ -15036,7 +15038,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # add_reference(:products, :supplier, foreign_key: { to_table: :firms }) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1030 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1034 def add_reference(table_name, ref_name, **options); end # Adds timestamps (+created_at+ and +updated_at+) columns to +table_name+. @@ -15044,10 +15046,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # add_timestamps(:suppliers, null: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1419 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1423 def add_timestamps(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1325 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1329 def assume_migrated_upto_version(version); end # Builds an AlterTable object for adding a column to a table. @@ -15097,7 +15099,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#328 def build_create_table_definition(table_name, id: T.unsafe(nil), primary_key: T.unsafe(nil), force: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1515 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1519 def bulk_change_table(table_name, operations); end # Changes the column's definition according to the new options. @@ -15120,7 +15122,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # @raise [NotImplementedError] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1497 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1501 def change_column_comment(table_name, column_name, comment_or_changes); end # Sets a new default value for a column: @@ -15255,7 +15257,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # @raise [NotImplementedError] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1487 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1491 def change_table_comment(table_name, comment_or_changes); end # Checks to see if a check constraint exists on a table for a given check constraint definition. @@ -15264,10 +15266,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1309 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1313 def check_constraint_exists?(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1272 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1276 def check_constraint_options(table_name, expression, options); end # Returns an array of check constraints for the given table. @@ -15275,7 +15277,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # @raise [NotImplementedError] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1240 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1244 def check_constraints(table_name); end # Checks to see if a column exists in a given table. @@ -15311,7 +15313,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # columns_for_distinct("posts.id", ["posts.created_at desc"]) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1385 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1389 def columns_for_distinct(columns, orders); end # Creates a new join table with the name created using the lexical order of the first two @@ -15355,7 +15357,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#375 def create_join_table(table_1, table_2, column_options: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1501 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1505 def create_schema_dumper(options); end # Creates a new table with the name +table_name+. +table_name+ may either @@ -15519,7 +15521,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#34 def data_sources; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1389 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1393 def distinct_relation_for_primary_key(relation); end # Drops the join table specified by the given arguments. @@ -15548,10 +15550,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#526 def drop_table(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1316 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1320 def dump_schema_information; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1208 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1212 def foreign_key_column_for(table_name, column_name); end # Checks to see if a foreign key exists on a table for a given foreign key definition. @@ -15567,10 +15569,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1204 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1208 def foreign_key_exists?(from_table, to_table = T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1213 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1217 def foreign_key_options(from_table, to_table, options); end # Returns an array of foreign keys for the given table. @@ -15578,10 +15580,10 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # @raise [NotImplementedError] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1070 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1074 def foreign_keys(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1464 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1468 def index_algorithm(algorithm); end # Checks to see if an index exists on a table for a given index definition. @@ -15613,7 +15615,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#978 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#982 def index_name_exists?(table_name, index_name); end # Returns an array of indexes for the given table. @@ -15623,12 +15625,12 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#81 def indexes(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1321 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1325 def internal_string_options_for_primary_key; end # Returns the maximum length of an index name in bytes. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1553 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1557 def max_index_name_size; end # Returns a hash of mappings from the abstract data types to the native @@ -15640,7 +15642,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1477 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1481 def options_include_default?(options); end # Returns just a table's primary key @@ -15648,7 +15650,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#145 def primary_key(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1470 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1474 def quoted_columns_for_index(column_names, options); end # Removes the reference(s). Also removes a +type+ column if one exists. @@ -15665,7 +15667,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # remove_reference(:products, :user, foreign_key: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1049 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1053 def remove_belongs_to(table_name, ref_name, foreign_key: T.unsafe(nil), polymorphic: T.unsafe(nil), **options); end # Removes the given check constraint from the table. Removing a check constraint @@ -15682,7 +15684,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # to provide this in a migration's +change+ method so it can be reverted. # In that case, +expression+ will be used by #add_check_constraint. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1291 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1295 def remove_check_constraint(table_name, expression = T.unsafe(nil), if_exists: T.unsafe(nil), **options); end # Removes the column from the table definition. @@ -15746,7 +15748,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # [:to_table] # The name of the table that contains the referenced primary key. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1181 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1185 def remove_foreign_key(from_table, to_table = T.unsafe(nil), **options); end # Removes the given index from the table. @@ -15803,14 +15805,14 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # # remove_reference(:products, :user, foreign_key: true) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1049 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1053 def remove_reference(table_name, ref_name, foreign_key: T.unsafe(nil), polymorphic: T.unsafe(nil), **options); end # Removes the timestamp columns (+created_at+ and +updated_at+) from the table definition. # # remove_timestamps(:suppliers) # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1428 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1432 def remove_timestamps(table_name, **options); end # Renames a column. @@ -15843,7 +15845,7 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # Returns an instance of SchemaCreation, which can be used to visit a schema definition # object and return DDL. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1511 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1515 def schema_creation; end # Truncates a table alias according to the limits of the current adapter. @@ -15873,24 +15875,24 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#51 def tables; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1345 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1349 def type_to_sql(type, limit: T.unsafe(nil), precision: T.unsafe(nil), scale: T.unsafe(nil), **_arg4); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1432 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1436 def update_table_definition(table_name, base); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1505 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1509 def use_foreign_keys?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1544 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1548 def valid_column_definition_options; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1548 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1552 def valid_primary_key_options; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1540 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1544 def valid_table_definition_options; end # Checks to see if the view +view_name+ exists on the database. @@ -15909,144 +15911,144 @@ module ActiveRecord::ConnectionAdapters::SchemaStatements private - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1797 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1801 def add_column_for_alter(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1582 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1586 def add_index_sort_order(quoted_columns, **options); end # Overridden by the MySQL adapter for supporting index lengths and by # the PostgreSQL adapter for supporting operator classes. # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1599 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1603 def add_options_for_index_columns(quoted_columns, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1820 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1824 def add_timestamps_for_alter(table_name, **options); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1789 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1793 def can_remove_index_by_name?(column_name, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1803 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1807 def change_column_default_for_alter(table_name, column_name, default_or_changes); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1757 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1761 def check_constraint_for(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1763 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1767 def check_constraint_for!(table_name, expression: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1747 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1751 def check_constraint_name(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1578 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1582 def column_options_keys; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1665 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1669 def create_alter_table(name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1661 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1665 def create_table_definition(name, **options); end # @raise [NotImplementedError] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1850 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1854 def data_source_sql(name = T.unsafe(nil), type: T.unsafe(nil)); end # Try to identify whether the given column name is an expression # # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1705 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1709 def expression_column_name?(column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1735 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1739 def extract_foreign_key_action(specifier); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1780 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1784 def extract_new_comment_value(default_or_changes); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1780 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1784 def extract_new_default_value(default_or_changes); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1677 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1681 def fetch_type_metadata(sql_type); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1725 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1729 def foreign_key_for(from_table, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1730 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1734 def foreign_key_for!(from_table, to_table: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1715 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1719 def foreign_key_name(table_name, options); end # @return [Boolean] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1743 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1747 def foreign_keys_enabled?; end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1558 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1562 def generate_index_name(table_name, column); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1688 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1692 def index_column_names(column_names); end # @raise [ArgumentError] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1607 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1611 def index_name_for_remove(table_name, column_name, options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1696 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1700 def index_name_options(column_names); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1837 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1841 def insert_versions_sql(versions); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1589 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1593 def options_for_index_columns(options); end # @raise [NotImplementedError] # - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1854 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1858 def quoted_scope(name = T.unsafe(nil), type: T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1793 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1797 def reference_name_for_table(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1812 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1816 def remove_column_for_alter(table_name, column_name, type = T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1816 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1820 def remove_columns_for_alter(table_name, *column_names, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1833 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1837 def remove_timestamps_for_alter(table_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1648 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1652 def rename_column_indexes(table_name, column_name, new_column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1808 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1812 def rename_column_sql(table_name, column_name, new_column_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1639 - def rename_table_indexes(table_name, new_name); end + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1643 + def rename_table_indexes(table_name, new_name, **options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1709 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1713 def strip_table_name_prefix_and_suffix(table_name); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1572 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1576 def validate_change_column_null_argument!(value); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1669 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1673 def validate_create_table_options!(options); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1768 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1772 def validate_index_length!(table_name, new_name, internal = T.unsafe(nil)); end - # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1774 + # source://activerecord//lib/active_record/connection_adapters/abstract/schema_statements.rb#1778 def validate_table_length!(table_name); end end @@ -17380,7 +17382,7 @@ module ActiveRecord::Core # source://activerecord//lib/active_record/core.rb#645 def blank?; end - # source://activerecord//lib/active_record/core.rb#713 + # source://activerecord//lib/active_record/core.rb#718 def connection_handler; end # Populate +coder+ with attributes about this record that should be @@ -17462,7 +17464,7 @@ module ActiveRecord::Core # Returns the contents of the record as a nicely formatted string. # - # source://activerecord//lib/active_record/core.rb#718 + # source://activerecord//lib/active_record/core.rb#723 def inspect; end # @return [Boolean] @@ -17473,7 +17475,7 @@ module ActiveRecord::Core # Takes a PP and prettily prints this record to it, allowing you to get a nice result from pp record # when pp is required. # - # source://activerecord//lib/active_record/core.rb#736 + # source://activerecord//lib/active_record/core.rb#741 def pretty_print(pp); end # Marks this record as read only. @@ -17482,7 +17484,7 @@ module ActiveRecord::Core # customer.readonly! # customer.save # Raises an ActiveRecord::ReadOnlyRecord # - # source://activerecord//lib/active_record/core.rb#709 + # source://activerecord//lib/active_record/core.rb#714 def readonly!; end # Returns +true+ if the record is read only. @@ -17532,6 +17534,13 @@ module ActiveRecord::Core # source://activerecord//lib/active_record/core.rb#655 def strict_loading?; end + # Returns +true+ if the record uses strict_loading with +:all+ mode enabled. + # + # @return [Boolean] + # + # source://activerecord//lib/active_record/core.rb#705 + def strict_loading_all?; end + # Returns the value of attribute strict_loading_mode. # # source://activerecord//lib/active_record/core.rb#697 @@ -17548,19 +17557,19 @@ module ActiveRecord::Core # @return [Boolean] # - # source://activerecord//lib/active_record/core.rb#793 + # source://activerecord//lib/active_record/core.rb#798 def custom_inspect_method_defined?; end - # source://activerecord//lib/active_record/core.rb#772 + # source://activerecord//lib/active_record/core.rb#777 def init_internals; end # source://activerecord//lib/active_record/core.rb#525 def initialize_dup(other); end - # source://activerecord//lib/active_record/core.rb#790 + # source://activerecord//lib/active_record/core.rb#795 def initialize_internals_callback; end - # source://activerecord//lib/active_record/core.rb#804 + # source://activerecord//lib/active_record/core.rb#809 def inspection_filter; end # +Array#flatten+ will call +#to_ary+ (recursively) on each of the elements of @@ -17572,7 +17581,7 @@ module ActiveRecord::Core # # See also https://tenderlovemaking.com/2011/06/28/til-its-ok-to-return-nil-from-to_ary.html # - # source://activerecord//lib/active_record/core.rb#768 + # source://activerecord//lib/active_record/core.rb#773 def to_ary; end module GeneratedClassMethods @@ -17693,9 +17702,9 @@ module ActiveRecord::Core::ClassMethods def table_metadata; end end -# source://activerecord//lib/active_record/core.rb#797 +# source://activerecord//lib/active_record/core.rb#802 class ActiveRecord::Core::InspectionMask - # source://activerecord//lib/active_record/core.rb#798 + # source://activerecord//lib/active_record/core.rb#803 def pretty_print(pp); end end @@ -17711,10 +17720,15 @@ module ActiveRecord::CounterCache private - # source://activerecord//lib/active_record/counter_cache.rb#186 + # source://activerecord//lib/active_record/counter_cache.rb#187 def _create_record(attribute_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/counter_cache.rb#196 + # @return [Boolean] + # + # source://activerecord//lib/active_record/counter_cache.rb#217 + def _foreign_keys_equal?(fkey1, fkey2); end + + # source://activerecord//lib/active_record/counter_cache.rb#197 def destroy_row; end # source://activerecord//lib/active_record/counter_cache.rb#211 @@ -17733,7 +17747,7 @@ end module ActiveRecord::CounterCache::ClassMethods # @return [Boolean] # - # source://activerecord//lib/active_record/counter_cache.rb#180 + # source://activerecord//lib/active_record/counter_cache.rb#181 def counter_cache_column?(name); end # Decrement a numeric field by one, via a direct SQL update. @@ -17763,7 +17777,7 @@ module ActiveRecord::CounterCache::ClassMethods # # and update the updated_at value. # DiscussionBoard.decrement_counter(:posts_count, 5, touch: true) # - # source://activerecord//lib/active_record/counter_cache.rb#176 + # source://activerecord//lib/active_record/counter_cache.rb#177 def decrement_counter(counter_name, id, by: T.unsafe(nil), touch: T.unsafe(nil)); end # Increment a numeric field by one, via a direct SQL update. @@ -17795,7 +17809,7 @@ module ActiveRecord::CounterCache::ClassMethods # # and update the updated_at value. # DiscussionBoard.increment_counter(:posts_count, 5, touch: true) # - # source://activerecord//lib/active_record/counter_cache.rb#146 + # source://activerecord//lib/active_record/counter_cache.rb#147 def increment_counter(counter_name, id, by: T.unsafe(nil), touch: T.unsafe(nil)); end # Resets one or more counter caches to their correct value using an SQL @@ -18291,11 +18305,11 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas # @return [Boolean] # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#149 + # source://activerecord//lib/active_record/database_configurations/hash_config.rb#153 def database_tasks?; end # source://activerecord//lib/active_record/database_configurations/hash_config.rb#117 - def default_schema_cache_path; end + def default_schema_cache_path(db_dir = T.unsafe(nil)); end # source://activerecord//lib/active_record/database_configurations/hash_config.rb#55 def host; end @@ -18303,7 +18317,7 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas # source://activerecord//lib/active_record/database_configurations/hash_config.rb#101 def idle_timeout; end - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#121 + # source://activerecord//lib/active_record/database_configurations/hash_config.rb#125 def lazy_schema_cache_path; end # source://activerecord//lib/active_record/database_configurations/hash_config.rb#87 @@ -18327,7 +18341,7 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas # @return [Boolean] # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#125 + # source://activerecord//lib/active_record/database_configurations/hash_config.rb#129 def primary?; end # source://activerecord//lib/active_record/database_configurations/hash_config.rb#83 @@ -18364,7 +18378,7 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas # If the config option is set that will be used. Otherwise \Rails # will generate the filename from the database config name. # - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#137 + # source://activerecord//lib/active_record/database_configurations/hash_config.rb#141 def schema_dump(format = T.unsafe(nil)); end # source://activerecord//lib/active_record/database_configurations/hash_config.rb#59 @@ -18372,7 +18386,7 @@ class ActiveRecord::DatabaseConfigurations::HashConfig < ::ActiveRecord::Databas private - # source://activerecord//lib/active_record/database_configurations/hash_config.rb#154 + # source://activerecord//lib/active_record/database_configurations/hash_config.rb#158 def schema_file_type(format); end end @@ -18494,7 +18508,7 @@ class ActiveRecord::Deadlocked < ::ActiveRecord::TransactionRollbackError; end # # Let's look at that entry/message/comment example using delegated types: # -# # Schema: entries[ id, account_id, creator_id, created_at, updated_at, entryable_type, entryable_id ] +# # Schema: entries[ id, account_id, creator_id, entryable_type, entryable_id, created_at, updated_at ] # class Entry < ApplicationRecord # belongs_to :account # belongs_to :creator @@ -18509,12 +18523,12 @@ class ActiveRecord::Deadlocked < ::ActiveRecord::TransactionRollbackError; end # end # end # -# # Schema: messages[ id, subject, body ] +# # Schema: messages[ id, subject, body, created_at, updated_at ] # class Message < ApplicationRecord # include Entryable # end # -# # Schema: comments[ id, content ] +# # Schema: comments[ id, content, created_at, updated_at ] # class Comment < ApplicationRecord # include Entryable # end @@ -18560,14 +18574,14 @@ class ActiveRecord::Deadlocked < ::ActiveRecord::TransactionRollbackError; end # You create a new record that uses delegated typing by creating the delegator and delegatee at the same time, # like so: # -# Entry.create! entryable: Comment.new(content: "Hello!"), creator: Current.user +# Entry.create! entryable: Comment.new(content: "Hello!"), creator: Current.user, account: Current.account # # If you need more complicated composition, or you need to perform dependent validation, you should build a factory # method or class to take care of the complicated needs. This could be as simple as: # # class Entry < ApplicationRecord -# def self.create_with_comment(content, creator: Current.user) -# create! entryable: Comment.new(content: content), creator: creator +# def self.create_with_comment(content, creator: Current.user, account: Current.account) +# create! entryable: Comment.new(content: content), creator: creator, account: account # end # end # @@ -18848,19 +18862,10 @@ class ActiveRecord::Delegation::GeneratedRelationMethods < ::Module # source://activerecord//lib/active_record/relation/delegation.rb#72 def generate_method(method); end - # source://mutex_m/0.2.0/mutex_m.rb#91 def lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#81 def locked?; end - - # source://mutex_m/0.2.0/mutex_m.rb#76 def synchronize(&block); end - - # source://mutex_m/0.2.0/mutex_m.rb#86 def try_lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#96 def unlock; end end @@ -18899,10 +18904,10 @@ class ActiveRecord::DestroyAssociationAsyncJob < ::ActiveJob::Base def owner_destroyed?(owner, ensuring_owner_was_method); end class << self - # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -19085,10 +19090,10 @@ module ActiveRecord::Encryption # source://activerecord//lib/active_record/encryption/configurable.rb#10 def config; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def custom_contexts; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/7.1.4/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 @@ -19107,10 +19112,10 @@ module ActiveRecord::Encryption # source://activerecord//lib/active_record/encryption/configurable.rb#10 def config; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def custom_contexts; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.4/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 @@ -20490,7 +20495,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.3/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#354 def method_missing(method, *args, **_arg2, &block); end # source://activerecord//lib/active_record/encryption/properties.rb#68 @@ -20506,7 +20511,7 @@ class ActiveRecord::Encryption::Properties # source://activerecord//lib/active_record/encryption/properties.rb#73 def data; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#346 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -20609,12 +20614,15 @@ class ActiveRecord::Encryption::Scheme private - # source://activerecord//lib/active_record/encryption/scheme.rb#83 - def build_key_provider; end - - # source://activerecord//lib/active_record/encryption/scheme.rb#91 + # source://activerecord//lib/active_record/encryption/scheme.rb#95 def default_key_provider; end + # source://activerecord//lib/active_record/encryption/scheme.rb#89 + def deterministic_key_provider; end + + # source://activerecord//lib/active_record/encryption/scheme.rb#83 + def key_provider_from_key; end + # @raise [Errors::Configuration] # # source://activerecord//lib/active_record/encryption/scheme.rb#78 @@ -22373,64 +22381,69 @@ end class ActiveRecord::FutureResult # @return [FutureResult] a new instance of FutureResult # - # source://activerecord//lib/active_record/future_result.rb#55 + # source://activerecord//lib/active_record/future_result.rb#64 def initialize(pool, *args, **kwargs); end - # source://activerecord//lib/active_record/future_result.rb#83 + # source://activerecord//lib/active_record/future_result.rb#92 def cancel; end # @return [Boolean] # - # source://activerecord//lib/active_record/future_result.rb#124 + # source://activerecord//lib/active_record/future_result.rb#133 def canceled?; end - # source://activerecord//lib/active_record/future_result.rb#50 + # source://activerecord//lib/active_record/future_result.rb#59 def empty?(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/future_result.rb#79 + # source://activerecord//lib/active_record/future_result.rb#88 def execute!(connection); end - # source://activerecord//lib/active_record/future_result.rb#89 + # source://activerecord//lib/active_record/future_result.rb#98 def execute_or_skip; end # Returns the value of attribute lock_wait. # - # source://activerecord//lib/active_record/future_result.rb#53 + # source://activerecord//lib/active_record/future_result.rb#62 def lock_wait; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#354 def method_missing(method, *args, **_arg2, &block); end # @return [Boolean] # - # source://activerecord//lib/active_record/future_result.rb#120 + # source://activerecord//lib/active_record/future_result.rb#129 def pending?; end - # source://activerecord//lib/active_record/future_result.rb#107 + # source://activerecord//lib/active_record/future_result.rb#116 def result; end - # source://activerecord//lib/active_record/future_result.rb#74 + # source://activerecord//lib/active_record/future_result.rb#83 def schedule!(session); end - # source://activerecord//lib/active_record/future_result.rb#70 + # source://activerecord//lib/active_record/future_result.rb#79 def then(&block); end - # source://activerecord//lib/active_record/future_result.rb#50 + # source://activerecord//lib/active_record/future_result.rb#59 def to_a(*_arg0, **_arg1, &_arg2); end private - # source://activerecord//lib/active_record/future_result.rb#152 + # source://activerecord//lib/active_record/future_result.rb#161 def exec_query(connection, *args, **kwargs); end - # source://activerecord//lib/active_record/future_result.rb#129 + # source://activerecord//lib/active_record/future_result.rb#138 def execute_or_wait; end - # source://activerecord//lib/active_record/future_result.rb#144 + # source://activerecord//lib/active_record/future_result.rb#153 def execute_query(connection, async: T.unsafe(nil)); end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#346 def respond_to_missing?(name, include_private = T.unsafe(nil)); end + + class << self + # source://activerecord//lib/active_record/future_result.rb#50 + def wrap(result); end + end end # source://activerecord//lib/active_record/future_result.rb#48 @@ -22482,11 +22495,11 @@ class ActiveRecord::FutureResult::EventBuffer def instrument(name, payload = T.unsafe(nil), &block); end end -# source://activerecord//lib/active_record/future_result.rb#156 +# source://activerecord//lib/active_record/future_result.rb#165 class ActiveRecord::FutureResult::SelectAll < ::ActiveRecord::FutureResult private - # source://activerecord//lib/active_record/future_result.rb#158 + # source://activerecord//lib/active_record/future_result.rb#167 def exec_query(*_arg0, **_arg1); end end @@ -23551,7 +23564,7 @@ end # == Usage # # Active Record supports optimistic locking if the +lock_version+ field is present. Each update to the -# record increments the +lock_version+ column and the locking facilities ensure that records instantiated twice +# record increments the integer column +lock_version+ and the locking facilities ensure that records instantiated twice # will let the last one saved raise a +StaleObjectError+ if the first was also updated. Example: # # p1 = Person.find(1) @@ -23822,7 +23835,7 @@ class ActiveRecord::LogSubscriber < ::ActiveSupport::LogSubscriber # source://activerecord//lib/active_record/log_subscriber.rb#7 def backtrace_cleaner?; end - # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.4/lib/active_support/log_subscriber.rb#88 def log_levels; end # source://activerecord//lib/active_record/log_subscriber.rb#23 @@ -25237,216 +25250,216 @@ module ActiveRecord::Migration::Compatibility end end -# source://activerecord//lib/active_record/migration/compatibility.rb#405 +# source://activerecord//lib/active_record/migration/compatibility.rb#411 class ActiveRecord::Migration::Compatibility::V4_2 < ::ActiveRecord::Migration::Compatibility::V5_0 - # source://activerecord//lib/active_record/migration/compatibility.rb#423 + # source://activerecord//lib/active_record/migration/compatibility.rb#429 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#423 + # source://activerecord//lib/active_record/migration/compatibility.rb#429 def add_reference(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#429 + # source://activerecord//lib/active_record/migration/compatibility.rb#435 def add_timestamps(table_name, **options); end # @return [Boolean] # - # source://activerecord//lib/active_record/migration/compatibility.rb#434 + # source://activerecord//lib/active_record/migration/compatibility.rb#440 def index_exists?(table_name, column_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#445 + # source://activerecord//lib/active_record/migration/compatibility.rb#451 def remove_index(table_name, column_name = T.unsafe(nil), **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#451 + # source://activerecord//lib/active_record/migration/compatibility.rb#457 def compatible_table_definition(t); end - # source://activerecord//lib/active_record/migration/compatibility.rb#458 + # source://activerecord//lib/active_record/migration/compatibility.rb#464 def index_name_for_remove(table_name, column_name, options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#406 +# source://activerecord//lib/active_record/migration/compatibility.rb#412 module ActiveRecord::Migration::Compatibility::V4_2::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#407 + # source://activerecord//lib/active_record/migration/compatibility.rb#413 def belongs_to(*_arg0, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#407 + # source://activerecord//lib/active_record/migration/compatibility.rb#413 def references(*_arg0, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#413 + # source://activerecord//lib/active_record/migration/compatibility.rb#419 def timestamps(**options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#419 + # source://activerecord//lib/active_record/migration/compatibility.rb#425 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#336 +# source://activerecord//lib/active_record/migration/compatibility.rb#342 class ActiveRecord::Migration::Compatibility::V5_0 < ::ActiveRecord::Migration::Compatibility::V5_1 - # source://activerecord//lib/active_record/migration/compatibility.rb#391 + # source://activerecord//lib/active_record/migration/compatibility.rb#397 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#381 + # source://activerecord//lib/active_record/migration/compatibility.rb#387 def add_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#391 + # source://activerecord//lib/active_record/migration/compatibility.rb#397 def add_reference(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#376 + # source://activerecord//lib/active_record/migration/compatibility.rb#382 def create_join_table(table_1, table_2, column_options: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#353 + # source://activerecord//lib/active_record/migration/compatibility.rb#359 def create_table(table_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#397 + # source://activerecord//lib/active_record/migration/compatibility.rb#403 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#337 +# source://activerecord//lib/active_record/migration/compatibility.rb#343 module ActiveRecord::Migration::Compatibility::V5_0::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#343 + # source://activerecord//lib/active_record/migration/compatibility.rb#349 def belongs_to(*args, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#338 + # source://activerecord//lib/active_record/migration/compatibility.rb#344 def primary_key(name, type = T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#343 + # source://activerecord//lib/active_record/migration/compatibility.rb#349 def references(*args, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#349 + # source://activerecord//lib/active_record/migration/compatibility.rb#355 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#315 +# source://activerecord//lib/active_record/migration/compatibility.rb#321 class ActiveRecord::Migration::Compatibility::V5_1 < ::ActiveRecord::Migration::Compatibility::V5_2 - # source://activerecord//lib/active_record/migration/compatibility.rb#316 + # source://activerecord//lib/active_record/migration/compatibility.rb#322 def change_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#327 + # source://activerecord//lib/active_record/migration/compatibility.rb#333 def create_table(table_name, **options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#259 +# source://activerecord//lib/active_record/migration/compatibility.rb#265 class ActiveRecord::Migration::Compatibility::V5_2 < ::ActiveRecord::Migration::Compatibility::V6_0 - # source://activerecord//lib/active_record/migration/compatibility.rb#293 + # source://activerecord//lib/active_record/migration/compatibility.rb#299 def add_timestamps(table_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#306 + # source://activerecord//lib/active_record/migration/compatibility.rb#312 def command_recorder; end - # source://activerecord//lib/active_record/migration/compatibility.rb#299 + # source://activerecord//lib/active_record/migration/compatibility.rb#305 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#279 +# source://activerecord//lib/active_record/migration/compatibility.rb#285 module ActiveRecord::Migration::Compatibility::V5_2::CommandRecorder - # source://activerecord//lib/active_record/migration/compatibility.rb#284 + # source://activerecord//lib/active_record/migration/compatibility.rb#290 def invert_change_column_comment(args); end - # source://activerecord//lib/active_record/migration/compatibility.rb#288 + # source://activerecord//lib/active_record/migration/compatibility.rb#294 def invert_change_table_comment(args); end - # source://activerecord//lib/active_record/migration/compatibility.rb#280 + # source://activerecord//lib/active_record/migration/compatibility.rb#286 def invert_transaction(args, &block); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#260 +# source://activerecord//lib/active_record/migration/compatibility.rb#266 module ActiveRecord::Migration::Compatibility::V5_2::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#266 + # source://activerecord//lib/active_record/migration/compatibility.rb#272 def column(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#261 + # source://activerecord//lib/active_record/migration/compatibility.rb#267 def timestamps(**options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#275 + # source://activerecord//lib/active_record/migration/compatibility.rb#281 def raise_on_duplicate_column(name); end - # source://activerecord//lib/active_record/migration/compatibility.rb#272 + # source://activerecord//lib/active_record/migration/compatibility.rb#278 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#216 +# source://activerecord//lib/active_record/migration/compatibility.rb#222 class ActiveRecord::Migration::Compatibility::V6_0 < ::ActiveRecord::Migration::Compatibility::V6_1 - # source://activerecord//lib/active_record/migration/compatibility.rb#240 + # source://activerecord//lib/active_record/migration/compatibility.rb#246 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#240 + # source://activerecord//lib/active_record/migration/compatibility.rb#246 def add_reference(table_name, ref_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#251 + # source://activerecord//lib/active_record/migration/compatibility.rb#257 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#217 +# source://activerecord//lib/active_record/migration/compatibility.rb#223 class ActiveRecord::Migration::Compatibility::V6_0::ReferenceDefinition < ::ActiveRecord::ConnectionAdapters::ReferenceDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#218 + # source://activerecord//lib/active_record/migration/compatibility.rb#224 def index_options(table_name); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#223 +# source://activerecord//lib/active_record/migration/compatibility.rb#229 module ActiveRecord::Migration::Compatibility::V6_0::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#224 + # source://activerecord//lib/active_record/migration/compatibility.rb#230 def belongs_to(*args, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#230 + # source://activerecord//lib/active_record/migration/compatibility.rb#236 def column(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#224 + # source://activerecord//lib/active_record/migration/compatibility.rb#230 def references(*args, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#236 + # source://activerecord//lib/active_record/migration/compatibility.rb#242 def raise_on_if_exist_options(options); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#153 +# source://activerecord//lib/active_record/migration/compatibility.rb#159 class ActiveRecord::Migration::Compatibility::V6_1 < ::ActiveRecord::Migration::Compatibility::V7_0 - # source://activerecord//lib/active_record/migration/compatibility.rb#168 + # source://activerecord//lib/active_record/migration/compatibility.rb#174 def add_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#177 + # source://activerecord//lib/active_record/migration/compatibility.rb#183 def change_column(table_name, column_name, type, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#208 + # source://activerecord//lib/active_record/migration/compatibility.rb#214 def compatible_table_definition(t); end end -# source://activerecord//lib/active_record/migration/compatibility.rb#154 +# source://activerecord//lib/active_record/migration/compatibility.rb#160 class ActiveRecord::Migration::Compatibility::V6_1::PostgreSQLCompat class << self - # source://activerecord//lib/active_record/migration/compatibility.rb#155 + # source://activerecord//lib/active_record/migration/compatibility.rb#161 def compatible_timestamp_type(type, connection); end end end -# source://activerecord//lib/active_record/migration/compatibility.rb#186 +# source://activerecord//lib/active_record/migration/compatibility.rb#192 module ActiveRecord::Migration::Compatibility::V6_1::TableDefinition - # source://activerecord//lib/active_record/migration/compatibility.rb#192 + # source://activerecord//lib/active_record/migration/compatibility.rb#198 def change(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#197 + # source://activerecord//lib/active_record/migration/compatibility.rb#203 def column(name, type, index: T.unsafe(nil), **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#187 + # source://activerecord//lib/active_record/migration/compatibility.rb#193 def new_column_definition(name, type, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#203 + # source://activerecord//lib/active_record/migration/compatibility.rb#209 def raise_on_if_exist_options(options); end end @@ -25454,39 +25467,39 @@ end class ActiveRecord::Migration::Compatibility::V7_0 < ::ActiveRecord::Migration::Current include ::ActiveRecord::Migration::Compatibility::V7_0::LegacyIndexName - # source://activerecord//lib/active_record/migration/compatibility.rb#100 + # source://activerecord//lib/active_record/migration/compatibility.rb#105 def add_belongs_to(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#90 + # source://activerecord//lib/active_record/migration/compatibility.rb#95 def add_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#137 + # source://activerecord//lib/active_record/migration/compatibility.rb#143 def add_foreign_key(from_table, to_table, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#95 + # source://activerecord//lib/active_record/migration/compatibility.rb#100 def add_index(table_name, column_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#100 + # source://activerecord//lib/active_record/migration/compatibility.rb#105 def add_reference(table_name, ref_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#118 + # source://activerecord//lib/active_record/migration/compatibility.rb#124 def change_column(table_name, column_name, type, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#126 + # source://activerecord//lib/active_record/migration/compatibility.rb#132 def change_column_null(table_name, column_name, null, default = T.unsafe(nil)); end - # source://activerecord//lib/active_record/migration/compatibility.rb#106 + # source://activerecord//lib/active_record/migration/compatibility.rb#111 def create_table(table_name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#130 + # source://activerecord//lib/active_record/migration/compatibility.rb#136 def disable_extension(name, **options); end - # source://activerecord//lib/active_record/migration/compatibility.rb#113 + # source://activerecord//lib/active_record/migration/compatibility.rb#118 def rename_table(table_name, new_name, **options); end private - # source://activerecord//lib/active_record/migration/compatibility.rb#145 + # source://activerecord//lib/active_record/migration/compatibility.rb#151 def compatible_table_definition(t); end end @@ -25519,9 +25532,12 @@ module ActiveRecord::Migration::Compatibility::V7_0::TableDefinition # source://activerecord//lib/active_record/migration/compatibility.rb#78 def index(column_name, **options); end + # source://activerecord//lib/active_record/migration/compatibility.rb#83 + def references(*args, **options); end + private - # source://activerecord//lib/active_record/migration/compatibility.rb#84 + # source://activerecord//lib/active_record/migration/compatibility.rb#89 def raise_on_if_exist_options(options); end end @@ -26081,13 +26097,13 @@ end # source://activerecord//lib/active_record/model_schema.rb#195 module ActiveRecord::ModelSchema::ClassMethods - # source://activerecord//lib/active_record/model_schema.rb#498 + # source://activerecord//lib/active_record/model_schema.rb#502 def _default_attributes; end # source://activerecord//lib/active_record/model_schema.rb#434 def _returning_columns_for_insert; end - # source://activerecord//lib/active_record/model_schema.rb#440 + # source://activerecord//lib/active_record/model_schema.rb#444 def attribute_types; end # source://activerecord//lib/active_record/model_schema.rb#416 @@ -26096,7 +26112,7 @@ module ActiveRecord::ModelSchema::ClassMethods # Returns a hash where the keys are column names and the values are # default values when instantiating the Active Record object for this table. # - # source://activerecord//lib/active_record/model_schema.rb#493 + # source://activerecord//lib/active_record/model_schema.rb#497 def column_defaults; end # Returns the column object for the named attribute. @@ -26113,12 +26129,12 @@ module ActiveRecord::ModelSchema::ClassMethods # person.column_for_attribute(:nothing) # # => #, ...> # - # source://activerecord//lib/active_record/model_schema.rb#484 + # source://activerecord//lib/active_record/model_schema.rb#488 def column_for_attribute(name); end # Returns an array of column names as strings. # - # source://activerecord//lib/active_record/model_schema.rb#504 + # source://activerecord//lib/active_record/model_schema.rb#508 def column_names; end # source://activerecord//lib/active_record/model_schema.rb#429 @@ -26130,7 +26146,7 @@ module ActiveRecord::ModelSchema::ClassMethods # Returns an array of column objects where the primary id, all columns ending in "_id" or "_count", # and columns used for single table inheritance have been removed. # - # source://activerecord//lib/active_record/model_schema.rb#515 + # source://activerecord//lib/active_record/model_schema.rb#519 def content_columns; end # source://activerecord//lib/active_record/model_schema.rb#298 @@ -26180,7 +26196,7 @@ module ActiveRecord::ModelSchema::ClassMethods # source://activerecord//lib/active_record/model_schema.rb#362 def ignored_columns=(columns); end - # source://activerecord//lib/active_record/model_schema.rb#558 + # source://activerecord//lib/active_record/model_schema.rb#562 def load_schema; end # Returns the next value that will be used as the primary key on @@ -26243,7 +26259,7 @@ module ActiveRecord::ModelSchema::ClassMethods # end # end # - # source://activerecord//lib/active_record/model_schema.rb#549 + # source://activerecord//lib/active_record/model_schema.rb#553 def reset_column_information; end # source://activerecord//lib/active_record/model_schema.rb#375 @@ -26275,7 +26291,7 @@ module ActiveRecord::ModelSchema::ClassMethods # source://activerecord//lib/active_record/model_schema.rb#394 def sequence_name=(value); end - # source://activerecord//lib/active_record/model_schema.rb#508 + # source://activerecord//lib/active_record/model_schema.rb#512 def symbol_column_to_string(name_symbol); end # Indicates whether the table associated with this class exists @@ -26369,44 +26385,44 @@ module ActiveRecord::ModelSchema::ClassMethods # +attr_name+ The name of the attribute to retrieve the type for. Must be # a string or a symbol. # - # source://activerecord//lib/active_record/model_schema.rb#460 + # source://activerecord//lib/active_record/model_schema.rb#464 def type_for_attribute(attr_name, &block); end - # source://activerecord//lib/active_record/model_schema.rb#445 + # source://activerecord//lib/active_record/model_schema.rb#449 def yaml_encoder; end protected - # source://activerecord//lib/active_record/model_schema.rb#573 + # source://activerecord//lib/active_record/model_schema.rb#577 def initialize_load_schema_monitor; end - # source://activerecord//lib/active_record/model_schema.rb#577 + # source://activerecord//lib/active_record/model_schema.rb#581 def reload_schema_from_cache(recursive = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/model_schema.rb#657 + # source://activerecord//lib/active_record/model_schema.rb#661 def _convert_type_from_options(type); end # Computes and returns a table name according to default conventions. # - # source://activerecord//lib/active_record/model_schema.rb#641 + # source://activerecord//lib/active_record/model_schema.rb#645 def compute_table_name; end - # source://activerecord//lib/active_record/model_schema.rb#600 + # source://activerecord//lib/active_record/model_schema.rb#604 def inherited(child_class); end - # source://activerecord//lib/active_record/model_schema.rb#613 + # source://activerecord//lib/active_record/model_schema.rb#617 def load_schema!; end # @return [Boolean] # - # source://activerecord//lib/active_record/model_schema.rb#609 + # source://activerecord//lib/active_record/model_schema.rb#613 def schema_loaded?; end # Guesses the table name, but does not decorate it with prefix and suffix information. # - # source://activerecord//lib/active_record/model_schema.rb#635 + # source://activerecord//lib/active_record/model_schema.rb#639 def undecorated_table_name(model_name); end end @@ -26944,23 +26960,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.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions=(_arg0); end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions?; end class << self - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions=(value); end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions?; end # source://activerecord//lib/active_record/errors.rb#319 @@ -27246,13 +27262,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.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions=(_arg0); end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions?; end private @@ -27264,13 +27280,13 @@ class ActiveRecord::PendingMigrationError < ::ActiveRecord::MigrationError def detailed_migration_message(pending_migrations); end class << self - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions; end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions=(value); end - # source://activesupport/7.1.3.3/lib/active_support/actionable_error.rb#17 + # source://activesupport/7.1.4/lib/active_support/actionable_error.rb#17 def _actions?; end end end @@ -28046,7 +28062,7 @@ module ActiveRecord::Persistence::ClassMethods def instantiate(attributes, column_types = T.unsafe(nil), &block); end # Accepts a list of attribute names to be used in the WHERE clause - # of SELECT / UPDATE / DELETE queries and in the ORDER BY clause for `#first` and `#last` finder methods. + # of SELECT / UPDATE / DELETE queries and in the ORDER BY clause for +#first+ and +#last+ finder methods. # # class Developer < ActiveRecord::Base # query_constraints :company_id, :id @@ -28059,7 +28075,7 @@ module ActiveRecord::Persistence::ClassMethods # developer.update!(name: "Nikita") # # UPDATE "developers" SET "name" = 'Nikita' WHERE "developers"."company_id" = 1 AND "developers"."id" = 1 # - # It is possible to update attribute used in the query_by clause: + # # It is possible to update an attribute used in the query_constraints clause: # developer.update!(company_id: 2) # # UPDATE "developers" SET "company_id" = 2 WHERE "developers"."company_id" = 1 AND "developers"."id" = 1 # @@ -28738,10 +28754,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.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def cached_comment; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.4/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 @@ -30174,7 +30190,7 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1578 def build_arel(aliases = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1936 + # source://activerecord//lib/active_record/relation/query_methods.rb#1950 def build_case_for_value_position(column, values); end # source://activerecord//lib/active_record/relation/query_methods.rb#1607 @@ -30224,7 +30240,7 @@ module ActiveRecord::QueryMethods # ... # end # - # source://activerecord//lib/active_record/relation/query_methods.rb#1985 + # source://activerecord//lib/active_record/relation/query_methods.rb#1999 def check_if_method_has_arguments!(method_name, args, message = T.unsafe(nil)); end # source://activerecord//lib/active_record/relation/query_methods.rb#1911 @@ -30238,19 +30254,22 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1556 def each_join_dependencies(join_dependencies = T.unsafe(nil), &block); end + # source://activerecord//lib/active_record/relation/query_methods.rb#1936 + def extract_table_name_from(string); end + # source://activerecord//lib/active_record/relation/query_methods.rb#1549 def lookup_table_klass_from_join_dependencies(table_name); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1926 + # source://activerecord//lib/active_record/relation/query_methods.rb#1940 def order_column(field); end # source://activerecord//lib/active_record/relation/query_methods.rb#1874 def preprocess_order_args(order_args); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1996 + # source://activerecord//lib/active_record/relation/query_methods.rb#2010 def process_select_args(fields); end - # source://activerecord//lib/active_record/relation/query_methods.rb#1945 + # source://activerecord//lib/active_record/relation/query_methods.rb#1959 def resolve_arel_attributes(attrs); end # source://activerecord//lib/active_record/relation/query_methods.rb#1814 @@ -30265,7 +30284,7 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1626 def select_named_joins(join_names, stashed_joins = T.unsafe(nil), &block); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2036 + # source://activerecord//lib/active_record/relation/query_methods.rb#2050 def structurally_incompatible_values_for(other); end # @return [Boolean] @@ -30273,7 +30292,7 @@ module ActiveRecord::QueryMethods # source://activerecord//lib/active_record/relation/query_methods.rb#1808 def table_name_matches?(from); end - # source://activerecord//lib/active_record/relation/query_methods.rb#2006 + # source://activerecord//lib/active_record/relation/query_methods.rb#2020 def transform_select_hash_values(fields); end # source://activerecord//lib/active_record/relation/query_methods.rb#1862 @@ -30299,7 +30318,7 @@ ActiveRecord::QueryMethods::FROZEN_EMPTY_ARRAY = T.let(T.unsafe(nil), Array) # source://activerecord//lib/active_record/relation/query_methods.rb#141 ActiveRecord::QueryMethods::FROZEN_EMPTY_HASH = T.let(T.unsafe(nil), Hash) -# source://activerecord//lib/active_record/relation/query_methods.rb#2031 +# source://activerecord//lib/active_record/relation/query_methods.rb#2045 ActiveRecord::QueryMethods::STRUCTURAL_VALUE_METHODS = T.let(T.unsafe(nil), Array) # source://activerecord//lib/active_record/relation/query_methods.rb#1859 @@ -30786,7 +30805,7 @@ ActiveRecord::Querying::QUERYING_METHODS = T.let(T.unsafe(nil), Array) # source://activerecord//lib/active_record/railtie.rb#16 class ActiveRecord::Railtie < ::Rails::Railtie; end -# source://activerecord//lib/active_record/railtie.rb#230 +# source://activerecord//lib/active_record/railtie.rb#231 ActiveRecord::Railtie::SQLITE3_PRODUCTION_WARN = T.let(T.unsafe(nil), String) # Raised when values that executed are out of range. @@ -30983,7 +31002,7 @@ module ActiveRecord::Reflection private - # source://activestorage/7.1.3.3/lib/active_storage/reflection.rb#37 + # source://activestorage/7.1.4/lib/active_storage/reflection.rb#37 def reflection_class_for(macro); end end @@ -31377,7 +31396,7 @@ class ActiveRecord::Reflection::AssociationReflection < ::ActiveRecord::Reflecti # source://activerecord//lib/active_record/reflection.rb#773 def derive_foreign_key(infer_from_inverse_of: T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#823 + # source://activerecord//lib/active_record/reflection.rb#825 def derive_join_table; end # Attempts to find the inverse association name automatically. @@ -31410,38 +31429,38 @@ class ActiveRecord::Reflection::AssociationReflection < ::ActiveRecord::Reflecti def valid_inverse_reflection?(reflection); end end -# source://activerecord//lib/active_record/reflection.rb#856 +# source://activerecord//lib/active_record/reflection.rb#858 class ActiveRecord::Reflection::BelongsToReflection < ::ActiveRecord::Reflection::AssociationReflection - # source://activerecord//lib/active_record/reflection.rb#861 + # source://activerecord//lib/active_record/reflection.rb#863 def association_class; end # klass option is necessary to support loading polymorphic associations # - # source://activerecord//lib/active_record/reflection.rb#870 + # source://activerecord//lib/active_record/reflection.rb#872 def association_primary_key(klass = T.unsafe(nil)); end # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#859 + # source://activerecord//lib/active_record/reflection.rb#861 def belongs_to?; end - # source://activerecord//lib/active_record/reflection.rb#888 + # source://activerecord//lib/active_record/reflection.rb#894 def join_foreign_key; end - # source://activerecord//lib/active_record/reflection.rb#892 + # source://activerecord//lib/active_record/reflection.rb#898 def join_foreign_type; end - # source://activerecord//lib/active_record/reflection.rb#884 + # source://activerecord//lib/active_record/reflection.rb#890 def join_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#857 + # source://activerecord//lib/active_record/reflection.rb#859 def macro; end private # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#897 + # source://activerecord//lib/active_record/reflection.rb#903 def can_find_inverse_of_automatically?(*_arg0); end end @@ -31515,42 +31534,42 @@ module ActiveRecord::Reflection::ClassMethods def inherited(subclass); end end -# source://activerecord//lib/active_record/reflection.rb#902 +# source://activerecord//lib/active_record/reflection.rb#908 class ActiveRecord::Reflection::HasAndBelongsToManyReflection < ::ActiveRecord::Reflection::AssociationReflection # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#905 + # source://activerecord//lib/active_record/reflection.rb#911 def collection?; end - # source://activerecord//lib/active_record/reflection.rb#903 + # source://activerecord//lib/active_record/reflection.rb#909 def macro; end end -# source://activerecord//lib/active_record/reflection.rb#828 +# source://activerecord//lib/active_record/reflection.rb#830 class ActiveRecord::Reflection::HasManyReflection < ::ActiveRecord::Reflection::AssociationReflection - # source://activerecord//lib/active_record/reflection.rb#833 + # source://activerecord//lib/active_record/reflection.rb#835 def association_class; end # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#831 + # source://activerecord//lib/active_record/reflection.rb#833 def collection?; end - # source://activerecord//lib/active_record/reflection.rb#829 + # source://activerecord//lib/active_record/reflection.rb#831 def macro; end end -# source://activerecord//lib/active_record/reflection.rb#842 +# source://activerecord//lib/active_record/reflection.rb#844 class ActiveRecord::Reflection::HasOneReflection < ::ActiveRecord::Reflection::AssociationReflection - # source://activerecord//lib/active_record/reflection.rb#847 + # source://activerecord//lib/active_record/reflection.rb#849 def association_class; end # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#845 + # source://activerecord//lib/active_record/reflection.rb#847 def has_one?; end - # source://activerecord//lib/active_record/reflection.rb#843 + # source://activerecord//lib/active_record/reflection.rb#845 def macro; end end @@ -31638,138 +31657,138 @@ class ActiveRecord::Reflection::MacroReflection < ::ActiveRecord::Reflection::Ab def validate_reflection!; end end -# source://activerecord//lib/active_record/reflection.rb#1166 +# source://activerecord//lib/active_record/reflection.rb#1172 class ActiveRecord::Reflection::PolymorphicReflection < ::ActiveRecord::Reflection::AbstractReflection # @return [PolymorphicReflection] a new instance of PolymorphicReflection # - # source://activerecord//lib/active_record/reflection.rb#1170 + # source://activerecord//lib/active_record/reflection.rb#1176 def initialize(reflection, previous_reflection); end - # source://activerecord//lib/active_record/reflection.rb#1181 + # source://activerecord//lib/active_record/reflection.rb#1187 def constraints; end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def join_foreign_key(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def join_primary_key(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1176 + # source://activerecord//lib/active_record/reflection.rb#1182 def join_scopes(table, predicate_builder, klass = T.unsafe(nil), record = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def klass(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def name(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def plural_name(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def scope(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def scope_for(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1167 + # source://activerecord//lib/active_record/reflection.rb#1173 def type(*_arg0, **_arg1, &_arg2); end private - # source://activerecord//lib/active_record/reflection.rb#1186 + # source://activerecord//lib/active_record/reflection.rb#1192 def source_type_scope; end end -# source://activerecord//lib/active_record/reflection.rb#1193 +# source://activerecord//lib/active_record/reflection.rb#1199 class ActiveRecord::Reflection::RuntimeReflection < ::ActiveRecord::Reflection::AbstractReflection # @return [RuntimeReflection] a new instance of RuntimeReflection # - # source://activerecord//lib/active_record/reflection.rb#1196 + # source://activerecord//lib/active_record/reflection.rb#1202 def initialize(reflection, association); end - # source://activerecord//lib/active_record/reflection.rb#1206 + # source://activerecord//lib/active_record/reflection.rb#1212 def aliased_table; end - # source://activerecord//lib/active_record/reflection.rb#1214 + # source://activerecord//lib/active_record/reflection.rb#1220 def all_includes; end - # source://activerecord//lib/active_record/reflection.rb#1194 + # source://activerecord//lib/active_record/reflection.rb#1200 def constraints(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1194 + # source://activerecord//lib/active_record/reflection.rb#1200 def join_foreign_key(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1210 + # source://activerecord//lib/active_record/reflection.rb#1216 def join_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1202 + # source://activerecord//lib/active_record/reflection.rb#1208 def klass; end - # source://activerecord//lib/active_record/reflection.rb#1194 + # source://activerecord//lib/active_record/reflection.rb#1200 def scope(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1194 + # source://activerecord//lib/active_record/reflection.rb#1200 def type(*_arg0, **_arg1, &_arg2); end end # Holds all the metadata about a :through association as it was specified # in the Active Record class. # -# source://activerecord//lib/active_record/reflection.rb#912 +# source://activerecord//lib/active_record/reflection.rb#918 class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection::AbstractReflection # @return [ThroughReflection] a new instance of ThroughReflection # - # source://activerecord//lib/active_record/reflection.rb#916 + # source://activerecord//lib/active_record/reflection.rb#922 def initialize(delegate_reflection); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def active_record(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#913 + # source://activerecord//lib/active_record/reflection.rb#919 def active_record_primary_key(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1128 + # source://activerecord//lib/active_record/reflection.rb#1134 def add_as_polymorphic_through(reflection, seed); end - # source://activerecord//lib/active_record/reflection.rb#1124 + # source://activerecord//lib/active_record/reflection.rb#1130 def add_as_source(seed); end - # source://activerecord//lib/active_record/reflection.rb#1132 + # source://activerecord//lib/active_record/reflection.rb#1138 def add_as_through(seed); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def association_class(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#913 + # source://activerecord//lib/active_record/reflection.rb#919 def association_foreign_key(*_arg0, **_arg1, &_arg2); end # We want to use the klass from this reflection, rather than just delegate straight to # the source_reflection, because the source_reflection may be polymorphic. We still # need to respect the source_reflection's :primary_key option, though. # - # source://activerecord//lib/active_record/reflection.rb#1021 + # source://activerecord//lib/active_record/reflection.rb#1027 def association_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def association_scope_cache(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def autosave=(arg); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def belongs_to?(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def check_eager_loadable!(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1078 + # source://activerecord//lib/active_record/reflection.rb#1084 def check_validity!; end # This is for clearing cache on the reflection. Useful for tests that need to compare # SQL queries on associations. # - # source://activerecord//lib/active_record/reflection.rb#993 + # source://activerecord//lib/active_record/reflection.rb#999 def clear_association_scope_cache; end # Returns an array of reflections which are involved in this association. Each item in the @@ -31789,103 +31808,103 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # # => [, # ] # - # source://activerecord//lib/active_record/reflection.rb#987 + # source://activerecord//lib/active_record/reflection.rb#993 def collect_join_chain; end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def collection?(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def compute_class(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1118 + # source://activerecord//lib/active_record/reflection.rb#1124 def constraints; end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def extensions(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#913 + # source://activerecord//lib/active_record/reflection.rb#919 def foreign_key(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#913 + # source://activerecord//lib/active_record/reflection.rb#919 def foreign_type(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def has_inverse?(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def has_one?(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#1007 + # source://activerecord//lib/active_record/reflection.rb#1013 def has_scope?; end - # source://activerecord//lib/active_record/reflection.rb#913 + # source://activerecord//lib/active_record/reflection.rb#919 def join_foreign_key(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#913 + # source://activerecord//lib/active_record/reflection.rb#919 def join_id_for(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1031 + # source://activerecord//lib/active_record/reflection.rb#1037 def join_primary_key(klass = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def join_primary_type(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1003 + # source://activerecord//lib/active_record/reflection.rb#1009 def join_scopes(table, predicate_builder, klass = T.unsafe(nil), record = T.unsafe(nil)); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def join_table(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#929 + # source://activerecord//lib/active_record/reflection.rb#935 def klass; end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def macro(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def name(*_arg0, **_arg1, &_arg2); end # A through association is nested if there would be more than one join table # # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#1014 + # source://activerecord//lib/active_record/reflection.rb#1020 def nested?; end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def options(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def parent_reflection(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def parent_reflection=(arg); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def plural_name(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def polymorphic?(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def polymorphic_inverse_of(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def polymorphic_name(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def scope(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def scope_for(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#999 + # source://activerecord//lib/active_record/reflection.rb#1005 def scopes; end - # source://activerecord//lib/active_record/reflection.rb#1070 + # source://activerecord//lib/active_record/reflection.rb#1076 def source_options; end # Returns the source of the through reflection. It checks both a singularized @@ -31905,10 +31924,10 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # tags_reflection.source_reflection # # => # - # source://activerecord//lib/active_record/reflection.rb#950 + # source://activerecord//lib/active_record/reflection.rb#956 def source_reflection; end - # source://activerecord//lib/active_record/reflection.rb#1050 + # source://activerecord//lib/active_record/reflection.rb#1056 def source_reflection_name; end # Gets an array of possible :through source reflection names in both singular and plural form. @@ -31922,10 +31941,10 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # tags_reflection.source_reflection_names # # => [:tag, :tags] # - # source://activerecord//lib/active_record/reflection.rb#1046 + # source://activerecord//lib/active_record/reflection.rb#1052 def source_reflection_names; end - # source://activerecord//lib/active_record/reflection.rb#1074 + # source://activerecord//lib/active_record/reflection.rb#1080 def through_options; end # Returns the AssociationReflection object specified in the :through option @@ -31940,41 +31959,41 @@ class ActiveRecord::Reflection::ThroughReflection < ::ActiveRecord::Reflection:: # tags_reflection.through_reflection # # => # - # source://activerecord//lib/active_record/reflection.rb#966 + # source://activerecord//lib/active_record/reflection.rb#972 def through_reflection; end # @return [Boolean] # - # source://activerecord//lib/active_record/reflection.rb#925 + # source://activerecord//lib/active_record/reflection.rb#931 def through_reflection?; end - # source://activerecord//lib/active_record/reflection.rb#913 + # source://activerecord//lib/active_record/reflection.rb#919 def type(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/reflection.rb#1163 + # source://activerecord//lib/active_record/reflection.rb#1169 def validate?(*_arg0, **_arg1, &_arg2); end protected # FIXME: this is a horrible name # - # source://activerecord//lib/active_record/reflection.rb#1137 + # source://activerecord//lib/active_record/reflection.rb#1143 def actual_source_reflection; end private - # source://activerecord//lib/active_record/reflection.rb#1144 + # source://activerecord//lib/active_record/reflection.rb#1150 def collect_join_reflections(seed); end # Returns the value of attribute delegate_reflection. # - # source://activerecord//lib/active_record/reflection.rb#1142 + # source://activerecord//lib/active_record/reflection.rb#1148 def delegate_reflection; end - # source://activerecord//lib/active_record/reflection.rb#1155 + # source://activerecord//lib/active_record/reflection.rb#1161 def derive_class_name; end - # source://activerecord//lib/active_record/reflection.rb#1153 + # source://activerecord//lib/active_record/reflection.rb#1159 def inverse_name; end end @@ -32000,13 +32019,13 @@ class ActiveRecord::Relation # Compares two relations for equality. # - # source://activerecord//lib/active_record/relation.rb#813 + # source://activerecord//lib/active_record/relation.rb#823 def ==(other); end # source://activerecord//lib/active_record/relation.rb#471 def _exec_scope(*_arg0, **_arg1, &_arg2); end - # source://activerecord//lib/active_record/relation.rb#863 + # source://activerecord//lib/active_record/relation.rb#873 def alias_tracker(joins = T.unsafe(nil), aliases = T.unsafe(nil)); end # Returns true if there are any records. @@ -32030,7 +32049,7 @@ class ActiveRecord::Relation # # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#834 + # source://activerecord//lib/active_record/relation.rb#844 def blank?; end # Initializes new record from relation while maintaining the current @@ -32181,7 +32200,7 @@ class ActiveRecord::Relation # Post.distinct.delete_all # # => ActiveRecord::ActiveRecordError: delete_all doesn't support distinct # - # source://activerecord//lib/active_record/relation.rb#646 + # source://activerecord//lib/active_record/relation.rb#651 def delete_all; end # Finds and deletes all records matching the specified conditions. @@ -32194,7 +32213,7 @@ class ActiveRecord::Relation # Person.delete_by(name: 'Spartacus', rating: 4) # Person.delete_by("published_at < ?", 2.weeks.ago) # - # source://activerecord//lib/active_record/relation.rb#689 + # source://activerecord//lib/active_record/relation.rb#699 def delete_by(*args); end # Destroys the records by instantiating each @@ -32214,7 +32233,7 @@ class ActiveRecord::Relation # # Person.where(age: 0..18).destroy_all # - # source://activerecord//lib/active_record/relation.rb#624 + # source://activerecord//lib/active_record/relation.rb#629 def destroy_all; end # Finds and destroys all records matching the specified conditions. @@ -32227,14 +32246,14 @@ class ActiveRecord::Relation # Person.destroy_by(name: 'Spartacus', rating: 4) # Person.destroy_by("published_at < ?", 2.weeks.ago) # - # source://activerecord//lib/active_record/relation.rb#676 + # source://activerecord//lib/active_record/relation.rb#686 def destroy_by(*args); end # Returns true if relation needs eager loading. # # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#798 + # source://activerecord//lib/active_record/relation.rb#808 def eager_loading?; end # Returns true if there are no records. @@ -32246,7 +32265,7 @@ class ActiveRecord::Relation # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#855 + # source://activerecord//lib/active_record/relation.rb#865 def empty_scope?; end # Serializes the relation objects Array. @@ -32336,10 +32355,10 @@ class ActiveRecord::Relation # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#859 + # source://activerecord//lib/active_record/relation.rb#869 def has_limit_or_offset?; end - # source://activerecord//lib/active_record/relation.rb#846 + # source://activerecord//lib/active_record/relation.rb#856 def inspect; end # Joins that are also marked for preloading. In which case we should just eager load them. @@ -32347,7 +32366,7 @@ class ActiveRecord::Relation # represent the same association, but that aren't matched by this. Also, we could have # nested hashes which partially match, e.g. { a: :b } & { a: [:b, :c] } # - # source://activerecord//lib/active_record/relation.rb#808 + # source://activerecord//lib/active_record/relation.rb#818 def joined_includes_values; end # Returns the value of attribute klass. @@ -32362,7 +32381,7 @@ class ActiveRecord::Relation # # Post.where(published: true).load # => # # - # source://activerecord//lib/active_record/relation.rb#740 + # source://activerecord//lib/active_record/relation.rb#750 def load(&block); end # Schedule the query to be performed from a background thread pool. @@ -32384,7 +32403,7 @@ class ActiveRecord::Relation # # ASYNC Post Load (0.0ms) (db time 2ms) SELECT "posts".* FROM "posts" LIMIT 100 # - # source://activerecord//lib/active_record/relation.rb#711 + # source://activerecord//lib/active_record/relation.rb#721 def load_async; end # Returns the value of attribute loaded. @@ -32457,10 +32476,10 @@ class ActiveRecord::Relation # source://activerecord//lib/active_record/relation.rb#22 def predicate_builder; end - # source://activerecord//lib/active_record/relation.rb#877 + # source://activerecord//lib/active_record/relation.rb#887 def preload_associations(records); end - # source://activerecord//lib/active_record/relation.rb#824 + # source://activerecord//lib/active_record/relation.rb#834 def pretty_print(pp); end # source://activerecord//lib/active_record/relation.rb#263 @@ -32468,10 +32487,10 @@ class ActiveRecord::Relation # Forces reloading of relation. # - # source://activerecord//lib/active_record/relation.rb#750 + # source://activerecord//lib/active_record/relation.rb#760 def reload; end - # source://activerecord//lib/active_record/relation.rb#755 + # source://activerecord//lib/active_record/relation.rb#765 def reset; end # Returns true if the relation was scheduled on the background @@ -32479,10 +32498,10 @@ class ActiveRecord::Relation # # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#730 + # source://activerecord//lib/active_record/relation.rb#740 def scheduled?; end - # source://activerecord//lib/active_record/relation.rb#791 + # source://activerecord//lib/active_record/relation.rb#801 def scope_for_create; end # Scope all queries to the current scope. @@ -32540,7 +32559,7 @@ class ActiveRecord::Relation # User.where(name: 'Oscar').to_sql # # SELECT "users".* FROM "users" WHERE "users"."name" = 'Oscar' # - # source://activerecord//lib/active_record/relation.rb#771 + # source://activerecord//lib/active_record/relation.rb#781 def to_sql; end # Touches all records in the current relation, setting the +updated_at+/+updated_on+ attributes to the current time or the time specified. @@ -32567,13 +32586,13 @@ class ActiveRecord::Relation # Person.where(name: 'David').touch_all # # => "UPDATE \"people\" SET \"updated_at\" = '2018-01-04 22:55:23.132670' WHERE \"people\".\"name\" = 'David'" # - # source://activerecord//lib/active_record/relation.rb#604 + # source://activerecord//lib/active_record/relation.rb#609 def touch_all(*names, time: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#533 + # source://activerecord//lib/active_record/relation.rb#538 def update(id = T.unsafe(nil), attributes); end - # source://activerecord//lib/active_record/relation.rb#541 + # source://activerecord//lib/active_record/relation.rb#546 def update!(id = T.unsafe(nil), attributes); end # Updates all records in the current relation with details given. This method constructs a single SQL UPDATE @@ -32623,13 +32642,13 @@ class ActiveRecord::Relation # # For Posts by a given author increment the comment_count by 1. # Post.where(author_id: author.id).update_counters(comment_count: 1) # - # source://activerecord//lib/active_record/relation.rb#561 + # source://activerecord//lib/active_record/relation.rb#566 def update_counters(counters); end - # source://activerecord//lib/active_record/relation.rb#838 + # source://activerecord//lib/active_record/relation.rb#848 def values; end - # source://activerecord//lib/active_record/relation.rb#842 + # source://activerecord//lib/active_record/relation.rb#852 def values_for_queries; end # Returns a hash of where conditions. @@ -32637,37 +32656,37 @@ class ActiveRecord::Relation # User.where(name: 'Oscar').where_values_hash # # => {name: "Oscar"} # - # source://activerecord//lib/active_record/relation.rb#787 + # source://activerecord//lib/active_record/relation.rb#797 def where_values_hash(relation_table_name = T.unsafe(nil)); end protected - # source://activerecord//lib/active_record/relation.rb#887 + # source://activerecord//lib/active_record/relation.rb#897 def load_records(records); end private - # source://activerecord//lib/active_record/relation.rb#913 + # source://activerecord//lib/active_record/relation.rb#923 def _create(attributes, &block); end - # source://activerecord//lib/active_record/relation.rb#917 + # source://activerecord//lib/active_record/relation.rb#927 def _create!(attributes, &block); end - # source://activerecord//lib/active_record/relation.rb#948 + # source://activerecord//lib/active_record/relation.rb#958 def _increment_attribute(attribute, value = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#909 + # source://activerecord//lib/active_record/relation.rb#919 def _new(attributes, &block); end - # source://activerecord//lib/active_record/relation.rb#921 + # source://activerecord//lib/active_record/relation.rb#931 def _scoping(scope, registry, all_queries = T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#937 + # source://activerecord//lib/active_record/relation.rb#947 def _substitute_values(values); end # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#893 + # source://activerecord//lib/active_record/relation.rb#903 def already_in_scope?(registry); end # source://activerecord//lib/active_record/relation.rb#364 @@ -32676,38 +32695,38 @@ class ActiveRecord::Relation # source://activerecord//lib/active_record/relation.rb#393 def compute_cache_version(timestamp_column); end - # source://activerecord//lib/active_record/relation.rb#901 + # source://activerecord//lib/active_record/relation.rb#911 def current_scope_restoring_block(&block); end - # source://activerecord//lib/active_record/relation.rb#975 + # source://activerecord//lib/active_record/relation.rb#985 def exec_main_query(async: T.unsafe(nil)); end - # source://activerecord//lib/active_record/relation.rb#955 + # source://activerecord//lib/active_record/relation.rb#965 def exec_queries(&block); end # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#897 + # source://activerecord//lib/active_record/relation.rb#907 def global_scope?(registry); end # source://activerecord//lib/active_record/relation.rb#41 def initialize_copy(other); end - # source://activerecord//lib/active_record/relation.rb#1003 + # source://activerecord//lib/active_record/relation.rb#1013 def instantiate_records(rows, &block); end - # source://activerecord//lib/active_record/relation.rb#1046 + # source://activerecord//lib/active_record/relation.rb#1056 def limited_count; end # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#1022 + # source://activerecord//lib/active_record/relation.rb#1032 def references_eager_loaded_tables?; end - # source://activerecord//lib/active_record/relation.rb#1014 + # source://activerecord//lib/active_record/relation.rb#1024 def skip_query_cache_if_necessary(&block); end - # source://activerecord//lib/active_record/relation.rb#1039 + # source://activerecord//lib/active_record/relation.rb#1049 def tables_in_string(string); end end @@ -32891,15 +32910,15 @@ end # source://activerecord//lib/active_record/relation.rb#11 ActiveRecord::Relation::SINGLE_VALUE_METHODS = T.let(T.unsafe(nil), Array) -# source://activerecord//lib/active_record/relation.rb#867 +# source://activerecord//lib/active_record/relation.rb#877 class ActiveRecord::Relation::StrictLoadingScope class << self # @return [Boolean] # - # source://activerecord//lib/active_record/relation.rb#868 + # source://activerecord//lib/active_record/relation.rb#878 def empty_scope?; end - # source://activerecord//lib/active_record/relation.rb#872 + # source://activerecord//lib/active_record/relation.rb#882 def strict_loading_value; end end end @@ -35131,31 +35150,31 @@ class ActiveRecord::Tasks::DatabaseNotSupported < ::StandardError; end module ActiveRecord::Tasks::DatabaseTasks extend ::ActiveRecord::Tasks::DatabaseTasks - # source://activerecord//lib/active_record/tasks/database_tasks.rb#440 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#448 def cache_dump_filename(db_config_name, schema_cache_path: T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#305 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#313 def charset(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#300 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#308 def charset_current(env_name = T.unsafe(nil), db_name = T.unsafe(nil)); end # source://activerecord//lib/active_record/tasks/database_tasks.rb#65 def check_protected_environments!(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#458 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#466 def check_schema_file(filename); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#290 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#298 def check_target_version; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#484 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#492 def clear_schema_cache(filename); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#315 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#323 def collation(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#310 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#318 def collation_current(env_name = T.unsafe(nil), db_name = T.unsafe(nil)); end # source://activerecord//lib/active_record/tasks/database_tasks.rb#115 @@ -35179,8 +35198,8 @@ module ActiveRecord::Tasks::DatabaseTasks # source://activerecord//lib/active_record/tasks/database_tasks.rb#61 def database_configuration=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#258 - def db_configs_with_versions(db_configs); end + # source://activerecord//lib/active_record/tasks/database_tasks.rb#266 + def db_configs_with_versions(environment = T.unsafe(nil)); end # source://activerecord//lib/active_record/tasks/database_tasks.rb#83 def db_dir; end @@ -35192,16 +35211,16 @@ module ActiveRecord::Tasks::DatabaseTasks # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 def db_dir=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#204 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#212 def drop(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#216 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#224 def drop_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#220 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#228 def drop_current(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#403 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#411 def dump_schema(db_config, format = T.unsafe(nil)); end # Dumps the schema cache in YAML format for the connection into the file @@ -35209,7 +35228,7 @@ module ActiveRecord::Tasks::DatabaseTasks # ==== Examples # ActiveRecord::Tasks::DatabaseTasks.dump_schema_cache(ActiveRecord::Base.connection, "tmp/schema_dump.yaml") # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#480 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#488 def dump_schema_cache(conn, filename); end # source://activerecord//lib/active_record/tasks/database_tasks.rb#103 @@ -35235,25 +35254,25 @@ module ActiveRecord::Tasks::DatabaseTasks # source://activerecord//lib/active_record/tasks/database_tasks.rb#141 def for_each(databases); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#349 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#357 def load_schema(db_config, format = T.unsafe(nil), file = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#450 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#458 def load_schema_current(format = T.unsafe(nil), file = T.unsafe(nil), environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#466 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#474 def load_seed; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#237 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#245 def migrate(version = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#275 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#283 def migrate_status; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#505 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#513 def migration_class; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#509 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#517 def migration_connection; end # source://activerecord//lib/active_record/tasks/database_tasks.rb#87 @@ -35272,19 +35291,19 @@ module ActiveRecord::Tasks::DatabaseTasks # source://activerecord//lib/active_record/tasks/database_tasks.rb#176 def prepare_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#320 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#328 def purge(configuration); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#325 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#333 def purge_all; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#329 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#337 def purge_current(environment = T.unsafe(nil)); end # source://activerecord//lib/active_record/tasks/database_tasks.rb#156 def raise_for_multi_db(environment = T.unsafe(nil), command:); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#385 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#393 def reconstruct_from_schema(db_config, format = T.unsafe(nil), file = T.unsafe(nil)); end # source://activerecord//lib/active_record/tasks/database_tasks.rb#73 @@ -35300,12 +35319,12 @@ module ActiveRecord::Tasks::DatabaseTasks # source://activerecord//lib/active_record/tasks/database_tasks.rb#60 def root=(_arg0); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#427 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#435 def schema_dump_path(db_config, format = T.unsafe(nil)); end # @return [Boolean] # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#370 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#378 def schema_up_to_date?(configuration, format = T.unsafe(nil), file = T.unsafe(nil)); end # source://activerecord//lib/active_record/tasks/database_tasks.rb#111 @@ -35321,74 +35340,77 @@ module ActiveRecord::Tasks::DatabaseTasks # source://activerecord//lib/active_record/tasks/database_tasks.rb#135 def setup_initial_database_yaml; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#335 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#343 def structure_dump(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#342 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#350 def structure_load(configuration, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#296 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#304 def target_version; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#231 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#239 def truncate_all(environment = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#499 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#507 def with_temporary_connection(db_config, clobber: T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#488 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#496 def with_temporary_connection_for_each(env: T.unsafe(nil), name: T.unsafe(nil), clobber: T.unsafe(nil), &block); end private - # source://activerecord//lib/active_record/tasks/database_tasks.rb#604 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#615 def check_current_protected_environment!(db_config); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#546 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#554 def class_for_adapter(adapter); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#523 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#531 def configs_for(**options); end # Create a new instance for the specified db configuration object # For classes that have been converted to use db_config objects, pass a # `DatabaseConfig`, otherwise pass a `Hash` # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#538 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#546 def database_adapter_for(db_config, *arguments); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#554 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#562 def each_current_configuration(environment, name = T.unsafe(nil)); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#567 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#572 + def each_current_environment(environment, &block); end + + # source://activerecord//lib/active_record/tasks/database_tasks.rb#578 def each_local_configuration; end # @return [Boolean] # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#579 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#590 def local_database?(db_config); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#527 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#535 def resolve_configuration(configuration); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#584 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#595 def schema_sha1(file); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#588 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#599 def structure_dump_flags_for(adapter); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#596 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#607 def structure_load_flags_for(adapter); end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#224 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#232 def truncate_tables(db_config); end # @return [Boolean] # - # source://activerecord//lib/active_record/tasks/database_tasks.rb#531 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#539 def verbose?; end - # source://activerecord//lib/active_record/tasks/database_tasks.rb#514 + # source://activerecord//lib/active_record/tasks/database_tasks.rb#522 def with_temporary_pool(db_config, clobber: T.unsafe(nil)); end class << self @@ -35643,45 +35665,45 @@ module ActiveRecord::TestFixtures # source://activerecord//lib/active_record/test_fixtures.rb#9 def before_setup; end - # source://activerecord//lib/active_record/test_fixtures.rb#205 + # source://activerecord//lib/active_record/test_fixtures.rb#206 def enlist_fixture_connections; end - # source://activerecord//lib/active_record/test_fixtures.rb#112 + # source://activerecord//lib/active_record/test_fixtures.rb#113 def fixture_path; end # @return [Boolean] # - # source://activerecord//lib/active_record/test_fixtures.rb#121 + # source://activerecord//lib/active_record/test_fixtures.rb#122 def run_in_transaction?; end - # source://activerecord//lib/active_record/test_fixtures.rb#126 + # source://activerecord//lib/active_record/test_fixtures.rb#127 def setup_fixtures(config = T.unsafe(nil)); end - # source://activerecord//lib/active_record/test_fixtures.rb#188 + # source://activerecord//lib/active_record/test_fixtures.rb#189 def teardown_fixtures; end private - # source://activerecord//lib/active_record/test_fixtures.rb#290 + # source://activerecord//lib/active_record/test_fixtures.rb#291 def access_fixture(fs_name, *fixture_names); end - # source://activerecord//lib/active_record/test_fixtures.rb#258 + # source://activerecord//lib/active_record/test_fixtures.rb#259 def instantiate_fixtures; end - # source://activerecord//lib/active_record/test_fixtures.rb#254 + # source://activerecord//lib/active_record/test_fixtures.rb#255 def load_fixtures(config); end # @return [Boolean] # - # source://activerecord//lib/active_record/test_fixtures.rb#270 + # source://activerecord//lib/active_record/test_fixtures.rb#271 def load_instances?; end - # source://activerecord//lib/active_record/test_fixtures.rb#274 + # source://activerecord//lib/active_record/test_fixtures.rb#275 def method_missing(name, *args, **kwargs, &block); end # @return [Boolean] # - # source://activerecord//lib/active_record/test_fixtures.rb#282 + # source://activerecord//lib/active_record/test_fixtures.rb#283 def respond_to_missing?(name, include_private = T.unsafe(nil)); end # Shares the writing connection pool with connections on @@ -35691,10 +35713,10 @@ module ActiveRecord::TestFixtures # need to share a connection pool so that the reading connection # can see data in the open transaction on the writing connection. # - # source://activerecord//lib/active_record/test_fixtures.rb#218 + # source://activerecord//lib/active_record/test_fixtures.rb#219 def setup_shared_connection_pool; end - # source://activerecord//lib/active_record/test_fixtures.rb#237 + # source://activerecord//lib/active_record/test_fixtures.rb#238 def teardown_shared_connection_pool; end module GeneratedClassMethods @@ -35751,15 +35773,15 @@ module ActiveRecord::TestFixtures end end -# source://activerecord//lib/active_record/test_fixtures.rb#42 +# source://activerecord//lib/active_record/test_fixtures.rb#43 module ActiveRecord::TestFixtures::ClassMethods - # source://activerecord//lib/active_record/test_fixtures.rb#55 + # source://activerecord//lib/active_record/test_fixtures.rb#56 def fixture_path; end - # source://activerecord//lib/active_record/test_fixtures.rb#64 + # source://activerecord//lib/active_record/test_fixtures.rb#65 def fixture_path=(path); end - # source://activerecord//lib/active_record/test_fixtures.rb#69 + # source://activerecord//lib/active_record/test_fixtures.rb#70 def fixtures(*fixture_set_names); end # Sets the model class for a fixture when the class name cannot be inferred from the fixture name. @@ -35771,22 +35793,22 @@ module ActiveRecord::TestFixtures::ClassMethods # # The keys must be the fixture names, that coincide with the short paths to the fixture files. # - # source://activerecord//lib/active_record/test_fixtures.rb#51 + # source://activerecord//lib/active_record/test_fixtures.rb#52 def set_fixture_class(class_names = T.unsafe(nil)); end - # source://activerecord//lib/active_record/test_fixtures.rb#85 + # source://activerecord//lib/active_record/test_fixtures.rb#86 def setup_fixture_accessors(fixture_set_names = T.unsafe(nil)); end # Prevents automatically wrapping each specified test in a transaction, # to allow application logic transactions to be tested in a top-level # (non-nested) context. # - # source://activerecord//lib/active_record/test_fixtures.rb#101 + # source://activerecord//lib/active_record/test_fixtures.rb#102 def uses_transaction(*methods); end # @return [Boolean] # - # source://activerecord//lib/active_record/test_fixtures.rb#106 + # source://activerecord//lib/active_record/test_fixtures.rb#107 def uses_transaction?(method); end end @@ -35856,47 +35878,47 @@ module ActiveRecord::Timestamp private - # source://activerecord//lib/active_record/timestamp.rb#105 + # source://activerecord//lib/active_record/timestamp.rb#107 def _create_record; end - # source://activerecord//lib/active_record/timestamp.rb#117 + # source://activerecord//lib/active_record/timestamp.rb#119 def _update_record; end - # source://activerecord//lib/active_record/timestamp.rb#153 + # source://activerecord//lib/active_record/timestamp.rb#155 def all_timestamp_attributes_in_model; end # Clear attributes and changed_attributes # - # source://activerecord//lib/active_record/timestamp.rb#168 + # source://activerecord//lib/active_record/timestamp.rb#170 def clear_timestamp_attributes; end - # source://activerecord//lib/active_record/timestamp.rb#123 + # source://activerecord//lib/active_record/timestamp.rb#125 def create_or_update(touch: T.unsafe(nil), **_arg1); end - # source://activerecord//lib/active_record/timestamp.rb#157 + # source://activerecord//lib/active_record/timestamp.rb#159 def current_time_from_proper_timezone; end - # source://activerecord//lib/active_record/timestamp.rb#100 + # source://activerecord//lib/active_record/timestamp.rb#102 def init_internals; end # source://activerecord//lib/active_record/timestamp.rb#50 def initialize_dup(other); end - # source://activerecord//lib/active_record/timestamp.rb#161 + # source://activerecord//lib/active_record/timestamp.rb#163 def max_updated_column_timestamp; end - # source://activerecord//lib/active_record/timestamp.rb#128 + # source://activerecord//lib/active_record/timestamp.rb#130 def record_update_timestamps; end # @return [Boolean] # - # source://activerecord//lib/active_record/timestamp.rb#141 + # source://activerecord//lib/active_record/timestamp.rb#143 def should_record_timestamps?; end - # source://activerecord//lib/active_record/timestamp.rb#145 + # source://activerecord//lib/active_record/timestamp.rb#147 def timestamp_attributes_for_create_in_model; end - # source://activerecord//lib/active_record/timestamp.rb#149 + # source://activerecord//lib/active_record/timestamp.rb#151 def timestamp_attributes_for_update_in_model; end module GeneratedClassMethods @@ -35914,16 +35936,16 @@ end # source://activerecord//lib/active_record/timestamp.rb#55 module ActiveRecord::Timestamp::ClassMethods - # source://activerecord//lib/active_record/timestamp.rb#72 + # source://activerecord//lib/active_record/timestamp.rb#74 def all_timestamp_attributes_in_model; end - # source://activerecord//lib/active_record/timestamp.rb#77 + # source://activerecord//lib/active_record/timestamp.rb#79 def current_time_from_proper_timezone; end - # source://activerecord//lib/active_record/timestamp.rb#62 + # source://activerecord//lib/active_record/timestamp.rb#64 def timestamp_attributes_for_create_in_model; end - # source://activerecord//lib/active_record/timestamp.rb#67 + # source://activerecord//lib/active_record/timestamp.rb#69 def timestamp_attributes_for_update_in_model; end # source://activerecord//lib/active_record/timestamp.rb#56 @@ -35931,15 +35953,15 @@ module ActiveRecord::Timestamp::ClassMethods protected - # source://activerecord//lib/active_record/timestamp.rb#82 + # source://activerecord//lib/active_record/timestamp.rb#84 def reload_schema_from_cache(recursive = T.unsafe(nil)); end private - # source://activerecord//lib/active_record/timestamp.rb#90 + # source://activerecord//lib/active_record/timestamp.rb#92 def timestamp_attributes_for_create; end - # source://activerecord//lib/active_record/timestamp.rb#94 + # source://activerecord//lib/active_record/timestamp.rb#96 def timestamp_attributes_for_update; end end @@ -37100,7 +37122,7 @@ ActiveRecord::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveRecord::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activerecord//lib/active_record/gem_version.rb#13 -ActiveRecord::VERSION::PRE = T.let(T.unsafe(nil), String) +ActiveRecord::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) # source://activerecord//lib/active_record/gem_version.rb#15 ActiveRecord::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -40563,24 +40585,24 @@ class Arel::TreeManager # Returns the value of attribute ast. # - # source://activerecord//lib/arel/tree_manager.rb#41 + # source://activerecord//lib/arel/tree_manager.rb#45 def ast; end - # source://activerecord//lib/arel/tree_manager.rb#43 + # source://activerecord//lib/arel/tree_manager.rb#47 def to_dot; end - # source://activerecord//lib/arel/tree_manager.rb#49 + # source://activerecord//lib/arel/tree_manager.rb#53 def to_sql(engine = T.unsafe(nil)); end private - # source://activerecord//lib/arel/tree_manager.rb#55 + # source://activerecord//lib/arel/tree_manager.rb#59 def initialize_copy(other); end end # source://activerecord//lib/arel/tree_manager.rb#7 module Arel::TreeManager::StatementMethods - # source://activerecord//lib/arel/tree_manager.rb#27 + # source://activerecord//lib/arel/tree_manager.rb#31 def key; end # source://activerecord//lib/arel/tree_manager.rb#23 @@ -40595,10 +40617,10 @@ module Arel::TreeManager::StatementMethods # source://activerecord//lib/arel/tree_manager.rb#8 def take(limit); end - # source://activerecord//lib/arel/tree_manager.rb#35 + # source://activerecord//lib/arel/tree_manager.rb#39 def where(expr); end - # source://activerecord//lib/arel/tree_manager.rb#31 + # source://activerecord//lib/arel/tree_manager.rb#35 def wheres=(exprs); end end @@ -41025,7 +41047,7 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor private - # source://activerecord//lib/arel/visitors/to_sql.rb#982 + # source://activerecord//lib/arel/visitors/to_sql.rb#983 def aggregate(name, o, collector); end # source://activerecord//lib/arel/visitors/to_sql.rb#759 @@ -41033,10 +41055,10 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor # FIXME: we should probably have a 2-pass visitor for this # - # source://activerecord//lib/arel/visitors/to_sql.rb#945 + # source://activerecord//lib/arel/visitors/to_sql.rb#946 def build_subselect(key, o); end - # source://activerecord//lib/arel/visitors/to_sql.rb#1009 + # source://activerecord//lib/arel/visitors/to_sql.rb#1010 def collect_ctes(children, collector); end # source://activerecord//lib/arel/visitors/to_sql.rb#176 @@ -41060,16 +41082,16 @@ class Arel::Visitors::ToSql < ::Arel::Visitors::Visitor # source://activerecord//lib/arel/visitors/to_sql.rb#916 def has_limit_or_offset_or_orders?(o); end - # source://activerecord//lib/arel/visitors/to_sql.rb#959 + # source://activerecord//lib/arel/visitors/to_sql.rb#960 def infix_value(o, collector, value); end - # source://activerecord//lib/arel/visitors/to_sql.rb#965 + # source://activerecord//lib/arel/visitors/to_sql.rb#966 def infix_value_with_paren(o, collector, value, suppress_parens = T.unsafe(nil)); end # source://activerecord//lib/arel/visitors/to_sql.rb#900 def inject_join(list, collector, join_str); end - # source://activerecord//lib/arel/visitors/to_sql.rb#996 + # source://activerecord//lib/arel/visitors/to_sql.rb#997 def is_distinct_from(o, collector); end # source://activerecord//lib/arel/visitors/to_sql.rb#894 diff --git a/sorbet/rbi/gems/activestorage@7.1.3.3.rbi b/sorbet/rbi/gems/activestorage@7.1.4.rbi similarity index 71% rename from sorbet/rbi/gems/activestorage@7.1.3.3.rbi rename to sorbet/rbi/gems/activestorage@7.1.4.rbi index 99157d67..47c27869 100644 --- a/sorbet/rbi/gems/activestorage@7.1.3.3.rbi +++ b/sorbet/rbi/gems/activestorage@7.1.4.rbi @@ -11,100 +11,100 @@ class ActiveRecord::Base include ::ActiveModel::AttributeAssignment include ::ActiveModel::Serialization - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _before_commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _create_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _destroy_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _find_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _initialize_callbacks; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _rollback_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_before_commit_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_commit_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_create_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_destroy_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_find_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_initialize_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_rollback_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_save_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_touch_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_update_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_validation_callbacks(&block); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _save_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _touch_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _update_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _validation_callbacks; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators?; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#12 def aggregate_reflections?; end # source://activestorage//lib/active_storage/reflection.rb#53 @@ -113,397 +113,397 @@ class ActiveRecord::Base # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 + # source://activerecord/7.1.4/lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 + # source://activerecord/7.1.4/lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 + # source://activerecord/7.1.4/lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 + # source://activerecord/7.1.4/lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 + # source://activerecord/7.1.4/lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 + # source://activerecord/7.1.4/lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#178 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#178 def column_for_attribute(name, &block); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 + # source://activerecord/7.1.4/lib/active_record/core.rb#97 def default_connection_handler; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 + # source://activerecord/7.1.4/lib/active_record/core.rb#97 def default_connection_handler?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 + # source://activerecord/7.1.4/lib/active_record/core.rb#99 def default_role; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 + # source://activerecord/7.1.4/lib/active_record/core.rb#99 def default_role?; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.4/lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.4/lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 + # source://activerecord/7.1.4/lib/active_record/core.rb#101 def default_shard; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 + # source://activerecord/7.1.4/lib/active_record/core.rb#101 def default_shard?; end - # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#47 + # source://activerecord/7.1.4/lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#37 + # source://activerecord/7.1.4/lib/active_record/core.rb#37 def destroy_association_async_job(&block); end - # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.4/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.4/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(_arg0); end - # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.4/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.4/lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.4/lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 + # source://activerecord/7.1.4/lib/active_record/core.rb#22 def logger; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 + # source://activerecord/7.1.4/lib/active_record/core.rb#22 def logger?; end - # source://activemodel/7.1.3.3/lib/active_model/naming.rb#255 + # source://activemodel/7.1.4/lib/active_model/naming.rb#255 def model_name(&block); end - # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.4/lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.4/lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.4/lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.4/lib/active_record/normalization.rb#8 def normalized_attributes=(_arg0); end - # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.4/lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#163 def pluralize_table_names; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#163 def pluralize_table_names?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#158 def primary_key_prefix_type; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#158 def primary_key_prefix_type?; end - # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.4/lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.4/lib/active_record/timestamp.rb#47 def record_timestamps=(_arg0); end - # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.4/lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.4/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.4/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#159 def table_name_prefix; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#159 def table_name_prefix?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#160 def table_name_suffix; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#160 def table_name_suffix?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#178 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#178 def type_for_attribute(attr_name, &block); end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 + # source://activemodel/7.1.4/lib/active_model/validations.rb#67 def validation_context; end private - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#67 + # source://activemodel/7.1.4/lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activerecord/7.1.3.3/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.4/lib/active_record/readonly_attributes.rb#11 def _attr_readonly; end - # source://activerecord/7.1.3.3/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.4/lib/active_record/readonly_attributes.rb#11 def _attr_readonly=(value); end - # source://activerecord/7.1.3.3/lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.4/lib/active_record/readonly_attributes.rb#11 def _attr_readonly?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _before_commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _before_commit_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _commit_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _commit_callbacks=(value); end - # source://activerecord/7.1.3.3/lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.4/lib/active_record/counter_cache.rb#9 def _counter_cache_columns; end - # source://activerecord/7.1.3.3/lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.4/lib/active_record/counter_cache.rb#9 def _counter_cache_columns=(value); end - # source://activerecord/7.1.3.3/lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.4/lib/active_record/counter_cache.rb#9 def _counter_cache_columns?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _create_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _create_callbacks=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 + # source://activerecord/7.1.4/lib/active_record/core.rb#24 def _destroy_association_async_job; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 + # source://activerecord/7.1.4/lib/active_record/core.rb#24 def _destroy_association_async_job=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 + # source://activerecord/7.1.4/lib/active_record/core.rb#24 def _destroy_association_async_job?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _destroy_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _destroy_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _find_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _find_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _initialize_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _initialize_callbacks=(value); end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections=(value); end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _rollback_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _rollback_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _save_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _save_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _touch_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _touch_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _update_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _update_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _validation_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _validation_callbacks=(value); end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators?; end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_find(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_initialize(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_touch(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#12 def aggregate_reflections=(value); end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#12 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#12 def aggregate_reflections?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#105 + # source://activerecord/7.1.4/lib/active_record/core.rb#105 def application_record_class?; end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#125 + # source://activerecord/7.1.4/lib/active_record/core.rb#125 def asynchronous_queries_session; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#129 + # source://activerecord/7.1.4/lib/active_record/core.rb#129 def asynchronous_queries_tracker; end # source://activestorage//lib/active_storage/reflection.rb#53 @@ -515,495 +515,495 @@ class ActiveRecord::Base # source://activestorage//lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases=(value); end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns=(value); end - # source://activemodel/7.1.3.3/lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.4/lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end - # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.4/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.4/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads=(value); end - # source://activerecord/7.1.3.3/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.4/lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads?; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#13 def automatic_scope_inversing=(value); end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#13 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/7.1.3.3/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#89 + # source://activerecord/7.1.4/lib/active_record/core.rb#89 def belongs_to_required_by_default; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#89 + # source://activerecord/7.1.4/lib/active_record/core.rb#89 def belongs_to_required_by_default=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#89 + # source://activerecord/7.1.4/lib/active_record/core.rb#89 def belongs_to_required_by_default?; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 + # source://activerecord/7.1.4/lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 + # source://activerecord/7.1.4/lib/active_record/integration.rb#16 def cache_timestamp_format=(value); end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#16 + # source://activerecord/7.1.4/lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 + # source://activerecord/7.1.4/lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 + # source://activerecord/7.1.4/lib/active_record/integration.rb#24 def cache_versioning=(value); end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#24 + # source://activerecord/7.1.4/lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 + # source://activerecord/7.1.4/lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 + # source://activerecord/7.1.4/lib/active_record/integration.rb#32 def collection_cache_versioning=(value); end - # source://activerecord/7.1.3.3/lib/active_record/integration.rb#32 + # source://activerecord/7.1.4/lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#77 + # source://activerecord/7.1.4/lib/active_record/core.rb#77 def configurations; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#71 + # source://activerecord/7.1.4/lib/active_record/core.rb#71 def configurations=(config); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#189 + # source://activerecord/7.1.4/lib/active_record/core.rb#189 def connected_to_stack; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#203 + # source://activerecord/7.1.4/lib/active_record/core.rb#203 def connection_class; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#199 + # source://activerecord/7.1.4/lib/active_record/core.rb#199 def connection_class=(b); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#207 + # source://activerecord/7.1.4/lib/active_record/core.rb#207 def connection_class?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#211 + # source://activerecord/7.1.4/lib/active_record/core.rb#211 def connection_class_for_self; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#117 + # source://activerecord/7.1.4/lib/active_record/core.rb#117 def connection_handler; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#121 + # source://activerecord/7.1.4/lib/active_record/core.rb#121 def connection_handler=(handler); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#180 + # source://activerecord/7.1.4/lib/active_record/core.rb#180 def current_preventing_writes; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#143 + # source://activerecord/7.1.4/lib/active_record/core.rb#143 def current_role; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#161 + # source://activerecord/7.1.4/lib/active_record/core.rb#161 def current_shard; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer=(value); end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 + # source://activerecord/7.1.4/lib/active_record/core.rb#97 def default_connection_handler; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 + # source://activerecord/7.1.4/lib/active_record/core.rb#97 def default_connection_handler=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#97 + # source://activerecord/7.1.4/lib/active_record/core.rb#97 def default_connection_handler?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 + # source://activerecord/7.1.4/lib/active_record/core.rb#99 def default_role; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 + # source://activerecord/7.1.4/lib/active_record/core.rb#99 def default_role=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#99 + # source://activerecord/7.1.4/lib/active_record/core.rb#99 def default_role?; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.4/lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.4/lib/active_record/scoping/default.rb#20 def default_scope_override=(value); end - # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.4/lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.4/lib/active_record/scoping/default.rb#19 def default_scopes=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 + # source://activerecord/7.1.4/lib/active_record/core.rb#101 def default_shard; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 + # source://activerecord/7.1.4/lib/active_record/core.rb#101 def default_shard=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#101 + # source://activerecord/7.1.4/lib/active_record/core.rb#101 def default_shard?; end - # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums=(value); end - # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#47 + # source://activerecord/7.1.4/lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#47 + # source://activerecord/7.1.4/lib/active_record/core.rb#47 def destroy_association_async_batch_size=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#27 + # source://activerecord/7.1.4/lib/active_record/core.rb#27 def destroy_association_async_job; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#24 + # source://activerecord/7.1.4/lib/active_record/core.rb#24 def destroy_association_async_job=(value); end - # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.4/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.4/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(value); end - # source://activerecord/7.1.3.3/lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.4/lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#87 + # source://activerecord/7.1.4/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#87 + # source://activerecord/7.1.4/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#87 + # source://activerecord/7.1.4/lib/active_record/core.rb#87 def enumerate_columns_in_select_statements?; end - # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#11 + # source://activerecord/7.1.4/lib/active_record/token_for.rb#11 def generated_token_verifier; end - # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#11 + # source://activerecord/7.1.4/lib/active_record/token_for.rb#11 def generated_token_verifier=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#93 + # source://activerecord/7.1.4/lib/active_record/core.rb#93 def has_many_inversing; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#93 + # source://activerecord/7.1.4/lib/active_record/core.rb#93 def has_many_inversing=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#93 + # source://activerecord/7.1.4/lib/active_record/core.rb#93 def has_many_inversing?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#165 def immutable_strings_by_default; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#165 def immutable_strings_by_default=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#165 def immutable_strings_by_default?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#164 def implicit_order_column; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#164 def implicit_order_column=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#164 def implicit_order_column?; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/7.1.3.3/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#167 def inheritance_column; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#321 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#321 def inheritance_column=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#167 def inheritance_column?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#162 def internal_metadata_table_name; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#162 def internal_metadata_table_name=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#162 def internal_metadata_table_name?; end - # source://activerecord/7.1.3.3/lib/active_record/store.rb#101 + # source://activerecord/7.1.4/lib/active_record/store.rb#101 def local_stored_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/store.rb#101 + # source://activerecord/7.1.4/lib/active_record/store.rb#101 def local_stored_attributes=(_arg0); end - # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.4/lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.4/lib/active_record/locking/optimistic.rb#56 def lock_optimistically=(value); end - # source://activerecord/7.1.3.3/lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.4/lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 + # source://activerecord/7.1.4/lib/active_record/core.rb#22 def logger; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 + # source://activerecord/7.1.4/lib/active_record/core.rb#22 def logger=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#22 + # source://activerecord/7.1.4/lib/active_record/core.rb#22 def logger?; end - # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.4/lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.4/lib/active_record/nested_attributes.rb#15 def nested_attributes_options=(value); end - # source://activerecord/7.1.3.3/lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.4/lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.4/lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.4/lib/active_record/normalization.rb#8 def normalized_attributes=(value); end - # source://activerecord/7.1.3.3/lib/active_record/normalization.rb#8 + # source://activerecord/7.1.4/lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.3/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 def param_delimiter?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts=(value); end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates=(value); end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#163 def pluralize_table_names; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#163 def pluralize_table_names=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#163 def pluralize_table_names?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#158 def primary_key_prefix_type; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#158 def primary_key_prefix_type=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#158 def primary_key_prefix_type?; end - # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.4/lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.4/lib/active_record/timestamp.rb#47 def record_timestamps=(value); end - # source://activerecord/7.1.3.3/lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.4/lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#95 + # source://activerecord/7.1.4/lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#95 + # source://activerecord/7.1.4/lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#95 + # source://activerecord/7.1.4/lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#161 def schema_migrations_table_name; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#161 def schema_migrations_table_name=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#161 def schema_migrations_table_name?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#103 + # source://activerecord/7.1.4/lib/active_record/core.rb#103 def shard_selector; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#103 + # source://activerecord/7.1.4/lib/active_record/core.rb#103 def shard_selector=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#103 + # source://activerecord/7.1.4/lib/active_record/core.rb#103 def shard_selector?; end - # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.4/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.4/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret=(value); end - # source://activerecord/7.1.3.3/lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.4/lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes=(value); end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#43 def store_full_class_name=(value); end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#47 def store_full_sti_class=(value); end - # source://activerecord/7.1.3.3/lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.4/lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#91 + # source://activerecord/7.1.4/lib/active_record/core.rb#91 def strict_loading_by_default; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#91 + # source://activerecord/7.1.4/lib/active_record/core.rb#91 def strict_loading_by_default=(value); end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#91 + # source://activerecord/7.1.4/lib/active_record/core.rb#91 def strict_loading_by_default?; end - # source://activerecord/7.1.3.3/lib/active_record/core.rb#226 + # source://activerecord/7.1.4/lib/active_record/core.rb#226 def strict_loading_violation!(owner:, reflection:); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#159 def table_name_prefix; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#159 def table_name_prefix=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#159 def table_name_prefix?; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#160 def table_name_suffix; end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#160 def table_name_suffix=(value); end - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#160 def table_name_suffix?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes=(value); end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes?; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types; end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types=(value); end - # source://activerecord/7.1.3.3/lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.4/lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types?; end - # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#10 + # source://activerecord/7.1.4/lib/active_record/token_for.rb#10 def token_definitions; end - # source://activerecord/7.1.3.3/lib/active_record/token_for.rb#10 + # source://activerecord/7.1.4/lib/active_record/token_for.rb#10 def token_definitions=(value); end private - # source://activerecord/7.1.3.3/lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.4/lib/active_record/model_schema.rb#167 def _inheritance_column=(value); end end end # :markup: markdown -# :include: activestorage/README.md +# :include: ../README.md # # source://activestorage//lib/active_storage/gem_version.rb#3 module ActiveStorage @@ -1198,13 +1198,13 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#52 def queues=(val); end - # source://railties/7.1.3.3/lib/rails/engine.rb#412 + # source://railties/7.1.4/lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.3/lib/rails/engine.rb#395 + # source://railties/7.1.4/lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.3/lib/rails/engine.rb#416 + # source://railties/7.1.4/lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # source://activestorage//lib/active_storage.rb#367 @@ -1243,7 +1243,7 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#65 def supported_image_processing_methods=(val); end - # source://railties/7.1.3.3/lib/rails/engine.rb#401 + # source://railties/7.1.4/lib/rails/engine.rb#401 def table_name_prefix; end # source://activestorage//lib/active_storage.rb#363 @@ -1264,7 +1264,7 @@ module ActiveStorage # source://activestorage//lib/active_storage.rb#357 def urls_expire_in=(val); end - # source://railties/7.1.3.3/lib/rails/engine.rb#408 + # source://railties/7.1.4/lib/rails/engine.rb#408 def use_relative_model_naming?; end # source://activestorage//lib/active_storage.rb#59 @@ -1308,10 +1308,10 @@ class ActiveStorage::AnalyzeJob < ::ActiveStorage::BaseJob def perform(blob); end class << self - # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -1841,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.3/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#354 def method_missing(method, *args, **_arg2, &block); end # source://activestorage//lib/active_storage/attached/many.rb#13 @@ -1858,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.3/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#346 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -1868,35 +1868,35 @@ module ActiveStorage::Attached::Model mixes_in_class_methods ::ActiveStorage::Attached::Model::ClassMethods - # source://activestorage//lib/active_storage/attached/model.rb#251 + # source://activestorage//lib/active_storage/attached/model.rb#255 def attachment_changes; end - # source://activestorage//lib/active_storage/attached/model.rb#255 + # source://activestorage//lib/active_storage/attached/model.rb#259 def changed_for_autosave?; end - # source://activestorage//lib/active_storage/attached/model.rb#265 + # source://activestorage//lib/active_storage/attached/model.rb#269 def reload(*_arg0); end private - # source://activestorage//lib/active_storage/attached/model.rb#259 + # source://activestorage//lib/active_storage/attached/model.rb#263 def initialize_dup(*_arg0); end end # source://activestorage//lib/active_storage/attached/model.rb#0 module ActiveStorage::Attached::Model::ClassMethods - # source://activestorage//lib/active_storage/attached/model.rb#182 + # source://activestorage//lib/active_storage/attached/model.rb#186 def has_many_attached(name, dependent: T.unsafe(nil), service: T.unsafe(nil), strict_loading: T.unsafe(nil)); end - # source://activestorage//lib/active_storage/attached/model.rb#94 + # source://activestorage//lib/active_storage/attached/model.rb#96 def has_one_attached(name, dependent: T.unsafe(nil), service: T.unsafe(nil), strict_loading: T.unsafe(nil)); end private - # source://activestorage//lib/active_storage/attached/model.rb#244 + # source://activestorage//lib/active_storage/attached/model.rb#248 def validate_global_service_configuration; end - # source://activestorage//lib/active_storage/attached/model.rb#234 + # source://activestorage//lib/active_storage/attached/model.rb#238 def validate_service_configuration(association_name, service); end end @@ -1917,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.3/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#332 def method_missing(method, *args, **_arg2, &block); end # source://activestorage//lib/active_storage/attached/one.rb#13 @@ -1934,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.3/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#324 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -1942,13 +1942,13 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record include ::ActiveStorage::Attachment::GeneratedAttributeMethods include ::ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_blob(*args); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_record(*args); end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#354 def method_missing(method, *args, **_arg2, &block); end def preview(transformations); end @@ -1957,7 +1957,7 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def representation(transformations); end def signed_id(*_arg0, **_arg1, &_arg2); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_blob(*args); end def variant(transformations); end @@ -1970,74 +1970,74 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def named_variants; end def purge_dependent_blob_later; end - # source://activesupport/7.1.3.3/lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.4/lib/active_support/core_ext/module/delegation.rb#346 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.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.4/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.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def blob=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.4/lib/active_record/associations/builder/belongs_to.rb#145 def blob_changed?; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.4/lib/active_record/associations/builder/belongs_to.rb#149 def blob_previously_changed?; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def record; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def record=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.4/lib/active_record/associations/builder/belongs_to.rb#145 def record_changed?; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.4/lib/active_record/associations/builder/belongs_to.rb#149 def record_previously_changed?; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#19 def reload_record; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#23 def reset_record; end end @@ -2048,17 +2048,17 @@ class ActiveStorage::BaseController < ::ActionController::Base private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.4/lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2072,24 +2072,19 @@ class ActiveStorage::Blob < ::ActiveStorage::Record include ::ActiveStorage::Blob::Identifiable include ::ActiveStorage::Blob::Representable include ::ActiveStorage::Blob::Servable - include ::ActionText::Attachable - extend ::ActionText::Attachable::ClassMethods - - # 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.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_attachments(*args); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_preview_image_attachment(*args); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_preview_image_blob(*args); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_variant_records(*args); end def compose(keys); end @@ -2103,14 +2098,10 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def key; end def mirror_later; end def open(tmpdir: T.unsafe(nil), &block); end - - # 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.3/lib/active_record/secure_token.rb#53 + # source://activerecord/7.1.4/lib/active_record/secure_token.rb#53 def regenerate_key; end def service; end @@ -2121,19 +2112,15 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def services?; end 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.3/lib/action_text/engine.rb#51 - def to_trix_content_attachment_partial_path; end - def unfurl(io, identify: T.unsafe(nil)); end def upload(io, identify: T.unsafe(nil)); end 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.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_attachments(*args); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def validate_associated_records_for_variant_records(*args); end def video?; end @@ -2148,19 +2135,19 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def web_image?; end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/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.3/lib/active_record/attributes.rb#11 + # source://activerecord/7.1.4/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 @@ -2170,7 +2157,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.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums; end def find_signed(id, record: T.unsafe(nil), purpose: T.unsafe(nil)); end @@ -2185,10 +2172,10 @@ class ActiveStorage::Blob < ::ActiveStorage::Record def services?; end def signed_id_verifier; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.4/lib/active_record/scoping/named.rb#174 def unattached(*args, **_arg1); end - # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.4/lib/active_record/scoping/named.rb#174 def with_attached_preview_image(*args, **_arg1); end end end @@ -2206,76 +2193,76 @@ module ActiveStorage::Blob::Analyzable end module ActiveStorage::Blob::GeneratedAssociationMethods - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.4/lib/active_record/associations/builder/collection_association.rb#62 def attachment_ids; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.4/lib/active_record/associations/builder/collection_association.rb#72 def attachment_ids=(ids); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def attachments; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def attachments=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_attachment(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#32 def build_preview_image_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_attachment(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#40 def create_preview_image_attachment!(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#36 def create_preview_image_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.4/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 + # source://activestorage//lib/active_storage/attached/model.rb#101 def preview_image; end - # source://activestorage//lib/active_storage/attached/model.rb#104 + # source://activestorage//lib/active_storage/attached/model.rb#106 def preview_image=(attachable); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def preview_image_attachment; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def preview_image_attachment=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def preview_image_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def preview_image_blob=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_attachment; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#19 def reload_preview_image_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_attachment; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#23 def reset_preview_image_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.4/lib/active_record/associations/builder/collection_association.rb#62 def variant_record_ids; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.4/lib/active_record/associations/builder/collection_association.rb#72 def variant_record_ids=(ids); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def variant_records; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def variant_records=(value); end end @@ -2297,8 +2284,10 @@ ActiveStorage::Blob::MINIMUM_TOKEN_LENGTH = T.let(T.unsafe(nil), Integer) module ActiveStorage::Blob::Representable extend ::ActiveSupport::Concern + def create_preview_image_later(variations); end def preprocessed(transformations); end def preview(transformations); end + def preview_image_needed_before_processing_variants?; end def previewable?; end def representable?; end def representation(transformations); end @@ -2336,14 +2325,14 @@ class ActiveStorage::Blobs::ProxyController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2355,24 +2344,24 @@ class ActiveStorage::Blobs::RedirectController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end class ActiveStorage::Current < ::ActiveSupport::CurrentAttributes class << self - # source://activesupport/7.1.3.3/lib/active_support/current_attributes.rb#127 + # source://activesupport/7.1.4/lib/active_support/current_attributes.rb#127 def url_options; end - # source://activesupport/7.1.3.3/lib/active_support/current_attributes.rb#127 + # source://activesupport/7.1.4/lib/active_support/current_attributes.rb#127 def url_options=(value); end end end @@ -2382,14 +2371,14 @@ class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def blob_args; end def direct_upload_json(blob); end class << self - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2406,7 +2395,7 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def acceptable_content?(token); end @@ -2415,10 +2404,10 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController def named_disk_service(name); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2453,7 +2442,7 @@ end # source://activestorage//lib/active_storage/engine.rb#25 class ActiveStorage::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -2539,10 +2528,10 @@ class ActiveStorage::FixtureSet include ::ActiveRecord::SecureToken extend ::ActiveRecord::SecureToken::ClassMethods - # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.4/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.4/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end # source://activestorage//lib/active_storage/fixture_set.rb#70 @@ -2570,13 +2559,13 @@ class ActiveStorage::FixtureSet # source://activestorage//lib/active_storage/fixture_set.rb#66 def blob(filename:, **attributes); end - # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.4/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.4/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path=(value); end - # source://activesupport/7.1.3.3/lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.4/lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end end end @@ -2640,7 +2629,7 @@ class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber def log_prefix_for_service(event); end class << self - # source://activesupport/7.1.3.3/lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.4/lib/active_support/log_subscriber.rb#88 def log_levels; end end end @@ -2649,10 +2638,10 @@ class ActiveStorage::MirrorJob < ::ActiveStorage::BaseJob def perform(key, checksum:); end class << self - # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2696,6 +2685,18 @@ class ActiveStorage::Preview::UnprocessedError < ::StandardError; end # source://activestorage//lib/active_storage/errors.rb#28 class ActiveStorage::PreviewError < ::ActiveStorage::Error; end +class ActiveStorage::PreviewImageJob < ::ActiveStorage::BaseJob + def perform(blob, variations); end + + class << self + # source://activejob/7.1.4/lib/active_job/queue_name.rb#55 + def queue_name; end + + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 + def rescue_handlers; end + end +end + # = Active Storage \Previewer # # This is an abstract base class for previewers, which generate images from blobs. See @@ -2847,10 +2848,10 @@ class ActiveStorage::PurgeJob < ::ActiveStorage::BaseJob def perform(blob); end class << self - # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2860,10 +2861,10 @@ class ActiveStorage::Record < ::ActiveRecord::Base include ::ActiveStorage::Record::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums; end end end @@ -2956,17 +2957,17 @@ class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseCont private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def blob_scope; end def set_representation; end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2981,14 +2982,14 @@ class ActiveStorage::Representations::ProxyController < ::ActiveStorage::Represe private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2998,11 +2999,11 @@ class ActiveStorage::Representations::RedirectController < ::ActiveStorage::Repr private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -3272,10 +3273,10 @@ class ActiveStorage::TransformJob < ::ActiveStorage::BaseJob def perform(blob, transformations); end class << self - # source://activejob/7.1.3.3/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -3346,7 +3347,7 @@ ActiveStorage::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveStorage::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activestorage//lib/active_storage/gem_version.rb#13 -ActiveStorage::VERSION::PRE = T.let(T.unsafe(nil), String) +ActiveStorage::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) # source://activestorage//lib/active_storage/gem_version.rb#15 ActiveStorage::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -3381,110 +3382,110 @@ class ActiveStorage::VariantRecord < ::ActiveStorage::Record include ::ActiveStorage::VariantRecord::GeneratedAttributeMethods include ::ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_blob(*args); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_image_attachment(*args); end - # source://activerecord/7.1.3.3/lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.4/lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_image_blob(*args); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.3/lib/active_record/reflection.rb#11 + # source://activerecord/7.1.4/lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.3/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4/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.3/lib/active_record/enum.rb#167 + # source://activerecord/7.1.4/lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.3/lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.4/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.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def blob=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.4/lib/active_record/associations/builder/belongs_to.rb#145 def blob_changed?; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.4/lib/active_record/associations/builder/belongs_to.rb#149 def blob_previously_changed?; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#32 def build_image_attachment(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#32 def build_image_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#36 def create_image_attachment(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#40 def create_image_attachment!(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#36 def create_image_blob(*args, &block); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.4/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 + # source://activestorage//lib/active_storage/attached/model.rb#101 def image; end - # source://activestorage//lib/active_storage/attached/model.rb#104 + # source://activestorage//lib/active_storage/attached/model.rb#106 def image=(attachable); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def image_attachment; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def image_attachment=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#103 def image_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.4/lib/active_record/associations/builder/association.rb#111 def image_blob=(value); end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_attachment; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#19 def reload_image_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.4/lib/active_record/associations/builder/singular_association.rb#23 def reset_image_attachment; end - # source://activerecord/7.1.3.3/lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.4/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.3.rbi b/sorbet/rbi/gems/activesupport@7.1.4.rbi similarity index 97% rename from sorbet/rbi/gems/activesupport@7.1.3.3.rbi rename to sorbet/rbi/gems/activesupport@7.1.4.rbi index fcc31b00..ce5bcc40 100644 --- a/sorbet/rbi/gems/activesupport@7.1.3.3.rbi +++ b/sorbet/rbi/gems/activesupport@7.1.4.rbi @@ -5,7 +5,7 @@ # Please instead update this file by running `bin/tapioca gem activesupport`. -# :include: activesupport/README.rdoc +# :include: ../README.rdoc # # source://activesupport//lib/active_support/deep_mergeable.rb#3 module ActiveSupport @@ -303,7 +303,7 @@ class ActiveSupport::BacktraceCleaner # # Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb" # backtrace_cleaner.add_filter { |line| line.gsub(Rails.root.to_s, '') } # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#80 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#81 def add_filter(&block); end # Adds a silencer from the block provided. If the silencer returns +true+ @@ -312,63 +312,66 @@ class ActiveSupport::BacktraceCleaner # # Will reject all lines that include the word "puma", like "/gems/puma/server.rb" or "/app/my_puma_server/rb" # backtrace_cleaner.add_silencer { |line| /puma/.match?(line) } # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#89 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#90 def add_silencer(&block); end # Returns the backtrace after all filters and silencers have been run # against it. Filters run first, then silencers. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#43 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#44 def clean(backtrace, kind = T.unsafe(nil)); end # Returns the frame with all filters applied. # returns +nil+ if the frame was silenced. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#59 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#60 def clean_frame(frame, kind = T.unsafe(nil)); end # Returns the backtrace after all filters and silencers have been run # against it. Filters run first, then silencers. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#43 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#44 def filter(backtrace, kind = T.unsafe(nil)); end # Removes all filters, but leaves in the silencers. Useful if you suddenly # need to see entire filepaths in the backtrace that you had already # filtered out. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#103 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#104 def remove_filters!; end # Removes all silencers, but leaves in the filters. Useful if your # context of debugging suddenly expands as you suspect a bug in one of # the libraries you use. # - # source://activesupport//lib/active_support/backtrace_cleaner.rb#96 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#97 def remove_silencers!; end private - # source://activesupport//lib/active_support/backtrace_cleaner.rb#110 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#120 + def add_core_silencer; end + + # source://activesupport//lib/active_support/backtrace_cleaner.rb#111 def add_gem_filter; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#119 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#124 def add_gem_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#123 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#128 def add_stdlib_silencer; end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#127 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#132 def filter_backtrace(backtrace); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#143 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#148 def noise(backtrace); end - # source://activesupport//lib/active_support/backtrace_cleaner.rb#135 + # source://activesupport//lib/active_support/backtrace_cleaner.rb#140 def silence(backtrace); end end -# source://activesupport//lib/active_support/backtrace_cleaner.rb#108 +# source://activesupport//lib/active_support/backtrace_cleaner.rb#109 ActiveSupport::BacktraceCleaner::FORMATTED_GEMS_PATTERN = T.let(T.unsafe(nil), Regexp) # = \Benchmarkable @@ -661,12 +664,12 @@ class ActiveSupport::BroadcastLogger # source://activesupport//lib/active_support/broadcast_logger.rb#221 def initialize_copy(other); end - # source://activesupport//lib/active_support/broadcast_logger.rb#234 + # source://activesupport//lib/active_support/broadcast_logger.rb#235 def method_missing(name, *args, **kwargs, &block); end # @return [Boolean] # - # source://activesupport//lib/active_support/broadcast_logger.rb#246 + # source://activesupport//lib/active_support/broadcast_logger.rb#247 def respond_to_missing?(method, include_all); end class << self @@ -1302,291 +1305,6 @@ end # source://activesupport//lib/active_support/cache.rb#41 ActiveSupport::Cache::OPTION_ALIASES = T.let(T.unsafe(nil), Hash) -# = Redis \Cache \Store -# -# Deployment note: Take care to use a dedicated Redis cache rather -# than pointing this at a persistent Redis server (for example, one used as -# an Active Job queue). Redis won't cope well with mixed usage patterns and it -# won't expire cache entries by default. -# -# Redis cache server setup guide: https://redis.io/topics/lru-cache -# -# * Supports vanilla Redis, hiredis, and +Redis::Distributed+. -# * Supports Memcached-like sharding across Redises with +Redis::Distributed+. -# * Fault tolerant. If the Redis server is unavailable, no exceptions are -# raised. Cache fetches are all misses and writes are dropped. -# * Local cache. Hot in-memory primary cache within block/middleware scope. -# * +read_multi+ and +write_multi+ support for Redis mget/mset. Use -# +Redis::Distributed+ 4.0.1+ for distributed mget support. -# * +delete_matched+ support for Redis KEYS globs. -# -# source://activesupport//lib/active_support/cache/redis_cache_store.rb#37 -class ActiveSupport::Cache::RedisCacheStore < ::ActiveSupport::Cache::Store - include ::ActiveSupport::Cache::Strategy::LocalCache - - # Creates a new Redis cache store. - # - # There are four ways to provide the Redis client used by the cache: the - # +:redis+ param can be a Redis instance or a block that returns a Redis - # instance, or the +:url+ param can be a string or an array of strings - # which will be used to create a Redis instance or a +Redis::Distributed+ - # instance. - # - # Option Class Result - # :redis Proc -> options[:redis].call - # :redis Object -> options[:redis] - # :url String -> Redis.new(url: …) - # :url Array -> Redis::Distributed.new([{ url: … }, { url: … }, …]) - # - # No namespace is set by default. Provide one if the Redis cache - # server is shared with other apps: namespace: 'myapp-cache'. - # - # Compression is enabled by default with a 1kB threshold, so cached - # values larger than 1kB are automatically compressed. Disable by - # passing compress: false or change the threshold by passing - # compress_threshold: 4.kilobytes. - # - # No expiry is set on cache entries by default. Redis is expected to - # be configured with an eviction policy that automatically deletes - # least-recently or -frequently used keys when it reaches max memory. - # See https://redis.io/topics/lru-cache for cache server setup. - # - # Race condition TTL is not set by default. This can be used to avoid - # "thundering herd" cache writes when hot cache entries are expired. - # See ActiveSupport::Cache::Store#fetch for more. - # - # Setting skip_nil: true will not cache nil results: - # - # cache.fetch('foo') { nil } - # cache.fetch('bar', skip_nil: true) { nil } - # cache.exist?('foo') # => true - # cache.exist?('bar') # => false - # - # @return [RedisCacheStore] a new instance of RedisCacheStore - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#149 - def initialize(error_handler: T.unsafe(nil), **redis_options); end - - # Cache Store API implementation. - # - # Removes expired entries. Handled natively by Redis least-recently-/ - # least-frequently-used expiry, so manual cleanup is not supported. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#85 - def cleanup(options = T.unsafe(nil)); end - - # Clear the entire cache on all Redis servers. Safe to use on - # shared servers if the cache is namespaced. - # - # Failsafe: Raises errors. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#79 - def clear(options = T.unsafe(nil)); end - - # Decrement a cached integer value using the Redis decrby atomic operator. - # Returns the updated value. - # - # If the key is unset or has expired, it will be set to +-amount+: - # - # cache.decrement("foo") # => -1 - # - # To set a specific value, call #write passing raw: true: - # - # cache.write("baz", 5, raw: true) - # cache.decrement("baz") # => 4 - # - # Decrementing a non-numeric value, or a value written without - # raw: true, will fail and return +nil+. - # - # Failsafe: Raises errors. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#108 - def decrement(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end - - # Cache Store API implementation. - # - # Supports Redis KEYS glob patterns: - # - # h?llo matches hello, hallo and hxllo - # h*llo matches hllo and heeeello - # h[ae]llo matches hello and hallo, but not hillo - # h[^e]llo matches hallo, hbllo, ... but not hello - # h[a-b]llo matches hallo and hbllo - # - # Use \ to escape special characters if you want to match them verbatim. - # - # See https://redis.io/commands/KEYS for more. - # - # Failsafe: Raises errors. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#91 - def delete_matched(matcher, options = T.unsafe(nil)); end - - # Increment a cached integer value using the Redis incrby atomic operator. - # Returns the updated value. - # - # If the key is unset or has expired, it will be set to +amount+: - # - # cache.increment("foo") # => 1 - # cache.increment("bar", 100) # => 100 - # - # To set a specific value, call #write passing raw: true: - # - # cache.write("baz", 5, raw: true) - # cache.increment("baz") # => 6 - # - # Incrementing a non-numeric value, or a value written without - # raw: true, will fail and return +nil+. - # - # Failsafe: Raises errors. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#97 - def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#164 - def inspect; end - - # Returns the value of attribute max_key_bytesize. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#109 - def max_key_bytesize; end - - # Cache Store API implementation. - # - # Read multiple values at once. Returns a hash of requested keys -> - # fetched values. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#172 - def read_multi(*names); end - - # Returns the value of attribute redis. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#110 - def redis; end - - # Get info from redis servers. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#295 - def stats; end - - private - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#444 - def change_counter(key, amount, options); end - - # Delete an entry from the cache. - # - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#162 - def delete_entry(key, **_arg1); end - - # Deletes multiple entries in the cache. Returns the number of entries deleted. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#386 - def delete_multi_entries(entries, **_options); end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#422 - def deserialize_entry(payload, raw: T.unsafe(nil), **_arg2); end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#478 - def failsafe(method, returning: T.unsafe(nil)); end - - # Truncate keys that exceed 1kB. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#408 - def normalize_key(key, options); end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#300 - def pipeline_entries(entries, &block); end - - # Store provider interface: - # Read an entry from the cache. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#314 - def read_entry(key, **options); end - - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#134 - def read_multi_entries(names, **options); end - - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#120 - def read_serialized_entry(key, raw: T.unsafe(nil), **options); end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#438 - def serialize_entries(entries, **options); end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#430 - def serialize_entry(entry, raw: T.unsafe(nil), **options); end - - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#471 - def supports_expire_nx?; end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#412 - def truncate_key(key); end - - # Write an entry to the cache. - # - # Requires Redis 2.6.12+ for extended SET options. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#351 - def write_entry(key, entry, raw: T.unsafe(nil), **options); end - - # Nonstandard store provider API to write multiple values at once. - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#393 - def write_multi_entries(entries, **options); end - - # source://activesupport//lib/active_support/cache/strategy/local_cache.rb#153 - def write_serialized_entry(key, payload, **_arg2); end - - class << self - # Factory method to create a new Redis instance. - # - # Handles four options: :redis block, :redis instance, single :url - # string, and multiple :url strings. - # - # Option Class Result - # :redis Proc -> options[:redis].call - # :redis Object -> options[:redis] - # :url String -> Redis.new(url: …) - # :url Array -> Redis::Distributed.new([{ url: … }, { url: … }, …]) - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#81 - def build_redis(redis: T.unsafe(nil), url: T.unsafe(nil), **redis_options); end - - # Advertise cache versioning support. - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#63 - def supports_cache_versioning?; end - - private - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#104 - def build_redis_client(**redis_options); end - - # source://activesupport//lib/active_support/cache/redis_cache_store.rb#98 - def build_redis_distributed_client(urls:, **redis_options); end - end -end - -# source://activesupport//lib/active_support/cache/redis_cache_store.rb#47 -ActiveSupport::Cache::RedisCacheStore::DEFAULT_ERROR_HANDLER = T.let(T.unsafe(nil), Proc) - -# source://activesupport//lib/active_support/cache/redis_cache_store.rb#41 -ActiveSupport::Cache::RedisCacheStore::DEFAULT_REDIS_OPTIONS = T.let(T.unsafe(nil), Hash) - -# Keys are truncated with the Active Support digest if they exceed 1kB -# -# source://activesupport//lib/active_support/cache/redis_cache_store.rb#39 -ActiveSupport::Cache::RedisCacheStore::MAX_KEY_BYTESIZE = T.let(T.unsafe(nil), Integer) - -# The maximum number of entries to receive per SCAN call. -# -# source://activesupport//lib/active_support/cache/redis_cache_store.rb#59 -ActiveSupport::Cache::RedisCacheStore::SCAN_BATCH_SIZE = T.let(T.unsafe(nil), Integer) - # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#8 module ActiveSupport::Cache::SerializerWithFallback # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#17 @@ -2210,7 +1928,7 @@ class ActiveSupport::Cache::Store # source://activesupport//lib/active_support/cache.rb#997 def expanded_version(key); end - # source://activesupport//lib/active_support/cache.rb#1050 + # source://activesupport//lib/active_support/cache.rb#1051 def get_entry_value(entry, name, options); end # source://activesupport//lib/active_support/cache.rb#1034 @@ -2282,7 +2000,7 @@ class ActiveSupport::Cache::Store # source://activesupport//lib/active_support/cache.rb#829 def read_multi_entries(names, **options); end - # source://activesupport//lib/active_support/cache.rb#1055 + # source://activesupport//lib/active_support/cache.rb#1056 def save_block_result_to_cache(name, options); end # source://activesupport//lib/active_support/cache.rb#812 @@ -2471,37 +2189,37 @@ ActiveSupport::Cache::UNIVERSAL_OPTIONS = T.let(T.unsafe(nil), Array) # ActiveSupport::Cache::Store#fetch, the second argument will be an # instance of +WriteOptions+. # -# source://activesupport//lib/active_support/cache.rb#1071 +# source://activesupport//lib/active_support/cache.rb#1072 class ActiveSupport::Cache::WriteOptions # @return [WriteOptions] a new instance of WriteOptions # - # source://activesupport//lib/active_support/cache.rb#1072 + # source://activesupport//lib/active_support/cache.rb#1073 def initialize(options); end - # source://activesupport//lib/active_support/cache.rb#1096 + # source://activesupport//lib/active_support/cache.rb#1097 def expires_at; end # Sets the Cache entry's +expires_at+ value. If an +expires_in+ option was # previously set, this will unset it since +expires_at+ and +expires_in+ # cannot both be set. # - # source://activesupport//lib/active_support/cache.rb#1103 + # source://activesupport//lib/active_support/cache.rb#1104 def expires_at=(expires_at); end - # source://activesupport//lib/active_support/cache.rb#1084 + # source://activesupport//lib/active_support/cache.rb#1085 def expires_in; end # Sets the Cache entry's +expires_in+ value. If an +expires_at+ option was # previously set, this will unset it since +expires_in+ and +expires_at+ # cannot both be set. # - # source://activesupport//lib/active_support/cache.rb#1091 + # source://activesupport//lib/active_support/cache.rb#1092 def expires_in=(expires_in); end - # source://activesupport//lib/active_support/cache.rb#1076 + # source://activesupport//lib/active_support/cache.rb#1077 def version; end - # source://activesupport//lib/active_support/cache.rb#1080 + # source://activesupport//lib/active_support/cache.rb#1081 def version=(version); end end @@ -3269,17 +2987,17 @@ end class ActiveSupport::CodeGenerator # @return [CodeGenerator] a new instance of CodeGenerator # - # source://activesupport//lib/active_support/code_generator.rb#48 + # source://activesupport//lib/active_support/code_generator.rb#53 def initialize(owner, path, line); end - # source://activesupport//lib/active_support/code_generator.rb#55 - def define_cached_method(name, namespace:, as: T.unsafe(nil), &block); end + # source://activesupport//lib/active_support/code_generator.rb#60 + def define_cached_method(canonical_name, namespace:, as: T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/code_generator.rb#59 + # source://activesupport//lib/active_support/code_generator.rb#64 def execute; end class << self - # source://activesupport//lib/active_support/code_generator.rb#36 + # source://activesupport//lib/active_support/code_generator.rb#41 def batch(owner, path, line); end end end @@ -3291,11 +3009,11 @@ class ActiveSupport::CodeGenerator::MethodSet # source://activesupport//lib/active_support/code_generator.rb#8 def initialize(namespace); end - # source://activesupport//lib/active_support/code_generator.rb#25 + # source://activesupport//lib/active_support/code_generator.rb#28 def apply(owner, path, line); end - # source://activesupport//lib/active_support/code_generator.rb#14 - def define_cached_method(name, as: T.unsafe(nil)); end + # source://activesupport//lib/active_support/code_generator.rb#15 + def define_cached_method(canonical_name, as: T.unsafe(nil)); end end # source://activesupport//lib/active_support/code_generator.rb#6 @@ -5726,7 +5444,7 @@ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile # source://activesupport//lib/active_support/encrypted_configuration.rb#79 def inspect; end - # source://activesupport//lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport//lib/active_support/core_ext/module/delegation.rb#354 def method_missing(method, *args, **_arg2, &block); end # Reads the file and returns the decrypted content. See EncryptedFile#read. @@ -5748,7 +5466,7 @@ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile # source://activesupport//lib/active_support/encrypted_configuration.rb#94 def options; end - # source://activesupport//lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport//lib/active_support/core_ext/module/delegation.rb#346 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -6111,108 +5829,6 @@ ActiveSupport::ErrorReporter::DEFAULT_SOURCE = T.let(T.unsafe(nil), String) # source://activesupport//lib/active_support/error_reporter.rb#27 ActiveSupport::ErrorReporter::SEVERITIES = T.let(T.unsafe(nil), Array) -# Allows you to "listen" to changes in a file system. -# The evented file updater does not hit disk when checking for updates. -# Instead, it uses platform-specific file system events to trigger a change -# in state. -# -# The file checker takes an array of files to watch or a hash specifying directories -# and file extensions to watch. It also takes a block that is called when -# EventedFileUpdateChecker#execute is run or when EventedFileUpdateChecker#execute_if_updated -# is run and there have been changes to the file system. -# -# Example: -# -# checker = ActiveSupport::EventedFileUpdateChecker.new(["/tmp/foo"]) { puts "changed" } -# checker.updated? -# # => false -# checker.execute_if_updated -# # => nil -# -# FileUtils.touch("/tmp/foo") -# -# checker.updated? -# # => true -# checker.execute_if_updated -# # => "changed" -# -# source://activesupport//lib/active_support/evented_file_update_checker.rb#37 -class ActiveSupport::EventedFileUpdateChecker - # @return [EventedFileUpdateChecker] a new instance of EventedFileUpdateChecker - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#38 - def initialize(files, dirs = T.unsafe(nil), &block); end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#61 - def execute; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#66 - def execute_if_updated; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#48 - def inspect; end - - # @return [Boolean] - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#52 - def updated?; end -end - -# source://activesupport//lib/active_support/evented_file_update_checker.rb#74 -class ActiveSupport::EventedFileUpdateChecker::Core - # @return [Core] a new instance of Core - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#77 - def initialize(files, dirs); end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#144 - def changed(modified, added, removed); end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#178 - def common_path(paths); end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#172 - def directories_to_watch; end - - # Returns the value of attribute files. - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#75 - def files; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#100 - def finalizer; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#138 - def normalize_dirs!; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#129 - def restart; end - - # @return [Boolean] - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#134 - def restart?; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#113 - def start; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#125 - def stop; end - - # source://activesupport//lib/active_support/evented_file_update_checker.rb#107 - def thread_safely; end - - # Returns the value of attribute updated. - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#75 - def updated; end - - # @return [Boolean] - # - # source://activesupport//lib/active_support/evented_file_update_checker.rb#150 - def watching?(file); end -end - # source://activesupport//lib/active_support/execution_context.rb#4 module ActiveSupport::ExecutionContext class << self @@ -7042,6 +6658,11 @@ ActiveSupport::HashWithIndifferentAccess::NOT_GIVEN = T.let(T.unsafe(nil), Objec module ActiveSupport::HtmlSafeTranslation extend ::ActiveSupport::HtmlSafeTranslation + # @return [Boolean] + # + # source://activesupport//lib/active_support/html_safe_translation.rb#27 + def html_safe_translation_key?(key); end + # source://activesupport//lib/active_support/html_safe_translation.rb#7 def translate(key, **options); end @@ -7053,11 +6674,6 @@ module ActiveSupport::HtmlSafeTranslation # source://activesupport//lib/active_support/html_safe_translation.rb#45 def html_safe_translation(translation); end - # @return [Boolean] - # - # source://activesupport//lib/active_support/html_safe_translation.rb#28 - def html_safe_translation_key?(key); end - # @return [Boolean] # # source://activesupport//lib/active_support/html_safe_translation.rb#40 @@ -8094,52 +7710,52 @@ end # that all logs are flushed, and it is called in Rails::Rack::Logger after a # request finishes. # -# source://activesupport//lib/active_support/log_subscriber.rb#63 +# source://activesupport//lib/active_support/log_subscriber.rb#64 class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber # @return [LogSubscriber] a new instance of LogSubscriber # - # source://activesupport//lib/active_support/log_subscriber.rb#136 + # source://activesupport//lib/active_support/log_subscriber.rb#137 def initialize; end - # source://activesupport//lib/active_support/log_subscriber.rb#149 + # source://activesupport//lib/active_support/log_subscriber.rb#150 def call(event); end - # source://activesupport//lib/active_support/log_subscriber.rb#86 + # source://activesupport//lib/active_support/log_subscriber.rb#87 def colorize_logging; end - # source://activesupport//lib/active_support/log_subscriber.rb#86 + # source://activesupport//lib/active_support/log_subscriber.rb#87 def colorize_logging=(val); end - # source://activesupport//lib/active_support/log_subscriber.rb#166 + # source://activesupport//lib/active_support/log_subscriber.rb#167 def debug(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#166 + # source://activesupport//lib/active_support/log_subscriber.rb#167 def error(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#161 + # source://activesupport//lib/active_support/log_subscriber.rb#162 def event_levels=(_arg0); end - # source://activesupport//lib/active_support/log_subscriber.rb#166 + # source://activesupport//lib/active_support/log_subscriber.rb#167 def fatal(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#166 + # source://activesupport//lib/active_support/log_subscriber.rb#167 def info(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#141 + # source://activesupport//lib/active_support/log_subscriber.rb#142 def logger; end - # source://activesupport//lib/active_support/log_subscriber.rb#155 + # source://activesupport//lib/active_support/log_subscriber.rb#156 def publish_event(event); end # @return [Boolean] # - # source://activesupport//lib/active_support/log_subscriber.rb#145 + # source://activesupport//lib/active_support/log_subscriber.rb#146 def silenced?(event); end - # source://activesupport//lib/active_support/log_subscriber.rb#166 + # source://activesupport//lib/active_support/log_subscriber.rb#167 def unknown(progname = T.unsafe(nil), &block); end - # source://activesupport//lib/active_support/log_subscriber.rb#166 + # source://activesupport//lib/active_support/log_subscriber.rb#167 def warn(progname = T.unsafe(nil), &block); end private @@ -8148,105 +7764,105 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber # by specifying bold, italic, or underline options. Inspired by Highline, # this method will automatically clear formatting at the end of the returned String. # - # source://activesupport//lib/active_support/log_subscriber.rb#175 + # source://activesupport//lib/active_support/log_subscriber.rb#176 def color(text, color, mode_options = T.unsafe(nil)); end - # source://activesupport//lib/active_support/log_subscriber.rb#197 + # source://activesupport//lib/active_support/log_subscriber.rb#198 def log_exception(name, e); end - # source://activesupport//lib/active_support/log_subscriber.rb#183 + # source://activesupport//lib/active_support/log_subscriber.rb#184 def mode_from(options); end class << self - # source://activesupport//lib/active_support/log_subscriber.rb#102 + # source://activesupport//lib/active_support/log_subscriber.rb#103 def attach_to(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/log_subscriber.rb#86 + # source://activesupport//lib/active_support/log_subscriber.rb#87 def colorize_logging; end - # source://activesupport//lib/active_support/log_subscriber.rb#86 + # source://activesupport//lib/active_support/log_subscriber.rb#87 def colorize_logging=(val); end # Flush all log_subscribers' logger. # - # source://activesupport//lib/active_support/log_subscriber.rb#115 + # source://activesupport//lib/active_support/log_subscriber.rb#116 def flush_all!; end - # source://activesupport//lib/active_support/log_subscriber.rb#87 + # source://activesupport//lib/active_support/log_subscriber.rb#88 def log_levels; end - # source://activesupport//lib/active_support/log_subscriber.rb#87 + # source://activesupport//lib/active_support/log_subscriber.rb#88 def log_levels=(value); end - # source://activesupport//lib/active_support/log_subscriber.rb#87 + # source://activesupport//lib/active_support/log_subscriber.rb#88 def log_levels?; end - # source://activesupport//lib/active_support/log_subscriber.rb#110 + # source://activesupport//lib/active_support/log_subscriber.rb#111 def log_subscribers; end - # source://activesupport//lib/active_support/log_subscriber.rb#96 + # source://activesupport//lib/active_support/log_subscriber.rb#97 def logger; end # Sets the attribute logger # # @param value the value to set the attribute logger to. # - # source://activesupport//lib/active_support/log_subscriber.rb#108 + # source://activesupport//lib/active_support/log_subscriber.rb#109 def logger=(_arg0); end private - # source://activesupport//lib/active_support/log_subscriber.rb#120 + # source://activesupport//lib/active_support/log_subscriber.rb#121 def fetch_public_methods(subscriber, inherit_all); end - # source://activesupport//lib/active_support/log_subscriber.rb#124 + # source://activesupport//lib/active_support/log_subscriber.rb#125 def set_event_levels; end - # source://activesupport//lib/active_support/log_subscriber.rb#130 + # source://activesupport//lib/active_support/log_subscriber.rb#131 def subscribe_log_level(method, level); end end end # ANSI sequence colors # -# source://activesupport//lib/active_support/log_subscriber.rb#77 +# source://activesupport//lib/active_support/log_subscriber.rb#78 ActiveSupport::LogSubscriber::BLACK = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#81 +# source://activesupport//lib/active_support/log_subscriber.rb#82 ActiveSupport::LogSubscriber::BLUE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#66 +# source://activesupport//lib/active_support/log_subscriber.rb#67 ActiveSupport::LogSubscriber::BOLD = T.let(T.unsafe(nil), ActiveSupport::Deprecation::DeprecatedObjectProxy) # Embed in a String to clear all previous ANSI sequences. # -# source://activesupport//lib/active_support/log_subscriber.rb#65 +# source://activesupport//lib/active_support/log_subscriber.rb#66 ActiveSupport::LogSubscriber::CLEAR = T.let(T.unsafe(nil), ActiveSupport::Deprecation::DeprecatedObjectProxy) -# source://activesupport//lib/active_support/log_subscriber.rb#83 +# source://activesupport//lib/active_support/log_subscriber.rb#84 ActiveSupport::LogSubscriber::CYAN = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#79 +# source://activesupport//lib/active_support/log_subscriber.rb#80 ActiveSupport::LogSubscriber::GREEN = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#89 +# source://activesupport//lib/active_support/log_subscriber.rb#90 ActiveSupport::LogSubscriber::LEVEL_CHECKS = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/log_subscriber.rb#82 +# source://activesupport//lib/active_support/log_subscriber.rb#83 ActiveSupport::LogSubscriber::MAGENTA = T.let(T.unsafe(nil), String) # ANSI sequence modes # -# source://activesupport//lib/active_support/log_subscriber.rb#69 +# source://activesupport//lib/active_support/log_subscriber.rb#70 ActiveSupport::LogSubscriber::MODES = T.let(T.unsafe(nil), Hash) -# source://activesupport//lib/active_support/log_subscriber.rb#78 +# source://activesupport//lib/active_support/log_subscriber.rb#79 ActiveSupport::LogSubscriber::RED = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#84 +# source://activesupport//lib/active_support/log_subscriber.rb#85 ActiveSupport::LogSubscriber::WHITE = T.let(T.unsafe(nil), String) -# source://activesupport//lib/active_support/log_subscriber.rb#80 +# source://activesupport//lib/active_support/log_subscriber.rb#81 ActiveSupport::LogSubscriber::YELLOW = T.let(T.unsafe(nil), String) # source://activesupport//lib/active_support/logger.rb#8 @@ -9858,16 +9474,16 @@ class ActiveSupport::Notifications::Event # Returns the number of allocations made between the call to #start! and # the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#164 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#172 def allocations; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#168 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#176 def children; end # Returns the CPU time (in milliseconds) passed between the call to # #start! and the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#151 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#159 def cpu_time; end # Returns the difference in milliseconds between when the execution of the @@ -9883,23 +9499,21 @@ class ActiveSupport::Notifications::Event # # @event.duration # => 1000.138 # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#197 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#205 def duration; end - # Returns the value of attribute end. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#107 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#126 def end; end # Record information at the time this event finishes # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#143 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#151 def finish!; end # Returns the idle time time (in milliseconds) passed between the call to # #start! and the call to #finish!. # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#157 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#165 def idle_time; end # Returns the value of attribute name. @@ -9909,7 +9523,7 @@ class ActiveSupport::Notifications::Event # @return [Boolean] # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#176 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#184 def parent_of?(event); end # Returns the value of attribute payload. @@ -9924,17 +9538,15 @@ class ActiveSupport::Notifications::Event # source://activesupport//lib/active_support/notifications/instrumenter.rb#108 def payload=(_arg0); end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#122 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#130 def record; end # Record information at the time this event starts # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#136 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#144 def start!; end - # Returns the value of attribute time. - # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#107 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#122 def time; end # Returns the value of attribute transaction_id. @@ -9944,15 +9556,15 @@ class ActiveSupport::Notifications::Event private - # source://activesupport//lib/active_support/notifications/instrumenter.rb#202 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#210 def now; end # Likely on JRuby, TruffleRuby # - # source://activesupport//lib/active_support/notifications/instrumenter.rb#219 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#227 def now_allocations; end - # source://activesupport//lib/active_support/notifications/instrumenter.rb#209 + # source://activesupport//lib/active_support/notifications/instrumenter.rb#217 def now_cpu; end end @@ -9997,10 +9609,7 @@ class ActiveSupport::Notifications::Fanout # source://activesupport//lib/active_support/notifications/fanout.rb#314 def listening?(name); end - # source://mutex_m/0.2.0/mutex_m.rb#91 def lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#81 def locked?; end # source://activesupport//lib/active_support/notifications/fanout.rb#293 @@ -10015,13 +9624,8 @@ class ActiveSupport::Notifications::Fanout # source://activesupport//lib/active_support/notifications/fanout.rb#68 def subscribe(pattern = T.unsafe(nil), callable = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end - # source://mutex_m/0.2.0/mutex_m.rb#76 def synchronize(&block); end - - # source://mutex_m/0.2.0/mutex_m.rb#86 def try_lock; end - - # source://mutex_m/0.2.0/mutex_m.rb#96 def unlock; end # source://activesupport//lib/active_support/notifications/fanout.rb#85 @@ -12338,13 +11942,6 @@ class ActiveSupport::SyntaxErrorProxy # source://activesupport//lib/active_support/syntax_error_proxy.rb#47 def parse_message_for_trace; end - - # 3.2 and older versions of Ruby - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/syntax_error_proxy.rb#61 - def source_location_eval?; end end # source://activesupport//lib/active_support/syntax_error_proxy.rb#15 @@ -12391,19 +11988,19 @@ end # # source://activesupport//lib/active_support/tagged_logging.rb#30 module ActiveSupport::TaggedLogging - # source://activesupport//lib/active_support/tagged_logging.rb#131 + # source://activesupport//lib/active_support/tagged_logging.rb#135 def clear_tags!(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/tagged_logging.rb#144 + # source://activesupport//lib/active_support/tagged_logging.rb#148 def flush; end - # source://activesupport//lib/active_support/tagged_logging.rb#131 + # source://activesupport//lib/active_support/tagged_logging.rb#135 def pop_tags(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/tagged_logging.rb#131 + # source://activesupport//lib/active_support/tagged_logging.rb#135 def push_tags(*_arg0, **_arg1, &_arg2); end - # source://activesupport//lib/active_support/tagged_logging.rb#133 + # source://activesupport//lib/active_support/tagged_logging.rb#137 def tagged(*tags); end class << self @@ -12522,43 +12119,43 @@ class ActiveSupport::TestCase < ::Minitest::Test # source://activesupport//lib/active_support/callbacks.rb#963 def _teardown_callbacks; end - # source://minitest/5.23.1/lib/minitest/assertions.rb#736 + # source://minitest/5.25.1/lib/minitest/assertions.rb#731 def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#665 + # source://minitest/5.25.1/lib/minitest/assertions.rb#660 def assert_not_empty(obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#676 + # source://minitest/5.25.1/lib/minitest/assertions.rb#671 def assert_not_equal(exp, act, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#688 + # source://minitest/5.25.1/lib/minitest/assertions.rb#683 def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#700 + # source://minitest/5.25.1/lib/minitest/assertions.rb#695 def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#707 + # source://minitest/5.25.1/lib/minitest/assertions.rb#702 def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#718 + # source://minitest/5.25.1/lib/minitest/assertions.rb#713 def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#728 + # source://minitest/5.25.1/lib/minitest/assertions.rb#723 def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#746 + # source://minitest/5.25.1/lib/minitest/assertions.rb#741 def assert_not_nil(obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#781 + # source://minitest/5.25.1/lib/minitest/assertions.rb#776 def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#804 + # source://minitest/5.25.1/lib/minitest/assertions.rb#799 def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#813 + # source://minitest/5.25.1/lib/minitest/assertions.rb#808 def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#822 + # source://minitest/5.25.1/lib/minitest/assertions.rb#817 def assert_not_same(exp, act, msg = T.unsafe(nil)); end # source://activesupport//lib/active_support/testing/file_fixtures.rb#20 @@ -12570,7 +12167,7 @@ class ActiveSupport::TestCase < ::Minitest::Test # source://activesupport//lib/active_support/test_case.rb#298 def inspect; end - # source://minitest/5.23.1/lib/minitest.rb#346 + # source://minitest/5.25.1/lib/minitest.rb#375 def method_name; end class << self @@ -14454,26 +14051,23 @@ ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer) class ActiveSupport::TimeZone include ::Comparable - # Create a new TimeZone object with the given name and offset. The - # offset is the number of seconds that this time zone is offset from UTC - # (GMT). Seconds were chosen as the offset unit because that is the unit - # that Ruby uses to represent time zone offsets (see Time#utc_offset). + # :stopdoc: # # @return [TimeZone] a new instance of TimeZone # - # source://activesupport//lib/active_support/values/time_zone.rb#303 + # source://activesupport//lib/active_support/values/time_zone.rb#311 def initialize(name, utc_offset = T.unsafe(nil), tzinfo = T.unsafe(nil)); end # Compare this time zone to the parameter. The two are compared first on # their offsets, and then by name. # - # source://activesupport//lib/active_support/values/time_zone.rb#326 + # source://activesupport//lib/active_support/values/time_zone.rb#335 def <=>(zone); end # Compare #name and TZInfo identifier to a supplied regexp, returning +true+ # if a match is found. # - # source://activesupport//lib/active_support/values/time_zone.rb#335 + # source://activesupport//lib/active_support/values/time_zone.rb#344 def =~(re); end # Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14488,10 +14082,10 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.at(946684800, 123456.789).nsec # => 123456789 # - # source://activesupport//lib/active_support/values/time_zone.rb#372 + # source://activesupport//lib/active_support/values/time_zone.rb#381 def at(*args); end - # source://activesupport//lib/active_support/values/time_zone.rb#568 + # source://activesupport//lib/active_support/values/time_zone.rb#577 def encode_with(coder); end # Returns a formatted string of the offset from UTC, or an alternative @@ -14501,10 +14095,10 @@ class ActiveSupport::TimeZone # zone.formatted_offset # => "-06:00" # zone.formatted_offset(false) # => "-0600" # - # source://activesupport//lib/active_support/values/time_zone.rb#320 + # source://activesupport//lib/active_support/values/time_zone.rb#329 def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end - # source://activesupport//lib/active_support/values/time_zone.rb#564 + # source://activesupport//lib/active_support/values/time_zone.rb#573 def init_with(coder); end # Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14521,7 +14115,7 @@ class ActiveSupport::TimeZone # If the string is invalid then an +ArgumentError+ will be raised unlike +parse+ # which usually returns +nil+ when given an invalid date string. # - # source://activesupport//lib/active_support/values/time_zone.rb#389 + # source://activesupport//lib/active_support/values/time_zone.rb#398 def iso8601(str); end # Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14530,13 +14124,13 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#356 + # source://activesupport//lib/active_support/values/time_zone.rb#365 def local(*args); end # Adjust the given time to the simultaneous time in UTC. Returns a # Time.utc() instance. # - # source://activesupport//lib/active_support/values/time_zone.rb#544 + # source://activesupport//lib/active_support/values/time_zone.rb#553 def local_to_utc(time, dst = T.unsafe(nil)); end # Compare #name and TZInfo identifier to a supplied regexp, returning +true+ @@ -14544,12 +14138,12 @@ class ActiveSupport::TimeZone # # @return [Boolean] # - # source://activesupport//lib/active_support/values/time_zone.rb#341 + # source://activesupport//lib/active_support/values/time_zone.rb#350 def match?(re); end # Returns the value of attribute name. # - # source://activesupport//lib/active_support/values/time_zone.rb#296 + # source://activesupport//lib/active_support/values/time_zone.rb#298 def name; end # Returns an ActiveSupport::TimeWithZone instance representing the current @@ -14558,7 +14152,7 @@ class ActiveSupport::TimeZone # Time.zone = 'Hawaii' # => "Hawaii" # Time.zone.now # => Wed, 23 Jan 2008 20:24:27 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#509 + # source://activesupport//lib/active_support/values/time_zone.rb#518 def now; end # Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14580,22 +14174,22 @@ class ActiveSupport::TimeZone # # If the string is invalid then an +ArgumentError+ could be raised. # - # source://activesupport//lib/active_support/values/time_zone.rb#446 + # source://activesupport//lib/active_support/values/time_zone.rb#455 def parse(str, now = T.unsafe(nil)); end # Available so that TimeZone instances respond like +TZInfo::Timezone+ # instances. # - # source://activesupport//lib/active_support/values/time_zone.rb#556 + # source://activesupport//lib/active_support/values/time_zone.rb#565 def period_for_local(time, dst = T.unsafe(nil)); end # Available so that TimeZone instances respond like +TZInfo::Timezone+ # instances. # - # source://activesupport//lib/active_support/values/time_zone.rb#550 + # source://activesupport//lib/active_support/values/time_zone.rb#559 def period_for_utc(time); end - # source://activesupport//lib/active_support/values/time_zone.rb#560 + # source://activesupport//lib/active_support/values/time_zone.rb#569 def periods_for_local(time); end # Method for creating new ActiveSupport::TimeWithZone instance in time zone @@ -14613,7 +14207,7 @@ class ActiveSupport::TimeZone # # @raise [ArgumentError] # - # source://activesupport//lib/active_support/values/time_zone.rb#462 + # source://activesupport//lib/active_support/values/time_zone.rb#471 def rfc3339(str); end # Parses +str+ according to +format+ and returns an ActiveSupport::TimeWithZone. @@ -14637,32 +14231,32 @@ class ActiveSupport::TimeZone # # Time.zone.strptime('Mar 2000', '%b %Y') # => Wed, 01 Mar 2000 00:00:00 HST -10:00 # - # source://activesupport//lib/active_support/values/time_zone.rb#500 + # source://activesupport//lib/active_support/values/time_zone.rb#509 def strptime(str, format, now = T.unsafe(nil)); end # Returns a textual representation of this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#347 + # source://activesupport//lib/active_support/values/time_zone.rb#356 def to_s; end # Returns the current date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#514 + # source://activesupport//lib/active_support/values/time_zone.rb#523 def today; end # Returns the next date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#519 + # source://activesupport//lib/active_support/values/time_zone.rb#528 def tomorrow; end # Returns the value of attribute tzinfo. # - # source://activesupport//lib/active_support/values/time_zone.rb#297 + # source://activesupport//lib/active_support/values/time_zone.rb#299 def tzinfo; end # Returns the offset of this time zone from UTC in seconds. # - # source://activesupport//lib/active_support/values/time_zone.rb#310 + # source://activesupport//lib/active_support/values/time_zone.rb#319 def utc_offset; end # Adjust the given time to the simultaneous time in the time zone @@ -14673,22 +14267,22 @@ class ActiveSupport::TimeZone # As of tzinfo 2, utc_to_local returns a Time with a non-zero utc_offset. # See the +utc_to_local_returns_utc_offset_times+ config for more info. # - # source://activesupport//lib/active_support/values/time_zone.rb#535 + # source://activesupport//lib/active_support/values/time_zone.rb#544 def utc_to_local(time); end # Returns the previous date in this time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#524 + # source://activesupport//lib/active_support/values/time_zone.rb#533 def yesterday; end private # @raise [ArgumentError] # - # source://activesupport//lib/active_support/values/time_zone.rb#574 + # source://activesupport//lib/active_support/values/time_zone.rb#583 def parts_to_time(parts, now); end - # source://activesupport//lib/active_support/values/time_zone.rb#599 + # source://activesupport//lib/active_support/values/time_zone.rb#608 def time_now; end class << self @@ -14698,25 +14292,26 @@ class ActiveSupport::TimeZone # timezone to find. (The first one with that offset will be returned.) # Returns +nil+ if no such time zone is known to the system. # - # source://activesupport//lib/active_support/values/time_zone.rb#232 + # source://activesupport//lib/active_support/values/time_zone.rb#234 def [](arg); end # Returns an array of all TimeZone objects. There are multiple # TimeZone objects per time zone, in many cases, to make it easier # for users to find their own time zone. # - # source://activesupport//lib/active_support/values/time_zone.rb#223 + # source://activesupport//lib/active_support/values/time_zone.rb#225 def all; end - # source://activesupport//lib/active_support/values/time_zone.rb#265 + # source://activesupport//lib/active_support/values/time_zone.rb#267 def clear; end # A convenience method for returning a collection of TimeZone objects # for time zones in the country specified by its ISO 3166-1 Alpha2 code. # - # source://activesupport//lib/active_support/values/time_zone.rb#260 + # source://activesupport//lib/active_support/values/time_zone.rb#262 def country_zones(country_code); end + # :stopdoc: def create(*_arg0); end # source://activesupport//lib/active_support/values/time_zone.rb#207 @@ -14726,7 +14321,7 @@ class ActiveSupport::TimeZone # such TimeZone instance exists. (This exists to support the use of # this class with the +composed_of+ macro.) # - # source://activesupport//lib/active_support/values/time_zone.rb#216 + # source://activesupport//lib/active_support/values/time_zone.rb#218 def new(name); end # Assumes self represents an offset from UTC in seconds (as returned from @@ -14740,15 +14335,15 @@ class ActiveSupport::TimeZone # A convenience method for returning a collection of TimeZone objects # for time zones in the USA. # - # source://activesupport//lib/active_support/values/time_zone.rb#254 + # source://activesupport//lib/active_support/values/time_zone.rb#256 def us_zones; end private - # source://activesupport//lib/active_support/values/time_zone.rb#273 + # source://activesupport//lib/active_support/values/time_zone.rb#275 def load_country_zones(code); end - # source://activesupport//lib/active_support/values/time_zone.rb#287 + # source://activesupport//lib/active_support/values/time_zone.rb#289 def zones_map; end end end @@ -14789,7 +14384,7 @@ ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://activesupport//lib/active_support/gem_version.rb#13 -ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), String) +ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) # source://activesupport//lib/active_support/gem_version.rb#15 ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -18133,19 +17728,6 @@ module Kernel end end -# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#31 -class Method - # Methods are not duplicable: - # - # method(:puts).duplicable? # => false - # method(:puts).dup # => TypeError: allocator undefined for Method - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#36 - def duplicable?; end -end - # == Attribute Accessors per Thread # # Extends the module object with class/module and instance accessors for @@ -19914,8 +19496,6 @@ class Pathname end module Process - extend ::RedisClient::PIDCache::CoreExt - extend ::ConnectionPool::ForkTracker extend ::ActiveSupport::ForkTracker::ModernCoreExt class << self @@ -19995,7 +19575,7 @@ SecureRandom::BASE36_ALPHABET = T.let(T.unsafe(nil), Array) # source://activesupport//lib/active_support/core_ext/securerandom.rb#6 SecureRandom::BASE58_ALPHABET = T.let(T.unsafe(nil), Array) -# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#53 +# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#62 module Singleton mixes_in_class_methods ::Singleton::SingletonClassMethods @@ -20005,7 +19585,7 @@ module Singleton # # @return [Boolean] # - # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#57 + # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#66 def duplicable?; end end @@ -21246,16 +20826,3 @@ class URI::Generic # source://activesupport//lib/active_support/core_ext/object/json.rb#225 def as_json(options = T.unsafe(nil)); end end - -# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#41 -class UnboundMethod - # Unbound methods are not duplicable: - # - # method(:puts).unbind.duplicable? # => false - # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod - # - # @return [Boolean] - # - # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#46 - def duplicable?; end -end diff --git a/sorbet/rbi/gems/addressable@2.8.6.rbi b/sorbet/rbi/gems/addressable@2.8.7.rbi similarity index 100% rename from sorbet/rbi/gems/addressable@2.8.6.rbi rename to sorbet/rbi/gems/addressable@2.8.7.rbi diff --git a/sorbet/rbi/gems/autoprefixer-rails@10.4.16.0.rbi b/sorbet/rbi/gems/autoprefixer-rails@10.4.16.0.rbi deleted file mode 100644 index 9e3fbbf9..00000000 --- a/sorbet/rbi/gems/autoprefixer-rails@10.4.16.0.rbi +++ /dev/null @@ -1,181 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - -# source://autoprefixer-rails//lib/autoprefixer-rails/railtie.rb#11 -class AutoprefixedRails::Railtie < ::Rails::Railtie - # source://autoprefixer-rails//lib/autoprefixer-rails/railtie.rb#28 - def config; end - - # source://autoprefixer-rails//lib/autoprefixer-rails/railtie.rb#49 - def roots; end -end - -# Ruby integration with Autoprefixer JS library, which parse CSS and adds -# only actual prefixed -# -# source://autoprefixer-rails//lib/autoprefixer-rails.rb#5 -module AutoprefixerRails - class << self - # Add Autoprefixer for Sprockets environment in `assets`. - # You can specify `browsers` actual in your project. - # - # source://autoprefixer-rails//lib/autoprefixer-rails.rb#21 - def install(assets, params = T.unsafe(nil)); end - - # Add prefixes to `css`. See `Processor#process` for options. - # - # source://autoprefixer-rails//lib/autoprefixer-rails.rb#9 - def process(css, opts = T.unsafe(nil)); end - - # Cache processor instances - # - # source://autoprefixer-rails//lib/autoprefixer-rails.rb#32 - def processor(params = T.unsafe(nil)); end - - # Disable installed Autoprefixer - # - # source://autoprefixer-rails//lib/autoprefixer-rails.rb#27 - def uninstall(assets); end - end -end - -# source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#8 -AutoprefixerRails::IS_SECTION = T.let(T.unsafe(nil), Regexp) - -# Ruby to JS wrapper for Autoprefixer processor instance -# -# source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#11 -class AutoprefixerRails::Processor - # @return [Processor] a new instance of Processor - # - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#14 - def initialize(params = T.unsafe(nil)); end - - # Return, which browsers and prefixes will be used - # - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#52 - def info; end - - # Parse Browserslist config - # - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#57 - def parse_config(config); end - - # Process `css` and return result. - # - # Options can be: - # * `from` with input CSS file name. Will be used in error messages. - # * `to` with output CSS file name. - # * `map` with true to generate new source map or with previous map. - # - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#24 - def process(css, opts = T.unsafe(nil)); end - - private - - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#159 - def build_js; end - - # Convert ruby_options to jsOptions - # - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#99 - def convert_options(opts); end - - # Try to find Browserslist config - # - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#114 - def find_config(file); end - - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#77 - def params_with_browsers(from = T.unsafe(nil)); end - - # Lazy load for JS library - # - # source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#131 - def runtime; end -end - -# source://autoprefixer-rails//lib/autoprefixer-rails/processor.rb#12 -AutoprefixerRails::Processor::SUPPORTED_RUNTIMES = T.let(T.unsafe(nil), Array) - -# Container of prefixed CSS and source map with changes -# -# source://autoprefixer-rails//lib/autoprefixer-rails/result.rb#5 -class AutoprefixerRails::Result - # @return [Result] a new instance of Result - # - # source://autoprefixer-rails//lib/autoprefixer-rails/result.rb#15 - def initialize(css, map, warnings); end - - # Prefixed CSS after Autoprefixer - # - # source://autoprefixer-rails//lib/autoprefixer-rails/result.rb#7 - def css; end - - # Source map of changes - # - # source://autoprefixer-rails//lib/autoprefixer-rails/result.rb#10 - def map; end - - # Stringify prefixed CSS - # - # source://autoprefixer-rails//lib/autoprefixer-rails/result.rb#22 - def to_s; end - - # Warnings from Autoprefixer - # - # source://autoprefixer-rails//lib/autoprefixer-rails/result.rb#13 - def warnings; end -end - -# Register autoprefixer postprocessor in Sprockets and fix common issues -# -# source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#7 -class AutoprefixerRails::Sprockets - # Sprockets 2 API new and render - # - # @return [Sprockets] a new instance of Sprockets - # - # source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#54 - def initialize(filename); end - - # Sprockets 2 API new and render - # - # source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#60 - def render(*_arg0); end - - class << self - # Sprockets 3 and 4 API - # - # source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#13 - def call(input); end - - # Register postprocessor in Sprockets depend on issues with other gems - # - # source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#32 - def install(env); end - - # source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#8 - def register_processor(processor); end - - # Add prefixes to `css` - # - # source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#20 - def run(filename, css); end - - # Register postprocessor in Sprockets depend on issues with other gems - # - # source://autoprefixer-rails//lib/autoprefixer-rails/sprockets.rb#43 - def uninstall(env); end - end -end - -# source://autoprefixer-rails//lib/autoprefixer-rails/version.rb#4 -AutoprefixerRails::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/base64@0.2.0.rbi b/sorbet/rbi/gems/base64@0.2.0.rbi index 087b64e5..7f733b0c 100644 --- a/sorbet/rbi/gems/base64@0.2.0.rbi +++ b/sorbet/rbi/gems/base64@0.2.0.rbi @@ -5,503 +5,5 @@ # Please instead update this file by running `bin/tapioca gem base64`. -# \Module \Base64 provides methods for: -# -# - Encoding a binary string (containing non-ASCII characters) -# as a string of printable ASCII characters. -# - Decoding such an encoded string. -# -# \Base64 is commonly used in contexts where binary data -# is not allowed or supported: -# -# - Images in HTML or CSS files, or in URLs. -# - Email attachments. -# -# A \Base64-encoded string is about one-third larger that its source. -# See the {Wikipedia article}[https://en.wikipedia.org/wiki/Base64] -# for more information. -# -# This module provides three pairs of encode/decode methods. -# Your choices among these methods should depend on: -# -# - Which character set is to be used for encoding and decoding. -# - Whether "padding" is to be used. -# - Whether encoded strings are to contain newlines. -# -# Note: Examples on this page assume that the including program has executed: -# -# require 'base64' -# -# == Encoding Character Sets -# -# A \Base64-encoded string consists only of characters from a 64-character set: -# -# - ('A'..'Z'). -# - ('a'..'z'). -# - ('0'..'9'). -# - =, the 'padding' character. -# - Either: -# - %w[+ /]: -# {RFC-2045-compliant}[https://datatracker.ietf.org/doc/html/rfc2045]; -# _not_ safe for URLs. -# - %w[- _]: -# {RFC-4648-compliant}[https://datatracker.ietf.org/doc/html/rfc4648]; -# safe for URLs. -# -# If you are working with \Base64-encoded strings that will come from -# or be put into URLs, you should choose this encoder-decoder pair -# of RFC-4648-compliant methods: -# -# - Base64.urlsafe_encode64 and Base64.urlsafe_decode64. -# -# Otherwise, you may choose any of the pairs in this module, -# including the pair above, or the RFC-2045-compliant pairs: -# -# - Base64.encode64 and Base64.decode64. -# - Base64.strict_encode64 and Base64.strict_decode64. -# -# == Padding -# -# \Base64-encoding changes a triplet of input bytes -# into a quartet of output characters. -# -# Padding in Encode Methods -# -# Padding -- extending an encoded string with zero, one, or two trailing -# = characters -- is performed by methods Base64.encode64, -# Base64.strict_encode64, and, by default, Base64.urlsafe_encode64: -# -# Base64.encode64('s') # => "cw==\n" -# Base64.strict_encode64('s') # => "cw==" -# Base64.urlsafe_encode64('s') # => "cw==" -# Base64.urlsafe_encode64('s', padding: false) # => "cw" -# -# When padding is performed, the encoded string is always of length 4n, -# where +n+ is a non-negative integer: -# -# - Input bytes of length 3n generate unpadded output characters -# of length 4n: -# -# # n = 1: 3 bytes => 4 characters. -# Base64.strict_encode64('123') # => "MDEy" -# # n = 2: 6 bytes => 8 characters. -# Base64.strict_encode64('123456') # => "MDEyMzQ1" -# -# - Input bytes of length 3n+1 generate padded output characters -# of length 4(n+1), with two padding characters at the end: -# -# # n = 1: 4 bytes => 8 characters. -# Base64.strict_encode64('1234') # => "MDEyMw==" -# # n = 2: 7 bytes => 12 characters. -# Base64.strict_encode64('1234567') # => "MDEyMzQ1Ng==" -# -# - Input bytes of length 3n+2 generate padded output characters -# of length 4(n+1), with one padding character at the end: -# -# # n = 1: 5 bytes => 8 characters. -# Base64.strict_encode64('12345') # => "MDEyMzQ=" -# # n = 2: 8 bytes => 12 characters. -# Base64.strict_encode64('12345678') # => "MDEyMzQ1Njc=" -# -# When padding is suppressed, for a positive integer n: -# -# - Input bytes of length 3n generate unpadded output characters -# of length 4n: -# -# # n = 1: 3 bytes => 4 characters. -# Base64.urlsafe_encode64('123', padding: false) # => "MDEy" -# # n = 2: 6 bytes => 8 characters. -# Base64.urlsafe_encode64('123456', padding: false) # => "MDEyMzQ1" -# -# - Input bytes of length 3n+1 generate unpadded output characters -# of length 4n+2, with two padding characters at the end: -# -# # n = 1: 4 bytes => 6 characters. -# Base64.urlsafe_encode64('1234', padding: false) # => "MDEyMw" -# # n = 2: 7 bytes => 10 characters. -# Base64.urlsafe_encode64('1234567', padding: false) # => "MDEyMzQ1Ng" -# -# - Input bytes of length 3n+2 generate unpadded output characters -# of length 4n+3, with one padding character at the end: -# -# # n = 1: 5 bytes => 7 characters. -# Base64.urlsafe_encode64('12345', padding: false) # => "MDEyMzQ" -# # m = 2: 8 bytes => 11 characters. -# Base64.urlsafe_encode64('12345678', padding: false) # => "MDEyMzQ1Njc" -# -# Padding in Decode Methods -# -# All of the \Base64 decode methods support (but do not require) padding. -# -# \Method Base64.decode64 does not check the size of the padding: -# -# Base64.decode64("MDEyMzQ1Njc") # => "01234567" -# Base64.decode64("MDEyMzQ1Njc=") # => "01234567" -# Base64.decode64("MDEyMzQ1Njc==") # => "01234567" -# -# \Method Base64.strict_decode64 strictly enforces padding size: -# -# Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError -# Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" -# Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError -# -# \Method Base64.urlsafe_decode64 allows padding in +str+, -# which if present, must be correct: -# see {Padding}[Base64.html#module-Base64-label-Padding], above: -# -# Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" -# Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" -# Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. -# -# == Newlines -# -# An encoded string returned by Base64.encode64 or Base64.urlsafe_encode64 -# has an embedded newline character -# after each 60-character sequence, and, if non-empty, at the end: -# -# # No newline if empty. -# encoded = Base64.encode64("\x00" * 0) -# encoded.index("\n") # => nil -# -# # Newline at end of short output. -# encoded = Base64.encode64("\x00" * 1) -# encoded.size # => 4 -# encoded.index("\n") # => 4 -# -# # Newline at end of longer output. -# encoded = Base64.encode64("\x00" * 45) -# encoded.size # => 60 -# encoded.index("\n") # => 60 -# -# # Newlines embedded and at end of still longer output. -# encoded = Base64.encode64("\x00" * 46) -# encoded.size # => 65 -# encoded.rindex("\n") # => 65 -# encoded.split("\n").map {|s| s.size } # => [60, 4] -# -# The string to be encoded may itself contain newlines, -# which are encoded as \Base64: -# -# # Base64.encode64("\n\n\n") # => "CgoK\n" -# s = "This is line 1\nThis is line 2\n" -# Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" -module Base64 - private - - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # Base64.decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +str+ are ignored; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.decode64("\x00\n-_") # => "" - # - # Padding in +str+ (even if incorrect) is ignored: - # - # Base64.decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" - # - # source://base64//base64.rb#241 - def decode64(str); end - - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.encode64('*') # => "Kg==\n" - # - # The returned string ends with a newline character, and if sufficiently long - # will have one or more embedded newline characters; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.encode64('*') # => "Kg==\n" - # Base64.encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.encode64("\n\n\n") # => "CgoK\n" - # s = "This is line 1\nThis is line 2\n" - # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # - # source://base64//base64.rb#219 - def encode64(bin); end - - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +str+ not allowed; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.strict_decode64("\n") # Raises ArgumentError - # Base64.strict_decode64('-') # Raises ArgumentError - # Base64.strict_decode64('_') # Raises ArgumentError - # - # Padding in +str+, if present, must be correct: - # - # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError - # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError - # - # source://base64//base64.rb#297 - def strict_decode64(str); end - - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.strict_encode64('*') # => "Kg==\n" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.strict_encode64('*') # => "Kg==" - # Base64.strict_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.strict_encode64("\n\n\n") # => "CgoK" - # s = "This is line 1\nThis is line 2\n" - # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # - # source://base64//base64.rb#273 - def strict_encode64(bin); end - - # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +str+: - # - # +str+ may not contain non-Base64 characters; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_decode64('+') # Raises ArgumentError. - # Base64.urlsafe_decode64('/') # Raises ArgumentError. - # Base64.urlsafe_decode64("\n") # Raises ArgumentError. - # - # Padding in +str+, if present, must be correct: - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. - # - # source://base64//base64.rb#351 - def urlsafe_decode64(str); end - - # Returns the RFC-4648-compliant \Base64-encoding of +bin+. - # - # Per RFC 4648, the returned string will not contain the URL-unsafe characters - # + or /, - # but instead may contain the URL-safe characters - # - and _; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----" - # Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____" - # - # By default, the returned string may have padding; - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # - # Optionally, you can suppress padding: - # - # Base64.urlsafe_encode64('*', padding: false) # => "Kg" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # Base64.urlsafe_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # source://base64//base64.rb#328 - def urlsafe_encode64(bin, padding: T.unsafe(nil)); end - - class << self - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # Base64.decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +str+ are ignored; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.decode64("\x00\n-_") # => "" - # - # Padding in +str+ (even if incorrect) is ignored: - # - # Base64.decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" - # - # source://base64//base64.rb#241 - def decode64(str); end - - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.encode64('*') # => "Kg==\n" - # - # The returned string ends with a newline character, and if sufficiently long - # will have one or more embedded newline characters; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.encode64('*') # => "Kg==\n" - # Base64.encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.encode64("\n\n\n") # => "CgoK\n" - # s = "This is line 1\nThis is line 2\n" - # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # - # source://base64//base64.rb#219 - def encode64(bin); end - - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +str+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +str+ not allowed; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.strict_decode64("\n") # Raises ArgumentError - # Base64.strict_decode64('-') # Raises ArgumentError - # Base64.strict_decode64('_') # Raises ArgumentError - # - # Padding in +str+, if present, must be correct: - # - # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError - # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError - # - # source://base64//base64.rb#297 - def strict_decode64(str); end - - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +bin+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.strict_encode64('*') # => "Kg==\n" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.strict_encode64('*') # => "Kg==" - # Base64.strict_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.strict_encode64("\n\n\n") # => "CgoK" - # s = "This is line 1\nThis is line 2\n" - # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # - # source://base64//base64.rb#273 - def strict_encode64(bin); end - - # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +str+: - # - # +str+ may not contain non-Base64 characters; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_decode64('+') # Raises ArgumentError. - # Base64.urlsafe_decode64('/') # Raises ArgumentError. - # Base64.urlsafe_decode64("\n") # Raises ArgumentError. - # - # Padding in +str+, if present, must be correct: - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. - # - # source://base64//base64.rb#351 - def urlsafe_decode64(str); end - - # Returns the RFC-4648-compliant \Base64-encoding of +bin+. - # - # Per RFC 4648, the returned string will not contain the URL-unsafe characters - # + or /, - # but instead may contain the URL-safe characters - # - and _; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----" - # Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____" - # - # By default, the returned string may have padding; - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # - # Optionally, you can suppress padding: - # - # Base64.urlsafe_encode64('*', padding: false) # => "Kg" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # Base64.urlsafe_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # source://base64//base64.rb#328 - def urlsafe_encode64(bin, padding: T.unsafe(nil)); end - end -end - -# source://base64//base64.rb#186 -Base64::VERSION = T.let(T.unsafe(nil), String) +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/bootsnap@1.18.3.rbi b/sorbet/rbi/gems/bootsnap@1.18.4.rbi similarity index 99% rename from sorbet/rbi/gems/bootsnap@1.18.3.rbi rename to sorbet/rbi/gems/bootsnap@1.18.4.rbi index 56f1cefa..238fcbaa 100644 --- a/sorbet/rbi/gems/bootsnap@1.18.3.rbi +++ b/sorbet/rbi/gems/bootsnap@1.18.4.rbi @@ -22,7 +22,7 @@ module Bootsnap # source://bootsnap//lib/bootsnap.rb#44 def _instrument(event, path); end - # source://bootsnap//lib/bootsnap.rb#136 + # source://bootsnap//lib/bootsnap.rb#137 def absolute_path?(path); end # source://bootsnap//lib/bootsnap.rb#82 @@ -56,6 +56,16 @@ module Bootsnap # source://bootsnap//lib/bootsnap.rb#78 def unload_cache!; end + + private + + # source://bootsnap//lib/bootsnap.rb#159 + def bool_env(key, default: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://bootsnap//lib/bootsnap.rb#155 + def enabled?(key); end end end @@ -195,7 +205,6 @@ module Bootsnap::CompileCache::Native private def compile_option_crc32=(_arg0); end - def coverage_running?; end def fetch(_arg0, _arg1, _arg2, _arg3); end def precompile(_arg0, _arg1, _arg2); end def readonly=(_arg0); end @@ -203,7 +212,6 @@ module Bootsnap::CompileCache::Native class << self def compile_option_crc32=(_arg0); end - def coverage_running?; end def fetch(_arg0, _arg1, _arg2, _arg3); end def precompile(_arg0, _arg1, _arg2); end def readonly=(_arg0); end diff --git a/sorbet/rbi/gems/bootstrap@5.3.3.rbi b/sorbet/rbi/gems/bootstrap@5.3.3.rbi deleted file mode 100644 index 45723410..00000000 --- a/sorbet/rbi/gems/bootstrap@5.3.3.rbi +++ /dev/null @@ -1,75 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - # source://bootstrap//lib/bootstrap.rb#41 - def assets_path; end - - # Paths - # - # source://bootstrap//lib/bootstrap.rb#29 - def gem_path; end - - # @return [Boolean] - # - # source://bootstrap//lib/bootstrap.rb#54 - def hanami?; end - - # source://bootstrap//lib/bootstrap.rb#37 - def javascripts_path; end - - # Inspired by Kaminari - # - # source://bootstrap//lib/bootstrap.rb#9 - def load!; end - - # @return [Boolean] - # - # source://bootstrap//lib/bootstrap.rb#50 - def rails?; end - - # Environment detection helpers - # - # @return [Boolean] - # - # source://bootstrap//lib/bootstrap.rb#46 - def sprockets?; end - - # source://bootstrap//lib/bootstrap.rb#33 - def stylesheets_path; end - - private - - # source://bootstrap//lib/bootstrap.rb#69 - def register_hanami; end - - # source://bootstrap//lib/bootstrap.rb#60 - def register_rails_engine; end - - # source://bootstrap//lib/bootstrap.rb#64 - def register_sprockets; end - end -end - -# source://bootstrap//lib/bootstrap/version.rb#5 -Bootstrap::BOOTSTRAP_SHA = T.let(T.unsafe(nil), String) - -# source://bootstrap//lib/bootstrap/engine.rb#23 -module Bootstrap::Rails; end - -# source://bootstrap//lib/bootstrap/engine.rb#24 -class Bootstrap::Rails::Engine < ::Rails::Engine - class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - end -end - -# source://bootstrap//lib/bootstrap/version.rb#4 -Bootstrap::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/builder@3.2.4.rbi b/sorbet/rbi/gems/builder@3.2.4.rbi deleted file mode 100644 index 6e29b77c..00000000 --- a/sorbet/rbi/gems/builder@3.2.4.rbi +++ /dev/null @@ -1,505 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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. -# -# source://builder//lib/builder/blankslate.rb#17 -module Builder - class << self - # source://builder//lib/builder/xchar.rb#13 - def check_for_name_collision(klass, method_name, defined_constant = T.unsafe(nil)); end - end -end - -# source://builder//lib/builder/blankslate.rb#19 -Builder::BlankSlate = BasicObject - -# Generic error for builder -# -# source://builder//lib/builder/xmlbase.rb#9 -class Builder::IllegalBlockError < ::RuntimeError; end - -# source://builder//lib/builder/xchar.rb#33 -module Builder::XChar - class << self - # encode a string per XML rules - # - # source://builder//lib/builder/xchar.rb#152 - def encode(string); end - - # convert a string to valid UTF-8, compensating for a number of - # common errors. - # - # source://builder//lib/builder/xchar.rb#126 - def unicode(string); end - end -end - -# See -# http://intertwingly.net/stories/2004/04/14/i18n.html#CleaningWindows -# for details. -# -# source://builder//lib/builder/xchar.rb#38 -Builder::XChar::CP1252 = T.let(T.unsafe(nil), Hash) - -# source://builder//lib/builder/xchar.rb#100 -Builder::XChar::CP1252_DIFFERENCES = T.let(T.unsafe(nil), String) - -# source://builder//lib/builder/xchar.rb#120 -Builder::XChar::ENCODING_BINARY = T.let(T.unsafe(nil), Encoding) - -# source://builder//lib/builder/xchar.rb#122 -Builder::XChar::ENCODING_ISO1 = T.let(T.unsafe(nil), Encoding) - -# source://builder//lib/builder/xchar.rb#121 -Builder::XChar::ENCODING_UTF8 = T.let(T.unsafe(nil), Encoding) - -# source://builder//lib/builder/xchar.rb#109 -Builder::XChar::INVALID_XML_CHAR = T.let(T.unsafe(nil), Regexp) - -# See http://www.w3.org/TR/REC-xml/#dt-chardata for details. -# -# source://builder//lib/builder/xchar.rb#69 -Builder::XChar::PREDEFINED = T.let(T.unsafe(nil), Hash) - -# http://www.fileformat.info/info/unicode/char/fffd/index.htm -# -# source://builder//lib/builder/xchar.rb#84 -Builder::XChar::REPLACEMENT_CHAR = T.let(T.unsafe(nil), String) - -# source://builder//lib/builder/xchar.rb#100 -Builder::XChar::UNICODE_EQUIVALENT = T.let(T.unsafe(nil), String) - -# See http://www.w3.org/TR/REC-xml/#charsets for details. -# -# source://builder//lib/builder/xchar.rb#76 -Builder::XChar::VALID = T.let(T.unsafe(nil), Array) - -# source://builder//lib/builder/xchar.rb#105 -Builder::XChar::XML_PREDEFINED = T.let(T.unsafe(nil), Regexp) - -# XmlBase is a base class for building XML builders. See -# Builder::XmlMarkup and Builder::XmlEvents for examples. -# -# source://builder//lib/builder/xmlbase.rb#13 -class Builder::XmlBase < ::BasicObject - # Create an XML markup builder. - # - # out :: Object receiving the markup. +out+ must respond to - # <<. - # indent :: Number of spaces used for indentation (0 implies no - # indentation and no line breaks). - # initial :: Level of initial indentation. - # encoding :: When encoding and $KCODE are set to 'utf-8' - # characters aren't converted to character entities in - # the output stream. - # - # @return [XmlBase] a new instance of XmlBase - # - # source://builder//lib/builder/xmlbase.rb#29 - def initialize(indent = T.unsafe(nil), initial = T.unsafe(nil), encoding = T.unsafe(nil)); end - - # Append text to the output target without escaping any markup. - # May be used within the markup brackets as: - # - # builder.p { |x| x << "
HI" } #=>


HI

- # - # This is useful when using non-builder enabled software that - # generates strings. Just insert the string directly into the - # builder without changing the inserted markup. - # - # It is also useful for stacking builder objects. Builders only - # use << to append to the target, so by supporting this - # method/operation builders can use other builders as their - # targets. - # - # source://builder//lib/builder/xmlbase.rb#118 - def <<(text); end - - # @return [Boolean] - # - # source://builder//lib/builder/xmlbase.rb#35 - def explicit_nil_handling?; end - - # Create XML markup based on the name of the method. This method - # is never invoked directly, but is called for each markup method - # in the markup block that isn't cached. - # - # source://builder//lib/builder/xmlbase.rb#92 - def method_missing(sym, *args, &block); end - - # For some reason, nil? is sent to the XmlMarkup object. If nil? - # is not defined and method_missing is invoked, some strange kind - # of recursion happens. Since nil? won't ever be an XML tag, it - # is pretty safe to define it here. (Note: this is an example of - # cargo cult programming, - # cf. http://fishbowl.pastiche.org/2004/10/13/cargo_cult_programming). - # - # @return [Boolean] - # - # source://builder//lib/builder/xmlbase.rb#128 - def nil?; end - - # Create a tag named +sym+. Other than the first argument which - # is the tag name, the arguments are the same as the tags - # implemented via method_missing. - # - # source://builder//lib/builder/xmlbase.rb#42 - def tag!(sym, *args, &block); end - - # Append text to the output target. Escape any markup. May be - # used within the markup brackets as: - # - # builder.p { |b| b.br; b.text! "HI" } #=>


HI

- # - # source://builder//lib/builder/xmlbase.rb#101 - def text!(text); end - - private - - # source://builder//lib/builder/xmlbase.rb#136 - def _escape(text); end - - # source://builder//lib/builder/xmlbase.rb#159 - def _escape_attribute(text); end - - # source://builder//lib/builder/xmlbase.rb#169 - def _indent; end - - # source://builder//lib/builder/xmlbase.rb#174 - def _nested_structures(block); end - - # source://builder//lib/builder/xmlbase.rb#164 - def _newline; end - - # If XmlBase.cache_method_calls = true, we dynamicly create the method - # missed as an instance method on the XMLBase object. Because XML - # documents are usually very repetative in nature, the next node will - # be handled by the new method instead of method_missing. As - # method_missing is very slow, this speeds up document generation - # significantly. - # - # source://builder//lib/builder/xmlbase.rb#187 - def cache_method_call(sym); end - - class << self - # Returns the value of attribute cache_method_calls. - # - # source://builder//lib/builder/xmlbase.rb#16 - def cache_method_calls; end - - # Sets the attribute cache_method_calls - # - # @param value the value to set the attribute cache_method_calls to. - # - # source://builder//lib/builder/xmlbase.rb#16 - def cache_method_calls=(_arg0); end - end -end - -# Create a series of SAX-like XML events (e.g. start_tag, end_tag) -# from the markup code. XmlEvent objects are used in a way similar -# to XmlMarkup objects, except that a series of events are generated -# and passed to a handler rather than generating character-based -# markup. -# -# Usage: -# xe = Builder::XmlEvents.new(hander) -# xe.title("HI") # Sends start_tag/end_tag/text messages to the handler. -# -# Indentation may also be selected by providing value for the -# indentation size and initial indentation level. -# -# xe = Builder::XmlEvents.new(handler, indent_size, initial_indent_level) -# -# == XML Event Handler -# -# The handler object must expect the following events. -# -# [start_tag(tag, attrs)] -# Announces that a new tag has been found. +tag+ is the name of -# the tag and +attrs+ is a hash of attributes for the tag. -# -# [end_tag(tag)] -# Announces that an end tag for +tag+ has been found. -# -# [text(text)] -# Announces that a string of characters (+text+) has been found. -# A series of characters may be broken up into more than one -# +text+ call, so the client cannot assume that a single -# callback contains all the text data. -# -# source://builder//lib/builder/xmlevents.rb#49 -class Builder::XmlEvents < ::Builder::XmlMarkup - # source://builder//lib/builder/xmlevents.rb#59 - def _end_tag(sym); end - - # source://builder//lib/builder/xmlevents.rb#54 - def _start_tag(sym, attrs, end_too = T.unsafe(nil)); end - - # source://builder//lib/builder/xmlevents.rb#50 - def text!(text); end -end - -# Create XML markup easily. All (well, almost all) methods sent to -# an XmlMarkup object will be translated to the equivalent XML -# markup. Any method with a block will be treated as an XML markup -# tag with nested markup in the block. -# -# Examples will demonstrate this easier than words. In the -# following, +xm+ is an +XmlMarkup+ object. -# -# xm.em("emphasized") # => emphasized -# xm.em { xm.b("emp & bold") } # => emph & bold -# xm.a("A Link", "href"=>"http://onestepback.org") -# # => A Link -# xm.div { xm.br } # =>

-# xm.target("name"=>"compile", "option"=>"fast") -# # => -# # NOTE: order of attributes is not specified. -# -# xm.instruct! # -# xm.html { # -# xm.head { # -# xm.title("History") # History -# } # -# xm.body { # -# xm.comment! "HI" # -# xm.h1("Header") #

Header

-# xm.p("paragraph") #

paragraph

-# } # -# } # -# -# == Notes: -# -# * The order that attributes are inserted in markup tags is -# undefined. -# -# * Sometimes you wish to insert text without enclosing tags. Use -# the text! method to accomplish this. -# -# Example: -# -# xm.div { #
-# xm.text! "line"; xm.br # line
-# xm.text! "another line"; xmbr # another line
-# } #
-# -# * The special XML characters <, >, and & are converted to <, -# > and & automatically. Use the << operation to -# insert text without modification. -# -# * Sometimes tags use special characters not allowed in ruby -# identifiers. Use the tag! method to handle these -# cases. -# -# Example: -# -# xml.tag!("SOAP:Envelope") { ... } -# -# will produce ... -# -# ... " -# -# tag! will also take text and attribute arguments (after -# the tag name) like normal markup methods. (But see the next -# bullet item for a better way to handle XML namespaces). -# -# * Direct support for XML namespaces is now available. If the -# first argument to a tag call is a symbol, it will be joined to -# the tag to produce a namespace:tag combination. It is easier to -# show this than describe it. -# -# xml.SOAP :Envelope do ... end -# -# Just put a space before the colon in a namespace to produce the -# right form for builder (e.g. "SOAP:Envelope" => -# "xml.SOAP :Envelope") -# -# * XmlMarkup builds the markup in any object (called a _target_) -# that accepts the << method. If no target is given, -# then XmlMarkup defaults to a string target. -# -# Examples: -# -# xm = Builder::XmlMarkup.new -# result = xm.title("yada") -# # result is a string containing the markup. -# -# buffer = "" -# xm = Builder::XmlMarkup.new(buffer) -# # The markup is appended to buffer (using <<) -# -# xm = Builder::XmlMarkup.new(STDOUT) -# # The markup is written to STDOUT (using <<) -# -# xm = Builder::XmlMarkup.new -# x2 = Builder::XmlMarkup.new(:target=>xm) -# # Markup written to +x2+ will be send to +xm+. -# -# * Indentation is enabled by providing the number of spaces to -# indent for each level as a second argument to XmlBuilder.new. -# Initial indentation may be specified using a third parameter. -# -# Example: -# -# xm = Builder.new(:indent=>2) -# # xm will produce nicely formatted and indented XML. -# -# xm = Builder.new(:indent=>2, :margin=>4) -# # xm will produce nicely formatted and indented XML with 2 -# # spaces per indent and an over all indentation level of 4. -# -# builder = Builder::XmlMarkup.new(:target=>$stdout, :indent=>2) -# builder.name { |b| b.first("Jim"); b.last("Weirich) } -# # prints: -# # -# # Jim -# # Weirich -# # -# -# * The instance_eval implementation which forces self to refer to -# the message receiver as self is now obsolete. We now use normal -# block calls to execute the markup block. This means that all -# markup methods must now be explicitly send to the xml builder. -# For instance, instead of -# -# xml.div { strong("text") } -# -# you need to write: -# -# xml.div { xml.strong("text") } -# -# Although more verbose, the subtle change in semantics within the -# block was found to be prone to error. To make this change a -# little less cumbersome, the markup block now gets the markup -# object sent as an argument, allowing you to use a shorter alias -# within the block. -# -# For example: -# -# xml_builder = Builder::XmlMarkup.new -# xml_builder.div { |xml| -# xml.stong("text") -# } -# -# source://builder//lib/builder/xmlmarkup.rb#161 -class Builder::XmlMarkup < ::Builder::XmlBase - # Create an XML markup builder. Parameters are specified by an - # option hash. - # - # :target => target_object:: - # Object receiving the markup. +target_object+ must respond to - # the <<(a_string) operator and return - # itself. The default target is a plain string target. - # - # :indent => indentation:: - # Number of spaces used for indentation. The default is no - # indentation and no line breaks. - # - # :margin => initial_indentation_level:: - # Amount of initial indentation (specified in levels, not - # spaces). - # - # :quote => :single:: - # Use single quotes for attributes rather than double quotes. - # - # :escape_attrs => OBSOLETE:: - # The :escape_attrs option is no longer supported by builder - # (and will be quietly ignored). String attribute values are - # now automatically escaped. If you need unescaped attribute - # values (perhaps you are using entities in the attribute - # values), then give the value as a Symbol. This allows much - # finer control over escaping attribute values. - # - # @return [XmlMarkup] a new instance of XmlMarkup - # - # source://builder//lib/builder/xmlmarkup.rb#190 - def initialize(options = T.unsafe(nil)); end - - # Insert a CDATA section into the XML markup. - # - # For example: - # - # xml.cdata!("text to be included in cdata") - # #=> - # - # source://builder//lib/builder/xmlmarkup.rb#270 - def cdata!(text); end - - # source://builder//lib/builder/xmlmarkup.rb#275 - def cdata_value!(open, text); end - - # source://builder//lib/builder/xmlmarkup.rb#204 - def comment!(comment_text); end - - # Insert an XML declaration into the XML markup. - # - # For example: - # - # xml.declare! :ELEMENT, :blah, "yada" - # # => - # - # source://builder//lib/builder/xmlmarkup.rb#215 - def declare!(inst, *args, &block); end - - # Insert a processing instruction into the XML markup. E.g. - # - # For example: - # - # xml.instruct! - # #=> - # xml.instruct! :aaa, :bbb=>"ccc" - # #=> - # - # Note: If the encoding is setup to "UTF-8" and the value of - # $KCODE is "UTF8", then builder will emit UTF-8 encoded strings - # rather than the entity encoding normally used. - # - # source://builder//lib/builder/xmlmarkup.rb#248 - def instruct!(directive_tag = T.unsafe(nil), attrs = T.unsafe(nil)); end - - # Return the target of the builder. - # - # source://builder//lib/builder/xmlmarkup.rb#200 - def target!; end - - private - - # source://builder//lib/builder/xmlmarkup.rb#326 - def _attr_value(value); end - - # Insert an ending tag. - # - # source://builder//lib/builder/xmlmarkup.rb#310 - def _end_tag(sym); end - - # source://builder//lib/builder/xmlmarkup.rb#335 - def _ensure_no_block(got_block); end - - # Insert the attributes (given in the hash). - # - # source://builder//lib/builder/xmlmarkup.rb#315 - def _insert_attributes(attrs, order = T.unsafe(nil)); end - - # Insert special instruction. - # - # source://builder//lib/builder/xmlmarkup.rb#291 - def _special(open, close, data = T.unsafe(nil), attrs = T.unsafe(nil), order = T.unsafe(nil)); end - - # Start an XML tag. If end_too is true, then the start - # tag is also the end tag (e.g.
- # - # source://builder//lib/builder/xmlmarkup.rb#302 - def _start_tag(sym, attrs, end_too = T.unsafe(nil)); end - - # Insert text directly in to the builder's target. - # - # source://builder//lib/builder/xmlmarkup.rb#286 - def _text(text); end -end diff --git a/sorbet/rbi/gems/builder@3.3.0.rbi b/sorbet/rbi/gems/builder@3.3.0.rbi new file mode 100644 index 00000000..177ba9ae --- /dev/null +++ b/sorbet/rbi/gems/builder@3.3.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `builder` gem. +# Please instead update this file by running `bin/tapioca gem builder`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi b/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi similarity index 99% rename from sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi rename to sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi index ba0780ea..e6a82d00 100644 --- a/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +++ b/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi @@ -148,11 +148,47 @@ module Concurrent # source://concurrent-ruby//lib/concurrent-ruby/concurrent/tvar.rb#82 def atomically; end + # Number of processors cores available for process scheduling. + # This method takes in account the CPU quota if the process is inside a cgroup with a + # dedicated CPU quota (typically Docker). + # Otherwise it returns the same value as #processor_count but as a Float. + # + # For performance reasons the calculated value will be memoized on the first + # call. + # + # @return [Float] number of available processors + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#194 + def available_processor_count; end + # @raise [ArgumentError] # # source://concurrent-ruby//lib/concurrent-ruby/concurrent/dataflow.rb#56 def call_dataflow(method, executor, *inputs, &block); end + # The maximum number of processors cores available for process scheduling. + # Returns `nil` if there is no enforced limit, or a `Float` if the + # process is inside a cgroup with a dedicated CPU quota (typically Docker). + # + # Note that nothing prevents setting a CPU quota higher than the actual number of + # cores on the system. + # + # For performance reasons the calculated value will be memoized on the first + # call. + # + # @return [nil, Float] Maximum number of available processors as set by a cgroup CPU quota, or nil if none set + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#209 + def cpu_quota; end + + # The CPU shares requested by the process. For performance reasons the calculated + # value will be memoized on the first call. + # + # @return [Float, nil] CPU shares requested by the process, or nil if not set + # + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#217 + def cpu_shares; end + # @return [Logger] Logger with provided level and output. # # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#37 @@ -291,7 +327,7 @@ module Concurrent # @see http://www.unix.com/man-page/osx/1/HWPREFS/ # @see http://linux.die.net/man/8/sysctl # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#107 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#181 def physical_processor_count; end # Number of processors seen by the OS and used for process scheduling. For @@ -302,18 +338,18 @@ module Concurrent # `java.lang.Runtime.getRuntime.availableProcessors` will be used. According # to the Java documentation this "value may change during a particular # invocation of the virtual machine... [applications] should therefore - # occasionally poll this property." Subsequently the result will NOT be - # memoized under JRuby. + # occasionally poll this property." We still memoize this value once under + # JRuby. # # Otherwise Ruby's Etc.nprocessors will be used. # # @return [Integer] number of processors seen by the OS or Java runtime # @see http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#availableProcessors() # - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#86 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#160 def processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#68 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#142 def processor_counter; end # Use logger created by #create_simple_logger to log concurrent-ruby messages. @@ -11572,19 +11608,37 @@ class Concurrent::Utility::ProcessorCounter # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#11 def initialize; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#20 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#26 + def available_processor_count; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#41 + def cpu_quota; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#45 + def cpu_shares; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#22 def physical_processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#16 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#18 def processor_count; end private - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#34 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#104 + def compute_cpu_quota; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#124 + def compute_cpu_shares; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#59 def compute_physical_processor_count; end - # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#26 + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#51 def compute_processor_count; end + + # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#99 + def run(command); end end # source://concurrent-ruby//lib/concurrent-ruby/concurrent/version.rb#2 diff --git a/sorbet/rbi/gems/connection_pool@2.4.1.rbi b/sorbet/rbi/gems/connection_pool@2.4.1.rbi index 15ebf0d7..3d9f5950 100644 --- a/sorbet/rbi/gems/connection_pool@2.4.1.rbi +++ b/sorbet/rbi/gems/connection_pool@2.4.1.rbi @@ -5,271 +5,5 @@ # 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. -# -# Example usage with block (faster): -# -# @pool = ConnectionPool.new { Redis.new } -# @pool.with do |redis| -# redis.lpop('my-list') if redis.llen('my-list') > 0 -# end -# -# Using optional timeout override (for that single invocation) -# -# @pool.with(timeout: 2.0) do |redis| -# redis.lpop('my-list') if redis.llen('my-list') > 0 -# end -# -# Example usage replacing an existing connection (slower): -# -# $redis = ConnectionPool.wrap { Redis.new } -# -# def do_work -# $redis.lpop('my-list') if $redis.llen('my-list') > 0 -# end -# -# Accepts the following options: -# - :size - number of connections to pool, defaults to 5 -# - :timeout - amount of time to wait for a connection if none currently available, defaults to 5 seconds -# - :auto_reload_after_fork - automatically drop all connections after fork, defaults to true -# -# source://connection_pool//lib/connection_pool/version.rb#1 -class ConnectionPool - # @raise [ArgumentError] - # @return [ConnectionPool] a new instance of ConnectionPool - # - # source://connection_pool//lib/connection_pool.rb#90 - def initialize(options = T.unsafe(nil), &block); end - - # Automatically drop all connections after fork - # - # source://connection_pool//lib/connection_pool.rb#166 - def auto_reload_after_fork; end - - # Number of pool entries available for checkout at this instant. - # - # source://connection_pool//lib/connection_pool.rb#169 - def available; end - - # source://connection_pool//lib/connection_pool.rb#129 - def checkin(force: T.unsafe(nil)); end - - # source://connection_pool//lib/connection_pool.rb#119 - def checkout(options = T.unsafe(nil)); end - - # Reloads the ConnectionPool by passing each connection to +block+ and then - # removing it the pool. Subsequent checkouts will create new connections as - # needed. - # - # source://connection_pool//lib/connection_pool.rb#159 - def reload(&block); end - - # Shuts down the ConnectionPool by passing each connection to +block+ and - # then removing it from the pool. Attempting to checkout a connection after - # shutdown will raise +ConnectionPool::PoolShuttingDownError+. - # - # source://connection_pool//lib/connection_pool.rb#150 - def shutdown(&block); end - - # Size of this connection pool - # - # source://connection_pool//lib/connection_pool.rb#164 - def size; end - - # source://connection_pool//lib/connection_pool.rb#105 - def then(options = T.unsafe(nil)); end - - # source://connection_pool//lib/connection_pool.rb#105 - def with(options = T.unsafe(nil)); end - - class << self - # source://connection_pool//lib/connection_pool.rb#52 - def after_fork; end - - # source://connection_pool//lib/connection_pool.rb#44 - def wrap(options, &block); end - end -end - -# source://connection_pool//lib/connection_pool.rb#42 -ConnectionPool::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://connection_pool//lib/connection_pool.rb#5 -class ConnectionPool::Error < ::RuntimeError; end - -# source://connection_pool//lib/connection_pool.rb#70 -module ConnectionPool::ForkTracker - # source://connection_pool//lib/connection_pool.rb#71 - def _fork; end -end - -# source://connection_pool//lib/connection_pool.rb#49 -ConnectionPool::INSTANCES = T.let(T.unsafe(nil), ObjectSpace::WeakMap) - -# source://connection_pool//lib/connection_pool.rb#7 -class ConnectionPool::PoolShuttingDownError < ::ConnectionPool::Error; end - -# Examples: -# -# ts = TimedStack.new(1) { MyConnection.new } -# -# # fetch a connection -# conn = ts.pop -# -# # return a connection -# ts.push conn -# -# conn = ts.pop -# ts.pop timeout: 5 -# #=> raises ConnectionPool::TimeoutError after 5 seconds -# -# source://connection_pool//lib/connection_pool/timed_stack.rb#20 -class ConnectionPool::TimedStack - # Creates a new pool with +size+ connections that are created from the given - # +block+. - # - # @return [TimedStack] a new instance of TimedStack - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#27 - def initialize(size = T.unsafe(nil), &block); end - - # Returns +obj+ to the stack. +options+ is ignored in TimedStack but may be - # used by subclasses that extend TimedStack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#41 - def <<(obj, options = T.unsafe(nil)); end - - # Returns +true+ if there are no available connections. - # - # @return [Boolean] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#104 - def empty?; end - - # The number of connections available on the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#111 - def length; end - - # Returns the value of attribute max. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#21 - def max; end - - # Retrieves a connection from the stack. If a connection is available it is - # immediately returned. If no connection is available within the given - # timeout a ConnectionPool::TimeoutError is raised. - # - # +:timeout+ is the only checked entry in +options+ and is preferred over - # the +timeout+ argument (which will be removed in a future release). Other - # options may be used by subclasses that extend TimedStack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#63 - def pop(timeout = T.unsafe(nil), options = T.unsafe(nil)); end - - # Returns +obj+ to the stack. +options+ is ignored in TimedStack but may be - # used by subclasses that extend TimedStack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#41 - def push(obj, options = T.unsafe(nil)); end - - # Shuts down the TimedStack by passing each connection to +block+ and then - # removing it from the pool. Attempting to checkout a connection after - # shutdown will raise +ConnectionPool::PoolShuttingDownError+ unless - # +:reload+ is +true+. - # - # @raise [ArgumentError] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#89 - def shutdown(reload: T.unsafe(nil), &block); end - - private - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must returns true if a connection is available on the stack. - # - # @return [Boolean] - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#126 - def connection_stored?(options = T.unsafe(nil)); end - - # source://connection_pool//lib/connection_pool/timed_stack.rb#117 - def current_time; end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must return a connection from the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#135 - def fetch_connection(options = T.unsafe(nil)); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must shut down all connections on the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#144 - def shutdown_connections(options = T.unsafe(nil)); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must return +obj+ to the stack. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#157 - def store_connection(obj, options = T.unsafe(nil)); end - - # This is an extension point for TimedStack and is called with a mutex. - # - # This method must create a connection if and only if the total number of - # connections allowed has not been met. - # - # source://connection_pool//lib/connection_pool/timed_stack.rb#167 - def try_create(options = T.unsafe(nil)); end -end - -# source://connection_pool//lib/connection_pool.rb#9 -class ConnectionPool::TimeoutError < ::Timeout::Error; end - -# source://connection_pool//lib/connection_pool/version.rb#2 -ConnectionPool::VERSION = T.let(T.unsafe(nil), String) - -# source://connection_pool//lib/connection_pool/wrapper.rb#2 -class ConnectionPool::Wrapper < ::BasicObject - # @return [Wrapper] a new instance of Wrapper - # - # source://connection_pool//lib/connection_pool/wrapper.rb#5 - def initialize(options = T.unsafe(nil), &block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#35 - def method_missing(name, *args, **kwargs, &block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#25 - def pool_available; end - - # source://connection_pool//lib/connection_pool/wrapper.rb#17 - def pool_shutdown(&block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#21 - def pool_size; end - - # @return [Boolean] - # - # source://connection_pool//lib/connection_pool/wrapper.rb#29 - def respond_to?(id, *args); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#13 - def with(&block); end - - # source://connection_pool//lib/connection_pool/wrapper.rb#9 - def wrapped_pool; end -end - -# source://connection_pool//lib/connection_pool/wrapper.rb#3 -ConnectionPool::Wrapper::METHODS = T.let(T.unsafe(nil), Array) - -module Process - extend ::RedisClient::PIDCache::CoreExt - extend ::ConnectionPool::ForkTracker - extend ::ActiveSupport::ForkTracker::ModernCoreExt -end +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/cose@1.3.0.rbi b/sorbet/rbi/gems/cose@1.3.1.rbi similarity index 97% rename from sorbet/rbi/gems/cose@1.3.0.rbi rename to sorbet/rbi/gems/cose@1.3.1.rbi index 4a80729b..be54bb54 100644 --- a/sorbet/rbi/gems/cose@1.3.0.rbi +++ b/sorbet/rbi/gems/cose@1.3.1.rbi @@ -447,31 +447,34 @@ COSE::Key::CurveKey::LABEL_X = T.let(T.unsafe(nil), Integer) class COSE::Key::EC2 < ::COSE::Key::CurveKey # @return [EC2] a new instance of EC2 # - # source://cose//lib/cose/key/ec2.rb#51 + # source://cose//lib/cose/key/ec2.rb#53 def initialize(y: T.unsafe(nil), **keyword_arguments); end - # source://cose//lib/cose/key/ec2.rb#109 + # source://cose//lib/cose/key/ec2.rb#111 def curve; end - # source://cose//lib/cose/key/ec2.rb#61 + # source://cose//lib/cose/key/ec2.rb#63 def map; end - # source://cose//lib/cose/key/ec2.rb#68 + # source://cose//lib/cose/key/ec2.rb#119 + def pad_coordinate(group, coordinate); end + + # source://cose//lib/cose/key/ec2.rb#70 def to_pkey; end # Returns the value of attribute y. # - # source://cose//lib/cose/key/ec2.rb#49 + # source://cose//lib/cose/key/ec2.rb#51 def y; end class << self - # source://cose//lib/cose/key/ec2.rb#14 + # source://cose//lib/cose/key/ec2.rb#16 def enforce_type(map); end - # source://cose//lib/cose/key/ec2.rb#20 + # source://cose//lib/cose/key/ec2.rb#22 def from_pkey(pkey); end - # source://cose//lib/cose/key/ec2.rb#113 + # source://cose//lib/cose/key/ec2.rb#115 def keyword_arguments_for_initialize(map); end end end @@ -482,6 +485,9 @@ COSE::Key::EC2::KTY_EC2 = T.let(T.unsafe(nil), Integer) # source://cose//lib/cose/key/ec2.rb#10 COSE::Key::EC2::LABEL_Y = T.let(T.unsafe(nil), Integer) +# source://cose//lib/cose/key/ec2.rb#14 +COSE::Key::EC2::ZERO_BYTE = T.let(T.unsafe(nil), String) + # source://cose//lib/cose/key/okp.rb#9 class COSE::Key::OKP < ::COSE::Key::CurveKey # source://cose//lib/cose/key/okp.rb#65 diff --git a/sorbet/rbi/gems/csv@3.3.0.rbi b/sorbet/rbi/gems/csv@3.3.0.rbi index fcafb7d2..928f6c45 100644 --- a/sorbet/rbi/gems/csv@3.3.0.rbi +++ b/sorbet/rbi/gems/csv@3.3.0.rbi @@ -1,4696 +1,9 @@ -# typed: false +# typed: true # 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 +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/date@3.3.4.rbi b/sorbet/rbi/gems/date@3.3.4.rbi index 8da23521..1dcd7c8e 100644 --- a/sorbet/rbi/gems/date@3.3.4.rbi +++ b/sorbet/rbi/gems/date@3.3.4.rbi @@ -5,6 +5,7 @@ # Please instead update this file by running `bin/tapioca gem date`. +# source://date//lib/date.rb#6 class Date include ::Comparable @@ -15,59 +16,60 @@ class Date # # @return [Boolean] # - # source://date//date.rb#13 + # source://date//lib/date.rb#13 def infinite?; end end +# source://date//lib/date.rb#17 class Date::Infinity < ::Numeric # @return [Infinity] a new instance of Infinity # - # source://date//date.rb#19 + # source://date//lib/date.rb#19 def initialize(d = T.unsafe(nil)); end - # source://date//date.rb#33 + # source://date//lib/date.rb#33 def +@; end - # source://date//date.rb#32 + # source://date//lib/date.rb#32 def -@; end - # source://date//date.rb#35 + # source://date//lib/date.rb#35 def <=>(other); end - # source://date//date.rb#30 + # source://date//lib/date.rb#30 def abs; end - # source://date//date.rb#51 + # source://date//lib/date.rb#51 def coerce(other); end # @return [Boolean] # - # source://date//date.rb#26 + # source://date//lib/date.rb#26 def finite?; end # @return [Boolean] # - # source://date//date.rb#27 + # source://date//lib/date.rb#27 def infinite?; end # @return [Boolean] # - # source://date//date.rb#28 + # source://date//lib/date.rb#28 def nan?; end - # source://date//date.rb#59 + # source://date//lib/date.rb#59 def to_f; end # @return [Boolean] # - # source://date//date.rb#25 + # source://date//lib/date.rb#25 def zero?; end protected - # source://date//date.rb#21 + # source://date//lib/date.rb#21 def d; end end -# source://date//date.rb#7 +# source://date//lib/date.rb#7 Date::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/dry-cli@1.0.0.rbi b/sorbet/rbi/gems/dry-cli@1.1.0.rbi similarity index 91% rename from sorbet/rbi/gems/dry-cli@1.0.0.rbi rename to sorbet/rbi/gems/dry-cli@1.1.0.rbi index fabc0f19..445f1480 100644 --- a/sorbet/rbi/gems/dry-cli@1.0.0.rbi +++ b/sorbet/rbi/gems/dry-cli@1.1.0.rbi @@ -182,13 +182,13 @@ end # @api private # @since 0.1.0 # -# source://dry-cli//lib/dry/cli/option.rb#123 +# source://dry-cli//lib/dry/cli/option.rb#130 class Dry::CLI::Argument < ::Dry::CLI::Option # @api private # @return [Boolean] # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/option.rb#126 + # source://dry-cli//lib/dry/cli/option.rb#133 def argument?; end end @@ -209,7 +209,7 @@ module Dry::CLI::Banner # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/banner.rb#128 + # source://dry-cli//lib/dry/cli/banner.rb#130 def build_subcommands_list(subcommands); end # Prints command banner @@ -400,13 +400,13 @@ class Dry::CLI::Command # @param options [Hash] a set of options # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#201 + # source://dry-cli//lib/dry/cli/command.rb#197 def argument(name, options = T.unsafe(nil)); end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#329 + # source://dry-cli//lib/dry/cli/command.rb#325 def default_params; end # Set the description of the command @@ -424,7 +424,7 @@ class Dry::CLI::Command # @param description [String] the description # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#71 + # source://dry-cli//lib/dry/cli/command.rb#67 def desc(description); end # Describe the usage of the command @@ -458,7 +458,7 @@ class Dry::CLI::Command # @param examples [Array] one or more examples # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#107 + # source://dry-cli//lib/dry/cli/command.rb#103 def example(*examples); end # @api private @@ -572,49 +572,49 @@ class Dry::CLI::Command # @param options [Hash] a set of options # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#315 + # source://dry-cli//lib/dry/cli/command.rb#311 def option(name, options = T.unsafe(nil)); end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#343 + # source://dry-cli//lib/dry/cli/command.rb#339 def optional_arguments; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#321 + # source://dry-cli//lib/dry/cli/command.rb#317 def params; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command.rb#337 + # source://dry-cli//lib/dry/cli/command.rb#333 def required_arguments; end # @api private # @since 0.7.0 # - # source://dry-cli//lib/dry/cli/command.rb#349 + # source://dry-cli//lib/dry/cli/command.rb#345 def subcommands; end # @api private # @since 0.7.0 # - # source://dry-cli//lib/dry/cli/command.rb#363 + # source://dry-cli//lib/dry/cli/command.rb#359 def superclass_arguments; end # @api private # @since 0.7.0 # - # source://dry-cli//lib/dry/cli/command.rb#369 + # source://dry-cli//lib/dry/cli/command.rb#365 def superclass_options; end # @api private # @since 0.7.0 # - # source://dry-cli//lib/dry/cli/command.rb#355 + # source://dry-cli//lib/dry/cli/command.rb#351 def superclass_variable_dup(var); end end end @@ -657,7 +657,7 @@ module Dry::CLI::Command::ClassMethods # @api private # @since 0.7.0 # - # source://dry-cli//lib/dry/cli/command.rb#52 + # source://dry-cli//lib/dry/cli/command.rb#48 def subcommands=(_arg0); end end @@ -693,31 +693,31 @@ end # @api private # @since 0.4.0 # -# source://dry-cli//lib/dry/cli/command_registry.rb#226 +# source://dry-cli//lib/dry/cli/command_registry.rb#227 class Dry::CLI::CommandRegistry::Chain # @api private # @return [Chain] a new instance of Chain # @since 0.4.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#233 + # source://dry-cli//lib/dry/cli/command_registry.rb#234 def initialize; end # @api private # @since 0.4.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#239 + # source://dry-cli//lib/dry/cli/command_registry.rb#240 def append(&callback); end # @api private # @since 0.4.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#229 + # source://dry-cli//lib/dry/cli/command_registry.rb#230 def chain; end # @api private # @since 0.4.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#245 + # source://dry-cli//lib/dry/cli/command_registry.rb#246 def run(context, *args); end end @@ -726,56 +726,56 @@ end # @api private # @since 0.1.0 # -# source://dry-cli//lib/dry/cli/command_registry.rb#173 +# source://dry-cli//lib/dry/cli/command_registry.rb#174 class Dry::CLI::CommandRegistry::LookupResult # @api private # @return [LookupResult] a new instance of LookupResult # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#184 + # source://dry-cli//lib/dry/cli/command_registry.rb#185 def initialize(node, arguments, names, found); end # @api private # @since 0.2.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#217 + # source://dry-cli//lib/dry/cli/command_registry.rb#218 def after_callbacks; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#180 + # source://dry-cli//lib/dry/cli/command_registry.rb#181 def arguments; end # @api private # @since 0.2.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#211 + # source://dry-cli//lib/dry/cli/command_registry.rb#212 def before_callbacks; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#199 + # source://dry-cli//lib/dry/cli/command_registry.rb#200 def children; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#205 + # source://dry-cli//lib/dry/cli/command_registry.rb#206 def command; end # @api private # @return [Boolean] # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#193 + # source://dry-cli//lib/dry/cli/command_registry.rb#194 def found?; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#176 + # source://dry-cli//lib/dry/cli/command_registry.rb#177 def names; end end @@ -784,99 +784,99 @@ end # @api private # @since 0.1.0 # -# source://dry-cli//lib/dry/cli/command_registry.rb#80 +# source://dry-cli//lib/dry/cli/command_registry.rb#81 class Dry::CLI::CommandRegistry::Node # @api private # @return [Node] a new instance of Node # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#107 + # source://dry-cli//lib/dry/cli/command_registry.rb#108 def initialize(parent = T.unsafe(nil)); end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#103 + # source://dry-cli//lib/dry/cli/command_registry.rb#104 def after_callbacks; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#144 + # source://dry-cli//lib/dry/cli/command_registry.rb#145 def alias!(key, child); end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#91 + # source://dry-cli//lib/dry/cli/command_registry.rb#92 def aliases; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#150 + # source://dry-cli//lib/dry/cli/command_registry.rb#151 def aliases!(aliases); end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#99 + # source://dry-cli//lib/dry/cli/command_registry.rb#100 def before_callbacks; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#87 + # source://dry-cli//lib/dry/cli/command_registry.rb#88 def children; end # @api private # @return [Boolean] # @since 0.7.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#164 + # source://dry-cli//lib/dry/cli/command_registry.rb#165 def children?; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#95 + # source://dry-cli//lib/dry/cli/command_registry.rb#96 def command; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#131 + # source://dry-cli//lib/dry/cli/command_registry.rb#132 def leaf!(command); end # @api private # @return [Boolean] # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#158 + # source://dry-cli//lib/dry/cli/command_registry.rb#159 def leaf?; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#125 + # source://dry-cli//lib/dry/cli/command_registry.rb#126 def lookup(token); end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#83 + # source://dry-cli//lib/dry/cli/command_registry.rb#84 def parent; end # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#119 + # source://dry-cli//lib/dry/cli/command_registry.rb#120 def put(parent, key); end # @api private # @since 0.7.0 # - # source://dry-cli//lib/dry/cli/command_registry.rb#137 + # source://dry-cli//lib/dry/cli/command_registry.rb#138 def subcommands!(command); end end @@ -928,7 +928,7 @@ class Dry::CLI::Option # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/option.rb#109 + # source://dry-cli//lib/dry/cli/option.rb#116 def alias_names; end # @api private @@ -941,14 +941,14 @@ class Dry::CLI::Option # @return [Boolean] # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/option.rb#82 + # source://dry-cli//lib/dry/cli/option.rb#87 def argument?; end # @api private # @return [Boolean] # @since 0.3.0 # - # source://dry-cli//lib/dry/cli/option.rb#64 + # source://dry-cli//lib/dry/cli/option.rb#69 def array?; end # @api private @@ -961,7 +961,7 @@ class Dry::CLI::Option # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/option.rb#70 + # source://dry-cli//lib/dry/cli/option.rb#75 def default; end # @api private @@ -973,9 +973,16 @@ class Dry::CLI::Option # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/option.rb#76 + # source://dry-cli//lib/dry/cli/option.rb#81 def description_name; end + # @api private + # @return [Boolean] + # @since 0.1.0 + # + # source://dry-cli//lib/dry/cli/option.rb#63 + def flag?; end + # @api private # @since 0.1.0 # @@ -991,7 +998,7 @@ class Dry::CLI::Option # @api private # @since 0.1.0 # - # source://dry-cli//lib/dry/cli/option.rb#89 + # source://dry-cli//lib/dry/cli/option.rb#94 def parser_options; end # @api private diff --git a/sorbet/rbi/gems/erubi@1.12.0.rbi b/sorbet/rbi/gems/erubi@1.13.0.rbi similarity index 91% rename from sorbet/rbi/gems/erubi@1.12.0.rbi rename to sorbet/rbi/gems/erubi@1.13.0.rbi index d16b6105..16d45faf 100644 --- a/sorbet/rbi/gems/erubi@1.12.0.rbi +++ b/sorbet/rbi/gems/erubi@1.13.0.rbi @@ -7,12 +7,16 @@ # source://erubi//lib/erubi.rb#3 module Erubi + private + + def h(_arg0); end + class << self def h(_arg0); end end end -# source://erubi//lib/erubi.rb#54 +# source://erubi//lib/erubi.rb#51 class Erubi::Engine # Initialize a new Erubi::Engine. Options: # +:bufval+ :: The value to use for the buffer variable, as a string (default '::String.new'). @@ -43,64 +47,64 @@ class Erubi::Engine # # @return [Engine] a new instance of Engine # - # source://erubi//lib/erubi.rb#94 + # source://erubi//lib/erubi.rb#91 def initialize(input, properties = T.unsafe(nil)); end # The variable name used for the buffer variable. # - # source://erubi//lib/erubi.rb#65 + # source://erubi//lib/erubi.rb#62 def bufvar; end # The filename of the template, if one was given. # - # source://erubi//lib/erubi.rb#62 + # source://erubi//lib/erubi.rb#59 def filename; end # The frozen ruby source code generated from the template, which can be evaled. # - # source://erubi//lib/erubi.rb#59 + # source://erubi//lib/erubi.rb#56 def src; end private # Add ruby code to the template # - # source://erubi//lib/erubi.rb#226 + # source://erubi//lib/erubi.rb#223 def add_code(code); end # Add the given ruby expression result to the template, # escaping it based on the indicator given and escape flag. # - # source://erubi//lib/erubi.rb#235 + # source://erubi//lib/erubi.rb#232 def add_expression(indicator, code); end # Add the result of Ruby expression to the template # - # source://erubi//lib/erubi.rb#244 + # source://erubi//lib/erubi.rb#241 def add_expression_result(code); end # Add the escaped result of Ruby expression to the template # - # source://erubi//lib/erubi.rb#249 + # source://erubi//lib/erubi.rb#246 def add_expression_result_escaped(code); end # Add the given postamble to the src. Can be overridden in subclasses # to make additional changes to src that depend on the current state. # - # source://erubi//lib/erubi.rb#255 + # source://erubi//lib/erubi.rb#252 def add_postamble(postamble); end # Add raw text to the template. Modifies argument if argument is mutable as a memory optimization. # Must be called with a string, cannot be called with nil (Rails's subclass depends on it). # - # source://erubi//lib/erubi.rb#213 + # source://erubi//lib/erubi.rb#210 def add_text(text); end # Raise an exception, as the base engine class does not support handling other indicators. # # @raise [ArgumentError] # - # source://erubi//lib/erubi.rb#261 + # source://erubi//lib/erubi.rb#258 def handle(indicator, code, tailch, rspace, lspace); end # Make sure that any current expression has been terminated. @@ -108,7 +112,7 @@ class Erubi::Engine # the chain_appends option is used, expressions may not be # terminated. # - # source://erubi//lib/erubi.rb#289 + # source://erubi//lib/erubi.rb#286 def terminate_expression; end # Make sure the buffer variable is the target of the next append @@ -118,13 +122,13 @@ class Erubi::Engine # This method should only be called if the block will result in # code where << will append to the bufvar. # - # source://erubi//lib/erubi.rb#271 + # source://erubi//lib/erubi.rb#268 def with_buffer; end end # The default regular expression used for scanning. # -# source://erubi//lib/erubi.rb#56 +# source://erubi//lib/erubi.rb#53 Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp) # source://erubi//lib/erubi.rb#17 diff --git a/sorbet/rbi/gems/execjs@2.9.1.rbi b/sorbet/rbi/gems/execjs@2.9.1.rbi deleted file mode 100644 index ac37e0e1..00000000 --- a/sorbet/rbi/gems/execjs@2.9.1.rbi +++ /dev/null @@ -1,457 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - # source://execjs//lib/execjs/module.rb#26 - def compile(source, options = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://execjs//lib/execjs/module.rb#38 - def cygwin?; end - - # source://execjs//lib/execjs/module.rb#22 - def eval(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/module.rb#18 - def exec(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/module.rb#30 - def root; end - - # Returns the value of attribute runtime. - # - # source://execjs//lib/execjs/module.rb#11 - def runtime; end - - # @raise [RuntimeUnavailable] - # - # source://execjs//lib/execjs/module.rb#13 - def runtime=(runtime); end - - # source://execjs//lib/execjs/runtimes.rb#108 - def runtimes; end - - # @return [Boolean] - # - # source://execjs//lib/execjs/module.rb#34 - def windows?; end - end -end - -# source://execjs//lib/execjs/disabled_runtime.rb#4 -class ExecJS::DisabledRuntime < ::ExecJS::Runtime - # @return [Boolean] - # - # source://execjs//lib/execjs/disabled_runtime.rb#25 - def available?; end - - # @raise [Error] - # - # source://execjs//lib/execjs/disabled_runtime.rb#17 - def compile(source, options = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://execjs//lib/execjs/disabled_runtime.rb#21 - def deprecated?; end - - # @raise [Error] - # - # source://execjs//lib/execjs/disabled_runtime.rb#13 - def eval(source, options = T.unsafe(nil)); end - - # @raise [Error] - # - # source://execjs//lib/execjs/disabled_runtime.rb#9 - def exec(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/disabled_runtime.rb#5 - def name; end -end - -# source://execjs//lib/execjs/duktape_runtime.rb#5 -class ExecJS::DuktapeRuntime < ::ExecJS::Runtime - # @return [Boolean] - # - # source://execjs//lib/execjs/duktape_runtime.rb#62 - def available?; end - - # source://execjs//lib/execjs/duktape_runtime.rb#58 - def name; end -end - -# source://execjs//lib/execjs/duktape_runtime.rb#6 -class ExecJS::DuktapeRuntime::Context < ::ExecJS::Runtime::Context - # @return [Context] a new instance of Context - # - # source://execjs//lib/execjs/duktape_runtime.rb#7 - def initialize(runtime, source = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/duktape_runtime.rb#28 - def call(identifier, *args); end - - # source://execjs//lib/execjs/duktape_runtime.rb#21 - def eval(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/duktape_runtime.rb#14 - def exec(source, options = T.unsafe(nil)); end - - private - - # source://execjs//lib/execjs/duktape_runtime.rb#36 - def wrap_error(e); end -end - -# source://execjs//lib/execjs/module.rb#5 -class ExecJS::Error < ::StandardError; end - -# source://execjs//lib/execjs/external_runtime.rb#6 -class ExecJS::ExternalRuntime < ::ExecJS::Runtime - # @return [ExternalRuntime] a new instance of ExternalRuntime - # - # source://execjs//lib/execjs/external_runtime.rb#93 - def initialize(options); end - - # @return [Boolean] - # - # source://execjs//lib/execjs/external_runtime.rb#116 - def available?; end - - # @return [Boolean] - # - # source://execjs//lib/execjs/external_runtime.rb#121 - def deprecated?; end - - # source://execjs//lib/execjs/external_runtime.rb#209 - def exec_runtime(filename); end - - # Returns the value of attribute name. - # - # source://execjs//lib/execjs/external_runtime.rb#91 - def name; end - - protected - - # source://execjs//lib/execjs/external_runtime.rb#157 - def encode_source(source); end - - # source://execjs//lib/execjs/external_runtime.rb#162 - def encode_unicode_codepoints(str); end - - # source://execjs//lib/execjs/external_runtime.rb#224 - def exec_runtime_error(output); end - - # source://execjs//lib/execjs/external_runtime.rb#153 - def json2_source; end - - # source://execjs//lib/execjs/external_runtime.rb#233 - def which(command); end - - private - - # source://execjs//lib/execjs/external_runtime.rb#126 - def binary; end - - # source://execjs//lib/execjs/external_runtime.rb#130 - def locate_executable(command); end -end - -# source://execjs//lib/execjs/external_runtime.rb#7 -class ExecJS::ExternalRuntime::Context < ::ExecJS::Runtime::Context - # @return [Context] a new instance of Context - # - # source://execjs//lib/execjs/external_runtime.rb#8 - def initialize(runtime, source = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/external_runtime.rb#46 - def call(identifier, *args); end - - # source://execjs//lib/execjs/external_runtime.rb#18 - def eval(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/external_runtime.rb#26 - def exec(source, options = T.unsafe(nil)); end - - protected - - # See Tempfile.create on Ruby 2.1 - # - # source://execjs//lib/execjs/external_runtime.rb#52 - def create_tempfile(basename); end - - # source://execjs//lib/execjs/external_runtime.rb#68 - def extract_result(output, filename); end - - # source://execjs//lib/execjs/external_runtime.rb#61 - def write_to_tempfile(contents); end -end - -# source://execjs//lib/execjs/graaljs_runtime.rb#4 -class ExecJS::GraalJSRuntime < ::ExecJS::Runtime - # @return [Boolean] - # - # source://execjs//lib/execjs/graaljs_runtime.rb#125 - def available?; end - - # source://execjs//lib/execjs/graaljs_runtime.rb#121 - def name; end -end - -# source://execjs//lib/execjs/graaljs_runtime.rb#5 -class ExecJS::GraalJSRuntime::Context < ::ExecJS::Runtime::Context - # @return [Context] a new instance of Context - # - # source://execjs//lib/execjs/graaljs_runtime.rb#6 - def initialize(runtime, source = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/graaljs_runtime.rb#37 - def call(source, *args); end - - # source://execjs//lib/execjs/graaljs_runtime.rb#28 - def eval(source, options = T.unsafe(nil)); end - - def eval_in_context(code); end - - # source://execjs//lib/execjs/graaljs_runtime.rb#19 - def exec(source, options = T.unsafe(nil)); end - - private - - # source://execjs//lib/execjs/graaljs_runtime.rb#64 - def convert_js_to_ruby(value); end - - # source://execjs//lib/execjs/graaljs_runtime.rb#97 - def convert_ruby_to_js(value); end - - # source://execjs//lib/execjs/graaljs_runtime.rb#51 - def translate; end -end - -# source://execjs//lib/execjs/graaljs_runtime.rb#49 -ExecJS::GraalJSRuntime::Context::ForeignException = RuntimeError - -# source://execjs//lib/execjs/mini_racer_runtime.rb#4 -class ExecJS::MiniRacerRuntime < ::ExecJS::Runtime - # @return [Boolean] - # - # source://execjs//lib/execjs/mini_racer_runtime.rb#96 - def available?; end - - # source://execjs//lib/execjs/mini_racer_runtime.rb#92 - def name; end -end - -# source://execjs//lib/execjs/mini_racer_runtime.rb#5 -class ExecJS::MiniRacerRuntime::Context < ::ExecJS::Runtime::Context - # @return [Context] a new instance of Context - # - # source://execjs//lib/execjs/mini_racer_runtime.rb#6 - def initialize(runtime, source = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/mini_racer_runtime.rb#33 - def call(identifier, *args); end - - # source://execjs//lib/execjs/mini_racer_runtime.rb#23 - def eval(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/mini_racer_runtime.rb#15 - def exec(source, options = T.unsafe(nil)); end - - private - - # source://execjs//lib/execjs/mini_racer_runtime.rb#40 - def strip_functions!(value); end - - # source://execjs//lib/execjs/mini_racer_runtime.rb#65 - def translate; end -end - -# source://execjs//lib/execjs/module.rb#7 -class ExecJS::ProgramError < ::ExecJS::Error; end - -# source://execjs//lib/execjs/ruby_rhino_runtime.rb#5 -class ExecJS::RubyRhinoRuntime < ::ExecJS::Runtime - # @return [Boolean] - # - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#95 - def available?; end - - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#91 - def name; end -end - -# source://execjs//lib/execjs/ruby_rhino_runtime.rb#6 -class ExecJS::RubyRhinoRuntime::Context < ::ExecJS::Runtime::Context - # @return [Context] a new instance of Context - # - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#7 - def initialize(runtime, source = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#35 - def call(properties, *args); end - - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#25 - def eval(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#17 - def exec(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#45 - def unbox(value); end - - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#66 - def wrap_error(e); end - - private - - # Disables bytecode compiling which limits you to 64K scripts - # - # source://execjs//lib/execjs/ruby_rhino_runtime.rb#82 - def fix_memory_limit!(context); end -end - -# Abstract base class for runtimes -# -# source://execjs//lib/execjs/runtime.rb#3 -class ExecJS::Runtime - # @raise [NotImplementedError] - # @return [Boolean] - # - # source://execjs//lib/execjs/runtime.rb#76 - def available?; end - - # source://execjs//lib/execjs/runtime.rb#64 - def compile(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/runtime.rb#40 - def context_class; end - - # @return [Boolean] - # - # source://execjs//lib/execjs/runtime.rb#72 - def deprecated?; end - - # source://execjs//lib/execjs/runtime.rb#54 - def eval(source, options = T.unsafe(nil)); end - - # source://execjs//lib/execjs/runtime.rb#44 - def exec(source, options = T.unsafe(nil)); end - - # @raise [NotImplementedError] - # - # source://execjs//lib/execjs/runtime.rb#36 - def name; end -end - -# source://execjs//lib/execjs/runtime.rb#4 -class ExecJS::Runtime::Context - # @return [Context] a new instance of Context - # - # source://execjs//lib/execjs/runtime.rb#5 - def initialize(runtime, source = T.unsafe(nil), options = T.unsafe(nil)); end - - # Evaluates +source+ as an expression (which should be of type - # +function+), and calls the function with the given arguments. - # The function will be evaluated with the global object as +this+. - # - # context.call("function(a, b) { return a + b }", 1, 1) # => 2 - # context.call("CoffeeScript.compile", "1 + 1") - # - # @raise [NotImplementedError] - # - # source://execjs//lib/execjs/runtime.rb#31 - def call(source, *args); end - - # Evaluates the +source+ as an expression and returns the result. - # - # context.eval("1") # => 1 - # context.eval("return 1") # => Raises SyntaxError - # - # @raise [NotImplementedError] - # - # source://execjs//lib/execjs/runtime.rb#21 - def eval(source, options = T.unsafe(nil)); end - - # Evaluates the +source+ in the context of a function body and returns the - # returned value. - # - # context.exec("return 1") # => 1 - # context.exec("1") # => nil (nothing was returned) - # - # @raise [NotImplementedError] - # - # source://execjs//lib/execjs/runtime.rb#13 - def exec(source, options = T.unsafe(nil)); end -end - -# source://execjs//lib/execjs/module.rb#6 -class ExecJS::RuntimeError < ::ExecJS::Error; end - -# source://execjs//lib/execjs/module.rb#8 -class ExecJS::RuntimeUnavailable < ::ExecJS::RuntimeError; end - -# source://execjs//lib/execjs/runtimes.rb#10 -module ExecJS::Runtimes - class << self - # source://execjs//lib/execjs/runtimes.rb#66 - def autodetect; end - - # source://execjs//lib/execjs/runtimes.rb#72 - def best_available; end - - # source://execjs//lib/execjs/runtimes.rb#76 - def from_environment; end - - # source://execjs//lib/execjs/runtimes.rb#88 - def names; end - - # source://execjs//lib/execjs/runtimes.rb#92 - def runtimes; end - end -end - -# source://execjs//lib/execjs/runtimes.rb#28 -ExecJS::Runtimes::Bun = T.let(T.unsafe(nil), ExecJS::ExternalRuntime) - -# source://execjs//lib/execjs/runtimes.rb#11 -ExecJS::Runtimes::Disabled = T.let(T.unsafe(nil), ExecJS::DisabledRuntime) - -# source://execjs//lib/execjs/runtimes.rb#13 -ExecJS::Runtimes::Duktape = T.let(T.unsafe(nil), ExecJS::DuktapeRuntime) - -# source://execjs//lib/execjs/runtimes.rb#17 -ExecJS::Runtimes::GraalJS = T.let(T.unsafe(nil), ExecJS::GraalJSRuntime) - -# source://execjs//lib/execjs/runtimes.rb#51 -ExecJS::Runtimes::JScript = T.let(T.unsafe(nil), ExecJS::ExternalRuntime) - -# source://execjs//lib/execjs/runtimes.rb#35 -ExecJS::Runtimes::JavaScriptCore = T.let(T.unsafe(nil), ExecJS::ExternalRuntime) - -# source://execjs//lib/execjs/runtimes.rb#19 -ExecJS::Runtimes::MiniRacer = T.let(T.unsafe(nil), ExecJS::MiniRacerRuntime) - -# source://execjs//lib/execjs/runtimes.rb#21 -ExecJS::Runtimes::Node = T.let(T.unsafe(nil), ExecJS::ExternalRuntime) - -# source://execjs//lib/execjs/runtimes.rb#15 -ExecJS::Runtimes::RubyRhino = T.let(T.unsafe(nil), ExecJS::RubyRhinoRuntime) - -# source://execjs//lib/execjs/runtimes.rb#44 -ExecJS::Runtimes::SpiderMonkey = T.let(T.unsafe(nil), ExecJS::ExternalRuntime) - -# source://execjs//lib/execjs/runtimes.rb#44 -ExecJS::Runtimes::Spidermonkey = T.let(T.unsafe(nil), ExecJS::ExternalRuntime) - -# source://execjs//lib/execjs/runtimes.rb#58 -ExecJS::Runtimes::V8 = T.let(T.unsafe(nil), ExecJS::ExternalRuntime) - -# source://execjs//lib/execjs/version.rb#2 -ExecJS::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/faker@3.3.1.rbi b/sorbet/rbi/gems/faker@3.4.2.rbi similarity index 98% rename from sorbet/rbi/gems/faker@3.3.1.rbi rename to sorbet/rbi/gems/faker@3.4.2.rbi index a59b7461..2ce3497d 100644 --- a/sorbet/rbi/gems/faker@3.3.1.rbi +++ b/sorbet/rbi/gems/faker@3.4.2.rbi @@ -8,7 +8,6 @@ # source://faker//lib/helpers/base58.rb#3 module Faker include ::Faker::Deprecator - extend ::Faker::Deprecator end # source://faker//lib/faker/default/address.rb#4 @@ -1382,7 +1381,7 @@ class Faker::Books::Lovecraft < ::Faker::Base # @param random_sentences_to_add [Integer] # @return [String] # - # source://faker//lib/faker/books/lovecraft.rb#192 + # source://faker//lib/faker/books/lovecraft.rb#191 def paragraph(sentence_count: T.unsafe(nil), random_sentences_to_add: T.unsafe(nil)); end # @example @@ -1394,7 +1393,7 @@ class Faker::Books::Lovecraft < ::Faker::Base # @param characters [Integer] Number of characters to generate in the paragraph # @return [String] # - # source://faker//lib/faker/books/lovecraft.rb#239 + # source://faker//lib/faker/books/lovecraft.rb#238 def paragraph_by_chars(characters: T.unsafe(nil)); end # Produces a array of random paragraphs @@ -1415,7 +1414,7 @@ class Faker::Books::Lovecraft < ::Faker::Base # @param number [Integer] Number of paragraphs to generate # @return [Array] # - # source://faker//lib/faker/books/lovecraft.rb#218 + # source://faker//lib/faker/books/lovecraft.rb#217 def paragraphs(number: T.unsafe(nil)); end # Produces a random sentence @@ -1458,7 +1457,7 @@ class Faker::Books::Lovecraft < ::Faker::Base # @param number [Integer] Number of sentences to generate # @return [Array] # - # source://faker//lib/faker/books/lovecraft.rb#165 + # source://faker//lib/faker/books/lovecraft.rb#164 def sentences(number: T.unsafe(nil)); end # Produces the name of a tome @@ -3216,7 +3215,7 @@ class Faker::Crypto < ::Faker::Base # Faker::Crypto.md5 #=> "6b5ed240042e8a65c55ddb826c3408e6" # @return [String] # - # source://faker//lib/faker/default/crypto.rb#17 + # source://faker//lib/faker/default/crypto.rb#26 def md5; end # Produces a SHA1 hash. @@ -3225,7 +3224,7 @@ class Faker::Crypto < ::Faker::Base # Faker::Crypto.sha1 #=> "4e99e31c51eef8b2d290e709f757f92e558a503f" # @return [String] # - # source://faker//lib/faker/default/crypto.rb#30 + # source://faker//lib/faker/default/crypto.rb#39 def sha1; end # Produces a SHA256 hash. @@ -3234,7 +3233,7 @@ class Faker::Crypto < ::Faker::Base # Faker::Crypto.sha256 #=> "51e4dbb424cd9db1ec5fb989514f2a35652ececef33f21c8dd1fd61bb8e3929d" # @return [String] # - # source://faker//lib/faker/default/crypto.rb#43 + # source://faker//lib/faker/default/crypto.rb#52 def sha256; end # Produces a SHA512 hash. @@ -3243,7 +3242,7 @@ class Faker::Crypto < ::Faker::Base # Faker::Crypto.sha512 #=> "7b9fc82a6642874833d01b74a7b4fae3d15373193b55cfba47327f8f0afdc8d0ea155b58639a03a887009ef997dab8dd8d36767620d430f6e787e5996e26da80" # @return [String] # - # source://faker//lib/faker/default/crypto.rb#56 + # source://faker//lib/faker/default/crypto.rb#65 def sha512; end end end @@ -3559,6 +3558,20 @@ module Faker::Deprecator # # source://faker//lib/helpers/deprecator.rb#9 def included(base); end + + # source://faker//lib/helpers/deprecator.rb#44 + def skip; end + + # source://faker//lib/helpers/deprecator.rb#48 + def skip=(value); end + + # source://faker//lib/helpers/deprecator.rb#32 + def skip_warning; end + + # @return [Boolean] + # + # source://faker//lib/helpers/deprecator.rb#40 + def skip_warning?; end end end @@ -6152,7 +6165,7 @@ class Faker::Hipster < ::Faker::Base # @param random_sentences_to_add [Boolean] Specifies the number of random sentences to add # @return [String] # - # source://faker//lib/faker/default/hipster.rb#109 + # source://faker//lib/faker/default/hipster.rb#108 def paragraph(sentence_count: T.unsafe(nil), supplemental: T.unsafe(nil), random_sentences_to_add: T.unsafe(nil)); end # Produces a random hipster paragraph by characters. @@ -6164,7 +6177,7 @@ class Faker::Hipster < ::Faker::Base # @param supplemental [Boolean] Specifies if the words are supplemental # @return [String] # - # source://faker//lib/faker/default/hipster.rb#146 + # source://faker//lib/faker/default/hipster.rb#145 def paragraph_by_chars(characters: T.unsafe(nil), supplemental: T.unsafe(nil)); end # Produces random hipster paragraphs. @@ -6177,7 +6190,7 @@ class Faker::Hipster < ::Faker::Base # @param supplemental [Boolean] Specifies if the words are supplemental # @return [Array] # - # source://faker//lib/faker/default/hipster.rb#126 + # source://faker//lib/faker/default/hipster.rb#125 def paragraphs(number: T.unsafe(nil), supplemental: T.unsafe(nil)); end # Produces a random hipster sentence. @@ -6196,7 +6209,7 @@ class Faker::Hipster < ::Faker::Base # @param open_compounds_allowed [Boolean] Specifies if the generated sentence can contain words having additional spaces # @return [String] # - # source://faker//lib/faker/default/hipster.rb#68 + # source://faker//lib/faker/default/hipster.rb#67 def sentence(word_count: T.unsafe(nil), supplemental: T.unsafe(nil), random_words_to_add: T.unsafe(nil), open_compounds_allowed: T.unsafe(nil)); end # Produces random hipster sentences. @@ -6209,7 +6222,7 @@ class Faker::Hipster < ::Faker::Base # @param supplemental [Boolean] Specifies if the words are supplemental # @return [Array] # - # source://faker//lib/faker/default/hipster.rb#85 + # source://faker//lib/faker/default/hipster.rb#84 def sentences(number: T.unsafe(nil), supplemental: T.unsafe(nil)); end # Produces a random hipster word. @@ -6556,7 +6569,7 @@ class Faker::Internet < ::Faker::Base # @param urlsafe [Boolean] Toggles charset to '-' and '_' instead of '+' and '/'. # @return [String] # - # source://faker//lib/faker/default/internet.rb#523 + # source://faker//lib/faker/default/internet.rb#526 def base64(length: T.unsafe(nil), padding: T.unsafe(nil), urlsafe: T.unsafe(nil)); end # Generate Web Crawler's user agents @@ -6568,7 +6581,7 @@ class Faker::Internet < ::Faker::Base # @param vendor [String] Name of vendor, supported vendors are googlebot, bingbot, duckduckbot, baiduspider, yandexbot # @return [String] # - # source://faker//lib/faker/default/internet.rb#485 + # source://faker//lib/faker/default/internet.rb#488 def bot_user_agent(vendor: T.unsafe(nil)); end # Generates random token @@ -6578,7 +6591,7 @@ class Faker::Internet < ::Faker::Base # @example # Faker::Internet.device_token #=> "749f535671cf6b34d8e794d212d00c703b96274e07161b18b082d0d70ef1052f" # - # source://faker//lib/faker/default/internet.rb#452 + # source://faker//lib/faker/default/internet.rb#455 def device_token; end # Returns the domain name @@ -6594,7 +6607,7 @@ class Faker::Internet < ::Faker::Base # @param domain [String] # @return [String] # - # source://faker//lib/faker/default/internet.rb#188 + # source://faker//lib/faker/default/internet.rb#191 def domain_name(subdomain: T.unsafe(nil), domain: T.unsafe(nil)); end # Returns the domain suffix e.g. com, org, co, biz, info etc. @@ -6606,7 +6619,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.domain_suffix(safe: true) #=> "test" # @return [String] # - # source://faker//lib/faker/default/internet.rb#247 + # source://faker//lib/faker/default/internet.rb#250 def domain_suffix(safe: T.unsafe(nil)); end # Returns the domain word for internet @@ -6615,7 +6628,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.domain_word #=> "senger" # @return [String] # - # source://faker//lib/faker/default/internet.rb#234 + # source://faker//lib/faker/default/internet.rb#237 def domain_word; end # Returns the email address @@ -6643,7 +6656,7 @@ class Faker::Internet < ::Faker::Base # @param string [String] # @return [String] # - # source://faker//lib/faker/default/internet.rb#223 + # source://faker//lib/faker/default/internet.rb#226 def fix_umlauts(string: T.unsafe(nil)); end # Returns the IPv4 address @@ -6652,7 +6665,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.ip_v4_address #=> "97.117.128.93" # @return [String] # - # source://faker//lib/faker/default/internet.rb#278 + # source://faker//lib/faker/default/internet.rb#281 def ip_v4_address; end # Returns Ipv4 address with CIDR, range from 1 to 31 @@ -6662,7 +6675,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.ip_v4_cidr #=> "129.162.99.74/24" # @return [String] # - # source://faker//lib/faker/default/internet.rb#381 + # source://faker//lib/faker/default/internet.rb#384 def ip_v4_cidr; end # Returns Ipv6 address @@ -6671,7 +6684,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.ip_v6_address #=> "7754:76d4:c7aa:7646:ea68:1abb:4055:4343" # @return [String] # - # source://faker//lib/faker/default/internet.rb#392 + # source://faker//lib/faker/default/internet.rb#395 def ip_v6_address; end # Returns Ipv6 address with CIDR, range between 1 to 127 @@ -6680,7 +6693,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.ip_v6_cidr #=> "beca:9b99:4bb6:9712:af2f:516f:8507:96e1/99" # @return [String] # - # source://faker//lib/faker/default/internet.rb#403 + # source://faker//lib/faker/default/internet.rb#406 def ip_v6_cidr; end # Returns the MAC address @@ -6692,7 +6705,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.mac_address(prefix: 'aa:44') #=> "aa:44:30:88:6e:95" # @return [String] # - # source://faker//lib/faker/default/internet.rb#265 + # source://faker//lib/faker/default/internet.rb#268 def mac_address(prefix: T.unsafe(nil)); end # Produces a randomized string of characters suitable for passwords @@ -6714,7 +6727,7 @@ class Faker::Internet < ::Faker::Base # @raise [ArgumentError] # @return [String] # - # source://faker//lib/faker/default/internet.rb#123 + # source://faker//lib/faker/default/internet.rb#126 def password(min_length: T.unsafe(nil), max_length: T.unsafe(nil), mix_case: T.unsafe(nil), special_characters: T.unsafe(nil)); end # Returns the private IPv4 address @@ -6723,7 +6736,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.private_ip_v4_address #=> "127.120.80.42" # @return [String] # - # source://faker//lib/faker/default/internet.rb#290 + # source://faker//lib/faker/default/internet.rb#293 def private_ip_v4_address; end # Returns lambda to check if address passed is private or not @@ -6733,7 +6746,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.private_net_checker.call("148.120.80.42") #=> false # @return [Lambda] # - # source://faker//lib/faker/default/internet.rb#338 + # source://faker//lib/faker/default/internet.rb#341 def private_net_checker; end # Returns the private network regular expressions @@ -6742,7 +6755,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.private_nets_regex #=> [/^10\./, /^100\.(6[4-9]|[7-9]\d|1[0-1]\d|12[0-7])\./, /^127\./, /^169\.254\./, /^172\.(1[6-9]|2\d|3[0-1])\./, /^192\.0\.0\./, /^192\.168\./, /^198\.(1[8-9])\./] # @return [Array] # - # source://faker//lib/faker/default/internet.rb#317 + # source://faker//lib/faker/default/internet.rb#320 def private_nets_regex; end # Returns the public IPv4 address @@ -6751,7 +6764,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.public_ip_v4_address #=> "127.120.80.42" # @return [String] # - # source://faker//lib/faker/default/internet.rb#301 + # source://faker//lib/faker/default/internet.rb#304 def public_ip_v4_address; end # Returns lambda function to check address passed is reserved or not @@ -6761,7 +6774,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.reserved_net_checker.call('192.88.199.255') #=> false # @return [Lambda] # - # source://faker//lib/faker/default/internet.rb#369 + # source://faker//lib/faker/default/internet.rb#372 def reserved_net_checker; end # Returns the reserved network regular expressions @@ -6770,7 +6783,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.reserved_nets_regex #=> [/^0\./, /^192\.0\.2\./, /^192\.88\.99\./, /^198\.51\.100\./, /^203\.0\.113\./, /^(22[4-9]|23\d)\./, /^(24\d|25[0-5])\./] # @return [Array] # - # source://faker//lib/faker/default/internet.rb#349 + # source://faker//lib/faker/default/internet.rb#352 def reserved_nets_regex; end # Returns unique string in URL @@ -6784,7 +6797,7 @@ class Faker::Internet < ::Faker::Base # @param glue [String] Separator to add between words passed, default used are '-' or '_' # @return [String] # - # source://faker//lib/faker/default/internet.rb#438 + # source://faker//lib/faker/default/internet.rb#441 def slug(words: T.unsafe(nil), glue: T.unsafe(nil)); end # Returns URL @@ -6799,7 +6812,7 @@ class Faker::Internet < ::Faker::Base # @param scheme [String] # @return [String] # - # source://faker//lib/faker/default/internet.rb#421 + # source://faker//lib/faker/default/internet.rb#424 def url(host: T.unsafe(nil), path: T.unsafe(nil), scheme: T.unsafe(nil)); end # Produces a randomized hash of internet user details @@ -6810,7 +6823,7 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.user('username', 'email', 'password') #=> { username: 'alexie', email: 'gayle@kohler.test', password: 'DtEf9P8wS31iMyC' } # @return [hash] # - # source://faker//lib/faker/default/internet.rb#546 + # source://faker//lib/faker/default/internet.rb#549 def user(*args); end # Generates the random browser identifier @@ -6823,7 +6836,7 @@ class Faker::Internet < ::Faker::Base # @param vendor [String] Name of vendor, supported vendors are aol, chrome, firefox, internet_explorer, netscape, opera, safari # @return [String] # - # source://faker//lib/faker/default/internet.rb#468 + # source://faker//lib/faker/default/internet.rb#471 def user_agent(vendor: T.unsafe(nil)); end # Returns the username @@ -6860,15 +6873,15 @@ class Faker::Internet < ::Faker::Base # Faker::Internet.uuid #=> "8a6cdd40-6d78-4fdb-912b-190e3057197f" # @return [String] # - # source://faker//lib/faker/default/internet.rb#498 + # source://faker//lib/faker/default/internet.rb#501 def uuid; end private - # source://faker//lib/faker/default/internet.rb#570 + # source://faker//lib/faker/default/internet.rb#573 def construct_email(local_part, domain_name); end - # source://faker//lib/faker/default/internet.rb#557 + # source://faker//lib/faker/default/internet.rb#560 def sanitize_email_local_part(local_part); end end end @@ -7575,10 +7588,10 @@ class Faker::Kpop < ::Faker::Base end end -# source://faker//lib/faker/locations/australia.rb#6 +# source://faker//lib/faker/locations/australia.rb#4 class Faker::Locations; end -# source://faker//lib/faker/locations/australia.rb#7 +# source://faker//lib/faker/locations/australia.rb#5 class Faker::Locations::Australia < ::Faker::Base class << self # Produces an Australian animal @@ -7588,7 +7601,7 @@ class Faker::Locations::Australia < ::Faker::Base # #=> "Dingo" # @return [String] # - # source://faker//lib/faker/locations/australia.rb#32 + # source://faker//lib/faker/locations/australia.rb#30 def animal; end # Produces a location in Australia @@ -7598,7 +7611,7 @@ class Faker::Locations::Australia < ::Faker::Base # #=> "Sydney" # @return [String] # - # source://faker//lib/faker/locations/australia.rb#19 + # source://faker//lib/faker/locations/australia.rb#17 def location; end # Produces an Australian State or Territory @@ -7608,7 +7621,7 @@ class Faker::Locations::Australia < ::Faker::Base # #=> "New South Wales" # @return [String] # - # source://faker//lib/faker/locations/australia.rb#45 + # source://faker//lib/faker/locations/australia.rb#43 def state; end end end @@ -9826,13 +9839,18 @@ class Faker::NationalHealthService < ::Faker::Base class << self # Produces a random British NHS number. # + # The NHS sets aside a range of numbers from 999 000 0000 to 999 999 9999 + # for test purposes. + # # @example - # Faker::NationalHealthService.british_number #=> "403 958 5577" + # Faker::NationalHealthService.british_number #=> "999 464 0232" # @return [String] # - # source://faker//lib/faker/default/national_health_service.rb#15 + # source://faker//lib/faker/default/national_health_service.rb#18 def british_number; end + private + # Produces a random British NHS number's check digit. # # @example @@ -9840,7 +9858,7 @@ class Faker::NationalHealthService < ::Faker::Base # @param number [Integer] Specifies the NHS number the check digit belongs to. # @return [Integer] # - # source://faker//lib/faker/default/national_health_service.rb#37 + # source://faker//lib/faker/default/national_health_service.rb#42 def check_digit(number: T.unsafe(nil)); end end end @@ -13347,7 +13365,7 @@ class Faker::Types < ::Faker::Base # Faker::Types.character #=> "n" # @return [String] # - # source://faker//lib/faker/default/types.rb#37 + # source://faker//lib/faker/default/types.rb#35 def character; end # Produces a random complex hash with random keys and values where the values may include other hashes and arrays. @@ -13359,7 +13377,7 @@ class Faker::Types < ::Faker::Base # @param number [Integer] Specifies the number of key-value pairs. # @return [Hash] # - # source://faker//lib/faker/default/types.rb#87 + # source://faker//lib/faker/default/types.rb#85 def complex_rb_hash(number: T.unsafe(nil)); end # Produces a random complex type that's either a String, an Integer, an array or a hash. @@ -13368,7 +13386,7 @@ class Faker::Types < ::Faker::Base # Faker::Types.random_complex_type #=> 1 or "a" or "bob" or {foo: "bar"} # @return [String, Integer] # - # source://faker//lib/faker/default/types.rb#139 + # source://faker//lib/faker/default/types.rb#137 def random_complex_type; end # Produces a random type that's either a String or an Integer. @@ -13377,7 +13395,7 @@ class Faker::Types < ::Faker::Base # Faker::Types.random_type #=> 1 or "a" or "bob" # @return [String, Integer] # - # source://faker//lib/faker/default/types.rb#120 + # source://faker//lib/faker/default/types.rb#118 def random_type; end # Produces a random array. @@ -13389,7 +13407,7 @@ class Faker::Types < ::Faker::Base # @param len [Integer] Specifies the number of elements in the array. # @return [Array] # - # source://faker//lib/faker/default/types.rb#103 + # source://faker//lib/faker/default/types.rb#101 def rb_array(len: T.unsafe(nil), type: T.unsafe(nil)); end # Produces a random hash with random keys and values. @@ -13401,7 +13419,7 @@ class Faker::Types < ::Faker::Base # @param number [Integer] Specifies the number of key-value pairs. # @return [Hash] # - # source://faker//lib/faker/default/types.rb#66 + # source://faker//lib/faker/default/types.rb#64 def rb_hash(number: T.unsafe(nil), type: T.unsafe(nil)); end # Produces a random integer. @@ -13410,7 +13428,7 @@ class Faker::Types < ::Faker::Base # Faker::Types.rb_integer #=> 1 # @return [Integer] # - # source://faker//lib/faker/default/types.rb#50 + # source://faker//lib/faker/default/types.rb#48 def rb_integer(from: T.unsafe(nil), to: T.unsafe(nil)); end # Produces a random String created from word (Faker::Lorem.word) @@ -13424,7 +13442,7 @@ class Faker::Types < ::Faker::Base private - # source://faker//lib/faker/default/types.rb#156 + # source://faker//lib/faker/default/types.rb#154 def titleize(word); end end end @@ -13540,7 +13558,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.car_options #=> ["DVD System", "MP3 (Single Disc)", "Tow Package", "CD (Multi Disc)", "Cassette Player", "Bucket Seats", "Cassette Player", "Leather Interior", "AM/FM Stereo", "Third Row Seats"] # @return [Array] # - # source://faker//lib/faker/default/vehicle.rb#206 + # source://faker//lib/faker/default/vehicle.rb#207 def car_options; end # Produces a random car type. @@ -13549,7 +13567,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.car_type #=> "Sedan" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#177 + # source://faker//lib/faker/default/vehicle.rb#178 def car_type; end # Produces a random vehicle color. @@ -13558,7 +13576,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.color #=> "Red" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#125 + # source://faker//lib/faker/default/vehicle.rb#126 def color; end # Produces a random vehicle door count. @@ -13568,7 +13586,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.door_count #=> 3 # @return [Integer] # - # source://faker//lib/faker/default/vehicle.rb#233 + # source://faker//lib/faker/default/vehicle.rb#234 def door_count; end # Produces a random vehicle door count. @@ -13578,7 +13596,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.door_count #=> 3 # @return [Integer] # - # source://faker//lib/faker/default/vehicle.rb#233 + # source://faker//lib/faker/default/vehicle.rb#234 def doors; end # Produces a random vehicle drive type. @@ -13587,7 +13605,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.drive_type #=> "4x2/2-wheel drive" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#151 + # source://faker//lib/faker/default/vehicle.rb#152 def drive_type; end # Produces a random engine cylinder count. @@ -13597,7 +13615,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.engine #=> 4 # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#191 + # source://faker//lib/faker/default/vehicle.rb#192 def engine; end # Produces a random engine cylinder count. @@ -13607,7 +13625,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.engine #=> 4 # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#191 + # source://faker//lib/faker/default/vehicle.rb#192 def engine_size; end # Produces a random vehicle fuel type. @@ -13616,7 +13634,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.fuel_type #=> "Diesel" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#164 + # source://faker//lib/faker/default/vehicle.rb#165 def fuel_type; end # Produces a random mileage/kilometrage for a vehicle. @@ -13630,10 +13648,10 @@ class Faker::Vehicle < ::Faker::Base # @param max [Integer] Specific maximum limit for mileage generation. # @return [Integer] # - # source://faker//lib/faker/default/vehicle.rb#265 + # source://faker//lib/faker/default/vehicle.rb#266 def kilometrage(min: T.unsafe(nil), max: T.unsafe(nil)); end - # source://faker//lib/faker/default/vehicle.rb#282 + # source://faker//lib/faker/default/vehicle.rb#283 def license_plate(state_abbreviation: T.unsafe(nil)); end # Produces a random vehicle make. @@ -13642,7 +13660,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.make #=> "Honda" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#67 + # source://faker//lib/faker/default/vehicle.rb#68 def make; end # Produces a random vehicle make and model. @@ -13651,18 +13669,27 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.make_and_model #=> "Dodge Charger" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#97 + # source://faker//lib/faker/default/vehicle.rb#98 def make_and_model; end # Produces a random vehicle manufacturer. # # @example - # Faker::Vehicle.manufacture #=> "Lamborghini" + # Faker::Vehicle.manufacturer #=> "Lamborghini" # @return [String] # # source://faker//lib/faker/default/vehicle.rb#54 def manufacture; end + # Produces a random vehicle manufacturer. + # + # @example + # Faker::Vehicle.manufacturer #=> "Lamborghini" + # @return [String] + # + # source://faker//lib/faker/default/vehicle.rb#54 + def manufacturer; end + # Produces a random mileage/kilometrage for a vehicle. # # @example @@ -13674,7 +13701,7 @@ class Faker::Vehicle < ::Faker::Base # @param max [Integer] Specific maximum limit for mileage generation. # @return [Integer] # - # source://faker//lib/faker/default/vehicle.rb#265 + # source://faker//lib/faker/default/vehicle.rb#266 def mileage(min: T.unsafe(nil), max: T.unsafe(nil)); end # Produces a random vehicle model. @@ -13685,10 +13712,10 @@ class Faker::Vehicle < ::Faker::Base # @param make_of_model [String] Specific valid vehicle make. # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#82 + # source://faker//lib/faker/default/vehicle.rb#83 def model(make_of_model: T.unsafe(nil)); end - # source://faker//lib/faker/default/vehicle.rb#298 + # source://faker//lib/faker/default/vehicle.rb#299 def singapore_license_plate; end # Produces a random list of standard specs. @@ -13697,7 +13724,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.standard_specs #=> ["Full-size spare tire w/aluminum alloy wheel", "Back-up camera", "Carpeted cargo area", "Silver accent IP trim finisher -inc: silver shifter finisher", "Back-up camera", "Water-repellent windshield & front door glass", "Floor carpeting"] # @return [Array] # - # source://faker//lib/faker/default/vehicle.rb#219 + # source://faker//lib/faker/default/vehicle.rb#220 def standard_specs; end # Produces a random vehicle style. @@ -13706,7 +13733,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.style #=> "ESi" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#112 + # source://faker//lib/faker/default/vehicle.rb#113 def style; end # Produces a random vehicle transmission. @@ -13715,7 +13742,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.transmission #=> "Automanual" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#138 + # source://faker//lib/faker/default/vehicle.rb#139 def transmission; end # Produces a car version @@ -13724,7 +13751,7 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.version #=> "40 TFSI Premium" # @return [String] # - # source://faker//lib/faker/default/vehicle.rb#313 + # source://faker//lib/faker/default/vehicle.rb#314 def version; end # Produces a random vehicle VIN number. @@ -13742,12 +13769,12 @@ class Faker::Vehicle < ::Faker::Base # Faker::Vehicle.year #=> 2008 # @return [Integer] # - # source://faker//lib/faker/default/vehicle.rb#247 + # source://faker//lib/faker/default/vehicle.rb#248 def year; end private - # source://faker//lib/faker/default/vehicle.rb#319 + # source://faker//lib/faker/default/vehicle.rb#320 def singapore_checksum(plate_number); end end end diff --git a/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi b/sorbet/rbi/gems/faraday-net_http@3.3.0.rbi similarity index 73% rename from sorbet/rbi/gems/faraday-net_http@3.1.0.rbi rename to sorbet/rbi/gems/faraday-net_http@3.3.0.rbi index 6f42313f..e9e9a4f4 100644 --- a/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi +++ b/sorbet/rbi/gems/faraday-net_http@3.3.0.rbi @@ -8,81 +8,81 @@ # source://faraday-net_http//lib/faraday/adapter/net_http.rb#12 module Faraday class << self - # source://faraday/2.9.0/lib/faraday.rb#55 + # source://faraday/2.11.0/lib/faraday.rb#55 def default_adapter; end - # source://faraday/2.9.0/lib/faraday.rb#102 + # source://faraday/2.11.0/lib/faraday.rb#102 def default_adapter=(adapter); end - # source://faraday/2.9.0/lib/faraday.rb#59 + # source://faraday/2.11.0/lib/faraday.rb#59 def default_adapter_options; end - # source://faraday/2.9.0/lib/faraday.rb#59 + # source://faraday/2.11.0/lib/faraday.rb#59 def default_adapter_options=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#120 + # source://faraday/2.11.0/lib/faraday.rb#120 def default_connection; end - # source://faraday/2.9.0/lib/faraday.rb#62 + # source://faraday/2.11.0/lib/faraday.rb#62 def default_connection=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#127 + # source://faraday/2.11.0/lib/faraday.rb#127 def default_connection_options; end - # source://faraday/2.9.0/lib/faraday.rb#134 + # source://faraday/2.11.0/lib/faraday.rb#134 def default_connection_options=(options); end - # source://faraday/2.9.0/lib/faraday.rb#67 + # source://faraday/2.11.0/lib/faraday.rb#67 def ignore_env_proxy; end - # source://faraday/2.9.0/lib/faraday.rb#67 + # source://faraday/2.11.0/lib/faraday.rb#67 def ignore_env_proxy=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#46 + # source://faraday/2.11.0/lib/faraday.rb#46 def lib_path; end - # source://faraday/2.9.0/lib/faraday.rb#46 + # source://faraday/2.11.0/lib/faraday.rb#46 def lib_path=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#96 + # source://faraday/2.11.0/lib/faraday.rb#96 def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://faraday/2.9.0/lib/faraday.rb#107 + # source://faraday/2.11.0/lib/faraday.rb#107 def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end - # source://faraday/2.9.0/lib/faraday.rb#42 + # source://faraday/2.11.0/lib/faraday.rb#42 def root_path; end - # source://faraday/2.9.0/lib/faraday.rb#42 + # source://faraday/2.11.0/lib/faraday.rb#42 def root_path=(_arg0); end private - # source://faraday/2.9.0/lib/faraday.rb#143 + # source://faraday/2.11.0/lib/faraday.rb#143 def method_missing(name, *args, &block); end end end # source://faraday-net_http//lib/faraday/adapter/net_http.rb#13 class Faraday::Adapter - # source://faraday/2.9.0/lib/faraday/adapter.rb#28 + # source://faraday/2.11.0/lib/faraday/adapter.rb#28 def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end - # source://faraday/2.9.0/lib/faraday/adapter.rb#55 + # source://faraday/2.11.0/lib/faraday/adapter.rb#55 def call(env); end - # source://faraday/2.9.0/lib/faraday/adapter.rb#50 + # source://faraday/2.11.0/lib/faraday/adapter.rb#50 def close; end - # source://faraday/2.9.0/lib/faraday/adapter.rb#41 + # source://faraday/2.11.0/lib/faraday/adapter.rb#41 def connection(env); end private - # source://faraday/2.9.0/lib/faraday/adapter.rb#85 + # source://faraday/2.11.0/lib/faraday/adapter.rb#85 def request_timeout(type, options); end - # source://faraday/2.9.0/lib/faraday/adapter.rb#62 + # source://faraday/2.11.0/lib/faraday/adapter.rb#62 def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end end @@ -96,44 +96,44 @@ class Faraday::Adapter::NetHttp < ::Faraday::Adapter # source://faraday-net_http//lib/faraday/adapter/net_http.rb#43 def build_connection(env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#63 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#62 def call(env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#51 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#50 def net_http_connection(env); end private - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#148 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#151 def configure_request(http, req); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#131 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#130 def configure_ssl(http, ssl); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#79 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#78 def create_request(env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#185 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#188 def encoded_body(http_response); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#95 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#94 def perform_request(http, env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#109 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#108 def request_with_wrapped_block(http, env, &block); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#121 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#120 def save_http_response(env, http_response); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#168 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#171 def ssl_cert_store(ssl); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#175 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#178 def ssl_verify_mode(ssl); end # @return [Boolean] # - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#197 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#200 def verify_hostname_enabled?(http, ssl); end end diff --git a/sorbet/rbi/gems/faraday@2.9.0.rbi b/sorbet/rbi/gems/faraday@2.11.0.rbi similarity index 95% rename from sorbet/rbi/gems/faraday@2.9.0.rbi rename to sorbet/rbi/gems/faraday@2.11.0.rbi index 7b6bee79..7ac718bc 100644 --- a/sorbet/rbi/gems/faraday@2.9.0.rbi +++ b/sorbet/rbi/gems/faraday@2.11.0.rbi @@ -587,7 +587,7 @@ class Faraday::Connection # replace the query values # @return [URI] # - # source://faraday//lib/faraday/connection.rb#470 + # source://faraday//lib/faraday/connection.rb#478 def build_exclusive_url(url = T.unsafe(nil), params = T.unsafe(nil), params_encoder = T.unsafe(nil)); end # Creates and configures the request object. @@ -596,7 +596,7 @@ class Faraday::Connection # @return [Faraday::Request] # @yield [Faraday::Request] if block given # - # source://faraday//lib/faraday/connection.rb#453 + # source://faraday//lib/faraday/connection.rb#461 def build_request(method); end # Takes a relative url for a request and combines it with the defaults @@ -616,7 +616,7 @@ class Faraday::Connection # @param url [String, URI, nil] # @param extra_params [Hash] # - # source://faraday//lib/faraday/connection.rb#407 + # source://faraday//lib/faraday/connection.rb#415 def build_url(url = T.unsafe(nil), extra_params = T.unsafe(nil)); end # @return [Faraday::RackBuilder] Builder for this Connection. @@ -653,10 +653,10 @@ class Faraday::Connection # @api private # @return [Faraday::Connection] # - # source://faraday//lib/faraday/connection.rb#490 + # source://faraday//lib/faraday/connection.rb#499 def dup; end - # source://faraday//lib/faraday/connection.rb#533 + # source://faraday//lib/faraday/connection.rb#542 def find_default_proxy; end # source://faraday//lib/faraday/connection.rb#199 @@ -691,7 +691,7 @@ class Faraday::Connection # @yield a block to execute multiple requests. # # source://faraday//lib/faraday/connection.rb#317 - def in_parallel(manager = T.unsafe(nil)); end + def in_parallel(manager = T.unsafe(nil), &block); end # Determine if this Faraday::Connection can make parallel requests. # @@ -742,7 +742,7 @@ class Faraday::Connection # @param value [String] # @return [String] the new path prefix # - # source://faraday//lib/faraday/connection.rb#382 + # source://faraday//lib/faraday/connection.rb#390 def path_prefix=(value); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -763,13 +763,13 @@ class Faraday::Connection # # @param new_value [Object] # - # source://faraday//lib/faraday/connection.rb#333 + # source://faraday//lib/faraday/connection.rb#341 def proxy=(new_value); end - # source://faraday//lib/faraday/connection.rb#541 + # source://faraday//lib/faraday/connection.rb#550 def proxy_for_request(url); end - # source://faraday//lib/faraday/connection.rb#513 + # source://faraday//lib/faraday/connection.rb#522 def proxy_from_env(url); end # source://faraday//lib/faraday/connection.rb#279 @@ -785,12 +785,12 @@ class Faraday::Connection # # @param method [Symbol] HTTP method. # @param url [String, URI, nil] String or URI to access. - # @param body [String, nil] The request body that will eventually be converted to - # a string. + # @param body [String, Hash, Array, nil] The request body that will eventually be converted to + # a string; middlewares can be used to support more complex types. # @param headers [Hash, nil] unencoded HTTP header key/value pairs. # @return [Faraday::Response] # - # source://faraday//lib/faraday/connection.rb#431 + # source://faraday//lib/faraday/connection.rb#439 def run_request(method, url, body, headers); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -799,7 +799,7 @@ class Faraday::Connection # source://forwardable/1.3.3/forwardable.rb#231 def scheme=(*args, **_arg1, &block); end - # source://faraday//lib/faraday/connection.rb#371 + # source://faraday//lib/faraday/connection.rb#379 def set_basic_auth(user, password); end # @return [Hash] SSL options. @@ -809,7 +809,7 @@ class Faraday::Connection # @return [Boolean] # - # source://faraday//lib/faraday/connection.rb#551 + # source://faraday//lib/faraday/connection.rb#560 def support_parallel?(adapter); end # source://faraday//lib/faraday/connection.rb#199 @@ -836,7 +836,7 @@ class Faraday::Connection # @param url [String, URI] # @param encoder [Object] # - # source://faraday//lib/faraday/connection.rb#356 + # source://faraday//lib/faraday/connection.rb#364 def url_prefix=(url, encoder = T.unsafe(nil)); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -851,7 +851,7 @@ class Faraday::Connection # @yieldparam username [String] any username from URI # @yieldparam password [String] any password from URI # - # source://faraday//lib/faraday/connection.rb#507 + # source://faraday//lib/faraday/connection.rb#516 def with_uri_credentials(uri); end end @@ -1290,6 +1290,11 @@ end # source://faraday//lib/faraday/error.rb#104 class Faraday::ForbiddenError < ::Faraday::ClientError; end +# Raised by Faraday::Middleware and subclasses when invalid default_options are used +# +# source://faraday//lib/faraday/error.rb#163 +class Faraday::InitializationError < ::Faraday::Error; end + # source://faraday//lib/faraday/logging/formatter.rb#6 module Faraday::Logging; end @@ -1381,32 +1386,66 @@ Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array) # Middleware is the basic base class of any Faraday middleware. # -# source://faraday//lib/faraday/middleware.rb#5 +# source://faraday//lib/faraday/middleware.rb#7 class Faraday::Middleware extend ::Faraday::MiddlewareRegistry # @return [Middleware] a new instance of Middleware # - # source://faraday//lib/faraday/middleware.rb#10 + # source://faraday//lib/faraday/middleware.rb#15 def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end # Returns the value of attribute app. # - # source://faraday//lib/faraday/middleware.rb#8 + # source://faraday//lib/faraday/middleware.rb#10 def app; end - # source://faraday//lib/faraday/middleware.rb#15 + # source://faraday//lib/faraday/middleware.rb#54 def call(env); end - # source://faraday//lib/faraday/middleware.rb#25 + # source://faraday//lib/faraday/middleware.rb#64 def close; end # Returns the value of attribute options. # - # source://faraday//lib/faraday/middleware.rb#8 + # source://faraday//lib/faraday/middleware.rb#10 def options; end + + class << self + # default_options attr_reader that initializes class instance variable + # with the values of any Faraday::Middleware defaults, and merges with + # subclass defaults + # + # source://faraday//lib/faraday/middleware.rb#39 + def default_options; end + + # Faraday::Middleware::default_options= allows user to set default options at the Faraday::Middleware + # class level. + # + # my_app/config/initializers/my_faraday_middleware.rb + # + # Faraday::Response::RaiseError.default_options = { include_request: false } + # + # @example Set the Faraday::Response::RaiseError option, `include_request` to `false` + # + # source://faraday//lib/faraday/middleware.rb#29 + def default_options=(options = T.unsafe(nil)); end + + private + + # @raise [Faraday::InitializationError] + # + # source://faraday//lib/faraday/middleware.rb#45 + def validate_default_options(options); end + end end +# source://faraday//lib/faraday/middleware.rb#12 +Faraday::Middleware::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://faraday//lib/faraday/middleware.rb#13 +Faraday::Middleware::LOCK = T.let(T.unsafe(nil), Thread::Mutex) + # Adds the ability for other modules to register and lookup # middleware classes. # @@ -2430,10 +2469,10 @@ end # # source://faraday//lib/faraday/response/raise_error.rb#7 class Faraday::Response::RaiseError < ::Faraday::Middleware - # source://faraday//lib/faraday/response/raise_error.rb#13 + # source://faraday//lib/faraday/response/raise_error.rb#15 def on_complete(env); end - # source://faraday//lib/faraday/response/raise_error.rb#75 + # source://faraday//lib/faraday/response/raise_error.rb#77 def query_params(env); end # Returns a hash of response data with the following keys: @@ -2445,13 +2484,16 @@ class Faraday::Response::RaiseError < ::Faraday::Middleware # The `request` key is omitted when the middleware is explicitly # configured with the option `include_request: false`. # - # source://faraday//lib/faraday/response/raise_error.rb#52 + # source://faraday//lib/faraday/response/raise_error.rb#54 def response_values(env); end end # source://faraday//lib/faraday/response/raise_error.rb#9 Faraday::Response::RaiseError::ClientErrorStatuses = T.let(T.unsafe(nil), Range) +# source://faraday//lib/faraday/response/raise_error.rb#13 +Faraday::Response::RaiseError::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) + # source://faraday//lib/faraday/response/raise_error.rb#10 Faraday::Response::RaiseError::ServerErrorStatuses = T.let(T.unsafe(nil), Range) @@ -2462,7 +2504,7 @@ class Faraday::SSLError < ::Faraday::Error; end # SSL-related options. # -# source://faraday//lib/faraday/options/ssl_options.rb#50 +# source://faraday//lib/faraday/options/ssl_options.rb#53 class Faraday::SSLOptions < ::Faraday::Options # @return [String] CA file def ca_file; end @@ -2488,6 +2530,12 @@ class Faraday::SSLOptions < ::Faraday::Options # @return [OpenSSL::X509::Certificate] certificate (Excon only) def certificate=(_); end + # @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D) + def ciphers; end + + # @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D) + def ciphers=(_); end + # @return [String, OpenSSL::X509::Certificate] client certificate def client_cert; end @@ -2500,7 +2548,7 @@ class Faraday::SSLOptions < ::Faraday::Options # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key def client_key=(_); end - # source://faraday//lib/faraday/options/ssl_options.rb#61 + # source://faraday//lib/faraday/options/ssl_options.rb#64 def disable?; end # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D) @@ -2527,7 +2575,7 @@ class Faraday::SSLOptions < ::Faraday::Options # @return [Boolean] whether to verify SSL certificates or not def verify=(_); end - # source://faraday//lib/faraday/options/ssl_options.rb#56 + # source://faraday//lib/faraday/options/ssl_options.rb#59 def verify?; end # @return [Integer] maximum depth for the certificate chain verification @@ -2544,7 +2592,7 @@ class Faraday::SSLOptions < ::Faraday::Options # during the handshake or not (see https://github.com/ruby/openssl/pull/60) def verify_hostname=(_); end - # source://faraday//lib/faraday/options/ssl_options.rb#66 + # source://faraday//lib/faraday/options/ssl_options.rb#69 def verify_hostname?; end # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) @@ -2774,17 +2822,20 @@ class Faraday::Utils::Headers < ::Hash # source://faraday//lib/faraday/utils/headers.rb#71 def delete(key); end + # source://faraday//lib/faraday/utils/headers.rb#80 + def dig(key, *rest); end + # source://faraday//lib/faraday/utils/headers.rb#65 - def fetch(key, *args, &block); end + def fetch(key, *_arg1, **_arg2, &_arg3); end # @return [Boolean] # - # source://faraday//lib/faraday/utils/headers.rb#80 + # source://faraday//lib/faraday/utils/headers.rb#86 def has_key?(key); end # @return [Boolean] # - # source://faraday//lib/faraday/utils/headers.rb#80 + # source://faraday//lib/faraday/utils/headers.rb#86 def include?(key); end # source://faraday//lib/faraday/utils/headers.rb#26 @@ -2792,44 +2843,44 @@ class Faraday::Utils::Headers < ::Hash # @return [Boolean] # - # source://faraday//lib/faraday/utils/headers.rb#80 + # source://faraday//lib/faraday/utils/headers.rb#86 def key?(key); end # @return [Boolean] # - # source://faraday//lib/faraday/utils/headers.rb#80 + # source://faraday//lib/faraday/utils/headers.rb#86 def member?(key); end - # source://faraday//lib/faraday/utils/headers.rb#95 + # source://faraday//lib/faraday/utils/headers.rb#101 def merge(other); end - # source://faraday//lib/faraday/utils/headers.rb#88 + # source://faraday//lib/faraday/utils/headers.rb#94 def merge!(other); end - # source://faraday//lib/faraday/utils/headers.rb#111 + # source://faraday//lib/faraday/utils/headers.rb#117 def parse(header_string); end - # source://faraday//lib/faraday/utils/headers.rb#100 + # source://faraday//lib/faraday/utils/headers.rb#106 def replace(other); end - # source://faraday//lib/faraday/utils/headers.rb#107 + # source://faraday//lib/faraday/utils/headers.rb#113 def to_hash; end - # source://faraday//lib/faraday/utils/headers.rb#88 + # source://faraday//lib/faraday/utils/headers.rb#94 def update(other); end protected # Returns the value of attribute names. # - # source://faraday//lib/faraday/utils/headers.rb#129 + # source://faraday//lib/faraday/utils/headers.rb#135 def names; end private # Join multiple values with a comma. # - # source://faraday//lib/faraday/utils/headers.rb#134 + # source://faraday//lib/faraday/utils/headers.rb#140 def add_parsed(key, value); end # on dup/clone, we need to duplicate @names hash diff --git a/sorbet/rbi/gems/ffi@1.16.3.rbi b/sorbet/rbi/gems/ffi@1.16.3.rbi deleted file mode 100644 index 18ef46d9..00000000 --- a/sorbet/rbi/gems/ffi@1.16.3.rbi +++ /dev/null @@ -1,2137 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - - def custom_typedefs; end - - class << self - # Add a definition type to type definitions. - # - # The type definition is local per Ractor. - # - # @param old [Type, DataConverter, Symbol] type definition used by {FFI.find_type} - # @param add [Symbol] new type definition's name to add - # @return [Type] - # - # source://ffi//lib/ffi/types.rb#57 - def add_typedef(old, add); end - - # @see FFI::LastError.error - # - # source://ffi//lib/ffi/errno.rb#34 - def errno; end - - # @see FFI::LastError.error= - # - # source://ffi//lib/ffi/errno.rb#40 - def errno=(error); end - - # Find a type in +type_map+ ({FFI::TypeDefs}, by default) from - # a type objet, a type name (symbol). If +name+ is a {DataConverter}, - # a new {Type::Mapped} is created. - # - # @param name [Type, DataConverter, Symbol] - # @param type_map [Hash] if nil, {FFI::TypeDefs} is used - # @return [Type] - # - # source://ffi//lib/ffi/types.rb#76 - def find_type(name, type_map = T.unsafe(nil)); end - - # This is for FFI internal use only. - # - # source://ffi//lib/ffi/compat.rb#35 - def make_shareable(obj); end - - # Transform a generic library name to a platform library name - # - # @example - # # Linux - # FFI.map_library_name 'c' # -> "libc.so.6" - # FFI.map_library_name 'jpeg' # -> "libjpeg.so" - # # Windows - # FFI.map_library_name 'c' # -> "msvcrt.dll" - # FFI.map_library_name 'jpeg' # -> "jpeg.dll" - # @param lib [String, FFI::LibraryPath] library name or LibraryPath object - # @return [String] library name formatted for current platform - # - # source://ffi//lib/ffi/library.rb#46 - def map_library_name(lib); end - - # Get +type+ size, in bytes. - # - # @param type +type+ is an instance of class accepted by {FFI.find_type} - # @return [Numeric] - # - # source://ffi//lib/ffi/types.rb#200 - def type_size(type); end - - # Add a definition type to type definitions. - # - # The type definition is local per Ractor. - # - # @param old [Type, DataConverter, Symbol] type definition used by {FFI.find_type} - # @param add [Symbol] new type definition's name to add - # @return [Type] - # - # source://ffi//lib/ffi/types.rb#51 - def typedef(old, add); end - - private - - # source://ffi//lib/ffi/types.rb#62 - def __typedef(old, add); end - - # Truffleruby and JRuby don't support Ractor so far. - # So they don't need separation between builtin and custom types. - def custom_typedefs; end - end -end - -# source://ffi//lib/ffi/abstract_memory.rb#33 -class FFI::AbstractMemory - def [](_arg0); end - def __copy_from__(_arg0, _arg1); end - def clear; end - def freeze; end - def get(_arg0, _arg1); end - def get_array_of_char(_arg0, _arg1); end - def get_array_of_double(_arg0, _arg1); end - def get_array_of_float(_arg0, _arg1); end - def get_array_of_float32(_arg0, _arg1); end - def get_array_of_float64(_arg0, _arg1); end - def get_array_of_int(_arg0, _arg1); end - def get_array_of_int16(_arg0, _arg1); end - def get_array_of_int32(_arg0, _arg1); end - def get_array_of_int64(_arg0, _arg1); end - def get_array_of_int8(_arg0, _arg1); end - def get_array_of_long(_arg0, _arg1); end - def get_array_of_long_long(_arg0, _arg1); end - def get_array_of_pointer(_arg0, _arg1); end - def get_array_of_short(_arg0, _arg1); end - def get_array_of_string(*_arg0); end - def get_array_of_uchar(_arg0, _arg1); end - def get_array_of_uint(_arg0, _arg1); end - def get_array_of_uint16(_arg0, _arg1); end - def get_array_of_uint32(_arg0, _arg1); end - def get_array_of_uint64(_arg0, _arg1); end - def get_array_of_uint8(_arg0, _arg1); end - def get_array_of_ulong(_arg0, _arg1); end - def get_array_of_ulong_long(_arg0, _arg1); end - def get_array_of_ushort(_arg0, _arg1); end - def get_bytes(_arg0, _arg1); end - def get_char(_arg0); end - def get_double(_arg0); end - def get_float(_arg0); end - def get_float32(_arg0); end - def get_float64(_arg0); end - def get_int(_arg0); end - def get_int16(_arg0); end - def get_int32(_arg0); end - def get_int64(_arg0); end - def get_int8(_arg0); end - def get_long(_arg0); end - def get_long_long(_arg0); end - def get_pointer(_arg0); end - def get_short(_arg0); end - def get_string(*_arg0); end - def get_uchar(_arg0); end - def get_uint(_arg0); end - def get_uint16(_arg0); end - def get_uint32(_arg0); end - def get_uint64(_arg0); end - def get_uint8(_arg0); end - def get_ulong(_arg0); end - def get_ulong_long(_arg0); end - def get_ushort(_arg0); end - def put(_arg0, _arg1, _arg2); end - def put_array_of_char(_arg0, _arg1); end - def put_array_of_double(_arg0, _arg1); end - def put_array_of_float(_arg0, _arg1); end - def put_array_of_float32(_arg0, _arg1); end - def put_array_of_float64(_arg0, _arg1); end - def put_array_of_int(_arg0, _arg1); end - def put_array_of_int16(_arg0, _arg1); end - def put_array_of_int32(_arg0, _arg1); end - def put_array_of_int64(_arg0, _arg1); end - def put_array_of_int8(_arg0, _arg1); end - def put_array_of_long(_arg0, _arg1); end - def put_array_of_long_long(_arg0, _arg1); end - def put_array_of_pointer(_arg0, _arg1); end - def put_array_of_short(_arg0, _arg1); end - def put_array_of_uchar(_arg0, _arg1); end - def put_array_of_uint(_arg0, _arg1); end - def put_array_of_uint16(_arg0, _arg1); end - def put_array_of_uint32(_arg0, _arg1); end - def put_array_of_uint64(_arg0, _arg1); end - def put_array_of_uint8(_arg0, _arg1); end - def put_array_of_ulong(_arg0, _arg1); end - def put_array_of_ulong_long(_arg0, _arg1); end - def put_array_of_ushort(_arg0, _arg1); end - def put_bytes(*_arg0); end - def put_char(_arg0, _arg1); end - def put_double(_arg0, _arg1); end - def put_float(_arg0, _arg1); end - def put_float32(_arg0, _arg1); end - def put_float64(_arg0, _arg1); end - def put_int(_arg0, _arg1); end - def put_int16(_arg0, _arg1); end - def put_int32(_arg0, _arg1); end - def put_int64(_arg0, _arg1); end - def put_int8(_arg0, _arg1); end - def put_long(_arg0, _arg1); end - def put_long_long(_arg0, _arg1); end - def put_pointer(_arg0, _arg1); end - def put_short(_arg0, _arg1); end - def put_string(_arg0, _arg1); end - def put_uchar(_arg0, _arg1); end - def put_uint(_arg0, _arg1); end - def put_uint16(_arg0, _arg1); end - def put_uint32(_arg0, _arg1); end - def put_uint64(_arg0, _arg1); end - def put_uint8(_arg0, _arg1); end - def put_ulong(_arg0, _arg1); end - def put_ulong_long(_arg0, _arg1); end - def put_ushort(_arg0, _arg1); end - def read_array_of_char(_arg0); end - def read_array_of_double(_arg0); end - def read_array_of_float(_arg0); end - def read_array_of_int(_arg0); end - def read_array_of_int16(_arg0); end - def read_array_of_int32(_arg0); end - def read_array_of_int64(_arg0); end - def read_array_of_int8(_arg0); end - def read_array_of_long(_arg0); end - def read_array_of_long_long(_arg0); end - def read_array_of_pointer(_arg0); end - def read_array_of_short(_arg0); end - def read_array_of_uchar(_arg0); end - def read_array_of_uint(_arg0); end - def read_array_of_uint16(_arg0); end - def read_array_of_uint32(_arg0); end - def read_array_of_uint64(_arg0); end - def read_array_of_uint8(_arg0); end - def read_array_of_ulong(_arg0); end - def read_array_of_ulong_long(_arg0); end - def read_array_of_ushort(_arg0); end - def read_bytes(_arg0); end - def read_char; end - def read_double; end - def read_float; end - def read_int; end - def read_int16; end - def read_int32; end - def read_int64; end - def read_int8; end - def read_long; end - def read_long_long; end - def read_pointer; end - def read_short; end - def read_uchar; end - def read_uint; end - def read_uint16; end - def read_uint32; end - def read_uint64; end - def read_uint8; end - def read_ulong; end - def read_ulong_long; end - def read_ushort; end - def size; end - - # Return +true+ if +self+ has a size limit. - # - # @return [Boolean] - # - # source://ffi//lib/ffi/abstract_memory.rb#40 - def size_limit?; end - - def total; end - def type_size; end - def write_array_of_char(_arg0); end - def write_array_of_double(_arg0); end - def write_array_of_float(_arg0); end - def write_array_of_int(_arg0); end - def write_array_of_int16(_arg0); end - def write_array_of_int32(_arg0); end - def write_array_of_int64(_arg0); end - def write_array_of_int8(_arg0); end - def write_array_of_long(_arg0); end - def write_array_of_long_long(_arg0); end - def write_array_of_pointer(_arg0); end - def write_array_of_short(_arg0); end - def write_array_of_uchar(_arg0); end - def write_array_of_uint(_arg0); end - def write_array_of_uint16(_arg0); end - def write_array_of_uint32(_arg0); end - def write_array_of_uint64(_arg0); end - def write_array_of_uint8(_arg0); end - def write_array_of_ulong(_arg0); end - def write_array_of_ulong_long(_arg0); end - def write_array_of_ushort(_arg0); end - def write_bytes(*_arg0); end - def write_char(_arg0); end - def write_double(_arg0); end - def write_float(_arg0); end - def write_int(_arg0); end - def write_int16(_arg0); end - def write_int32(_arg0); end - def write_int64(_arg0); end - def write_int8(_arg0); end - def write_long(_arg0); end - def write_long_long(_arg0); end - def write_pointer(_arg0); end - def write_short(_arg0); end - def write_uchar(_arg0); end - def write_uint(_arg0); end - def write_uint16(_arg0); end - def write_uint32(_arg0); end - def write_uint64(_arg0); end - def write_uint8(_arg0); end - def write_ulong(_arg0); end - def write_ulong_long(_arg0); end - def write_ushort(_arg0); end -end - -# source://ffi//lib/ffi/abstract_memory.rb#34 -FFI::AbstractMemory::LONG_MAX = T.let(T.unsafe(nil), Integer) - -class FFI::ArrayType < ::FFI::Type - def initialize(_arg0, _arg1); end - - def elem_type; end - def length; end -end - -# source://ffi//lib/ffi/autopointer.rb#33 -class FFI::AutoPointer < ::FFI::Pointer - extend ::FFI::DataConverter - - # @note The safest, and therefore preferred, calling - # idiom is to pass a Method as the second parameter. Example usage: - # - # class PointerHelper - # def self.release(pointer) - # ... - # end - # end - # - # p = AutoPointer.new(other_pointer, PointerHelper.method(:release)) - # - # The above code will cause PointerHelper#release to be invoked at GC time. - # @note The last calling idiom (only one parameter) is generally only - # going to be useful if you subclass {AutoPointer}, and override - # #release, which by default does nothing. - # @overload initialize - # @overload initialize - # @overload initialize - # @overload initialize - # @raise [TypeError] - # @return [AutoPointer] a new instance of AutoPointer - # - # source://ffi//lib/ffi/autopointer.rb#78 - def initialize(ptr, proc = T.unsafe(nil), &block); end - - # Set +autorelease+ property. See {Pointer Autorelease section at Pointer}. - # - # @param autorelease [Boolean] - # @raise [FrozenError] - # @return [Boolean] +autorelease+ - # - # source://ffi//lib/ffi/autopointer.rb#109 - def autorelease=(autorelease); end - - # Get +autorelease+ property. See {Pointer Autorelease section at Pointer}. - # - # @return [Boolean] +autorelease+ - # - # source://ffi//lib/ffi/autopointer.rb#116 - def autorelease?; end - - # Free the pointer. - # - # @return [nil] - # - # source://ffi//lib/ffi/autopointer.rb#102 - def free; end - - class << self - # Create a new AutoPointer. - # - # Override {DataConverter#from_native}. - # - # @overload self.from_native - # @return [AutoPointer] - # - # source://ffi//lib/ffi/autopointer.rb#183 - def from_native(val, ctx); end - - # Return native type of AutoPointer. - # - # Override {DataConverter#native_type}. - # - # @raise [RuntimeError] if class does not implement a +#release+ method - # @return [Type::POINTER] - # - # source://ffi//lib/ffi/autopointer.rb#169 - def native_type; end - end -end - -# A releaser is an object in charge of release an {AutoPointer}. -# -# @abstract Base class for {AutoPointer}'s releasers. -# -# All subclasses of Releaser should define a +#release(ptr)+ method. -# -# source://ffi//lib/ffi/autopointer.rb#124 -class FFI::AutoPointer::Releaser - # A new instance of Releaser. - # - # @param ptr [Pointer] - # @param proc [#call] - # @return [nil] - # - # source://ffi//lib/ffi/autopointer.rb#131 - def initialize(ptr, proc); end - - # Returns the value of attribute autorelease. - # - # source://ffi//lib/ffi/autopointer.rb#125 - def autorelease; end - - # Sets the attribute autorelease - # - # @param value the value to set the attribute autorelease to. - # - # source://ffi//lib/ffi/autopointer.rb#125 - def autorelease=(_arg0); end - - # Release pointer if +autorelease+ is set. - # - # @param args - # - # source://ffi//lib/ffi/autopointer.rb#150 - def call(*args); end - - # Free pointer. - # - # @return [nil] - # - # source://ffi//lib/ffi/autopointer.rb#139 - def free; end - - # Release +ptr+ by using Proc or Method defined at +ptr+ - # {AutoPointer#initialize initialization}. - # - # @param ptr [Pointer] - # @return [nil] - # - # source://ffi//lib/ffi/autopointer.rb#159 - def release(ptr); end -end - -# Represents a C enum whose values are power of 2 -# -# Contrary to classical enums, bitmask values are usually combined -# when used. -# -# @example -# enum { -# red = (1<<0), -# green = (1<<1), -# blue = (1<<2) -# } -# -# source://ffi//lib/ffi/enum.rb#184 -class FFI::Bitmask < ::FFI::Enum - # @overload initialize - # @overload initialize - # @return [Bitmask] a new instance of Bitmask - # - # source://ffi//lib/ffi/enum.rb#193 - def initialize(*args); end - - # Get a symbol list or a value from the bitmask - # - # @overload [] - # @overload [] - # @overload [] - # @overload [] - # @raise [ArgumentError] - # - # source://ffi//lib/ffi/enum.rb#237 - def [](*query); end - - # @param val [Integer] - # @param ctx unused - # @return [Array] list of symbol names corresponding to val, plus an optional remainder if some bits don't match any constant - # - # source://ffi//lib/ffi/enum.rb#289 - def from_native(val, ctx); end - - # Get the native value of a bitmask - # - # @overload to_native - # @overload to_native - # - # source://ffi//lib/ffi/enum.rb#261 - def to_native(query, ctx); end -end - -class FFI::Buffer < ::FFI::AbstractMemory - def initialize(*_arg0); end - - def +(_arg0); end - def inspect; end - def length; end - def order(*_arg0); end - def slice(_arg0, _arg1); end - - private - - def initialize_copy(_arg0); end - - class << self - def alloc_in(*_arg0); end - def alloc_inout(*_arg0); end - def alloc_out(*_arg0); end - def new_in(*_arg0); end - def new_inout(*_arg0); end - def new_out(*_arg0); end - end -end - -# source://ffi//lib/ffi/library.rb#34 -FFI::CURRENT_PROCESS = T.let(T.unsafe(nil), Object) - -FFI::CallbackInfo = FFI::FunctionType - -# This module is used to extend somes classes and give then a common API. -# -# Most of methods defined here must be overridden. -# -# source://ffi//lib/ffi/data_converter.rb#35 -module FFI::DataConverter - # Convert from a native type. - # - # source://ffi//lib/ffi/data_converter.rb#63 - def from_native(value, ctx); end - - # Get native type. - # - # @overload native_type - # @overload native_type - # - # source://ffi//lib/ffi/data_converter.rb#45 - def native_type(type = T.unsafe(nil)); end - - # Convert to a native type. - # - # source://ffi//lib/ffi/data_converter.rb#58 - def to_native(value, ctx); end -end - -# source://ffi//lib/ffi/dynamic_library.rb#32 -class FFI::DynamicLibrary - def initialize(_arg0, _arg1); end - - def find_function(_arg0); end - def find_symbol(_arg0); end - def find_variable(_arg0); end - def last_error; end - def name; end - - class << self - def last_error; end - def open(_arg0, _arg1); end - - private - - # source://ffi//lib/ffi/dynamic_library.rb#40 - def load_library(name, flags); end - - # source://ffi//lib/ffi/dynamic_library.rb#70 - def try_load(libname, flags, errors); end - end -end - -FFI::DynamicLibrary::RTLD_ALL_MASK = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_BINDING_MASK = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_DEEPBIND = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_FIRST = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_GLOBAL = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_LAZY = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_LOCAL = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_LOCATION_MASK = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_MEMBER = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_NODELETE = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_NOLOAD = T.let(T.unsafe(nil), Integer) -FFI::DynamicLibrary::RTLD_NOW = T.let(T.unsafe(nil), Integer) - -# source://ffi//lib/ffi/dynamic_library.rb#33 -FFI::DynamicLibrary::SEARCH_PATH = T.let(T.unsafe(nil), Array) - -# source://ffi//lib/ffi/dynamic_library.rb#38 -FFI::DynamicLibrary::SEARCH_PATH_MESSAGE = T.let(T.unsafe(nil), String) - -class FFI::DynamicLibrary::Symbol < ::FFI::Pointer - def inspect; end - - private - - def initialize_copy(_arg0); end -end - -# Represents a C enum. -# -# For a C enum: -# enum fruits { -# apple, -# banana, -# orange, -# pineapple -# }; -# are defined this vocabulary: -# * a _symbol_ is a word from the enumeration (ie. _apple_, by example); -# * a _value_ is the value of a symbol in the enumeration (by example, apple has value _0_ and banana _1_). -# -# source://ffi//lib/ffi/enum.rb#84 -class FFI::Enum - include ::FFI::DataConverter - - # @overload initialize - # @overload initialize - # @return [Enum] a new instance of Enum - # - # source://ffi//lib/ffi/enum.rb#97 - def initialize(*args); end - - # Get a symbol or a value from the enum. - # - # @overload [] - # @overload [] - # - # source://ffi//lib/ffi/enum.rb#134 - def [](query); end - - # Get a symbol or a value from the enum. - # - # @overload [] - # @overload [] - # - # source://ffi//lib/ffi/enum.rb#134 - def find(query); end - - # @param val - # @return symbol name if it exists for +val+. - # - # source://ffi//lib/ffi/enum.rb#168 - def from_native(val, ctx); end - - # Returns the value of attribute native_type. - # - # source://ffi//lib/ffi/enum.rb#88 - def native_type; end - - # Get the symbol map. - # - # @return [Hash] - # - # source://ffi//lib/ffi/enum.rb#146 - def symbol_map; end - - # @return [Array] enum symbol names - # - # source://ffi//lib/ffi/enum.rb#121 - def symbols; end - - # Returns the value of attribute tag. - # - # source://ffi//lib/ffi/enum.rb#87 - def tag; end - - # Get the symbol map. - # - # @return [Hash] - # - # source://ffi//lib/ffi/enum.rb#146 - def to_h; end - - # Get the symbol map. - # - # @return [Hash] - # - # source://ffi//lib/ffi/enum.rb#146 - def to_hash; end - - # @param val [Symbol, Integer, #to_int] - # @param ctx unused - # @return [Integer] value of a enum symbol - # - # source://ffi//lib/ffi/enum.rb#156 - def to_native(val, ctx); end -end - -# An instance of this class permits to manage {Enum}s. In fact, Enums is a collection of {Enum}s. -# -# source://ffi//lib/ffi/enum.rb#36 -class FFI::Enums - # @return [nil] - # - # source://ffi//lib/ffi/enum.rb#39 - def initialize; end - - # Add an {Enum} to the collection. - # - # @param enum [Enum] - # - # source://ffi//lib/ffi/enum.rb#47 - def <<(enum); end - - # @param symbol a symbol to find in merge symbol maps of all enums. - # @return a symbol - # - # source://ffi//lib/ffi/enum.rb#66 - def __map_symbol(symbol); end - - # Find a {Enum} in collection. - # - # @param query enum tag or part of an enum name - # @return [Enum] - # - # source://ffi//lib/ffi/enum.rb#56 - def find(query); end -end - -# source://ffi//lib/ffi/function.rb#32 -class FFI::Function < ::FFI::Pointer - include ::FFI::Function::RegisterAttach - - def initialize(*_arg0); end - - # source://ffi//lib/ffi/function.rb#57 - def attach(mod, name); end - - def autorelease; end - def autorelease=(_arg0); end - def autorelease?; end - def call(*_arg0); end - def free; end - - # Retrieve Array of parameter types - # - # This method returns an Array of FFI types accepted as function parameters. - # - # @return [Array] - # - # source://ffi//lib/ffi/function.rb#49 - def param_types; end - - # Retrieve the return type of the function - # - # This method returns FFI type returned by the function. - # - # @return [FFI::Type] - # - # source://ffi//lib/ffi/function.rb#40 - def return_type; end - - private - - def initialize_copy(_arg0); end - def type; end -end - -# Stash the Function in a module variable so it can be inspected by attached_functions. -# On CRuby it also ensures that it does not get garbage collected. -# -# source://ffi//lib/ffi/function.rb#56 -module FFI::Function::RegisterAttach - # source://ffi//lib/ffi/function.rb#57 - def attach(mod, name); end -end - -FFI::FunctionInfo = FFI::FunctionType - -class FFI::FunctionType < ::FFI::Type - def initialize(*_arg0); end - - def param_types; end - def return_type; end -end - -# This module implements a couple of class methods to play with IO. -# -# source://ffi//lib/ffi/io.rb#34 -module FFI::IO - class << self - # Synonym for IO::for_fd. - # - # @param fd [Integer] file decriptor - # @param mode [String] mode string - # @return [::IO] - # - # source://ffi//lib/ffi/io.rb#39 - def for_fd(fd, mode = T.unsafe(nil)); end - - # A version of IO#read that reads data from an IO and put then into a native buffer. - # - # This will be optimized at some future time to eliminate the double copy. - # - # @param io [#read] io to read from - # @param buf [AbstractMemory] destination for data read from +io+ - # @param len [nil, Numeric] maximul number of bytes to read from +io+. If +nil+, - # read until end of file. - # @return [Numeric] length really read, in bytes - # - # source://ffi//lib/ffi/io.rb#53 - def native_read(io, buf, len); end - end -end - -module FFI::LastError - private - - def error; end - def error=(_arg0); end - - class << self - def error; end - def error=(_arg0); end - end -end - -# This module is the base to use native functions. -# -# A basic usage may be: -# require 'ffi' -# -# module Hello -# extend FFI::Library -# ffi_lib FFI::Library::LIBC -# attach_function 'puts', [ :string ], :int -# end -# -# Hello.puts("Hello, World") -# -# source://ffi//lib/ffi/library.rb#72 -module FFI::Library - # Attach C function +func+ to this module. - # - # @option options - # @option options - # @option options - # @option options - # @overload attach_function - # @overload attach_function - # @param name [#to_s] name of ruby method to attach as - # @param func [#to_s] name of C function to attach - # @param args [Array] an array of types - # @param returns [Symbol] type of return value - # @param options [Hash] a customizable set of options - # @raise [FFI::NotFoundError] if +func+ cannot be found in the attached libraries (see {#ffi_lib}) - # @return [FFI::VariadicInvoker] - # - # source://ffi//lib/ffi/library.rb#177 - def attach_function(name, func, args, returns = T.unsafe(nil), options = T.unsafe(nil)); end - - # Attach C variable +cname+ to this module. - # - # @overload attach_variable - # @overload attach_variable - # @raise [FFI::NotFoundError] if +cname+ cannot be found in libraries - # @return [DynamicLibrary::Symbol] - # - # source://ffi//lib/ffi/library.rb#274 - def attach_variable(mname, a1, a2 = T.unsafe(nil)); end - - # Retrieve all attached functions and their function signature - # - # This method returns a Hash of method names of attached functions connected by #attach_function and the corresponding function type. - # The function type responds to #return_type and #param_types which return the FFI types of the function signature. - # - # @return [Hash< Symbol => [FFI::Function, FFI::VariadicInvoker] >] - # - # source://ffi//lib/ffi/library.rb#544 - def attached_functions; end - - # Retrieve all attached variables and their type - # - # This method returns a Hash of variable names and the corresponding type or variables connected by #attach_variable . - # - # @return [Hash< Symbol => ffi_type >] - # - # source://ffi//lib/ffi/library.rb#553 - def attached_variables; end - - # Create a new FFI::Bitmask - # - # @overload bitmask - # @overload bitmask - # @overload bitmask - # @overload bitmask - # @overload bitmask - # @overload bitmask - # @return [FFI::Bitmask] - # - # source://ffi//lib/ffi/library.rb#500 - def bitmask(*args); end - - # @overload callback - # @overload callback - # @raise [ArgumentError] - # @return [FFI::CallbackInfo] - # - # source://ffi//lib/ffi/library.rb#330 - def callback(*args); end - - # Create a new {FFI::Enum}. - # - # @overload enum - # @overload enum - # @overload enum - # @overload enum - # @overload enum - # @overload enum - # @return [FFI::Enum] - # - # source://ffi//lib/ffi/library.rb#457 - def enum(*args); end - - # Find an enum by name. - # - # @param name - # @return [FFI::Enum] - # - # source://ffi//lib/ffi/library.rb#507 - def enum_type(name); end - - # Find an enum by a symbol it contains. - # - # @param symbol - # @return [FFI::Enum] - # - # source://ffi//lib/ffi/library.rb#514 - def enum_value(symbol); end - - # Set the calling convention for {#attach_function} and {#callback} - # - # @note +:stdcall+ is typically used for attaching Windows API functions - # @param convention [Symbol] one of +:default+, +:stdcall+ - # @return [Symbol] the new calling convention - # @see http://en.wikipedia.org/wiki/Stdcall#stdcall - # - # source://ffi//lib/ffi/library.rb#106 - def ffi_convention(convention = T.unsafe(nil)); end - - # Load native libraries. - # - # @param names [Array] names of libraries to load - # @raise [LoadError] if a library cannot be opened - # @return [Array] - # - # source://ffi//lib/ffi/library.rb#89 - def ffi_lib(*names); end - - # Sets library flags for {#ffi_lib}. - # - # @example - # ffi_lib_flags(:lazy, :local) # => 5 - # @param flags [Symbol, …] (see {FlagsMap}) - # @return [Fixnum] the new value - # - # source://ffi//lib/ffi/library.rb#139 - def ffi_lib_flags(*flags); end - - # Get FFI libraries loaded using {#ffi_lib}. - # - # @raise [LoadError] if no libraries have been loaded (using {#ffi_lib}) - # @return [Array] array of currently loaded FFI libraries - # @see #ffi_lib - # - # source://ffi//lib/ffi/library.rb#116 - def ffi_libraries; end - - # Find a type definition. - # - # @param t [DataConverter, Type, Struct, Symbol] type to find - # @return [Type] - # - # source://ffi//lib/ffi/library.rb#521 - def find_type(t); end - - # Freeze all definitions of the module - # - # This freezes the module's definitions, so that it can be used in a Ractor. - # No further methods or variables can be attached and no further enums or typedefs can be created in this module afterwards. - # - # source://ffi//lib/ffi/library.rb#568 - def freeze; end - - # This function returns a list of possible names to lookup. - # - # @note Function names on windows may be decorated if they are using stdcall. See - # * http://en.wikipedia.org/wiki/Name_mangling#C_name_decoration_in_Microsoft_Windows - # * http://msdn.microsoft.com/en-us/library/zxk0tw93%28v=VS.100%29.aspx - # * http://en.wikibooks.org/wiki/X86_Disassembly/Calling_Conventions#STDCALL - # Note that decorated names can be overridden via def files. Also note that the - # windows api, although using, doesn't have decorated names. - # @param name [#to_s] function name - # @param arg_types [Array] function's argument types - # @return [Array] - # - # source://ffi//lib/ffi/library.rb#232 - def function_names(name, arg_types); end - - # Register or get an already registered type definition. - # - # To register a new type definition, +old+ should be a {FFI::Type}. +add+ - # is in this case the type definition. - # - # If +old+ is a {DataConverter}, a {Type::Mapped} is returned. - # - # If +old+ is +:enum+ - # * and +add+ is an +Array+, a call to {#enum} is made with +add+ as single parameter; - # * in others cases, +info+ is used to create a named enum. - # - # If +old+ is a key for type map, #typedef get +old+ type definition. - # - # @param old [DataConverter, Symbol, Type] - # @param add [Symbol] - # @param info [Symbol] - # @return [FFI::Enum, FFI::Type] - # - # source://ffi//lib/ffi/library.rb#374 - def typedef(old, add, info = T.unsafe(nil)); end - - private - - # Generic enum builder - # @param [Class] klass can be one of FFI::Enum or FFI::Bitmask - # @param args (see #enum or #bitmask) - # - # source://ffi//lib/ffi/library.rb#402 - def generic_enum(klass, *args); end - - class << self - # Test if extended object is a Module. If not, raise RuntimeError. - # - # @param mod extended object - # @raise [RuntimeError] if +mod+ is not a Module - # @return [nil] - # - # source://ffi//lib/ffi/library.rb#80 - def extended(mod); end - end -end - -# source://ffi//lib/ffi/library.rb#73 -FFI::Library::CURRENT_PROCESS = T.let(T.unsafe(nil), Object) - -# Flags used in {#ffi_lib}. -# -# This map allows you to supply symbols to {#ffi_lib_flags} instead of -# the actual constants. -# -# source://ffi//lib/ffi/library.rb#125 -FFI::Library::FlagsMap = T.let(T.unsafe(nil), Hash) - -# source://ffi//lib/ffi/library.rb#74 -FFI::Library::LIBC = T.let(T.unsafe(nil), String) - -# Transform a generic library name and ABI number to a platform library name -# -# Example: -# module LibVips -# extend FFI::Library -# ffi_lib LibraryPath.new("vips", abi_number: 42) -# end -# -# This translates to the following library file names: -# libvips-42.dll on Windows -# libvips.so.42 on Linux -# libvips.42.dylib on Macos -# -# See https://packaging.ubuntu.com/html/libraries.html for more information about library naming. -# -# source://ffi//lib/ffi/library_path.rb#46 -class FFI::LibraryPath - # Build a new library path - # - # * name : The name of the library without file prefix or suffix. - # * abi_number : The ABI number of the library. - # * root : An optional base path prepended to the library name. - # - # @return [LibraryPath] a new instance of LibraryPath - # - # source://ffi//lib/ffi/library_path.rb#56 - def initialize(name, abi_number: T.unsafe(nil), root: T.unsafe(nil)); end - - # Returns the value of attribute abi_number. - # - # source://ffi//lib/ffi/library_path.rb#48 - def abi_number; end - - # source://ffi//lib/ffi/library_path.rb#78 - def full_name; end - - # Returns the value of attribute name. - # - # source://ffi//lib/ffi/library_path.rb#47 - def name; end - - # Returns the value of attribute root. - # - # source://ffi//lib/ffi/library_path.rb#49 - def root; end - - # source://ffi//lib/ffi/library_path.rb#100 - def to_s; end - - class << self - # source://ffi//lib/ffi/library_path.rb#62 - def wrap(value); end - end -end - -# FFI::ManagedStruct allows custom garbage-collection of your FFI::Structs. -# -# The typical use case would be when interacting with a library -# that has a nontrivial memory management design, such as a linked -# list or a binary tree. -# -# When the {Struct} instance is garbage collected, FFI::ManagedStruct will -# invoke the class's release() method during object finalization. -# -# @example Example usage: -# module MyLibrary -# ffi_lib "libmylibrary" -# attach_function :new_dlist, [], :pointer -# attach_function :destroy_dlist, [:pointer], :void -# end -# -# class DoublyLinkedList < FFI::ManagedStruct -# @@@ -# struct do |s| -# s.name 'struct dlist' -# s.include 'dlist.h' -# s.field :head, :pointer -# s.field :tail, :pointer -# end -# @@@ -# -# def self.release ptr -# MyLibrary.destroy_dlist(ptr) -# end -# end -# -# begin -# ptr = DoublyLinkedList.new(MyLibrary.new_dlist) -# # do something with the list -# end -# # struct is out of scope, and will be GC'd using DoublyLinkedList#release -# -# source://ffi//lib/ffi/managedstruct.rb#70 -class FFI::ManagedStruct < ::FFI::Struct - # A new instance of FFI::ManagedStruct. - # - # @overload initialize - # @overload initialize - # @raise [NoMethodError] - # @return [ManagedStruct] a new instance of ManagedStruct - # - # source://ffi//lib/ffi/managedstruct.rb#77 - def initialize(pointer = T.unsafe(nil)); end -end - -class FFI::MemoryPointer < ::FFI::Pointer - def initialize(*_arg0); end - - class << self - def from_string(_arg0); end - end -end - -FFI::NativeLibrary = FFI::DynamicLibrary -module FFI::NativeType; end -FFI::NativeType::BOOL = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::BUFFER_IN = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::BUFFER_INOUT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::BUFFER_OUT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::FLOAT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::FLOAT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::INT16 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::INT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::INT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::INT8 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::LONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::LONGDOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::POINTER = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::STRING = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::UINT16 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::UINT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::UINT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::UINT8 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::ULONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::VARARGS = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::NativeType::VOID = T.let(T.unsafe(nil), FFI::Type::Builtin) - -# Exception raised when a function is not found in libraries -# -# source://ffi//lib/ffi/library.rb#52 -class FFI::NotFoundError < ::LoadError - # @return [NotFoundError] a new instance of NotFoundError - # - # source://ffi//lib/ffi/library.rb#53 - def initialize(function, *libraries); end -end - -class FFI::NullPointerError < ::RuntimeError; end - -# This module defines different constants and class methods to play with -# various platforms. -# -# source://ffi//lib/ffi/platform.rb#39 -module FFI::Platform - class << self - # Test if current OS is a *BSD (include MAC) - # - # @return [Boolean] - # - # source://ffi//lib/ffi/platform.rb#158 - def bsd?; end - - # Test if current OS is +os+. - # - # @param os [String] - # @return [Boolean] - # - # source://ffi//lib/ffi/platform.rb#92 - def is_os(os); end - - # Test if current OS is Mac OS - # - # @return [Boolean] - # - # source://ffi//lib/ffi/platform.rb#170 - def mac?; end - - # Test if current OS is Solaris (Sun OS) - # - # @return [Boolean] - # - # source://ffi//lib/ffi/platform.rb#176 - def solaris?; end - - # Test if current OS is a unix OS - # - # @return [Boolean] - # - # source://ffi//lib/ffi/platform.rb#182 - def unix?; end - - # Test if current OS is Windows - # - # @return [Boolean] - # - # source://ffi//lib/ffi/platform.rb#164 - def windows?; end - end -end - -FFI::Platform::ADDRESS_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::ADDRESS_SIZE = T.let(T.unsafe(nil), Integer) - -# source://ffi//lib/ffi/platform.rb#65 -FFI::Platform::ARCH = T.let(T.unsafe(nil), String) - -FFI::Platform::BIG_ENDIAN = T.let(T.unsafe(nil), Integer) -FFI::Platform::BYTE_ORDER = T.let(T.unsafe(nil), Integer) - -# source://ffi//lib/ffi/platform.rb#111 -FFI::Platform::CONF_DIR = T.let(T.unsafe(nil), String) - -# source://ffi//lib/ffi/platform.rb#63 -FFI::Platform::CPU = T.let(T.unsafe(nil), String) - -FFI::Platform::DOUBLE_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::DOUBLE_SIZE = T.let(T.unsafe(nil), Integer) -FFI::Platform::FLOAT_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::FLOAT_SIZE = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT16_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT16_SIZE = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT32_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT32_SIZE = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT64_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT64_SIZE = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT8_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::INT8_SIZE = T.let(T.unsafe(nil), Integer) - -# source://ffi//lib/ffi/platform.rb#105 -FFI::Platform::IS_BSD = T.let(T.unsafe(nil), TrueClass) - -# source://ffi//lib/ffi/platform.rb#102 -FFI::Platform::IS_DRAGONFLYBSD = T.let(T.unsafe(nil), FalseClass) - -# source://ffi//lib/ffi/platform.rb#99 -FFI::Platform::IS_FREEBSD = T.let(T.unsafe(nil), FalseClass) - -# source://ffi//lib/ffi/platform.rb#96 -FFI::Platform::IS_GNU = T.let(T.unsafe(nil), T.untyped) - -# source://ffi//lib/ffi/platform.rb#97 -FFI::Platform::IS_LINUX = T.let(T.unsafe(nil), FalseClass) - -# source://ffi//lib/ffi/platform.rb#98 -FFI::Platform::IS_MAC = T.let(T.unsafe(nil), TrueClass) - -# source://ffi//lib/ffi/platform.rb#100 -FFI::Platform::IS_NETBSD = T.let(T.unsafe(nil), FalseClass) - -# source://ffi//lib/ffi/platform.rb#101 -FFI::Platform::IS_OPENBSD = T.let(T.unsafe(nil), FalseClass) - -# source://ffi//lib/ffi/platform.rb#103 -FFI::Platform::IS_SOLARIS = T.let(T.unsafe(nil), FalseClass) - -# source://ffi//lib/ffi/platform.rb#104 -FFI::Platform::IS_WINDOWS = T.let(T.unsafe(nil), FalseClass) - -# source://ffi//lib/ffi/platform.rb#136 -FFI::Platform::LIBC = T.let(T.unsafe(nil), String) - -# source://ffi//lib/ffi/platform.rb#115 -FFI::Platform::LIBPREFIX = T.let(T.unsafe(nil), String) - -# source://ffi//lib/ffi/platform.rb#124 -FFI::Platform::LIBSUFFIX = T.let(T.unsafe(nil), String) - -FFI::Platform::LITTLE_ENDIAN = T.let(T.unsafe(nil), Integer) -FFI::Platform::LONG_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::LONG_DOUBLE_ALIGN = T.let(T.unsafe(nil), Integer) -FFI::Platform::LONG_DOUBLE_SIZE = T.let(T.unsafe(nil), Integer) -FFI::Platform::LONG_SIZE = T.let(T.unsafe(nil), Integer) - -# 64-bit inodes -# -# source://ffi//lib/ffi/platform.rb#110 -FFI::Platform::NAME = T.let(T.unsafe(nil), String) - -# source://ffi//lib/ffi/platform.rb#40 -FFI::Platform::OS = T.let(T.unsafe(nil), String) - -# source://ffi//lib/ffi/platform.rb#61 -FFI::Platform::OSVERSION = T.let(T.unsafe(nil), Integer) - -# source://ffi//lib/ffi/platform.rb#35 -class FFI::PlatformError < ::LoadError; end - -# source://ffi//lib/ffi/pointer.rb#42 -class FFI::Pointer < ::FFI::AbstractMemory - def initialize(*_arg0); end - - def +(_arg0); end - def ==(_arg0); end - def address; end - def autorelease=(_arg0); end - def autorelease?; end - def free; end - def inspect; end - def null?; end - def order(*_arg0); end - - # Read pointer's contents as +type+ - # - # Same as: - # ptr.get(type, 0) - # - # @param type [Symbol, Type] of data to read - # @return [Object] - # - # source://ffi//lib/ffi/pointer.rb#152 - def read(type); end - - # Read an array of +type+ of length +length+. - # - # @example - # ptr.read_array_of_type(TYPE_UINT8, :read_uint8, 4) # -> [1, 2, 3, 4] - # @param type [Type] type of data to read from pointer's contents - # @param reader [Symbol] method to send to +self+ to read +type+ - # @param length [Numeric] - # @return [Array] - # - # source://ffi//lib/ffi/pointer.rb#114 - def read_array_of_type(type, reader, length); end - - # Read pointer's contents as a string, or the first +len+ bytes of the - # equivalent string if +len+ is not +nil+. - # - # @param len [nil, Numeric] length of string to return - # @return [String] - # - # source://ffi//lib/ffi/pointer.rb#57 - def read_string(len = T.unsafe(nil)); end - - # Read the first +len+ bytes of pointer's contents as a string. - # - # Same as: - # ptr.read_string(len) # with len not nil - # - # @param len [Numeric] length of string to return - # @return [String] - # - # source://ffi//lib/ffi/pointer.rb#72 - def read_string_length(len); end - - # Read pointer's contents as a string. - # - # Same as: - # ptr.read_string # with no len - # - # @return [String] - # - # source://ffi//lib/ffi/pointer.rb#81 - def read_string_to_null; end - - def slice(_arg0, _arg1); end - def to_i; end - - # @return [self] - # - # source://ffi//lib/ffi/pointer.rb#142 - def to_ptr; end - - def to_s; end - def type_size; end - - # Write +value+ of type +type+ to pointer's content - # - # Same as: - # ptr.put(type, 0) - # - # @param type [Symbol, Type] of data to read - # @param value [Object] to write - # @return [nil] - # - # source://ffi//lib/ffi/pointer.rb#163 - def write(type, value); end - - # Write +ary+ in pointer's contents as +type+. - # - # @example - # ptr.write_array_of_type(TYPE_UINT8, :put_uint8, [1, 2, 3 ,4]) - # @param type [Type] type of data to write to pointer's contents - # @param writer [Symbol] method to send to +self+ to write +type+ - # @param ary [Array] - # @return [self] - # - # source://ffi//lib/ffi/pointer.rb#132 - def write_array_of_type(type, writer, ary); end - - # Write +str+ in pointer's contents, or first +len+ bytes if - # +len+ is not +nil+. - # - # @param str [String] string to write - # @param len [Numeric] length of string to return - # @return [self] - # - # source://ffi//lib/ffi/pointer.rb#101 - def write_string(str, len = T.unsafe(nil)); end - - # Write +len+ first bytes of +str+ in pointer's contents. - # - # Same as: - # ptr.write_string(str, len) # with len not nil - # - # @param str [String] string to write - # @param len [Numeric] length of string to return - # @return [self] - # - # source://ffi//lib/ffi/pointer.rb#92 - def write_string_length(str, len); end - - private - - def initialize_copy(_arg0); end - - class << self - # Return the size of a pointer on the current platform, in bytes - # - # @return [Numeric] - # - # source://ffi//lib/ffi/pointer.rb#49 - def size; end - end -end - -FFI::Pointer::NULL = T.let(T.unsafe(nil), FFI::Pointer) - -# Pointer size -# -# source://ffi//lib/ffi/pointer.rb#45 -FFI::Pointer::SIZE = T.let(T.unsafe(nil), Integer) - -# This will convert a pointer to a Ruby string (just like `:string`), but -# also allow to work with the pointer itself. This is useful when you want -# a Ruby string already containing a copy of the data, but also the pointer -# to the data for you to do something with it, like freeing it, in case the -# library handed the memory off to the caller (Ruby-FFI). -# -# It's {typedef}'d as +:strptr+. -# -# source://ffi//lib/ffi/types.rb#182 -class FFI::StrPtrConverter - extend ::FFI::DataConverter - - class << self - # Returns a [ String, Pointer ] tuple so the C memory for the string can be freed - # - # @param val [Pointer] - # @param ctx not used - # @return [Array(String, Pointer)] - # - # source://ffi//lib/ffi/types.rb#190 - def from_native(val, ctx); end - end -end - -# source://ffi//lib/ffi/struct.rb#41 -class FFI::Struct - def initialize(*_arg0); end - - def [](_arg0); end - def []=(_arg0, _arg1); end - - # @return [Fixnum] Struct alignment - # - # source://ffi//lib/ffi/struct.rb#50 - def align; end - - # @return [Fixnum] Struct alignment - # - # source://ffi//lib/ffi/struct.rb#50 - def alignment; end - - # Clear the struct content. - # - # @return [self] - # - # source://ffi//lib/ffi/struct.rb#78 - def clear; end - - def layout; end - - # source://ffi//lib/ffi/struct.rb#61 - def members; end - - def null?; end - - # Get the offset of a field. - # - # @return [Numeric] - # - # source://ffi//lib/ffi/struct.rb#56 - def offset_of(name); end - - # Get an array of tuples (field name, offset of the field). - # - # @return [Array] Array - # - # source://ffi//lib/ffi/struct.rb#72 - def offsets; end - - def order(*_arg0); end - def pointer; end - - # Get struct size - # - # @return [Numeric] - # - # source://ffi//lib/ffi/struct.rb#45 - def size; end - - # Get {Pointer} to struct content. - # - # @return [AbstractMemory] - # - # source://ffi//lib/ffi/struct.rb#85 - def to_ptr; end - - # Get array of values from Struct fields. - # - # @return [Array] - # - # source://ffi//lib/ffi/struct.rb#67 - def values; end - - private - - def initialize_copy(_arg0); end - def layout=(_arg0); end - def pointer=(_arg0); end - - class << self - # @return [Fixnum] Struct alignment - # - # source://ffi//lib/ffi/struct.rb#104 - def alignment; end - - def alloc_in(*_arg0); end - def alloc_inout(*_arg0); end - def alloc_out(*_arg0); end - - # source://ffi//lib/ffi/struct.rb#165 - def auto_ptr; end - - # source://ffi//lib/ffi/struct.rb#143 - def by_ref(flags = T.unsafe(nil)); end - - # source://ffi//lib/ffi/struct.rb#139 - def by_value; end - - # source://ffi//lib/ffi/struct.rb#123 - def in; end - - # @overload layout - # @overload layout - # @return [StructLayout] - # - # source://ffi//lib/ffi/struct.rb#205 - def layout(*spec); end - - # source://ffi//lib/ffi/struct.rb#109 - def members; end - - def new_in(*_arg0); end - def new_inout(*_arg0); end - def new_out(*_arg0); end - - # Get the offset of a field. - # - # @return [Numeric] - # - # source://ffi//lib/ffi/struct.rb#119 - def offset_of(name); end - - # Get an array of tuples (field name, offset of the field). - # - # @return [Array] Array - # - # source://ffi//lib/ffi/struct.rb#114 - def offsets; end - - # source://ffi//lib/ffi/struct.rb#127 - def out; end - - # source://ffi//lib/ffi/struct.rb#131 - def ptr(flags = T.unsafe(nil)); end - - # Get struct size - # - # @return [Numeric] - # - # source://ffi//lib/ffi/struct.rb#91 - def size; end - - # set struct size - # - # @param size [Numeric] - # @raise [ArgumentError] - # @return [size] - # - # source://ffi//lib/ffi/struct.rb#98 - def size=(size); end - - # source://ffi//lib/ffi/struct.rb#135 - def val; end - - protected - - # source://ffi//lib/ffi/struct.rb#244 - def align(alignment = T.unsafe(nil)); end - - # source://ffi//lib/ffi/struct.rb#244 - def aligned(alignment = T.unsafe(nil)); end - - # source://ffi//lib/ffi/struct.rb#230 - def callback(params, ret); end - - # source://ffi//lib/ffi/struct.rb#249 - def enclosing_module; end - - # source://ffi//lib/ffi/struct.rb#261 - def find_field_type(type, mod = T.unsafe(nil)); end - - # source://ffi//lib/ffi/struct.rb#276 - def find_type(type, mod = T.unsafe(nil)); end - - # source://ffi//lib/ffi/struct.rb#239 - def pack(packed = T.unsafe(nil)); end - - # source://ffi//lib/ffi/struct.rb#239 - def packed(packed = T.unsafe(nil)); end - - private - - # Add array +spec+ to +builder+. - # - # @param builder [StructLayoutBuilder] - # @param spec [Array] - # @return [builder] - # - # source://ffi//lib/ffi/struct.rb#298 - def array_layout(builder, spec); end - - # Add hash +spec+ to +builder+. - # - # @param builder [StructLayoutBuilder] - # @param spec [Hash] - # @return [builder] - # - # source://ffi//lib/ffi/struct.rb#288 - def hash_layout(builder, spec); end - end -end - -class FFI::Struct::InlineArray - include ::Enumerable - - def initialize(_arg0, _arg1); end - - def [](_arg0); end - def []=(_arg0, _arg1); end - def each; end - def size; end - def to_a; end - def to_ptr; end -end - -# source://ffi//lib/ffi/struct.rb#147 -class FFI::Struct::ManagedStructConverter < ::FFI::StructByReference - # @param struct_class [Struct] - # @raise [NoMethodError] - # @return [ManagedStructConverter] a new instance of ManagedStructConverter - # - # source://ffi//lib/ffi/struct.rb#150 - def initialize(struct_class); end - - # @param ptr [Pointer] - # @param ctx [nil] - # @return [Struct] - # - # source://ffi//lib/ffi/struct.rb#160 - def from_native(ptr, ctx); end -end - -# This class includes the {FFI::DataConverter} module. -# -# source://ffi//lib/ffi/struct_by_reference.rb#33 -class FFI::StructByReference - include ::FFI::DataConverter - - # @param struct_class [Struct] - # @return [StructByReference] a new instance of StructByReference - # - # source://ffi//lib/ffi/struct_by_reference.rb#39 - def initialize(struct_class); end - - # Create a struct from content of memory +value+. - # - # @param value [AbstractMemory] - # @param ctx [nil] - # @return [Struct] - # - # source://ffi//lib/ffi/struct_by_reference.rb#68 - def from_native(value, ctx); end - - # Always get {FFI::Type}::POINTER. - # - # source://ffi//lib/ffi/struct_by_reference.rb#47 - def native_type; end - - # Returns the value of attribute struct_class. - # - # source://ffi//lib/ffi/struct_by_reference.rb#36 - def struct_class; end - - # @param value [nil, Struct] - # @param ctx [nil] - # @return [AbstractMemory] Pointer on +value+. - # - # source://ffi//lib/ffi/struct_by_reference.rb#54 - def to_native(value, ctx); end -end - -class FFI::StructByValue < ::FFI::Type - def initialize(_arg0); end - - def layout; end - def struct_class; end -end - -# source://ffi//lib/ffi/struct_layout.rb#36 -class FFI::StructLayout < ::FFI::Type - def initialize(_arg0, _arg1, _arg2); end - - def [](_arg0); end - def __union!; end - def fields; end - def members; end - - # Get the offset of a field. - # - # @return [Numeric] - # - # source://ffi//lib/ffi/struct_layout.rb#46 - def offset_of(field_name); end - - # Get an array of tuples (field name, offset of the field). - # - # @return [Array] Array - # - # source://ffi//lib/ffi/struct_layout.rb#40 - def offsets; end - - def to_a; end -end - -class FFI::StructLayout::Array < ::FFI::StructLayout::Field - def get(_arg0); end - def put(_arg0, _arg1); end -end - -class FFI::StructLayout::CharArray < ::FFI::Struct::InlineArray - def to_s; end - def to_str; end -end - -# An enum {Field} in a {StructLayout}. -# -# source://ffi//lib/ffi/struct_layout.rb#51 -class FFI::StructLayout::Enum < ::FFI::StructLayout::Field - # Get an object of type {#type} from memory pointed by +ptr+. - # - # @param ptr [AbstractMemory] pointer on a {Struct} - # @return [Object] - # - # source://ffi//lib/ffi/struct_layout.rb#56 - def get(ptr); end - - # Set +value+ into memory pointed by +ptr+. - # - # @param ptr [AbstractMemory] pointer on a {Struct} - # @param value - # @return [nil] - # - # source://ffi//lib/ffi/struct_layout.rb#64 - def put(ptr, value); end -end - -class FFI::StructLayout::Field - def initialize(*_arg0); end - - def alignment; end - def get(_arg0); end - def name; end - def offset; end - def put(_arg0, _arg1); end - def size; end - def type; end -end - -class FFI::StructLayout::Function < ::FFI::StructLayout::Field - def get(_arg0); end - def put(_arg0, _arg1); end -end - -# source://ffi//lib/ffi/struct_layout.rb#70 -class FFI::StructLayout::InnerStruct < ::FFI::StructLayout::Field - # source://ffi//lib/ffi/struct_layout.rb#71 - def get(ptr); end - - # @raise [TypeError] - # - # source://ffi//lib/ffi/struct_layout.rb#75 - def put(ptr, value); end -end - -# source://ffi//lib/ffi/struct_layout.rb#81 -class FFI::StructLayout::Mapped < ::FFI::StructLayout::Field - # @return [Mapped] a new instance of Mapped - # - # source://ffi//lib/ffi/struct_layout.rb#82 - def initialize(name, offset, type, orig_field); end - - # source://ffi//lib/ffi/struct_layout.rb#87 - def get(ptr); end - - # source://ffi//lib/ffi/struct_layout.rb#91 - def put(ptr, value); end -end - -class FFI::StructLayout::Number < ::FFI::StructLayout::Field; end -class FFI::StructLayout::Pointer < ::FFI::StructLayout::Field; end -class FFI::StructLayout::String < ::FFI::StructLayout::Field; end - -# Build a {StructLayout struct layout}. -# -# source://ffi//lib/ffi/struct_layout_builder.rb#35 -class FFI::StructLayoutBuilder - # @return [StructLayoutBuilder] a new instance of StructLayoutBuilder - # - # source://ffi//lib/ffi/struct_layout_builder.rb#39 - def initialize; end - - # Add a field to the builder. - # - # @note Setting +offset+ to +nil+ or +-1+ is equivalent to +0+. - # @param name [String, Symbol] name of the field - # @param type [Array, DataConverter, Struct, StructLayout::Field, Symbol, Type] type of the field - # @param offset [Numeric, nil] - # @return [self] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#123 - def add(name, type, offset = T.unsafe(nil)); end - - # Add an array as a field to the builder. - # - # @param count [Numeric] array length - # @param name [String, Symbol] name of the field - # @param type [Array, DataConverter, Struct, StructLayout::Field, Symbol, Type] type of the field - # @param offset [Numeric, nil] - # @return [self] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#161 - def add_array(name, type, count, offset = T.unsafe(nil)); end - - # Same as {#add}. - # - # @param name [String, Symbol] name of the field - # @param type [Array, DataConverter, Struct, StructLayout::Field, Symbol, Type] type of the field - # @param offset [Numeric, nil] - # @return [self] - # @see #add - # - # source://ffi//lib/ffi/struct_layout_builder.rb#144 - def add_field(name, type, offset = T.unsafe(nil)); end - - # Add a struct as a field to the builder. - # - # @param name [String, Symbol] name of the field - # @param type [Array, DataConverter, Struct, StructLayout::Field, Symbol, Type] type of the field - # @param offset [Numeric, nil] - # @return [self] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#151 - def add_struct(name, type, offset = T.unsafe(nil)); end - - # Returns the value of attribute alignment. - # - # source://ffi//lib/ffi/struct_layout_builder.rb#37 - def alignment; end - - # Set alignment attribute with +align+ only if it is greater than attribute value. - # - # @param align [Numeric] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#56 - def alignment=(align); end - - # Build and return the struct layout. - # - # @return [StructLayout] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#167 - def build; end - - # Set packed attribute - # - # @overload packed= - # @overload packed= - # - # source://ffi//lib/ffi/struct_layout_builder.rb#89 - def packed=(packed); end - - # Returns the value of attribute size. - # - # source://ffi//lib/ffi/struct_layout_builder.rb#36 - def size; end - - # Set size attribute with +size+ only if +size+ is greater than attribute value. - # - # @param size [Numeric] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#50 - def size=(size); end - - # Set union attribute. - # Set to +true+ to build a {Union} instead of a {Struct}. - # - # @param is_union [Boolean] - # @return [is_union] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#65 - def union=(is_union); end - - # Building a {Union} or a {Struct} ? - # - # @return [Boolean] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#73 - def union?; end - - private - - # @param offset [Numeric] - # @param align [Numeric] - # @return [Numeric] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#181 - def align(offset, align); end - - # @param name [String, Symbol] name of the field - # @param type [Array, DataConverter, Struct, StructLayout::Field, Symbol, Type] type of the field - # @param offset [Numeric, nil] - # @return [StructLayout::Field] - # - # source://ffi//lib/ffi/struct_layout_builder.rb#187 - def field_for_type(name, offset, type); end -end - -# List of number types -# -# source://ffi//lib/ffi/struct_layout_builder.rb#100 -FFI::StructLayoutBuilder::NUMBER_TYPES = T.let(T.unsafe(nil), Array) - -FFI::TYPE_BOOL = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_BUFFER_IN = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_BUFFER_INOUT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_BUFFER_OUT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_FLOAT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_FLOAT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_INT16 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_INT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_INT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_INT8 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_LONGDOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_POINTER = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_STRING = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_UINT16 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_UINT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_UINT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_UINT8 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_ULONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_VARARGS = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TYPE_VOID = T.let(T.unsafe(nil), FFI::Type::Builtin) - -class FFI::Type - def initialize(_arg0); end - - def alignment; end - def inspect; end - def size; end -end - -FFI::Type::Array = FFI::ArrayType -FFI::Type::BOOL = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::BUFFER_IN = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::BUFFER_INOUT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::BUFFER_OUT = T.let(T.unsafe(nil), FFI::Type::Builtin) - -class FFI::Type::Builtin < ::FFI::Type - def inspect; end -end - -FFI::Type::CHAR = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::DOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::FLOAT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::FLOAT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::FLOAT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::Function = FFI::FunctionType -FFI::Type::INT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::INT16 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::INT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::INT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::INT8 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::LONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::LONGDOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::LONG_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin) - -class FFI::Type::Mapped < ::FFI::Type - def initialize(_arg0); end - - def converter; end - def from_native(*_arg0); end - def native_type; end - def to_native(*_arg0); end - def type; end -end - -FFI::Type::POINTER = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::SCHAR = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::SHORT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::SINT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::SLONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::SLONG_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::SSHORT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::STRING = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::Struct = FFI::StructByValue -FFI::Type::UCHAR = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::UINT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::UINT16 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::UINT32 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::UINT64 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::UINT8 = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::ULONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::ULONG_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::USHORT = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::VARARGS = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::Type::VOID = T.let(T.unsafe(nil), FFI::Type::Builtin) -FFI::TypeDefs = T.let(T.unsafe(nil), Hash) - -# source://ffi//lib/ffi/library.rb#34 -FFI::USE_THIS_PROCESS_AS_LIBRARY = T.let(T.unsafe(nil), Object) - -# source://ffi//lib/ffi/union.rb#36 -class FFI::Union < ::FFI::Struct - class << self - # source://ffi//lib/ffi/union.rb#37 - def builder; end - end -end - -# source://ffi//lib/ffi/version.rb#2 -FFI::VERSION = T.let(T.unsafe(nil), String) - -# source://ffi//lib/ffi/variadic.rb#34 -class FFI::VariadicInvoker - def initialize(_arg0, _arg1, _arg2, _arg3); end - - # Attach the invoker to module +mod+ as +mname+ - # - # source://ffi//lib/ffi/variadic.rb#53 - def attach(mod, mname); end - - # source://ffi//lib/ffi/variadic.rb#35 - def call(*args, &block); end - - def invoke(_arg0, _arg1); end - - # Retrieve Array of parameter types - # - # This method returns an Array of FFI types accepted as function parameters. - # - # @return [Array] - # - # source://ffi//lib/ffi/variadic.rb#76 - def param_types; end - - def return_type; end -end diff --git a/sorbet/rbi/gems/globalid@1.2.1.rbi b/sorbet/rbi/gems/globalid@1.2.1.rbi index 5b22464c..f91b5b9a 100644 --- a/sorbet/rbi/gems/globalid@1.2.1.rbi +++ b/sorbet/rbi/gems/globalid@1.2.1.rbi @@ -597,7 +597,7 @@ class URI::GID < ::URI::Generic # # Read the documentation for +parse+, +create+ and +build+ for more. # - # source://uri/0.13.0/uri/generic.rb#243 + # source://uri/0.13.0/lib/uri/generic.rb#243 def app; end # source://globalid//lib/global_id/uri/gid.rb#107 diff --git a/sorbet/rbi/gems/google-apis-core@0.15.0.rbi b/sorbet/rbi/gems/google-apis-core@0.15.1.rbi similarity index 100% rename from sorbet/rbi/gems/google-apis-core@0.15.0.rbi rename to sorbet/rbi/gems/google-apis-core@0.15.1.rbi diff --git a/sorbet/rbi/gems/google-apis-iamcredentials_v1@0.20.0.rbi b/sorbet/rbi/gems/google-apis-iamcredentials_v1@0.21.0.rbi similarity index 100% rename from sorbet/rbi/gems/google-apis-iamcredentials_v1@0.20.0.rbi rename to sorbet/rbi/gems/google-apis-iamcredentials_v1@0.21.0.rbi diff --git a/sorbet/rbi/gems/google-apis-storage_v1@0.38.0.rbi b/sorbet/rbi/gems/google-apis-storage_v1@0.44.0.rbi similarity index 100% rename from sorbet/rbi/gems/google-apis-storage_v1@0.38.0.rbi rename to sorbet/rbi/gems/google-apis-storage_v1@0.44.0.rbi diff --git a/sorbet/rbi/gems/google-cloud-core@1.7.0.rbi b/sorbet/rbi/gems/google-cloud-core@1.7.1.rbi similarity index 94% rename from sorbet/rbi/gems/google-cloud-core@1.7.0.rbi rename to sorbet/rbi/gems/google-cloud-core@1.7.1.rbi index d81ec673..0a126fe7 100644 --- a/sorbet/rbi/gems/google-cloud-core@1.7.0.rbi +++ b/sorbet/rbi/gems/google-cloud-core@1.7.1.rbi @@ -25,7 +25,7 @@ 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 + # source://google-cloud-storage/1.52.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 @@ -107,7 +107,7 @@ module 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 + # source://google-cloud-storage/1.52.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 @@ -331,6 +331,14 @@ class Google::Cloud::Config < ::BasicObject # source://google-cloud-core//lib/google/cloud/config.rb#395 def inspect; end + # Implement standard is_a check + # + # @private + # @return [boolean] + # + # source://google-cloud-core//lib/google/cloud/config.rb#492 + def is_a?(klass); end + # Dynamic methods accessed as keys. # # @private @@ -418,19 +426,19 @@ class Google::Cloud::Config < ::BasicObject private - # source://google-cloud-core//lib/google/cloud/config.rb#553 + # source://google-cloud-core//lib/google/cloud/config.rb#563 def build_enum_validator!(allowed, allow_nil); end - # source://google-cloud-core//lib/google/cloud/config.rb#547 + # source://google-cloud-core//lib/google/cloud/config.rb#557 def build_match_validator!(matches, allow_nil); end - # source://google-cloud-core//lib/google/cloud/config.rb#559 + # source://google-cloud-core//lib/google/cloud/config.rb#569 def build_proc_validator!(proc, allow_nil); end - # source://google-cloud-core//lib/google/cloud/config.rb#513 + # source://google-cloud-core//lib/google/cloud/config.rb#523 def resolve_key!(key); end - # source://google-cloud-core//lib/google/cloud/config.rb#529 + # source://google-cloud-core//lib/google/cloud/config.rb#539 def resolve_validator!(initial, opts); end # Dynamic methods accessed as keys. @@ -441,13 +449,13 @@ class Google::Cloud::Config < ::BasicObject # 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 + # source://google-cloud-core//lib/google/cloud/config.rb#529 def validate_new_key!(key); end - # source://google-cloud-core//lib/google/cloud/config.rb#563 + # source://google-cloud-core//lib/google/cloud/config.rb#573 def validate_value!(key, validator, value); end - # source://google-cloud-core//lib/google/cloud/config.rb#579 + # source://google-cloud-core//lib/google/cloud/config.rb#589 def warn!(msg); end class << self @@ -493,14 +501,14 @@ end # @private # -# source://google-cloud-core//lib/google/cloud/config.rb#590 +# source://google-cloud-core//lib/google/cloud/config.rb#600 class Google::Cloud::Config::DeferredValue # @return [DeferredValue] a new instance of DeferredValue # - # source://google-cloud-core//lib/google/cloud/config.rb#591 + # source://google-cloud-core//lib/google/cloud/config.rb#601 def initialize(&block); end - # source://google-cloud-core//lib/google/cloud/config.rb#595 + # source://google-cloud-core//lib/google/cloud/config.rb#605 def call; end end @@ -508,17 +516,17 @@ end # # @private a list of key names that are technically illegal because # -# source://google-cloud-core//lib/google/cloud/config.rb#497 +# source://google-cloud-core//lib/google/cloud/config.rb#507 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 +# source://google-cloud-core//lib/google/cloud/config.rb#501 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 +# source://google-cloud-core//lib/google/cloud/config.rb#521 Google::Cloud::Config::SUBCONFIG = T.let(T.unsafe(nil), Object) # source://google-cloud-core//lib/google/cloud/core/version.rb#18 diff --git a/sorbet/rbi/gems/google-cloud-env@2.1.1.rbi b/sorbet/rbi/gems/google-cloud-env@2.1.1.rbi index ce69208a..1f9a0fd9 100644 --- a/sorbet/rbi/gems/google-cloud-env@2.1.1.rbi +++ b/sorbet/rbi/gems/google-cloud-env@2.1.1.rbi @@ -14,17 +14,17 @@ module Google; end # # 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 + # source://google-cloud-storage/1.52.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 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#158 def auto_load_files; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#128 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#128 def auto_load_gems; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#91 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#91 def configure; end # Returns the global instance of {Google::Cloud::Env}. @@ -34,16 +34,16 @@ module Google::Cloud # 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 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#103 def init_configuration; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#142 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#142 def loaded_files; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#62 + # source://google-cloud-core/1.7.1/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 + # source://google-cloud-storage/1.52.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 diff --git a/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi b/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi index 3a278e8c..c7ae6971 100644 --- a/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi +++ b/sorbet/rbi/gems/google-cloud-errors@1.4.0.rbi @@ -10,32 +10,32 @@ 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 + # source://google-cloud-storage/1.52.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 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#158 def auto_load_files; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#128 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#128 def auto_load_gems; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#91 + # source://google-cloud-core/1.7.1/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 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#103 def init_configuration; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#142 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#142 def loaded_files; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#62 + # source://google-cloud-core/1.7.1/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 + # source://google-cloud-storage/1.52.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 diff --git a/sorbet/rbi/gems/google-cloud-storage@1.51.0.rbi b/sorbet/rbi/gems/google-cloud-storage@1.52.0.rbi similarity index 94% rename from sorbet/rbi/gems/google-cloud-storage@1.51.0.rbi rename to sorbet/rbi/gems/google-cloud-storage@1.52.0.rbi index 2e33c388..26cc897d 100644 --- a/sorbet/rbi/gems/google-cloud-storage@1.51.0.rbi +++ b/sorbet/rbi/gems/google-cloud-storage@1.52.0.rbi @@ -60,25 +60,25 @@ module Google::Cloud 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 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#158 def auto_load_files; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#128 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#128 def auto_load_gems; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#91 + # source://google-cloud-core/1.7.1/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 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#103 def init_configuration; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#142 + # source://google-cloud-core/1.7.1/lib/google/cloud.rb#142 def loaded_files; end - # source://google-cloud-core/1.7.0/lib/google/cloud.rb#62 + # source://google-cloud-core/1.7.1/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 # Creates a new object for connecting to the Storage service. diff --git a/sorbet/rbi/gems/hotwire-livereload@1.4.0.rbi b/sorbet/rbi/gems/hotwire-livereload@1.4.0.rbi deleted file mode 100644 index 7cb84f65..00000000 --- a/sorbet/rbi/gems/hotwire-livereload@1.4.0.rbi +++ /dev/null @@ -1,67 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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#112 - def action_cable(opts); end - - # 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.3/lib/rails/engine.rb#395 - def railtie_namespace; end - - # 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#116 - def server_process?; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#401 - def table_name_prefix; end - - # source://hotwire-livereload//lib/hotwire/livereload/engine.rb#103 - def turbo_stream(locals); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#408 - def use_relative_model_naming?; end - end -end - -# source://hotwire-livereload//lib/hotwire/livereload.rb#5 -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.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - end -end - -module Hotwire::Livereload::LivereloadTagsHelper - def hotwire_livereload_tags; end -end - -class Hotwire::Livereload::ReloadChannel < ::ActionCable::Channel::Base - def subscribed; end - - class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - end -end diff --git a/sorbet/rbi/gems/inertia_rails@3.1.4.rbi b/sorbet/rbi/gems/inertia_rails@3.1.4.rbi deleted file mode 100644 index e014c060..00000000 --- a/sorbet/rbi/gems/inertia_rails@3.1.4.rbi +++ /dev/null @@ -1,414 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - -# source://inertia_rails//lib/patches/debug_exceptions/patch-5-1.rb#10 -module InertiaDebugExceptions - # source://inertia_rails//lib/patches/debug_exceptions/patch-5-1.rb#11 - def render_for_browser_request(request, wrapper); end -end - -# source://inertia_rails//lib/inertia_rails/lazy.rb#1 -module InertiaRails - # 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.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 - def threadsafe_html_headers=(obj); end - - # 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.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 - def threadsafe_shared_blocks=(obj); end - - # 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.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 - def threadsafe_shared_plain_data=(obj); end - - class << self - # @yield [Configuration] - # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#10 - def configure; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#44 - def deep_merge_shared_data?; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#36 - def default_render?; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#103 - def evaluated_blocks(controller, blocks); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#40 - def html_headers; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#57 - def html_headers=(headers); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#24 - def layout; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#67 - def lazy(value = T.unsafe(nil), &block); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#61 - def reset!; end - - # "Setters" - # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#49 - def share(**args); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#53 - def share_block(block); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#95 - def shared_blocks; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#99 - def shared_blocks=(val); end - - # "Getters" - # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#15 - def shared_data(controller); end - - # Getters and setters to provide default values for the threadsafe attributes - # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#87 - def shared_plain_data; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#91 - def shared_plain_data=(val); end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#28 - def ssr_enabled?; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#32 - def ssr_url; end - - # 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.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 - def threadsafe_html_headers=(obj); end - - # 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.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 - def threadsafe_shared_blocks=(obj); end - - # 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.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 - def version; end - end -end - -# source://inertia_rails//lib/inertia_rails/inertia_rails.rb#73 -module InertiaRails::Configuration - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#79 - def deep_merge_shared_data; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#79 - def deep_merge_shared_data=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#78 - def default_render; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#78 - def default_render=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#74 - def layout; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#74 - def layout=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#76 - def ssr_enabled; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#76 - def ssr_enabled=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#77 - def ssr_url; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#77 - def ssr_url=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#75 - def version; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#75 - def version=(val); end - - class << self - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#79 - def deep_merge_shared_data; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#79 - def deep_merge_shared_data=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#78 - def default_render; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#78 - def default_render=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#81 - def evaluated_version; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#74 - def layout; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#74 - def layout=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#76 - def ssr_enabled; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#76 - def ssr_enabled=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#77 - def ssr_url; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#77 - def ssr_url=(val); end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#75 - def version; end - - # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#75 - def version=(val); end - end -end - -# source://inertia_rails//lib/inertia_rails/controller.rb#5 -module InertiaRails::Controller - extend ::ActiveSupport::Concern - - mixes_in_class_methods ::InertiaRails::Controller::ClassMethods - - # source://inertia_rails//lib/inertia_rails/controller.rb#36 - def default_render; end - - # source://inertia_rails//lib/inertia_rails/controller.rb#58 - def inertia_view_assigns; end - - # source://inertia_rails//lib/inertia_rails/controller.rb#49 - def redirect_back(fallback_location:, allow_other_host: T.unsafe(nil), **options); end - - # source://inertia_rails//lib/inertia_rails/controller.rb#44 - def redirect_to(options = T.unsafe(nil), response_options = T.unsafe(nil)); end - - private - - # source://inertia_rails//lib/inertia_rails/controller.rb#78 - def capture_inertia_errors(options); end - - # source://inertia_rails//lib/inertia_rails/controller.rb#65 - def inertia_layout; end - - # source://inertia_rails//lib/inertia_rails/controller.rb#73 - def inertia_location(url); end -end - -# source://inertia_rails//lib/inertia_rails/controller.rb#20 -module InertiaRails::Controller::ClassMethods - # source://inertia_rails//lib/inertia_rails/controller.rb#21 - def inertia_share(**args, &block); end - - # source://inertia_rails//lib/inertia_rails/controller.rb#28 - def use_inertia_instance_props; end -end - -# source://inertia_rails//lib/inertia_rails/engine.rb#5 -class InertiaRails::Engine < ::Rails::Engine - class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - end -end - -# source://inertia_rails//lib/inertia_rails.rb#23 -class InertiaRails::Error < ::StandardError; end - -# source://inertia_rails//lib/inertia_rails/helper.rb#3 -module InertiaRails::Helper - # source://inertia_rails//lib/inertia_rails/helper.rb#4 - def inertia_headers; end -end - -# source://inertia_rails//lib/inertia_rails/lazy.rb#2 -class InertiaRails::Lazy - # @return [Lazy] a new instance of Lazy - # - # source://inertia_rails//lib/inertia_rails/lazy.rb#3 - def initialize(value = T.unsafe(nil), &block); end - - # source://inertia_rails//lib/inertia_rails/lazy.rb#8 - def call; end - - # source://inertia_rails//lib/inertia_rails/lazy.rb#12 - def to_proc; end -end - -# source://inertia_rails//lib/inertia_rails/middleware.rb#2 -class InertiaRails::Middleware - # @return [Middleware] a new instance of Middleware - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#3 - def initialize(app); end - - # source://inertia_rails//lib/inertia_rails/middleware.rb#7 - def call(env); end -end - -# source://inertia_rails//lib/inertia_rails/middleware.rb#14 -class InertiaRails::Middleware::InertiaRailsRequest - # @return [InertiaRailsRequest] a new instance of InertiaRailsRequest - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#15 - def initialize(app, env); end - - # source://inertia_rails//lib/inertia_rails/middleware.rb#20 - def response; end - - private - - # source://inertia_rails//lib/inertia_rails/middleware.rb#94 - def copy_xsrf_to_csrf!; end - - # source://inertia_rails//lib/inertia_rails/middleware.rb#89 - def force_refresh(request); end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#59 - def get?; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#51 - def inertia_non_post_redirect?(status); end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#71 - def inertia_request?; end - - # source://inertia_rails//lib/inertia_rails/middleware.rb#67 - def inertia_version; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#35 - def keep_inertia_errors?(status); end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#47 - def non_get_redirectable_method?; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#43 - def redirect_status?(status); end - - # source://inertia_rails//lib/inertia_rails/middleware.rb#63 - def request_method; end - - # source://inertia_rails//lib/inertia_rails/middleware.rb#85 - def saved_version; end - - # source://inertia_rails//lib/inertia_rails/middleware.rb#79 - def sent_version; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#55 - def stale_inertia_get?; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#39 - def stale_inertia_request?; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/middleware.rb#75 - def version_stale?; end -end - -# source://inertia_rails//lib/inertia_rails/renderer.rb#6 -class InertiaRails::Renderer - # @return [Renderer] a new instance of Renderer - # - # source://inertia_rails//lib/inertia_rails/renderer.rb#9 - def initialize(component, controller, request, response, render_method, props: T.unsafe(nil), view_data: T.unsafe(nil), deep_merge: T.unsafe(nil)); end - - # Returns the value of attribute component. - # - # source://inertia_rails//lib/inertia_rails/renderer.rb#7 - def component; end - - # source://inertia_rails//lib/inertia_rails/renderer.rb#20 - def render; end - - # Returns the value of attribute view_data. - # - # source://inertia_rails//lib/inertia_rails/renderer.rb#7 - def view_data; end - - private - - # source://inertia_rails//lib/inertia_rails/renderer.rb#45 - def computed_props; end - - # source://inertia_rails//lib/inertia_rails/renderer.rb#76 - def deep_transform_values(hash, proc); end - - # source://inertia_rails//lib/inertia_rails/renderer.rb#41 - def layout; end - - # source://inertia_rails//lib/inertia_rails/renderer.rb#67 - def page; end - - # source://inertia_rails//lib/inertia_rails/renderer.rb#82 - def partial_keys; end - - # source://inertia_rails//lib/inertia_rails/renderer.rb#90 - def prop_merge_method; end - - # source://inertia_rails//lib/inertia_rails/renderer.rb#33 - def render_ssr; end - - # @return [Boolean] - # - # source://inertia_rails//lib/inertia_rails/renderer.rb#86 - def rendering_partial_component?; end -end diff --git a/sorbet/rbi/gems/inertia_rails@3.2.0.rbi b/sorbet/rbi/gems/inertia_rails@3.2.0.rbi new file mode 100644 index 00000000..b5abc0d3 --- /dev/null +++ b/sorbet/rbi/gems/inertia_rails@3.2.0.rbi @@ -0,0 +1,345 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# 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 + +# source://inertia_rails//lib/patches/debug_exceptions/patch-5-1.rb#10 +module InertiaDebugExceptions + # source://inertia_rails//lib/patches/debug_exceptions/patch-5-1.rb#11 + def render_for_browser_request(request, wrapper); end +end + +# source://inertia_rails//lib/inertia_rails/lazy.rb#1 +module InertiaRails + class << self + # @yield [Configuration] + # + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#6 + def configure; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#30 + def deep_merge_shared_data?; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#26 + def default_render?; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#14 + def layout; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#34 + def lazy(value = T.unsafe(nil), &block); end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#18 + def ssr_enabled?; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#22 + def ssr_url; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#10 + def version; end + end +end + +# source://inertia_rails//lib/inertia_rails/inertia_rails.rb#40 +module InertiaRails::Configuration + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#46 + def deep_merge_shared_data; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#46 + def deep_merge_shared_data=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#45 + def default_render; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#45 + def default_render=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#41 + def layout; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#41 + def layout=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#43 + def ssr_enabled; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#43 + def ssr_enabled=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#44 + def ssr_url; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#44 + def ssr_url=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#42 + def version; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#42 + def version=(val); end + + class << self + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#46 + def deep_merge_shared_data; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#46 + def deep_merge_shared_data=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#45 + def default_render; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#45 + def default_render=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#48 + def evaluated_version; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#41 + def layout; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#41 + def layout=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#43 + def ssr_enabled; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#43 + def ssr_enabled=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#44 + def ssr_url; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#44 + def ssr_url=(val); end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#42 + def version; end + + # source://inertia_rails//lib/inertia_rails/inertia_rails.rb#42 + def version=(val); end + end +end + +# source://inertia_rails//lib/inertia_rails/controller.rb#4 +module InertiaRails::Controller + extend ::ActiveSupport::Concern + + mixes_in_class_methods ::InertiaRails::Controller::ClassMethods + + # source://inertia_rails//lib/inertia_rails/controller.rb#54 + def default_render; end + + # source://inertia_rails//lib/inertia_rails/controller.rb#46 + def inertia_headers; end + + # source://inertia_rails//lib/inertia_rails/controller.rb#50 + def inertia_headers=(value); end + + # source://inertia_rails//lib/inertia_rails/controller.rb#80 + def inertia_view_assigns; end + + # source://inertia_rails//lib/inertia_rails/controller.rb#71 + def redirect_back(fallback_location:, allow_other_host: T.unsafe(nil), **options); end + + # source://inertia_rails//lib/inertia_rails/controller.rb#66 + def redirect_to(options = T.unsafe(nil), response_options = T.unsafe(nil)); end + + # source://inertia_rails//lib/inertia_rails/controller.rb#62 + def shared_data; end + + private + + # source://inertia_rails//lib/inertia_rails/controller.rb#100 + def capture_inertia_errors(options); end + + # source://inertia_rails//lib/inertia_rails/controller.rb#106 + def evaluated_blocks; end + + # source://inertia_rails//lib/inertia_rails/controller.rb#87 + def inertia_layout; end + + # source://inertia_rails//lib/inertia_rails/controller.rb#95 + def inertia_location(url); end +end + +# source://inertia_rails//lib/inertia_rails/controller.rb#30 +module InertiaRails::Controller::ClassMethods + # source://inertia_rails//lib/inertia_rails/controller.rb#31 + def inertia_share(hash = T.unsafe(nil), &block); end + + # source://inertia_rails//lib/inertia_rails/controller.rb#38 + def use_inertia_instance_props; end +end + +# source://inertia_rails//lib/inertia_rails/engine.rb#5 +class InertiaRails::Engine < ::Rails::Engine + class << self + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 + def __callbacks; end + end +end + +# source://inertia_rails//lib/inertia_rails.rb#23 +class InertiaRails::Error < ::StandardError; end + +# source://inertia_rails//lib/inertia_rails/lazy.rb#2 +class InertiaRails::Lazy + # @return [Lazy] a new instance of Lazy + # + # source://inertia_rails//lib/inertia_rails/lazy.rb#3 + def initialize(value = T.unsafe(nil), &block); end + + # source://inertia_rails//lib/inertia_rails/lazy.rb#8 + def call; end + + # source://inertia_rails//lib/inertia_rails/lazy.rb#12 + def to_proc; end +end + +# source://inertia_rails//lib/inertia_rails/middleware.rb#2 +class InertiaRails::Middleware + # @return [Middleware] a new instance of Middleware + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#3 + def initialize(app); end + + # source://inertia_rails//lib/inertia_rails/middleware.rb#7 + def call(env); end +end + +# source://inertia_rails//lib/inertia_rails/middleware.rb#12 +class InertiaRails::Middleware::InertiaRailsRequest + # @return [InertiaRailsRequest] a new instance of InertiaRailsRequest + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#13 + def initialize(app, env); end + + # source://inertia_rails//lib/inertia_rails/middleware.rb#18 + def response; end + + private + + # source://inertia_rails//lib/inertia_rails/middleware.rb#92 + def copy_xsrf_to_csrf!; end + + # source://inertia_rails//lib/inertia_rails/middleware.rb#87 + def force_refresh(request); end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#57 + def get?; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#49 + def inertia_non_post_redirect?(status); end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#69 + def inertia_request?; end + + # source://inertia_rails//lib/inertia_rails/middleware.rb#65 + def inertia_version; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#33 + def keep_inertia_errors?(status); end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#45 + def non_get_redirectable_method?; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#41 + def redirect_status?(status); end + + # source://inertia_rails//lib/inertia_rails/middleware.rb#61 + def request_method; end + + # source://inertia_rails//lib/inertia_rails/middleware.rb#83 + def saved_version; end + + # source://inertia_rails//lib/inertia_rails/middleware.rb#77 + def sent_version; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#53 + def stale_inertia_get?; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#37 + def stale_inertia_request?; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/middleware.rb#73 + def version_stale?; end +end + +# source://inertia_rails//lib/inertia_rails/renderer.rb#4 +class InertiaRails::Renderer + # @return [Renderer] a new instance of Renderer + # + # source://inertia_rails//lib/inertia_rails/renderer.rb#7 + def initialize(component, controller, request, response, render_method, props: T.unsafe(nil), view_data: T.unsafe(nil), deep_merge: T.unsafe(nil)); end + + # Returns the value of attribute component. + # + # source://inertia_rails//lib/inertia_rails/renderer.rb#5 + def component; end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#18 + def render; end + + # Returns the value of attribute view_data. + # + # source://inertia_rails//lib/inertia_rails/renderer.rb#5 + def view_data; end + + private + + # source://inertia_rails//lib/inertia_rails/renderer.rb#43 + def computed_props; end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#74 + def deep_transform_values(hash, proc); end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#39 + def layout; end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#65 + def page; end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#80 + def partial_keys; end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#88 + def prop_merge_method; end + + # source://inertia_rails//lib/inertia_rails/renderer.rb#31 + def render_ssr; end + + # @return [Boolean] + # + # source://inertia_rails//lib/inertia_rails/renderer.rb#84 + def rendering_partial_component?; end +end diff --git a/sorbet/rbi/gems/jwt@2.8.1.rbi b/sorbet/rbi/gems/jwt@2.8.2.rbi similarity index 99% rename from sorbet/rbi/gems/jwt@2.8.1.rbi rename to sorbet/rbi/gems/jwt@2.8.2.rbi index ae2ec705..02004e75 100644 --- a/sorbet/rbi/gems/jwt@2.8.1.rbi +++ b/sorbet/rbi/gems/jwt@2.8.2.rbi @@ -436,11 +436,20 @@ class JWT::DecodeError < ::StandardError; end module JWT::Deprecations class << self # source://jwt//lib/jwt/deprecations.rb#7 - def warning(message); end + def context; end + + # source://jwt//lib/jwt/deprecations.rb#31 + def emit_warnings; end + + # source://jwt//lib/jwt/deprecations.rb#27 + def store(message); end + + # source://jwt//lib/jwt/deprecations.rb#13 + def warning(message, only_if_valid: T.unsafe(nil)); end private - # source://jwt//lib/jwt/deprecations.rb#20 + # source://jwt//lib/jwt/deprecations.rb#39 def record_warned(message); end end end diff --git a/sorbet/rbi/gems/lint_roller@1.1.0.rbi b/sorbet/rbi/gems/lint_roller@1.1.0.rbi new file mode 100644 index 00000000..0e21c6f2 --- /dev/null +++ b/sorbet/rbi/gems/lint_roller@1.1.0.rbi @@ -0,0 +1,240 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `lint_roller` gem. +# Please instead update this file by running `bin/tapioca gem lint_roller`. + + +# source://lint_roller//lib/lint_roller/version.rb#1 +module LintRoller; end + +# source://lint_roller//lib/lint_roller/about.rb#2 +class LintRoller::About < ::Struct + # Returns the value of attribute description + # + # @return [Object] the current value of description + def description; end + + # Sets the attribute description + # + # @param value [Object] the value to set the attribute description to. + # @return [Object] the newly set value + def description=(_); end + + # Returns the value of attribute homepage + # + # @return [Object] the current value of homepage + def homepage; end + + # Sets the attribute homepage + # + # @param value [Object] the value to set the attribute homepage to. + # @return [Object] the newly set value + def homepage=(_); end + + # Returns the value of attribute name + # + # @return [Object] the current value of name + def name; end + + # Sets the attribute name + # + # @param value [Object] the value to set the attribute name to. + # @return [Object] the newly set value + def name=(_); end + + # Returns the value of attribute version + # + # @return [Object] the current value of version + def version; end + + # Sets the attribute version + # + # @param value [Object] the value to set the attribute version to. + # @return [Object] the newly set value + def version=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://lint_roller//lib/lint_roller/context.rb#2 +class LintRoller::Context < ::Struct + # Returns the value of attribute engine + # + # @return [Object] the current value of engine + def engine; end + + # Sets the attribute engine + # + # @param value [Object] the value to set the attribute engine to. + # @return [Object] the newly set value + def engine=(_); end + + # Returns the value of attribute engine_version + # + # @return [Object] the current value of engine_version + def engine_version; end + + # Sets the attribute engine_version + # + # @param value [Object] the value to set the attribute engine_version to. + # @return [Object] the newly set value + def engine_version=(_); end + + # Returns the value of attribute rule_format + # + # @return [Object] the current value of rule_format + def rule_format; end + + # Sets the attribute rule_format + # + # @param value [Object] the value to set the attribute rule_format to. + # @return [Object] the newly set value + def rule_format=(_); end + + # Returns the value of attribute runner + # + # @return [Object] the current value of runner + def runner; end + + # Sets the attribute runner + # + # @param value [Object] the value to set the attribute runner to. + # @return [Object] the newly set value + def runner=(_); end + + # Returns the value of attribute runner_version + # + # @return [Object] the current value of runner_version + def runner_version; end + + # Sets the attribute runner_version + # + # @param value [Object] the value to set the attribute runner_version to. + # @return [Object] the newly set value + def runner_version=(_); end + + # Returns the value of attribute target_ruby_version + # + # @return [Object] the current value of target_ruby_version + def target_ruby_version; end + + # Sets the attribute target_ruby_version + # + # @param value [Object] the value to set the attribute target_ruby_version to. + # @return [Object] the newly set value + def target_ruby_version=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://lint_roller//lib/lint_roller/error.rb#2 +class LintRoller::Error < ::StandardError; end + +# source://lint_roller//lib/lint_roller/plugin.rb#2 +class LintRoller::Plugin + # `config' is a Hash of options passed to the plugin by the user + # + # @return [Plugin] a new instance of Plugin + # + # source://lint_roller//lib/lint_roller/plugin.rb#4 + def initialize(config = T.unsafe(nil)); end + + # @raise [Error] + # + # source://lint_roller//lib/lint_roller/plugin.rb#8 + def about; end + + # `context' is an instance of LintRoller::Context provided by the runner + # + # @raise [Error] + # + # source://lint_roller//lib/lint_roller/plugin.rb#18 + def rules(context); end + + # `context' is an instance of LintRoller::Context provided by the runner + # + # @return [Boolean] + # + # source://lint_roller//lib/lint_roller/plugin.rb#13 + def supported?(context); end +end + +# source://lint_roller//lib/lint_roller/rules.rb#2 +class LintRoller::Rules < ::Struct + # Returns the value of attribute config_format + # + # @return [Object] the current value of config_format + def config_format; end + + # Sets the attribute config_format + # + # @param value [Object] the value to set the attribute config_format to. + # @return [Object] the newly set value + def config_format=(_); end + + # Returns the value of attribute error + # + # @return [Object] the current value of error + def error; end + + # Sets the attribute error + # + # @param value [Object] the value to set the attribute error to. + # @return [Object] the newly set value + def error=(_); end + + # Returns the value of attribute type + # + # @return [Object] the current value of type + def type; end + + # Sets the attribute type + # + # @param value [Object] the value to set the attribute type to. + # @return [Object] the newly set value + def type=(_); 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://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#2 +module LintRoller::Support; end + +# source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#3 +class LintRoller::Support::MergesUpstreamMetadata + # source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#4 + def merge(plugin_yaml, upstream_yaml); end +end + +# source://lint_roller//lib/lint_roller/version.rb#2 +LintRoller::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/listen@3.9.0.rbi b/sorbet/rbi/gems/listen@3.9.0.rbi deleted file mode 100644 index dcf6a6c7..00000000 --- a/sorbet/rbi/gems/listen@3.9.0.rbi +++ /dev/null @@ -1,1206 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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. -# -# source://listen//lib/listen/logger.rb#3 -module Listen - class << self - # source://listen//lib/listen/logger.rb#19 - def adapter_warn(message); end - - # Returns the value of attribute adapter_warn_behavior. - # - # source://listen//lib/listen/logger.rb#13 - def adapter_warn_behavior; end - - # Sets the attribute adapter_warn_behavior - # - # @param value the value to set the attribute adapter_warn_behavior to. - # - # source://listen//lib/listen/logger.rb#13 - def adapter_warn_behavior=(_arg0); end - - # source://listen//lib/listen/logger.rb#15 - def logger; end - - # Sets the attribute logger - # - # @param value the value to set the attribute logger to. - # - # source://listen//lib/listen/logger.rb#12 - def logger=(_arg0); end - - # This is used by the `listen` binary to handle Ctrl-C - # - # source://listen//lib/listen.rb#37 - def stop; end - - # Listens to file system modifications on a either single directory or - # multiple directories. - # - # @return [Listen::Listener] the listener - # @yield [modified, added, removed] the changed files - # @yieldparam modified [Array] the list of modified files - # @yieldparam added [Array] the list of added files - # @yieldparam removed [Array] the list of removed files - # - # source://listen//lib/listen.rb#29 - def to(*args, &block); end - - private - - # source://listen//lib/listen/logger.rb#50 - def adapter_warn_behavior_callback(message); end - - # source://listen//lib/listen/logger.rb#32 - def default_logger; end - end -end - -# source://listen//lib/listen/adapter/base.rb#9 -module Listen::Adapter - class << self - # source://listen//lib/listen/adapter.rb#17 - def select(options = T.unsafe(nil)); end - - private - - # source://listen//lib/listen/adapter.rb#33 - def _usable_adapter_class; end - - # source://listen//lib/listen/adapter.rb#37 - def _warn_polling_fallback(options); end - end -end - -# source://listen//lib/listen/adapter/bsd.rb#9 -class Listen::Adapter::BSD < ::Listen::Adapter::Base - private - - # source://listen//lib/listen/adapter/bsd.rb#73 - def _change(event_flags); end - - # source://listen//lib/listen/adapter/bsd.rb#43 - def _configure(directory, &callback); end - - # source://listen//lib/listen/adapter/bsd.rb#82 - def _event_path(event); end - - # Quick rubocop workaround - # - # source://listen//lib/listen/adapter/bsd.rb#102 - def _find(*paths, &block); end - - # source://listen//lib/listen/adapter/bsd.rb#55 - def _process_event(dir, event); end - - # source://listen//lib/listen/adapter/bsd.rb#51 - def _run; end - - # source://listen//lib/listen/adapter/bsd.rb#95 - def _watch_file(path, queue); end - - # source://listen//lib/listen/adapter/bsd.rb#86 - def _watch_for_new_file(event); end - - class << self - # @return [Boolean] - # - # source://listen//lib/listen/adapter/bsd.rb#31 - def usable?; end - end -end - -# source://listen//lib/listen/adapter/bsd.rb#23 -Listen::Adapter::BSD::BUNDLER_DECLARE_GEM = T.let(T.unsafe(nil), String) - -# source://listen//lib/listen/adapter/bsd.rb#12 -Listen::Adapter::BSD::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://listen//lib/listen/adapter/bsd.rb#10 -Listen::Adapter::BSD::OS_REGEXP = T.let(T.unsafe(nil), Regexp) - -# source://listen//lib/listen/adapter/base.rb#10 -class Listen::Adapter::Base - # @return [Base] a new instance of Base - # - # source://listen//lib/listen/adapter/base.rb#16 - def initialize(config); end - - # Returns the value of attribute config. - # - # source://listen//lib/listen/adapter/base.rb#11 - def config; end - - # TODO: it's a separate method as a temporary workaround for tests - # - # source://listen//lib/listen/adapter/base.rb#33 - def configure; end - - # Returns the value of attribute options. - # - # source://listen//lib/listen/adapter/base.rb#11 - def options; end - - # source://listen//lib/listen/adapter/base.rb#65 - def start; end - - # @return [Boolean] - # - # source://listen//lib/listen/adapter/base.rb#61 - def started?; end - - # source://listen//lib/listen/adapter/base.rb#83 - def stop; end - - private - - # source://listen//lib/listen/adapter/base.rb#111 - def _log_exception(msg, caller_stack); end - - # TODO: allow backend adapters to pass specific invalidation objects - # e.g. Darwin -> DirRescan, INotify -> MoveScan, etc. - # - # source://listen//lib/listen/adapter/base.rb#107 - def _queue_change(type, dir, rel_path, options); end - - # source://listen//lib/listen/adapter/base.rb#90 - def _stop; end - - # source://listen//lib/listen/adapter/base.rb#95 - def _timed(title); end - - class << self - # @return [Boolean] - # - # source://listen//lib/listen/adapter/base.rb#123 - def usable?; end - end -end - -# TODO: only used by tests -# -# source://listen//lib/listen/adapter/base.rb#14 -Listen::Adapter::Base::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://listen//lib/listen/adapter/config.rb#7 -class Listen::Adapter::Config - # @return [Config] a new instance of Config - # - # source://listen//lib/listen/adapter/config.rb#10 - def initialize(directories, queue, silencer, adapter_options); end - - # Returns the value of attribute adapter_options. - # - # source://listen//lib/listen/adapter/config.rb#8 - def adapter_options; end - - # Returns the value of attribute directories. - # - # source://listen//lib/listen/adapter/config.rb#8 - def directories; end - - # Returns the value of attribute queue. - # - # source://listen//lib/listen/adapter/config.rb#8 - def queue; end - - # Returns the value of attribute silencer. - # - # source://listen//lib/listen/adapter/config.rb#8 - def silencer; end -end - -# Adapter implementation for Mac OS X `FSEvents`. -# -# source://listen//lib/listen/adapter/darwin.rb#9 -class Listen::Adapter::Darwin < ::Listen::Adapter::Base - private - - # source://listen//lib/listen/adapter/darwin.rb#39 - def _configure(dir, &callback); end - - # source://listen//lib/listen/adapter/darwin.rb#52 - def _process_changes(dirs); end - - # source://listen//lib/listen/adapter/darwin.rb#64 - def _process_event(dir, path); end - - # source://listen//lib/listen/adapter/darwin.rb#43 - def _run; end - - # source://listen//lib/listen/adapter/darwin.rb#71 - def _stop; end - - class << self - # @return [Boolean] - # - # source://listen//lib/listen/adapter/darwin.rb#25 - def usable?; end - end -end - -# The default delay between checking for changes. -# -# source://listen//lib/listen/adapter/darwin.rb#13 -Listen::Adapter::Darwin::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://listen//lib/listen/adapter/darwin.rb#15 -Listen::Adapter::Darwin::INCOMPATIBLE_GEM_VERSION = T.let(T.unsafe(nil), String) - -# source://listen//lib/listen/adapter/darwin.rb#10 -Listen::Adapter::Darwin::OS_REGEXP = T.let(T.unsafe(nil), Regexp) - -# @see https://github.com/nex3/rb-inotify -# -# source://listen//lib/listen/adapter/linux.rb#6 -class Listen::Adapter::Linux < ::Listen::Adapter::Base - private - - # source://listen//lib/listen/adapter/linux.rb#86 - def _change(event_flags); end - - # source://listen//lib/listen/adapter/linux.rb#27 - def _configure(directory, &callback); end - - # @return [Boolean] - # - # source://listen//lib/listen/adapter/linux.rb#97 - def _dir_event?(event); end - - # source://listen//lib/listen/adapter/linux.rb#42 - def _process_event(dir, event); end - - # source://listen//lib/listen/adapter/linux.rb#37 - def _run; end - - # @return [Boolean] - # - # source://listen//lib/listen/adapter/linux.rb#76 - def _skip_event?(event); end - - # source://listen//lib/listen/adapter/linux.rb#101 - def _stop; end -end - -# source://listen//lib/listen/adapter/linux.rb#9 -Listen::Adapter::Linux::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://listen//lib/listen/adapter/linux.rb#7 -Listen::Adapter::Linux::OS_REGEXP = T.let(T.unsafe(nil), Regexp) - -# source://listen//lib/listen/adapter/linux.rb#24 -Listen::Adapter::Linux::README_URL = T.let(T.unsafe(nil), String) - -# source://listen//lib/listen/adapter.rb#12 -Listen::Adapter::OPTIMIZED_ADAPTERS = T.let(T.unsafe(nil), Array) - -# source://listen//lib/listen/adapter.rb#13 -Listen::Adapter::POLLING_FALLBACK_MESSAGE = T.let(T.unsafe(nil), String) - -# Polling Adapter that works cross-platform and -# has no dependencies. This is the adapter that -# uses the most CPU processing power and has higher -# file IO than the other implementations. -# -# source://listen//lib/listen/adapter/polling.rb#10 -class Listen::Adapter::Polling < ::Listen::Adapter::Base - private - - # source://listen//lib/listen/adapter/polling.rb#17 - def _configure(_, &callback); end - - # source://listen//lib/listen/adapter/polling.rb#35 - def _process_event(dir, _); end - - # source://listen//lib/listen/adapter/polling.rb#22 - def _run; end -end - -# source://listen//lib/listen/adapter/polling.rb#13 -Listen::Adapter::Polling::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# match every OS -# -# source://listen//lib/listen/adapter/polling.rb#11 -Listen::Adapter::Polling::OS_REGEXP = T.let(T.unsafe(nil), Regexp) - -# Adapter implementation for Windows `wdm`. -# -# source://listen//lib/listen/adapter/windows.rb#7 -class Listen::Adapter::Windows < ::Listen::Adapter::Base - private - - # source://listen//lib/listen/adapter/windows.rb#87 - def _change(type); end - - # source://listen//lib/listen/adapter/windows.rb#29 - def _configure(dir); end - - # source://listen//lib/listen/adapter/windows.rb#51 - def _process_event(dir, event); end - - # source://listen//lib/listen/adapter/windows.rb#46 - def _run; end - - class << self - # @return [Boolean] - # - # source://listen//lib/listen/adapter/windows.rb#15 - def usable?; end - end -end - -# source://listen//lib/listen/adapter/windows.rb#10 -Listen::Adapter::Windows::BUNDLER_DECLARE_GEM = T.let(T.unsafe(nil), String) - -# source://listen//lib/listen/adapter/windows.rb#8 -Listen::Adapter::Windows::OS_REGEXP = T.let(T.unsafe(nil), Regexp) - -# source://listen//lib/listen/backend.rb#12 -class Listen::Backend - extend ::Forwardable - - # @return [Backend] a new instance of Backend - # - # source://listen//lib/listen/backend.rb#15 - def initialize(directories, queue, silencer, config); end - - # Returns the value of attribute min_delay_between_events. - # - # source://listen//lib/listen/backend.rb#34 - def min_delay_between_events; end - - # source://forwardable/1.3.3/forwardable.rb#231 - def start(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def stop(*args, **_arg1, &block); end - - private - - # Returns the value of attribute adapter. - # - # source://listen//lib/listen/backend.rb#38 - def adapter; end -end - -# TODO: rename to Snapshot -# -# source://listen//lib/listen/change.rb#8 -class Listen::Change - # @return [Change] a new instance of Change - # - # source://listen//lib/listen/change.rb#27 - def initialize(config, record); end - - # Invalidate some part of the snapshot/record (dir, file, subtree, etc.) - # - # source://listen//lib/listen/change.rb#36 - def invalidate(type, rel_path, options); end - - # Returns the value of attribute record. - # - # source://listen//lib/listen/change.rb#25 - def record; end -end - -# TODO: test this class for coverage -# -# source://listen//lib/listen/change.rb#10 -class Listen::Change::Config - # @return [Config] a new instance of Config - # - # source://listen//lib/listen/change.rb#11 - def initialize(queue, silencer); end - - # source://listen//lib/listen/change.rb#20 - def queue(*args); end - - # @return [Boolean] - # - # source://listen//lib/listen/change.rb#16 - def silenced?(path, type); end -end - -# TODO: refactor (turn it into a normal object, cache the stat, etc) -# -# source://listen//lib/listen/directory.rb#7 -class Listen::Directory - class << self - # source://listen//lib/listen/directory.rb#62 - def _async_changes(snapshot, path, previous, options); end - - # source://listen//lib/listen/directory.rb#72 - def _change(snapshot, type, path, options); end - - # source://listen//lib/listen/directory.rb#82 - def _children(path); end - - # @return [Boolean] - # - # source://listen//lib/listen/directory.rb#56 - def ascendant_of?(base, other); end - - # source://listen//lib/listen/directory.rb#9 - def scan(snapshot, rel_path, options); end - end -end - -# source://listen//lib/listen/error.rb#6 -class Listen::Error < ::RuntimeError; end - -# source://listen//lib/listen/error.rb#9 -class Listen::Error::INotifyMaxWatchesExceeded < ::Listen::Error; end - -# source://listen//lib/listen/error.rb#7 -class Listen::Error::NotStarted < ::Listen::Error; end - -# source://listen//lib/listen/error.rb#8 -class Listen::Error::SymlinkLoop < ::Listen::Error; end - -# source://listen//lib/listen/event/processor.rb#6 -module Listen::Event; end - -# source://listen//lib/listen/event/config.rb#5 -class Listen::Event::Config - # @return [Config] a new instance of Config - # - # source://listen//lib/listen/event/config.rb#8 - def initialize(listener, event_queue, queue_optimizer, wait_for_delay, &block); end - - # source://listen//lib/listen/event/config.rb#27 - def call(*args); end - - # @return [Boolean] - # - # source://listen//lib/listen/event/config.rb#31 - def callable?; end - - # Returns the value of attribute event_queue. - # - # source://listen//lib/listen/event/config.rb#6 - def event_queue; end - - # Returns the value of attribute listener. - # - # source://listen//lib/listen/event/config.rb#6 - def listener; end - - # Returns the value of attribute min_delay_between_events. - # - # source://listen//lib/listen/event/config.rb#6 - def min_delay_between_events; end - - # source://listen//lib/listen/event/config.rb#35 - def optimize_changes(changes); end - - # source://listen//lib/listen/event/config.rb#23 - def sleep(seconds); end -end - -# source://listen//lib/listen/event/loop.rb#12 -class Listen::Event::Loop - include ::Listen::FSM - extend ::Listen::FSM::ClassMethods - - # @return [Loop] a new instance of Loop - # - # source://listen//lib/listen/event/loop.rb#24 - def initialize(config); end - - # source://listen//lib/listen/event/loop.rb#62 - def pause; end - - # source://listen//lib/listen/event/loop.rb#44 - def start; end - - # @return [Boolean] - # - # source://listen//lib/listen/event/loop.rb#37 - def started?; end - - # source://listen//lib/listen/event/loop.rb#67 - def stop; end - - # @return [Boolean] - # - # source://listen//lib/listen/event/loop.rb#74 - def stopped?; end - - # source://listen//lib/listen/event/loop.rb#31 - def wakeup_on_event; end - - private - - # source://listen//lib/listen/event/loop.rb#80 - def _process_changes; end - - # source://listen//lib/listen/event/loop.rb#88 - def _wakeup(reason); end -end - -# source://listen//lib/listen/event/loop.rb#15 -Listen::Event::Loop::Error = Listen::Error - -# source://listen//lib/listen/event/loop.rb#41 -Listen::Event::Loop::MAX_STARTUP_SECONDS = T.let(T.unsafe(nil), Float) - -# for backward compatibility -# -# source://listen//lib/listen/event/loop.rb#16 -Listen::Event::Loop::NotStarted = Listen::Error::NotStarted - -# source://listen//lib/listen/event/processor.rb#7 -class Listen::Event::Processor - # @return [Processor] a new instance of Processor - # - # source://listen//lib/listen/event/processor.rb#8 - def initialize(config, reasons); end - - # TODO: implement this properly instead of checking the state at arbitrary - # points in time - # - # source://listen//lib/listen/event/processor.rb#17 - def loop_for(latency); end - - private - - # source://listen//lib/listen/event/processor.rb#55 - def _check_stopped; end - - # source://listen//lib/listen/event/processor.rb#82 - def _deadline; end - - # source://listen//lib/listen/event/processor.rb#94 - def _flush_wakeup_reasons; end - - # for easier testing without sleep loop - # - # source://listen//lib/listen/event/processor.rb#102 - def _process_changes(event); end - - # source://listen//lib/listen/event/processor.rb#74 - def _remember_time_of_first_unprocessed_event; end - - # source://listen//lib/listen/event/processor.rb#78 - def _reset_no_unprocessed_events; end - - # source://listen//lib/listen/event/processor.rb#62 - def _sleep(seconds); end - - # blocks until event is popped - # returns the event or `nil` when the event_queue is closed - # - # source://listen//lib/listen/event/processor.rb#88 - def _wait_until_events; end - - # source://listen//lib/listen/event/processor.rb#36 - def _wait_until_events_calm_down; end - - # source://listen//lib/listen/event/processor.rb#51 - def _wait_until_no_longer_paused; end - - # Returns the value of attribute config. - # - # source://listen//lib/listen/event/processor.rb#123 - def config; end -end - -# source://listen//lib/listen/event/processor.rb#33 -class Listen::Event::Processor::Stopped < ::RuntimeError; end - -# source://listen//lib/listen/event/queue.rb#9 -class Listen::Event::Queue - extend ::Forwardable - - # @return [Queue] a new instance of Queue - # - # source://listen//lib/listen/event/queue.rb#22 - def initialize(config); end - - # source://listen//lib/listen/event/queue.rb#27 - def <<(args); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def close(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def empty?(*args, **_arg1, &block); end - - # source://forwardable/1.3.3/forwardable.rb#231 - def pop(*args, **_arg1, &block); end - - private - - # source://listen//lib/listen/event/queue.rb#47 - def _safe_relative_from_cwd(dir); end -end - -# source://listen//lib/listen/event/queue.rb#12 -class Listen::Event::Queue::Config - # @return [Config] a new instance of Config - # - # source://listen//lib/listen/event/queue.rb#13 - def initialize(relative); end - - # @return [Boolean] - # - # source://listen//lib/listen/event/queue.rb#17 - def relative?; end -end - -# source://listen//lib/listen/fsm.rb#8 -module Listen::FSM - mixes_in_class_methods ::Listen::FSM::ClassMethods - - # Note: including classes must call initialize_fsm from their initialize method. - # - # source://listen//lib/listen/fsm.rb#42 - def initialize_fsm; end - - # Current state of the FSM, stored as a symbol - # - # source://listen//lib/listen/fsm.rb#50 - def state; end - - # checks for one of the given states to wait for - # if not already, waits for a state change (up to timeout seconds--`nil` means infinite) - # returns truthy iff the transition to one of the desired state has occurred - # - # source://listen//lib/listen/fsm.rb#55 - def wait_for_state(*wait_for_states, timeout: T.unsafe(nil)); end - - private - - # source://listen//lib/listen/fsm.rb#108 - def current_state; end - - # source://listen//lib/listen/fsm.rb#69 - def transition(new_state_name); end - - # Low-level, immediate state transition with no checks or callbacks. - # - # source://listen//lib/listen/fsm.rb#77 - def transition!(new_state_name); end - - # source://listen//lib/listen/fsm.rb#103 - def transition_with_callbacks!(new_state); end - - # source://listen//lib/listen/fsm.rb#87 - def validate_and_sanitize_new_state(new_state_name); end - - class << self - # Included hook to extend class methods - # - # source://listen//lib/listen/fsm.rb#10 - def included(klass); end - end -end - -# source://listen//lib/listen/fsm.rb#14 -module Listen::FSM::ClassMethods - # Obtain or set the start state - # Passing a state name sets the start state - # - # source://listen//lib/listen/fsm.rb#17 - def start_state(new_start_state = T.unsafe(nil)); end - - # Declare an FSM state and optionally provide a callback block to fire on state entry - # Options: - # * to: a state or array of states this state can transition to - # - # source://listen//lib/listen/fsm.rb#35 - def state(state_name, to: T.unsafe(nil), &block); end - - # The valid states for this FSM, as a hash with state name symbols as keys and State objects as values. - # - # source://listen//lib/listen/fsm.rb#28 - def states; end -end - -# source://listen//lib/listen/fsm.rb#112 -class Listen::FSM::State - # @return [State] a new instance of State - # - # source://listen//lib/listen/fsm.rb#115 - def initialize(name, transitions, &block); end - - # source://listen//lib/listen/fsm.rb#123 - def call(obj); end - - # Returns the value of attribute name. - # - # source://listen//lib/listen/fsm.rb#113 - def name; end - - # Returns the value of attribute transitions. - # - # source://listen//lib/listen/fsm.rb#113 - def transitions; end - - # @return [Boolean] - # - # source://listen//lib/listen/fsm.rb#127 - def valid_transition?(new_state); end -end - -# source://listen//lib/listen/file.rb#6 -class Listen::File - class << self - # source://listen//lib/listen/file.rb#10 - def change(record, rel_path); end - - # @return [Boolean] - # - # source://listen//lib/listen/file.rb#86 - def inaccurate_mac_time?(stat); end - end -end - -# source://listen//lib/listen/listener/config.rb#4 -class Listen::Listener - include ::Listen::FSM - extend ::Listen::FSM::ClassMethods - - # Initializes the directories listener. - # - # - # @param directory [String] the directories to listen to - # @param options [Hash] the listen options (see Listen::Listener::Options) - # @return [Listener] a new instance of Listener - # @yield [modified, added, removed] the changed files - # @yieldparam modified [Array] the list of modified files - # @yieldparam added [Array] the list of added files - # @yieldparam removed [Array] the list of removed files - # - # source://listen//lib/listen/listener.rb#37 - def initialize(*dirs, &block); end - - # source://listen//lib/listen/listener.rb#124 - def ignore(regexps); end - - # source://listen//lib/listen/listener.rb#128 - def ignore!(regexps); end - - # source://listen//lib/listen/listener.rb#132 - def only(regexps); end - - # Stops invoking callbacks (messages pile up) - # - # source://listen//lib/listen/listener.rb#107 - def pause; end - - # @return [Boolean] - # - # source://listen//lib/listen/listener.rb#116 - def paused?; end - - # processing means callbacks are called - # - # @return [Boolean] - # - # source://listen//lib/listen/listener.rb#112 - def processing?; end - - # Starts processing events and starts adapters - # or resumes invoking callbacks if paused - # - # source://listen//lib/listen/listener.rb#89 - def start; end - - # Stops both listening for events and processing them - # - # source://listen//lib/listen/listener.rb#102 - def stop; end - - # @return [Boolean] - # - # source://listen//lib/listen/listener.rb#120 - def stopped?; end -end - -# source://listen//lib/listen/listener/config.rb#5 -class Listen::Listener::Config - # @return [Config] a new instance of Config - # - # source://listen//lib/listen/listener/config.rb#17 - def initialize(opts); end - - # source://listen//lib/listen/listener/config.rb#30 - def adapter_instance_options(klass); end - - # source://listen//lib/listen/listener/config.rb#35 - def adapter_select_options; end - - # Returns the value of attribute min_delay_between_events. - # - # source://listen//lib/listen/listener/config.rb#28 - def min_delay_between_events; end - - # @return [Boolean] - # - # source://listen//lib/listen/listener/config.rb#24 - def relative?; end - - # Returns the value of attribute silencer_rules. - # - # source://listen//lib/listen/listener/config.rb#28 - def silencer_rules; end -end - -# source://listen//lib/listen/listener/config.rb#6 -Listen::Listener::Config::DEFAULTS = T.let(T.unsafe(nil), Hash) - -# source://listen//lib/listen/monotonic_time.rb#4 -module Listen::MonotonicTime - class << self - # source://listen//lib/listen/monotonic_time.rb#8 - def now; end - end -end - -# source://listen//lib/listen/options.rb#4 -class Listen::Options - # @return [Options] a new instance of Options - # - # source://listen//lib/listen/options.rb#5 - def initialize(opts, defaults); end - - # source://listen//lib/listen/options.rb#20 - def method_missing(name, *_); end - - private - - # @return [Boolean] - # - # source://listen//lib/listen/options.rb#16 - def respond_to_missing?(name, *_); end -end - -# source://listen//lib/listen/queue_optimizer.rb#4 -class Listen::QueueOptimizer - # @return [QueueOptimizer] a new instance of QueueOptimizer - # - # source://listen//lib/listen/queue_optimizer.rb#32 - def initialize(config); end - - # source://listen//lib/listen/queue_optimizer.rb#24 - def smoosh_changes(changes); end - - private - - # source://listen//lib/listen/queue_optimizer.rb#69 - def _calculate_add_remove_difference(actions, path, default_if_exists); end - - # source://listen//lib/listen/queue_optimizer.rb#61 - def _logical_action_for(path, actions); end - - # remove extraneous rb-inotify events, keeping them only if it's a possible - # editor rename() call (e.g. Kate and Sublime) - # - # source://listen//lib/listen/queue_optimizer.rb#91 - def _reinterpret_related_changes(cookies); end - - # groups changes into the expected structure expected by - # clients - # - # source://listen//lib/listen/queue_optimizer.rb#42 - def _squash_changes(changes); end - - # Returns the value of attribute config. - # - # source://listen//lib/listen/queue_optimizer.rb#38 - def config; end - - # @return [Boolean] - # - # source://listen//lib/listen/queue_optimizer.rb#107 - def editor_modified?(changes); end -end - -# source://listen//lib/listen/queue_optimizer.rb#5 -class Listen::QueueOptimizer::Config - # @return [Config] a new instance of Config - # - # source://listen//lib/listen/queue_optimizer.rb#6 - def initialize(adapter_class, silencer); end - - # source://listen//lib/listen/queue_optimizer.rb#19 - def debug(*args, &block); end - - # @return [Boolean] - # - # source://listen//lib/listen/queue_optimizer.rb#11 - def exist?(path); end - - # @return [Boolean] - # - # source://listen//lib/listen/queue_optimizer.rb#15 - def silenced?(path, type); end -end - -# @private api -# -# source://listen//lib/listen/record/entry.rb#5 -class Listen::Record - # @return [Record] a new instance of Record - # - # source://listen//lib/listen/record.rb#14 - def initialize(directory, silencer); end - - # source://listen//lib/listen/record.rb#20 - def add_dir(rel_path); end - - # source://listen//lib/listen/record.rb#62 - def build; end - - # source://listen//lib/listen/record.rb#46 - def dir_entries(rel_path); end - - # source://listen//lib/listen/record.rb#36 - def file_data(rel_path); end - - # TODO: one Record object per watched directory? - # TODO: deprecate - # - # source://listen//lib/listen/record.rb#12 - def root; end - - # source://listen//lib/listen/record.rb#31 - def unset_path(rel_path); end - - # source://listen//lib/listen/record.rb#26 - def update_file(rel_path, data); end - - private - - # source://listen//lib/listen/record.rb#103 - def _fast_build_dir(remaining, symlink_detector); end - - # source://listen//lib/listen/record.rb#117 - def _fast_try_file(entry); end - - # source://listen//lib/listen/record.rb#91 - def _fast_unset_path(dirname, basename); end - - # source://listen//lib/listen/record.rb#83 - def _fast_update_file(dirname, basename, data); end - - # @return [Boolean] - # - # source://listen//lib/listen/record.rb#75 - def empty_dirname?(dirname); end - - # source://listen//lib/listen/record.rb#79 - def reset_tree; end -end - -# Represents a directory entry (dir or file) -# -# source://listen//lib/listen/record/entry.rb#7 -class Listen::Record::Entry - # file: "/home/me/watched_dir", "app/models", "foo.rb" - # dir, "/home/me/watched_dir", "." - # - # @return [Entry] a new instance of Entry - # - # source://listen//lib/listen/record/entry.rb#10 - def initialize(root, relative, name = T.unsafe(nil)); end - - # source://listen//lib/listen/record/entry.rb#18 - def children; end - - # source://listen//lib/listen/record/entry.rb#25 - def meta; end - - # Returns the value of attribute name. - # - # source://listen//lib/listen/record/entry.rb#16 - def name; end - - # source://listen//lib/listen/record/entry.rb#43 - def real_path; end - - # record hash is e.g. - # if @record["/home/me/watched_dir"]["project/app/models"]["foo.rb"] - # if @record["/home/me/watched_dir"]["project/app"]["models"] - # record_dir_key is "project/app/models" - # - # source://listen//lib/listen/record/entry.rb#34 - def record_dir_key; end - - # Returns the value of attribute relative. - # - # source://listen//lib/listen/record/entry.rb#16 - def relative; end - - # Returns the value of attribute root. - # - # source://listen//lib/listen/record/entry.rb#16 - def root; end - - # source://listen//lib/listen/record/entry.rb#38 - def sys_path; end - - private - - # @raise [Errno::ENOTDIR] - # - # source://listen//lib/listen/record/entry.rb#54 - def _entries(dir); end - - # source://listen//lib/listen/record/entry.rb#49 - def _join; end -end - -# source://listen//lib/listen/record/symlink_detector.rb#9 -class Listen::Record::SymlinkDetector - # @return [SymlinkDetector] a new instance of SymlinkDetector - # - # source://listen//lib/listen/record/symlink_detector.rb#24 - def initialize; end - - # source://listen//lib/listen/record/symlink_detector.rb#28 - def verify_unwatched!(entry); end - - # Leaving this stub here since some warning work-arounds were referring to it. - # Deprecated. Will be removed in Listen v4.0. - # - # source://listen//lib/listen/record/symlink_detector.rb#35 - def warn(message); end - - private - - # @raise [::Listen::Error::SymlinkLoop] - # - # source://listen//lib/listen/record/symlink_detector.rb#41 - def _fail(symlinked, real_path); end -end - -# for backward compatibility -# -# source://listen//lib/listen/record/symlink_detector.rb#22 -Listen::Record::SymlinkDetector::Error = Listen::Error - -# source://listen//lib/listen/record/symlink_detector.rb#10 -Listen::Record::SymlinkDetector::README_URL = T.let(T.unsafe(nil), String) - -# source://listen//lib/listen/record/symlink_detector.rb#12 -Listen::Record::SymlinkDetector::SYMLINK_LOOP_ERROR = T.let(T.unsafe(nil), String) - -# source://listen//lib/listen/silencer.rb#4 -class Listen::Silencer - # @return [Silencer] a new instance of Silencer - # - # source://listen//lib/listen/silencer.rb#67 - def initialize(**options); end - - # TODO: deprecate this mutator - # - # source://listen//lib/listen/silencer.rb#72 - def configure(options); end - - # TODO: deprecate these mutators; use attr_reader instead - # - # source://listen//lib/listen/silencer.rb#65 - def ignore_patterns; end - - # TODO: deprecate these mutators; use attr_reader instead - # - # source://listen//lib/listen/silencer.rb#65 - def ignore_patterns=(_arg0); end - - # TODO: deprecate these mutators; use attr_reader instead - # - # source://listen//lib/listen/silencer.rb#65 - def only_patterns; end - - # TODO: deprecate these mutators; use attr_reader instead - # - # source://listen//lib/listen/silencer.rb#65 - def only_patterns=(_arg0); end - - # @return [Boolean] - # - # source://listen//lib/listen/silencer.rb#77 - def silenced?(relative_path, type); end - - private - - # @return [Boolean] - # - # source://listen//lib/listen/silencer.rb#85 - def _ignore?(path); end - - # source://listen//lib/listen/silencer.rb#93 - def _init_ignores(ignores, overrides); end - - # @return [Boolean] - # - # source://listen//lib/listen/silencer.rb#89 - def _only?(path); end -end - -# source://listen//lib/listen/silencer/controller.rb#5 -class Listen::Silencer::Controller - # @return [Controller] a new instance of Controller - # - # source://listen//lib/listen/silencer/controller.rb#6 - def initialize(silencer, default_options); end - - # source://listen//lib/listen/silencer/controller.rb#19 - def append_ignores(*regexps); end - - # source://listen//lib/listen/silencer/controller.rb#24 - def replace_with_bang_ignores(regexps); end - - # source://listen//lib/listen/silencer/controller.rb#28 - def replace_with_only(regexps); end - - private - - # source://listen//lib/listen/silencer/controller.rb#34 - def _reconfigure_silencer(extra_options); end -end - -# The default list of files that get ignored. -# -# source://listen//lib/listen/silencer.rb#24 -Listen::Silencer::DEFAULT_IGNORED_EXTENSIONS = T.let(T.unsafe(nil), Regexp) - -# The default list of directories that get ignored. -# -# source://listen//lib/listen/silencer.rb#6 -Listen::Silencer::DEFAULT_IGNORED_FILES = T.let(T.unsafe(nil), Regexp) - -# source://listen//lib/listen/thread.rb#8 -module Listen::Thread - class << self - # Creates a new thread with the given name. - # Any exceptions raised by the thread will be logged with the thread name and complete backtrace. - # - # source://listen//lib/listen/thread.rb#13 - def new(name, &block); end - - # source://listen//lib/listen/thread.rb#25 - def rescue_and_log(method_name, *args, caller_stack: T.unsafe(nil)); end - - private - - # source://listen//lib/listen/thread.rb#43 - def _exception_with_causes(exception); end - - # source://listen//lib/listen/thread.rb#33 - def _log_exception(exception, thread_name, caller_stack: T.unsafe(nil)); end - end -end - -# source://listen//lib/listen/version.rb#4 -Listen::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/logger@1.6.0.rbi b/sorbet/rbi/gems/logger@1.6.0.rbi new file mode 100644 index 00000000..0723d96a --- /dev/null +++ b/sorbet/rbi/gems/logger@1.6.0.rbi @@ -0,0 +1,912 @@ +# typed: false + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `logger` gem. +# Please instead update this file by running `bin/tapioca gem logger`. + + +# \Class \Logger provides a simple but sophisticated logging utility that +# you can use to create one or more +# {event logs}[https://en.wikipedia.org/wiki/Logging_(software)#Event_logs] +# for your program. +# Each such log contains a chronological sequence of entries +# that provides a record of the program's activities. +# +# == About the Examples +# +# All examples on this page assume that \Logger has been required: +# +# require 'logger' +# +# == Synopsis +# +# Create a log with Logger.new: +# +# # Single log file. +# logger = Logger.new('t.log') +# # Size-based rotated logging: 3 10-megabyte files. +# logger = Logger.new('t.log', 3, 10485760) +# # Period-based rotated logging: daily (also allowed: 'weekly', 'monthly'). +# logger = Logger.new('t.log', 'daily') +# # Log to an IO stream. +# logger = Logger.new($stdout) +# +# Add entries (level, message) with Logger#add: +# +# logger.add(Logger::DEBUG, 'Maximal debugging info') +# logger.add(Logger::INFO, 'Non-error information') +# logger.add(Logger::WARN, 'Non-error warning') +# logger.add(Logger::ERROR, 'Non-fatal error') +# logger.add(Logger::FATAL, 'Fatal error') +# logger.add(Logger::UNKNOWN, 'Most severe') +# +# Close the log with Logger#close: +# +# logger.close +# +# == Entries +# +# You can add entries with method Logger#add: +# +# logger.add(Logger::DEBUG, 'Maximal debugging info') +# logger.add(Logger::INFO, 'Non-error information') +# logger.add(Logger::WARN, 'Non-error warning') +# logger.add(Logger::ERROR, 'Non-fatal error') +# logger.add(Logger::FATAL, 'Fatal error') +# logger.add(Logger::UNKNOWN, 'Most severe') +# +# These shorthand methods also add entries: +# +# logger.debug('Maximal debugging info') +# logger.info('Non-error information') +# logger.warn('Non-error warning') +# logger.error('Non-fatal error') +# logger.fatal('Fatal error') +# logger.unknown('Most severe') +# +# When you call any of these methods, +# the entry may or may not be written to the log, +# depending on the entry's severity and on the log level; +# see {Log Level}[rdoc-ref:Logger@Log+Level] +# +# An entry always has: +# +# - A severity (the required argument to #add). +# - An automatically created timestamp. +# +# And may also have: +# +# - A message. +# - A program name. +# +# Example: +# +# logger = Logger.new($stdout) +# logger.add(Logger::INFO, 'My message.', 'mung') +# # => I, [2022-05-07T17:21:46.536234 #20536] INFO -- mung: My message. +# +# The default format for an entry is: +# +# "%s, [%s #%d] %5s -- %s: %s\n" +# +# where the values to be formatted are: +# +# - \Severity (one letter). +# - Timestamp. +# - Process id. +# - \Severity (word). +# - Program name. +# - Message. +# +# You can use a different entry format by: +# +# - Setting a custom format proc (affects following entries); +# see {formatter=}[Logger.html#attribute-i-formatter]. +# - Calling any of the methods above with a block +# (affects only the one entry). +# Doing so can have two benefits: +# +# - Context: the block can evaluate the entire program context +# and create a context-dependent message. +# - Performance: the block is not evaluated unless the log level +# permits the entry actually to be written: +# +# logger.error { my_slow_message_generator } +# +# Contrast this with the string form, where the string is +# always evaluated, regardless of the log level: +# +# logger.error("#{my_slow_message_generator}") +# +# === \Severity +# +# The severity of a log entry has two effects: +# +# - Determines whether the entry is selected for inclusion in the log; +# see {Log Level}[rdoc-ref:Logger@Log+Level]. +# - Indicates to any log reader (whether a person or a program) +# the relative importance of the entry. +# +# === Timestamp +# +# The timestamp for a log entry is generated automatically +# when the entry is created. +# +# The logged timestamp is formatted by method +# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime] +# using this format string: +# +# '%Y-%m-%dT%H:%M:%S.%6N' +# +# Example: +# +# logger = Logger.new($stdout) +# logger.add(Logger::INFO) +# # => I, [2022-05-07T17:04:32.318331 #20536] INFO -- : nil +# +# You can set a different format using method #datetime_format=. +# +# === Message +# +# The message is an optional argument to an entry method: +# +# logger = Logger.new($stdout) +# logger.add(Logger::INFO, 'My message') +# # => I, [2022-05-07T18:15:37.647581 #20536] INFO -- : My message +# +# For the default entry formatter, Logger::Formatter, +# the message object may be: +# +# - A string: used as-is. +# - An Exception: message.message is used. +# - Anything else: message.inspect is used. +# +# *Note*: Logger::Formatter does not escape or sanitize +# the message passed to it. +# Developers should be aware that malicious data (user input) +# may be in the message, and should explicitly escape untrusted data. +# +# You can use a custom formatter to escape message data; +# see the example at {formatter=}[Logger.html#attribute-i-formatter]. +# +# === Program Name +# +# The program name is an optional argument to an entry method: +# +# logger = Logger.new($stdout) +# logger.add(Logger::INFO, 'My message', 'mung') +# # => I, [2022-05-07T18:17:38.084716 #20536] INFO -- mung: My message +# +# The default program name for a new logger may be set in the call to +# Logger.new via optional keyword argument +progname+: +# +# logger = Logger.new('t.log', progname: 'mung') +# +# The default program name for an existing logger may be set +# by a call to method #progname=: +# +# logger.progname = 'mung' +# +# The current program name may be retrieved with method +# {progname}[Logger.html#attribute-i-progname]: +# +# logger.progname # => "mung" +# +# == Log Level +# +# The log level setting determines whether an entry is actually +# written to the log, based on the entry's severity. +# +# These are the defined severities (least severe to most severe): +# +# logger = Logger.new($stdout) +# logger.add(Logger::DEBUG, 'Maximal debugging info') +# # => D, [2022-05-07T17:57:41.776220 #20536] DEBUG -- : Maximal debugging info +# logger.add(Logger::INFO, 'Non-error information') +# # => I, [2022-05-07T17:59:14.349167 #20536] INFO -- : Non-error information +# logger.add(Logger::WARN, 'Non-error warning') +# # => W, [2022-05-07T18:00:45.337538 #20536] WARN -- : Non-error warning +# logger.add(Logger::ERROR, 'Non-fatal error') +# # => E, [2022-05-07T18:02:41.592912 #20536] ERROR -- : Non-fatal error +# logger.add(Logger::FATAL, 'Fatal error') +# # => F, [2022-05-07T18:05:24.703931 #20536] FATAL -- : Fatal error +# logger.add(Logger::UNKNOWN, 'Most severe') +# # => A, [2022-05-07T18:07:54.657491 #20536] ANY -- : Most severe +# +# The default initial level setting is Logger::DEBUG, the lowest level, +# which means that all entries are to be written, regardless of severity: +# +# logger = Logger.new($stdout) +# logger.level # => 0 +# logger.add(0, "My message") +# # => D, [2022-05-11T15:10:59.773668 #20536] DEBUG -- : My message +# +# You can specify a different setting in a new logger +# using keyword argument +level+ with an appropriate value: +# +# logger = Logger.new($stdout, level: Logger::ERROR) +# logger = Logger.new($stdout, level: 'error') +# logger = Logger.new($stdout, level: :error) +# logger.level # => 3 +# +# With this level, entries with severity Logger::ERROR and higher +# are written, while those with lower severities are not written: +# +# logger = Logger.new($stdout, level: Logger::ERROR) +# logger.add(3) +# # => E, [2022-05-11T15:17:20.933362 #20536] ERROR -- : nil +# logger.add(2) # Silent. +# +# You can set the log level for an existing logger +# with method #level=: +# +# logger.level = Logger::ERROR +# +# These shorthand methods also set the level: +# +# logger.debug! # => 0 +# logger.info! # => 1 +# logger.warn! # => 2 +# logger.error! # => 3 +# logger.fatal! # => 4 +# +# You can retrieve the log level with method #level. +# +# logger.level = Logger::ERROR +# logger.level # => 3 +# +# These methods return whether a given +# level is to be written: +# +# logger.level = Logger::ERROR +# logger.debug? # => false +# logger.info? # => false +# logger.warn? # => false +# logger.error? # => true +# logger.fatal? # => true +# +# == Log File Rotation +# +# By default, a log file is a single file that grows indefinitely +# (until explicitly closed); there is no file rotation. +# +# To keep log files to a manageable size, +# you can use _log_ _file_ _rotation_, which uses multiple log files: +# +# - Each log file has entries for a non-overlapping +# time interval. +# - Only the most recent log file is open and active; +# the others are closed and inactive. +# +# === Size-Based Rotation +# +# For size-based log file rotation, call Logger.new with: +# +# - Argument +logdev+ as a file path. +# - Argument +shift_age+ with a positive integer: +# the number of log files to be in the rotation. +# - Argument +shift_size+ as a positive integer: +# the maximum size (in bytes) of each log file; +# defaults to 1048576 (1 megabyte). +# +# Examples: +# +# logger = Logger.new('t.log', 3) # Three 1-megabyte files. +# logger = Logger.new('t.log', 5, 10485760) # Five 10-megabyte files. +# +# For these examples, suppose: +# +# logger = Logger.new('t.log', 3) +# +# Logging begins in the new log file, +t.log+; +# the log file is "full" and ready for rotation +# when a new entry would cause its size to exceed +shift_size+. +# +# The first time +t.log+ is full: +# +# - +t.log+ is closed and renamed to +t.log.0+. +# - A new file +t.log+ is opened. +# +# The second time +t.log+ is full: +# +# - +t.log.0 is renamed as +t.log.1+. +# - +t.log+ is closed and renamed to +t.log.0+. +# - A new file +t.log+ is opened. +# +# Each subsequent time that +t.log+ is full, +# the log files are rotated: +# +# - +t.log.1+ is removed. +# - +t.log.0 is renamed as +t.log.1+. +# - +t.log+ is closed and renamed to +t.log.0+. +# - A new file +t.log+ is opened. +# +# === Periodic Rotation +# +# For periodic rotation, call Logger.new with: +# +# - Argument +logdev+ as a file path. +# - Argument +shift_age+ as a string period indicator. +# +# Examples: +# +# logger = Logger.new('t.log', 'daily') # Rotate log files daily. +# logger = Logger.new('t.log', 'weekly') # Rotate log files weekly. +# logger = Logger.new('t.log', 'monthly') # Rotate log files monthly. +# +# Example: +# +# logger = Logger.new('t.log', 'daily') +# +# When the given period expires: +# +# - The base log file, +t.log+ is closed and renamed +# with a date-based suffix such as +t.log.20220509+. +# - A new log file +t.log+ is opened. +# - Nothing is removed. +# +# The default format for the suffix is '%Y%m%d', +# which produces a suffix similar to the one above. +# You can set a different format using create-time option +# +shift_period_suffix+; +# see details and suggestions at +# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime]. +# +# source://logger//lib/logger/version.rb#3 +class Logger + include ::Logger::Severity + + # :call-seq: + # Logger.new(logdev, shift_age = 0, shift_size = 1048576, **options) + # + # With the single argument +logdev+, + # returns a new logger with all default options: + # + # Logger.new('t.log') # => # + # + # Argument +logdev+ must be one of: + # + # - A string filepath: entries are to be written + # to the file at that path; if the file at that path exists, + # new entries are appended. + # - An IO stream (typically +$stdout+, +$stderr+. or an open file): + # entries are to be written to the given stream. + # - +nil+ or +File::NULL+: no entries are to be written. + # + # Examples: + # + # Logger.new('t.log') + # Logger.new($stdout) + # + # The keyword options are: + # + # - +level+: sets the log level; default value is Logger::DEBUG. + # See {Log Level}[rdoc-ref:Logger@Log+Level]: + # + # Logger.new('t.log', level: Logger::ERROR) + # + # - +progname+: sets the default program name; default is +nil+. + # See {Program Name}[rdoc-ref:Logger@Program+Name]: + # + # Logger.new('t.log', progname: 'mung') + # + # - +formatter+: sets the entry formatter; default is +nil+. + # See {formatter=}[Logger.html#attribute-i-formatter]. + # - +datetime_format+: sets the format for entry timestamp; + # default is +nil+. + # See #datetime_format=. + # - +binmode+: sets whether the logger writes in binary mode; + # default is +false+. + # - +shift_period_suffix+: sets the format for the filename suffix + # for periodic log file rotation; default is '%Y%m%d'. + # See {Periodic Rotation}[rdoc-ref:Logger@Periodic+Rotation]. + # + # @return [Logger] a new instance of Logger + # + # source://logger//lib/logger.rb#578 + def initialize(logdev, shift_age = T.unsafe(nil), shift_size = T.unsafe(nil), level: T.unsafe(nil), progname: T.unsafe(nil), formatter: T.unsafe(nil), datetime_format: T.unsafe(nil), binmode: T.unsafe(nil), shift_period_suffix: T.unsafe(nil)); end + + # Writes the given +msg+ to the log with no formatting; + # returns the number of characters written, + # or +nil+ if no log device exists: + # + # logger = Logger.new($stdout) + # logger << 'My message.' # => 10 + # + # Output: + # + # My message. + # + # source://logger//lib/logger.rb#684 + def <<(msg); end + + # Creates a log entry, which may or may not be written to the log, + # depending on the entry's severity and on the log level. + # See {Log Level}[rdoc-ref:Logger@Log+Level] + # and {Entries}[rdoc-ref:Logger@Entries] for details. + # + # Examples: + # + # logger = Logger.new($stdout, progname: 'mung') + # logger.add(Logger::INFO) + # logger.add(Logger::ERROR, 'No good') + # logger.add(Logger::ERROR, 'No good', 'gnum') + # + # Output: + # + # I, [2022-05-12T16:25:31.469726 #36328] INFO -- mung: mung + # E, [2022-05-12T16:25:55.349414 #36328] ERROR -- mung: No good + # E, [2022-05-12T16:26:35.841134 #36328] ERROR -- gnum: No good + # + # These convenience methods have implicit severity: + # + # - #debug. + # - #info. + # - #warn. + # - #error. + # - #fatal. + # - #unknown. + # + # source://logger//lib/logger.rb#651 + def add(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end + + # Closes the logger; returns +nil+: + # + # logger = Logger.new('t.log') + # logger.close # => nil + # logger.info('foo') # Prints "log writing failed. closed stream" + # + # Related: Logger#reopen. + # + # source://logger//lib/logger.rb#731 + def close; end + + # Returns the date-time format; see #datetime_format=. + # + # source://logger//lib/logger.rb#438 + def datetime_format; end + + # Sets the date-time format. + # + # Argument +datetime_format+ should be either of these: + # + # - A string suitable for use as a format for method + # {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime]. + # - +nil+: the logger uses '%Y-%m-%dT%H:%M:%S.%6N'. + # + # source://logger//lib/logger.rb#432 + def datetime_format=(datetime_format); end + + # Equivalent to calling #add with severity Logger::DEBUG. + # + # source://logger//lib/logger.rb#690 + def debug(progname = T.unsafe(nil), &block); end + + # Sets the log level to Logger::DEBUG. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # source://logger//lib/logger.rb#487 + def debug!; end + + # Returns +true+ if the log level allows entries with severity + # Logger::DEBUG to be written, +false+ otherwise. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # @return [Boolean] + # + # source://logger//lib/logger.rb#482 + def debug?; end + + # Equivalent to calling #add with severity Logger::ERROR. + # + # source://logger//lib/logger.rb#708 + def error(progname = T.unsafe(nil), &block); end + + # Sets the log level to Logger::ERROR. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # source://logger//lib/logger.rb#520 + def error!; end + + # Returns +true+ if the log level allows entries with severity + # Logger::ERROR to be written, +false+ otherwise. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # @return [Boolean] + # + # source://logger//lib/logger.rb#515 + def error?; end + + # Equivalent to calling #add with severity Logger::FATAL. + # + # source://logger//lib/logger.rb#714 + def fatal(progname = T.unsafe(nil), &block); end + + # Sets the log level to Logger::FATAL. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # source://logger//lib/logger.rb#531 + def fatal!; end + + # Returns +true+ if the log level allows entries with severity + # Logger::FATAL to be written, +false+ otherwise. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # @return [Boolean] + # + # source://logger//lib/logger.rb#526 + def fatal?; end + + # Sets or retrieves the logger entry formatter proc. + # + # When +formatter+ is +nil+, the logger uses Logger::Formatter. + # + # When +formatter+ is a proc, a new entry is formatted by the proc, + # which is called with four arguments: + # + # - +severity+: The severity of the entry. + # - +time+: A Time object representing the entry's timestamp. + # - +progname+: The program name for the entry. + # - +msg+: The message for the entry (string or string-convertible object). + # + # The proc should return a string containing the formatted entry. + # + # This custom formatter uses + # {String#dump}[https://docs.ruby-lang.org/en/master/String.html#method-i-dump] + # to escape the message string: + # + # logger = Logger.new($stdout, progname: 'mung') + # original_formatter = logger.formatter || Logger::Formatter.new + # logger.formatter = proc { |severity, time, progname, msg| + # original_formatter.call(severity, time, progname, msg.dump) + # } + # logger.add(Logger::INFO, "hello \n ''") + # logger.add(Logger::INFO, "\f\x00\xff\\\"") + # + # Output: + # + # I, [2022-05-13T13:16:29.637488 #8492] INFO -- mung: "hello \n ''" + # I, [2022-05-13T13:16:29.637610 #8492] INFO -- mung: "\f\x00\xFF\\\"" + # + # source://logger//lib/logger.rb#473 + def formatter; end + + # Sets or retrieves the logger entry formatter proc. + # + # When +formatter+ is +nil+, the logger uses Logger::Formatter. + # + # When +formatter+ is a proc, a new entry is formatted by the proc, + # which is called with four arguments: + # + # - +severity+: The severity of the entry. + # - +time+: A Time object representing the entry's timestamp. + # - +progname+: The program name for the entry. + # - +msg+: The message for the entry (string or string-convertible object). + # + # The proc should return a string containing the formatted entry. + # + # This custom formatter uses + # {String#dump}[https://docs.ruby-lang.org/en/master/String.html#method-i-dump] + # to escape the message string: + # + # logger = Logger.new($stdout, progname: 'mung') + # original_formatter = logger.formatter || Logger::Formatter.new + # logger.formatter = proc { |severity, time, progname, msg| + # original_formatter.call(severity, time, progname, msg.dump) + # } + # logger.add(Logger::INFO, "hello \n ''") + # logger.add(Logger::INFO, "\f\x00\xff\\\"") + # + # Output: + # + # I, [2022-05-13T13:16:29.637488 #8492] INFO -- mung: "hello \n ''" + # I, [2022-05-13T13:16:29.637610 #8492] INFO -- mung: "\f\x00\xFF\\\"" + # + # source://logger//lib/logger.rb#473 + def formatter=(_arg0); end + + # Equivalent to calling #add with severity Logger::INFO. + # + # source://logger//lib/logger.rb#696 + def info(progname = T.unsafe(nil), &block); end + + # Sets the log level to Logger::INFO. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # source://logger//lib/logger.rb#498 + def info!; end + + # Returns +true+ if the log level allows entries with severity + # Logger::INFO to be written, +false+ otherwise. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # @return [Boolean] + # + # source://logger//lib/logger.rb#493 + def info?; end + + # Logging severity threshold (e.g. Logger::INFO). + # + # source://logger//lib/logger.rb#383 + def level; end + + # Sets the log level; returns +severity+. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # Argument +severity+ may be an integer, a string, or a symbol: + # + # logger.level = Logger::ERROR # => 3 + # logger.level = 3 # => 3 + # logger.level = 'error' # => "error" + # logger.level = :error # => :error + # + # Logger#sev_threshold= is an alias for Logger#level=. + # + # source://logger//lib/logger.rb#399 + def level=(severity); end + + # Creates a log entry, which may or may not be written to the log, + # depending on the entry's severity and on the log level. + # See {Log Level}[rdoc-ref:Logger@Log+Level] + # and {Entries}[rdoc-ref:Logger@Entries] for details. + # + # Examples: + # + # logger = Logger.new($stdout, progname: 'mung') + # logger.add(Logger::INFO) + # logger.add(Logger::ERROR, 'No good') + # logger.add(Logger::ERROR, 'No good', 'gnum') + # + # Output: + # + # I, [2022-05-12T16:25:31.469726 #36328] INFO -- mung: mung + # E, [2022-05-12T16:25:55.349414 #36328] ERROR -- mung: No good + # E, [2022-05-12T16:26:35.841134 #36328] ERROR -- gnum: No good + # + # These convenience methods have implicit severity: + # + # - #debug. + # - #info. + # - #warn. + # - #error. + # - #fatal. + # - #unknown. + # + # source://logger//lib/logger.rb#651 + def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end + + # Program name to include in log messages. + # + # source://logger//lib/logger.rb#422 + def progname; end + + # Program name to include in log messages. + # + # source://logger//lib/logger.rb#422 + def progname=(_arg0); end + + # Sets the logger's output stream: + # + # - If +logdev+ is +nil+, reopens the current output stream. + # - If +logdev+ is a filepath, opens the indicated file for append. + # - If +logdev+ is an IO stream + # (usually $stdout, $stderr, or an open File object), + # opens the stream for append. + # + # Example: + # + # logger = Logger.new('t.log') + # logger.add(Logger::ERROR, 'one') + # logger.close + # logger.add(Logger::ERROR, 'two') # Prints 'log writing failed. closed stream' + # logger.reopen + # logger.add(Logger::ERROR, 'three') + # logger.close + # File.readlines('t.log') + # # => + # # ["# Logfile created on 2022-05-12 14:21:19 -0500 by logger.rb/v1.5.0\n", + # # "E, [2022-05-12T14:21:27.596726 #22428] ERROR -- : one\n", + # # "E, [2022-05-12T14:23:05.847241 #22428] ERROR -- : three\n"] + # + # source://logger//lib/logger.rb#619 + def reopen(logdev = T.unsafe(nil)); end + + # Logging severity threshold (e.g. Logger::INFO). + # + # source://logger//lib/logger.rb#383 + def sev_threshold; end + + # Sets the log level; returns +severity+. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # Argument +severity+ may be an integer, a string, or a symbol: + # + # logger.level = Logger::ERROR # => 3 + # logger.level = 3 # => 3 + # logger.level = 'error' # => "error" + # logger.level = :error # => :error + # + # Logger#sev_threshold= is an alias for Logger#level=. + # + # source://logger//lib/logger.rb#399 + def sev_threshold=(severity); end + + # Equivalent to calling #add with severity Logger::UNKNOWN. + # + # source://logger//lib/logger.rb#720 + def unknown(progname = T.unsafe(nil), &block); end + + # Equivalent to calling #add with severity Logger::WARN. + # + # source://logger//lib/logger.rb#702 + def warn(progname = T.unsafe(nil), &block); end + + # Sets the log level to Logger::WARN. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # source://logger//lib/logger.rb#509 + def warn!; end + + # Returns +true+ if the log level allows entries with severity + # Logger::WARN to be written, +false+ otherwise. + # See {Log Level}[rdoc-ref:Logger@Log+Level]. + # + # @return [Boolean] + # + # source://logger//lib/logger.rb#504 + def warn?; end + + # Adjust the log level during the block execution for the current Fiber only + # + # logger.with_level(:debug) do + # logger.debug { "Hello" } + # end + # + # source://logger//lib/logger.rb#408 + def with_level(severity); end + + private + + # source://logger//lib/logger.rb#744 + def format_message(severity, datetime, progname, msg); end + + # source://logger//lib/logger.rb#740 + def format_severity(severity); end +end + +# Default formatter for log messages. +# +# source://logger//lib/logger/formatter.rb#5 +class Logger::Formatter + # @return [Formatter] a new instance of Formatter + # + # source://logger//lib/logger/formatter.rb#11 + def initialize; end + + # source://logger//lib/logger/formatter.rb#15 + def call(severity, time, progname, msg); end + + # Returns the value of attribute datetime_format. + # + # source://logger//lib/logger/formatter.rb#9 + def datetime_format; end + + # Sets the attribute datetime_format + # + # @param value the value to set the attribute datetime_format to. + # + # source://logger//lib/logger/formatter.rb#9 + def datetime_format=(_arg0); end + + private + + # source://logger//lib/logger/formatter.rb#21 + def format_datetime(time); end + + # source://logger//lib/logger/formatter.rb#25 + def msg2str(msg); end +end + +# source://logger//lib/logger/formatter.rb#7 +Logger::Formatter::DatetimeFormat = T.let(T.unsafe(nil), String) + +# source://logger//lib/logger/formatter.rb#6 +Logger::Formatter::Format = T.let(T.unsafe(nil), String) + +# Device used for logging messages. +# +# source://logger//lib/logger/log_device.rb#7 +class Logger::LogDevice + include ::Logger::Period + include ::MonitorMixin + + # @return [LogDevice] a new instance of LogDevice + # + # source://logger//lib/logger/log_device.rb#14 + def initialize(log = T.unsafe(nil), shift_age: T.unsafe(nil), shift_size: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil)); end + + # source://logger//lib/logger/log_device.rb#52 + def close; end + + # Returns the value of attribute dev. + # + # source://logger//lib/logger/log_device.rb#10 + def dev; end + + # Returns the value of attribute filename. + # + # source://logger//lib/logger/log_device.rb#11 + def filename; end + + # source://logger//lib/logger/log_device.rb#62 + def reopen(log = T.unsafe(nil)); end + + # source://logger//lib/logger/log_device.rb#31 + def write(message); end + + private + + # source://logger//lib/logger/log_device.rb#119 + def add_log_header(file); end + + # source://logger//lib/logger/log_device.rb#125 + def check_shift_log; end + + # source://logger//lib/logger/log_device.rb#103 + def create_logfile(filename); end + + # source://logger//lib/logger/log_device.rb#145 + def lock_shift_log; end + + # source://logger//lib/logger/log_device.rb#95 + def open_logfile(filename); end + + # source://logger//lib/logger/log_device.rb#79 + def set_dev(log); end + + # source://logger//lib/logger/log_device.rb#176 + def shift_log_age; end + + # source://logger//lib/logger/log_device.rb#188 + def shift_log_period(period_end); end +end + +# source://logger//lib/logger/period.rb#4 +module Logger::Period + private + + # source://logger//lib/logger/period.rb#9 + def next_rotate_time(now, shift_age); end + + # source://logger//lib/logger/period.rb#31 + def previous_period_end(now, shift_age); end + + class << self + # source://logger//lib/logger/period.rb#9 + def next_rotate_time(now, shift_age); end + + # source://logger//lib/logger/period.rb#31 + def previous_period_end(now, shift_age); end + end +end + +# source://logger//lib/logger/period.rb#7 +Logger::Period::SiD = T.let(T.unsafe(nil), Integer) + +# \Severity label for logging (max 5 chars). +# +# source://logger//lib/logger.rb#738 +Logger::SEV_LABEL = T.let(T.unsafe(nil), Array) + +# Logging severity. +# +# source://logger//lib/logger/severity.rb#5 +module Logger::Severity + class << self + # source://logger//lib/logger/severity.rb#29 + def coerce(severity); end + end +end + +# source://logger//lib/logger/severity.rb#19 +Logger::Severity::LEVELS = T.let(T.unsafe(nil), Hash) diff --git a/sorbet/rbi/gems/mail@2.8.1.rbi b/sorbet/rbi/gems/mail@2.8.1.rbi index 843946cf..b1a8a0a2 100644 --- a/sorbet/rbi/gems/mail@2.8.1.rbi +++ b/sorbet/rbi/gems/mail@2.8.1.rbi @@ -128,9 +128,6 @@ module Mail # source://mail//lib/mail/mail.rb#151 def first(*args, &block); end - # 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 def inform_interceptors(mail); end @@ -277,9 +274,6 @@ class Mail::Address # source://mail//lib/mail/elements/address.rb#25 def initialize(value = T.unsafe(nil)); end - # 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 # local@domain string, without any angle brackets or the like. # @@ -424,11 +418,6 @@ class Mail::Address # source://mail//lib/mail/elements/address.rb#207 def strip_domain_comments(value); end - - class << self - # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/address_wrapping.rb#5 - def wrap(address); end - end end # source://mail//lib/mail/fields/common_address_field.rb#6 @@ -3551,9 +3540,6 @@ class Mail::Message # source://mail//lib/mail/message.rb#512 def bcc=(val); end - # 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, # if no Bcc field, returns an empty array # @@ -3660,9 +3646,6 @@ class Mail::Message # source://mail//lib/mail/message.rb#553 def cc=(val); end - # 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, # if no Cc field, returns an empty array # @@ -3979,9 +3962,6 @@ class Mail::Message # source://mail//lib/mail/message.rb#670 def from=(val); end - # 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, # if no From field, returns an empty array # @@ -4372,12 +4352,6 @@ class Mail::Message # source://mail//lib/mail/message.rb#751 def received=(val); end - # source://actionmailbox/7.1.3.3/lib/action_mailbox/mail_ext/recipients.rb#5 - def recipients; end - - # 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 def references(val = T.unsafe(nil)); end @@ -4846,9 +4820,6 @@ class Mail::Message # source://mail//lib/mail/message.rb#1193 def to=(val); end - # 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, # if no To field, returns an empty array # @@ -4870,12 +4841,6 @@ class Mail::Message # source://mail//lib/mail/message.rb#1811 def without_attachments!; end - # 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.3/lib/action_mailbox/mail_ext/addresses.rb#25 - def x_original_to_addresses; end - private # source://mail//lib/mail/message.rb#2067 @@ -4896,9 +4861,6 @@ class Mail::Message # source://mail//lib/mail/message.rb#2056 def add_required_message_fields; end - # 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 def allowed_encodings; end diff --git a/sorbet/rbi/gems/mini_portile2@2.8.6.rbi b/sorbet/rbi/gems/mini_portile2@2.8.7.rbi similarity index 100% rename from sorbet/rbi/gems/mini_portile2@2.8.6.rbi rename to sorbet/rbi/gems/mini_portile2@2.8.7.rbi diff --git a/sorbet/rbi/gems/minitest@5.23.1.rbi b/sorbet/rbi/gems/minitest@5.25.1.rbi similarity index 77% rename from sorbet/rbi/gems/minitest@5.23.1.rbi rename to sorbet/rbi/gems/minitest@5.25.1.rbi index ed1b9ace..bc0cba20 100644 --- a/sorbet/rbi/gems/minitest@5.23.1.rbi +++ b/sorbet/rbi/gems/minitest@5.25.1.rbi @@ -13,7 +13,7 @@ module Minitest # Internal run method. Responsible for telling all Runnable # sub-classes to run. # - # source://minitest//lib/minitest.rb#197 + # source://minitest//lib/minitest.rb#322 def __run(reporter, options); end # A simple hook allowing you to run a block of code after everything @@ -21,7 +21,7 @@ module Minitest # # Minitest.after_run { p $debugging_info } # - # source://minitest//lib/minitest.rb#97 + # source://minitest//lib/minitest.rb#96 def after_run(&block); end # source://minitest//lib/minitest.rb#19 @@ -44,10 +44,10 @@ module Minitest # source://minitest//lib/minitest.rb#18 def cattr_accessor(name); end - # source://minitest//lib/minitest.rb#1178 + # source://minitest//lib/minitest.rb#1215 def clock_time; end - # source://minitest//lib/minitest.rb#177 + # source://minitest//lib/minitest.rb#302 def empty_run!(options); end # source://minitest//lib/minitest.rb#19 @@ -56,7 +56,7 @@ module Minitest # source://minitest//lib/minitest.rb#19 def extensions=(_arg0); end - # source://minitest//lib/minitest.rb#306 + # source://minitest//lib/minitest.rb#335 def filter_backtrace(bt); end # source://minitest//lib/minitest.rb#19 @@ -65,7 +65,7 @@ module Minitest # source://minitest//lib/minitest.rb#19 def info_signal=(_arg0); end - # source://minitest//lib/minitest.rb#101 + # source://minitest//lib/minitest.rb#124 def init_plugins(options); end # source://minitest//lib/minitest.rb#108 @@ -77,9 +77,14 @@ module Minitest # source://minitest//lib/minitest.rb#19 def parallel_executor=(_arg0); end - # source://minitest//lib/minitest.rb#210 + # source://minitest//lib/minitest.rb#142 def process_args(args = T.unsafe(nil)); end + # Register a plugin to be used. Does NOT require / load it. + # + # source://minitest//lib/minitest.rb#103 + def register_plugin(name_or_mod); end + # source://minitest//lib/minitest.rb#19 def reporter; end @@ -94,6 +99,9 @@ module Minitest # # Minitest.autorun # Minitest.run(args) + # Minitest.load_plugins + # Minitest.process_args + # Minitest.init_plugins # Minitest.__run(reporter, options) # Runnable.runnables.each # runnable_klass.run(reporter, options) @@ -102,10 +110,10 @@ module Minitest # Minitest.run_one_method(klass, runnable_method) # klass.new(runnable_method).run # - # source://minitest//lib/minitest.rb#143 + # source://minitest//lib/minitest.rb#268 def run(args = T.unsafe(nil)); end - # source://minitest//lib/minitest.rb#1169 + # source://minitest//lib/minitest.rb#1206 def run_one_method(klass, method_name); end # source://minitest//lib/minitest.rb#19 @@ -119,24 +127,24 @@ end # Defines the API for Reporters. Subclass this and override whatever # you want. Go nuts. # -# source://minitest//lib/minitest.rb#652 +# source://minitest//lib/minitest.rb#686 class Minitest::AbstractReporter # @return [AbstractReporter] a new instance of AbstractReporter # - # source://minitest//lib/minitest.rb#654 + # source://minitest//lib/minitest.rb#688 def initialize; end # Did this run pass? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#689 + # source://minitest//lib/minitest.rb#723 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#668 + # source://minitest//lib/minitest.rb#702 def prerecord(klass, name); end # Output and record the result of the test. Call @@ -144,43 +152,43 @@ class Minitest::AbstractReporter # result character string. Stores the result of the run if the run # did not pass. # - # source://minitest//lib/minitest.rb#677 + # source://minitest//lib/minitest.rb#711 def record(result); end # Outputs the summary of the run. # - # source://minitest//lib/minitest.rb#683 + # source://minitest//lib/minitest.rb#717 def report; end # Starts reporting on the run. # - # source://minitest//lib/minitest.rb#661 + # source://minitest//lib/minitest.rb#695 def start; end - # source://minitest//lib/minitest.rb#693 + # source://minitest//lib/minitest.rb#727 def synchronize(&block); end end # Represents run failures. # -# source://minitest//lib/minitest.rb#985 +# source://minitest//lib/minitest.rb#1019 class Minitest::Assertion < ::Exception - # source://minitest//lib/minitest.rb#988 + # source://minitest//lib/minitest.rb#1022 def error; end # Where was this run before an assertion was raised? # - # source://minitest//lib/minitest.rb#995 + # source://minitest//lib/minitest.rb#1029 def location; end - # source://minitest//lib/minitest.rb#1003 + # source://minitest//lib/minitest.rb#1037 def result_code; end - # source://minitest//lib/minitest.rb#1007 + # source://minitest//lib/minitest.rb#1041 def result_label; end end -# source://minitest//lib/minitest.rb#986 +# source://minitest//lib/minitest.rb#1020 Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp) # Minitest Assertions. All assertion methods accept a +msg+ which is @@ -192,22 +200,22 @@ Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp) # provided by the thing including Assertions. See Minitest::Runnable # for an example. # -# source://minitest//lib/minitest/assertions.rb#18 +# source://minitest//lib/minitest/assertions.rb#16 module Minitest::Assertions - # source://minitest//lib/minitest/assertions.rb#188 + # source://minitest//lib/minitest/assertions.rb#181 def _synchronize; end - # source://minitest//lib/minitest/assertions.rb#201 + # source://minitest//lib/minitest/assertions.rb#194 def _where; end # Fails unless +test+ is truthy. # - # source://minitest//lib/minitest/assertions.rb#178 + # source://minitest//lib/minitest/assertions.rb#171 def assert(test, msg = T.unsafe(nil)); end # Fails unless +obj+ is empty. # - # source://minitest//lib/minitest/assertions.rb#195 + # source://minitest//lib/minitest/assertions.rb#188 def assert_empty(obj, msg = T.unsafe(nil)); end # Fails unless exp == act printing the difference between @@ -222,7 +230,7 @@ module Minitest::Assertions # # See also: Minitest::Assertions.diff # - # source://minitest//lib/minitest/assertions.rb#221 + # source://minitest//lib/minitest/assertions.rb#214 def assert_equal(exp, act, msg = T.unsafe(nil)); end # For comparing Floats. Fails unless +exp+ and +act+ are within +delta+ @@ -230,45 +238,45 @@ module Minitest::Assertions # # assert_in_delta Math::PI, (22.0 / 7.0), 0.01 # - # source://minitest//lib/minitest/assertions.rb#242 + # source://minitest//lib/minitest/assertions.rb#235 def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end # For comparing Floats. Fails unless +exp+ and +act+ have a relative # error less than +epsilon+. # - # source://minitest//lib/minitest/assertions.rb#254 + # source://minitest//lib/minitest/assertions.rb#247 def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end # Fails unless +collection+ includes +obj+. # - # source://minitest//lib/minitest/assertions.rb#261 + # source://minitest//lib/minitest/assertions.rb#254 def assert_includes(collection, obj, msg = T.unsafe(nil)); end # Fails unless +obj+ is an instance of +cls+. # - # source://minitest//lib/minitest/assertions.rb#272 + # source://minitest//lib/minitest/assertions.rb#265 def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end # Fails unless +obj+ is a kind of +cls+. # - # source://minitest//lib/minitest/assertions.rb#283 + # source://minitest//lib/minitest/assertions.rb#276 def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end # Fails unless +matcher+ =~ +obj+. # - # source://minitest//lib/minitest/assertions.rb#293 + # source://minitest//lib/minitest/assertions.rb#287 def assert_match(matcher, obj, msg = T.unsafe(nil)); end # Fails unless +obj+ is nil # - # source://minitest//lib/minitest/assertions.rb#305 + # source://minitest//lib/minitest/assertions.rb#299 def assert_nil(obj, msg = T.unsafe(nil)); end # For testing with binary operators. Eg: # # assert_operator 5, :<=, 4 # - # source://minitest//lib/minitest/assertions.rb#315 + # source://minitest//lib/minitest/assertions.rb#309 def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end # Fails if stdout or stderr do not output the expected results. @@ -282,12 +290,12 @@ module Minitest::Assertions # # See also: #assert_silent # - # source://minitest//lib/minitest/assertions.rb#333 + # source://minitest//lib/minitest/assertions.rb#327 def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end # Fails unless +path+ exists. # - # source://minitest//lib/minitest/assertions.rb#357 + # source://minitest//lib/minitest/assertions.rb#351 def assert_path_exists(path, msg = T.unsafe(nil)); end # For testing with pattern matching (only supported with Ruby 3.0 and later) @@ -305,7 +313,7 @@ module Minitest::Assertions # # @raise [NotImplementedError] # - # source://minitest//lib/minitest/assertions.rb#376 + # source://minitest//lib/minitest/assertions.rb#370 def assert_pattern; end # For testing with predicates. Eg: @@ -316,7 +324,7 @@ module Minitest::Assertions # # str.must_be :empty? # - # source://minitest//lib/minitest/assertions.rb#397 + # source://minitest//lib/minitest/assertions.rb#391 def assert_predicate(o1, op, msg = T.unsafe(nil)); end # Fails unless the block raises one of +exp+. Returns the @@ -340,37 +348,37 @@ module Minitest::Assertions # # assert_equal 'This is really bad', error.message # - # source://minitest//lib/minitest/assertions.rb#424 + # source://minitest//lib/minitest/assertions.rb#418 def assert_raises(*exp); end # Fails unless +obj+ responds to +meth+. # include_all defaults to false to match Object#respond_to? # - # source://minitest//lib/minitest/assertions.rb#456 + # source://minitest//lib/minitest/assertions.rb#450 def assert_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end # Fails unless +exp+ and +act+ are #equal? # - # source://minitest//lib/minitest/assertions.rb#466 + # source://minitest//lib/minitest/assertions.rb#460 def assert_same(exp, act, msg = T.unsafe(nil)); end # +send_ary+ is a receiver, message and arguments. # # Fails unless the call returns a true value # - # source://minitest//lib/minitest/assertions.rb#479 + # source://minitest//lib/minitest/assertions.rb#473 def assert_send(send_ary, m = T.unsafe(nil)); end # Fails if the block outputs anything to stderr or stdout. # # See also: #assert_output # - # source://minitest//lib/minitest/assertions.rb#493 + # source://minitest//lib/minitest/assertions.rb#488 def assert_silent; end # Fails unless the block throws +sym+ # - # source://minitest//lib/minitest/assertions.rb#502 + # source://minitest//lib/minitest/assertions.rb#497 def assert_throws(sym, msg = T.unsafe(nil)); end # Captures $stdout and $stderr into strings: @@ -387,7 +395,7 @@ module Minitest::Assertions # capture IO for subprocesses. Use #capture_subprocess_io for # that. # - # source://minitest//lib/minitest/assertions.rb#543 + # source://minitest//lib/minitest/assertions.rb#538 def capture_io; end # Captures $stdout and $stderr into strings, using Tempfile to @@ -404,7 +412,7 @@ module Minitest::Assertions # NOTE: This method is approximately 10x slower than #capture_io so # only use it when you need to test the output of a subprocess. # - # source://minitest//lib/minitest/assertions.rb#576 + # source://minitest//lib/minitest/assertions.rb#571 def capture_subprocess_io; end # Returns a diff between +exp+ and +act+. If there is no known @@ -414,29 +422,29 @@ module Minitest::Assertions # # See +things_to_diff+ for more info. # - # source://minitest//lib/minitest/assertions.rb#59 + # source://minitest//lib/minitest/assertions.rb#57 def diff(exp, act); end # Returns details for exception +e+ # - # source://minitest//lib/minitest/assertions.rb#608 + # source://minitest//lib/minitest/assertions.rb#603 def exception_details(e, msg); end # Fails after a given date (in the local time zone). This allows # you to put time-bombs in your tests if you need to keep # something around until a later date lest you forget about it. # - # source://minitest//lib/minitest/assertions.rb#624 + # source://minitest//lib/minitest/assertions.rb#619 def fail_after(y, m, d, msg); end # Fails with +msg+. # - # source://minitest//lib/minitest/assertions.rb#631 + # source://minitest//lib/minitest/assertions.rb#626 def flunk(msg = T.unsafe(nil)); end # Returns a proc that will output +msg+ along with the default message. # - # source://minitest//lib/minitest/assertions.rb#639 + # source://minitest//lib/minitest/assertions.rb#634 def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end # This returns a human-readable version of +obj+. By default @@ -445,7 +453,7 @@ module Minitest::Assertions # # See Minitest::Test.make_my_diffs_pretty! # - # source://minitest//lib/minitest/assertions.rb#129 + # source://minitest//lib/minitest/assertions.rb#127 def mu_pp(obj); end # This returns a diff-able more human-readable version of +obj+. @@ -453,67 +461,67 @@ module Minitest::Assertions # newlines and makes hex-values (like object_ids) generic. This # uses mu_pp to do the first pass and then cleans it up. # - # source://minitest//lib/minitest/assertions.rb#152 + # source://minitest//lib/minitest/assertions.rb#145 def mu_pp_for_diff(obj); end # used for counting assertions # - # source://minitest//lib/minitest/assertions.rb#650 + # source://minitest//lib/minitest/assertions.rb#645 def pass(_msg = T.unsafe(nil)); end # Fails if +test+ is truthy. # - # source://minitest//lib/minitest/assertions.rb#657 + # source://minitest//lib/minitest/assertions.rb#652 def refute(test, msg = T.unsafe(nil)); end # Fails if +obj+ is empty. # - # source://minitest//lib/minitest/assertions.rb#665 + # source://minitest//lib/minitest/assertions.rb#660 def refute_empty(obj, msg = T.unsafe(nil)); end # Fails if exp == act. # # For floats use refute_in_delta. # - # source://minitest//lib/minitest/assertions.rb#676 + # source://minitest//lib/minitest/assertions.rb#671 def refute_equal(exp, act, msg = T.unsafe(nil)); end # For comparing Floats. Fails if +exp+ is within +delta+ of +act+. # # refute_in_delta Math::PI, (22.0 / 7.0) # - # source://minitest//lib/minitest/assertions.rb#688 + # source://minitest//lib/minitest/assertions.rb#683 def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end # For comparing Floats. Fails if +exp+ and +act+ have a relative error # less than +epsilon+. # - # source://minitest//lib/minitest/assertions.rb#700 + # source://minitest//lib/minitest/assertions.rb#695 def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end # Fails if +collection+ includes +obj+. # - # source://minitest//lib/minitest/assertions.rb#707 + # source://minitest//lib/minitest/assertions.rb#702 def refute_includes(collection, obj, msg = T.unsafe(nil)); end # Fails if +obj+ is an instance of +cls+. # - # source://minitest//lib/minitest/assertions.rb#718 + # source://minitest//lib/minitest/assertions.rb#713 def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end # Fails if +obj+ is a kind of +cls+. # - # source://minitest//lib/minitest/assertions.rb#728 + # source://minitest//lib/minitest/assertions.rb#723 def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end # Fails if +matcher+ =~ +obj+. # - # source://minitest//lib/minitest/assertions.rb#736 + # source://minitest//lib/minitest/assertions.rb#731 def refute_match(matcher, obj, msg = T.unsafe(nil)); end # Fails if +obj+ is nil. # - # source://minitest//lib/minitest/assertions.rb#746 + # source://minitest//lib/minitest/assertions.rb#741 def refute_nil(obj, msg = T.unsafe(nil)); end # Fails if +o1+ is not +op+ +o2+. Eg: @@ -521,12 +529,12 @@ module Minitest::Assertions # refute_operator 1, :>, 2 #=> pass # refute_operator 1, :<, 2 #=> fail # - # source://minitest//lib/minitest/assertions.rb#781 + # source://minitest//lib/minitest/assertions.rb#776 def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end # Fails if +path+ exists. # - # source://minitest//lib/minitest/assertions.rb#790 + # source://minitest//lib/minitest/assertions.rb#785 def refute_path_exists(path, msg = T.unsafe(nil)); end # For testing with pattern matching (only supported with Ruby 3.0 and later) @@ -542,7 +550,7 @@ module Minitest::Assertions # # @raise [NotImplementedError] # - # source://minitest//lib/minitest/assertions.rb#763 + # source://minitest//lib/minitest/assertions.rb#758 def refute_pattern; end # For testing with predicates. @@ -553,18 +561,18 @@ module Minitest::Assertions # # str.wont_be :empty? # - # source://minitest//lib/minitest/assertions.rb#804 + # source://minitest//lib/minitest/assertions.rb#799 def refute_predicate(o1, op, msg = T.unsafe(nil)); end # Fails if +obj+ responds to the message +meth+. # include_all defaults to false to match Object#respond_to? # - # source://minitest//lib/minitest/assertions.rb#813 + # source://minitest//lib/minitest/assertions.rb#808 def refute_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end # Fails if +exp+ is the same (by object identity) as +act+. # - # source://minitest//lib/minitest/assertions.rb#822 + # source://minitest//lib/minitest/assertions.rb#817 def refute_same(exp, act, msg = T.unsafe(nil)); end # Skips the current run. If run in verbose-mode, the skipped run @@ -573,7 +581,7 @@ module Minitest::Assertions # # @raise [Minitest::Skip] # - # source://minitest//lib/minitest/assertions.rb#835 + # source://minitest//lib/minitest/assertions.rb#830 def skip(msg = T.unsafe(nil), _ignored = T.unsafe(nil)); end # Skips the current run until a given date (in the local time @@ -581,14 +589,14 @@ module Minitest::Assertions # date, but still holds you accountable and prevents you from # forgetting it. # - # source://minitest//lib/minitest/assertions.rb#847 + # source://minitest//lib/minitest/assertions.rb#842 def skip_until(y, m, d, msg); end # Was this testcase skipped? Meant for #teardown. # # @return [Boolean] # - # source://minitest//lib/minitest/assertions.rb#856 + # source://minitest//lib/minitest/assertions.rb#851 def skipped?; end # Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff. @@ -600,104 +608,102 @@ module Minitest::Assertions # 3. or: Strings are equal to each other (but maybe different encodings?). # 4. and: we found a diff executable. # - # source://minitest//lib/minitest/assertions.rb#104 + # source://minitest//lib/minitest/assertions.rb#102 def things_to_diff(exp, act); end class << self # Returns the diff command to use in #diff. Tries to intelligently # figure out what diff to use. # - # source://minitest//lib/minitest/assertions.rb#29 + # source://minitest//lib/minitest/assertions.rb#27 def diff; end # Set the diff command to use in #diff. # - # source://minitest//lib/minitest/assertions.rb#47 + # source://minitest//lib/minitest/assertions.rb#45 def diff=(o); end end end -# source://minitest//lib/minitest/assertions.rb#206 +# source://minitest//lib/minitest/assertions.rb#199 Minitest::Assertions::E = T.let(T.unsafe(nil), String) -# source://minitest//lib/minitest/assertions.rb#19 +# source://minitest//lib/minitest/assertions.rb#17 Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object) # The standard backtrace filter for minitest. # # See Minitest.backtrace_filter=. # -# source://minitest//lib/minitest.rb#1140 +# source://minitest//lib/minitest.rb#1174 class Minitest::BacktraceFilter # @return [BacktraceFilter] a new instance of BacktraceFilter # - # source://minitest//lib/minitest.rb#1146 + # source://minitest//lib/minitest.rb#1183 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#1154 + # source://minitest//lib/minitest.rb#1191 def filter(bt); end - # Returns the value of attribute regexp. + # The regular expression to use to filter backtraces. Defaults to +MT_RE+. # - # source://minitest//lib/minitest.rb#1144 + # source://minitest//lib/minitest.rb#1181 def regexp; end - # Sets the attribute regexp - # - # @param value the value to set the attribute regexp to. + # The regular expression to use to filter backtraces. Defaults to +MT_RE+. # - # source://minitest//lib/minitest.rb#1144 + # source://minitest//lib/minitest.rb#1181 def regexp=(_arg0); end end -# source://minitest//lib/minitest.rb#1142 +# source://minitest//lib/minitest.rb#1176 Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp) # Dispatch to multiple reporters as one. # -# source://minitest//lib/minitest.rb#934 +# source://minitest//lib/minitest.rb#968 class Minitest::CompositeReporter < ::Minitest::AbstractReporter # @return [CompositeReporter] a new instance of CompositeReporter # - # source://minitest//lib/minitest.rb#940 + # source://minitest//lib/minitest.rb#974 def initialize(*reporters); end # Add another reporter to the mix. # - # source://minitest//lib/minitest.rb#952 + # source://minitest//lib/minitest.rb#986 def <<(reporter); end - # source://minitest//lib/minitest.rb#945 + # source://minitest//lib/minitest.rb#979 def io; end # @return [Boolean] # - # source://minitest//lib/minitest.rb#956 + # source://minitest//lib/minitest.rb#990 def passed?; end - # source://minitest//lib/minitest.rb#964 + # source://minitest//lib/minitest.rb#998 def prerecord(klass, name); end - # source://minitest//lib/minitest.rb#971 + # source://minitest//lib/minitest.rb#1005 def record(result); end - # source://minitest//lib/minitest.rb#977 + # source://minitest//lib/minitest.rb#1011 def report; end # The list of reporters to dispatch to. # - # source://minitest//lib/minitest.rb#938 + # source://minitest//lib/minitest.rb#972 def reporters; end # The list of reporters to dispatch to. # - # source://minitest//lib/minitest.rb#938 + # source://minitest//lib/minitest.rb#972 def reporters=(_arg0); end - # source://minitest//lib/minitest.rb#960 + # source://minitest//lib/minitest.rb#994 def start; end end @@ -726,48 +732,48 @@ end # # ... lots of test methods ... # end # -# source://minitest//lib/minitest.rb#1084 +# source://minitest//lib/minitest.rb#1118 module Minitest::Guard # Is this running on jruby? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1089 + # source://minitest//lib/minitest.rb#1123 def jruby?(platform = T.unsafe(nil)); end # Is this running on maglev? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1096 + # source://minitest//lib/minitest.rb#1130 def maglev?(platform = T.unsafe(nil)); end # Is this running on mri? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1106 + # source://minitest//lib/minitest.rb#1140 def mri?(platform = T.unsafe(nil)); end # Is this running on macOS? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1113 + # source://minitest//lib/minitest.rb#1147 def osx?(platform = T.unsafe(nil)); end # Is this running on rubinius? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1120 + # source://minitest//lib/minitest.rb#1154 def rubinius?(platform = T.unsafe(nil)); end # Is this running on windows? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1130 + # source://minitest//lib/minitest.rb#1164 def windows?(platform = T.unsafe(nil)); end end @@ -830,36 +836,36 @@ end # plugin, pull this out of the composite and replace it with your # own. # -# source://minitest//lib/minitest.rb#724 +# source://minitest//lib/minitest.rb#758 class Minitest::ProgressReporter < ::Minitest::Reporter - # source://minitest//lib/minitest.rb#725 + # source://minitest//lib/minitest.rb#759 def prerecord(klass, name); end - # source://minitest//lib/minitest.rb#732 + # source://minitest//lib/minitest.rb#766 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#546 +# source://minitest//lib/minitest.rb#580 module Minitest::Reportable # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#568 + # source://minitest//lib/minitest.rb#602 def class_name; end # Did this run error? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#589 + # source://minitest//lib/minitest.rb#623 def error?; end # The location identifier of this test. Depends on a method # existing called class_name. # - # source://minitest//lib/minitest.rb#563 + # source://minitest//lib/minitest.rb#597 def location; end # Did this run pass? @@ -869,50 +875,50 @@ module Minitest::Reportable # # @return [Boolean] # - # source://minitest//lib/minitest.rb#553 + # source://minitest//lib/minitest.rb#587 def passed?; end # Returns ".", "F", or "E" based on the result of the run. # - # source://minitest//lib/minitest.rb#575 + # source://minitest//lib/minitest.rb#609 def result_code; end # Was this run skipped? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#582 + # source://minitest//lib/minitest.rb#616 def skipped?; end end -# source://minitest//lib/minitest.rb#557 +# source://minitest//lib/minitest.rb#591 Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String) -# source://minitest//lib/minitest.rb#700 +# source://minitest//lib/minitest.rb#734 class Minitest::Reporter < ::Minitest::AbstractReporter # @return [Reporter] a new instance of Reporter # - # source://minitest//lib/minitest.rb#709 + # source://minitest//lib/minitest.rb#743 def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end # The IO used to report. # - # source://minitest//lib/minitest.rb#702 + # source://minitest//lib/minitest.rb#736 def io; end # The IO used to report. # - # source://minitest//lib/minitest.rb#702 + # source://minitest//lib/minitest.rb#736 def io=(_arg0); end # Command-line options for this run. # - # source://minitest//lib/minitest.rb#707 + # source://minitest//lib/minitest.rb#741 def options; end # Command-line options for this run. # - # source://minitest//lib/minitest.rb#707 + # source://minitest//lib/minitest.rb#741 def options=(_arg0); end end @@ -922,80 +928,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#601 +# source://minitest//lib/minitest.rb#635 class Minitest::Result < ::Minitest::Runnable include ::Minitest::Reportable - # source://minitest//lib/minitest.rb#635 + # source://minitest//lib/minitest.rb#669 def class_name; end # The class name of the test result. # - # source://minitest//lib/minitest.rb#610 + # source://minitest//lib/minitest.rb#644 def klass; end # The class name of the test result. # - # source://minitest//lib/minitest.rb#610 + # source://minitest//lib/minitest.rb#644 def klass=(_arg0); end # The location of the test method. # - # source://minitest//lib/minitest.rb#615 + # source://minitest//lib/minitest.rb#649 def source_location; end # The location of the test method. # - # source://minitest//lib/minitest.rb#615 + # source://minitest//lib/minitest.rb#649 def source_location=(_arg0); end - # source://minitest//lib/minitest.rb#639 + # source://minitest//lib/minitest.rb#673 def to_s; end class << self # Create a new test result from a Runnable instance. # - # source://minitest//lib/minitest.rb#620 + # source://minitest//lib/minitest.rb#654 def from(runnable); end end end # re-open # -# source://minitest//lib/minitest.rb#319 +# source://minitest//lib/minitest.rb#348 class Minitest::Runnable # @return [Runnable] a new instance of Runnable # - # source://minitest//lib/minitest.rb#477 + # source://minitest//lib/minitest.rb#511 def initialize(name); end # Number of assertions executed in this run. # - # source://minitest//lib/minitest.rb#323 + # source://minitest//lib/minitest.rb#352 def assertions; end # Number of assertions executed in this run. # - # source://minitest//lib/minitest.rb#323 + # source://minitest//lib/minitest.rb#352 def assertions=(_arg0); end - # source://minitest//lib/minitest.rb#473 + # source://minitest//lib/minitest.rb#507 def failure; end # An assertion raised during the run, if any. # - # source://minitest//lib/minitest.rb#328 + # source://minitest//lib/minitest.rb#357 def failures; end # An assertion raised during the run, if any. # - # source://minitest//lib/minitest.rb#328 + # source://minitest//lib/minitest.rb#357 def failures=(_arg0); end - # source://minitest//lib/minitest.rb#459 + # source://minitest//lib/minitest.rb#493 def marshal_dump; end - # source://minitest//lib/minitest.rb#469 + # source://minitest//lib/minitest.rb#503 def marshal_load(ary); end # Metadata you attach to the test results that get sent to the reporter. @@ -1005,29 +1011,29 @@ class Minitest::Runnable # NOTE: this data *must* be plain (read: marshal-able) data! # Hashes! Arrays! Strings! # - # source://minitest//lib/minitest.rb#492 + # source://minitest//lib/minitest.rb#526 def metadata; end # Sets metadata, mainly used for +Result.from+. # - # source://minitest//lib/minitest.rb#499 + # source://minitest//lib/minitest.rb#533 def metadata=(_arg0); end # Returns true if metadata exists. # # @return [Boolean] # - # source://minitest//lib/minitest.rb#504 + # source://minitest//lib/minitest.rb#538 def metadata?; end # Name of the run. # - # source://minitest//lib/minitest.rb#346 + # source://minitest//lib/minitest.rb#375 def name; end # Set the name of the run. # - # source://minitest//lib/minitest.rb#353 + # source://minitest//lib/minitest.rb#382 def name=(o); end # Did this run pass? @@ -1038,7 +1044,7 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest//lib/minitest.rb#521 + # source://minitest//lib/minitest.rb#555 def passed?; end # Returns a single character string to print based on the result @@ -1047,14 +1053,14 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#530 + # source://minitest//lib/minitest.rb#564 def result_code; end # Runs a single method. Needs to return self. # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#511 + # source://minitest//lib/minitest.rb#545 def run; end # Was this run skipped? See #passed? for more information. @@ -1062,42 +1068,42 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest//lib/minitest.rb#537 + # source://minitest//lib/minitest.rb#571 def skipped?; end # The time it took to run. # - # source://minitest//lib/minitest.rb#333 + # source://minitest//lib/minitest.rb#362 def time; end # The time it took to run. # - # source://minitest//lib/minitest.rb#333 + # source://minitest//lib/minitest.rb#362 def time=(_arg0); end - # source://minitest//lib/minitest.rb#335 + # source://minitest//lib/minitest.rb#364 def time_it; end class << self - # source://minitest//lib/minitest.rb#1188 + # source://minitest//lib/minitest.rb#1225 def inherited(klass); end # Returns all instance methods matching the pattern +re+. # - # source://minitest//lib/minitest.rb#360 + # source://minitest//lib/minitest.rb#389 def methods_matching(re); end - # source://minitest//lib/minitest.rb#429 + # source://minitest//lib/minitest.rb#463 def on_signal(name, action); end - # source://minitest//lib/minitest.rb#364 + # source://minitest//lib/minitest.rb#393 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#375 + # source://minitest//lib/minitest.rb#404 def run(reporter, options = T.unsafe(nil)); end # Runs a single method and has the reporter record the result. @@ -1105,7 +1111,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#401 + # source://minitest//lib/minitest.rb#444 def run_one_method(klass, method_name, reporter); end # Each subclass of Runnable is responsible for overriding this @@ -1113,33 +1119,33 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#446 + # source://minitest//lib/minitest.rb#480 def runnable_methods; end # Returns all subclasses of Runnable. # - # source://minitest//lib/minitest.rb#453 + # source://minitest//lib/minitest.rb#487 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#410 + # source://minitest//lib/minitest.rb#453 def test_order; end - # source://minitest//lib/minitest.rb#414 + # source://minitest//lib/minitest.rb#457 def with_info_handler(reporter, &block); end end end -# source://minitest//lib/minitest.rb#427 +# source://minitest//lib/minitest.rb#461 Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash) # Assertion raised when skipping a run. # -# source://minitest//lib/minitest.rb#1015 +# source://minitest//lib/minitest.rb#1049 class Minitest::Skip < ::Minitest::Assertion - # source://minitest//lib/minitest.rb#1016 + # source://minitest//lib/minitest.rb#1050 def result_label; end end @@ -1163,123 +1169,123 @@ end # end # end # -# source://minitest//lib/minitest.rb#760 +# source://minitest//lib/minitest.rb#794 class Minitest::StatisticsReporter < ::Minitest::Reporter # @return [StatisticsReporter] a new instance of StatisticsReporter # - # source://minitest//lib/minitest.rb#809 + # source://minitest//lib/minitest.rb#843 def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end # Total number of assertions. # - # source://minitest//lib/minitest.rb#764 + # source://minitest//lib/minitest.rb#798 def assertions; end # Total number of assertions. # - # source://minitest//lib/minitest.rb#764 + # source://minitest//lib/minitest.rb#798 def assertions=(_arg0); end # Total number of test cases. # - # source://minitest//lib/minitest.rb#769 + # source://minitest//lib/minitest.rb#803 def count; end # Total number of test cases. # - # source://minitest//lib/minitest.rb#769 + # source://minitest//lib/minitest.rb#803 def count=(_arg0); end # Total number of tests that erred. # - # source://minitest//lib/minitest.rb#797 + # source://minitest//lib/minitest.rb#831 def errors; end # Total number of tests that erred. # - # source://minitest//lib/minitest.rb#797 + # source://minitest//lib/minitest.rb#831 def errors=(_arg0); end # Total number of tests that failed. # - # source://minitest//lib/minitest.rb#792 + # source://minitest//lib/minitest.rb#826 def failures; end # Total number of tests that failed. # - # source://minitest//lib/minitest.rb#792 + # source://minitest//lib/minitest.rb#826 def failures=(_arg0); end # @return [Boolean] # - # source://minitest//lib/minitest.rb#823 + # source://minitest//lib/minitest.rb#857 def passed?; end - # source://minitest//lib/minitest.rb#831 + # source://minitest//lib/minitest.rb#865 def record(result); end # Report on the tracked statistics. # - # source://minitest//lib/minitest.rb#841 + # source://minitest//lib/minitest.rb#875 def report; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest//lib/minitest.rb#774 + # source://minitest//lib/minitest.rb#808 def results; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest//lib/minitest.rb#774 + # source://minitest//lib/minitest.rb#808 def results=(_arg0); end # Total number of tests that where skipped. # - # source://minitest//lib/minitest.rb#807 + # source://minitest//lib/minitest.rb#841 def skips; end # Total number of tests that where skipped. # - # source://minitest//lib/minitest.rb#807 + # source://minitest//lib/minitest.rb#841 def skips=(_arg0); end - # source://minitest//lib/minitest.rb#827 + # source://minitest//lib/minitest.rb#861 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#781 + # source://minitest//lib/minitest.rb#815 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#781 + # source://minitest//lib/minitest.rb#815 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#787 + # source://minitest//lib/minitest.rb#821 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#787 + # source://minitest//lib/minitest.rb#821 def total_time=(_arg0); end # Total number of tests that warned. # - # source://minitest//lib/minitest.rb#802 + # source://minitest//lib/minitest.rb#836 def warnings; end # Total number of tests that warned. # - # source://minitest//lib/minitest.rb#802 + # source://minitest//lib/minitest.rb#836 def warnings=(_arg0); end end @@ -1291,48 +1297,36 @@ end # plugin, pull this out of the composite and replace it with your # own. # -# source://minitest//lib/minitest.rb#862 +# source://minitest//lib/minitest.rb#896 class Minitest::SummaryReporter < ::Minitest::StatisticsReporter - # source://minitest//lib/minitest.rb#897 + # source://minitest//lib/minitest.rb#929 def aggregated_results(io); end - # Returns the value of attribute old_sync. - # - # source://minitest//lib/minitest.rb#865 + # source://minitest//lib/minitest.rb#898 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#865 + # source://minitest//lib/minitest.rb#898 def old_sync=(_arg0); end - # source://minitest//lib/minitest.rb#880 + # source://minitest//lib/minitest.rb#912 def report; end - # :startdoc: - # - # source://minitest//lib/minitest.rb#868 + # source://minitest//lib/minitest.rb#900 def start; end - # source://minitest//lib/minitest.rb#892 + # source://minitest//lib/minitest.rb#924 def statistics; end - # source://minitest//lib/minitest.rb#917 + # source://minitest//lib/minitest.rb#949 def summary; end - # :stopdoc: - # - # source://minitest//lib/minitest.rb#864 + # source://minitest//lib/minitest.rb#897 def sync; end - # :stopdoc: - # - # source://minitest//lib/minitest.rb#864 + # source://minitest//lib/minitest.rb#897 def sync=(_arg0); end - # source://minitest//lib/minitest.rb#913 + # source://minitest//lib/minitest.rb#945 def to_s; end end @@ -1351,16 +1345,16 @@ class Minitest::Test < ::Minitest::Runnable # LifecycleHooks # - # source://minitest//lib/minitest/test.rb#191 + # source://minitest//lib/minitest/test.rb#189 def capture_exceptions; end # source://minitest//lib/minitest/test.rb#15 def class_name; end - # source://minitest//lib/minitest/test.rb#208 + # source://minitest//lib/minitest/test.rb#206 def neuter_exception(e); end - # source://minitest//lib/minitest/test.rb#219 + # source://minitest//lib/minitest/test.rb#217 def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end # Runs a single test with setup/teardown hooks. @@ -1368,12 +1362,9 @@ class Minitest::Test < ::Minitest::Runnable # source://minitest//lib/minitest/test.rb#87 def run; end - # source://minitest//lib/minitest/test.rb#201 + # source://minitest//lib/minitest/test.rb#199 def sanitize_exception(e); end - # source://minitest//lib/minitest/test.rb#233 - def with_info_handler(&block); end - class << self # Call this at the top of your tests when you absolutely # positively need to have ordered tests. In doing so, you're @@ -1423,7 +1414,7 @@ end # meant for library writers, NOT for regular test authors. See # #before_setup for an example. # -# source://minitest//lib/minitest/test.rb#114 +# source://minitest//lib/minitest/test.rb#112 module Minitest::Test::LifecycleHooks # Runs before every test, after setup. This hook is meant for # libraries to extend minitest. It is not meant to be used by @@ -1431,7 +1422,7 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest//lib/minitest/test.rb#164 + # source://minitest//lib/minitest/test.rb#162 def after_setup; end # Runs after every test, after teardown. This hook is meant for @@ -1440,7 +1431,7 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest//lib/minitest/test.rb#188 + # source://minitest//lib/minitest/test.rb#186 def after_teardown; end # Runs before every test, before setup. This hook is meant for @@ -1475,7 +1466,7 @@ module Minitest::Test::LifecycleHooks # include MyMinitestPlugin # end # - # source://minitest//lib/minitest/test.rb#149 + # source://minitest//lib/minitest/test.rb#147 def before_setup; end # Runs after every test, before teardown. This hook is meant for @@ -1484,19 +1475,19 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest//lib/minitest/test.rb#173 + # source://minitest//lib/minitest/test.rb#171 def before_teardown; end # Runs before every test. Use this to set up before each test # run. # - # source://minitest//lib/minitest/test.rb#155 + # source://minitest//lib/minitest/test.rb#153 def setup; end # Runs after every test. Use this to clean up after each test # run. # - # source://minitest//lib/minitest/test.rb#179 + # source://minitest//lib/minitest/test.rb#177 def teardown; end end @@ -1511,43 +1502,43 @@ 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#1024 +# source://minitest//lib/minitest.rb#1058 class Minitest::UnexpectedError < ::Minitest::Assertion include ::Minitest::Compress # @return [UnexpectedError] a new instance of UnexpectedError # - # source://minitest//lib/minitest.rb#1030 + # source://minitest//lib/minitest.rb#1064 def initialize(error); end - # source://minitest//lib/minitest.rb#1043 + # source://minitest//lib/minitest.rb#1077 def backtrace; end # TODO: figure out how to use `cause` instead # - # source://minitest//lib/minitest.rb#1028 + # source://minitest//lib/minitest.rb#1062 def error; end # TODO: figure out how to use `cause` instead # - # source://minitest//lib/minitest.rb#1028 + # source://minitest//lib/minitest.rb#1062 def error=(_arg0); end - # source://minitest//lib/minitest.rb#1049 + # source://minitest//lib/minitest.rb#1083 def message; end - # source://minitest//lib/minitest.rb#1055 + # source://minitest//lib/minitest.rb#1089 def result_label; end end -# source://minitest//lib/minitest.rb#1047 +# source://minitest//lib/minitest.rb#1081 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 +# source://minitest//lib/minitest.rb#1097 class Minitest::UnexpectedWarning < ::Minitest::Assertion - # source://minitest//lib/minitest.rb#1064 + # source://minitest//lib/minitest.rb#1098 def result_label; end end diff --git a/sorbet/rbi/gems/mutex_m@0.2.0.rbi b/sorbet/rbi/gems/mutex_m@0.2.0.rbi index 50aa6989..378ee4a7 100644 --- a/sorbet/rbi/gems/mutex_m@0.2.0.rbi +++ b/sorbet/rbi/gems/mutex_m@0.2.0.rbi @@ -1,92 +1,9 @@ -# typed: false +# typed: true # DO NOT EDIT MANUALLY # 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 -# be treated like a Mutex. -# -# Start by requiring the standard library Mutex_m: -# -# require "mutex_m.rb" -# -# From here you can extend an object with Mutex instance methods: -# -# obj = Object.new -# obj.extend Mutex_m -# -# Or mixin Mutex_m into your module to your class inherit Mutex instance -# methods --- remember to call super() in your class initialize method. -# -# class Foo -# include Mutex_m -# def initialize -# # ... -# super() -# end -# # ... -# end -# obj = Foo.new -# # this obj can be handled like Mutex -module Mutex_m - # source://mutex_m//mutex_m.rb#111 - def initialize(*args, **_arg1); end - - # source://mutex_m//mutex_m.rb#64 - def mu_extended; end - - # See Thread::Mutex#lock - # - # source://mutex_m//mutex_m.rb#91 - def mu_lock; end - - # See Thread::Mutex#locked? - # - # @return [Boolean] - # - # source://mutex_m//mutex_m.rb#81 - def mu_locked?; end - - # See Thread::Mutex#synchronize - # - # source://mutex_m//mutex_m.rb#76 - def mu_synchronize(&block); end - - # See Thread::Mutex#try_lock - # - # source://mutex_m//mutex_m.rb#86 - def mu_try_lock; end - - # See Thread::Mutex#unlock - # - # source://mutex_m//mutex_m.rb#96 - def mu_unlock; end - - # See Thread::Mutex#sleep - # - # source://mutex_m//mutex_m.rb#101 - def sleep(timeout = T.unsafe(nil)); end - - private - - # source://mutex_m//mutex_m.rb#107 - def mu_initialize; end - - class << self - # source://mutex_m//mutex_m.rb#54 - def append_features(cl); end - - # source://mutex_m//mutex_m.rb#46 - def define_aliases(cl); end - - # source://mutex_m//mutex_m.rb#59 - def extend_object(obj); end - end -end - -# source://mutex_m//mutex_m.rb#43 -Mutex_m::VERSION = T.let(T.unsafe(nil), String) +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/net-http@0.4.1.rbi b/sorbet/rbi/gems/net-http@0.4.1.rbi index cc53a5d3..5bf3b8bc 100644 --- a/sorbet/rbi/gems/net-http@0.4.1.rbi +++ b/sorbet/rbi/gems/net-http@0.4.1.rbi @@ -5,7 +5,694 @@ # Please instead update this file by running `bin/tapioca gem net-http`. -# :enddoc: +# \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 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. @@ -13,7 +700,7 @@ class Net::HTTP < ::Net::Protocol # # @return [HTTP] a new instance of HTTP # - # source://net-http//net/http.rb#1093 + # source://net-http//lib/net/http.rb#1093 def initialize(address, port = T.unsafe(nil)); end # Returns +true+ if the \HTTP session has been started: @@ -32,86 +719,86 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//net/http.rb#1413 + # source://net-http//lib/net/http.rb#1413 def active?; end # Returns the string host name or host IP given as argument +address+ in ::new. # - # source://net-http//net/http.rb#1194 + # source://net-http//lib/net/http.rb#1194 def address; end # Sets or returns the path to a CA certification file in PEM format. # - # source://net-http//net/http.rb#1479 + # source://net-http//lib/net/http.rb#1479 def ca_file; end # Sets or returns the path to a CA certification file in PEM format. # - # source://net-http//net/http.rb#1479 + # source://net-http//lib/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//net/http.rb#1483 + # source://net-http//lib/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//net/http.rb#1483 + # source://net-http//lib/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//net/http.rb#1487 + # source://net-http//lib/net/http.rb#1487 def cert; end # Sets or returns the OpenSSL::X509::Certificate object # to be used for client certification. # - # source://net-http//net/http.rb#1487 + # source://net-http//lib/net/http.rb#1487 def cert=(_arg0); end # Sets or returns the X509::Store to be used for verifying peer certificate. # - # source://net-http//net/http.rb#1490 + # source://net-http//lib/net/http.rb#1490 def cert_store; end # Sets or returns the X509::Store to be used for verifying peer certificate. # - # source://net-http//net/http.rb#1490 + # source://net-http//lib/net/http.rb#1490 def cert_store=(_arg0); end # Sets or returns the available SSL ciphers. - # See {OpenSSL::SSL::SSLContext#ciphers=}[rdoc-ref:OpenSSL::SSL::SSLContext#ciphers-3D]. + # See {OpenSSL::SSL::SSLContext#ciphers=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D]. # - # source://net-http//net/http.rb#1494 + # source://net-http//lib/net/http.rb#1494 def ciphers; end # Sets or returns the available SSL ciphers. - # See {OpenSSL::SSL::SSLContext#ciphers=}[rdoc-ref:OpenSSL::SSL::SSLContext#ciphers-3D]. + # See {OpenSSL::SSL::SSLContext#ciphers=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D]. # - # source://net-http//net/http.rb#1494 + # source://net-http//lib/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//net/http.rb#1421 + # source://net-http//lib/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//net/http.rb#1421 + # source://net-http//lib/net/http.rb#1421 def close_on_empty_response=(_arg0); end # Returns the continue timeout value; # see continue_timeout=. # - # source://net-http//net/http.rb#1374 + # source://net-http//lib/net/http.rb#1374 def continue_timeout; end # Sets the continue timeout value, @@ -119,7 +806,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//net/http.rb#1380 + # source://net-http//lib/net/http.rb#1380 def continue_timeout=(sec); end # Sends a COPY request to the server; @@ -131,7 +818,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.copy('/todos/1') # - # source://net-http//net/http.rb#2123 + # source://net-http//lib/net/http.rb#2123 def copy(path, initheader = T.unsafe(nil)); end # Sends a DELETE request to the server; @@ -143,19 +830,19 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.delete('/todos/1') # - # source://net-http//net/http.rb#2097 + # source://net-http//lib/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}[rdoc-ref:OpenSSL::SSL::SSLContext#add_certificate]. + # See {OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate]. # - # source://net-http//net/http.rb#1498 + # source://net-http//lib/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}[rdoc-ref:OpenSSL::SSL::SSLContext#add_certificate]. + # See {OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate]. # - # source://net-http//net/http.rb#1498 + # source://net-http//lib/net/http.rb#1498 def extra_chain_cert=(_arg0); end # Finishes the \HTTP session: @@ -170,7 +857,7 @@ class Net::HTTP < ::Net::Protocol # # @raise [IOError] # - # source://net-http//net/http.rb#1708 + # source://net-http//lib/net/http.rb#1708 def finish; end # :call-seq: @@ -202,7 +889,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//net/http.rb#1914 + # source://net-http//lib/net/http.rb#1914 def get(path, initheader = T.unsafe(nil), dest = T.unsafe(nil), &block); end # Sends a GET request to the server; @@ -227,7 +914,7 @@ class Net::HTTP < ::Net::Protocol # # # # - # source://net-http//net/http.rb#2176 + # source://net-http//lib/net/http.rb#2176 def get2(path, initheader = T.unsafe(nil), &block); end # Sends a HEAD request to the server; @@ -244,7 +931,7 @@ class Net::HTTP < ::Net::Protocol # ["content-type", ["application/json; charset=utf-8"]], # ["connection", ["close"]]] # - # source://net-http//net/http.rb#1938 + # source://net-http//lib/net/http.rb#1938 def head(path, initheader = T.unsafe(nil)); end # Sends a HEAD request to the server; @@ -256,21 +943,21 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.head('/todos/1') # => # # - # source://net-http//net/http.rb#2189 + # source://net-http//lib/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//net/http.rb#1397 + # source://net-http//lib/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//net/http.rb#1397 + # source://net-http//lib/net/http.rb#1397 def ignore_eof=(_arg0); end # Returns a string representation of +self+: @@ -278,7 +965,7 @@ class Net::HTTP < ::Net::Protocol # Net::HTTP.new(hostname).inspect # # => "#" # - # source://net-http//net/http.rb#1135 + # source://net-http//lib/net/http.rb#1135 def inspect; end # Returns the IP address for the connection. @@ -300,7 +987,7 @@ class Net::HTTP < ::Net::Protocol # http.ipaddr # => "172.67.155.76" # http.finish # - # source://net-http//net/http.rb#1274 + # source://net-http//lib/net/http.rb#1274 def ipaddr; end # Sets the IP address for the connection: @@ -314,7 +1001,7 @@ class Net::HTTP < ::Net::Protocol # # @raise [IOError] # - # source://net-http//net/http.rb#1286 + # source://net-http//lib/net/http.rb#1286 def ipaddr=(addr); end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -325,7 +1012,7 @@ class Net::HTTP < ::Net::Protocol # otherwise the connection will have been closed # and a new connection is opened. # - # source://net-http//net/http.rb#1392 + # source://net-http//lib/net/http.rb#1392 def keep_alive_timeout; end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -336,41 +1023,41 @@ class Net::HTTP < ::Net::Protocol # otherwise the connection will have been closed # and a new connection is opened. # - # source://net-http//net/http.rb#1392 + # source://net-http//lib/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//net/http.rb#1501 + # source://net-http//lib/net/http.rb#1501 def key; end # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. # - # source://net-http//net/http.rb#1501 + # source://net-http//lib/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//net/http.rb#1201 + # source://net-http//lib/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//net/http.rb#1201 + # source://net-http//lib/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//net/http.rb#1205 + # source://net-http//lib/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//net/http.rb#1205 + # source://net-http//lib/net/http.rb#1205 def local_port=(_arg0); end # Sends a LOCK request to the server; @@ -383,13 +1070,13 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.lock('/todos/1', data) # - # source://net-http//net/http.rb#2043 + # source://net-http//lib/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//net/http.rb#1330 + # source://net-http//lib/net/http.rb#1330 def max_retries; end # Sets the maximum number of times to retry an idempotent request in case of @@ -404,31 +1091,31 @@ class Net::HTTP < ::Net::Protocol # http.max_retries = 2 # => 2 # http.max_retries # => 2 # - # source://net-http//net/http.rb#1320 + # source://net-http//lib/net/http.rb#1320 def max_retries=(retries); end # Sets or returns the maximum SSL version. - # See {OpenSSL::SSL::SSLContext#max_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#max_version-3D]. + # See {OpenSSL::SSL::SSLContext#max_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D]. # - # source://net-http//net/http.rb#1516 + # source://net-http//lib/net/http.rb#1516 def max_version; end # Sets or returns the maximum SSL version. - # See {OpenSSL::SSL::SSLContext#max_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#max_version-3D]. + # See {OpenSSL::SSL::SSLContext#max_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D]. # - # source://net-http//net/http.rb#1516 + # source://net-http//lib/net/http.rb#1516 def max_version=(_arg0); end # Sets or returns the minimum SSL version. - # See {OpenSSL::SSL::SSLContext#min_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#min_version-3D]. + # See {OpenSSL::SSL::SSLContext#min_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D]. # - # source://net-http//net/http.rb#1512 + # source://net-http//lib/net/http.rb#1512 def min_version; end # Sets or returns the minimum SSL version. - # See {OpenSSL::SSL::SSLContext#min_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#min_version-3D]. + # See {OpenSSL::SSL::SSLContext#min_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D]. # - # source://net-http//net/http.rb#1512 + # source://net-http//lib/net/http.rb#1512 def min_version=(_arg0); end # Sends a MKCOL request to the server; @@ -441,7 +1128,7 @@ class Net::HTTP < ::Net::Protocol # http.mkcol('/todos/1', data) # http = Net::HTTP.new(hostname) # - # source://net-http//net/http.rb#2137 + # source://net-http//lib/net/http.rb#2137 def mkcol(path, body = T.unsafe(nil), initheader = T.unsafe(nil)); end # Sends a MOVE request to the server; @@ -453,7 +1140,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.move('/todos/1') # - # source://net-http//net/http.rb#2110 + # source://net-http//lib/net/http.rb#2110 def move(path, initheader = T.unsafe(nil)); end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -462,7 +1149,7 @@ class Net::HTTP < ::Net::Protocol # If the connection is not made in the given interval, # an exception is raised. # - # source://net-http//net/http.rb#1296 + # source://net-http//lib/net/http.rb#1296 def open_timeout; end # Sets or returns the numeric (\Integer or \Float) number of seconds @@ -471,7 +1158,7 @@ class Net::HTTP < ::Net::Protocol # If the connection is not made in the given interval, # an exception is raised. # - # source://net-http//net/http.rb#1296 + # source://net-http//lib/net/http.rb#1296 def open_timeout=(_arg0); end # Sends an Options request to the server; @@ -483,7 +1170,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.options('/') # - # source://net-http//net/http.rb#2070 + # source://net-http//lib/net/http.rb#2070 def options(path, initheader = T.unsafe(nil)); end # :call-seq: @@ -511,19 +1198,19 @@ class Net::HTTP < ::Net::Protocol # # http.patch('/todos/1', data) # => # # - # source://net-http//net/http.rb#2001 + # source://net-http//lib/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//net/http.rb#1537 + # source://net-http//lib/net/http.rb#1537 def peer_cert; end # Returns the integer port number given as argument +port+ in ::new. # - # source://net-http//net/http.rb#1197 + # source://net-http//lib/net/http.rb#1197 def port; end # :call-seq: @@ -556,7 +1243,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//net/http.rb#1972 + # source://net-http//lib/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; @@ -582,7 +1269,7 @@ class Net::HTTP < ::Net::Protocol # # "{\n \"xyzzy\": \"\",\n \"id\": 201\n}" # - # source://net-http//net/http.rb#2216 + # source://net-http//lib/net/http.rb#2216 def post2(path, data, initheader = T.unsafe(nil), &block); end # Sends a PROPFIND request to the server; @@ -595,7 +1282,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.propfind('/todos/1', data) # - # source://net-http//net/http.rb#2084 + # source://net-http//lib/net/http.rb#2084 def propfind(path, body = T.unsafe(nil), initheader = T.unsafe(nil)); end # Sends a PROPPATCH request to the server; @@ -608,7 +1295,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.proppatch('/todos/1', data) # - # source://net-http//net/http.rb#2029 + # source://net-http//lib/net/http.rb#2029 def proppatch(path, body, initheader = T.unsafe(nil)); end # Returns +true+ if a proxy server is defined, +false+ otherwise; @@ -616,26 +1303,26 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//net/http.rb#1785 + # source://net-http//lib/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//net/http.rb#1807 + # source://net-http//lib/net/http.rb#1807 def proxy_address; end # Sets the proxy address; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//net/http.rb#1241 + # source://net-http//lib/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//net/http.rb#1237 + # source://net-http//lib/net/http.rb#1237 def proxy_from_env=(_arg0); end # Returns +true+ if the proxy server is defined in the environment, @@ -644,60 +1331,60 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//net/http.rb#1792 + # source://net-http//lib/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//net/http.rb#1838 + # source://net-http//lib/net/http.rb#1838 def proxy_pass; end # Sets the proxy password; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//net/http.rb#1253 + # source://net-http//lib/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//net/http.rb#1817 + # source://net-http//lib/net/http.rb#1817 def proxy_port; end # Sets the proxy port; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//net/http.rb#1245 + # source://net-http//lib/net/http.rb#1245 def proxy_port=(_arg0); end # The proxy URI determined from the environment for this connection. # - # source://net-http//net/http.rb#1797 + # source://net-http//lib/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//net/http.rb#1827 + # source://net-http//lib/net/http.rb#1827 def proxy_user; end # Sets the proxy user; # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. # - # source://net-http//net/http.rb#1249 + # source://net-http//lib/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//net/http.rb#1807 + # source://net-http//lib/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//net/http.rb#1817 + # source://net-http//lib/net/http.rb#1817 def proxyport; end # Sends a PUT request to the server; @@ -710,7 +1397,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.put('/todos/1', data) # => # # - # source://net-http//net/http.rb#2015 + # source://net-http//lib/net/http.rb#2015 def put(path, data, initheader = T.unsafe(nil)); end # Sends a PUT request to the server; @@ -723,14 +1410,14 @@ class Net::HTTP < ::Net::Protocol # http.put('/todos/1', 'xyzzy') # # => # # - # source://net-http//net/http.rb#2230 + # source://net-http//lib/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//net/http.rb#1301 + # source://net-http//lib/net/http.rb#1301 def read_timeout; end # Sets the read timeout, in seconds, for +self+ to integer +sec+; @@ -744,7 +1431,7 @@ class Net::HTTP < ::Net::Protocol # http.read_timeout = 0 # http.get('/todos/1') # Raises Net::ReadTimeout. # - # source://net-http//net/http.rb#1343 + # source://net-http//lib/net/http.rb#1343 def read_timeout=(sec); end # Sends the given request +req+ to the server; @@ -777,7 +1464,7 @@ class Net::HTTP < ::Net::Protocol # # # # - # source://net-http//net/http.rb#2295 + # source://net-http//lib/net/http.rb#2295 def request(req, body = T.unsafe(nil), &block); end # Sends a GET request to the server; @@ -802,7 +1489,7 @@ class Net::HTTP < ::Net::Protocol # # # # - # source://net-http//net/http.rb#2176 + # source://net-http//lib/net/http.rb#2176 def request_get(path, initheader = T.unsafe(nil), &block); end # Sends a HEAD request to the server; @@ -814,7 +1501,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.head('/todos/1') # => # # - # source://net-http//net/http.rb#2189 + # source://net-http//lib/net/http.rb#2189 def request_head(path, initheader = T.unsafe(nil), &block); end # Sends a POST request to the server; @@ -840,7 +1527,7 @@ class Net::HTTP < ::Net::Protocol # # "{\n \"xyzzy\": \"\",\n \"id\": 201\n}" # - # source://net-http//net/http.rb#2216 + # source://net-http//lib/net/http.rb#2216 def request_post(path, data, initheader = T.unsafe(nil), &block); end # Sends a PUT request to the server; @@ -853,13 +1540,13 @@ class Net::HTTP < ::Net::Protocol # http.put('/todos/1', 'xyzzy') # # => # # - # source://net-http//net/http.rb#2230 + # source://net-http//lib/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//net/http.rb#1209 + # source://net-http//lib/net/http.rb#1209 def response_body_encoding; end # Sets the encoding to be used for the response body; @@ -871,7 +1558,7 @@ class Net::HTTP < ::Net::Protocol # - The name of an encoding. # - An alias for an encoding name. # - # See {Encoding}[rdoc-ref:Encoding]. + # See {Encoding}[https://docs.ruby-lang.org/en/master/Encoding.html]. # # Examples: # @@ -880,7 +1567,7 @@ class Net::HTTP < ::Net::Protocol # http.response_body_encoding = 'US-ASCII' # => "US-ASCII" # http.response_body_encoding = 'ASCII' # => "ASCII" # - # source://net-http//net/http.rb#1229 + # source://net-http//lib/net/http.rb#1229 def response_body_encoding=(value); end # Sends an \HTTP request to the server; @@ -903,7 +1590,7 @@ class Net::HTTP < ::Net::Protocol # http.send_request('POST', '/todos', 'xyzzy') # # => # # - # source://net-http//net/http.rb#2259 + # source://net-http//lib/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. @@ -955,29 +1642,29 @@ class Net::HTTP < ::Net::Protocol # read 2 bytes # Conn keep-alive # - # source://net-http//net/http.rb#1188 + # source://net-http//lib/net/http.rb#1188 def set_debug_output(output); end # Sets or returns the SSL timeout seconds. # - # source://net-http//net/http.rb#1504 + # source://net-http//lib/net/http.rb#1504 def ssl_timeout; end # Sets or returns the SSL timeout seconds. # - # source://net-http//net/http.rb#1504 + # source://net-http//lib/net/http.rb#1504 def ssl_timeout=(_arg0); end # Sets or returns the SSL version. - # See {OpenSSL::SSL::SSLContext#ssl_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#ssl_version-3D]. + # See {OpenSSL::SSL::SSLContext#ssl_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D]. # - # source://net-http//net/http.rb#1508 + # source://net-http//lib/net/http.rb#1508 def ssl_version; end # Sets or returns the SSL version. - # See {OpenSSL::SSL::SSLContext#ssl_version=}[rdoc-ref:OpenSSL::SSL::SSLContext#ssl_version-3D]. + # See {OpenSSL::SSL::SSLContext#ssl_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D]. # - # source://net-http//net/http.rb#1508 + # source://net-http//lib/net/http.rb#1508 def ssl_version=(_arg0); end # Starts an \HTTP session. @@ -1003,7 +1690,7 @@ class Net::HTTP < ::Net::Protocol # # @raise [IOError] # - # source://net-http//net/http.rb#1565 + # source://net-http//lib/net/http.rb#1565 def start; end # Returns +true+ if the \HTTP session has been started: @@ -1022,7 +1709,7 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//net/http.rb#1413 + # source://net-http//lib/net/http.rb#1413 def started?; end # Sends a TRACE request to the server; @@ -1034,7 +1721,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.trace('/todos/1') # - # source://net-http//net/http.rb#2150 + # source://net-http//lib/net/http.rb#2150 def trace(path, initheader = T.unsafe(nil)); end # Sends an UNLOCK request to the server; @@ -1047,7 +1734,7 @@ class Net::HTTP < ::Net::Protocol # http = Net::HTTP.new(hostname) # http.unlock('/todos/1', data) # - # source://net-http//net/http.rb#2057 + # source://net-http//lib/net/http.rb#2057 def unlock(path, body, initheader = T.unsafe(nil)); end # Sets whether a new session is to use @@ -1057,7 +1744,7 @@ class Net::HTTP < ::Net::Protocol # # Raises OpenSSL::SSL::SSLError if the port is not an HTTPS port. # - # source://net-http//net/http.rb#1435 + # source://net-http//lib/net/http.rb#1435 def use_ssl=(flag); end # Returns +true+ if +self+ uses SSL, +false+ otherwise. @@ -1065,62 +1752,62 @@ class Net::HTTP < ::Net::Protocol # # @return [Boolean] # - # source://net-http//net/http.rb#1425 + # source://net-http//lib/net/http.rb#1425 def use_ssl?; end # Sets or returns the callback for the server certification verification. # - # source://net-http//net/http.rb#1519 + # source://net-http//lib/net/http.rb#1519 def verify_callback; end # Sets or returns the callback for the server certification verification. # - # source://net-http//net/http.rb#1519 + # source://net-http//lib/net/http.rb#1519 def verify_callback=(_arg0); end # Sets or returns the maximum depth for the certificate chain verification. # - # source://net-http//net/http.rb#1522 + # source://net-http//lib/net/http.rb#1522 def verify_depth; end # Sets or returns the maximum depth for the certificate chain verification. # - # source://net-http//net/http.rb#1522 + # source://net-http//lib/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=}[rdoc-ref:OpenSSL::SSL::SSLContext#attribute-i-verify_mode]. + # See {OpenSSL::SSL::SSLContext#verify_hostname=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode]. # - # source://net-http//net/http.rb#1532 + # source://net-http//lib/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=}[rdoc-ref:OpenSSL::SSL::SSLContext#attribute-i-verify_mode]. + # See {OpenSSL::SSL::SSLContext#verify_hostname=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode]. # - # source://net-http//net/http.rb#1532 + # source://net-http//lib/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//net/http.rb#1527 + # source://net-http//lib/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//net/http.rb#1527 + # source://net-http//lib/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//net/http.rb#1306 + # source://net-http//lib/net/http.rb#1306 def write_timeout; end # Sets the write timeout, in seconds, for +self+ to integer +sec+; @@ -1142,76 +1829,76 @@ class Net::HTTP < ::Net::Protocol # http.write_timeout = 0 # http.post(_uri.path, data, headers) # Raises Net::WriteTimeout. # - # source://net-http//net/http.rb#1367 + # source://net-http//lib/net/http.rb#1367 def write_timeout=(sec); end private # Adds a message to debugging output # - # source://net-http//net/http.rb#2472 + # source://net-http//lib/net/http.rb#2472 def D(msg); end - # source://net-http//net/http.rb#2464 + # source://net-http//lib/net/http.rb#2464 def addr_port; end - # source://net-http//net/http.rb#2381 + # source://net-http//lib/net/http.rb#2381 def begin_transport(req); end # without proxy, obsolete # - # source://net-http//net/http.rb#1859 + # source://net-http//lib/net/http.rb#1859 def conn_address; end - # source://net-http//net/http.rb#1863 + # source://net-http//lib/net/http.rb#1863 def conn_port; end - # source://net-http//net/http.rb#1585 + # source://net-http//lib/net/http.rb#1585 def connect; end # Adds a message to debugging output # - # source://net-http//net/http.rb#2472 + # source://net-http//lib/net/http.rb#2472 def debug(msg); end - # source://net-http//net/http.rb#1713 + # source://net-http//lib/net/http.rb#1713 def do_finish; end - # source://net-http//net/http.rb#1579 + # source://net-http//lib/net/http.rb#1579 def do_start; end - # source://net-http//net/http.rb#1867 + # source://net-http//lib/net/http.rb#1867 def edit_path(path); end - # source://net-http//net/http.rb#2404 + # source://net-http//lib/net/http.rb#2404 def end_transport(req, res); end # @return [Boolean] # - # source://net-http//net/http.rb#2421 + # source://net-http//lib/net/http.rb#2421 def keep_alive?(req, res); end - # source://net-http//net/http.rb#1695 + # source://net-http//lib/net/http.rb#1695 def on_connect; end # Executes a request which uses a representation # and returns its body. # - # source://net-http//net/http.rb#2318 + # source://net-http//lib/net/http.rb#2318 def send_entity(path, data, initheader, dest, type, &block); end - # source://net-http//net/http.rb#2445 + # source://net-http//lib/net/http.rb#2445 def sspi_auth(req); end # @return [Boolean] # - # source://net-http//net/http.rb#2430 + # source://net-http//lib/net/http.rb#2430 def sspi_auth?(res); end - # source://net-http//net/http.rb#2329 + # source://net-http//lib/net/http.rb#2329 def transport_request(req); end - # source://net-http//net/http.rb#1852 + # source://net-http//lib/net/http.rb#1852 def unescape(value); end class << self @@ -1221,14 +1908,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//net/http.rb#1739 + # source://net-http//lib/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//net/http.rb#900 + # source://net-http//lib/net/http.rb#900 def default_port; end # :call-seq: @@ -1263,7 +1950,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//net/http.rb#802 + # source://net-http//lib/net/http.rb#802 def get(uri_or_host, path_or_headers = T.unsafe(nil), port = T.unsafe(nil)); end # :call-seq: @@ -1273,7 +1960,7 @@ class Net::HTTP < ::Net::Protocol # Like Net::HTTP.get, but writes the returned body to $stdout; # returns +nil+. # - # source://net-http//net/http.rb#761 + # source://net-http//lib/net/http.rb#761 def get_print(uri_or_host, path_or_headers = T.unsafe(nil), port = T.unsafe(nil)); end # :call-seq: @@ -1283,35 +1970,35 @@ class Net::HTTP < ::Net::Protocol # Like Net::HTTP.get, but returns a Net::HTTPResponse object # instead of the body string. # - # source://net-http//net/http.rb#812 + # source://net-http//lib/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//net/http.rb#908 + # source://net-http//lib/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//net/http.rb#916 + # source://net-http//lib/net/http.rb#916 def https_default_port; end # Returns +false+; retained for compatibility. # # @return [Boolean] # - # source://net-http//net/http.rb#746 + # source://net-http//lib/net/http.rb#746 def is_version_1_1?; end # Returns +true+; retained for compatibility. # # @return [Boolean] # - # source://net-http//net/http.rb#741 + # source://net-http//lib/net/http.rb#741 def is_version_1_2?; end # Returns a new \Net::HTTP object +http+ @@ -1343,7 +2030,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//net/http.rb#1065 + # source://net-http//lib/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. @@ -1372,7 +2059,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//net/http.rb#855 + # source://net-http//lib/net/http.rb#855 def post(url, data, header = T.unsafe(nil)); end # Posts data to a host; returns a Net::HTTPResponse object. @@ -1395,41 +2082,41 @@ class Net::HTTP < ::Net::Protocol # "id": 101 # } # - # source://net-http//net/http.rb#882 + # source://net-http//lib/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//net/http.rb#1768 + # source://net-http//lib/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//net/http.rb#1762 + # source://net-http//lib/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//net/http.rb#1780 + # source://net-http//lib/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//net/http.rb#1772 + # source://net-http//lib/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//net/http.rb#1776 + # source://net-http//lib/net/http.rb#1776 def proxy_user; end - # source://net-http//net/http.rb#920 + # source://net-http//lib/net/http.rb#920 def socket_type; end # :call-seq: @@ -1518,49 +2205,50 @@ 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//net/http.rb#1010 + # source://net-http//lib/net/http.rb#1010 def start(address, *arg, &block); end # Returns +false+; retained for compatibility. # # @return [Boolean] # - # source://net-http//net/http.rb#746 + # source://net-http//lib/net/http.rb#746 def version_1_1?; end # Returns +true+; retained for compatibility. # - # source://net-http//net/http.rb#736 + # source://net-http//lib/net/http.rb#736 def version_1_2; end # Returns +true+; retained for compatibility. # # @return [Boolean] # - # source://net-http//net/http.rb#741 + # source://net-http//lib/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//net/http/proxy_delta.rb#5 + # source://net-http//lib/net/http/proxy_delta.rb#5 def conn_address; end - # source://net-http//net/http/proxy_delta.rb#9 + # source://net-http//lib/net/http/proxy_delta.rb#9 def conn_port; end - # source://net-http//net/http/proxy_delta.rb#13 + # source://net-http//lib/net/http/proxy_delta.rb#13 def edit_path(path); end end -# source://net-http//net/http/backward.rb#7 +# source://net-http//lib/net/http/backward.rb#7 Net::HTTP::ProxyMod = Net::HTTP::ProxyDelta # :stopdoc: # -# source://net-http//net/http.rb#725 +# source://net-http//lib/net/http.rb#725 Net::HTTP::VERSION = T.let(T.unsafe(nil), String) # Response class for Already Reported (WebDAV) responses (status code 208). @@ -1577,15 +2265,17 @@ 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//net/http/responses.rb#307 +# source://net-http//lib/net/http/responses.rb#307 Net::HTTPAlreadyReported::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//net/http/responses.rb#67 +# source://net-http//lib/net/http/responses.rb#67 Net::HTTPClientError::EXCEPTION_TYPE = Net::HTTPClientException -# source://net-http//net/http/backward.rb#23 +# source://net-http//lib/net/http/backward.rb#23 Net::HTTPClientErrorCode = Net::HTTPClientError # Response class for Early Hints responses (status code 103). @@ -1601,12 +2291,14 @@ 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//net/http/responses.rb#148 +# source://net-http//lib/net/http/responses.rb#148 Net::HTTPEarlyHints::HAS_BODY = T.let(T.unsafe(nil), FalseClass) -# source://net-http//net/http/backward.rb#24 +# source://net-http//lib/net/http/backward.rb#24 Net::HTTPFatalErrorCode = Net::HTTPClientError # \HTTPGenericRequest is the parent of the Net::HTTPRequest class. @@ -1616,18 +2308,20 @@ 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//net/http/generic_request.rb#15 + # source://net-http//lib/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//net/http/generic_request.rb#109 + # source://net-http//lib/net/http/generic_request.rb#109 def []=(key, val); end # Returns the string body for the request, or +nil+ if there is none: @@ -1637,7 +2331,7 @@ class Net::HTTPGenericRequest # req.body = '{"title": "foo","body": "bar","userId": 1}' # req.body # => "{\"title\": \"foo\",\"body\": \"bar\",\"userId\": 1}" # - # source://net-http//net/http/generic_request.rb#145 + # source://net-http//lib/net/http/generic_request.rb#145 def body; end # Sets the body for the request: @@ -1647,12 +2341,12 @@ class Net::HTTPGenericRequest # req.body = '{"title": "foo","body": "bar","userId": 1}' # req.body # => "{\"title\": \"foo\",\"body\": \"bar\",\"userId\": 1}" # - # source://net-http//net/http/generic_request.rb#154 + # source://net-http//lib/net/http/generic_request.rb#154 def body=(str); end # @return [Boolean] # - # source://net-http//net/http/generic_request.rb#133 + # source://net-http//lib/net/http/generic_request.rb#133 def body_exist?; end # Returns the body stream object for the request, or +nil+ if there is none: @@ -1663,7 +2357,7 @@ class Net::HTTPGenericRequest # req.body_stream = StringIO.new('xyzzy') # => # # req.body_stream # => # # - # source://net-http//net/http/generic_request.rb#169 + # source://net-http//lib/net/http/generic_request.rb#169 def body_stream; end # Sets the body stream for the request: @@ -1674,7 +2368,7 @@ class Net::HTTPGenericRequest # req.body_stream = StringIO.new('xyzzy') # => # # req.body_stream # => # # - # source://net-http//net/http/generic_request.rb#179 + # source://net-http//lib/net/http/generic_request.rb#179 def body_stream=(input); end # Returns +false+ if the request's header 'Accept-Encoding' @@ -1690,19 +2384,19 @@ class Net::HTTPGenericRequest # req.delete('Accept-Encoding') # req.decode_content # => false # - # source://net-http//net/http/generic_request.rb#95 + # source://net-http//lib/net/http/generic_request.rb#95 def decode_content; end # write # - # source://net-http//net/http/generic_request.rb#198 + # source://net-http//lib/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//net/http/generic_request.rb#101 + # source://net-http//lib/net/http/generic_request.rb#101 def inspect; end # Returns the string method name for the request: @@ -1710,7 +2404,7 @@ class Net::HTTPGenericRequest # Net::HTTP::Get.new(uri).method # => "GET" # Net::HTTP::Post.new(uri).method # => "POST" # - # source://net-http//net/http/generic_request.rb#65 + # source://net-http//lib/net/http/generic_request.rb#65 def method; end # Returns the string path for the request: @@ -1718,7 +2412,7 @@ class Net::HTTPGenericRequest # Net::HTTP::Get.new(uri).path # => "/" # Net::HTTP::Post.new('example.com').path # => "example.com" # - # source://net-http//net/http/generic_request.rb#72 + # source://net-http//lib/net/http/generic_request.rb#72 def path; end # Returns whether the request may have a body: @@ -1728,7 +2422,7 @@ class Net::HTTPGenericRequest # # @return [Boolean] # - # source://net-http//net/http/generic_request.rb#120 + # source://net-http//lib/net/http/generic_request.rb#120 def request_body_permitted?; end # Returns whether the response may have a body: @@ -1738,15 +2432,15 @@ class Net::HTTPGenericRequest # # @return [Boolean] # - # source://net-http//net/http/generic_request.rb#129 + # source://net-http//lib/net/http/generic_request.rb#129 def response_body_permitted?; end # @raise [ArgumentError] # - # source://net-http//net/http/generic_request.rb#186 + # source://net-http//lib/net/http/generic_request.rb#186 def set_body_internal(str); end - # source://net-http//net/http/generic_request.rb#210 + # source://net-http//lib/net/http/generic_request.rb#210 def update_uri(addr, port, ssl); end # Returns the URI object for the request, or +nil+ if none: @@ -1755,52 +2449,53 @@ class Net::HTTPGenericRequest # # => # # Net::HTTP::Get.new('example.com').uri # => nil # - # source://net-http//net/http/generic_request.rb#80 + # source://net-http//lib/net/http/generic_request.rb#80 def uri; end private - # source://net-http//net/http/generic_request.rb#312 + # source://net-http//lib/net/http/generic_request.rb#312 def encode_multipart_form_data(out, params, opt); end - # source://net-http//net/http/generic_request.rb#368 + # source://net-http//lib/net/http/generic_request.rb#368 def flush_buffer(out, buf, chunked_p); end - # source://net-http//net/http/generic_request.rb#363 + # source://net-http//lib/net/http/generic_request.rb#363 def quote_string(str, charset); end - # source://net-http//net/http/generic_request.rb#260 + # source://net-http//lib/net/http/generic_request.rb#260 def send_request_with_body(sock, ver, path, body); end - # source://net-http//net/http/generic_request.rb#286 + # source://net-http//lib/net/http/generic_request.rb#286 def send_request_with_body_data(sock, ver, path, params); end - # source://net-http//net/http/generic_request.rb#269 + # source://net-http//lib/net/http/generic_request.rb#269 def send_request_with_body_stream(sock, ver, path, f); end - # source://net-http//net/http/generic_request.rb#376 + # source://net-http//lib/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//net/http/generic_request.rb#386 + # source://net-http//lib/net/http/generic_request.rb#386 def wait_for_continue(sock, ver); end - # source://net-http//net/http/generic_request.rb#399 + # source://net-http//lib/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//net/http/generic_request.rb#243 + # source://net-http//lib/net/http/generic_request.rb#243 def initialize(sock); end - # source://net-http//net/http/generic_request.rb#255 + # source://net-http//lib/net/http/generic_request.rb#255 def finish; end - # source://net-http//net/http/generic_request.rb#248 + # source://net-http//lib/net/http/generic_request.rb#248 def write(buf); end end @@ -1981,6 +2676,8 @@ 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; @@ -1993,7 +2690,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//net/http/header.rb#224 + # source://net-http//lib/net/http/header.rb#224 def [](key); end # Sets the value for the case-insensitive +key+ to +val+, @@ -2008,7 +2705,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//net/http/header.rb#240 + # source://net-http//lib/net/http/header.rb#240 def []=(key, val); end # Adds value +val+ to the value array for field +key+ if the field exists; @@ -2024,7 +2721,7 @@ module Net::HTTPHeader # req['Foo'] # => "bar, baz, baz, bam" # req.get_fields('Foo') # => ["bar", "baz", "baz", "bam"] # - # source://net-http//net/http/header.rb#261 + # source://net-http//lib/net/http/header.rb#261 def add_field(key, val); end # Sets header 'Authorization' using the given @@ -2034,14 +2731,14 @@ module Net::HTTPHeader # req['Authorization'] # # => "Basic bXlfYWNjb3VudDpteV9wYXNzd29yZA==" # - # source://net-http//net/http/header.rb#945 + # source://net-http//lib/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//net/http/header.rb#484 + # source://net-http//lib/net/http/header.rb#484 def canonical_each; end # Returns +true+ if field 'Transfer-Encoding' @@ -2055,21 +2752,21 @@ module Net::HTTPHeader # # @return [Boolean] # - # source://net-http//net/http/header.rb#654 + # source://net-http//lib/net/http/header.rb#654 def chunked?; end # Returns whether the HTTP session is to be closed. # # @return [Boolean] # - # source://net-http//net/http/header.rb#966 + # source://net-http//lib/net/http/header.rb#966 def connection_close?; end # Returns whether the HTTP session is to be kept alive. # # @return [Boolean] # - # source://net-http//net/http/header.rb#974 + # source://net-http//lib/net/http/header.rb#974 def connection_keep_alive?; end # Returns the value of field 'Content-Length' as an integer, @@ -2081,7 +2778,7 @@ module Net::HTTPHeader # res = Net::HTTP.get_response(hostname, '/todos/1') # res.content_length # => nil # - # source://net-http//net/http/header.rb#616 + # source://net-http//lib/net/http/header.rb#616 def content_length; end # Sets the value of field 'Content-Length' to the given numeric; @@ -2098,7 +2795,7 @@ module Net::HTTPHeader # http.request(req) # end # => # # - # source://net-http//net/http/header.rb#637 + # source://net-http//lib/net/http/header.rb#637 def content_length=(len); end # Returns a Range object representing the value of field @@ -2111,7 +2808,7 @@ module Net::HTTPHeader # res['Content-Range'] # => "bytes 0-499/1000" # res.content_range # => 0..499 # - # source://net-http//net/http/header.rb#670 + # source://net-http//lib/net/http/header.rb#670 def content_range; end # Returns the {media type}[https://en.wikipedia.org/wiki/Media_type] @@ -2123,7 +2820,7 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.content_type # => "application/json" # - # source://net-http//net/http/header.rb#701 + # source://net-http//lib/net/http/header.rb#701 def content_type; end # Sets the value of field 'Content-Type'; @@ -2135,7 +2832,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type. # - # source://net-http//net/http/header.rb#772 + # source://net-http//lib/net/http/header.rb#772 def content_type=(type, params = T.unsafe(nil)); end # Removes the header for the given case-insensitive +key+ @@ -2146,7 +2843,7 @@ module Net::HTTPHeader # req.delete('Accept') # => ["*/*"] # req.delete('Nosuch') # => nil # - # source://net-http//net/http/header.rb#453 + # source://net-http//lib/net/http/header.rb#453 def delete(key); end # Calls the block with each key/value pair: @@ -2168,14 +2865,14 @@ module Net::HTTPHeader # # Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header. # - # source://net-http//net/http/header.rb#364 + # source://net-http//lib/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//net/http/header.rb#484 + # source://net-http//lib/net/http/header.rb#484 def each_capitalized; end # Calls the block with each capitalized field name: @@ -2194,11 +2891,11 @@ module Net::HTTPHeader # "Cf-Ray" # # The capitalization is system-dependent; - # see {Case Mapping}[rdoc-ref:case_mapping.rdoc]. + # see {Case Mapping}[https://docs.ruby-lang.org/en/master/case_mapping_rdoc.html]. # # Returns an enumerator if no block is given. # - # source://net-http//net/http/header.rb#417 + # source://net-http//lib/net/http/header.rb#417 def each_capitalized_name; end # Calls the block with each key/value pair: @@ -2220,7 +2917,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header. # - # source://net-http//net/http/header.rb#364 + # source://net-http//lib/net/http/header.rb#364 def each_header; end # Calls the block with each field key: @@ -2242,7 +2939,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key. # - # source://net-http//net/http/header.rb#391 + # source://net-http//lib/net/http/header.rb#391 def each_key(&block); end # Calls the block with each field key: @@ -2264,7 +2961,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key. # - # source://net-http//net/http/header.rb#391 + # source://net-http//lib/net/http/header.rb#391 def each_name(&block); end # Calls the block with each string field value: @@ -2282,7 +2979,7 @@ module Net::HTTPHeader # # Returns an enumerator if no block is given. # - # source://net-http//net/http/header.rb#438 + # source://net-http//lib/net/http/header.rb#438 def each_value; end # call-seq: @@ -2314,7 +3011,7 @@ module Net::HTTPHeader # res.fetch('Nosuch', 'Foo') # => "Foo" # res.fetch('Nosuch') # Raises KeyError. # - # source://net-http//net/http/header.rb#341 + # source://net-http//lib/net/http/header.rb#341 def fetch(key, *args, &block); end # Sets the request body to a URL-encoded string derived from argument +params+, @@ -2324,7 +3021,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}[rdoc-ref:URI.encode_www_form]. + # {URI.encode_www_form}[https://docs.ruby-lang.org/en/master/URI.html#method-c-encode_www_form]. # # With only argument +params+ given, # sets the body to a URL-encoded string with the default separator '&': @@ -2352,7 +3049,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data. # - # source://net-http//net/http/header.rb#812 + # source://net-http//lib/net/http/header.rb#812 def form_data=(params, sep = T.unsafe(nil)); end # Returns the array field value for the given +key+, @@ -2363,10 +3060,10 @@ module Net::HTTPHeader # res.get_fields('Connection') # => ["keep-alive"] # res.get_fields('Nosuch') # => nil # - # source://net-http//net/http/header.rb#306 + # source://net-http//lib/net/http/header.rb#306 def get_fields(key); end - # source://net-http//net/http/header.rb#185 + # source://net-http//lib/net/http/header.rb#185 def initialize_http_header(initheader); end # Returns +true+ if the field for the case-insensitive +key+ exists, +false+ otherwise: @@ -2377,10 +3074,10 @@ module Net::HTTPHeader # # @return [Boolean] # - # source://net-http//net/http/header.rb#463 + # source://net-http//lib/net/http/header.rb#463 def key?(key); end - # source://net-http//net/http/header.rb#208 + # source://net-http//lib/net/http/header.rb#208 def length; end # Returns the leading ('type') part of the @@ -2393,7 +3090,7 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.main_type # => "application" # - # source://net-http//net/http/header.rb#723 + # source://net-http//lib/net/http/header.rb#723 def main_type; end # Sets header 'Proxy-Authorization' using the given @@ -2403,7 +3100,7 @@ module Net::HTTPHeader # req['Proxy-Authorization'] # # => "Basic bXlfYWNjb3VudDpteV9wYXNzd29yZA==" # - # source://net-http//net/http/header.rb#956 + # source://net-http//lib/net/http/header.rb#956 def proxy_basic_auth(account, password); end # Returns an array of Range objects that represent @@ -2417,7 +3114,7 @@ module Net::HTTPHeader # req.delete('Range') # req.range # # => nil # - # source://net-http//net/http/header.rb#509 + # source://net-http//lib/net/http/header.rb#509 def range; end # call-seq: @@ -2446,7 +3143,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range. # - # source://net-http//net/http/header.rb#576 + # source://net-http//lib/net/http/header.rb#576 def range=(r, e = T.unsafe(nil)); end # Returns the integer representing length of the value of field @@ -2458,7 +3155,7 @@ module Net::HTTPHeader # res['Content-Range'] = 'bytes 0-499/1000' # res.range_length # => 500 # - # source://net-http//net/http/header.rb#687 + # source://net-http//lib/net/http/header.rb#687 def range_length; end # Sets the value of field 'Content-Type'; @@ -2470,7 +3167,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type. # - # source://net-http//net/http/header.rb#772 + # source://net-http//lib/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. @@ -2483,7 +3180,7 @@ module Net::HTTPHeader # - An IO stream opened for reading. # # Argument +params+ should be an - # {Enumerable}[rdoc-ref:Enumerable@Enumerable+in+Ruby+Classes] + # {Enumerable}[https://docs.ruby-lang.org/en/master/Enumerable.html#module-Enumerable-label-Enumerable+in+Ruby+Classes] # (method params.map will be called), # and is often an array or hash. # @@ -2576,7 +3273,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//net/http/header.rb#924 + # source://net-http//lib/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+, @@ -2586,7 +3283,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}[rdoc-ref:URI.encode_www_form]. + # {URI.encode_www_form}[https://docs.ruby-lang.org/en/master/URI.html#method-c-encode_www_form]. # # With only argument +params+ given, # sets the body to a URL-encoded string with the default separator '&': @@ -2614,7 +3311,7 @@ module Net::HTTPHeader # # Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data. # - # source://net-http//net/http/header.rb#812 + # source://net-http//lib/net/http/header.rb#812 def set_form_data(params, sep = T.unsafe(nil)); end # call-seq: @@ -2643,10 +3340,10 @@ module Net::HTTPHeader # # Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range. # - # source://net-http//net/http/header.rb#576 + # source://net-http//lib/net/http/header.rb#576 def set_range(r, e = T.unsafe(nil)); end - # source://net-http//net/http/header.rb#208 + # source://net-http//lib/net/http/header.rb#208 def size; end # Returns the trailing ('subtype') part of the @@ -2659,7 +3356,7 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.sub_type # => "json" # - # source://net-http//net/http/header.rb#738 + # source://net-http//lib/net/http/header.rb#738 def sub_type; end # Returns a hash of the key/value pairs: @@ -2672,7 +3369,7 @@ module Net::HTTPHeader # "user-agent"=>["Ruby"], # "host"=>["jsonplaceholder.typicode.com"]} # - # source://net-http//net/http/header.rb#477 + # source://net-http//lib/net/http/header.rb#477 def to_hash; end # Returns the trailing ('parameters') part of the value of field 'Content-Type', @@ -2683,34 +3380,34 @@ module Net::HTTPHeader # res['content-type'] # => "application/json; charset=utf-8" # res.type_params # => {"charset"=>"utf-8"} # - # source://net-http//net/http/header.rb#753 + # source://net-http//lib/net/http/header.rb#753 def type_params; end private - # source://net-http//net/http/header.rb#285 + # source://net-http//lib/net/http/header.rb#285 def append_field_value(ary, val); end - # source://net-http//net/http/header.rb#960 + # source://net-http//lib/net/http/header.rb#960 def basic_encode(account, password); end - # source://net-http//net/http/header.rb#493 + # source://net-http//lib/net/http/header.rb#493 def capitalize(name); end - # source://net-http//net/http/header.rb#270 + # source://net-http//lib/net/http/header.rb#270 def set_field(key, val); end end -# source://net-http//net/http/header.rb#183 +# source://net-http//lib/net/http/header.rb#183 Net::HTTPHeader::MAX_FIELD_LENGTH = T.let(T.unsafe(nil), Integer) -# source://net-http//net/http/header.rb#182 +# source://net-http//lib/net/http/header.rb#182 Net::HTTPHeader::MAX_KEY_LENGTH = T.let(T.unsafe(nil), Integer) -# source://net-http//net/http/responses.rb#23 +# source://net-http//lib/net/http/responses.rb#23 Net::HTTPInformation::EXCEPTION_TYPE = Net::HTTPError -# source://net-http//net/http/backward.rb#19 +# source://net-http//lib/net/http/backward.rb#19 Net::HTTPInformationCode = Net::HTTPInformation # Response class for Loop Detected (WebDAV) responses (status code 508). @@ -2724,9 +3421,11 @@ 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//net/http/responses.rb#1062 +# source://net-http//lib/net/http/responses.rb#1062 Net::HTTPLoopDetected::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # Response class for Misdirected Request responses (status code 421). @@ -2739,15 +3438,17 @@ 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//net/http/responses.rb#777 +# source://net-http//lib/net/http/responses.rb#777 Net::HTTPMisdirectedRequest::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//net/http/responses.rb#378 +# source://net-http//lib/net/http/responses.rb#378 Net::HTTPMovedTemporarily = Net::HTTPFound -# source://net-http//net/http/responses.rb#343 +# source://net-http//lib/net/http/responses.rb#343 Net::HTTPMultipleChoice = Net::HTTPMultipleChoices # Response class for Not Extended responses (status code 510). @@ -2761,9 +3462,11 @@ 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//net/http/responses.rb#1079 +# source://net-http//lib/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). @@ -2777,9 +3480,11 @@ 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//net/http/responses.rb#689 +# source://net-http//lib/net/http/responses.rb#689 Net::HTTPPayloadTooLarge::HAS_BODY = T.let(T.unsafe(nil), TrueClass) # Response class for +Processing+ responses (status code 102). @@ -2793,9 +3498,11 @@ 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//net/http/responses.rb#130 +# source://net-http//lib/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). @@ -2809,23 +3516,25 @@ 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//net/http/responses.rb#740 +# source://net-http//lib/net/http/responses.rb#740 Net::HTTPRangeNotSatisfiable::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//net/http/responses.rb#53 +# source://net-http//lib/net/http/responses.rb#53 Net::HTTPRedirection::EXCEPTION_TYPE = Net::HTTPRetriableError -# source://net-http//net/http/backward.rb#21 +# source://net-http//lib/net/http/backward.rb#21 Net::HTTPRedirectionCode = Net::HTTPRedirection -# source://net-http//net/http/responses.rb#709 +# source://net-http//lib/net/http/responses.rb#709 Net::HTTPRequestURITooLarge = Net::HTTPURITooLong # Typo since 2001 # -# source://net-http//net/http/backward.rb#28 +# source://net-http//lib/net/http/backward.rb#28 Net::HTTPResponceReceiver = Net::HTTPResponse # This class is the base class for \Net::HTTP response classes. @@ -2959,12 +3668,14 @@ 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//net/http/response.rb#194 + # source://net-http//lib/net/http/response.rb#194 def initialize(httpv, code, msg); end # Returns the string response body; @@ -2982,25 +3693,25 @@ class Net::HTTPResponse # "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}" # nil # - # source://net-http//net/http/response.rb#400 + # source://net-http//lib/net/http/response.rb#400 def body; end # Sets the body of the response to the given value. # - # source://net-http//net/http/response.rb#405 + # source://net-http//lib/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//net/http/response.rb#229 + # source://net-http//lib/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)}[rdoc-ref:Encoding.find] + # {Encoding#find(value)}[https://docs.ruby-lang.org/en/master/Encoding.html#method-c-find] # will be used. # - Otherwise an encoding will be deduced from the body itself. # @@ -3018,31 +3729,31 @@ class Net::HTTPResponse # p res.body.encoding # => # # end # - # source://net-http//net/http/response.rb#253 + # source://net-http//lib/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//net/http/response.rb#213 + # source://net-http//lib/net/http/response.rb#213 def code; end # response <-> exception relationship # - # source://net-http//net/http/response.rb#270 + # source://net-http//lib/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//net/http/response.rb#225 + # source://net-http//lib/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//net/http/response.rb#225 + # source://net-http//lib/net/http/response.rb#225 def decode_content=(_arg0); end # Returns the string response body; @@ -3060,48 +3771,48 @@ class Net::HTTPResponse # "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"delectus aut autem\",\n \"completed\": false\n}" # nil # - # source://net-http//net/http/response.rb#400 + # source://net-http//lib/net/http/response.rb#400 def entity; end # @raise [error_type()] # - # source://net-http//net/http/response.rb#274 + # source://net-http//lib/net/http/response.rb#274 def error!; end - # source://net-http//net/http/response.rb#280 + # source://net-http//lib/net/http/response.rb#280 def error_type; end - # source://net-http//net/http/response.rb#302 + # source://net-http//lib/net/http/response.rb#302 def header; end # The HTTP version supported by the server. # - # source://net-http//net/http/response.rb#208 + # source://net-http//lib/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//net/http/response.rb#260 + # source://net-http//lib/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//net/http/response.rb#260 + # source://net-http//lib/net/http/response.rb#260 def ignore_eof=(_arg0); end - # source://net-http//net/http/response.rb#262 + # source://net-http//lib/net/http/response.rb#262 def inspect; end # The HTTP result message sent by the server. For example, 'Not Found'. # - # source://net-http//net/http/response.rb#216 + # source://net-http//lib/net/http/response.rb#216 def message; end # The HTTP result message sent by the server. For example, 'Not Found'. # - # source://net-http//net/http/response.rb#216 + # source://net-http//lib/net/http/response.rb#216 def msg; end # Gets the entity body returned by the remote HTTP server. @@ -3132,48 +3843,48 @@ class Net::HTTPResponse # end # } # - # source://net-http//net/http/response.rb#355 + # source://net-http//lib/net/http/response.rb#355 def read_body(dest = T.unsafe(nil), &block); end - # source://net-http//net/http/response.rb#307 + # source://net-http//lib/net/http/response.rb#307 def read_header; end # body # - # source://net-http//net/http/response.rb#316 + # source://net-http//lib/net/http/response.rb#316 def reading_body(sock, reqmethodallowbody); end # header (for backward compatibility only; DO NOT USE) # - # source://net-http//net/http/response.rb#297 + # source://net-http//lib/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//net/http/response.rb#221 + # source://net-http//lib/net/http/response.rb#221 def uri; end - # source://net-http//net/http/response.rb#289 + # source://net-http//lib/net/http/response.rb#289 def uri=(uri); end # Raises an HTTP error if the response is not 2xx (success). # - # source://net-http//net/http/response.rb#285 + # source://net-http//lib/net/http/response.rb#285 def value; end private - # source://net-http//net/http/response.rb#450 + # source://net-http//lib/net/http/response.rb#450 def check_bom(str); end - # source://net-http//net/http/response.rb#414 + # source://net-http//lib/net/http/response.rb#414 def detect_encoding(str, encoding = T.unsafe(nil)); end - # source://net-http//net/http/response.rb#540 + # source://net-http//lib/net/http/response.rb#540 def extracting_encodings_from_meta_elements(value); end - # source://net-http//net/http/response.rb#505 + # source://net-http//lib/net/http/response.rb#505 def get_attribute(ss); end # Checks for a supported Content-Encoding header and yields an Inflate @@ -3184,15 +3895,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//net/http/response.rb#557 + # source://net-http//lib/net/http/response.rb#557 def inflater; end # @raise [ArgumentError] # - # source://net-http//net/http/response.rb#646 + # source://net-http//lib/net/http/response.rb#646 def procdest(dest, block); end - # source://net-http//net/http/response.rb#592 + # source://net-http//lib/net/http/response.rb#592 def read_body_0(dest); end # read_chunked reads from +@socket+ for chunk-size, chunk-extension, CRLF, @@ -3201,18 +3912,18 @@ class Net::HTTPResponse # # See RFC 2616 section 3.6.1 for definitions # - # source://net-http//net/http/response.rb#622 + # source://net-http//lib/net/http/response.rb#622 def read_chunked(dest, chunk_data_io); end - # source://net-http//net/http/response.rb#464 + # source://net-http//lib/net/http/response.rb#464 def scanning_meta(str); end - # source://net-http//net/http/response.rb#434 + # source://net-http//lib/net/http/response.rb#434 def sniff_encoding(str, encoding = T.unsafe(nil)); end # @raise [IOError] # - # source://net-http//net/http/response.rb#642 + # source://net-http//lib/net/http/response.rb#642 def stream_check; end class << self @@ -3220,49 +3931,51 @@ class Net::HTTPResponse # # @return [Boolean] # - # source://net-http//net/http/response.rb#138 + # source://net-http//lib/net/http/response.rb#138 def body_permitted?; end - # source://net-http//net/http/response.rb#142 + # source://net-http//lib/net/http/response.rb#142 def exception_type; end - # source://net-http//net/http/response.rb#146 + # source://net-http//lib/net/http/response.rb#146 def read_new(sock); end private # @yield [key, value] # - # source://net-http//net/http/response.rb#170 + # source://net-http//lib/net/http/response.rb#170 def each_response_header(sock); end - # source://net-http//net/http/response.rb#157 + # source://net-http//lib/net/http/response.rb#157 def read_status_line(sock); end - # source://net-http//net/http/response.rb#164 + # source://net-http//lib/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//net/http/response.rb#665 + # source://net-http//lib/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//net/http/response.rb#683 + # source://net-http//lib/net/http/response.rb#683 def bytes_inflated; end # Finishes the inflate stream. # - # source://net-http//net/http/response.rb#674 + # source://net-http//lib/net/http/response.rb#674 def finish; end # Returns a Net::ReadAdapter that inflates each read chunk into +dest+. @@ -3270,7 +3983,7 @@ class Net::HTTPResponse::Inflater # This allows a large response body to be inflated without storing the # entire body in memory. # - # source://net-http//net/http/response.rb#693 + # source://net-http//lib/net/http/response.rb#693 def inflate_adapter(dest); end # Reads +clen+ bytes from the socket, inflates them, then writes them to @@ -3283,34 +3996,34 @@ class Net::HTTPResponse::Inflater # # See https://bugs.ruby-lang.org/issues/6492 for further discussion. # - # source://net-http//net/http/response.rb#720 + # source://net-http//lib/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//net/http/response.rb#729 + # source://net-http//lib/net/http/response.rb#729 def read_all(dest); end end -# source://net-http//net/http/backward.rb#26 +# source://net-http//lib/net/http/backward.rb#26 Net::HTTPResponseReceiver = Net::HTTPResponse -# source://net-http//net/http/backward.rb#22 +# source://net-http//lib/net/http/backward.rb#22 Net::HTTPRetriableCode = Net::HTTPRedirection -# source://net-http//net/http/responses.rb#81 +# source://net-http//lib/net/http/responses.rb#81 Net::HTTPServerError::EXCEPTION_TYPE = Net::HTTPFatalError -# source://net-http//net/http/backward.rb#25 +# source://net-http//lib/net/http/backward.rb#25 Net::HTTPServerErrorCode = Net::HTTPServerError -# source://net-http//net/http/backward.rb#17 +# source://net-http//lib/net/http/backward.rb#17 Net::HTTPSession = Net::HTTP -# source://net-http//net/http/responses.rb#38 +# source://net-http//lib/net/http/responses.rb#38 Net::HTTPSuccess::EXCEPTION_TYPE = Net::HTTPError -# source://net-http//net/http/backward.rb#20 +# source://net-http//lib/net/http/backward.rb#20 Net::HTTPSuccessCode = Net::HTTPSuccess # Response class for URI Too Long responses (status code 414). @@ -3324,12 +4037,14 @@ 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//net/http/responses.rb#706 +# source://net-http//lib/net/http/responses.rb#706 Net::HTTPURITooLong::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//net/http/responses.rb#9 +# source://net-http//lib/net/http/responses.rb#9 Net::HTTPUnknownResponse::EXCEPTION_TYPE = Net::HTTPError # Response class for Variant Also Negotiates responses (status code 506). @@ -3343,10 +4058,12 @@ 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//net/http/responses.rb#1030 +# source://net-http//lib/net/http/responses.rb#1030 Net::HTTPVariantAlsoNegotiates::HAS_BODY = T.let(T.unsafe(nil), TrueClass) -# source://net-http//net/http/backward.rb#12 +# source://net-http//lib/net/http/backward.rb#12 Net::NetPrivate::HTTPRequest = Net::HTTPRequest diff --git a/sorbet/rbi/gems/net-imap@0.4.11.rbi b/sorbet/rbi/gems/net-imap@0.4.14.rbi similarity index 91% rename from sorbet/rbi/gems/net-imap@0.4.11.rbi rename to sorbet/rbi/gems/net-imap@0.4.14.rbi index 7e3da877..a7462cd0 100644 --- a/sorbet/rbi/gems/net-imap@0.4.11.rbi +++ b/sorbet/rbi/gems/net-imap@0.4.14.rbi @@ -722,18 +722,44 @@ class Net::IMAP < ::Net::Protocol # If +ssl+ is a hash, it's passed to # {OpenSSL::SSL::SSLContext#set_params}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-set_params]; # the keys are names of attribute assignment methods on - # SSLContext[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html]. + # SSLContext[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html]. For example: # - # [open_timeout] - # Seconds to wait until a connection is opened - # [idle_response_timeout] - # Seconds to wait until an IDLE response is received + # [{ca_file}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-ca_file]] + # The path to a file containing a PEM-format CA certificate. + # [{ca_path}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-ca_path]] + # The path to a directory containing CA certificates in PEM format. + # [{min_version}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D]] + # Sets the lower bound on the supported SSL/TLS protocol version. Set to + # an +OpenSSL+ constant such as +OpenSSL::SSL::TLS1_2_VERSION+, + # [{verify_mode}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode]] + # SSL session verification mode. Valid modes include + # +OpenSSL::SSL::VERIFY_PEER+ and +OpenSSL::SSL::VERIFY_NONE+. # - # See DeprecatedClientOptions.new for deprecated arguments. + # See {OpenSSL::SSL::SSLContext}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html] for other valid SSL context params. + # + # See DeprecatedClientOptions.new for deprecated SSL arguments. + # + # [config] + # A Net::IMAP::Config object to use as the basis for #config. By default, + # the global Net::IMAP.config is used. + # + # >>> + # *NOTE:* +config+ does not set #config directly---it sets the _parent_ + # config for inheritance. Every client creates its own unique #config. + # + # All other keyword arguments are forwarded to Net::IMAP::Config.new, to + # initialize the client's #config. For example: + # + # [{open_timeout}[rdoc-ref:Config#open_timeout]] + # Seconds to wait until a connection is opened + # [{idle_response_timeout}[rdoc-ref:Config#idle_response_timeout]] + # Seconds to wait until an IDLE response is received + # + # See Net::IMAP::Config for other valid options. # # ==== Examples # - # Connect to cleartext port 143 at mail.example.com and recieve the server greeting: + # Connect to cleartext port 143 at mail.example.com and receive the server greeting: # imap = Net::IMAP.new('mail.example.com', ssl: false) # => # # imap.port => 143 # imap.tls_verified? => false @@ -805,7 +831,7 @@ class Net::IMAP < ::Net::Protocol # # @raise [ArgumentError] # - # source://net-imap//lib/net/imap.rb#2563 + # source://net-imap//lib/net/imap.rb#2614 def add_response_handler(handler = T.unsafe(nil), &block); end # Sends an {APPEND command [IMAP4rev1 §6.3.11]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.11] @@ -840,7 +866,7 @@ class Net::IMAP < ::Net::Protocol # TODO: add MULTIAPPEND support # ++ # - # source://net-imap//lib/net/imap.rb#1831 + # source://net-imap//lib/net/imap.rb#1866 def append(mailbox, message, flags = T.unsafe(nil), date_time = T.unsafe(nil)); end # Returns whether the server supports a given SASL +mechanism+ for use with @@ -857,7 +883,7 @@ class Net::IMAP < ::Net::Protocol # # @return [Boolean] # - # source://net-imap//lib/net/imap.rb#1027 + # source://net-imap//lib/net/imap.rb#1059 def auth_capable?(mechanism); end # Returns the #authenticate mechanisms that the server claims to support. @@ -881,11 +907,11 @@ class Net::IMAP < ::Net::Protocol # # Related: #authenticate, #auth_capable?, #capabilities # - # source://net-imap//lib/net/imap.rb#1010 + # source://net-imap//lib/net/imap.rb#1042 def auth_mechanisms; end # :call-seq: - # authenticate(mechanism, *, sasl_ir: true, registry: Net::IMAP::SASL.authenticators, **, &) -> ok_resp + # authenticate(mechanism, *, sasl_ir: config.sasl_ir, registry: Net::IMAP::SASL.authenticators, **, &) -> ok_resp # # Sends an {AUTHENTICATE command [IMAP4rev1 §6.2.2]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.2.2] # to authenticate the client. If successful, the connection enters the @@ -894,7 +920,8 @@ class Net::IMAP < ::Net::Protocol # +mechanism+ is the name of the \SASL authentication mechanism to be used. # # +sasl_ir+ allows or disallows sending an "initial response" (see the - # +SASL-IR+ capability, below). + # +SASL-IR+ capability, below). Defaults to the #config value for + # {sasl_ir}[rdoc-ref:Config#sasl_ir], which defaults to +true+. # # All other arguments are forwarded to the registered SASL authenticator for # the requested mechanism. The documentation for each individual @@ -991,7 +1018,7 @@ class Net::IMAP < ::Net::Protocol # completes. If the TaggedResponse to #authenticate includes updated # capabilities, they will be cached. # - # source://net-imap//lib/net/imap.rb#1306 + # source://net-imap//lib/net/imap.rb#1339 def authenticate(mechanism, *creds, sasl_ir: T.unsafe(nil), **props, &callback); end # Returns the server capabilities. When available, cached capabilities are @@ -1006,7 +1033,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #capable?, #auth_capable?, #auth_mechanisms, #capability, #enable # - # source://net-imap//lib/net/imap.rb#986 + # source://net-imap//lib/net/imap.rb#1018 def capabilities; end # Returns whether capabilities have been cached. When true, #capable? and @@ -1018,7 +1045,7 @@ class Net::IMAP < ::Net::Protocol # # @return [Boolean] # - # source://net-imap//lib/net/imap.rb#1037 + # source://net-imap//lib/net/imap.rb#1069 def capabilities_cached?; end # Sends a {CAPABILITY command [IMAP4rev1 §6.1.1]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.1.1] @@ -1040,7 +1067,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #capable?, #auth_capable?, #capability, #enable # - # source://net-imap//lib/net/imap.rb#1075 + # source://net-imap//lib/net/imap.rb#1107 def capability; end # Returns whether the server supports a given +capability+. When available, @@ -1056,7 +1083,7 @@ class Net::IMAP < ::Net::Protocol # # @return [Boolean] # - # source://net-imap//lib/net/imap.rb#972 + # source://net-imap//lib/net/imap.rb#1004 def capability?(capability); end # Returns whether the server supports a given +capability+. When available, @@ -1072,7 +1099,7 @@ class Net::IMAP < ::Net::Protocol # # @return [Boolean] # - # source://net-imap//lib/net/imap.rb#972 + # source://net-imap//lib/net/imap.rb#1004 def capable?(capability); end # Sends a {CHECK command [IMAP4rev1 §6.4.1]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.1] @@ -1082,7 +1109,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #idle, #noop # - # source://net-imap//lib/net/imap.rb#1847 + # source://net-imap//lib/net/imap.rb#1882 def check; end # Clears capabilities that have been remembered by the Net::IMAP client. @@ -1095,7 +1122,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #capable?, #capability, #capabilities_cached? # - # source://net-imap//lib/net/imap.rb#1050 + # source://net-imap//lib/net/imap.rb#1082 def clear_cached_capabilities; end # :call-seq: @@ -1110,10 +1137,10 @@ class Net::IMAP < ::Net::Protocol # # Related: #responses, #response_handlers # - # source://net-imap//lib/net/imap.rb#2520 + # source://net-imap//lib/net/imap.rb#2571 def clear_responses(type = T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#925 + # source://net-imap//lib/net/imap.rb#957 def client_thread; end # Sends a {CLOSE command [IMAP4rev1 §6.4.2]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.2] @@ -1123,9 +1150,17 @@ class Net::IMAP < ::Net::Protocol # # Related: #unselect # - # source://net-imap//lib/net/imap.rb#1857 + # source://net-imap//lib/net/imap.rb#1892 def close; end + # The client configuration. See Net::IMAP::Config. + # + # By default, the client's local configuration inherits from the global + # Net::IMAP.config. + # + # source://net-imap//lib/net/imap.rb#772 + def config; end + # Sends a {COPY command [IMAP4rev1 §6.4.7]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.7] # to copy the specified message(s) to the end of the specified destination # +mailbox+. The +set+ parameter is a number, an array of numbers, or a @@ -1141,7 +1176,7 @@ class Net::IMAP < ::Net::Protocol # mailbox, the UID set of the source messages, and the assigned UID set of # the moved messages. # - # source://net-imap//lib/net/imap.rb#2162 + # source://net-imap//lib/net/imap.rb#2197 def copy(set, mailbox); end # Sends a {CREATE command [IMAP4rev1 §6.3.3]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.3] @@ -1152,7 +1187,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #rename, #delete # - # source://net-imap//lib/net/imap.rb#1431 + # source://net-imap//lib/net/imap.rb#1466 def create(mailbox); end # Sends a {DELETE command [IMAP4rev1 §6.3.4]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.4] @@ -1164,14 +1199,14 @@ class Net::IMAP < ::Net::Protocol # # Related: #create, #rename # - # source://net-imap//lib/net/imap.rb#1443 + # source://net-imap//lib/net/imap.rb#1478 def delete(mailbox); end # Disconnects from the server. # # Related: #logout, #logout! # - # source://net-imap//lib/net/imap.rb#933 + # source://net-imap//lib/net/imap.rb#965 def disconnect; end # Returns true if disconnected from the server. @@ -1180,7 +1215,7 @@ class Net::IMAP < ::Net::Protocol # # @return [Boolean] # - # source://net-imap//lib/net/imap.rb#958 + # source://net-imap//lib/net/imap.rb#990 def disconnected?; end # Sends an {ENABLE command [RFC5161 §3.2]}[https://www.rfc-editor.org/rfc/rfc5161#section-3.1] @@ -1256,7 +1291,7 @@ class Net::IMAP < ::Net::Protocol # # Caution is advised. # - # source://net-imap//lib/net/imap.rb#2373 + # source://net-imap//lib/net/imap.rb#2408 def enable(*capabilities); end # Sends a {EXAMINE command [IMAP4rev1 §6.3.2]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.2] @@ -1269,7 +1304,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #select # - # source://net-imap//lib/net/imap.rb#1415 + # source://net-imap//lib/net/imap.rb#1450 def examine(mailbox, condstore: T.unsafe(nil)); end # Sends an {EXPUNGE command [IMAP4rev1 §6.4.3]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.3] @@ -1278,7 +1313,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #uid_expunge # - # source://net-imap//lib/net/imap.rb#1882 + # source://net-imap//lib/net/imap.rb#1917 def expunge; end # :call-seq: @@ -1334,7 +1369,7 @@ class Net::IMAP < ::Net::Protocol # +changedsince+ argument. Using +changedsince+ implicitly enables the # +CONDSTORE+ extension. # - # source://net-imap//lib/net/imap.rb#2057 + # source://net-imap//lib/net/imap.rb#2092 def fetch(set, attr, mod = T.unsafe(nil), changedsince: T.unsafe(nil)); end # Sends a {GETACL command [RFC4314 §3.3]}[https://www.rfc-editor.org/rfc/rfc4314#section-3.3] @@ -1348,7 +1383,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +ACL+ # [RFC4314[https://tools.ietf.org/html/rfc4314]]. # - # source://net-imap//lib/net/imap.rb#1711 + # source://net-imap//lib/net/imap.rb#1746 def getacl(mailbox); end # Sends a {GETQUOTA command [RFC2087 §4.2]}[https://www.rfc-editor.org/rfc/rfc2087#section-4.2] @@ -1363,7 +1398,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +QUOTA+ # [RFC2087[https://tools.ietf.org/html/rfc2087]]. # - # source://net-imap//lib/net/imap.rb#1655 + # source://net-imap//lib/net/imap.rb#1690 def getquota(mailbox); end # Sends a {GETQUOTAROOT command [RFC2087 §4.3]}[https://www.rfc-editor.org/rfc/rfc2087#section-4.3] @@ -1378,17 +1413,17 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +QUOTA+ # [RFC2087[https://tools.ietf.org/html/rfc2087]]. # - # source://net-imap//lib/net/imap.rb#1634 + # source://net-imap//lib/net/imap.rb#1669 def getquotaroot(mailbox); end # Returns the initial greeting the server, an UntaggedResponse. # - # source://net-imap//lib/net/imap.rb#765 + # source://net-imap//lib/net/imap.rb#766 def greeting; end # The hostname this client connected to # - # source://net-imap//lib/net/imap.rb#776 + # source://net-imap//lib/net/imap.rb#783 def host; end # Sends an {ID command [RFC2971 §3.1]}[https://www.rfc-editor.org/rfc/rfc2971#section-3.1] @@ -1414,7 +1449,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +ID+ # [RFC2971[https://tools.ietf.org/html/rfc2971]]. # - # source://net-imap//lib/net/imap.rb#1104 + # source://net-imap//lib/net/imap.rb#1136 def id(client_id = T.unsafe(nil)); end # Sends an {IDLE command [RFC2177 §3]}[https://www.rfc-editor.org/rfc/rfc6851#section-3] @@ -1429,11 +1464,17 @@ class Net::IMAP < ::Net::Protocol # checks the connection for each 60 seconds. # # loop do - # imap.idle(60) do |res| - # ... + # imap.idle(60) do |response| + # do_something_with(response) + # imap.idle_done if some_condition?(response) # end # end # + # Returns the server's response to indicate the IDLE state has ended. + # Returns +nil+ if the server does not respond to #idle_done within + # {config.idle_response_timeout}[rdoc-ref:Config#idle_response_timeout] + # seconds. + # # Related: #idle_done, #noop, #check # # ===== Capabilities @@ -1443,19 +1484,23 @@ class Net::IMAP < ::Net::Protocol # # @raise [LocalJumpError] # - # source://net-imap//lib/net/imap.rb#2411 + # source://net-imap//lib/net/imap.rb#2452 def idle(timeout = T.unsafe(nil), &response_handler); end - # Leaves IDLE. + # Leaves IDLE, allowing #idle to return. + # + # If the server does not respond within + # {config.idle_response_timeout}[rdoc-ref:Config#idle_response_timeout] + # seconds, #idle will return +nil+. # # Related: #idle # - # source://net-imap//lib/net/imap.rb#2443 + # source://net-imap//lib/net/imap.rb#2488 def idle_done; end # Seconds to wait until an IDLE response is received. # - # source://net-imap//lib/net/imap.rb#773 + # source://net-imap//lib/net/imap.rb#780 def idle_response_timeout; end # Sends a {LIST command [IMAP4rev1 §6.3.8]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.8] @@ -1489,7 +1534,7 @@ class Net::IMAP < ::Net::Protocol # TODO: support LIST-EXTENDED extension [RFC5258]. Needed for IMAP4rev2. # ++ # - # source://net-imap//lib/net/imap.rb#1515 + # source://net-imap//lib/net/imap.rb#1550 def list(refname, mailbox); end # Sends a {LOGIN command [IMAP4rev1 §6.2.3]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.2.3] @@ -1522,7 +1567,7 @@ class Net::IMAP < ::Net::Protocol # The TaggedResponse to #login may include updated capabilities in its # ResponseCode. # - # source://net-imap//lib/net/imap.rb#1359 + # source://net-imap//lib/net/imap.rb#1394 def login(user, password); end # Sends a {LOGOUT command [IMAP4rev1 §6.1.3]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.1.3] @@ -1531,7 +1576,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #disconnect, #logout! # - # source://net-imap//lib/net/imap.rb#1132 + # source://net-imap//lib/net/imap.rb#1164 def logout; end # Calls #logout then, after receiving the TaggedResponse for the +LOGOUT+, @@ -1548,7 +1593,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #logout, #disconnect # - # source://net-imap//lib/net/imap.rb#1149 + # source://net-imap//lib/net/imap.rb#1181 def logout!; end # Sends a {LSUB command [IMAP4rev1 §6.3.9]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.9] @@ -1560,7 +1605,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #subscribe, #unsubscribe, #list, MailboxList # - # source://net-imap//lib/net/imap.rb#1726 + # source://net-imap//lib/net/imap.rb#1761 def lsub(refname, mailbox); end # Sends a {MOVE command [RFC6851 §3.1]}[https://www.rfc-editor.org/rfc/rfc6851#section-3.1] @@ -1582,7 +1627,7 @@ class Net::IMAP < ::Net::Protocol # mailbox, the UID set of the source messages, and the assigned UID set of # the moved messages. # - # source://net-imap//lib/net/imap.rb#2198 + # source://net-imap//lib/net/imap.rb#2233 def move(set, mailbox); end # Sends a {NAMESPACE command [RFC2342 §5]}[https://www.rfc-editor.org/rfc/rfc2342#section-5] @@ -1636,7 +1681,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +NAMESPACE+ # [RFC2342[https://tools.ietf.org/html/rfc2342]]. # - # source://net-imap//lib/net/imap.rb#1572 + # source://net-imap//lib/net/imap.rb#1607 def namespace; end # Sends a {NOOP command [IMAP4rev1 §6.1.2]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.1.2] @@ -1652,26 +1697,26 @@ class Net::IMAP < ::Net::Protocol # # Related: #idle, #check # - # source://net-imap//lib/net/imap.rb#1123 + # source://net-imap//lib/net/imap.rb#1155 def noop; end # Seconds to wait until a connection is opened. # If the IMAP object cannot open a connection within this time, # it raises a Net::OpenTimeout exception. The default value is 30 seconds. # - # source://net-imap//lib/net/imap.rb#770 + # source://net-imap//lib/net/imap.rb#777 def open_timeout; end # The port this client connected to # - # source://net-imap//lib/net/imap.rb#779 + # source://net-imap//lib/net/imap.rb#786 def port; end # Removes the response handler. # # Related: #add_response_handler, #response_handlers # - # source://net-imap//lib/net/imap.rb#2573 + # source://net-imap//lib/net/imap.rb#2624 def remove_response_handler(handler); end # Sends a {RENAME command [IMAP4rev1 §6.3.5]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.5] @@ -1684,7 +1729,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #create, #delete # - # source://net-imap//lib/net/imap.rb#1456 + # source://net-imap//lib/net/imap.rb#1491 def rename(mailbox, newname); end # Returns all response handlers, including those that are added internally @@ -1701,7 +1746,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #add_response_handler, #remove_response_handler # - # source://net-imap//lib/net/imap.rb#2546 + # source://net-imap//lib/net/imap.rb#2597 def response_handlers; end # :call-seq: @@ -1732,6 +1777,7 @@ class Net::IMAP < ::Net::Protocol # # Calling without a block is unsafe and deprecated. Future releases will # raise ArgumentError unless a block is given. + # See Config#responses_without_block. # # Previously unhandled responses are automatically cleared before entering a # mailbox with #select or #examine. Long-lived connections can receive many @@ -1751,7 +1797,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #clear_responses, #response_handlers, #greeting # - # source://net-imap//lib/net/imap.rb#2498 + # source://net-imap//lib/net/imap.rb#2544 def responses(type = T.unsafe(nil)); end # Sends a {SEARCH command [IMAP4rev1 §6.4.4]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.4] @@ -1822,7 +1868,7 @@ class Net::IMAP < ::Net::Protocol # #=> Net::IMAP::SearchResult[1, 6, 7, 8, modseq: 5594] # result.modseq # => 5594 # - # source://net-imap//lib/net/imap.rb#1988 + # source://net-imap//lib/net/imap.rb#2023 def search(keys, charset = T.unsafe(nil)); end # Sends a {SELECT command [IMAP4rev1 §6.3.1]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.1] @@ -1859,7 +1905,7 @@ class Net::IMAP < ::Net::Protocol # imap.select("mbox", condstore: true) # modseq = imap.responses("HIGHESTMODSEQ", &:last) # - # source://net-imap//lib/net/imap.rb#1397 + # source://net-imap//lib/net/imap.rb#1432 def select(mailbox, condstore: T.unsafe(nil)); end # Sends a {SETACL command [RFC4314 §3.1]}[https://www.rfc-editor.org/rfc/rfc4314#section-3.1] @@ -1874,7 +1920,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +ACL+ # [RFC4314[https://tools.ietf.org/html/rfc4314]]. # - # source://net-imap//lib/net/imap.rb#1693 + # source://net-imap//lib/net/imap.rb#1728 def setacl(mailbox, user, rights); end # Sends a {SETQUOTA command [RFC2087 §4.1]}[https://www.rfc-editor.org/rfc/rfc2087#section-4.1] @@ -1889,7 +1935,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +QUOTA+ # [RFC2087[https://tools.ietf.org/html/rfc2087]]. # - # source://net-imap//lib/net/imap.rb#1673 + # source://net-imap//lib/net/imap.rb#1708 def setquota(mailbox, quota); end # Sends a {SORT command [RFC5256 §3]}[https://www.rfc-editor.org/rfc/rfc5256#section-3] @@ -1915,7 +1961,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +SORT+ # [RFC5256[https://tools.ietf.org/html/rfc5256]]. # - # source://net-imap//lib/net/imap.rb#2242 + # source://net-imap//lib/net/imap.rb#2277 def sort(sort_keys, search_keys, charset); end # Returns the @@ -1925,7 +1971,7 @@ class Net::IMAP < ::Net::Protocol # # Returns +nil+ for a plaintext connection. # - # source://net-imap//lib/net/imap.rb#787 + # source://net-imap//lib/net/imap.rb#794 def ssl_ctx; end # Returns the parameters that were sent to #ssl_ctx @@ -1934,7 +1980,7 @@ class Net::IMAP < ::Net::Protocol # # Returns +false+ for a plaintext connection. # - # source://net-imap//lib/net/imap.rb#794 + # source://net-imap//lib/net/imap.rb#801 def ssl_ctx_params; end # Sends a {STARTTLS command [IMAP4rev1 §6.2.1]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.2.1] @@ -2031,7 +2077,7 @@ class Net::IMAP < ::Net::Protocol # +MAILBOXID+ requires the server's capabilities to include +OBJECTID+ # {[RFC8474]}[https://www.rfc-editor.org/rfc/rfc8474.html]. # - # source://net-imap//lib/net/imap.rb#1793 + # source://net-imap//lib/net/imap.rb#1828 def status(mailbox, attr); end # :call-seq: @@ -2078,7 +2124,7 @@ class Net::IMAP < ::Net::Protocol # +unchangedsince+ argument. Using +unchangedsince+ implicitly enables the # +CONDSTORE+ extension. # - # source://net-imap//lib/net/imap.rb#2126 + # source://net-imap//lib/net/imap.rb#2161 def store(set, attr, flags, unchangedsince: T.unsafe(nil)); end # Sends a {SUBSCRIBE command [IMAP4rev1 §6.3.6]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.6] @@ -2090,7 +2136,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #unsubscribe, #lsub, #list # - # source://net-imap//lib/net/imap.rb#1468 + # source://net-imap//lib/net/imap.rb#1503 def subscribe(mailbox); end # Sends a {THREAD command [RFC5256 §3]}[https://www.rfc-editor.org/rfc/rfc5256#section-3] @@ -2115,7 +2161,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +THREAD+ # [RFC5256[https://tools.ietf.org/html/rfc5256]]. # - # source://net-imap//lib/net/imap.rb#2282 + # source://net-imap//lib/net/imap.rb#2317 def thread(algorithm, search_keys, charset); end # Returns true after the TLS negotiation has completed and the remote @@ -2124,7 +2170,7 @@ class Net::IMAP < ::Net::Protocol # # @return [Boolean] # - # source://net-imap//lib/net/imap.rb#923 + # source://net-imap//lib/net/imap.rb#955 def tls_verified?; end # Sends a {UID COPY command [IMAP4rev1 §6.4.8]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.8] @@ -2137,7 +2183,7 @@ class Net::IMAP < ::Net::Protocol # # +UIDPLUS+ affects #uid_copy the same way it affects #copy. # - # source://net-imap//lib/net/imap.rb#2175 + # source://net-imap//lib/net/imap.rb#2210 def uid_copy(set, mailbox); end # Sends a {UID EXPUNGE command [RFC4315 §2.1]}[https://www.rfc-editor.org/rfc/rfc4315#section-2.1] @@ -2166,7 +2212,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +UIDPLUS+ # [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]]. # - # source://net-imap//lib/net/imap.rb#1914 + # source://net-imap//lib/net/imap.rb#1949 def uid_expunge(uid_set); end # :call-seq: @@ -2188,7 +2234,7 @@ class Net::IMAP < ::Net::Protocol # ===== Capabilities # Same as #fetch. # - # source://net-imap//lib/net/imap.rb#2079 + # source://net-imap//lib/net/imap.rb#2114 def uid_fetch(set, attr, mod = T.unsafe(nil), changedsince: T.unsafe(nil)); end # Sends a {UID MOVE command [RFC6851 §3.2]}[https://www.rfc-editor.org/rfc/rfc6851#section-3.2] @@ -2206,7 +2252,7 @@ class Net::IMAP < ::Net::Protocol # [RFC6851[https://tools.ietf.org/html/rfc6851]]. +UIDPLUS+ also affects # #uid_move the same way it affects #move. # - # source://net-imap//lib/net/imap.rb#2216 + # source://net-imap//lib/net/imap.rb#2251 def uid_move(set, mailbox); end # Sends a {UID SEARCH command [IMAP4rev1 §6.4.8]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.4.8] @@ -2219,7 +2265,7 @@ class Net::IMAP < ::Net::Protocol # # See #search for documentation of search criteria. # - # source://net-imap//lib/net/imap.rb#2001 + # source://net-imap//lib/net/imap.rb#2036 def uid_search(keys, charset = T.unsafe(nil)); end # Sends a {UID SORT command [RFC5256 §3]}[https://www.rfc-editor.org/rfc/rfc5256#section-3] @@ -2234,7 +2280,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +SORT+ # [RFC5256[https://tools.ietf.org/html/rfc5256]]. # - # source://net-imap//lib/net/imap.rb#2257 + # source://net-imap//lib/net/imap.rb#2292 def uid_sort(sort_keys, search_keys, charset); end # :call-seq: @@ -2252,7 +2298,7 @@ class Net::IMAP < ::Net::Protocol # ===== Capabilities # Same as #store. # - # source://net-imap//lib/net/imap.rb#2144 + # source://net-imap//lib/net/imap.rb#2179 def uid_store(set, attr, flags, unchangedsince: T.unsafe(nil)); end # Sends a {UID THREAD command [RFC5256 §3]}[https://www.rfc-editor.org/rfc/rfc5256#section-3] @@ -2266,7 +2312,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +THREAD+ # [RFC5256[https://tools.ietf.org/html/rfc5256]]. # - # source://net-imap//lib/net/imap.rb#2296 + # source://net-imap//lib/net/imap.rb#2331 def uid_thread(algorithm, search_keys, charset); end # Sends an {UNSELECT command [RFC3691 §2]}[https://www.rfc-editor.org/rfc/rfc3691#section-3] @@ -2282,7 +2328,7 @@ class Net::IMAP < ::Net::Protocol # The server's capabilities must include +UNSELECT+ # [RFC3691[https://tools.ietf.org/html/rfc3691]]. # - # source://net-imap//lib/net/imap.rb#1873 + # source://net-imap//lib/net/imap.rb#1908 def unselect; end # Sends an {UNSUBSCRIBE command [IMAP4rev1 §6.3.7]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.7] @@ -2295,7 +2341,7 @@ class Net::IMAP < ::Net::Protocol # # Related: #subscribe, #lsub, #list # - # source://net-imap//lib/net/imap.rb#1481 + # source://net-imap//lib/net/imap.rb#1516 def unsubscribe(mailbox); end # Sends a XLIST command, and returns a subset of names from @@ -2336,72 +2382,72 @@ class Net::IMAP < ::Net::Protocol # unless the SPECIAL-USE return option is supplied. # ++ # - # source://net-imap//lib/net/imap.rb#1616 + # source://net-imap//lib/net/imap.rb#1651 def xlist(refname, mailbox); end private - # source://net-imap//lib/net/imap.rb#2915 + # source://net-imap//lib/net/imap.rb#2964 def build_ssl_ctx(ssl); end # NOTE: only call this for greeting, login, and authenticate # - # source://net-imap//lib/net/imap.rb#2754 + # source://net-imap//lib/net/imap.rb#2803 def capabilities_from_resp_code(resp); end - # source://net-imap//lib/net/imap.rb#2876 + # source://net-imap//lib/net/imap.rb#2925 def copy_internal(cmd, set, mailbox); end - # source://net-imap//lib/net/imap.rb#2839 + # source://net-imap//lib/net/imap.rb#2888 def fetch_internal(cmd, set, attr, mod = T.unsafe(nil), changedsince: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#2803 + # source://net-imap//lib/net/imap.rb#2852 def generate_tag; end - # source://net-imap//lib/net/imap.rb#2717 + # source://net-imap//lib/net/imap.rb#2766 def get_response; end # @raise [Error] # - # source://net-imap//lib/net/imap.rb#2596 + # source://net-imap//lib/net/imap.rb#2645 def get_server_greeting; end - # source://net-imap//lib/net/imap.rb#2689 + # source://net-imap//lib/net/imap.rb#2738 def get_tagged_response(tag, cmd, timeout = T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#2904 + # source://net-imap//lib/net/imap.rb#2953 def normalize_searching_criteria(keys); end - # source://net-imap//lib/net/imap.rb#2808 + # source://net-imap//lib/net/imap.rb#2857 def put_string(str); end - # source://net-imap//lib/net/imap.rb#2622 + # source://net-imap//lib/net/imap.rb#2671 def receive_responses; end # store name => [..., data] # - # source://net-imap//lib/net/imap.rb#2741 + # source://net-imap//lib/net/imap.rb#2790 def record_untagged_response(resp); end # store code.name => [..., code.data] # - # source://net-imap//lib/net/imap.rb#2747 + # source://net-imap//lib/net/imap.rb#2796 def record_untagged_response_code(resp); end - # source://net-imap//lib/net/imap.rb#2944 + # source://net-imap//lib/net/imap.rb#2993 def sasl_adapter; end - # source://net-imap//lib/net/imap.rb#2823 + # source://net-imap//lib/net/imap.rb#2872 def search_internal(cmd, keys, charset); end - # source://net-imap//lib/net/imap.rb#2775 + # source://net-imap//lib/net/imap.rb#2824 def send_command(cmd, *args, &block); end # Calls send_command, yielding the text of each ContinuationRequest and # responding with each block result. Returns TaggedResponse. Raises # NoResponseError or BadResponseError. # - # source://net-imap//lib/net/imap.rb#2766 + # source://net-imap//lib/net/imap.rb#2815 def send_command_with_continuations(cmd, *args); end # source://net-imap//lib/net/imap/command_data.rb#33 @@ -2431,39 +2477,44 @@ class Net::IMAP < ::Net::Protocol # source://net-imap//lib/net/imap/command_data.rb#116 def send_time_data(time); end - # source://net-imap//lib/net/imap.rb#2880 + # source://net-imap//lib/net/imap.rb#2929 def sort_internal(cmd, sort_keys, search_keys, charset); end - # source://net-imap//lib/net/imap.rb#2587 + # source://net-imap//lib/net/imap.rb#2636 def start_imap_connection; end - # source://net-imap//lib/net/imap.rb#2604 + # source://net-imap//lib/net/imap.rb#2653 def start_receiver_thread; end - # source://net-imap//lib/net/imap.rb#2930 + # source://net-imap//lib/net/imap.rb#2979 def start_tls_session; end - # source://net-imap//lib/net/imap.rb#2864 + # source://net-imap//lib/net/imap.rb#2913 def store_internal(cmd, set, attr, flags, unchangedsince: T.unsafe(nil)); end - # source://net-imap//lib/net/imap.rb#2613 + # source://net-imap//lib/net/imap.rb#2662 def tcp_socket(host, port); end - # source://net-imap//lib/net/imap.rb#2892 + # source://net-imap//lib/net/imap.rb#2941 def thread_internal(cmd, algorithm, search_keys, charset); end # source://net-imap//lib/net/imap/command_data.rb#12 def validate_data(data); end class << self - # Returns the debug mode. + # Returns the global Config object # # source://net-imap//lib/net/imap.rb#739 + def config; end + + # Returns the global debug mode. + # + # source://net-imap//lib/net/imap.rb#742 def debug; end - # Sets the debug mode. + # Sets the global debug mode. # - # source://net-imap//lib/net/imap.rb#744 + # source://net-imap//lib/net/imap.rb#745 def debug=(val); end # :call-seq: decode_date(string) -> Date @@ -2513,27 +2564,27 @@ class Net::IMAP < ::Net::Protocol # The default port for IMAP connections, port 143 # - # source://net-imap//lib/net/imap.rb#749 + # source://net-imap//lib/net/imap.rb#750 def default_imap_port; end # The default port for IMAPS connections, port 993 # - # source://net-imap//lib/net/imap.rb#754 + # source://net-imap//lib/net/imap.rb#755 def default_imaps_port; end # The default port for IMAP connections, port 143 # - # source://net-imap//lib/net/imap.rb#749 + # source://net-imap//lib/net/imap.rb#750 def default_port; end # The default port for IMAPS connections, port 993 # - # source://net-imap//lib/net/imap.rb#754 + # source://net-imap//lib/net/imap.rb#755 def default_ssl_port; end # The default port for IMAPS connections, port 993 # - # source://net-imap//lib/net/imap.rb#754 + # source://net-imap//lib/net/imap.rb#755 def default_tls_port; end # Formats +time+ as an IMAP4 date. @@ -2623,7 +2674,7 @@ class Net::IMAP < ::Net::Protocol # ++ # Delegates to Net::IMAP::StringPrep::SASLprep#saslprep. # - # source://net-imap//lib/net/imap.rb#2954 + # source://net-imap//lib/net/imap.rb#3003 def saslprep(string, **opts); end end end @@ -2702,7 +2753,7 @@ module Net::IMAP::BodyStructure; end # === Bug Analysis # # \IMAP body structures are parenthesized lists and assign their fields -# positionally, so missing fields change the intepretation of all +# positionally, so missing fields change the interpretation of all # following fields. Additionally, different body types have a different # number of required fields, followed by optional "extension" fields. # @@ -2717,7 +2768,7 @@ module Net::IMAP::BodyStructure; end # Normally, +envelope+ and +md5+ are incompatible, but Net::IMAP leniently # allowed buggy servers to send +NIL+ for +envelope+. As a result, when a # server sent a message/rfc822 part with +NIL+ for +md5+ and a -# non-NIL +dsp+, Net::IMAP mis-interpreted the +# non-NIL +dsp+, Net::IMAP misinterpreted the # Content-Disposition as if it were a strange body type. In all # reported cases, the Content-Disposition was "attachment", so # BodyTypeAttachment was created as the workaround. @@ -2725,7 +2776,7 @@ module Net::IMAP::BodyStructure; end # === Current behavior # # When interpreted strictly, +envelope+ and +md5+ are incompatible. So the -# current parsing algorithm peeks ahead after it has recieved the seventh +# current parsing algorithm peeks ahead after it has received the seventh # body field. If the next token is not the start of an +envelope+, we assume # the server has incorrectly sent us a body-type-basic and return # BodyTypeBasic. As a result, what was previously BodyTypeMessage#body => @@ -2919,6 +2970,511 @@ class Net::IMAP::ClientID def validate_internal(client_id); end end +# Net::IMAP::Config stores configuration options for Net::IMAP clients. +# The global configuration can be seen at either Net::IMAP.config or +# Net::IMAP::Config.global, and the client-specific configuration can be +# seen at Net::IMAP#config. +# +# When creating a new client, all unhandled keyword arguments to +# Net::IMAP.new are delegated to Config.new. Every client has its own +# config. +# +# debug_client = Net::IMAP.new(hostname, debug: true) +# quiet_client = Net::IMAP.new(hostname, debug: false) +# debug_client.config.debug? # => true +# quiet_client.config.debug? # => false +# +# == Inheritance +# +# Configs have a parent[rdoc-ref:Config::AttrInheritance#parent] config, and +# any attributes which have not been set locally will inherit the parent's +# value. Every client creates its own specific config. By default, client +# configs inherit from Config.global. +# +# plain_client = Net::IMAP.new(hostname) +# debug_client = Net::IMAP.new(hostname, debug: true) +# quiet_client = Net::IMAP.new(hostname, debug: false) +# +# plain_client.config.inherited?(:debug) # => true +# debug_client.config.inherited?(:debug) # => false +# quiet_client.config.inherited?(:debug) # => false +# +# plain_client.config.debug? # => false +# debug_client.config.debug? # => true +# quiet_client.config.debug? # => false +# +# # Net::IMAP.debug is delegated to Net::IMAP::Config.global.debug +# Net::IMAP.debug = true +# plain_client.config.debug? # => true +# debug_client.config.debug? # => true +# quiet_client.config.debug? # => false +# +# Net::IMAP.debug = false +# plain_client.config.debug = true +# plain_client.config.inherited?(:debug) # => false +# plain_client.config.debug? # => true +# plain_client.config.reset(:debug) +# plain_client.config.inherited?(:debug) # => true +# plain_client.config.debug? # => false +# +# == Versioned defaults +# +# The effective default configuration for a specific +x.y+ version of +# +net-imap+ can be loaded with the +config+ keyword argument to +# Net::IMAP.new. Requesting default configurations for previous versions +# enables extra backward compatibility with those versions: +# +# client = Net::IMAP.new(hostname, config: 0.3) +# client.config.sasl_ir # => false +# client.config.responses_without_block # => :silence_deprecation_warning +# +# client = Net::IMAP.new(hostname, config: 0.4) +# client.config.sasl_ir # => true +# client.config.responses_without_block # => :silence_deprecation_warning +# +# client = Net::IMAP.new(hostname, config: 0.5) +# client.config.sasl_ir # => true +# client.config.responses_without_block # => :warn +# +# client = Net::IMAP.new(hostname, config: :future) +# client.config.sasl_ir # => true +# client.config.responses_without_block # => :raise +# +# The versioned default configs inherit certain specific config options from +# Config.global, for example #debug: +# +# client = Net::IMAP.new(hostname, config: 0.4) +# Net::IMAP.debug = false +# client.config.debug? # => false +# +# Net::IMAP.debug = true +# client.config.debug? # => true +# +# Use #load_defaults to globally behave like a specific version: +# client = Net::IMAP.new(hostname) +# client.config.sasl_ir # => true +# Net::IMAP.config.load_defaults 0.3 +# client.config.sasl_ir # => false +# +# === Named defaults +# In addition to +x.y+ version numbers, the following aliases are supported: +# +# [+:default+] +# An alias for +:current+. +# +# >>> +# *NOTE*: This is _not_ the same as Config.default. It inherits some +# attributes from Config.global, for example: #debug. +# [+:current+] +# An alias for the current +x.y+ version's defaults. +# [+:next+] +# The _planned_ config for the next +x.y+ version. +# [+:future+] +# The _planned_ eventual config for some future +x.y+ version. +# +# For example, to raise exceptions for all current deprecations: +# client = Net::IMAP.new(hostname, config: :future) +# client.responses # raises an ArgumentError +# +# == Thread Safety +# +# *NOTE:* Updates to config objects are not synchronized for thread-safety. +# +# source://net-imap//lib/net/imap/config/attr_accessors.rb#7 +class Net::IMAP::Config + include ::Net::IMAP::Config::AttrAccessors + include ::Net::IMAP::Config::AttrInheritance + include ::Net::IMAP::Config::AttrTypeCoercion + extend ::Net::IMAP::Config::AttrAccessors::Macros + extend ::Net::IMAP::Config::AttrInheritance::Macros + extend ::Net::IMAP::Config::AttrTypeCoercion::Macros + + # Creates a new config object and initialize its attribute with +attrs+. + # + # If +parent+ is not given, the global config is used by default. + # + # If a block is given, the new config object is yielded to it. + # + # @return [Config] a new instance of Config + # @yield [_self] + # @yieldparam _self [Net::IMAP::Config] the object that the method was called on + # + # source://net-imap//lib/net/imap/config.rb#236 + def initialize(parent = T.unsafe(nil), **attrs); end + + # :call-seq: load_defaults(version) -> self + # + # Resets the current config to behave like the versioned default + # configuration for +version+. #parent will not be changed. + # + # Some config attributes default to inheriting from their #parent (which + # is usually Config.global) and are left unchanged, for example: #debug. + # + # See Config@Versioned+defaults and Config@Named+defaults. + # + # source://net-imap//lib/net/imap/config.rb#287 + def load_defaults(version); end + + # :call-seq: to_h -> hash + # + # Returns all config attributes in a hash. + # + # source://net-imap//lib/net/imap/config.rb#296 + def to_h; end + + # :call-seq: update(**attrs) -> self + # + # Assigns all of the provided +attrs+ to this config, and returns +self+. + # + # An ArgumentError is raised unless every key in +attrs+ matches an + # assignment method on Config. + # + # >>> + # *NOTE:* #update is not atomic. If an exception is raised due to an + # invalid attribute value, +attrs+ may be partially applied. + # + # source://net-imap//lib/net/imap/config.rb#252 + def update(**attrs); end + + # :call-seq: + # with(**attrs) -> config + # with(**attrs) {|config| } -> result + # + # Without a block, returns a new config which inherits from self. With a + # block, yields the new config and returns the block's result. + # + # If no keyword arguments are given, an ArgumentError will be raised. + # + # If +self+ is frozen, the copy will also be frozen. + # + # source://net-imap//lib/net/imap/config.rb#270 + def with(**attrs); end + + protected + + # source://net-imap//lib/net/imap/config.rb#300 + def defaults_hash; end + + class << self + # :call-seq: + # Net::IMAP::Config[number] -> versioned config + # Net::IMAP::Config[symbol] -> named config + # Net::IMAP::Config[hash] -> new frozen config + # Net::IMAP::Config[config] -> same config + # + # Given a version number, returns the default configuration for the target + # version. See Config@Versioned+defaults. + # + # Given a version name, returns the default configuration for the target + # version. See Config@Named+defaults. + # + # Given a Hash, creates a new _frozen_ config which inherits from + # Config.global. Use Config.new for an unfrozen config. + # + # Given a config, returns that same config. + # + # source://net-imap//lib/net/imap/config.rb#151 + def [](config); end + + # The default config, which is hardcoded and frozen. + # + # source://net-imap//lib/net/imap/config.rb#126 + def default; end + + # The global config object. Also available from Net::IMAP.config. + # + # source://net-imap//lib/net/imap/config.rb#129 + def global; end + + # A hash of hard-coded configurations, indexed by version number. + # + # source://net-imap//lib/net/imap/config.rb#132 + def version_defaults; end + end +end + +# >>> +# *NOTE:* This module is an internal implementation detail, with no +# guarantee of backward compatibility. +# +# +attr_accessor+ values are stored in a struct rather than ivars, making +# it simpler to ensure that all config objects share a single object +# shape. This also simplifies iteration over all defined attributes. +# +# source://net-imap//lib/net/imap/config/attr_accessors.rb#15 +module Net::IMAP::Config::AttrAccessors + extend ::Forwardable + + mixes_in_class_methods ::Net::IMAP::Config::AttrAccessors::Macros + + # :notnew: + # + # source://net-imap//lib/net/imap/config/attr_accessors.rb#45 + def initialize; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def debug(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def debug=(*args, **_arg1, &block); end + + # Freezes the internal attributes struct, in addition to +self+. + # + # source://net-imap//lib/net/imap/config/attr_accessors.rb#51 + def freeze; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def idle_response_timeout(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def idle_response_timeout=(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def open_timeout(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def open_timeout=(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def responses_without_block(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def responses_without_block=(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sasl_ir(*args, **_arg1, &block); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def sasl_ir=(*args, **_arg1, &block); end + + protected + + # source://net-imap//lib/net/imap/config/attr_accessors.rb#58 + def data; end + + private + + # source://net-imap//lib/net/imap/config/attr_accessors.rb#62 + def initialize_clone(other); end + + # source://net-imap//lib/net/imap/config/attr_accessors.rb#67 + def initialize_dup(other); end + + class << self + # source://net-imap//lib/net/imap/config/attr_accessors.rb#28 + def attr_accessor(name); end + + # source://net-imap//lib/net/imap/config/attr_accessors.rb#38 + def struct; end + + private + + # source://net-imap//lib/net/imap/config/attr_accessors.rb#33 + def attributes; end + + # @private + # + # source://net-imap//lib/net/imap/config/attr_accessors.rb#21 + def included(mod); end + end +end + +# source://net-imap//lib/net/imap/config/attr_accessors.rb#16 +module Net::IMAP::Config::AttrAccessors::Macros + # source://net-imap//lib/net/imap/config/attr_accessors.rb#17 + def attr_accessor(name); end +end + +# source://net-imap//lib/net/imap/config.rb#0 +class Net::IMAP::Config::AttrAccessors::Struct < ::Struct + def debug; end + def debug=(_); end + def idle_response_timeout; end + def idle_response_timeout=(_); end + def open_timeout; end + def open_timeout=(_); end + def responses_without_block; end + def responses_without_block=(_); end + def sasl_ir; end + def sasl_ir=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# >>> +# *NOTE:* The public methods on this module are part of the stable +# public API of Net::IMAP::Config. But the module itself is an internal +# implementation detail, with no guarantee of backward compatibility. +# +# +attr_accessor+ methods will delegate to their #parent when the local +# value does not contain an override. Inheritance forms a singly linked +# list, so lookup will be O(n) on the number of ancestors. In +# practice, the ancestor chain is not expected to be long. Without +# customization, it is only three deep: +# >>> +# IMAP#config → Config.global → Config.default +# +# When creating a client with the +config+ keyword, for example to use +# the appropriate defaults for an application or a library while still +# relying on global for configuration of +debug+ or +logger+, most likely +# the ancestor chain is still only four deep: +# >>> +# IMAP#config → alternate defaults → Config.global → Config.default +# +# source://net-imap//lib/net/imap/config/attr_inheritance.rb#25 +module Net::IMAP::Config::AttrInheritance + mixes_in_class_methods ::Net::IMAP::Config::AttrInheritance::Macros + + # :notnew: + # + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#48 + def initialize(parent = T.unsafe(nil)); end + + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + def debug; end + + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + def idle_response_timeout; end + + # Returns +true+ if +attr+ is inherited from #parent and not overridden + # by this config. + # + # @return [Boolean] + # + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#59 + def inherited?(attr); end + + # Creates a new config, which inherits from +self+. + # + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#55 + def new(**attrs); end + + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + def open_timeout; end + + # The parent Config object + # + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#46 + def parent; end + + # :call-seq: + # reset -> self + # reset(attr) -> attribute value + # + # Resets an +attr+ to inherit from the #parent config. + # + # When +attr+ is nil or not given, all attributes are reset. + # + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#68 + def reset(attr = T.unsafe(nil)); end + + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + def responses_without_block; end + + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#41 + def sasl_ir; end + + private + + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#82 + def initialize_copy(other); end + + class << self + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#39 + def attr_accessor(name); end + + private + + # @private + # + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#34 + def included(mod); end + end +end + +# source://net-imap//lib/net/imap/config/attr_inheritance.rb#26 +module Net::IMAP::Config::AttrInheritance::INHERITED; end + +# source://net-imap//lib/net/imap/config/attr_inheritance.rb#29 +module Net::IMAP::Config::AttrInheritance::Macros + # source://net-imap//lib/net/imap/config/attr_inheritance.rb#30 + def attr_accessor(name); end +end + +# >>> +# *NOTE:* This module is an internal implementation detail, with no +# guarantee of backward compatibility. +# +# Adds a +type+ keyword parameter to +attr_accessor+, to enforce that +# config attributes have valid types, for example: boolean, numeric, +# enumeration, non-nullable, etc. +# +# source://net-imap//lib/net/imap/config/attr_type_coercion.rb#13 +module Net::IMAP::Config::AttrTypeCoercion + mixes_in_class_methods ::Net::IMAP::Config::AttrTypeCoercion::Macros + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#39 + def debug=(val); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#40 + def debug?; end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#44 + def idle_response_timeout=(val); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#44 + def open_timeout=(val); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#50 + def responses_without_block=(val); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#39 + def sasl_ir=(val); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#40 + def sasl_ir?; end + + class << self + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#29 + def attr_accessor(attr, type: T.unsafe(nil)); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#38 + def boolean(attr); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#47 + def enum(attr, enum); end + + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#43 + def integer(attr); end + + private + + # @private + # + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#24 + def included(mod); end + end +end + +# :stopdoc: internal APIs only +# +# source://net-imap//lib/net/imap/config/attr_type_coercion.rb#16 +module Net::IMAP::Config::AttrTypeCoercion::Macros + # source://net-imap//lib/net/imap/config/attr_type_coercion.rb#17 + def attr_accessor(attr, type: T.unsafe(nil)); end +end + +# Array of attribute names that are _not_ loaded by #load_defaults. +# +# source://net-imap//lib/net/imap/config.rb#122 +Net::IMAP::Config::DEFAULT_TO_INHERIT = T.let(T.unsafe(nil), Array) + # Mailbox attribute indicating that this mailbox is used to hold draft # messages -- typically, messages that are being composed but have not yet # been sent. In some server implementations, this might be a virtual @@ -2943,11 +3499,11 @@ module Net::IMAP::DeprecatedClientOptions # # ==== Obsolete arguments # - # Using obsolete arguments does not a warning. Obsolete arguments will be - # deprecated by a future release. + # Use of obsolete arguments does not print a warning. Obsolete arguments + # will be deprecated by a future release. # # If a second positional argument is given and it is a hash (or is - # convertable via +#to_hash+), it is converted to keyword arguments. + # convertible via +#to_hash+), it is converted to keyword arguments. # # # Obsolete: # Net::IMAP.new("imap.example.com", options_hash) @@ -3633,7 +4189,7 @@ Net::IMAP::HAS_NO_CHILDREN = T.let(T.unsafe(nil), Symbol) # Net::IMAP::IgnoredResponse represents intentionally ignored responses. # -# This includes untagged response "NOOP" sent by eg. Zimbra to avoid +# This includes untagged response "NOOP" sent by e.g. Zimbra to avoid # some clients to close the connection. # # It matches no IMAP standard. @@ -3905,8 +4461,8 @@ class Net::IMAP::ResponseParser # # @return [ResponseParser] a new instance of ResponseParser # - # source://net-imap//lib/net/imap/response_parser.rb#15 - def initialize; end + # source://net-imap//lib/net/imap/response_parser.rb#17 + def initialize(config: T.unsafe(nil)); end # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#104 def CRLF!; end @@ -3969,6 +4525,11 @@ class Net::IMAP::ResponseParser # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#96 def case_insensitive__string?; end + # Returns the value of attribute config. + # + # source://net-imap//lib/net/imap/response_parser.rb#14 + def config; end + # date-time = DQUOTE date-day-fixed "-" date-month "-" date-year # SP time SP zone DQUOTE # @@ -4123,7 +4684,7 @@ class Net::IMAP::ResponseParser # # Raises ResponseParseError for unparsable strings. # - # source://net-imap//lib/net/imap/response_parser.rb#28 + # source://net-imap//lib/net/imap/response_parser.rb#31 def parse(str); end # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#30 @@ -4237,32 +4798,32 @@ 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#2024 + # source://net-imap//lib/net/imap/response_parser.rb#2027 def accept_spaces; end # acl-data = "ACL" SP mailbox *(SP identifier SP rights) # - # source://net-imap//lib/net/imap/response_parser.rb#1425 + # source://net-imap//lib/net/imap/response_parser.rb#1428 def acl_data; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def addr_adl; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def addr_host; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def addr_mailbox; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def addr_name; end # address = "(" addr-name SP addr-adl SP addr-mailbox SP @@ -4272,38 +4833,38 @@ class Net::IMAP::ResponseParser # addr-mailbox = nstring # addr-name = nstring # - # source://net-imap//lib/net/imap/response_parser.rb#1893 + # source://net-imap//lib/net/imap/response_parser.rb#1896 def address; end # astring = 1*ASTRING-CHAR / string # - # source://net-imap//lib/net/imap/response_parser.rb#503 + # source://net-imap//lib/net/imap/response_parser.rb#506 def astring; end # @return [Boolean] # - # source://net-imap//lib/net/imap/response_parser.rb#507 + # source://net-imap//lib/net/imap/response_parser.rb#510 def astring?; end - # source://net-imap//lib/net/imap/response_parser.rb#488 + # source://net-imap//lib/net/imap/response_parser.rb#491 def astring_chars; end # TODO: handle atom, astring_chars, and tag entirely inside the lexer # - # source://net-imap//lib/net/imap/response_parser.rb#487 + # source://net-imap//lib/net/imap/response_parser.rb#490 def atom; end # the #accept version of #atom # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_parser.rb#492 + # source://net-imap//lib/net/imap/response_parser.rb#495 def atom?; end # RFC-3501 & RFC-9051: # body = "(" (body-type-1part / body-type-mpart) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1009 + # source://net-imap//lib/net/imap/response_parser.rb#1012 def body; end # RFC2060 @@ -4318,7 +4879,7 @@ class Net::IMAP::ResponseParser # ; MUST NOT be returned on non-extensible # ; "BODY" fetch # - # source://net-imap//lib/net/imap/response_parser.rb#1181 + # source://net-imap//lib/net/imap/response_parser.rb#1184 def body_ext_1part; end # RFC-2060: @@ -4332,7 +4893,7 @@ class Net::IMAP::ResponseParser # ; MUST NOT be returned on non-extensible # ; "BODY" fetch # - # source://net-imap//lib/net/imap/response_parser.rb#1200 + # source://net-imap//lib/net/imap/response_parser.rb#1203 def body_ext_mpart; end # body-extension = nstring / number / number64 / @@ -4344,93 +4905,93 @@ class Net::IMAP::ResponseParser # ; future Standard or Standards Track # ; revisions of this specification. # - # source://net-imap//lib/net/imap/response_parser.rb#1257 + # source://net-imap//lib/net/imap/response_parser.rb#1260 def body_extension; end # body-extension *(SP body-extension) # - # source://net-imap//lib/net/imap/response_parser.rb#1243 + # source://net-imap//lib/net/imap/response_parser.rb#1246 def body_extensions; end # RFC-3501 & RFC-9051: # body-fields = body-fld-param SP body-fld-id SP body-fld-desc SP # body-fld-enc SP body-fld-octets # - # source://net-imap//lib/net/imap/response_parser.rb#1145 + # source://net-imap//lib/net/imap/response_parser.rb#1148 def body_fields; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def body_fld_desc; end # body-fld-dsp = "(" string SP body-fld-param ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1222 + # source://net-imap//lib/net/imap/response_parser.rb#1225 def body_fld_dsp; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def body_fld_id; end # body-fld-lang = nstring / "(" string *(SP string) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1231 + # source://net-imap//lib/net/imap/response_parser.rb#1234 def body_fld_lang; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def body_fld_loc; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def body_fld_md5; end # RFC3501, RFC9051: # body-fld-param = "(" string SP string *(SP string SP string) ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#1157 + # source://net-imap//lib/net/imap/response_parser.rb#1160 def body_fld_param; end # RFC-3501 & RFC9051: # body-type-1part = (body-type-basic / body-type-msg / body-type-text) # [SP body-ext-1part] # - # source://net-imap//lib/net/imap/response_parser.rb#1021 + # source://net-imap//lib/net/imap/response_parser.rb#1024 def body_type_1part; end # RFC-3501 & RFC9051: # body-type-basic = media-basic SP body-fields # - # source://net-imap//lib/net/imap/response_parser.rb#1045 + # source://net-imap//lib/net/imap/response_parser.rb#1048 def body_type_basic; end # This is a malformed body-type-mpart with no subparts. # - # source://net-imap//lib/net/imap/response_parser.rb#1094 + # source://net-imap//lib/net/imap/response_parser.rb#1097 def body_type_mixed; end # RFC-3501 & RFC-9051: # body-type-mpart = 1*body SP media-subtype # [SP body-ext-mpart] # - # source://net-imap//lib/net/imap/response_parser.rb#1104 + # source://net-imap//lib/net/imap/response_parser.rb#1107 def body_type_mpart; end # RFC-3501 & RFC-9051: # body-type-msg = media-message SP body-fields SP envelope # SP body SP body-fld-lines # - # source://net-imap//lib/net/imap/response_parser.rb#1066 + # source://net-imap//lib/net/imap/response_parser.rb#1069 def body_type_msg; end # RFC-3501 & RFC-9051: # body-type-text = media-text SP body-fields SP body-fld-lines # - # source://net-imap//lib/net/imap/response_parser.rb#1055 + # source://net-imap//lib/net/imap/response_parser.rb#1058 def body_type_text; end # Returns atom.upcase @@ -4439,20 +5000,20 @@ class Net::IMAP::ResponseParser # ; registered with IANA as standard or # ; standards-track # - # source://net-imap//lib/net/imap/response_parser.rb#495 + # source://net-imap//lib/net/imap/response_parser.rb#498 def capability; end # Returns atom?&.upcase # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_parser.rb#498 + # source://net-imap//lib/net/imap/response_parser.rb#501 def capability?; end # As a workaround for buggy servers, allow a trailing SP: # *(SP capability) [SP] # - # source://net-imap//lib/net/imap/response_parser.rb#1628 + # source://net-imap//lib/net/imap/response_parser.rb#1631 def capability__list; end # The presence of "IMAP4rev1" or "IMAP4rev2" is unenforced here. @@ -4466,39 +5027,39 @@ class Net::IMAP::ResponseParser # capability-data = "CAPABILITY" *(SP capability) SP "IMAP4rev2" # *(SP capability) # - # source://net-imap//lib/net/imap/response_parser.rb#1617 + # source://net-imap//lib/net/imap/response_parser.rb#1620 def capability_data__untagged; end # Returns atom.upcase # - # source://net-imap//lib/net/imap/response_parser.rb#495 + # source://net-imap//lib/net/imap/response_parser.rb#498 def case_insensitive__atom; end # Returns atom?&.upcase # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_parser.rb#498 + # source://net-imap//lib/net/imap/response_parser.rb#501 def case_insensitive__atom?; end # use where nstring represents "LABEL" values # - # source://net-imap//lib/net/imap/response_parser.rb#556 + # source://net-imap//lib/net/imap/response_parser.rb#559 def case_insensitive__nstring; end # See https://www.rfc-editor.org/errata/rfc3501 # # charset = atom / quoted # - # source://net-imap//lib/net/imap/response_parser.rb#1964 + # source://net-imap//lib/net/imap/response_parser.rb#1967 def charset; end # "(" charset *(SP charset) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1847 + # source://net-imap//lib/net/imap/response_parser.rb#1850 def charset__list; end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def comparator_data(klass = T.unsafe(nil)); end # RFC3501 & RFC9051: @@ -4509,12 +5070,12 @@ class Net::IMAP::ResponseParser # # continue-req = "+" (SP (resp-text)) CRLF # - # source://net-imap//lib/net/imap/response_parser.rb#673 + # source://net-imap//lib/net/imap/response_parser.rb#676 def continue_req; end # enable-data = "ENABLED" *(SP capability) # - # source://net-imap//lib/net/imap/response_parser.rb#1622 + # source://net-imap//lib/net/imap/response_parser.rb#1625 def enable_data; end # env-from = "(" 1*address ")" / nil @@ -4524,7 +5085,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#983 + # source://net-imap//lib/net/imap/response_parser.rb#986 def env_bcc; end # env-from = "(" 1*address ")" / nil @@ -4534,7 +5095,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#983 + # source://net-imap//lib/net/imap/response_parser.rb#986 def env_cc; end # nstring = string / nil @@ -4543,7 +5104,7 @@ class Net::IMAP::ResponseParser # env-in-reply-to = nstring # env-message-id = nstring # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def env_date; end # env-from = "(" 1*address ")" / nil @@ -4553,17 +5114,17 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#983 + # source://net-imap//lib/net/imap/response_parser.rb#986 def env_from; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def env_in_reply_to; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def env_message_id; end # env-from = "(" 1*address ")" / nil @@ -4573,7 +5134,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#983 + # source://net-imap//lib/net/imap/response_parser.rb#986 def env_reply_to; end # env-from = "(" 1*address ")" / nil @@ -4583,12 +5144,12 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#983 + # source://net-imap//lib/net/imap/response_parser.rb#986 def env_sender; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def env_subject; end # env-from = "(" 1*address ")" / nil @@ -4598,7 +5159,7 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#983 + # source://net-imap//lib/net/imap/response_parser.rb#986 def env_to; end # RFC3501 & RFC9051: @@ -4606,29 +5167,29 @@ class Net::IMAP::ResponseParser # env-sender SP env-reply-to SP env-to SP env-cc SP # env-bcc SP env-in-reply-to SP env-message-id ")" # - # source://net-imap//lib/net/imap/response_parser.rb#949 + # source://net-imap//lib/net/imap/response_parser.rb#952 def envelope; end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def esearch_response(klass = T.unsafe(nil)); end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def expunged_resp(klass = T.unsafe(nil)); end # flag-list = "(" [flag *(SP flag)] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1914 + # source://net-imap//lib/net/imap/response_parser.rb#1917 def flag_list; end # "(" [flag-perm *(SP flag-perm)] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1924 + # source://net-imap//lib/net/imap/response_parser.rb#1927 def flag_perm__list; end # TODO: handle atom, astring_chars, and tag entirely inside the lexer # this represents the partial size for BODY or BINARY # - # source://net-imap//lib/net/imap/response_parser.rb#487 + # source://net-imap//lib/net/imap/response_parser.rb#490 def gt__number__lt; end # RFC3501 & RFC9051: @@ -4654,33 +5215,33 @@ class Net::IMAP::ResponseParser # %d59-126 ; characters not including # ; ":". # - # source://net-imap//lib/net/imap/response_parser.rb#1335 + # source://net-imap//lib/net/imap/response_parser.rb#1338 def header_fld_name; end # header-list = "(" header-fld-name *(SP header-fld-name) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1301 + # source://net-imap//lib/net/imap/response_parser.rb#1304 def header_list; end - # source://net-imap//lib/net/imap/response_parser.rb#1641 + # source://net-imap//lib/net/imap/response_parser.rb#1644 def id_response; end # Use #label or #label_in to assert specific known labels # (+tagged-ext-label+ only, not +atom+). # - # source://net-imap//lib/net/imap/response_parser.rb#513 + # source://net-imap//lib/net/imap/response_parser.rb#516 def label(word); end # Use #label or #label_in to assert specific known labels # (+tagged-ext-label+ only, not +atom+). # - # source://net-imap//lib/net/imap/response_parser.rb#520 + # source://net-imap//lib/net/imap/response_parser.rb#523 def label_in(*labels); end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def language_data(klass = T.unsafe(nil)); end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def listrights_data(klass = T.unsafe(nil)); end # astring = 1*ASTRING-CHAR / string @@ -4693,10 +5254,10 @@ class Net::IMAP::ResponseParser # ; Refer to section 5.1 for further # ; semantic details of mailbox names. # - # source://net-imap//lib/net/imap/response_parser.rb#503 + # source://net-imap//lib/net/imap/response_parser.rb#506 def mailbox; end - # source://net-imap//lib/net/imap/response_parser.rb#832 + # source://net-imap//lib/net/imap/response_parser.rb#835 def mailbox_data__exists; end # mailbox-data = "FLAGS" SP flag-list / "LIST" SP mailbox-list / @@ -4704,16 +5265,16 @@ 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#1347 + # source://net-imap//lib/net/imap/response_parser.rb#1350 def mailbox_data__flags; end - # source://net-imap//lib/net/imap/response_parser.rb#1353 + # source://net-imap//lib/net/imap/response_parser.rb#1356 def mailbox_data__list; end - # source://net-imap//lib/net/imap/response_parser.rb#1353 + # source://net-imap//lib/net/imap/response_parser.rb#1356 def mailbox_data__lsub; end - # source://net-imap//lib/net/imap/response_parser.rb#832 + # source://net-imap//lib/net/imap/response_parser.rb#835 def mailbox_data__recent; end # RFC3501: @@ -4731,15 +5292,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#1465 + # source://net-imap//lib/net/imap/response_parser.rb#1468 def mailbox_data__search; end # mailbox-data =/ "STATUS" SP mailbox SP "(" [status-att-list] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1531 + # source://net-imap//lib/net/imap/response_parser.rb#1534 def mailbox_data__status; end - # source://net-imap//lib/net/imap/response_parser.rb#1353 + # source://net-imap//lib/net/imap/response_parser.rb#1356 def mailbox_data__xlist; end # mailbox-list = "(" [mbx-list-flags] ")" SP @@ -4748,12 +5309,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#1366 + # source://net-imap//lib/net/imap/response_parser.rb#1369 def mailbox_list; end # See Patterns::MBX_LIST_FLAGS # - # source://net-imap//lib/net/imap/response_parser.rb#1942 + # source://net-imap//lib/net/imap/response_parser.rb#1945 def mbx_list_flags; end # n.b. this handles both type and subtype @@ -4776,7 +5337,7 @@ class Net::IMAP::ResponseParser # media-subtype = string # TODO: check types # - # source://net-imap//lib/net/imap/response_parser.rb#1128 + # source://net-imap//lib/net/imap/response_parser.rb#1131 def media_basic; end # n.b. this handles both type and subtype @@ -4799,7 +5360,7 @@ class Net::IMAP::ResponseParser # media-subtype = string # */* --- catchall # - # source://net-imap//lib/net/imap/response_parser.rb#1128 + # source://net-imap//lib/net/imap/response_parser.rb#1131 def media_message; end # n.b. this handles both type and subtype @@ -4822,7 +5383,7 @@ class Net::IMAP::ResponseParser # media-subtype = string # message/rfc822, message/global # - # source://net-imap//lib/net/imap/response_parser.rb#1128 + # source://net-imap//lib/net/imap/response_parser.rb#1131 def media_text; end # n.b. this handles both type and subtype @@ -4844,21 +5405,21 @@ class Net::IMAP::ResponseParser # media-text = DQUOTE "TEXT" DQUOTE SP media-subtype # media-subtype = string # - # source://net-imap//lib/net/imap/response_parser.rb#1128 + # source://net-imap//lib/net/imap/response_parser.rb#1131 def media_type; end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def message_data__converted(klass = T.unsafe(nil)); end - # source://net-imap//lib/net/imap/response_parser.rb#832 + # source://net-imap//lib/net/imap/response_parser.rb#835 def message_data__expunge; end # message-data = nz-number SP ("EXPUNGE" / ("FETCH" SP msg-att)) # - # source://net-imap//lib/net/imap/response_parser.rb#825 + # source://net-imap//lib/net/imap/response_parser.rb#828 def message_data__fetch; end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def metadata_resp(klass = T.unsafe(nil)); end # RFC3501 & RFC9051: @@ -4909,27 +5470,27 @@ class Net::IMAP::ResponseParser # msg-att-static =/ "BINARY" section-binary ["<" number ">"] SP # (nstring / literal8) # - # source://net-imap//lib/net/imap/response_parser.rb#889 + # source://net-imap//lib/net/imap/response_parser.rb#892 def msg_att(n); end # appends "[section]" and "" to the base label # - # source://net-imap//lib/net/imap/response_parser.rb#926 + # source://net-imap//lib/net/imap/response_parser.rb#929 def msg_att__label; end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def myrights_data(klass = T.unsafe(nil)); end # namespace = nil / "(" 1*namespace-descr ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1688 + # source://net-imap//lib/net/imap/response_parser.rb#1691 def namespace; end # namespace-descr = "(" string SP # (DQUOTE QUOTED-CHAR DQUOTE / nil) # [namespace-response-extensions] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1699 + # source://net-imap//lib/net/imap/response_parser.rb#1702 def namespace_descr; end # namespace-response = "NAMESPACE" SP namespace @@ -4939,23 +5500,23 @@ class Net::IMAP::ResponseParser # ; Namespace(s). # ; The third Namespace is the Shared Namespace(s). # - # source://net-imap//lib/net/imap/response_parser.rb#1676 + # source://net-imap//lib/net/imap/response_parser.rb#1679 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#1711 + # source://net-imap//lib/net/imap/response_parser.rb#1714 def namespace_response_extensions; end - # source://net-imap//lib/net/imap/response_parser.rb#551 + # source://net-imap//lib/net/imap/response_parser.rb#554 def ndatetime; end - # source://net-imap//lib/net/imap/response_parser.rb#2031 + # source://net-imap//lib/net/imap/response_parser.rb#2034 def next_token; end - # source://net-imap//lib/net/imap/response_parser.rb#2013 + # source://net-imap//lib/net/imap/response_parser.rb#2016 def nil_atom; end # env-from = "(" 1*address ")" / nil @@ -4965,21 +5526,21 @@ class Net::IMAP::ResponseParser # env-cc = "(" 1*address ")" / nil # env-bcc = "(" 1*address ")" / nil # - # source://net-imap//lib/net/imap/response_parser.rb#983 + # source://net-imap//lib/net/imap/response_parser.rb#986 def nlist__address; end - # source://net-imap//lib/net/imap/response_parser.rb#1991 + # source://net-imap//lib/net/imap/response_parser.rb#1994 def nparens__objectid; end - # source://net-imap//lib/net/imap/response_parser.rb#551 + # source://net-imap//lib/net/imap/response_parser.rb#554 def nquoted; end # nstring = string / nil # - # source://net-imap//lib/net/imap/response_parser.rb#543 + # source://net-imap//lib/net/imap/response_parser.rb#546 def nstring; end - # source://net-imap//lib/net/imap/response_parser.rb#547 + # source://net-imap//lib/net/imap/response_parser.rb#550 def nstring8; end # TODO: handle atom, astring_chars, and tag entirely inside the lexer @@ -4988,36 +5549,36 @@ class Net::IMAP::ResponseParser # ; characters in object identifiers are case # ; significant # - # source://net-imap//lib/net/imap/response_parser.rb#487 + # source://net-imap//lib/net/imap/response_parser.rb#490 def objectid; end - # source://net-imap//lib/net/imap/response_parser.rb#1982 + # source://net-imap//lib/net/imap/response_parser.rb#1985 def parens__modseq; end - # source://net-imap//lib/net/imap/response_parser.rb#1990 + # source://net-imap//lib/net/imap/response_parser.rb#1993 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#1935 + # source://net-imap//lib/net/imap/response_parser.rb#1938 def quirky__flag_list(name); end - # source://net-imap//lib/net/imap/response_parser.rb#1374 + # source://net-imap//lib/net/imap/response_parser.rb#1377 def quota_response; end - # source://net-imap//lib/net/imap/response_parser.rb#1407 + # source://net-imap//lib/net/imap/response_parser.rb#1410 def quotaroot_response; end # reads all the way up until CRLF # - # source://net-imap//lib/net/imap/response_parser.rb#761 + # source://net-imap//lib/net/imap/response_parser.rb#764 def remaining_unparsed; end # As a workaround for buggy servers, allow a trailing SP: # *(SP capability) [SP] # - # source://net-imap//lib/net/imap/response_parser.rb#1628 + # source://net-imap//lib/net/imap/response_parser.rb#1631 def resp_code__capability; end # already matched: "APPENDUID" @@ -5032,14 +5593,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#1863 + # source://net-imap//lib/net/imap/response_parser.rb#1866 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#1872 + # source://net-imap//lib/net/imap/response_parser.rb#1875 def resp_code_copy__data; end # resp-cond-auth = ("OK" / "PREAUTH") SP resp-text @@ -5049,14 +5610,14 @@ class Net::IMAP::ResponseParser # # resp-cond-auth = ("OK" / "PREAUTH") [SP resp-text] # - # source://net-imap//lib/net/imap/response_parser.rb#806 + # source://net-imap//lib/net/imap/response_parser.rb#809 def resp_cond_auth; end # expects "OK" or "PREAUTH" and raises InvalidResponseError on failure # # @raise [InvalidResponseError] # - # source://net-imap//lib/net/imap/response_parser.rb#527 + # source://net-imap//lib/net/imap/response_parser.rb#530 def resp_cond_auth__name; end # resp-cond-bye = "BYE" SP resp-text @@ -5066,7 +5627,7 @@ class Net::IMAP::ResponseParser # # resp-cond-bye = "BYE" [SP resp-text] # - # source://net-imap//lib/net/imap/response_parser.rb#818 + # source://net-imap//lib/net/imap/response_parser.rb#821 def resp_cond_bye; end # RFC3501 & RFC9051: @@ -5077,17 +5638,17 @@ class Net::IMAP::ResponseParser # # resp-cond-state = ("OK" / "NO" / "BAD") [SP resp-text] # - # source://net-imap//lib/net/imap/response_parser.rb#792 + # source://net-imap//lib/net/imap/response_parser.rb#795 def resp_cond_state; end # expects "OK" or "NO" or "BAD" and raises InvalidResponseError on failure # # @raise [InvalidResponseError] # - # source://net-imap//lib/net/imap/response_parser.rb#535 + # source://net-imap//lib/net/imap/response_parser.rb#538 def resp_cond_state__name; end - # source://net-imap//lib/net/imap/response_parser.rb#796 + # source://net-imap//lib/net/imap/response_parser.rb#799 def resp_cond_state__untagged; end # RFC3501: @@ -5098,7 +5659,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#1747 + # source://net-imap//lib/net/imap/response_parser.rb#1750 def resp_text; end # RFC3501 (See https://www.rfc-editor.org/errata/rfc3501): @@ -5157,12 +5718,12 @@ class Net::IMAP::ResponseParser # RFC8474: OBJECTID # resp-text-code =/ "MAILBOXID" SP "(" objectid ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1811 + # source://net-imap//lib/net/imap/response_parser.rb#1814 def resp_text_code; end # Returns atom.upcase # - # source://net-imap//lib/net/imap/response_parser.rb#495 + # source://net-imap//lib/net/imap/response_parser.rb#498 def resp_text_code__name; end # [RFC3501 & RFC9051:] @@ -5175,7 +5736,7 @@ class Net::IMAP::ResponseParser # # n.b: our "response-tagged" definition parses "greeting" too. # - # source://net-imap//lib/net/imap/response_parser.rb#654 + # source://net-imap//lib/net/imap/response_parser.rb#657 def response; end # [RFC3501:] @@ -5205,35 +5766,35 @@ class Net::IMAP::ResponseParser # # TODO: remove resp-cond-auth and handle greeting separately # - # source://net-imap//lib/net/imap/response_parser.rb#706 + # source://net-imap//lib/net/imap/response_parser.rb#709 def response_data; end - # source://net-imap//lib/net/imap/response_parser.rb#766 + # source://net-imap//lib/net/imap/response_parser.rb#769 def response_data__ignored; end - # source://net-imap//lib/net/imap/response_parser.rb#766 + # source://net-imap//lib/net/imap/response_parser.rb#769 def response_data__noop; end - # source://net-imap//lib/net/imap/response_parser.rb#832 + # source://net-imap//lib/net/imap/response_parser.rb#835 def response_data__simple_numeric; end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def response_data__unhandled(klass = T.unsafe(nil)); end # RFC3501 & RFC9051: # response-tagged = tag SP resp-cond-state CRLF # - # source://net-imap//lib/net/imap/response_parser.rb#781 + # source://net-imap//lib/net/imap/response_parser.rb#784 def response_tagged; end # section = "[" [section-spec] "]" # - # source://net-imap//lib/net/imap/response_parser.rb#1265 + # source://net-imap//lib/net/imap/response_parser.rb#1268 def section; end # section-binary = "[" [section-part] "]" # - # source://net-imap//lib/net/imap/response_parser.rb#1272 + # source://net-imap//lib/net/imap/response_parser.rb#1275 def section_binary; end # TODO: handle atom, astring_chars, and tag entirely inside the lexer @@ -5241,7 +5802,7 @@ class Net::IMAP::ResponseParser # ; body part reference. # ; Allows for accessing nested body parts. # - # source://net-imap//lib/net/imap/response_parser.rb#487 + # source://net-imap//lib/net/imap/response_parser.rb#490 def section_part; end # section-spec = section-msgtext / (section-part ["." section-text]) @@ -5260,7 +5821,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#1293 + # source://net-imap//lib/net/imap/response_parser.rb#1296 def section_spec; end # sequence-set = (seq-number / seq-range) ["," sequence-set] @@ -5271,7 +5832,7 @@ class Net::IMAP::ResponseParser # # *note*: doesn't match seq-last-command # - # source://net-imap//lib/net/imap/response_parser.rb#468 + # source://net-imap//lib/net/imap/response_parser.rb#471 def sequence_set; end # RFC3501: @@ -5289,7 +5850,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#1465 + # source://net-imap//lib/net/imap/response_parser.rb#1468 def sort_data; end # RFC3501 @@ -5297,7 +5858,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#1542 + # source://net-imap//lib/net/imap/response_parser.rb#1545 def status_att_list; end # RFC3501 Errata: @@ -5340,10 +5901,10 @@ 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#1587 + # source://net-imap//lib/net/imap/response_parser.rb#1590 def status_att_val; end - # source://net-imap//lib/net/imap/response_parser.rb#489 + # source://net-imap//lib/net/imap/response_parser.rb#492 def tag; end # tagged-ext-comp = astring / @@ -5358,7 +5919,7 @@ class Net::IMAP::ResponseParser # ; A URL should be represented as # ; a "quoted" string. # - # source://net-imap//lib/net/imap/response_parser.rb#571 + # source://net-imap//lib/net/imap/response_parser.rb#574 def tagged_ext_comp; end # tagged-ext-simple is a subset of atom @@ -5366,13 +5927,13 @@ class Net::IMAP::ResponseParser # # tagged-ext-simple = sequence-set / number / number64 # - # source://net-imap//lib/net/imap/response_parser.rb#588 + # source://net-imap//lib/net/imap/response_parser.rb#591 def tagged_ext_simple; end # tagged-ext-val = tagged-ext-simple / # "(" [tagged-ext-comp] ")" # - # source://net-imap//lib/net/imap/response_parser.rb#594 + # source://net-imap//lib/net/imap/response_parser.rb#597 def tagged_ext_val; end # TEXT-CHAR = @@ -5383,43 +5944,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#1731 + # source://net-imap//lib/net/imap/response_parser.rb#1734 def text; end # an "accept" versiun of #text # # @return [Boolean] # - # source://net-imap//lib/net/imap/response_parser.rb#1736 + # source://net-imap//lib/net/imap/response_parser.rb#1739 def text?; end # 1* # - # source://net-imap//lib/net/imap/response_parser.rb#1842 + # source://net-imap//lib/net/imap/response_parser.rb#1845 def text_chars_except_rbra; end # RFC5256: THREAD # thread-data = "THREAD" [SP 1*thread-list] # - # source://net-imap//lib/net/imap/response_parser.rb#1481 + # source://net-imap//lib/net/imap/response_parser.rb#1484 def thread_data; end # RFC5256: THREAD # thread-list = "(" (thread-members / thread-nested) ")" # - # source://net-imap//lib/net/imap/response_parser.rb#1495 + # source://net-imap//lib/net/imap/response_parser.rb#1498 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#1508 + # source://net-imap//lib/net/imap/response_parser.rb#1511 def thread_members; end # RFC5256: THREAD # thread-nested = 2*thread-list # - # source://net-imap//lib/net/imap/response_parser.rb#1524 + # source://net-imap//lib/net/imap/response_parser.rb#1527 def thread_nested; end # RFC-4315 (UIDPLUS) or RFC9051 (IMAP4rev2): @@ -5431,30 +5992,30 @@ class Net::IMAP::ResponseParser # uniqueid = nz-number # ; Strictly ascending # - # source://net-imap//lib/net/imap/response_parser.rb#2001 + # source://net-imap//lib/net/imap/response_parser.rb#2004 def uid_set; end - # source://net-imap//lib/net/imap/response_parser.rb#748 + # source://net-imap//lib/net/imap/response_parser.rb#751 def uidfetch_resp(klass = T.unsafe(nil)); end # See https://developers.google.com/gmail/imap/imap-extensions # - # source://net-imap//lib/net/imap/response_parser.rb#1949 + # source://net-imap//lib/net/imap/response_parser.rb#1952 def x_gm_label; end # See https://developers.google.com/gmail/imap/imap-extensions # - # source://net-imap//lib/net/imap/response_parser.rb#1952 + # source://net-imap//lib/net/imap/response_parser.rb#1955 def x_gm_labels; end end # ASTRING-CHAR = ATOM-CHAR / resp-specials # resp-specials = "]" # -# source://net-imap//lib/net/imap/response_parser.rb#479 +# source://net-imap//lib/net/imap/response_parser.rb#482 Net::IMAP::ResponseParser::ASTRING_CHARS_TOKENS = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#481 +# source://net-imap//lib/net/imap/response_parser.rb#484 Net::IMAP::ResponseParser::ASTRING_TOKENS = T.let(T.unsafe(nil), Array) # basic utility methods for parsing. @@ -5477,7 +6038,7 @@ module Net::IMAP::ResponseParser::ParserUtils def accept_re(re); end # To be used conditionally: - # assert_no_lookahead if Net::IMAP.debug + # assert_no_lookahead if config.debug? # # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#158 def assert_no_lookahead; end @@ -5545,44 +6106,44 @@ Net::IMAP::ResponseParser::ParserUtils::Generator::LOOKAHEAD = T.let(T.unsafe(ni # source://net-imap//lib/net/imap/response_parser/parser_utils.rb#14 Net::IMAP::ResponseParser::ParserUtils::Generator::SHIFT_TOKEN = T.let(T.unsafe(nil), String) -# source://net-imap//lib/net/imap/response_parser.rb#77 +# source://net-imap//lib/net/imap/response_parser.rb#80 module Net::IMAP::ResponseParser::Patterns include ::Net::IMAP::ResponseParser::Patterns::RFC5234 include ::Net::IMAP::ResponseParser::Patterns::RFC3629 private - # source://net-imap//lib/net/imap/response_parser.rb#352 + # source://net-imap//lib/net/imap/response_parser.rb#355 def unescape_quoted(quoted); end - # source://net-imap//lib/net/imap/response_parser.rb#346 + # source://net-imap//lib/net/imap/response_parser.rb#349 def unescape_quoted!(quoted); end class << self - # source://net-imap//lib/net/imap/response_parser.rb#352 + # source://net-imap//lib/net/imap/response_parser.rb#355 def unescape_quoted(quoted); end - # source://net-imap//lib/net/imap/response_parser.rb#346 + # source://net-imap//lib/net/imap/response_parser.rb#349 def unescape_quoted!(quoted); end end end -# source://net-imap//lib/net/imap/response_parser.rb#174 +# source://net-imap//lib/net/imap/response_parser.rb#177 Net::IMAP::ResponseParser::Patterns::ASTRING_CHAR = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#178 +# source://net-imap//lib/net/imap/response_parser.rb#181 Net::IMAP::ResponseParser::Patterns::ASTRING_CHARS = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#172 +# source://net-imap//lib/net/imap/response_parser.rb#175 Net::IMAP::ResponseParser::Patterns::ASTRING_SPECIALS = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#177 +# source://net-imap//lib/net/imap/response_parser.rb#180 Net::IMAP::ResponseParser::Patterns::ATOM = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#179 +# source://net-imap//lib/net/imap/response_parser.rb#182 Net::IMAP::ResponseParser::Patterns::ATOMISH = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#175 +# source://net-imap//lib/net/imap/response_parser.rb#178 Net::IMAP::ResponseParser::Patterns::ATOM_CHAR = T.let(T.unsafe(nil), Regexp) # atomish = 1* @@ -5596,24 +6157,24 @@ Net::IMAP::ResponseParser::Patterns::ATOM_CHAR = T.let(T.unsafe(nil), Regexp) # ASTRING-CHAR = ATOM-CHAR / resp-specials # tag = 1* # -# source://net-imap//lib/net/imap/response_parser.rb#171 +# source://net-imap//lib/net/imap/response_parser.rb#174 Net::IMAP::ResponseParser::Patterns::ATOM_SPECIALS = T.let(T.unsafe(nil), Regexp) # CHAR8 = %x01-ff # ; any OCTET except NUL, %x00 # -# source://net-imap//lib/net/imap/response_parser.rb#151 +# source://net-imap//lib/net/imap/response_parser.rb#154 Net::IMAP::ResponseParser::Patterns::CHAR8 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#187 +# source://net-imap//lib/net/imap/response_parser.rb#190 Net::IMAP::ResponseParser::Patterns::CODE_TEXT = T.let(T.unsafe(nil), Regexp) # resp-text-code = ... / atom [SP 1*] # -# source://net-imap//lib/net/imap/response_parser.rb#186 +# source://net-imap//lib/net/imap/response_parser.rb#189 Net::IMAP::ResponseParser::Patterns::CODE_TEXT_CHAR = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#79 +# source://net-imap//lib/net/imap/response_parser.rb#82 module Net::IMAP::ResponseParser::Patterns::CharClassSubtraction; end # flag = "\Answered" / "\Flagged" / "\Deleted" / @@ -5645,13 +6206,13 @@ module Net::IMAP::ResponseParser::Patterns::CharClassSubtraction; end # ; attributes for the CHILDREN return option, at most # ; one possible per LIST response # -# source://net-imap//lib/net/imap/response_parser.rb#217 +# source://net-imap//lib/net/imap/response_parser.rb#220 Net::IMAP::ResponseParser::Patterns::FLAG = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#218 +# source://net-imap//lib/net/imap/response_parser.rb#221 Net::IMAP::ResponseParser::Patterns::FLAG_EXTENSION = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#219 +# source://net-imap//lib/net/imap/response_parser.rb#222 Net::IMAP::ResponseParser::Patterns::FLAG_KEYWORD = T.let(T.unsafe(nil), Regexp) # flag-list = "(" [flag *(SP flag)] ")" @@ -5662,18 +6223,18 @@ Net::IMAP::ResponseParser::Patterns::FLAG_KEYWORD = T.let(T.unsafe(nil), Regexp) # mbx-list-oflag *(SP mbx-list-oflag) # (Not checking for max one mbx-list-sflag in the parser.) # -# source://net-imap//lib/net/imap/response_parser.rb#230 +# source://net-imap//lib/net/imap/response_parser.rb#233 Net::IMAP::ResponseParser::Patterns::FLAG_LIST = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#220 +# source://net-imap//lib/net/imap/response_parser.rb#223 Net::IMAP::ResponseParser::Patterns::FLAG_PERM = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#231 +# source://net-imap//lib/net/imap/response_parser.rb#234 Net::IMAP::ResponseParser::Patterns::FLAG_PERM_LIST = T.let(T.unsafe(nil), Regexp) # list-wildcards = "%" / "*" # -# source://net-imap//lib/net/imap/response_parser.rb#154 +# source://net-imap//lib/net/imap/response_parser.rb#157 Net::IMAP::ResponseParser::Patterns::LIST_WILDCARDS = T.let(T.unsafe(nil), Regexp) # RFC3501: @@ -5688,7 +6249,7 @@ Net::IMAP::ResponseParser::Patterns::LIST_WILDCARDS = T.let(T.unsafe(nil), Regex # ; Non-synchronizing literals are not allowed when # ; sent from server to the client. # -# source://net-imap//lib/net/imap/response_parser.rb#332 +# source://net-imap//lib/net/imap/response_parser.rb#335 Net::IMAP::ResponseParser::Patterns::LITERAL = T.let(T.unsafe(nil), Regexp) # RFC3516 (BINARY): @@ -5700,37 +6261,37 @@ Net::IMAP::ResponseParser::Patterns::LITERAL = T.let(T.unsafe(nil), Regexp) # ; represents the number of OCTETs # ; in the response string. # -# source://net-imap//lib/net/imap/response_parser.rb#342 +# source://net-imap//lib/net/imap/response_parser.rb#345 Net::IMAP::ResponseParser::Patterns::LITERAL8 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#221 +# source://net-imap//lib/net/imap/response_parser.rb#224 Net::IMAP::ResponseParser::Patterns::MBX_FLAG = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#232 +# source://net-imap//lib/net/imap/response_parser.rb#235 Net::IMAP::ResponseParser::Patterns::MBX_LIST_FLAGS = T.let(T.unsafe(nil), Regexp) # nz-number = digit-nz *DIGIT # ; Non-zero unsigned 32-bit integer # ; (0 < n < 4,294,967,296) # -# source://net-imap//lib/net/imap/response_parser.rb#274 +# source://net-imap//lib/net/imap/response_parser.rb#277 Net::IMAP::ResponseParser::Patterns::NZ_NUMBER = T.let(T.unsafe(nil), Regexp) # Gmail allows SP and "]" in flags....... # -# source://net-imap//lib/net/imap/response_parser.rb#235 +# source://net-imap//lib/net/imap/response_parser.rb#238 Net::IMAP::ResponseParser::Patterns::QUIRKY_FLAG = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#236 +# source://net-imap//lib/net/imap/response_parser.rb#239 Net::IMAP::ResponseParser::Patterns::QUIRKY_FLAGS_LIST = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#247 +# source://net-imap//lib/net/imap/response_parser.rb#250 Net::IMAP::ResponseParser::Patterns::QUOTED_CHAR_esc = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#248 +# source://net-imap//lib/net/imap/response_parser.rb#251 Net::IMAP::ResponseParser::Patterns::QUOTED_CHAR_rev1 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#249 +# source://net-imap//lib/net/imap/response_parser.rb#252 Net::IMAP::ResponseParser::Patterns::QUOTED_CHAR_rev2 = T.let(T.unsafe(nil), Regexp) # RFC3501: @@ -5742,23 +6303,23 @@ Net::IMAP::ResponseParser::Patterns::QUOTED_CHAR_rev2 = T.let(T.unsafe(nil), Reg # RFC3501 & RFC9051: # quoted = DQUOTE *QUOTED-CHAR DQUOTE # -# source://net-imap//lib/net/imap/response_parser.rb#246 +# source://net-imap//lib/net/imap/response_parser.rb#249 Net::IMAP::ResponseParser::Patterns::QUOTED_CHAR_safe = T.let(T.unsafe(nil), Regexp) # quoted-specials = DQUOTE / "\" # -# source://net-imap//lib/net/imap/response_parser.rb#156 +# source://net-imap//lib/net/imap/response_parser.rb#159 Net::IMAP::ResponseParser::Patterns::QUOTED_SPECIALS = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#251 +# source://net-imap//lib/net/imap/response_parser.rb#254 Net::IMAP::ResponseParser::Patterns::QUOTED_rev1 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#252 +# source://net-imap//lib/net/imap/response_parser.rb#255 Net::IMAP::ResponseParser::Patterns::QUOTED_rev2 = T.let(T.unsafe(nil), Regexp) # resp-specials = "]" # -# source://net-imap//lib/net/imap/response_parser.rb#158 +# source://net-imap//lib/net/imap/response_parser.rb#161 Net::IMAP::ResponseParser::Patterns::RESP_SPECIALS = T.let(T.unsafe(nil), Regexp) # UTF-8, a transformation format of ISO 10646 @@ -5780,30 +6341,30 @@ Net::IMAP::ResponseParser::Patterns::RESP_SPECIALS = T.let(T.unsafe(nil), Regexp # believe it is hard to support this case correctly." # See https://bugs.ruby-lang.org/issues/19104 # -# source://net-imap//lib/net/imap/response_parser.rb#131 +# source://net-imap//lib/net/imap/response_parser.rb#134 module Net::IMAP::ResponseParser::Patterns::RFC3629; end # aka ASCII 7bit # -# source://net-imap//lib/net/imap/response_parser.rb#132 +# source://net-imap//lib/net/imap/response_parser.rb#135 Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_1 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#134 +# source://net-imap//lib/net/imap/response_parser.rb#137 Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_2 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#135 +# source://net-imap//lib/net/imap/response_parser.rb#138 Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_3 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#139 +# source://net-imap//lib/net/imap/response_parser.rb#142 Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_4 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#142 +# source://net-imap//lib/net/imap/response_parser.rb#145 Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_CHAR = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#143 +# source://net-imap//lib/net/imap/response_parser.rb#146 Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_OCTETS = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#133 +# source://net-imap//lib/net/imap/response_parser.rb#136 Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_TAIL = T.let(T.unsafe(nil), Regexp) # From RFC5234, "Augmented BNF for Syntax Specifications: ABNF" @@ -5822,39 +6383,39 @@ Net::IMAP::ResponseParser::Patterns::RFC3629::UTF8_TAIL = T.let(T.unsafe(nil), R # OCTET = %x00-FF # SP = %x20 # -# source://net-imap//lib/net/imap/response_parser.rb#101 +# source://net-imap//lib/net/imap/response_parser.rb#104 module Net::IMAP::ResponseParser::Patterns::RFC5234; end -# source://net-imap//lib/net/imap/response_parser.rb#102 +# source://net-imap//lib/net/imap/response_parser.rb#105 Net::IMAP::ResponseParser::Patterns::RFC5234::ALPHA = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#103 +# source://net-imap//lib/net/imap/response_parser.rb#106 Net::IMAP::ResponseParser::Patterns::RFC5234::CHAR = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#104 +# source://net-imap//lib/net/imap/response_parser.rb#107 Net::IMAP::ResponseParser::Patterns::RFC5234::CRLF = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#105 +# source://net-imap//lib/net/imap/response_parser.rb#108 Net::IMAP::ResponseParser::Patterns::RFC5234::CTL = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#106 +# source://net-imap//lib/net/imap/response_parser.rb#109 Net::IMAP::ResponseParser::Patterns::RFC5234::DIGIT = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#107 +# source://net-imap//lib/net/imap/response_parser.rb#110 Net::IMAP::ResponseParser::Patterns::RFC5234::DQUOTE = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#108 +# source://net-imap//lib/net/imap/response_parser.rb#111 Net::IMAP::ResponseParser::Patterns::RFC5234::HEXDIG = T.let(T.unsafe(nil), Regexp) # not using /./m for embedding purposes # -# source://net-imap//lib/net/imap/response_parser.rb#109 +# source://net-imap//lib/net/imap/response_parser.rb#112 Net::IMAP::ResponseParser::Patterns::RFC5234::OCTET = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#110 +# source://net-imap//lib/net/imap/response_parser.rb#113 Net::IMAP::ResponseParser::Patterns::RFC5234::SP = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#318 +# source://net-imap//lib/net/imap/response_parser.rb#321 Net::IMAP::ResponseParser::Patterns::SEQUENCE_SET = T.let(T.unsafe(nil), Regexp) # sequence-set = (seq-number / seq-range) ["," sequence-set] @@ -5870,10 +6431,10 @@ Net::IMAP::ResponseParser::Patterns::SEQUENCE_SET = T.let(T.unsafe(nil), Regexp) # ; be reordered and overlap coalesced to be # ; 4,5,6,7,8,9,10. # -# source://net-imap//lib/net/imap/response_parser.rb#317 +# source://net-imap//lib/net/imap/response_parser.rb#320 Net::IMAP::ResponseParser::Patterns::SEQUENCE_SET_ITEM = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#319 +# source://net-imap//lib/net/imap/response_parser.rb#322 Net::IMAP::ResponseParser::Patterns::SEQUENCE_SET_STR = T.let(T.unsafe(nil), Regexp) # seq-number = nz-number / "*" @@ -5893,7 +6454,7 @@ Net::IMAP::ResponseParser::Patterns::SEQUENCE_SET_STR = T.let(T.unsafe(nil), Reg # ; messages in the selected mailbox. This # ; includes "*" if the selected mailbox is empty. # -# source://net-imap//lib/net/imap/response_parser.rb#292 +# source://net-imap//lib/net/imap/response_parser.rb#295 Net::IMAP::ResponseParser::Patterns::SEQ_NUMBER = T.let(T.unsafe(nil), Regexp) # seq-range = seq-number ":" seq-number @@ -5906,31 +6467,31 @@ Net::IMAP::ResponseParser::Patterns::SEQ_NUMBER = T.let(T.unsafe(nil), Regexp) # ; the mailbox, even if that value is less than # ; 3291. # -# source://net-imap//lib/net/imap/response_parser.rb#303 +# source://net-imap//lib/net/imap/response_parser.rb#306 Net::IMAP::ResponseParser::Patterns::SEQ_RANGE = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#180 +# source://net-imap//lib/net/imap/response_parser.rb#183 Net::IMAP::ResponseParser::Patterns::TAG = T.let(T.unsafe(nil), Regexp) # tagged-ext-label = tagged-label-fchar *tagged-label-char # ; Is a valid RFC 3501 "atom". # -# source://net-imap//lib/net/imap/response_parser.rb#269 +# source://net-imap//lib/net/imap/response_parser.rb#272 Net::IMAP::ResponseParser::Patterns::TAGGED_EXT_LABEL = T.let(T.unsafe(nil), Regexp) # tagged-label-char = tagged-label-fchar / DIGIT / ":" # -# source://net-imap//lib/net/imap/response_parser.rb#266 +# source://net-imap//lib/net/imap/response_parser.rb#269 Net::IMAP::ResponseParser::Patterns::TAGGED_LABEL_CHAR = T.let(T.unsafe(nil), Regexp) # tagged-label-fchar = ALPHA / "-" / "_" / "." # -# source://net-imap//lib/net/imap/response_parser.rb#264 +# source://net-imap//lib/net/imap/response_parser.rb#267 Net::IMAP::ResponseParser::Patterns::TAGGED_LABEL_FCHAR = T.let(T.unsafe(nil), Regexp) # TEXT-CHAR = # -# source://net-imap//lib/net/imap/response_parser.rb#183 +# source://net-imap//lib/net/imap/response_parser.rb#186 Net::IMAP::ResponseParser::Patterns::TEXT_CHAR = T.let(T.unsafe(nil), Regexp) # RFC3501: @@ -5940,64 +6501,64 @@ Net::IMAP::ResponseParser::Patterns::TEXT_CHAR = T.let(T.unsafe(nil), Regexp) # ; Non-ASCII text can only be returned # ; after ENABLE IMAP4rev2 command # -# source://net-imap//lib/net/imap/response_parser.rb#260 +# source://net-imap//lib/net/imap/response_parser.rb#263 Net::IMAP::ResponseParser::Patterns::TEXT_rev1 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#261 +# source://net-imap//lib/net/imap/response_parser.rb#264 Net::IMAP::ResponseParser::Patterns::TEXT_rev2 = T.let(T.unsafe(nil), Regexp) -# source://net-imap//lib/net/imap/response_parser.rb#678 +# source://net-imap//lib/net/imap/response_parser.rb#681 Net::IMAP::ResponseParser::RE_RESPONSE_TYPE = T.let(T.unsafe(nil), Regexp) # end of response string # -# source://net-imap//lib/net/imap/response_parser.rb#62 +# source://net-imap//lib/net/imap/response_parser.rb#65 module Net::IMAP::ResponseParser::ResponseConditions; end -# source://net-imap//lib/net/imap/response_parser.rb#71 +# source://net-imap//lib/net/imap/response_parser.rb#74 Net::IMAP::ResponseParser::ResponseConditions::AUTH_CONDS = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#65 +# source://net-imap//lib/net/imap/response_parser.rb#68 Net::IMAP::ResponseParser::ResponseConditions::BAD = T.let(T.unsafe(nil), String) -# source://net-imap//lib/net/imap/response_parser.rb#66 +# source://net-imap//lib/net/imap/response_parser.rb#69 Net::IMAP::ResponseParser::ResponseConditions::BYE = T.let(T.unsafe(nil), String) -# source://net-imap//lib/net/imap/response_parser.rb#72 +# source://net-imap//lib/net/imap/response_parser.rb#75 Net::IMAP::ResponseParser::ResponseConditions::GREETING_CONDS = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#64 +# source://net-imap//lib/net/imap/response_parser.rb#67 Net::IMAP::ResponseParser::ResponseConditions::NO = T.let(T.unsafe(nil), String) -# source://net-imap//lib/net/imap/response_parser.rb#63 +# source://net-imap//lib/net/imap/response_parser.rb#66 Net::IMAP::ResponseParser::ResponseConditions::OK = T.let(T.unsafe(nil), String) -# source://net-imap//lib/net/imap/response_parser.rb#67 +# source://net-imap//lib/net/imap/response_parser.rb#70 Net::IMAP::ResponseParser::ResponseConditions::PREAUTH = T.let(T.unsafe(nil), String) -# source://net-imap//lib/net/imap/response_parser.rb#73 +# source://net-imap//lib/net/imap/response_parser.rb#76 Net::IMAP::ResponseParser::ResponseConditions::RESP_CONDS = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#69 +# source://net-imap//lib/net/imap/response_parser.rb#72 Net::IMAP::ResponseParser::ResponseConditions::RESP_COND_STATES = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#70 +# source://net-imap//lib/net/imap/response_parser.rb#73 Net::IMAP::ResponseParser::ResponseConditions::RESP_DATA_CONDS = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#459 +# source://net-imap//lib/net/imap/response_parser.rb#462 Net::IMAP::ResponseParser::SEQUENCE_SET_TOKENS = T.let(T.unsafe(nil), Array) -# source://net-imap//lib/net/imap/response_parser.rb#2018 +# source://net-imap//lib/net/imap/response_parser.rb#2021 Net::IMAP::ResponseParser::SPACES_REGEXP = T.let(T.unsafe(nil), Regexp) # tag = 1* # -# source://net-imap//lib/net/imap/response_parser.rb#484 +# source://net-imap//lib/net/imap/response_parser.rb#487 Net::IMAP::ResponseParser::TAG_TOKENS = T.let(T.unsafe(nil), Array) # starts with atom special # -# source://net-imap//lib/net/imap/response_parser.rb#57 +# source://net-imap//lib/net/imap/response_parser.rb#60 Net::IMAP::ResponseParser::T_LITERAL8 = T.let(T.unsafe(nil), Symbol) # Used to avoid an allocation when ResponseText is empty @@ -6039,7 +6600,7 @@ Net::IMAP::ResponseText::EMPTY = T.let(T.unsafe(nil), Net::IMAP::ResponseText) # See ExternalAuthenticator. # # Authenticates using already established credentials, such as a TLS -# certificate or IPsec. +# certificate or IPSec. # # +OAUTHBEARER+:: # See OAuthBearerAuthenticator. @@ -6698,7 +7259,7 @@ class Net::IMAP::SASL::Error < ::StandardError; end # Net::IMAP#authenticate. # # The EXTERNAL mechanism requests that the server use client credentials -# established external to SASL, for example by TLS certificate or IPsec. +# established external to SASL, for example by TLS certificate or IPSec. # # source://net-imap//lib/net/imap/sasl/external_authenticator.rb#13 class Net::IMAP::SASL::ExternalAuthenticator @@ -8629,8 +9190,8 @@ class Net::IMAP::SequenceSet # Yields each number or range in #string to the block and returns +self+. # Returns an enumerator when called without a block. # - # The entries are yielded in the same order they appear in #tring, with no - # sorting, deduplication, or coalescing. When #string is in its + # The entries are yielded in the same order they appear in #string, with + # no sorting, deduplication, or coalescing. When #string is in its # normalized form, this will yield the same values as #each_element. # # Related: #entries, #each_element diff --git a/sorbet/rbi/gems/net-protocol@0.2.2.rbi b/sorbet/rbi/gems/net-protocol@0.2.2.rbi index f9ede895..7014c6f2 100644 --- a/sorbet/rbi/gems/net-protocol@0.2.2.rbi +++ b/sorbet/rbi/gems/net-protocol@0.2.2.rbi @@ -5,208 +5,212 @@ # Please instead update this file by running `bin/tapioca gem net-protocol`. +# source://net-protocol//lib/net/protocol.rb#115 class Net::BufferedIO # @return [BufferedIO] a new instance of BufferedIO # - # source://net-protocol//net/protocol.rb#116 + # source://net-protocol//lib/net/protocol.rb#116 def initialize(io, read_timeout: T.unsafe(nil), write_timeout: T.unsafe(nil), continue_timeout: T.unsafe(nil), debug_output: T.unsafe(nil)); end - # source://net-protocol//net/protocol.rb#285 + # source://net-protocol//lib/net/protocol.rb#285 def <<(*strs); end - # source://net-protocol//net/protocol.rb#145 + # source://net-protocol//lib/net/protocol.rb#145 def close; end # @return [Boolean] # - # source://net-protocol//net/protocol.rb#141 + # source://net-protocol//lib/net/protocol.rb#141 def closed?; end # Returns the value of attribute continue_timeout. # - # source://net-protocol//net/protocol.rb#130 + # source://net-protocol//lib/net/protocol.rb#130 def continue_timeout; end # Sets the attribute continue_timeout # # @param value the value to set the attribute continue_timeout to. # - # source://net-protocol//net/protocol.rb#130 + # source://net-protocol//lib/net/protocol.rb#130 def continue_timeout=(_arg0); end # Returns the value of attribute debug_output. # - # source://net-protocol//net/protocol.rb#131 + # source://net-protocol//lib/net/protocol.rb#131 def debug_output; end # Sets the attribute debug_output # # @param value the value to set the attribute debug_output to. # - # source://net-protocol//net/protocol.rb#131 + # source://net-protocol//lib/net/protocol.rb#131 def debug_output=(_arg0); end # @return [Boolean] # - # source://net-protocol//net/protocol.rb#137 + # source://net-protocol//lib/net/protocol.rb#137 def eof?; end - # source://net-protocol//net/protocol.rb#133 + # source://net-protocol//lib/net/protocol.rb#133 def inspect; end # Returns the value of attribute io. # - # source://net-protocol//net/protocol.rb#127 + # source://net-protocol//lib/net/protocol.rb#127 def io; end - # source://net-protocol//net/protocol.rb#155 + # source://net-protocol//lib/net/protocol.rb#155 def read(len, dest = T.unsafe(nil), ignore_eof = T.unsafe(nil)); end - # source://net-protocol//net/protocol.rb#176 + # source://net-protocol//lib/net/protocol.rb#176 def read_all(dest = T.unsafe(nil)); end # Returns the value of attribute read_timeout. # - # source://net-protocol//net/protocol.rb#128 + # source://net-protocol//lib/net/protocol.rb#128 def read_timeout; end # Sets the attribute read_timeout # # @param value the value to set the attribute read_timeout to. # - # source://net-protocol//net/protocol.rb#128 + # source://net-protocol//lib/net/protocol.rb#128 def read_timeout=(_arg0); end - # source://net-protocol//net/protocol.rb#208 + # source://net-protocol//lib/net/protocol.rb#208 def readline; end - # source://net-protocol//net/protocol.rb#194 + # source://net-protocol//lib/net/protocol.rb#194 def readuntil(terminator, ignore_eof = T.unsafe(nil)); end - # source://net-protocol//net/protocol.rb#285 + # source://net-protocol//lib/net/protocol.rb#285 def write(*strs); end # Returns the value of attribute write_timeout. # - # source://net-protocol//net/protocol.rb#129 + # source://net-protocol//lib/net/protocol.rb#129 def write_timeout; end # Sets the attribute write_timeout # # @param value the value to set the attribute write_timeout to. # - # source://net-protocol//net/protocol.rb#129 + # source://net-protocol//lib/net/protocol.rb#129 def write_timeout=(_arg0); end - # source://net-protocol//net/protocol.rb#293 + # source://net-protocol//lib/net/protocol.rb#293 def writeline(str); end private - # source://net-protocol//net/protocol.rb#356 + # source://net-protocol//lib/net/protocol.rb#356 def LOG(msg); end - # source://net-protocol//net/protocol.rb#347 + # source://net-protocol//lib/net/protocol.rb#347 def LOG_off; end - # source://net-protocol//net/protocol.rb#352 + # source://net-protocol//lib/net/protocol.rb#352 def LOG_on; end - # source://net-protocol//net/protocol.rb#257 + # source://net-protocol//lib/net/protocol.rb#257 def rbuf_consume(len = T.unsafe(nil)); end - # source://net-protocol//net/protocol.rb#253 + # source://net-protocol//lib/net/protocol.rb#253 def rbuf_consume_all; end - # source://net-protocol//net/protocol.rb#216 + # source://net-protocol//lib/net/protocol.rb#216 def rbuf_fill; end - # source://net-protocol//net/protocol.rb#241 + # source://net-protocol//lib/net/protocol.rb#241 def rbuf_flush; end - # source://net-protocol//net/protocol.rb#249 + # source://net-protocol//lib/net/protocol.rb#249 def rbuf_size; end - # source://net-protocol//net/protocol.rb#311 + # source://net-protocol//lib/net/protocol.rb#311 def write0(*strs); end - # source://net-protocol//net/protocol.rb#301 + # source://net-protocol//lib/net/protocol.rb#301 def writing; end end +# source://net-protocol//lib/net/protocol.rb#363 class Net::InternetMessageIO < ::Net::BufferedIO # @return [InternetMessageIO] a new instance of InternetMessageIO # - # source://net-protocol//net/protocol.rb#364 + # source://net-protocol//lib/net/protocol.rb#364 def initialize(*_arg0, **_arg1); end # *library private* (cannot handle 'break') # - # source://net-protocol//net/protocol.rb#386 + # source://net-protocol//lib/net/protocol.rb#386 def each_list_item; end # Read # - # source://net-protocol//net/protocol.rb#373 + # source://net-protocol//lib/net/protocol.rb#373 def each_message_chunk; end # Write # - # source://net-protocol//net/protocol.rb#404 + # source://net-protocol//lib/net/protocol.rb#404 def write_message(src); end - # source://net-protocol//net/protocol.rb#392 + # source://net-protocol//lib/net/protocol.rb#392 def write_message_0(src); end - # source://net-protocol//net/protocol.rb#417 + # source://net-protocol//lib/net/protocol.rb#417 def write_message_by_block(&block); end private - # source://net-protocol//net/protocol.rb#460 + # source://net-protocol//lib/net/protocol.rb#460 def buffer_filling(buf, src); end - # source://net-protocol//net/protocol.rb#436 + # source://net-protocol//lib/net/protocol.rb#436 def dot_stuff(s); end - # source://net-protocol//net/protocol.rb#452 + # source://net-protocol//lib/net/protocol.rb#452 def each_crlf_line(src); end - # source://net-protocol//net/protocol.rb#440 + # source://net-protocol//lib/net/protocol.rb#440 def using_each_crlf_line; end end -# source://net-protocol//net/protocol.rb#541 +# source://net-protocol//lib/net/protocol.rb#541 Net::NetPrivate::Socket = Net::InternetMessageIO -# source://net-protocol//net/protocol.rb#68 +# source://net-protocol//lib/net/protocol.rb#68 Net::ProtocRetryError = Net::ProtoRetriableError +# source://net-protocol//lib/net/protocol.rb#28 class Net::Protocol private - # source://net-protocol//net/protocol.rb#40 + # source://net-protocol//lib/net/protocol.rb#40 def ssl_socket_connect(s, timeout); end class << self - # source://net-protocol//net/protocol.rb#32 + # source://net-protocol//lib/net/protocol.rb#32 def protocol_param(name, val); end end end -# source://net-protocol//net/protocol.rb#29 +# source://net-protocol//lib/net/protocol.rb#29 Net::Protocol::VERSION = T.let(T.unsafe(nil), String) +# source://net-protocol//lib/net/protocol.rb#516 class Net::ReadAdapter # @return [ReadAdapter] a new instance of ReadAdapter # - # source://net-protocol//net/protocol.rb#517 + # source://net-protocol//lib/net/protocol.rb#517 def initialize(block); end - # source://net-protocol//net/protocol.rb#525 + # source://net-protocol//lib/net/protocol.rb#525 def <<(str); end - # source://net-protocol//net/protocol.rb#521 + # source://net-protocol//lib/net/protocol.rb#521 def inspect; end private @@ -217,66 +221,72 @@ class Net::ReadAdapter # # @yield [str] # - # source://net-protocol//net/protocol.rb#534 + # source://net-protocol//lib/net/protocol.rb#534 def call_block(str); end end # ReadTimeout, a subclass of Timeout::Error, is raised if a chunk of the # response cannot be read within the read_timeout. +# +# source://net-protocol//lib/net/protocol.rb#80 class Net::ReadTimeout < ::Timeout::Error # @return [ReadTimeout] a new instance of ReadTimeout # - # source://net-protocol//net/protocol.rb#81 + # source://net-protocol//lib/net/protocol.rb#81 def initialize(io = T.unsafe(nil)); end # Returns the value of attribute io. # - # source://net-protocol//net/protocol.rb#84 + # source://net-protocol//lib/net/protocol.rb#84 def io; end - # source://net-protocol//net/protocol.rb#86 + # source://net-protocol//lib/net/protocol.rb#86 def message; end end # The writer adapter class +# +# source://net-protocol//lib/net/protocol.rb#486 class Net::WriteAdapter # @return [WriteAdapter] a new instance of WriteAdapter # - # source://net-protocol//net/protocol.rb#487 + # source://net-protocol//lib/net/protocol.rb#487 def initialize(writer); end - # source://net-protocol//net/protocol.rb#501 + # source://net-protocol//lib/net/protocol.rb#501 def <<(str); end - # source://net-protocol//net/protocol.rb#491 + # source://net-protocol//lib/net/protocol.rb#491 def inspect; end - # source://net-protocol//net/protocol.rb#495 + # source://net-protocol//lib/net/protocol.rb#495 def print(str); end - # source://net-protocol//net/protocol.rb#510 + # source://net-protocol//lib/net/protocol.rb#510 def printf(*args); end - # source://net-protocol//net/protocol.rb#506 + # source://net-protocol//lib/net/protocol.rb#506 def puts(str = T.unsafe(nil)); end - # source://net-protocol//net/protocol.rb#495 + # source://net-protocol//lib/net/protocol.rb#495 def write(str); end end # WriteTimeout, a subclass of Timeout::Error, is raised if a chunk of the # response cannot be written within the write_timeout. Not raised on Windows. +# +# source://net-protocol//lib/net/protocol.rb#99 class Net::WriteTimeout < ::Timeout::Error # @return [WriteTimeout] a new instance of WriteTimeout # - # source://net-protocol//net/protocol.rb#100 + # source://net-protocol//lib/net/protocol.rb#100 def initialize(io = T.unsafe(nil)); end # Returns the value of attribute io. # - # source://net-protocol//net/protocol.rb#103 + # source://net-protocol//lib/net/protocol.rb#103 def io; end - # source://net-protocol//net/protocol.rb#105 + # source://net-protocol//lib/net/protocol.rb#105 def message; end end diff --git a/sorbet/rbi/gems/nokogiri@1.16.5.rbi b/sorbet/rbi/gems/nokogiri@1.16.7.rbi similarity index 100% rename from sorbet/rbi/gems/nokogiri@1.16.5.rbi rename to sorbet/rbi/gems/nokogiri@1.16.7.rbi diff --git a/sorbet/rbi/gems/openssl@3.2.0.rbi b/sorbet/rbi/gems/openssl@3.2.0.rbi index 8b6cce2f..34b413d2 100644 --- a/sorbet/rbi/gems/openssl@3.2.0.rbi +++ b/sorbet/rbi/gems/openssl@3.2.0.rbi @@ -8,15 +8,18 @@ # -- # Add double dispatch to Integer # ++ +# +# source://openssl//lib/openssl/bn.rb#33 class Integer < ::Numeric # Casts an Integer as an OpenSSL::BN # # See `man bn` for more info. # - # source://openssl//openssl/bn.rb#37 + # source://openssl//lib/openssl/bn.rb#37 def to_bn; end end +# source://openssl//lib/openssl/bn.rb#16 module OpenSSL private @@ -30,7 +33,7 @@ module OpenSSL # Digest("Foo") # # => NameError: wrong constant name Foo # - # source://openssl//openssl/digest.rb#63 + # source://openssl//lib/openssl/digest.rb#63 def Digest(name); end class << self @@ -44,7 +47,7 @@ module OpenSSL # Digest("Foo") # # => NameError: wrong constant name Foo # - # source://openssl//openssl/digest.rb#63 + # source://openssl//lib/openssl/digest.rb#63 def Digest(name); end # call-seq: @@ -54,42 +57,47 @@ module OpenSSL # the length of the secret. Returns +true+ if the strings are identical, # +false+ otherwise. # - # source://openssl//openssl.rb#32 + # source://openssl//lib/openssl.rb#32 def secure_compare(a, b); end end end +# source://openssl//lib/openssl/bn.rb#17 class OpenSSL::BN include ::Comparable - # source://openssl//openssl/bn.rb#20 + # source://openssl//lib/openssl/bn.rb#20 def pretty_print(q); end end +OpenSSL::BN::CONSTTIME = T.let(T.unsafe(nil), Integer) + # OpenSSL IO buffering mix-in module. # # This module allows an OpenSSL::SSL::SSLSocket to behave like an IO. # # You typically won't use this module directly, you can see it implemented in # OpenSSL::SSL::SSLSocket. +# +# source://openssl//lib/openssl/buffering.rb#22 module OpenSSL::Buffering include ::Enumerable include ::ActiveSupport::ToJsonWithActiveSupportEncoder # Creates an instance of OpenSSL's buffering IO module. # - # source://openssl//openssl/buffering.rb#63 + # source://openssl//lib/openssl/buffering.rb#63 def initialize(*_arg0); end # Writes _s_ to the stream. _s_ will be converted to a String using # +.to_s+ method. # - # source://openssl//openssl/buffering.rb#419 + # source://openssl//lib/openssl/buffering.rb#419 def <<(s); end # Closes the SSLSocket and flushes any unwritten data. # - # source://openssl//openssl/buffering.rb#480 + # source://openssl//lib/openssl/buffering.rb#480 def close; end # Executes the block for every line in the stream where lines are separated @@ -97,12 +105,12 @@ module OpenSSL::Buffering # # See also #gets # - # source://openssl//openssl/buffering.rb#256 + # source://openssl//lib/openssl/buffering.rb#256 def each(eol = T.unsafe(nil)); end # Calls the given block once for each byte in the stream. # - # source://openssl//openssl/buffering.rb#297 + # source://openssl//lib/openssl/buffering.rb#297 def each_byte; end # Executes the block for every line in the stream where lines are separated @@ -110,7 +118,7 @@ module OpenSSL::Buffering # # See also #gets # - # source://openssl//openssl/buffering.rb#256 + # source://openssl//lib/openssl/buffering.rb#256 def each_line(eol = T.unsafe(nil)); end # Returns true if the stream is at file which means there is no more data to @@ -118,7 +126,7 @@ module OpenSSL::Buffering # # @return [Boolean] # - # source://openssl//openssl/buffering.rb#328 + # source://openssl//lib/openssl/buffering.rb#328 def eof; end # Returns true if the stream is at file which means there is no more data to @@ -126,12 +134,12 @@ module OpenSSL::Buffering # # @return [Boolean] # - # source://openssl//openssl/buffering.rb#328 + # source://openssl//lib/openssl/buffering.rb#328 def eof?; end # Flushes buffered data to the SSLSocket. # - # source://openssl//openssl/buffering.rb#468 + # source://openssl//lib/openssl/buffering.rb#468 def flush; end # call-seq: @@ -139,13 +147,13 @@ module OpenSSL::Buffering # # Get the next 8bit byte from `ssl`. Returns `nil` on EOF # - # source://openssl//openssl/buffering.rb#106 + # source://openssl//lib/openssl/buffering.rb#106 def getbyte; end # Reads one character from the stream. Returns nil if called at end of # file. # - # source://openssl//openssl/buffering.rb#290 + # source://openssl//lib/openssl/buffering.rb#290 def getc; end # Reads the next "line" from the stream. Lines are separated by _eol_. If @@ -158,14 +166,14 @@ module OpenSSL::Buffering # # Unlike IO#gets the separator must be provided if a limit is provided. # - # source://openssl//openssl/buffering.rb#232 + # source://openssl//lib/openssl/buffering.rb#232 def gets(eol = T.unsafe(nil), limit = T.unsafe(nil)); end # Writes _args_ to the stream. # # See IO#print for full details. # - # source://openssl//openssl/buffering.rb#447 + # source://openssl//lib/openssl/buffering.rb#447 def print(*args); end # Formats and writes to the stream converting parameters under control of @@ -173,14 +181,14 @@ module OpenSSL::Buffering # # See Kernel#sprintf for format string details. # - # source://openssl//openssl/buffering.rb#460 + # source://openssl//lib/openssl/buffering.rb#460 def printf(s, *args); end # Writes _args_ to the stream along with a record separator. # # See IO#puts for full details. # - # source://openssl//openssl/buffering.rb#429 + # source://openssl//lib/openssl/buffering.rb#429 def puts(*args); end # Reads _size_ bytes from the stream. If _buf_ is provided it must @@ -188,7 +196,7 @@ module OpenSSL::Buffering # # See IO#read for full details. # - # source://openssl//openssl/buffering.rb#116 + # source://openssl//lib/openssl/buffering.rb#116 def read(size = T.unsafe(nil), buf = T.unsafe(nil)); end # Reads at most _maxlen_ bytes in the non-blocking manner. @@ -224,7 +232,7 @@ module OpenSSL::Buffering # return the symbol +:wait_writable+ or +:wait_readable+ instead. At EOF, # it will return +nil+ instead of raising EOFError. # - # source://openssl//openssl/buffering.rb#201 + # source://openssl//lib/openssl/buffering.rb#201 def read_nonblock(maxlen, buf = T.unsafe(nil), exception: T.unsafe(nil)); end # Reads a one-character string from the stream. Raises an EOFError at end @@ -232,7 +240,7 @@ module OpenSSL::Buffering # # @raise [EOFError] # - # source://openssl//openssl/buffering.rb#307 + # source://openssl//lib/openssl/buffering.rb#307 def readchar; end # Reads a line from the stream which is separated by _eol_. @@ -241,14 +249,14 @@ module OpenSSL::Buffering # # @raise [EOFError] # - # source://openssl//openssl/buffering.rb#281 + # source://openssl//lib/openssl/buffering.rb#281 def readline(eol = T.unsafe(nil)); end # Reads lines from the stream which are separated by _eol_. # # See also #gets # - # source://openssl//openssl/buffering.rb#268 + # source://openssl//lib/openssl/buffering.rb#268 def readlines(eol = T.unsafe(nil)); end # Reads at most _maxlen_ bytes from the stream. If _buf_ is provided it @@ -256,21 +264,21 @@ module OpenSSL::Buffering # # See IO#readpartial for full details. # - # source://openssl//openssl/buffering.rb#143 + # source://openssl//lib/openssl/buffering.rb#143 def readpartial(maxlen, buf = T.unsafe(nil)); end # The "sync mode" of the SSLSocket. # # See IO#sync for full details. # - # source://openssl//openssl/buffering.rb#53 + # source://openssl//lib/openssl/buffering.rb#53 def sync; end # The "sync mode" of the SSLSocket. # # See IO#sync for full details. # - # source://openssl//openssl/buffering.rb#53 + # source://openssl//lib/openssl/buffering.rb#53 def sync=(_arg0); end # Pushes character _c_ back onto the stream such that a subsequent buffered @@ -280,13 +288,13 @@ module OpenSSL::Buffering # # Has no effect on unbuffered reads (such as #sysread). # - # source://openssl//openssl/buffering.rb#320 + # source://openssl//lib/openssl/buffering.rb#320 def ungetc(c); end # Writes _s_ to the stream. If the argument is not a String it will be # converted using +.to_s+ method. Returns the number of bytes written. # - # source://openssl//openssl/buffering.rb#366 + # source://openssl//lib/openssl/buffering.rb#366 def write(*s); end # Writes _s_ in the non-blocking manner. @@ -325,45 +333,48 @@ module OpenSSL::Buffering # that write_nonblock should not raise an IO::Wait*able exception, but # return the symbol +:wait_writable+ or +:wait_readable+ instead. # - # source://openssl//openssl/buffering.rb#410 + # source://openssl//lib/openssl/buffering.rb#410 def write_nonblock(s, exception: T.unsafe(nil)); end private # Consumes _size_ bytes from the buffer # - # source://openssl//openssl/buffering.rb#91 + # source://openssl//lib/openssl/buffering.rb#91 def consume_rbuff(size = T.unsafe(nil)); end # Writes _s_ to the buffer. When the buffer is full or #sync is true the # buffer is flushed to the underlying socket. # - # source://openssl//openssl/buffering.rb#343 + # source://openssl//lib/openssl/buffering.rb#343 def do_write(s); end # Fills the buffer from the underlying SSLSocket # - # source://openssl//openssl/buffering.rb#78 + # source://openssl//lib/openssl/buffering.rb#78 def fill_rbuff; end end # A buffer which will retain binary encoding. +# +# source://openssl//lib/openssl/buffering.rb#26 class OpenSSL::Buffering::Buffer < ::String # @return [Buffer] a new instance of Buffer # - # source://openssl//openssl/buffering.rb#29 + # source://openssl//lib/openssl/buffering.rb#29 def initialize; end - # source://openssl//openssl/buffering.rb#35 + # source://openssl//lib/openssl/buffering.rb#35 def <<(string); end - # source://openssl//openssl/buffering.rb#35 + # source://openssl//lib/openssl/buffering.rb#35 def concat(string); end end -# source://openssl//openssl/buffering.rb#27 +# source://openssl//lib/openssl/buffering.rb#27 OpenSSL::Buffering::Buffer::BINARY = T.let(T.unsafe(nil), Encoding) +# source://openssl//lib/openssl/cipher.rb#16 class OpenSSL::Cipher # call-seq: # cipher.random_iv -> iv @@ -373,7 +384,7 @@ class OpenSSL::Cipher # # You must call #encrypt or #decrypt before calling this method. # - # source://openssl//openssl/cipher.rb#55 + # source://openssl//lib/openssl/cipher.rb#55 def random_iv; end # call-seq: @@ -384,37 +395,43 @@ class OpenSSL::Cipher # # You must call #encrypt or #decrypt before calling this method. # - # source://openssl//openssl/cipher.rb#43 + # source://openssl//lib/openssl/cipher.rb#43 def random_key; end end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::AES < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end +# source://openssl//lib/openssl/cipher.rb#28 class OpenSSL::Cipher::AES128 < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#29 + # source://openssl//lib/openssl/cipher.rb#29 def initialize(mode = T.unsafe(nil)); end end +# source://openssl//lib/openssl/cipher.rb#28 class OpenSSL::Cipher::AES192 < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#29 + # source://openssl//lib/openssl/cipher.rb#29 def initialize(mode = T.unsafe(nil)); end end +# source://openssl//lib/openssl/cipher.rb#28 class OpenSSL::Cipher::AES256 < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#29 + # source://openssl//lib/openssl/cipher.rb#29 def initialize(mode = T.unsafe(nil)); end end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::BF < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::CAST5 < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end @@ -422,30 +439,37 @@ end # # This class is only provided for backwards compatibility. # Use OpenSSL::Cipher. +# +# source://openssl//lib/openssl/cipher.rb#64 class OpenSSL::Cipher::Cipher < ::OpenSSL::Cipher; end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::DES < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::IDEA < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::RC2 < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::RC4 < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end +# source://openssl//lib/openssl/cipher.rb#18 class OpenSSL::Cipher::RC5 < ::OpenSSL::Cipher - # source://openssl//openssl/cipher.rb#19 + # source://openssl//lib/openssl/cipher.rb#19 def initialize(*args); end end @@ -453,6 +477,7 @@ class OpenSSL::Config include ::Enumerable end +# source://openssl//lib/openssl/digest.rb#16 class OpenSSL::Digest < ::Digest::Class class << self # Return the hash value computed with _name_ Digest. _name_ is either the @@ -462,7 +487,7 @@ class OpenSSL::Digest < ::Digest::Class # # OpenSSL::Digest.digest("SHA256", "abc") # - # source://openssl//openssl/digest.rb#25 + # source://openssl//lib/openssl/digest.rb#25 def digest(name, data); end end end @@ -471,116 +496,127 @@ end # # This class is only provided for backwards compatibility. # Use OpenSSL::Digest instead. +# +# source://openssl//lib/openssl/digest.rb#48 class OpenSSL::Digest::Digest < ::OpenSSL::Digest; end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::MD4 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::MD5 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::RIPEMD160 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::SHA1 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::SHA224 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::SHA256 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::SHA384 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/digest.rb#30 class OpenSSL::Digest::SHA512 < ::OpenSSL::Digest - # source://openssl//openssl/digest.rb#31 + # source://openssl//lib/openssl/digest.rb#31 def initialize(data = T.unsafe(nil)); end class << self - # source://openssl//openssl/digest.rb#37 + # source://openssl//lib/openssl/digest.rb#37 def digest(data); end - # source://openssl//openssl/digest.rb#38 + # source://openssl//lib/openssl/digest.rb#38 def hexdigest(data); end end end +# source://openssl//lib/openssl/hmac.rb#4 class OpenSSL::HMAC # Securely compare with another HMAC instance in constant time. # - # source://openssl//openssl/hmac.rb#6 + # source://openssl//lib/openssl/hmac.rb#6 def ==(other); end # :call-seq: @@ -588,7 +624,7 @@ class OpenSSL::HMAC # # Returns the authentication code an a Base64-encoded string. # - # source://openssl//openssl/hmac.rb#17 + # source://openssl//lib/openssl/hmac.rb#17 def base64digest; end class << self @@ -606,7 +642,7 @@ class OpenSSL::HMAC # hmac = OpenSSL::HMAC.base64digest('SHA1', key, data) # #=> "3nybhbi3iqa8ino29wqQcBydtNk=" # - # source://openssl//openssl/hmac.rb#73 + # source://openssl//lib/openssl/hmac.rb#73 def base64digest(digest, key, data); end # :call-seq: @@ -623,7 +659,7 @@ class OpenSSL::HMAC # hmac = OpenSSL::HMAC.digest('SHA1', key, data) # #=> "\xDE|\x9B\x85\xB8\xB7\x8A\xA6\xBC\x8Az6\xF7\n\x90p\x1C\x9D\xB4\xD9" # - # source://openssl//openssl/hmac.rb#35 + # source://openssl//lib/openssl/hmac.rb#35 def digest(digest, key, data); end # :call-seq: @@ -640,54 +676,58 @@ class OpenSSL::HMAC # hmac = OpenSSL::HMAC.hexdigest('SHA1', key, data) # #=> "de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9" # - # source://openssl//openssl/hmac.rb#54 + # source://openssl//lib/openssl/hmac.rb#54 def hexdigest(digest, key, data); end end end +# source://openssl//lib/openssl/marshal.rb#15 module OpenSSL::Marshal mixes_in_class_methods ::OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/marshal.rb#26 + # source://openssl//lib/openssl/marshal.rb#26 def _dump(_level); end class << self # @private # - # source://openssl//openssl/marshal.rb#16 + # source://openssl//lib/openssl/marshal.rb#16 def included(base); end end end +# source://openssl//lib/openssl/marshal.rb#20 module OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/marshal.rb#21 + # source://openssl//lib/openssl/marshal.rb#21 def _load(string); end end +# source://openssl//lib/openssl/pkcs5.rb#8 module OpenSSL::PKCS5 private # OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac. # This method is provided for backwards compatibility. # - # source://openssl//openssl/pkcs5.rb#13 + # source://openssl//lib/openssl/pkcs5.rb#13 def pbkdf2_hmac(pass, salt, iter, keylen, digest); end - # source://openssl//openssl/pkcs5.rb#18 + # source://openssl//lib/openssl/pkcs5.rb#18 def pbkdf2_hmac_sha1(pass, salt, iter, keylen); end class << self # OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac. # This method is provided for backwards compatibility. # - # source://openssl//openssl/pkcs5.rb#13 + # source://openssl//lib/openssl/pkcs5.rb#13 def pbkdf2_hmac(pass, salt, iter, keylen, digest); end - # source://openssl//openssl/pkcs5.rb#18 + # source://openssl//lib/openssl/pkcs5.rb#18 def pbkdf2_hmac_sha1(pass, salt, iter, keylen); end end end +# source://openssl//lib/openssl/pkey.rb#10 class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods @@ -705,7 +745,7 @@ class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey # * _pub_bn_ is a OpenSSL::BN, *not* the DH instance returned by # DH#public_key as that contains the DH parameters only. # - # source://openssl//openssl/pkey.rb#49 + # source://openssl//lib/openssl/pkey.rb#49 def compute_key(pub_bn); end # :call-seq: @@ -735,7 +775,7 @@ class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey # dh = OpenSSL::PKey.generate_key(dh0) # puts dh0.pub_key == dh.pub_key #=> false # - # source://openssl//openssl/pkey.rb#91 + # source://openssl//lib/openssl/pkey.rb#91 def generate_key!; end # :call-seq: @@ -759,7 +799,7 @@ class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey # dhcopy = dh1.public_key # p dhcopy.priv_key #=> nil # - # source://openssl//openssl/pkey.rb#33 + # source://openssl//lib/openssl/pkey.rb#33 def public_key; end class << self @@ -777,17 +817,18 @@ class OpenSSL::PKey::DH < ::OpenSSL::PKey::PKey # +generator+:: # The generator. # - # source://openssl//openssl/pkey.rb#118 + # source://openssl//lib/openssl/pkey.rb#118 def generate(size, generator = T.unsafe(nil), &blk); end # Handle DH.new(size, generator) form here; new(str) and new() forms # are handled by #initialize # - # source://openssl//openssl/pkey.rb#128 + # source://openssl//lib/openssl/pkey.rb#128 def new(*args, &blk); end end end +# source://openssl//lib/openssl/pkey.rb#138 class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods @@ -805,7 +846,7 @@ class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey # X.509 SubjectPublicKeyInfo format, check PKey#public_to_pem and # PKey#public_to_der. # - # source://openssl//openssl/pkey.rb#153 + # source://openssl//lib/openssl/pkey.rb#153 def public_key; end # :call-seq: @@ -834,7 +875,7 @@ class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey # sig = dsa.sign_raw(nil, digest) # p dsa.verify_raw(nil, sig, digest) #=> true # - # source://openssl//openssl/pkey.rb#220 + # source://openssl//lib/openssl/pkey.rb#220 def syssign(string); end # :call-seq: @@ -851,7 +892,7 @@ class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey # +sig+:: # A \DSA signature value. # - # source://openssl//openssl/pkey.rb#243 + # source://openssl//lib/openssl/pkey.rb#243 def sysverify(digest, sig); end class << self @@ -867,17 +908,18 @@ class OpenSSL::PKey::DSA < ::OpenSSL::PKey::PKey # +size+:: # The desired key size in bits. # - # source://openssl//openssl/pkey.rb#169 + # source://openssl//lib/openssl/pkey.rb#169 def generate(size, &blk); end # Handle DSA.new(size) form here; new(str) and new() forms # are handled by #initialize # - # source://openssl//openssl/pkey.rb#186 + # source://openssl//lib/openssl/pkey.rb#186 def new(*args, &blk); end end end +# source://openssl//lib/openssl/pkey.rb#251 class OpenSSL::PKey::EC < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods @@ -891,7 +933,7 @@ class OpenSSL::PKey::EC < ::OpenSSL::PKey::PKey # This method is provided for backwards compatibility, and calls #derive # internally. # - # source://openssl//openssl/pkey.rb#284 + # source://openssl//lib/openssl/pkey.rb#284 def dh_compute_key(pubkey); end # :call-seq: @@ -900,7 +942,7 @@ class OpenSSL::PKey::EC < ::OpenSSL::PKey::PKey # Deprecated in version 3.0. # Consider using PKey::PKey#sign_raw and PKey::PKey#verify_raw instead. # - # source://openssl//openssl/pkey.rb#259 + # source://openssl//lib/openssl/pkey.rb#259 def dsa_sign_asn1(data); end # :call-seq: @@ -909,10 +951,13 @@ class OpenSSL::PKey::EC < ::OpenSSL::PKey::PKey # Deprecated in version 3.0. # Consider using PKey::PKey#sign_raw and PKey::PKey#verify_raw instead. # - # source://openssl//openssl/pkey.rb#270 + # source://openssl//lib/openssl/pkey.rb#270 def dsa_verify_asn1(data, sig); end end +OpenSSL::PKey::EC::EXPLICIT_CURVE = T.let(T.unsafe(nil), Integer) + +# source://openssl//lib/openssl/pkey.rb#296 class OpenSSL::PKey::EC::Point # :call-seq: # point.to_bn([conversion_form]) -> OpenSSL::BN @@ -925,10 +970,11 @@ class OpenSSL::PKey::EC::Point # # See #to_octet_string for more information. # - # source://openssl//openssl/pkey.rb#307 + # source://openssl//lib/openssl/pkey.rb#307 def to_bn(conversion_form = T.unsafe(nil)); end end +# source://openssl//lib/openssl/pkey.rb#313 class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods @@ -944,7 +990,7 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # Deprecated in version 3.0. # Consider using PKey::PKey#encrypt and PKey::PKey#decrypt instead. # - # source://openssl//openssl/pkey.rb#439 + # source://openssl//lib/openssl/pkey.rb#439 def private_decrypt(data, padding = T.unsafe(nil)); end # :call-seq: @@ -960,7 +1006,7 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # Consider using PKey::PKey#sign_raw and PKey::PKey#verify_raw, and # PKey::PKey#verify_recover instead. # - # source://openssl//openssl/pkey.rb#373 + # source://openssl//lib/openssl/pkey.rb#373 def private_encrypt(string, padding = T.unsafe(nil)); end # :call-seq: @@ -975,7 +1021,7 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # Consider using PKey::PKey#sign_raw and PKey::PKey#verify_raw, and # PKey::PKey#verify_recover instead. # - # source://openssl//openssl/pkey.rb#396 + # source://openssl//lib/openssl/pkey.rb#396 def public_decrypt(string, padding = T.unsafe(nil)); end # :call-seq: @@ -990,7 +1036,7 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # Deprecated in version 3.0. # Consider using PKey::PKey#encrypt and PKey::PKey#decrypt instead. # - # source://openssl//openssl/pkey.rb#418 + # source://openssl//lib/openssl/pkey.rb#418 def public_encrypt(data, padding = T.unsafe(nil)); end # :call-seq: @@ -1005,12 +1051,12 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # X.509 SubjectPublicKeyInfo format, check PKey#public_to_pem and # PKey#public_to_der. # - # source://openssl//openssl/pkey.rb#327 + # source://openssl//lib/openssl/pkey.rb#327 def public_key; end private - # source://openssl//openssl/pkey.rb#456 + # source://openssl//lib/openssl/pkey.rb#456 def translate_padding_mode(num); end class << self @@ -1026,13 +1072,13 @@ class OpenSSL::PKey::RSA < ::OpenSSL::PKey::PKey # +exponent+:: # An odd Integer, normally 3, 17, or 65537. # - # source://openssl//openssl/pkey.rb#343 + # source://openssl//lib/openssl/pkey.rb#343 def generate(size, exp = T.unsafe(nil), &blk); end # Handle RSA.new(size, exponent) form here; new(str) and new() forms # are handled by #initialize # - # source://openssl//openssl/pkey.rb#352 + # source://openssl//lib/openssl/pkey.rb#352 def new(*args, &blk); end end end @@ -1050,30 +1096,52 @@ end class OpenSSL::Provider::ProviderError < ::OpenSSL::OpenSSLError; end +# source://openssl//lib/openssl/ssl.rb#22 module OpenSSL::SSL private - # source://openssl//openssl/ssl.rb#276 + # source://openssl//lib/openssl/ssl.rb#276 def verify_certificate_identity(cert, hostname); end - # source://openssl//openssl/ssl.rb#309 + # source://openssl//lib/openssl/ssl.rb#309 def verify_hostname(hostname, san); end - # source://openssl//openssl/ssl.rb#342 + # source://openssl//lib/openssl/ssl.rb#342 def verify_wildcard(domain_component, san_component); end class << self - # source://openssl//openssl/ssl.rb#276 + # source://openssl//lib/openssl/ssl.rb#276 def verify_certificate_identity(cert, hostname); end - # source://openssl//openssl/ssl.rb#309 + # source://openssl//lib/openssl/ssl.rb#309 def verify_hostname(hostname, san); end - # source://openssl//openssl/ssl.rb#342 + # source://openssl//lib/openssl/ssl.rb#342 def verify_wildcard(domain_component, san_component); end end end +OpenSSL::SSL::OP_ALLOW_CLIENT_RENEGOTIATION = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_ALLOW_NO_DHE_KEX = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_CLEANSE_PLAINTEXT = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_CRYPTOPRO_TLSEXT_BUG = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_DISABLE_TLSEXT_CA_NAMES = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_ENABLE_KTLS = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_ENABLE_MIDDLEBOX_COMPAT = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_IGNORE_UNEXPECTED_EOF = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_LEGACY_SERVER_CONNECT = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_NO_ANTI_REPLAY = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_NO_ENCRYPT_THEN_MAC = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_NO_RENEGOTIATION = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_NO_TLSv1_3 = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_PRIORITIZE_CHACHA = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_SAFARI_ECDHE_ECDSA_BUG = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::OP_TLSEXT_PADDING = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::SSL2_VERSION = T.let(T.unsafe(nil), Integer) +OpenSSL::SSL::SSL3_VERSION = T.let(T.unsafe(nil), Integer) + +# source://openssl//lib/openssl/ssl.rb#23 class OpenSSL::SSL::SSLContext # call-seq: # SSLContext.new -> ctx @@ -1088,7 +1156,7 @@ class OpenSSL::SSL::SSLContext # # @return [SSLContext] a new instance of SSLContext # - # source://openssl//openssl/ssl.rb#127 + # source://openssl//lib/openssl/ssl.rb#127 def initialize(version = T.unsafe(nil)); end # call-seq: @@ -1099,7 +1167,7 @@ class OpenSSL::SSL::SSLContext # Sets the upper bound of the supported SSL/TLS protocol version. See # #min_version= for the possible values. # - # source://openssl//openssl/ssl.rb#190 + # source://openssl//lib/openssl/ssl.rb#190 def max_version=(version); end # call-seq: @@ -1123,7 +1191,7 @@ class OpenSSL::SSL::SSLContext # sock = OpenSSL::SSL::SSLSocket.new(tcp_sock, ctx) # sock.connect # Initiates a connection using either TLS 1.1 or TLS 1.2 # - # source://openssl//openssl/ssl.rb#178 + # source://openssl//lib/openssl/ssl.rb#178 def min_version=(version); end # A callback invoked at connect time to distinguish between multiple @@ -1132,7 +1200,7 @@ class OpenSSL::SSL::SSLContext # The callback is invoked with an SSLSocket and a server name. The # callback must return an SSLContext for the server name or nil. # - # source://openssl//openssl/ssl.rb#115 + # source://openssl//lib/openssl/ssl.rb#115 def servername_cb; end # A callback invoked at connect time to distinguish between multiple @@ -1141,7 +1209,7 @@ class OpenSSL::SSL::SSLContext # The callback is invoked with an SSLSocket and a server name. The # callback must return an SSLContext for the server name or nil. # - # source://openssl//openssl/ssl.rb#115 + # source://openssl//lib/openssl/ssl.rb#115 def servername_cb=(_arg0); end # call-seq: @@ -1156,7 +1224,7 @@ class OpenSSL::SSL::SSLContext # cert_store are not set then the system default certificate store is # used. # - # source://openssl//openssl/ssl.rb#146 + # source://openssl//lib/openssl/ssl.rb#146 def set_params(params = T.unsafe(nil)); end # call-seq: @@ -1174,7 +1242,7 @@ class OpenSSL::SSL::SSLContext # the context. As of Ruby/OpenSSL 2.1, this accessor method is # implemented to call #min_version= and #max_version= instead. # - # source://openssl//openssl/ssl.rb#209 + # source://openssl//lib/openssl/ssl.rb#209 def ssl_version=(meth); end # A callback invoked when DH parameters are required for ephemeral DH key @@ -1189,7 +1257,7 @@ class OpenSSL::SSL::SSLContext # # Deprecated in version 3.0. Use #tmp_dh= instead. # - # source://openssl//openssl/ssl.rb#108 + # source://openssl//lib/openssl/ssl.rb#108 def tmp_dh_callback; end # A callback invoked when DH parameters are required for ephemeral DH key @@ -1204,23 +1272,23 @@ class OpenSSL::SSL::SSLContext # # Deprecated in version 3.0. Use #tmp_dh= instead. # - # source://openssl//openssl/ssl.rb#108 + # source://openssl//lib/openssl/ssl.rb#108 def tmp_dh_callback=(_arg0); end end -# source://openssl//openssl/ssl.rb#49 +# source://openssl//lib/openssl/ssl.rb#49 OpenSSL::SSL::SSLContext::DEFAULT_TMP_DH_CALLBACK = T.let(T.unsafe(nil), Proc) -# source://openssl//openssl/ssl.rb#37 +# source://openssl//lib/openssl/ssl.rb#37 OpenSSL::SSL::SSLContext::DH_ffdhe2048 = T.let(T.unsafe(nil), OpenSSL::PKey::DH) # The list of available SSL/TLS methods. This constant is only provided # for backwards compatibility. # -# source://openssl//openssl/ssl.rb#235 +# source://openssl//lib/openssl/ssl.rb#235 OpenSSL::SSL::SSLContext::METHODS = T.let(T.unsafe(nil), Array) -# source://openssl//openssl/ssl.rb#223 +# source://openssl//lib/openssl/ssl.rb#223 OpenSSL::SSL::SSLContext::METHODS_MAP = T.let(T.unsafe(nil), Hash) class OpenSSL::SSL::SSLErrorWaitReadable < ::OpenSSL::SSL::SSLError @@ -1232,6 +1300,8 @@ class OpenSSL::SSL::SSLErrorWaitWritable < ::OpenSSL::SSL::SSLError end # SSLServer represents a TCP/IP server socket with Secure Sockets Layer. +# +# source://openssl//lib/openssl/ssl.rb#483 class OpenSSL::SSL::SSLServer include ::OpenSSL::SSL::SocketForwarder @@ -1241,45 +1311,46 @@ class OpenSSL::SSL::SSLServer # # @return [SSLServer] a new instance of SSLServer # - # source://openssl//openssl/ssl.rb#491 + # source://openssl//lib/openssl/ssl.rb#491 def initialize(svr, ctx); end # Works similar to TCPServer#accept. # - # source://openssl//openssl/ssl.rb#519 + # source://openssl//lib/openssl/ssl.rb#519 def accept; end # See IO#close for details. # - # source://openssl//openssl/ssl.rb#540 + # source://openssl//lib/openssl/ssl.rb#540 def close; end # See TCPServer#listen for details. # - # source://openssl//openssl/ssl.rb#509 + # source://openssl//lib/openssl/ssl.rb#509 def listen(backlog = T.unsafe(nil)); end # See BasicSocket#shutdown for details. # - # source://openssl//openssl/ssl.rb#514 + # source://openssl//lib/openssl/ssl.rb#514 def shutdown(how = T.unsafe(nil)); end # When true then #accept works exactly the same as TCPServer#accept # - # source://openssl//openssl/ssl.rb#486 + # source://openssl//lib/openssl/ssl.rb#486 def start_immediately; end # When true then #accept works exactly the same as TCPServer#accept # - # source://openssl//openssl/ssl.rb#486 + # source://openssl//lib/openssl/ssl.rb#486 def start_immediately=(_arg0); end # Returns the TCPServer passed to the SSLServer when initialized. # - # source://openssl//openssl/ssl.rb#504 + # source://openssl//lib/openssl/ssl.rb#504 def to_io; end end +# source://openssl//lib/openssl/ssl.rb#360 class OpenSSL::SSL::SSLSocket include ::Enumerable include ::OpenSSL::Buffering @@ -1287,17 +1358,17 @@ class OpenSSL::SSL::SSLSocket # The SSLContext object used in this connection. # - # source://openssl//openssl/ssl.rb#371 + # source://openssl//lib/openssl/ssl.rb#371 def context; end # Returns the value of attribute hostname. # - # source://openssl//openssl/ssl.rb#364 + # source://openssl//lib/openssl/ssl.rb#364 def hostname; end # The underlying IO object. # - # source://openssl//openssl/ssl.rb#367 + # source://openssl//lib/openssl/ssl.rb#367 def io; end # call-seq: @@ -1308,7 +1379,7 @@ class OpenSSL::SSL::SSLSocket # This method MUST be called after calling #connect to ensure that the # hostname of a remote peer has been verified. # - # source://openssl//openssl/ssl.rb#397 + # source://openssl//lib/openssl/ssl.rb#397 def post_connection_check(hostname); end # call-seq: @@ -1317,19 +1388,19 @@ class OpenSSL::SSL::SSLSocket # Returns the SSLSession object currently used, or nil if the session is # not established. # - # source://openssl//openssl/ssl.rb#418 + # source://openssl//lib/openssl/ssl.rb#418 def session; end # Whether to close the underlying socket as well, when the SSL/TLS # connection is shut down. This defaults to +false+. # - # source://openssl//openssl/ssl.rb#375 + # source://openssl//lib/openssl/ssl.rb#375 def sync_close; end # Whether to close the underlying socket as well, when the SSL/TLS # connection is shut down. This defaults to +false+. # - # source://openssl//openssl/ssl.rb#375 + # source://openssl//lib/openssl/ssl.rb#375 def sync_close=(_arg0); end # call-seq: @@ -1340,31 +1411,31 @@ class OpenSSL::SSL::SSLSocket # # If sync_close is set to +true+, the underlying IO is also closed. # - # source://openssl//openssl/ssl.rb#384 + # source://openssl//lib/openssl/ssl.rb#384 def sysclose; end # The underlying IO object. # - # source://openssl//openssl/ssl.rb#367 + # source://openssl//lib/openssl/ssl.rb#367 def to_io; end private - # source://openssl//openssl/ssl.rb#432 + # source://openssl//lib/openssl/ssl.rb#432 def client_cert_cb; end - # source://openssl//openssl/ssl.rb#444 + # source://openssl//lib/openssl/ssl.rb#444 def session_get_cb; end - # source://openssl//openssl/ssl.rb#440 + # source://openssl//lib/openssl/ssl.rb#440 def session_new_cb; end - # source://openssl//openssl/ssl.rb#436 + # source://openssl//lib/openssl/ssl.rb#436 def tmp_dh_callback; end # @return [Boolean] # - # source://openssl//openssl/ssl.rb#426 + # source://openssl//lib/openssl/ssl.rb#426 def using_anon_cipher?; end class << self @@ -1389,41 +1460,43 @@ class OpenSSL::SSL::SSLSocket # sock = OpenSSL::SSL::SSLSocket.open('localhost', 443, context: ctx) # sock.connect # Initiates a connection to localhost:443 with SSLContext # - # source://openssl//openssl/ssl.rb#470 + # source://openssl//lib/openssl/ssl.rb#470 def open(remote_host, remote_port, local_host = T.unsafe(nil), local_port = T.unsafe(nil), context: T.unsafe(nil)); end end end +# source://openssl//lib/openssl/ssl.rb#241 module OpenSSL::SSL::SocketForwarder - # source://openssl//openssl/ssl.rb#247 + # source://openssl//lib/openssl/ssl.rb#247 def addr; end # @return [Boolean] # - # source://openssl//openssl/ssl.rb#267 + # source://openssl//lib/openssl/ssl.rb#267 def closed?; end - # source://openssl//openssl/ssl.rb#271 + # source://openssl//lib/openssl/ssl.rb#271 def do_not_reverse_lookup=(flag); end - # source://openssl//openssl/ssl.rb#263 + # source://openssl//lib/openssl/ssl.rb#263 def fcntl(*args); end # The file descriptor for the socket. # - # source://openssl//openssl/ssl.rb#243 + # source://openssl//lib/openssl/ssl.rb#243 def fileno; end - # source://openssl//openssl/ssl.rb#259 + # source://openssl//lib/openssl/ssl.rb#259 def getsockopt(level, optname); end - # source://openssl//openssl/ssl.rb#251 + # source://openssl//lib/openssl/ssl.rb#251 def peeraddr; end - # source://openssl//openssl/ssl.rb#255 + # source://openssl//lib/openssl/ssl.rb#255 def setsockopt(level, optname, optval); end end +OpenSSL::SSL::TLS1_VERSION = T.let(T.unsafe(nil), Integer) module OpenSSL::Timestamp; end class OpenSSL::Timestamp::Factory @@ -1471,6 +1544,12 @@ class OpenSSL::Timestamp::Response def verify(*_arg0); end end +OpenSSL::Timestamp::Response::GRANTED = T.let(T.unsafe(nil), Integer) +OpenSSL::Timestamp::Response::GRANTED_WITH_MODS = T.let(T.unsafe(nil), Integer) +OpenSSL::Timestamp::Response::REJECTION = T.let(T.unsafe(nil), Integer) +OpenSSL::Timestamp::Response::REVOCATION_NOTIFICATION = T.let(T.unsafe(nil), Integer) +OpenSSL::Timestamp::Response::REVOCATION_WARNING = T.let(T.unsafe(nil), Integer) +OpenSSL::Timestamp::Response::WAITING = T.let(T.unsafe(nil), Integer) class OpenSSL::Timestamp::TimestampError < ::OpenSSL::OpenSSLError; end class OpenSSL::Timestamp::TokenInfo @@ -1487,24 +1566,27 @@ class OpenSSL::Timestamp::TokenInfo def version; end end +# source://openssl//lib/openssl/x509.rb#327 class OpenSSL::X509::Attribute include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/x509.rb#330 + # source://openssl//lib/openssl/x509.rb#330 def ==(other); end end +# source://openssl//lib/openssl/x509.rb#365 class OpenSSL::X509::CRL include ::OpenSSL::Marshal include ::OpenSSL::X509::Extension::Helpers include ::OpenSSL::X509::Extension::AuthorityKeyIdentifier extend ::OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/x509.rb#369 + # source://openssl//lib/openssl/x509.rb#369 def ==(other); end end +# source://openssl//lib/openssl/x509.rb#342 class OpenSSL::X509::Certificate include ::OpenSSL::Marshal include ::OpenSSL::X509::Extension::Helpers @@ -1514,36 +1596,38 @@ class OpenSSL::X509::Certificate include ::OpenSSL::X509::Extension::AuthorityInfoAccess extend ::OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/x509.rb#349 + # source://openssl//lib/openssl/x509.rb#349 def pretty_print(q); end class << self - # source://openssl//openssl/x509.rb#360 + # source://openssl//lib/openssl/x509.rb#360 def load_file(path); end end end +# source://openssl//lib/openssl/x509.rb#45 class OpenSSL::X509::Extension include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/x509.rb#48 + # source://openssl//lib/openssl/x509.rb#48 def ==(other); end - # source://openssl//openssl/x509.rb#64 + # source://openssl//lib/openssl/x509.rb#64 def to_a; end # {"oid"=>sn|ln, "value"=>value, "critical"=>true|false} # - # source://openssl//openssl/x509.rb#60 + # source://openssl//lib/openssl/x509.rb#60 def to_h; end # "oid = critical, value" # - # source://openssl//openssl/x509.rb#53 + # source://openssl//lib/openssl/x509.rb#53 def to_s; end end +# source://openssl//lib/openssl/x509.rb#154 module OpenSSL::X509::Extension::AuthorityInfoAccess include ::OpenSSL::X509::Extension::Helpers @@ -1553,7 +1637,7 @@ module OpenSSL::X509::Extension::AuthorityInfoAccess # # Returns an array of strings or nil or raises ASN1::ASN1Error. # - # source://openssl//openssl/x509.rb#162 + # source://openssl//lib/openssl/x509.rb#162 def ca_issuer_uris; end # Get the URIs for OCSP from the certificate's authority information access @@ -1561,15 +1645,16 @@ module OpenSSL::X509::Extension::AuthorityInfoAccess # # Returns an array of strings or nil or raises ASN1::ASN1Error. # - # source://openssl//openssl/x509.rb#177 + # source://openssl//lib/openssl/x509.rb#177 def ocsp_uris; end private - # source://openssl//openssl/x509.rb#190 + # source://openssl//lib/openssl/x509.rb#190 def parse_aia_asn1; end end +# source://openssl//lib/openssl/x509.rb#95 module OpenSSL::X509::Extension::AuthorityKeyIdentifier include ::OpenSSL::X509::Extension::Helpers @@ -1580,10 +1665,11 @@ module OpenSSL::X509::Extension::AuthorityKeyIdentifier # Returns the binary String keyIdentifier or nil or raises # ASN1::ASN1Error. # - # source://openssl//openssl/x509.rb#104 + # source://openssl//lib/openssl/x509.rb#104 def authority_key_identifier; end end +# source://openssl//lib/openssl/x509.rb#121 module OpenSSL::X509::Extension::CRLDistributionPoints include ::OpenSSL::X509::Extension::Helpers @@ -1593,15 +1679,17 @@ module OpenSSL::X509::Extension::CRLDistributionPoints # # Returns an array of strings or nil or raises ASN1::ASN1Error. # - # source://openssl//openssl/x509.rb#129 + # source://openssl//lib/openssl/x509.rb#129 def crl_uris; end end +# source://openssl//lib/openssl/x509.rb#68 module OpenSSL::X509::Extension::Helpers - # source://openssl//openssl/x509.rb#69 + # source://openssl//lib/openssl/x509.rb#69 def find_extension(oid); end end +# source://openssl//lib/openssl/x509.rb#74 module OpenSSL::X509::Extension::SubjectKeyIdentifier include ::OpenSSL::X509::Extension::Helpers @@ -1611,16 +1699,17 @@ module OpenSSL::X509::Extension::SubjectKeyIdentifier # Returns the binary String key identifier or nil or raises # ASN1::ASN1Error. # - # source://openssl//openssl/x509.rb#82 + # source://openssl//lib/openssl/x509.rb#82 def subject_key_identifier; end end +# source://openssl//lib/openssl/x509.rb#204 class OpenSSL::X509::Name include ::Comparable include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/x509.rb#319 + # source://openssl//lib/openssl/x509.rb#319 def pretty_print(q); end class << self @@ -1639,7 +1728,7 @@ class OpenSSL::X509::Name # Use of this method is discouraged in new applications. See # Name.parse_rfc2253 and #to_utf8 for the alternative. # - # source://openssl//openssl/x509.rb#305 + # source://openssl//lib/openssl/x509.rb#305 def parse(str, template = T.unsafe(nil)); end # Parses the string representation of a distinguished name. Two @@ -1657,7 +1746,7 @@ class OpenSSL::X509::Name # Use of this method is discouraged in new applications. See # Name.parse_rfc2253 and #to_utf8 for the alternative. # - # source://openssl//openssl/x509.rb#305 + # source://openssl//lib/openssl/x509.rb#305 def parse_openssl(str, template = T.unsafe(nil)); end # Parses the UTF-8 string representation of a distinguished name, @@ -1665,50 +1754,53 @@ class OpenSSL::X509::Name # # See also #to_utf8 for the opposite operation. # - # source://openssl//openssl/x509.rb#286 + # source://openssl//lib/openssl/x509.rb#286 def parse_rfc2253(str, template = T.unsafe(nil)); end end end +# source://openssl//lib/openssl/x509.rb#207 module OpenSSL::X509::Name::RFC2253DN private - # source://openssl//openssl/x509.rb#237 + # source://openssl//lib/openssl/x509.rb#237 def expand_hexstring(str); end - # source://openssl//openssl/x509.rb#225 + # source://openssl//lib/openssl/x509.rb#225 def expand_pair(str); end - # source://openssl//openssl/x509.rb#244 + # source://openssl//lib/openssl/x509.rb#244 def expand_value(str1, str2, str3); end - # source://openssl//openssl/x509.rb#251 + # source://openssl//lib/openssl/x509.rb#251 def scan(dn); end class << self - # source://openssl//openssl/x509.rb#237 + # source://openssl//lib/openssl/x509.rb#237 def expand_hexstring(str); end - # source://openssl//openssl/x509.rb#225 + # source://openssl//lib/openssl/x509.rb#225 def expand_pair(str); end - # source://openssl//openssl/x509.rb#244 + # source://openssl//lib/openssl/x509.rb#244 def expand_value(str1, str2, str3); end - # source://openssl//openssl/x509.rb#251 + # source://openssl//lib/openssl/x509.rb#251 def scan(dn); end end end +# source://openssl//lib/openssl/x509.rb#382 class OpenSSL::X509::Request include ::OpenSSL::Marshal extend ::OpenSSL::Marshal::ClassMethods - # source://openssl//openssl/x509.rb#385 + # source://openssl//lib/openssl/x509.rb#385 def ==(other); end end +# source://openssl//lib/openssl/x509.rb#375 class OpenSSL::X509::Revoked - # source://openssl//openssl/x509.rb#376 + # source://openssl//lib/openssl/x509.rb#376 def ==(other); end end diff --git a/sorbet/rbi/gems/parallel@1.24.0.rbi b/sorbet/rbi/gems/parallel@1.26.3.rbi similarity index 84% rename from sorbet/rbi/gems/parallel@1.24.0.rbi rename to sorbet/rbi/gems/parallel@1.26.3.rbi index ebdb0605..854c4870 100644 --- a/sorbet/rbi/gems/parallel@1.24.0.rbi +++ b/sorbet/rbi/gems/parallel@1.26.3.rbi @@ -25,10 +25,10 @@ module Parallel def each_with_index(array, options = T.unsafe(nil), &block); end # source://parallel//lib/parallel.rb#307 - def filter_map(*args, &block); end + def filter_map(*_arg0, **_arg1, &_arg2); end # source://parallel//lib/parallel.rb#303 - def flat_map(*args, &block); end + def flat_map(*_arg0, **_arg1, &_arg2); end # source://parallel//lib/parallel.rb#228 def in_processes(options = T.unsafe(nil), &block); end @@ -47,70 +47,80 @@ module Parallel # source://parallel//lib/parallel.rb#312 def physical_processor_count; end - # Number of processors seen by the OS, used for process scheduling + # Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup, + # used for process scheduling # - # source://parallel//lib/parallel.rb#345 + # source://parallel//lib/parallel.rb#342 def processor_count; end - # source://parallel//lib/parallel.rb#350 + # source://parallel//lib/parallel.rb#346 def worker_number; end # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed # - # source://parallel//lib/parallel.rb#355 + # source://parallel//lib/parallel.rb#351 def worker_number=(worker_num); end private - # source://parallel//lib/parallel.rb#361 + # source://parallel//lib/parallel.rb#384 def add_progress_bar!(job_factory, options); end - # source://parallel//lib/parallel.rb#624 + # source://parallel//lib/parallel.rb#699 + def available_processor_count; end + + # source://parallel//lib/parallel.rb#647 def call_with_index(item, index, options, &block); end - # source://parallel//lib/parallel.rb#556 + # source://parallel//lib/parallel.rb#579 def create_workers(job_factory, options, &block); end # options is either a Integer or a Hash with :count # - # source://parallel//lib/parallel.rb#614 + # source://parallel//lib/parallel.rb#637 def extract_count_from_options(options); end - # source://parallel//lib/parallel.rb#642 + # source://parallel//lib/parallel.rb#665 def instrument_finish(item, index, result, options); end # yield results in the order of the input items # needs to use `options` to store state between executions # needs to use `done` index since a nil result would also be valid # - # source://parallel//lib/parallel.rb#651 + # source://parallel//lib/parallel.rb#674 def instrument_finish_in_order(item, index, result, options); end - # source://parallel//lib/parallel.rb#671 + # source://parallel//lib/parallel.rb#694 def instrument_start(item, index, options); end - # source://parallel//lib/parallel.rb#590 + # source://parallel//lib/parallel.rb#357 + def physical_processor_count_windows; end + + # source://parallel//lib/parallel.rb#613 def process_incoming_jobs(read, write, job_factory, options, &block); end - # source://parallel//lib/parallel.rb#544 + # source://parallel//lib/parallel.rb#567 def replace_worker(job_factory, workers, index, options, blk); end - # source://parallel//lib/parallel.rb#635 + # source://parallel//lib/parallel.rb#378 + def run(command); end + + # source://parallel//lib/parallel.rb#658 def with_instrumentation(item, index, options); end - # source://parallel//lib/parallel.rb#386 + # source://parallel//lib/parallel.rb#409 def work_direct(job_factory, options, &block); end - # source://parallel//lib/parallel.rb#496 + # source://parallel//lib/parallel.rb#519 def work_in_processes(job_factory, options, &blk); end - # source://parallel//lib/parallel.rb#430 + # source://parallel//lib/parallel.rb#453 def work_in_ractors(job_factory, options); end - # source://parallel//lib/parallel.rb#405 + # source://parallel//lib/parallel.rb#428 def work_in_threads(job_factory, options, &block); end - # source://parallel//lib/parallel.rb#564 + # source://parallel//lib/parallel.rb#587 def worker(job_factory, options, &block); end end end diff --git a/sorbet/rbi/gems/parser@3.3.1.0.rbi b/sorbet/rbi/gems/parser@3.3.4.2.rbi similarity index 100% rename from sorbet/rbi/gems/parser@3.3.1.0.rbi rename to sorbet/rbi/gems/parser@3.3.4.2.rbi diff --git a/sorbet/rbi/gems/popper_js@2.11.8.rbi b/sorbet/rbi/gems/popper_js@2.11.8.rbi deleted file mode 100644 index eab45b00..00000000 --- a/sorbet/rbi/gems/popper_js@2.11.8.rbi +++ /dev/null @@ -1,20 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - end -end - -# source://popper_js//lib/popper_js/version.rb#4 -PopperJs::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/prism@0.29.0.rbi b/sorbet/rbi/gems/prism@0.30.0.rbi similarity index 85% rename from sorbet/rbi/gems/prism@0.29.0.rbi rename to sorbet/rbi/gems/prism@0.30.0.rbi index df5bddcd..9aec9c30 100644 --- a/sorbet/rbi/gems/prism@0.29.0.rbi +++ b/sorbet/rbi/gems/prism@0.30.0.rbi @@ -50,7 +50,7 @@ module Prism # # For supported options, see Prism::parse. # - # source://prism//lib/prism.rb#47 + # source://prism//lib/prism.rb#45 sig { params(source: String, options: T::Hash[Symbol, T.untyped]).returns(Prism::LexCompat::Result) } def lex_compat(source, **options); end @@ -64,7 +64,7 @@ module Prism # returns the same tokens. Raises SyntaxError if the syntax in source is # invalid. # - # source://prism//lib/prism.rb#57 + # source://prism//lib/prism.rb#55 sig { params(source: String).returns(T::Array[T.untyped]) } def lex_ripper(source); end @@ -73,7 +73,7 @@ module Prism # # Load the serialized AST using the source as a reference into a tree. # - # source://prism//lib/prism.rb#65 + # source://prism//lib/prism.rb#63 sig { params(source: String, serialized: String).returns(Prism::ParseResult) } def load(source, serialized); end @@ -121,6 +121,12 @@ module Prism # # @return [Boolean] def parse_success?(*_arg0); end + + # Mirror the Prism.profile API by using the serialization API. + def profile(*_arg0); end + + # Mirror the Prism.profile_file API by using the serialization API. + def profile_file(*_arg0); end end end @@ -168,13 +174,13 @@ end # alias $foo $bar # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#188 +# source://prism//lib/prism/node.rb#176 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#190 + # source://prism//lib/prism/node.rb#178 sig do params( source: Prism::Source, @@ -189,36 +195,36 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#281 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#200 + # source://prism//lib/prism/node.rb#187 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#205 + # source://prism//lib/prism/node.rb#192 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#215 + # source://prism//lib/prism/node.rb#202 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#210 + # source://prism//lib/prism/node.rb#197 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#220 + # source://prism//lib/prism/node.rb#207 sig do params( new_name: Prism::Node, @@ -232,13 +238,13 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#205 + # source://prism//lib/prism/node.rb#192 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#228 + # source://prism//lib/prism/node.rb#215 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -247,13 +253,13 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#260 + # source://prism//lib/prism/node.rb#247 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#255 + # source://prism//lib/prism/node.rb#242 sig { returns(String) } def keyword; end @@ -262,7 +268,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # alias $foo $bar # ^^^^^ # - # source://prism//lib/prism/node.rb#248 + # source://prism//lib/prism/node.rb#235 sig { returns(Prism::Location) } def keyword_loc; end @@ -271,7 +277,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # alias $foo $bar # ^^^^ # - # source://prism//lib/prism/node.rb#236 + # source://prism//lib/prism/node.rb#223 sig { returns(Prism::Node) } def new_name; end @@ -280,7 +286,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # alias $foo $bar # ^^^^ # - # source://prism//lib/prism/node.rb#242 + # source://prism//lib/prism/node.rb#229 sig { returns(Prism::Node) } def old_name; end @@ -299,7 +305,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#278 + # source://prism//lib/prism/node.rb#265 sig { override.returns(Symbol) } def type; end @@ -311,7 +317,7 @@ class Prism::AliasGlobalVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#288 + # source://prism//lib/prism/node.rb#275 def type; end end end @@ -321,13 +327,13 @@ end # alias foo bar # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#306 +# source://prism//lib/prism/node.rb#293 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#308 + # source://prism//lib/prism/node.rb#295 sig do params( source: Prism::Source, @@ -342,36 +348,36 @@ class Prism::AliasMethodNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#389 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#318 + # source://prism//lib/prism/node.rb#304 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#323 + # source://prism//lib/prism/node.rb#309 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#333 + # source://prism//lib/prism/node.rb#319 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#328 + # source://prism//lib/prism/node.rb#314 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#338 + # source://prism//lib/prism/node.rb#324 sig do params( new_name: Prism::Node, @@ -385,13 +391,13 @@ class Prism::AliasMethodNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#323 + # source://prism//lib/prism/node.rb#309 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#346 + # source://prism//lib/prism/node.rb#332 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -400,31 +406,31 @@ class Prism::AliasMethodNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#369 + # source://prism//lib/prism/node.rb#355 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#364 + # source://prism//lib/prism/node.rb#350 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#357 + # source://prism//lib/prism/node.rb#343 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader new_name: Prism::node # - # source://prism//lib/prism/node.rb#351 + # source://prism//lib/prism/node.rb#337 sig { returns(Prism::Node) } def new_name; end # attr_reader old_name: Prism::node # - # source://prism//lib/prism/node.rb#354 + # source://prism//lib/prism/node.rb#340 sig { returns(Prism::Node) } def old_name; end @@ -443,7 +449,7 @@ class Prism::AliasMethodNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#387 + # source://prism//lib/prism/node.rb#373 sig { override.returns(Symbol) } def type; end @@ -455,7 +461,7 @@ class Prism::AliasMethodNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#397 + # source://prism//lib/prism/node.rb#383 def type; end end end @@ -465,13 +471,13 @@ end # foo => bar | baz # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#415 +# source://prism//lib/prism/node.rb#401 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#417 + # source://prism//lib/prism/node.rb#403 sig do params( source: Prism::Source, @@ -486,36 +492,36 @@ class Prism::AlternationPatternNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#497 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#427 + # source://prism//lib/prism/node.rb#412 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#432 + # source://prism//lib/prism/node.rb#417 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#442 + # source://prism//lib/prism/node.rb#427 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#437 + # source://prism//lib/prism/node.rb#422 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#447 + # source://prism//lib/prism/node.rb#432 sig do params( left: Prism::Node, @@ -529,13 +535,13 @@ class Prism::AlternationPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#432 + # source://prism//lib/prism/node.rb#417 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#455 + # source://prism//lib/prism/node.rb#440 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -544,31 +550,31 @@ class Prism::AlternationPatternNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#478 + # source://prism//lib/prism/node.rb#463 sig { override.returns(String) } def inspect; end # attr_reader left: Prism::node # - # source://prism//lib/prism/node.rb#460 + # source://prism//lib/prism/node.rb#445 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#473 + # source://prism//lib/prism/node.rb#458 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#466 + # source://prism//lib/prism/node.rb#451 sig { returns(Prism::Location) } def operator_loc; end # attr_reader right: Prism::node # - # source://prism//lib/prism/node.rb#463 + # source://prism//lib/prism/node.rb#448 sig { returns(Prism::Node) } def right; end @@ -587,7 +593,7 @@ class Prism::AlternationPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#496 + # source://prism//lib/prism/node.rb#481 sig { override.returns(Symbol) } def type; end @@ -599,7 +605,7 @@ class Prism::AlternationPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#506 + # source://prism//lib/prism/node.rb#491 def type; end end end @@ -609,13 +615,13 @@ end # left and right # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#524 +# source://prism//lib/prism/node.rb#509 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#526 + # source://prism//lib/prism/node.rb#511 sig do params( source: Prism::Source, @@ -630,36 +636,36 @@ class Prism::AndNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#620 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#536 + # source://prism//lib/prism/node.rb#520 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#541 + # source://prism//lib/prism/node.rb#525 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#551 + # source://prism//lib/prism/node.rb#535 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#546 + # source://prism//lib/prism/node.rb#530 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#556 + # source://prism//lib/prism/node.rb#540 sig do params( left: Prism::Node, @@ -673,13 +679,13 @@ class Prism::AndNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#541 + # source://prism//lib/prism/node.rb#525 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#564 + # source://prism//lib/prism/node.rb#548 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -688,7 +694,7 @@ class Prism::AndNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#602 + # source://prism//lib/prism/node.rb#586 sig { override.returns(String) } def inspect; end @@ -700,13 +706,13 @@ class Prism::AndNode < ::Prism::Node # 1 && 2 # ^ # - # source://prism//lib/prism/node.rb#575 + # source://prism//lib/prism/node.rb#559 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#597 + # source://prism//lib/prism/node.rb#581 sig { returns(String) } def operator; end @@ -715,7 +721,7 @@ class Prism::AndNode < ::Prism::Node # left and right # ^^^ # - # source://prism//lib/prism/node.rb#590 + # source://prism//lib/prism/node.rb#574 sig { returns(Prism::Location) } def operator_loc; end @@ -727,7 +733,7 @@ class Prism::AndNode < ::Prism::Node # 1 and 2 # ^ # - # source://prism//lib/prism/node.rb#584 + # source://prism//lib/prism/node.rb#568 sig { returns(Prism::Node) } def right; end @@ -746,7 +752,7 @@ class Prism::AndNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#620 + # source://prism//lib/prism/node.rb#604 sig { override.returns(Symbol) } def type; end @@ -758,7 +764,7 @@ class Prism::AndNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#630 + # source://prism//lib/prism/node.rb#614 def type; end end end @@ -768,13 +774,13 @@ end # return foo, bar, baz # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#648 +# source://prism//lib/prism/node.rb#632 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#650 + # source://prism//lib/prism/node.rb#634 sig do params( source: Prism::Source, @@ -788,36 +794,36 @@ class Prism::ArgumentsNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#726 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#659 + # source://prism//lib/prism/node.rb#642 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#696 + # source://prism//lib/prism/node.rb#679 sig { returns(T::Array[Prism::Node]) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#664 + # source://prism//lib/prism/node.rb#647 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#674 + # source://prism//lib/prism/node.rb#657 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#669 + # source://prism//lib/prism/node.rb#652 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -825,7 +831,7 @@ class Prism::ArgumentsNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#704 + # source://prism//lib/prism/node.rb#687 sig { returns(T::Boolean) } def contains_keyword_splat?; end @@ -833,13 +839,13 @@ class Prism::ArgumentsNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#699 + # source://prism//lib/prism/node.rb#682 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#679 + # source://prism//lib/prism/node.rb#662 sig do params( flags: Integer, @@ -852,13 +858,13 @@ class Prism::ArgumentsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#664 + # source://prism//lib/prism/node.rb#647 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#687 + # source://prism//lib/prism/node.rb#670 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -867,7 +873,7 @@ class Prism::ArgumentsNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#709 + # source://prism//lib/prism/node.rb#692 sig { override.returns(String) } def inspect; end @@ -886,7 +892,7 @@ class Prism::ArgumentsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#727 + # source://prism//lib/prism/node.rb#710 sig { override.returns(Symbol) } def type; end @@ -894,7 +900,7 @@ class Prism::ArgumentsNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#692 + # source://prism//lib/prism/node.rb#675 sig { returns(Integer) } def flags; end @@ -906,24 +912,24 @@ class Prism::ArgumentsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#737 + # source://prism//lib/prism/node.rb#720 def type; end end end # Flags for arguments nodes. # -# source://prism//lib/prism/node.rb#19202 +# source://prism//lib/prism/node.rb#19127 module Prism::ArgumentsNodeFlags; end # if arguments contain keywords # -# source://prism//lib/prism/node.rb#19204 +# source://prism//lib/prism/node.rb#19129 Prism::ArgumentsNodeFlags::CONTAINS_KEYWORDS = T.let(T.unsafe(nil), Integer) # if arguments contain keyword splat # -# source://prism//lib/prism/node.rb#19207 +# source://prism//lib/prism/node.rb#19132 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. @@ -931,13 +937,13 @@ Prism::ArgumentsNodeFlags::CONTAINS_KEYWORD_SPLAT = T.let(T.unsafe(nil), Integer # [1, 2, 3] # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#755 +# source://prism//lib/prism/node.rb#738 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#757 + # source://prism//lib/prism/node.rb#740 sig do params( source: Prism::Source, @@ -953,24 +959,24 @@ class Prism::ArrayNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#875 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#768 + # source://prism//lib/prism/node.rb#750 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#773 + # source://prism//lib/prism/node.rb#755 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#854 + # source://prism//lib/prism/node.rb#836 sig { returns(T.nilable(String)) } def closing; end @@ -981,19 +987,19 @@ class Prism::ArrayNode < ::Prism::Node # %I(apple orange banana) # ")" # foo = 1, 2, 3 # nil # - # source://prism//lib/prism/node.rb#831 + # source://prism//lib/prism/node.rb#813 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#783 + # source://prism//lib/prism/node.rb#765 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#778 + # source://prism//lib/prism/node.rb#760 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -1001,13 +1007,13 @@ class Prism::ArrayNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#844 + # source://prism//lib/prism/node.rb#826 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#788 + # source://prism//lib/prism/node.rb#770 sig do params( flags: Integer, @@ -1022,19 +1028,19 @@ class Prism::ArrayNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#773 + # source://prism//lib/prism/node.rb#755 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#796 + # source://prism//lib/prism/node.rb#778 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end # 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#805 + # source://prism//lib/prism/node.rb#787 sig { returns(T::Array[Prism::Node]) } def elements; end @@ -1043,13 +1049,13 @@ class Prism::ArrayNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#859 + # source://prism//lib/prism/node.rb#841 sig { override.returns(String) } def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#849 + # source://prism//lib/prism/node.rb#831 sig { returns(T.nilable(String)) } def opening; end @@ -1060,7 +1066,7 @@ class Prism::ArrayNode < ::Prism::Node # %I(apple orange banana) # "%I(" # foo = 1, 2, 3 # nil # - # source://prism//lib/prism/node.rb#813 + # source://prism//lib/prism/node.rb#795 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -1079,7 +1085,7 @@ class Prism::ArrayNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#877 + # source://prism//lib/prism/node.rb#859 sig { override.returns(Symbol) } def type; end @@ -1087,7 +1093,7 @@ class Prism::ArrayNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#801 + # source://prism//lib/prism/node.rb#783 sig { returns(Integer) } def flags; end @@ -1099,19 +1105,19 @@ class Prism::ArrayNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#887 + # source://prism//lib/prism/node.rb#869 def type; end end end # Flags for array nodes. # -# source://prism//lib/prism/node.rb#19211 +# source://prism//lib/prism/node.rb#19136 module Prism::ArrayNodeFlags; end # if array contains splat nodes # -# source://prism//lib/prism/node.rb#19213 +# source://prism//lib/prism/node.rb#19138 Prism::ArrayNodeFlags::CONTAINS_SPLAT = T.let(T.unsafe(nil), Integer) # Represents an array pattern in pattern matching. @@ -1131,13 +1137,13 @@ Prism::ArrayNodeFlags::CONTAINS_SPLAT = T.let(T.unsafe(nil), Integer) # foo in Bar[1, 2, 3] # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#919 +# source://prism//lib/prism/node.rb#901 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#921 + # source://prism//lib/prism/node.rb#903 sig do params( source: Prism::Source, @@ -1155,54 +1161,54 @@ class Prism::ArrayPatternNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#1035 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#934 + # source://prism//lib/prism/node.rb#915 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#939 + # source://prism//lib/prism/node.rb#920 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#1015 + # source://prism//lib/prism/node.rb#996 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#997 + # source://prism//lib/prism/node.rb#978 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#954 + # source://prism//lib/prism/node.rb#935 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#944 + # source://prism//lib/prism/node.rb#925 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant: Prism::node? # - # source://prism//lib/prism/node.rb#972 + # source://prism//lib/prism/node.rb#953 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#959 + # source://prism//lib/prism/node.rb#940 sig do params( constant: T.nilable(Prism::Node), @@ -1219,13 +1225,13 @@ class Prism::ArrayPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#939 + # source://prism//lib/prism/node.rb#920 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#967 + # source://prism//lib/prism/node.rb#948 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -1234,37 +1240,37 @@ class Prism::ArrayPatternNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1020 + # source://prism//lib/prism/node.rb#1001 sig { override.returns(String) } def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#1010 + # source://prism//lib/prism/node.rb#991 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#984 + # source://prism//lib/prism/node.rb#965 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader posts: Array[Prism::node] # - # source://prism//lib/prism/node.rb#981 + # source://prism//lib/prism/node.rb#962 sig { returns(T::Array[Prism::Node]) } def posts; end # attr_reader requireds: Array[Prism::node] # - # source://prism//lib/prism/node.rb#975 + # source://prism//lib/prism/node.rb#956 sig { returns(T::Array[Prism::Node]) } def requireds; end # attr_reader rest: Prism::node? # - # source://prism//lib/prism/node.rb#978 + # source://prism//lib/prism/node.rb#959 sig { returns(T.nilable(Prism::Node)) } def rest; end @@ -1283,7 +1289,7 @@ class Prism::ArrayPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1038 + # source://prism//lib/prism/node.rb#1019 sig { override.returns(Symbol) } def type; end @@ -1295,7 +1301,7 @@ class Prism::ArrayPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1048 + # source://prism//lib/prism/node.rb#1029 def type; end end end @@ -1305,13 +1311,13 @@ end # { a => b } # ^^^^^^ # -# source://prism//lib/prism/node.rb#1071 +# source://prism//lib/prism/node.rb#1052 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#1073 + # source://prism//lib/prism/node.rb#1054 sig do params( source: Prism::Source, @@ -1326,36 +1332,36 @@ class Prism::AssocNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#1172 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1083 + # source://prism//lib/prism/node.rb#1063 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#1088 + # source://prism//lib/prism/node.rb#1068 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#1098 + # source://prism//lib/prism/node.rb#1078 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#1093 + # source://prism//lib/prism/node.rb#1073 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#1103 + # source://prism//lib/prism/node.rb#1083 sig do params( key: Prism::Node, @@ -1369,13 +1375,13 @@ class Prism::AssocNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1088 + # source://prism//lib/prism/node.rb#1068 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#1111 + # source://prism//lib/prism/node.rb#1091 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -1384,7 +1390,7 @@ class Prism::AssocNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1158 + # source://prism//lib/prism/node.rb#1138 sig { override.returns(String) } def inspect; end @@ -1399,13 +1405,13 @@ class Prism::AssocNode < ::Prism::Node # { def a; end => 1 } # ^^^^^^^^^^ # - # source://prism//lib/prism/node.rb#1125 + # source://prism//lib/prism/node.rb#1105 sig { returns(Prism::Node) } def key; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#1153 + # source://prism//lib/prism/node.rb#1133 sig { returns(T.nilable(String)) } def operator; end @@ -1414,7 +1420,7 @@ class Prism::AssocNode < ::Prism::Node # { foo => bar } # ^^ # - # source://prism//lib/prism/node.rb#1140 + # source://prism//lib/prism/node.rb#1120 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end @@ -1433,7 +1439,7 @@ class Prism::AssocNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1176 + # source://prism//lib/prism/node.rb#1156 sig { override.returns(Symbol) } def type; end @@ -1445,7 +1451,7 @@ class Prism::AssocNode < ::Prism::Node # { x: 1 } # ^ # - # source://prism//lib/prism/node.rb#1134 + # source://prism//lib/prism/node.rb#1114 sig { returns(Prism::Node) } def value; end @@ -1457,7 +1463,7 @@ class Prism::AssocNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1186 + # source://prism//lib/prism/node.rb#1166 def type; end end end @@ -1467,13 +1473,13 @@ end # { **foo } # ^^^^^ # -# source://prism//lib/prism/node.rb#1204 +# source://prism//lib/prism/node.rb#1184 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#1206 + # source://prism//lib/prism/node.rb#1186 sig do params( source: Prism::Source, @@ -1487,36 +1493,36 @@ class Prism::AssocSplatNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#1284 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1215 + # source://prism//lib/prism/node.rb#1194 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#1220 + # source://prism//lib/prism/node.rb#1199 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#1232 + # source://prism//lib/prism/node.rb#1211 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#1225 + # source://prism//lib/prism/node.rb#1204 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#1237 + # source://prism//lib/prism/node.rb#1216 sig do params( value: T.nilable(Prism::Node), @@ -1529,13 +1535,13 @@ class Prism::AssocSplatNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1220 + # source://prism//lib/prism/node.rb#1199 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#1245 + # source://prism//lib/prism/node.rb#1224 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -1544,13 +1550,13 @@ class Prism::AssocSplatNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1271 + # source://prism//lib/prism/node.rb#1250 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1266 + # source://prism//lib/prism/node.rb#1245 sig { returns(String) } def operator; end @@ -1559,7 +1565,7 @@ class Prism::AssocSplatNode < ::Prism::Node # { **x } # ^^ # - # source://prism//lib/prism/node.rb#1259 + # source://prism//lib/prism/node.rb#1238 sig { returns(Prism::Location) } def operator_loc; end @@ -1578,7 +1584,7 @@ class Prism::AssocSplatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1289 + # source://prism//lib/prism/node.rb#1268 sig { override.returns(Symbol) } def type; end @@ -1587,7 +1593,7 @@ class Prism::AssocSplatNode < ::Prism::Node # { **foo } # ^^^ # - # source://prism//lib/prism/node.rb#1253 + # source://prism//lib/prism/node.rb#1232 sig { returns(T.nilable(Prism::Node)) } def value; end @@ -1599,14 +1605,14 @@ class Prism::AssocSplatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1299 + # source://prism//lib/prism/node.rb#1278 def type; end end end # The FFI backend is used on other Ruby implementations. # -# source://prism//lib/prism.rb#85 +# source://prism//lib/prism.rb#81 Prism::BACKEND = T.let(T.unsafe(nil), Symbol) # Represents reading a reference to a field in the previous match. @@ -1614,62 +1620,62 @@ Prism::BACKEND = T.let(T.unsafe(nil), Symbol) # $' # ^^ # -# source://prism//lib/prism/node.rb#1316 +# source://prism//lib/prism/node.rb#1295 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#1318 + # source://prism//lib/prism/node.rb#1297 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 + # source://prism//lib/prism/node.rb#1378 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1326 + # source://prism//lib/prism/node.rb#1304 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#1331 + # source://prism//lib/prism/node.rb#1309 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#1341 + # source://prism//lib/prism/node.rb#1319 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#1336 + # source://prism//lib/prism/node.rb#1314 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#1346 + # source://prism//lib/prism/node.rb#1324 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#1331 + # source://prism//lib/prism/node.rb#1309 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#1354 + # source://prism//lib/prism/node.rb#1332 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -1678,7 +1684,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1366 + # source://prism//lib/prism/node.rb#1344 sig { override.returns(String) } def inspect; end @@ -1688,7 +1694,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # $+ # name `:$+` # - # source://prism//lib/prism/node.rb#1363 + # source://prism//lib/prism/node.rb#1341 sig { returns(Symbol) } def name; end @@ -1707,7 +1713,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1384 + # source://prism//lib/prism/node.rb#1362 sig { override.returns(Symbol) } def type; end @@ -1719,7 +1725,7 @@ class Prism::BackReferenceReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1394 + # source://prism//lib/prism/node.rb#1372 def type; end end end @@ -1758,13 +1764,13 @@ end # end # ^^^^^ # -# source://prism//lib/prism/node.rb#1412 +# source://prism//lib/prism/node.rb#1390 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#1414 + # source://prism//lib/prism/node.rb#1392 sig do params( source: Prism::Source, @@ -1782,48 +1788,48 @@ class Prism::BeginNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#1524 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1427 + # source://prism//lib/prism/node.rb#1404 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def begin_keyword: () -> String? # - # source://prism//lib/prism/node.rb#1507 + # source://prism//lib/prism/node.rb#1480 sig { returns(T.nilable(String)) } def begin_keyword; end # attr_reader begin_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#1469 + # source://prism//lib/prism/node.rb#1442 sig { returns(T.nilable(Prism::Location)) } def begin_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1436 + # source://prism//lib/prism/node.rb#1409 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#1451 + # source://prism//lib/prism/node.rb#1424 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#1441 + # source://prism//lib/prism/node.rb#1414 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#1456 + # source://prism//lib/prism/node.rb#1429 sig do params( begin_keyword_loc: T.nilable(Prism::Location), @@ -1840,37 +1846,37 @@ class Prism::BeginNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1436 + # source://prism//lib/prism/node.rb#1409 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#1464 + # source://prism//lib/prism/node.rb#1437 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#1488 + # source://prism//lib/prism/node.rb#1461 sig { returns(T.nilable(Prism::ElseNode)) } def else_clause; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#1512 + # source://prism//lib/prism/node.rb#1485 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#1494 + # source://prism//lib/prism/node.rb#1467 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end # attr_reader ensure_clause: EnsureNode? # - # source://prism//lib/prism/node.rb#1491 + # source://prism//lib/prism/node.rb#1464 sig { returns(T.nilable(Prism::EnsureNode)) } def ensure_clause; end @@ -1879,22 +1885,22 @@ class Prism::BeginNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1517 + # source://prism//lib/prism/node.rb#1490 sig { override.returns(String) } def inspect; end + # source://prism//lib/prism/parse_result/newlines.rb#79 + def newline!(lines); end + # attr_reader rescue_clause: RescueNode? # - # source://prism//lib/prism/node.rb#1485 + # source://prism//lib/prism/node.rb#1458 sig { returns(T.nilable(Prism::RescueNode)) } def rescue_clause; end - # source://prism//lib/prism/node.rb#1431 - def set_newline_flag(newline_marked); end - # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#1482 + # source://prism//lib/prism/node.rb#1455 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -1913,7 +1919,7 @@ class Prism::BeginNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1535 + # source://prism//lib/prism/node.rb#1508 sig { override.returns(Symbol) } def type; end @@ -1925,7 +1931,7 @@ class Prism::BeginNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1545 + # source://prism//lib/prism/node.rb#1518 def type; end end end @@ -1935,13 +1941,13 @@ end # bar(&args) # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1566 +# source://prism//lib/prism/node.rb#1539 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#1568 + # source://prism//lib/prism/node.rb#1541 sig do params( source: Prism::Source, @@ -1955,36 +1961,36 @@ class Prism::BlockArgumentNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#1633 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1577 + # source://prism//lib/prism/node.rb#1549 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#1582 + # source://prism//lib/prism/node.rb#1554 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#1594 + # source://prism//lib/prism/node.rb#1566 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#1587 + # source://prism//lib/prism/node.rb#1559 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#1599 + # source://prism//lib/prism/node.rb#1571 sig do params( expression: T.nilable(Prism::Node), @@ -1997,19 +2003,19 @@ class Prism::BlockArgumentNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1582 + # source://prism//lib/prism/node.rb#1554 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#1607 + # source://prism//lib/prism/node.rb#1579 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#1612 + # source://prism//lib/prism/node.rb#1584 sig { returns(T.nilable(Prism::Node)) } def expression; end @@ -2018,19 +2024,19 @@ class Prism::BlockArgumentNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1627 + # source://prism//lib/prism/node.rb#1599 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1622 + # source://prism//lib/prism/node.rb#1594 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#1615 + # source://prism//lib/prism/node.rb#1587 sig { returns(Prism::Location) } def operator_loc; end @@ -2049,7 +2055,7 @@ class Prism::BlockArgumentNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1645 + # source://prism//lib/prism/node.rb#1617 sig { override.returns(Symbol) } def type; end @@ -2061,7 +2067,7 @@ class Prism::BlockArgumentNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1655 + # source://prism//lib/prism/node.rb#1627 def type; end end end @@ -2071,62 +2077,62 @@ end # a { |; b| } # ^ # -# source://prism//lib/prism/node.rb#1672 +# source://prism//lib/prism/node.rb#1644 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#1674 + # source://prism//lib/prism/node.rb#1646 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 + # source://prism//lib/prism/node.rb#1733 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1683 + # source://prism//lib/prism/node.rb#1654 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#1688 + # source://prism//lib/prism/node.rb#1659 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#1698 + # source://prism//lib/prism/node.rb#1669 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#1693 + # source://prism//lib/prism/node.rb#1664 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#1703 + # source://prism//lib/prism/node.rb#1674 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#1688 + # source://prism//lib/prism/node.rb#1659 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#1711 + # source://prism//lib/prism/node.rb#1682 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -2135,13 +2141,13 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1728 + # source://prism//lib/prism/node.rb#1699 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#1720 + # source://prism//lib/prism/node.rb#1691 sig { returns(Symbol) } def name; end @@ -2149,7 +2155,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#1723 + # source://prism//lib/prism/node.rb#1694 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -2168,7 +2174,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1746 + # source://prism//lib/prism/node.rb#1717 sig { override.returns(Symbol) } def type; end @@ -2176,7 +2182,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#1716 + # source://prism//lib/prism/node.rb#1687 sig { returns(Integer) } def flags; end @@ -2188,7 +2194,7 @@ class Prism::BlockLocalVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1756 + # source://prism//lib/prism/node.rb#1727 def type; end end end @@ -2198,13 +2204,13 @@ end # [1, 2, 3].each { |i| puts x } # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#1773 +# source://prism//lib/prism/node.rb#1744 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#1775 + # source://prism//lib/prism/node.rb#1746 sig do params( source: Prism::Source, @@ -2221,54 +2227,54 @@ class Prism::BlockNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#1860 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1787 + # source://prism//lib/prism/node.rb#1757 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#1829 + # source://prism//lib/prism/node.rb#1799 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1792 + # source://prism//lib/prism/node.rb#1762 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#1851 + # source://prism//lib/prism/node.rb#1821 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#1839 + # source://prism//lib/prism/node.rb#1809 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#1805 + # source://prism//lib/prism/node.rb#1775 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#1797 + # source://prism//lib/prism/node.rb#1767 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#1810 + # source://prism//lib/prism/node.rb#1780 sig do params( locals: T::Array[Symbol], @@ -2284,13 +2290,13 @@ class Prism::BlockNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1792 + # source://prism//lib/prism/node.rb#1762 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#1818 + # source://prism//lib/prism/node.rb#1788 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -2299,31 +2305,31 @@ class Prism::BlockNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1856 + # source://prism//lib/prism/node.rb#1826 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#1823 + # source://prism//lib/prism/node.rb#1793 sig { returns(T::Array[Symbol]) } def locals; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#1846 + # source://prism//lib/prism/node.rb#1816 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#1832 + # source://prism//lib/prism/node.rb#1802 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parameters: Prism::node? # - # source://prism//lib/prism/node.rb#1826 + # source://prism//lib/prism/node.rb#1796 sig { returns(T.nilable(Prism::Node)) } def parameters; end @@ -2342,7 +2348,7 @@ class Prism::BlockNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#1874 + # source://prism//lib/prism/node.rb#1844 sig { override.returns(Symbol) } def type; end @@ -2354,7 +2360,7 @@ class Prism::BlockNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#1884 + # source://prism//lib/prism/node.rb#1854 def type; end end end @@ -2365,13 +2371,13 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#1906 +# source://prism//lib/prism/node.rb#1876 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#1908 + # source://prism//lib/prism/node.rb#1878 sig do params( source: Prism::Source, @@ -2387,36 +2393,36 @@ class Prism::BlockParameterNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#1992 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#1919 + # source://prism//lib/prism/node.rb#1888 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#1924 + # source://prism//lib/prism/node.rb#1893 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#1934 + # source://prism//lib/prism/node.rb#1903 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#1929 + # source://prism//lib/prism/node.rb#1898 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#1939 + # source://prism//lib/prism/node.rb#1908 sig do params( flags: Integer, @@ -2431,13 +2437,13 @@ class Prism::BlockParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#1924 + # source://prism//lib/prism/node.rb#1893 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#1947 + # source://prism//lib/prism/node.rb#1916 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -2446,31 +2452,31 @@ class Prism::BlockParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#1989 + # source://prism//lib/prism/node.rb#1958 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#1956 + # source://prism//lib/prism/node.rb#1925 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#1959 + # source://prism//lib/prism/node.rb#1928 sig { returns(T.nilable(Prism::Location)) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#1984 + # source://prism//lib/prism/node.rb#1953 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#1972 + # source://prism//lib/prism/node.rb#1941 sig { returns(Prism::Location) } def operator_loc; end @@ -2478,7 +2484,7 @@ class Prism::BlockParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#1979 + # source://prism//lib/prism/node.rb#1948 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -2497,7 +2503,7 @@ class Prism::BlockParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2007 + # source://prism//lib/prism/node.rb#1976 sig { override.returns(Symbol) } def type; end @@ -2505,7 +2511,7 @@ class Prism::BlockParameterNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#1952 + # source://prism//lib/prism/node.rb#1921 sig { returns(Integer) } def flags; end @@ -2517,7 +2523,7 @@ class Prism::BlockParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2017 + # source://prism//lib/prism/node.rb#1986 def type; end end end @@ -2531,13 +2537,13 @@ end # ^^^^^^^^^^^^^^^^^ # end # -# source://prism//lib/prism/node.rb#2040 +# source://prism//lib/prism/node.rb#2009 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#2042 + # source://prism//lib/prism/node.rb#2011 sig do params( source: Prism::Source, @@ -2553,48 +2559,48 @@ class Prism::BlockParametersNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#2133 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2053 + # source://prism//lib/prism/node.rb#2021 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#2058 + # source://prism//lib/prism/node.rb#2026 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#2126 + # source://prism//lib/prism/node.rb#2094 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#2108 + # source://prism//lib/prism/node.rb#2076 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2071 + # source://prism//lib/prism/node.rb#2039 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#2063 + # source://prism//lib/prism/node.rb#2031 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#2076 + # source://prism//lib/prism/node.rb#2044 sig do params( parameters: T.nilable(Prism::ParametersNode), @@ -2609,13 +2615,13 @@ class Prism::BlockParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2058 + # source://prism//lib/prism/node.rb#2026 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#2084 + # source://prism//lib/prism/node.rb#2052 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -2624,31 +2630,31 @@ class Prism::BlockParametersNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#2131 + # source://prism//lib/prism/node.rb#2099 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[BlockLocalVariableNode] # - # source://prism//lib/prism/node.rb#2092 + # source://prism//lib/prism/node.rb#2060 sig { returns(T::Array[Prism::BlockLocalVariableNode]) } def locals; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#2121 + # source://prism//lib/prism/node.rb#2089 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#2095 + # source://prism//lib/prism/node.rb#2063 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parameters: ParametersNode? # - # source://prism//lib/prism/node.rb#2089 + # source://prism//lib/prism/node.rb#2057 sig { returns(T.nilable(Prism::ParametersNode)) } def parameters; end @@ -2667,7 +2673,7 @@ class Prism::BlockParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2149 + # source://prism//lib/prism/node.rb#2117 sig { override.returns(Symbol) } def type; end @@ -2679,7 +2685,7 @@ class Prism::BlockParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2159 + # source://prism//lib/prism/node.rb#2127 def type; end end end @@ -2689,13 +2695,13 @@ end # break foo # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2179 +# source://prism//lib/prism/node.rb#2147 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#2181 + # source://prism//lib/prism/node.rb#2149 sig do params( source: Prism::Source, @@ -2709,12 +2715,12 @@ class Prism::BreakNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#2247 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2190 + # source://prism//lib/prism/node.rb#2157 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -2723,31 +2729,31 @@ class Prism::BreakNode < ::Prism::Node # break foo # ^^^ # - # source://prism//lib/prism/node.rb#2228 + # source://prism//lib/prism/node.rb#2195 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2195 + # source://prism//lib/prism/node.rb#2162 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#2207 + # source://prism//lib/prism/node.rb#2174 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#2200 + # source://prism//lib/prism/node.rb#2167 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#2212 + # source://prism//lib/prism/node.rb#2179 sig do params( arguments: T.nilable(Prism::ArgumentsNode), @@ -2760,13 +2766,13 @@ class Prism::BreakNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2195 + # source://prism//lib/prism/node.rb#2162 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#2220 + # source://prism//lib/prism/node.rb#2187 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -2775,13 +2781,13 @@ class Prism::BreakNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#2246 + # source://prism//lib/prism/node.rb#2213 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#2241 + # source://prism//lib/prism/node.rb#2208 sig { returns(String) } def keyword; end @@ -2790,7 +2796,7 @@ class Prism::BreakNode < ::Prism::Node # break foo # ^^^^^ # - # source://prism//lib/prism/node.rb#2234 + # source://prism//lib/prism/node.rb#2201 sig { returns(Prism::Location) } def keyword_loc; end @@ -2809,7 +2815,7 @@ class Prism::BreakNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2264 + # source://prism//lib/prism/node.rb#2231 sig { override.returns(Symbol) } def type; end @@ -2821,7 +2827,7 @@ class Prism::BreakNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2274 + # source://prism//lib/prism/node.rb#2241 def type; end end end @@ -2831,13 +2837,13 @@ end # foo.bar &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2291 +# source://prism//lib/prism/node.rb#2258 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#2293 + # source://prism//lib/prism/node.rb#2260 sig do params( source: Prism::Source, @@ -2857,12 +2863,12 @@ class Prism::CallAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#2428 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2308 + # source://prism//lib/prism/node.rb#2274 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -2870,43 +2876,43 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2403 + # source://prism//lib/prism/node.rb#2369 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2413 + # source://prism//lib/prism/node.rb#2379 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2351 + # source://prism//lib/prism/node.rb#2317 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2313 + # source://prism//lib/prism/node.rb#2279 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#2326 + # source://prism//lib/prism/node.rb#2292 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#2318 + # source://prism//lib/prism/node.rb#2284 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#2331 + # source://prism//lib/prism/node.rb#2297 sig do params( flags: Integer, @@ -2925,13 +2931,13 @@ class Prism::CallAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2313 + # source://prism//lib/prism/node.rb#2279 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#2339 + # source://prism//lib/prism/node.rb#2305 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -2942,49 +2948,49 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2408 + # source://prism//lib/prism/node.rb#2374 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#2428 + # source://prism//lib/prism/node.rb#2394 sig { override.returns(String) } def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2418 + # source://prism//lib/prism/node.rb#2384 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2364 + # source://prism//lib/prism/node.rb#2330 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#2423 + # source://prism//lib/prism/node.rb#2389 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#2383 + # source://prism//lib/prism/node.rb#2349 sig { returns(Prism::Location) } def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2377 + # source://prism//lib/prism/node.rb#2343 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#2348 + # source://prism//lib/prism/node.rb#2314 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -2992,7 +2998,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2393 + # source://prism//lib/prism/node.rb#2359 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3011,13 +3017,13 @@ class Prism::CallAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2446 + # source://prism//lib/prism/node.rb#2412 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#2390 + # source://prism//lib/prism/node.rb#2356 sig { returns(Prism::Node) } def value; end @@ -3025,13 +3031,13 @@ class Prism::CallAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2398 + # source://prism//lib/prism/node.rb#2364 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2380 + # source://prism//lib/prism/node.rb#2346 sig { returns(Symbol) } def write_name; end @@ -3039,7 +3045,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2344 + # source://prism//lib/prism/node.rb#2310 sig { returns(Integer) } def flags; end @@ -3051,7 +3057,7 @@ class Prism::CallAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2456 + # source://prism//lib/prism/node.rb#2422 def type; end end end @@ -3076,13 +3082,13 @@ end # foo&.bar # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#2494 +# source://prism//lib/prism/node.rb#2460 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#2496 + # source://prism//lib/prism/node.rb#2462 sig do params( source: Prism::Source, @@ -3103,18 +3109,18 @@ class Prism::CallNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#2665 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2512 + # source://prism//lib/prism/node.rb#2477 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#2607 + # source://prism//lib/prism/node.rb#2572 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -3122,61 +3128,61 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2636 + # source://prism//lib/prism/node.rb#2601 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#2623 + # source://prism//lib/prism/node.rb#2588 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2646 + # source://prism//lib/prism/node.rb#2611 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2565 + # source://prism//lib/prism/node.rb#2530 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2517 + # source://prism//lib/prism/node.rb#2482 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#2661 + # source://prism//lib/prism/node.rb#2626 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#2610 + # source://prism//lib/prism/node.rb#2575 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#2531 + # source://prism//lib/prism/node.rb#2496 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#2522 + # source://prism//lib/prism/node.rb#2487 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#2536 + # source://prism//lib/prism/node.rb#2501 sig do params( flags: Integer, @@ -3196,13 +3202,13 @@ class Prism::CallNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2517 + # source://prism//lib/prism/node.rb#2482 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#2544 + # source://prism//lib/prism/node.rb#2509 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -3219,7 +3225,7 @@ class Prism::CallNode < ::Prism::Node # 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 + # source://prism//lib/prism/node_ext.rb#315 sig { returns(T.nilable(Prism::Location)) } def full_message_loc; end @@ -3227,43 +3233,43 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2641 + # source://prism//lib/prism/node.rb#2606 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#2666 + # source://prism//lib/prism/node.rb#2631 sig { override.returns(String) } def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2651 + # source://prism//lib/prism/node.rb#2616 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2581 + # source://prism//lib/prism/node.rb#2546 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#2578 + # source://prism//lib/prism/node.rb#2543 sig { returns(Symbol) } def name; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#2656 + # source://prism//lib/prism/node.rb#2621 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#2594 + # source://prism//lib/prism/node.rb#2559 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -3278,7 +3284,7 @@ class Prism::CallNode < ::Prism::Node # foo + bar # ^^^ # - # source://prism//lib/prism/node.rb#2562 + # source://prism//lib/prism/node.rb#2527 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -3286,7 +3292,7 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2626 + # source://prism//lib/prism/node.rb#2591 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3305,7 +3311,7 @@ class Prism::CallNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2684 + # source://prism//lib/prism/node.rb#2649 sig { override.returns(Symbol) } def type; end @@ -3313,7 +3319,7 @@ class Prism::CallNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2631 + # source://prism//lib/prism/node.rb#2596 sig { returns(T::Boolean) } def variable_call?; end @@ -3321,7 +3327,7 @@ class Prism::CallNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2549 + # source://prism//lib/prism/node.rb#2514 sig { returns(Integer) } def flags; end @@ -3333,34 +3339,34 @@ class Prism::CallNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2694 + # source://prism//lib/prism/node.rb#2659 def type; end end end # Flags for call nodes. # -# source://prism//lib/prism/node.rb#19217 +# source://prism//lib/prism/node.rb#19142 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#19225 +# source://prism//lib/prism/node.rb#19150 Prism::CallNodeFlags::ATTRIBUTE_WRITE = T.let(T.unsafe(nil), Integer) # a call that ignores method visibility # -# source://prism//lib/prism/node.rb#19228 +# source://prism//lib/prism/node.rb#19153 Prism::CallNodeFlags::IGNORE_VISIBILITY = T.let(T.unsafe(nil), Integer) # &. operator # -# source://prism//lib/prism/node.rb#19219 +# source://prism//lib/prism/node.rb#19144 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#19222 +# source://prism//lib/prism/node.rb#19147 Prism::CallNodeFlags::VARIABLE_CALL = T.let(T.unsafe(nil), Integer) # Represents the use of an assignment operator on a call. @@ -3368,13 +3374,13 @@ Prism::CallNodeFlags::VARIABLE_CALL = T.let(T.unsafe(nil), Integer) # foo.bar += baz # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2718 +# source://prism//lib/prism/node.rb#2683 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 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#2720 + # source://prism//lib/prism/node.rb#2685 sig do params( source: Prism::Source, @@ -3395,12 +3401,12 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#2852 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2736 + # source://prism//lib/prism/node.rb#2700 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -3408,55 +3414,55 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2834 + # source://prism//lib/prism/node.rb#2798 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader binary_operator: Symbol # - # source://prism//lib/prism/node.rb#2811 + # source://prism//lib/prism/node.rb#2775 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#2814 + # source://prism//lib/prism/node.rb#2778 sig { returns(Prism::Location) } def binary_operator_loc; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#2844 + # source://prism//lib/prism/node.rb#2808 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2779 + # source://prism//lib/prism/node.rb#2743 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2741 + # source://prism//lib/prism/node.rb#2705 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#2754 + # source://prism//lib/prism/node.rb#2718 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#2746 + # source://prism//lib/prism/node.rb#2710 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, ?binary_operator: Symbol, ?binary_operator_loc: Location, ?value: Prism::node, ?location: Location) -> CallOperatorWriteNode # - # source://prism//lib/prism/node.rb#2759 + # source://prism//lib/prism/node.rb#2723 sig do params( flags: Integer, @@ -3476,13 +3482,13 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2741 + # source://prism//lib/prism/node.rb#2705 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, binary_operator: Symbol, binary_operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#2767 + # source://prism//lib/prism/node.rb#2731 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -3493,49 +3499,49 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2839 + # source://prism//lib/prism/node.rb#2803 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#2854 + # source://prism//lib/prism/node.rb#2818 sig { override.returns(String) } def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#2849 + # source://prism//lib/prism/node.rb#2813 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2792 + # source://prism//lib/prism/node.rb#2756 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#307 + # source://prism//lib/prism/node_ext.rb#323 def operator; end # 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_ext.rb#314 + # source://prism//lib/prism/node_ext.rb#330 def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2805 + # source://prism//lib/prism/node.rb#2769 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#2776 + # source://prism//lib/prism/node.rb#2740 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -3543,7 +3549,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2824 + # source://prism//lib/prism/node.rb#2788 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3562,13 +3568,13 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#2872 + # source://prism//lib/prism/node.rb#2836 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#2821 + # source://prism//lib/prism/node.rb#2785 sig { returns(Prism::Node) } def value; end @@ -3576,13 +3582,13 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#2829 + # source://prism//lib/prism/node.rb#2793 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2808 + # source://prism//lib/prism/node.rb#2772 sig { returns(Symbol) } def write_name; end @@ -3590,7 +3596,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2772 + # source://prism//lib/prism/node.rb#2736 sig { returns(Integer) } def flags; end @@ -3602,7 +3608,7 @@ class Prism::CallOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#2882 + # source://prism//lib/prism/node.rb#2846 def type; end end end @@ -3612,13 +3618,13 @@ end # foo.bar ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#2906 +# source://prism//lib/prism/node.rb#2870 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#2908 + # source://prism//lib/prism/node.rb#2872 sig do params( source: Prism::Source, @@ -3638,12 +3644,12 @@ class Prism::CallOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3040 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#2923 + # source://prism//lib/prism/node.rb#2886 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -3651,43 +3657,43 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3018 + # source://prism//lib/prism/node.rb#2981 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#3028 + # source://prism//lib/prism/node.rb#2991 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#2966 + # source://prism//lib/prism/node.rb#2929 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2928 + # source://prism//lib/prism/node.rb#2891 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#2941 + # source://prism//lib/prism/node.rb#2904 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#2933 + # source://prism//lib/prism/node.rb#2896 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#2946 + # source://prism//lib/prism/node.rb#2909 sig do params( flags: Integer, @@ -3706,13 +3712,13 @@ class Prism::CallOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#2928 + # source://prism//lib/prism/node.rb#2891 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#2954 + # source://prism//lib/prism/node.rb#2917 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -3723,49 +3729,49 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3023 + # source://prism//lib/prism/node.rb#2986 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#3043 + # source://prism//lib/prism/node.rb#3006 sig { override.returns(String) } def inspect; end # def message: () -> String? # - # source://prism//lib/prism/node.rb#3033 + # source://prism//lib/prism/node.rb#2996 sig { returns(T.nilable(String)) } def message; end # attr_reader message_loc: Location? # - # source://prism//lib/prism/node.rb#2979 + # source://prism//lib/prism/node.rb#2942 sig { returns(T.nilable(Prism::Location)) } def message_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#3038 + # source://prism//lib/prism/node.rb#3001 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#2998 + # source://prism//lib/prism/node.rb#2961 sig { returns(Prism::Location) } def operator_loc; end # attr_reader read_name: Symbol # - # source://prism//lib/prism/node.rb#2992 + # source://prism//lib/prism/node.rb#2955 sig { returns(Symbol) } def read_name; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#2963 + # source://prism//lib/prism/node.rb#2926 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -3773,7 +3779,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3008 + # source://prism//lib/prism/node.rb#2971 sig { returns(T::Boolean) } def safe_navigation?; end @@ -3792,13 +3798,13 @@ class Prism::CallOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3061 + # source://prism//lib/prism/node.rb#3024 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#3005 + # source://prism//lib/prism/node.rb#2968 sig { returns(Prism::Node) } def value; end @@ -3806,13 +3812,13 @@ class Prism::CallOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3013 + # source://prism//lib/prism/node.rb#2976 sig { returns(T::Boolean) } def variable_call?; end # attr_reader write_name: Symbol # - # source://prism//lib/prism/node.rb#2995 + # source://prism//lib/prism/node.rb#2958 sig { returns(Symbol) } def write_name; end @@ -3820,7 +3826,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#2959 + # source://prism//lib/prism/node.rb#2922 sig { returns(Integer) } def flags; end @@ -3832,7 +3838,7 @@ class Prism::CallOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3071 + # source://prism//lib/prism/node.rb#3034 def type; end end end @@ -3850,13 +3856,13 @@ end # for foo.bar in baz do end # ^^^^^^^ # -# source://prism//lib/prism/node.rb#3102 +# source://prism//lib/prism/node.rb#3065 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#3104 + # source://prism//lib/prism/node.rb#3067 sig do params( source: Prism::Source, @@ -3873,12 +3879,12 @@ class Prism::CallTargetNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3199 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3116 + # source://prism//lib/prism/node.rb#3078 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -3886,43 +3892,43 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3183 + # source://prism//lib/prism/node.rb#3145 sig { returns(T::Boolean) } def attribute_write?; end # def call_operator: () -> String # - # source://prism//lib/prism/node.rb#3193 + # source://prism//lib/prism/node.rb#3155 sig { returns(String) } def call_operator; end # attr_reader call_operator_loc: Location # - # source://prism//lib/prism/node.rb#3156 + # source://prism//lib/prism/node.rb#3118 sig { returns(Prism::Location) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3121 + # source://prism//lib/prism/node.rb#3083 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#3131 + # source://prism//lib/prism/node.rb#3093 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#3126 + # source://prism//lib/prism/node.rb#3088 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#3136 + # source://prism//lib/prism/node.rb#3098 sig do params( flags: Integer, @@ -3938,13 +3944,13 @@ class Prism::CallTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3121 + # source://prism//lib/prism/node.rb#3083 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#3144 + # source://prism//lib/prism/node.rb#3106 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -3955,37 +3961,37 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3188 + # source://prism//lib/prism/node.rb#3150 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#3203 + # source://prism//lib/prism/node.rb#3165 sig { override.returns(String) } def inspect; end # def message: () -> String # - # source://prism//lib/prism/node.rb#3198 + # source://prism//lib/prism/node.rb#3160 sig { returns(String) } def message; end # attr_reader message_loc: Location # - # source://prism//lib/prism/node.rb#3166 + # source://prism//lib/prism/node.rb#3128 sig { returns(Prism::Location) } def message_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3163 + # source://prism//lib/prism/node.rb#3125 sig { returns(Symbol) } def name; end # attr_reader receiver: Prism::node # - # source://prism//lib/prism/node.rb#3153 + # source://prism//lib/prism/node.rb#3115 sig { returns(Prism::Node) } def receiver; end @@ -3993,7 +3999,7 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3173 + # source://prism//lib/prism/node.rb#3135 sig { returns(T::Boolean) } def safe_navigation?; end @@ -4012,7 +4018,7 @@ class Prism::CallTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3221 + # source://prism//lib/prism/node.rb#3183 sig { override.returns(Symbol) } def type; end @@ -4020,7 +4026,7 @@ class Prism::CallTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#3178 + # source://prism//lib/prism/node.rb#3140 sig { returns(T::Boolean) } def variable_call?; end @@ -4028,7 +4034,7 @@ class Prism::CallTargetNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#3149 + # source://prism//lib/prism/node.rb#3111 sig { returns(Integer) } def flags; end @@ -4040,7 +4046,7 @@ class Prism::CallTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3231 + # source://prism//lib/prism/node.rb#3193 def type; end end end @@ -4050,13 +4056,13 @@ end # foo => [bar => baz] # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3251 +# source://prism//lib/prism/node.rb#3213 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#3253 + # source://prism//lib/prism/node.rb#3215 sig do params( source: Prism::Source, @@ -4071,36 +4077,36 @@ class Prism::CapturePatternNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3309 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3263 + # source://prism//lib/prism/node.rb#3224 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#3268 + # source://prism//lib/prism/node.rb#3229 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#3278 + # source://prism//lib/prism/node.rb#3239 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#3273 + # source://prism//lib/prism/node.rb#3234 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#3283 + # source://prism//lib/prism/node.rb#3244 sig do params( value: Prism::Node, @@ -4114,13 +4120,13 @@ class Prism::CapturePatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3268 + # source://prism//lib/prism/node.rb#3229 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#3291 + # source://prism//lib/prism/node.rb#3252 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -4129,25 +4135,25 @@ class Prism::CapturePatternNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#3314 + # source://prism//lib/prism/node.rb#3275 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#3309 + # source://prism//lib/prism/node.rb#3270 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3302 + # source://prism//lib/prism/node.rb#3263 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: Prism::node # - # source://prism//lib/prism/node.rb#3299 + # source://prism//lib/prism/node.rb#3260 sig { returns(Prism::Node) } def target; end @@ -4166,13 +4172,13 @@ class Prism::CapturePatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3332 + # source://prism//lib/prism/node.rb#3293 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#3296 + # source://prism//lib/prism/node.rb#3257 sig { returns(Prism::Node) } def value; end @@ -4184,7 +4190,7 @@ class Prism::CapturePatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3342 + # source://prism//lib/prism/node.rb#3303 def type; end end end @@ -4196,13 +4202,13 @@ end # end # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3362 +# source://prism//lib/prism/node.rb#3323 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#3364 + # source://prism//lib/prism/node.rb#3325 sig do params( source: Prism::Source, @@ -4219,60 +4225,60 @@ class Prism::CaseMatchNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3440 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3376 + # source://prism//lib/prism/node.rb#3336 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def case_keyword: () -> String # - # source://prism//lib/prism/node.rb#3436 + # source://prism//lib/prism/node.rb#3396 sig { returns(String) } def case_keyword; end # attr_reader case_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3422 + # source://prism//lib/prism/node.rb#3382 sig { returns(Prism::Location) } def case_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3381 + # source://prism//lib/prism/node.rb#3341 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#3395 + # source://prism//lib/prism/node.rb#3355 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#3386 + # source://prism//lib/prism/node.rb#3346 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader conditions: Array[Prism::node] # - # source://prism//lib/prism/node.rb#3416 + # source://prism//lib/prism/node.rb#3376 sig { returns(T::Array[Prism::Node]) } def conditions; end # attr_reader consequent: ElseNode? # - # source://prism//lib/prism/node.rb#3419 + # source://prism//lib/prism/node.rb#3379 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#3400 + # source://prism//lib/prism/node.rb#3360 sig do params( predicate: T.nilable(Prism::Node), @@ -4288,25 +4294,25 @@ class Prism::CaseMatchNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3381 + # source://prism//lib/prism/node.rb#3341 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#3408 + # source://prism//lib/prism/node.rb#3368 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#3441 + # source://prism//lib/prism/node.rb#3401 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3429 + # source://prism//lib/prism/node.rb#3389 sig { returns(Prism::Location) } def end_keyword_loc; end @@ -4315,13 +4321,13 @@ class Prism::CaseMatchNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#3446 + # source://prism//lib/prism/node.rb#3406 sig { override.returns(String) } def inspect; end # attr_reader predicate: Prism::node? # - # source://prism//lib/prism/node.rb#3413 + # source://prism//lib/prism/node.rb#3373 sig { returns(T.nilable(Prism::Node)) } def predicate; end @@ -4340,7 +4346,7 @@ class Prism::CaseMatchNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3464 + # source://prism//lib/prism/node.rb#3424 sig { override.returns(Symbol) } def type; end @@ -4352,7 +4358,7 @@ class Prism::CaseMatchNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3474 + # source://prism//lib/prism/node.rb#3434 def type; end end end @@ -4364,13 +4370,13 @@ end # end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3497 +# source://prism//lib/prism/node.rb#3457 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#3499 + # source://prism//lib/prism/node.rb#3459 sig do params( source: Prism::Source, @@ -4387,60 +4393,60 @@ class Prism::CaseNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3574 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3511 + # source://prism//lib/prism/node.rb#3470 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # def case_keyword: () -> String # - # source://prism//lib/prism/node.rb#3571 + # source://prism//lib/prism/node.rb#3530 sig { returns(String) } def case_keyword; end # attr_reader case_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3557 + # source://prism//lib/prism/node.rb#3516 sig { returns(Prism::Location) } def case_keyword_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3516 + # source://prism//lib/prism/node.rb#3475 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#3530 + # source://prism//lib/prism/node.rb#3489 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#3521 + # source://prism//lib/prism/node.rb#3480 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader conditions: Array[Prism::node] # - # source://prism//lib/prism/node.rb#3551 + # source://prism//lib/prism/node.rb#3510 sig { returns(T::Array[Prism::Node]) } def conditions; end # attr_reader consequent: ElseNode? # - # source://prism//lib/prism/node.rb#3554 + # source://prism//lib/prism/node.rb#3513 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#3535 + # source://prism//lib/prism/node.rb#3494 sig do params( predicate: T.nilable(Prism::Node), @@ -4456,25 +4462,25 @@ class Prism::CaseNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3516 + # source://prism//lib/prism/node.rb#3475 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#3543 + # source://prism//lib/prism/node.rb#3502 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#3576 + # source://prism//lib/prism/node.rb#3535 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3564 + # source://prism//lib/prism/node.rb#3523 sig { returns(Prism::Location) } def end_keyword_loc; end @@ -4483,13 +4489,13 @@ class Prism::CaseNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#3581 + # source://prism//lib/prism/node.rb#3540 sig { override.returns(String) } def inspect; end # attr_reader predicate: Prism::node? # - # source://prism//lib/prism/node.rb#3548 + # source://prism//lib/prism/node.rb#3507 sig { returns(T.nilable(Prism::Node)) } def predicate; end @@ -4508,7 +4514,7 @@ class Prism::CaseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3599 + # source://prism//lib/prism/node.rb#3558 sig { override.returns(Symbol) } def type; end @@ -4520,7 +4526,7 @@ class Prism::CaseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3609 + # source://prism//lib/prism/node.rb#3568 def type; end end end @@ -4530,13 +4536,13 @@ end # class Foo end # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3630 +# source://prism//lib/prism/node.rb#3589 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#3632 + # source://prism//lib/prism/node.rb#3591 sig do params( source: Prism::Source, @@ -4556,60 +4562,60 @@ class Prism::ClassNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3733 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3647 + # source://prism//lib/prism/node.rb#3605 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#3713 + # source://prism//lib/prism/node.rb#3671 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3652 + # source://prism//lib/prism/node.rb#3610 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def class_keyword: () -> String # - # source://prism//lib/prism/node.rb#3726 + # source://prism//lib/prism/node.rb#3684 sig { returns(String) } def class_keyword; end # attr_reader class_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3687 + # source://prism//lib/prism/node.rb#3645 sig { returns(Prism::Location) } def class_keyword_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#3666 + # source://prism//lib/prism/node.rb#3624 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#3657 + # source://prism//lib/prism/node.rb#3615 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant_path: Prism::node # - # source://prism//lib/prism/node.rb#3694 + # source://prism//lib/prism/node.rb#3652 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#3671 + # source://prism//lib/prism/node.rb#3629 sig do params( locals: T::Array[Symbol], @@ -4628,25 +4634,25 @@ class Prism::ClassNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3652 + # source://prism//lib/prism/node.rb#3610 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#3679 + # source://prism//lib/prism/node.rb#3637 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#3736 + # source://prism//lib/prism/node.rb#3694 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#3716 + # source://prism//lib/prism/node.rb#3674 sig { returns(Prism::Location) } def end_keyword_loc; end @@ -4655,37 +4661,37 @@ class Prism::ClassNode < ::Prism::Node # def inheritance_operator: () -> String? # - # source://prism//lib/prism/node.rb#3731 + # source://prism//lib/prism/node.rb#3689 sig { returns(T.nilable(String)) } def inheritance_operator; end # attr_reader inheritance_operator_loc: Location? # - # source://prism//lib/prism/node.rb#3697 + # source://prism//lib/prism/node.rb#3655 sig { returns(T.nilable(Prism::Location)) } def inheritance_operator_loc; end # def inspect -> String # - # source://prism//lib/prism/node.rb#3741 + # source://prism//lib/prism/node.rb#3699 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#3684 + # source://prism//lib/prism/node.rb#3642 sig { returns(T::Array[Symbol]) } def locals; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3723 + # source://prism//lib/prism/node.rb#3681 sig { returns(Symbol) } def name; end # attr_reader superclass: Prism::node? # - # source://prism//lib/prism/node.rb#3710 + # source://prism//lib/prism/node.rb#3668 sig { returns(T.nilable(Prism::Node)) } def superclass; end @@ -4704,7 +4710,7 @@ class Prism::ClassNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3759 + # source://prism//lib/prism/node.rb#3717 sig { override.returns(Symbol) } def type; end @@ -4716,7 +4722,7 @@ class Prism::ClassNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3769 + # source://prism//lib/prism/node.rb#3727 def type; end end end @@ -4726,13 +4732,13 @@ end # @@target &&= value # ^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3793 +# source://prism//lib/prism/node.rb#3751 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#3795 + # source://prism//lib/prism/node.rb#3753 sig do params( source: Prism::Source, @@ -4748,36 +4754,36 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3855 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3806 + # source://prism//lib/prism/node.rb#3763 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#3811 + # source://prism//lib/prism/node.rb#3768 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#3821 + # source://prism//lib/prism/node.rb#3778 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#3816 + # source://prism//lib/prism/node.rb#3773 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#3826 + # source://prism//lib/prism/node.rb#3783 sig do params( name: Symbol, @@ -4792,13 +4798,13 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3811 + # source://prism//lib/prism/node.rb#3768 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#3834 + # source://prism//lib/prism/node.rb#3791 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -4810,31 +4816,31 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#3864 + # source://prism//lib/prism/node.rb#3821 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3839 + # source://prism//lib/prism/node.rb#3796 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3842 + # source://prism//lib/prism/node.rb#3799 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#3859 + # source://prism//lib/prism/node.rb#3816 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#3849 + # source://prism//lib/prism/node.rb#3806 sig { returns(Prism::Location) } def operator_loc; end @@ -4853,13 +4859,13 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3882 + # source://prism//lib/prism/node.rb#3839 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#3856 + # source://prism//lib/prism/node.rb#3813 sig { returns(Prism::Node) } def value; end @@ -4871,7 +4877,7 @@ class Prism::ClassVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#3892 + # source://prism//lib/prism/node.rb#3849 def type; end end end @@ -4881,13 +4887,13 @@ end # @@target += value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#3911 +# source://prism//lib/prism/node.rb#3868 class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # 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#3913 + # source://prism//lib/prism/node.rb#3870 sig do params( source: Prism::Source, @@ -4904,48 +4910,48 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#3971 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#3925 + # source://prism//lib/prism/node.rb#3881 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 + # source://prism//lib/prism/node.rb#3934 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#3968 + # source://prism//lib/prism/node.rb#3924 sig { returns(Prism::Location) } def binary_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3930 + # source://prism//lib/prism/node.rb#3886 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#3940 + # source://prism//lib/prism/node.rb#3896 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#3935 + # source://prism//lib/prism/node.rb#3891 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # 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#3945 + # source://prism//lib/prism/node.rb#3901 sig do params( name: Symbol, @@ -4961,13 +4967,13 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#3930 + # source://prism//lib/prism/node.rb#3886 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#3953 + # source://prism//lib/prism/node.rb#3909 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -4979,32 +4985,32 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#3981 + # source://prism//lib/prism/node.rb#3937 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#3958 + # source://prism//lib/prism/node.rb#3914 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#3961 + # source://prism//lib/prism/node.rb#3917 sig { returns(Prism::Location) } def name_loc; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#323 + # source://prism//lib/prism/node_ext.rb#339 def operator; end # 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_ext.rb#330 + # 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 @@ -5022,13 +5028,13 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#3999 + # source://prism//lib/prism/node.rb#3955 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#3975 + # source://prism//lib/prism/node.rb#3931 sig { returns(Prism::Node) } def value; end @@ -5040,7 +5046,7 @@ class Prism::ClassVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4009 + # source://prism//lib/prism/node.rb#3965 def type; end end end @@ -5050,13 +5056,13 @@ end # @@target ||= value # ^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4029 +# source://prism//lib/prism/node.rb#3985 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#4031 + # source://prism//lib/prism/node.rb#3987 sig do params( source: Prism::Source, @@ -5072,36 +5078,36 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#4089 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4042 + # source://prism//lib/prism/node.rb#3997 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#4047 + # source://prism//lib/prism/node.rb#4002 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#4057 + # source://prism//lib/prism/node.rb#4012 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#4052 + # source://prism//lib/prism/node.rb#4007 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#4062 + # source://prism//lib/prism/node.rb#4017 sig do params( name: Symbol, @@ -5116,13 +5122,13 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4047 + # source://prism//lib/prism/node.rb#4002 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#4070 + # source://prism//lib/prism/node.rb#4025 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -5134,31 +5140,31 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#4100 + # source://prism//lib/prism/node.rb#4055 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4075 + # source://prism//lib/prism/node.rb#4030 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4078 + # source://prism//lib/prism/node.rb#4033 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4095 + # source://prism//lib/prism/node.rb#4050 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4085 + # source://prism//lib/prism/node.rb#4040 sig { returns(Prism::Location) } def operator_loc; end @@ -5177,13 +5183,13 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4118 + # source://prism//lib/prism/node.rb#4073 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4092 + # source://prism//lib/prism/node.rb#4047 sig { returns(Prism::Node) } def value; end @@ -5195,7 +5201,7 @@ class Prism::ClassVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4128 + # source://prism//lib/prism/node.rb#4083 def type; end end end @@ -5205,177 +5211,177 @@ end # @@foo # ^^^^^ # -# source://prism//lib/prism/node.rb#4147 +# source://prism//lib/prism/node.rb#4102 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#4149 + # source://prism//lib/prism/node.rb#4104 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#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#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#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#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#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#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#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 -> String - # - # 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). - # - # @@abc # name `:@@abc` - # - # @@_test # name `:@@_test` - # - # source://prism//lib/prism/node.rb#4194 - sig { returns(Symbol) } - def name; 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#4215 - sig { override.returns(Symbol) } - def type; end - - class << self - # Similar to #type, this method returns a symbol that you can use for - # splitting on the type of the node without having to do a long === chain. - # Note that like #type, it will still be slower than using == for a single - # class, but should be faster in a case statement or an array comparison. - # - # def self.type: () -> Symbol - # - # source://prism//lib/prism/node.rb#4225 - def type; end - end -end - -# Represents writing to a class variable in a context that doesn't have an explicit value. -# -# @@foo, @@bar = baz -# ^^^^^ ^^^^^ -# -# 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#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#4251 + # source://prism//lib/prism/node.rb#4111 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#4256 + # source://prism//lib/prism/node.rb#4116 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#4266 + # source://prism//lib/prism/node.rb#4126 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#4261 + # source://prism//lib/prism/node.rb#4121 + 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#4131 + 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#4116 + 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#4139 + 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 -> String + # + # source://prism//lib/prism/node.rb#4151 + 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). + # + # @@abc # name `:@@abc` + # + # @@_test # name `:@@_test` + # + # source://prism//lib/prism/node.rb#4148 + sig { returns(Symbol) } + def name; 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#4169 + sig { override.returns(Symbol) } + def type; end + + class << self + # Similar to #type, this method returns a symbol that you can use for + # splitting on the type of the node without having to do a long === chain. + # Note that like #type, it will still be slower than using == for a single + # class, but should be faster in a case statement or an array comparison. + # + # def self.type: () -> Symbol + # + # source://prism//lib/prism/node.rb#4179 + def type; end + end +end + +# Represents writing to a class variable in a context that doesn't have an explicit value. +# +# @@foo, @@bar = baz +# ^^^^^ ^^^^^ +# +# source://prism//lib/prism/node.rb#4195 +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#4197 + 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#4274 + def ===(other); end + + # def accept: (Visitor visitor) -> void + # + # source://prism//lib/prism/node.rb#4204 + 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#4209 + 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#4219 + 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#4214 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#4271 + # source://prism//lib/prism/node.rb#4224 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#4256 + # source://prism//lib/prism/node.rb#4209 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#4279 + # source://prism//lib/prism/node.rb#4232 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -5384,13 +5390,13 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#4287 + # source://prism//lib/prism/node.rb#4240 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4284 + # source://prism//lib/prism/node.rb#4237 sig { returns(Symbol) } def name; end @@ -5409,7 +5415,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4305 + # source://prism//lib/prism/node.rb#4258 sig { override.returns(Symbol) } def type; end @@ -5421,7 +5427,7 @@ class Prism::ClassVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4315 + # source://prism//lib/prism/node.rb#4268 def type; end end end @@ -5431,13 +5437,13 @@ end # @@foo = 1 # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4331 +# source://prism//lib/prism/node.rb#4284 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#4333 + # source://prism//lib/prism/node.rb#4286 sig do params( source: Prism::Source, @@ -5453,36 +5459,36 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#4404 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4344 + # source://prism//lib/prism/node.rb#4296 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#4349 + # source://prism//lib/prism/node.rb#4301 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#4359 + # source://prism//lib/prism/node.rb#4311 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#4354 + # source://prism//lib/prism/node.rb#4306 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#4364 + # source://prism//lib/prism/node.rb#4316 sig do params( name: Symbol, @@ -5497,13 +5503,13 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4349 + # source://prism//lib/prism/node.rb#4301 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#4372 + # source://prism//lib/prism/node.rb#4324 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -5512,7 +5518,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#4418 + # source://prism//lib/prism/node.rb#4370 sig { override.returns(String) } def inspect; end @@ -5522,7 +5528,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # @@_test = :test # name `@@_test` # - # source://prism//lib/prism/node.rb#4381 + # source://prism//lib/prism/node.rb#4333 sig { returns(Symbol) } def name; end @@ -5531,13 +5537,13 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # @@foo = :bar # ^^^^^ # - # source://prism//lib/prism/node.rb#4387 + # source://prism//lib/prism/node.rb#4339 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4413 + # source://prism//lib/prism/node.rb#4365 sig { returns(String) } def operator; end @@ -5546,7 +5552,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # @@foo = :bar # ^ # - # source://prism//lib/prism/node.rb#4406 + # source://prism//lib/prism/node.rb#4358 sig { returns(Prism::Location) } def operator_loc; end @@ -5565,7 +5571,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4436 + # source://prism//lib/prism/node.rb#4388 sig { override.returns(Symbol) } def type; end @@ -5577,7 +5583,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # @@_xyz = 123 # ^^^ # - # source://prism//lib/prism/node.rb#4400 + # source://prism//lib/prism/node.rb#4352 sig { returns(Prism::Node) } def value; end @@ -5589,7 +5595,7 @@ class Prism::ClassVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4446 + # source://prism//lib/prism/node.rb#4398 def type; end end end @@ -6190,6 +6196,12 @@ class Prism::Compiler < ::Prism::Visitor # source://prism//lib/prism/compiler.rb#39 def visit_interpolated_x_string_node(node); end + # Visit the child nodes of the given node. + # Compile a ItLocalVariableReadNode node + # + # source://prism//lib/prism/compiler.rb#39 + def visit_it_local_variable_read_node(node); end + # Visit the child nodes of the given node. # Compile a ItParametersNode node # @@ -6574,13 +6586,13 @@ end # Target &&= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4465 +# source://prism//lib/prism/node.rb#4417 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#4467 + # source://prism//lib/prism/node.rb#4419 sig do params( source: Prism::Source, @@ -6596,36 +6608,36 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#4521 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4478 + # source://prism//lib/prism/node.rb#4429 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#4483 + # source://prism//lib/prism/node.rb#4434 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#4493 + # source://prism//lib/prism/node.rb#4444 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#4488 + # source://prism//lib/prism/node.rb#4439 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#4498 + # source://prism//lib/prism/node.rb#4449 sig do params( name: Symbol, @@ -6640,13 +6652,13 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4483 + # source://prism//lib/prism/node.rb#4434 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#4506 + # source://prism//lib/prism/node.rb#4457 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -6658,31 +6670,31 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#4536 + # source://prism//lib/prism/node.rb#4487 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4511 + # source://prism//lib/prism/node.rb#4462 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4514 + # source://prism//lib/prism/node.rb#4465 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4531 + # source://prism//lib/prism/node.rb#4482 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4521 + # source://prism//lib/prism/node.rb#4472 sig { returns(Prism::Location) } def operator_loc; end @@ -6701,13 +6713,13 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4554 + # source://prism//lib/prism/node.rb#4505 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4528 + # source://prism//lib/prism/node.rb#4479 sig { returns(Prism::Node) } def value; end @@ -6719,7 +6731,7 @@ class Prism::ConstantAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4564 + # source://prism//lib/prism/node.rb#4515 def type; end end end @@ -6729,13 +6741,13 @@ end # Target += value # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4583 +# source://prism//lib/prism/node.rb#4534 class Prism::ConstantOperatorWriteNode < ::Prism::Node # 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#4585 + # source://prism//lib/prism/node.rb#4536 sig do params( source: Prism::Source, @@ -6752,48 +6764,48 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#4637 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4597 + # source://prism//lib/prism/node.rb#4547 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 + # source://prism//lib/prism/node.rb#4600 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#4640 + # source://prism//lib/prism/node.rb#4590 sig { returns(Prism::Location) } def binary_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4602 + # source://prism//lib/prism/node.rb#4552 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#4612 + # source://prism//lib/prism/node.rb#4562 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#4607 + # source://prism//lib/prism/node.rb#4557 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # 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#4617 + # source://prism//lib/prism/node.rb#4567 sig do params( name: Symbol, @@ -6809,13 +6821,13 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4602 + # source://prism//lib/prism/node.rb#4552 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#4625 + # source://prism//lib/prism/node.rb#4575 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -6827,32 +6839,32 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#4653 + # source://prism//lib/prism/node.rb#4603 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4630 + # source://prism//lib/prism/node.rb#4580 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4633 + # source://prism//lib/prism/node.rb#4583 sig { returns(Prism::Location) } def name_loc; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#339 + # source://prism//lib/prism/node_ext.rb#355 def operator; end # 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_ext.rb#346 + # source://prism//lib/prism/node_ext.rb#362 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -6870,13 +6882,13 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4671 + # source://prism//lib/prism/node.rb#4621 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4647 + # source://prism//lib/prism/node.rb#4597 sig { returns(Prism::Node) } def value; end @@ -6888,7 +6900,7 @@ class Prism::ConstantOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4681 + # source://prism//lib/prism/node.rb#4631 def type; end end end @@ -6898,13 +6910,13 @@ end # Target ||= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4701 +# source://prism//lib/prism/node.rb#4651 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#4703 + # source://prism//lib/prism/node.rb#4653 sig do params( source: Prism::Source, @@ -6920,36 +6932,36 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#4755 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4714 + # source://prism//lib/prism/node.rb#4663 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#4719 + # source://prism//lib/prism/node.rb#4668 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#4729 + # source://prism//lib/prism/node.rb#4678 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#4724 + # source://prism//lib/prism/node.rb#4673 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#4734 + # source://prism//lib/prism/node.rb#4683 sig do params( name: Symbol, @@ -6964,13 +6976,13 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4719 + # source://prism//lib/prism/node.rb#4668 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#4742 + # source://prism//lib/prism/node.rb#4691 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -6982,31 +6994,31 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#4772 + # source://prism//lib/prism/node.rb#4721 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#4747 + # source://prism//lib/prism/node.rb#4696 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#4750 + # source://prism//lib/prism/node.rb#4699 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4767 + # source://prism//lib/prism/node.rb#4716 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4757 + # source://prism//lib/prism/node.rb#4706 sig { returns(Prism::Location) } def operator_loc; end @@ -7025,13 +7037,13 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4790 + # source://prism//lib/prism/node.rb#4739 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4764 + # source://prism//lib/prism/node.rb#4713 sig { returns(Prism::Node) } def value; end @@ -7043,7 +7055,7 @@ class Prism::ConstantOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4800 + # source://prism//lib/prism/node.rb#4749 def type; end end end @@ -7053,13 +7065,13 @@ end # Parent::Child &&= value # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#4819 +# source://prism//lib/prism/node.rb#4768 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#4821 + # source://prism//lib/prism/node.rb#4770 sig do params( source: Prism::Source, @@ -7074,36 +7086,36 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#4864 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4831 + # source://prism//lib/prism/node.rb#4779 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#4836 + # source://prism//lib/prism/node.rb#4784 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#4846 + # source://prism//lib/prism/node.rb#4794 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#4841 + # source://prism//lib/prism/node.rb#4789 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#4851 + # source://prism//lib/prism/node.rb#4799 sig do params( target: Prism::ConstantPathNode, @@ -7117,13 +7129,13 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4836 + # source://prism//lib/prism/node.rb#4784 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#4859 + # source://prism//lib/prism/node.rb#4807 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -7132,25 +7144,25 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#4882 + # source://prism//lib/prism/node.rb#4830 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#4877 + # source://prism//lib/prism/node.rb#4825 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#4867 + # source://prism//lib/prism/node.rb#4815 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#4864 + # source://prism//lib/prism/node.rb#4812 sig { returns(Prism::ConstantPathNode) } def target; end @@ -7169,13 +7181,13 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#4900 + # source://prism//lib/prism/node.rb#4848 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#4874 + # source://prism//lib/prism/node.rb#4822 sig { returns(Prism::Node) } def value; end @@ -7187,7 +7199,7 @@ class Prism::ConstantPathAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#4910 + # source://prism//lib/prism/node.rb#4858 def type; end end end @@ -7197,13 +7209,13 @@ end # Foo::Bar # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#4928 +# source://prism//lib/prism/node.rb#4876 class Prism::ConstantPathNode < ::Prism::Node # 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#4930 + # source://prism//lib/prism/node.rb#4878 sig do params( source: Prism::Source, @@ -7219,12 +7231,12 @@ class Prism::ConstantPathNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#5003 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#4941 + # source://prism//lib/prism/node.rb#4888 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -7232,30 +7244,30 @@ class Prism::ConstantPathNode < ::Prism::Node # constant read or a missing node. To not cause a breaking change, we # continue to supply that API. # - # source://prism//lib/prism/node_ext.rb#181 + # source://prism//lib/prism/node_ext.rb#196 def child; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4946 + # source://prism//lib/prism/node.rb#4893 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#4958 + # source://prism//lib/prism/node.rb#4905 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#4951 + # source://prism//lib/prism/node.rb#4898 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?parent: Prism::node?, ?name: Symbol?, ?delimiter_loc: Location, ?name_loc: Location, ?location: Location) -> ConstantPathNode # - # source://prism//lib/prism/node.rb#4963 + # source://prism//lib/prism/node.rb#4910 sig do params( parent: T.nilable(Prism::Node), @@ -7270,19 +7282,19 @@ class Prism::ConstantPathNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#4946 + # source://prism//lib/prism/node.rb#4893 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#4971 + # source://prism//lib/prism/node.rb#4918 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#5017 + # source://prism//lib/prism/node.rb#4964 sig { returns(String) } def delimiter; end @@ -7294,7 +7306,7 @@ class Prism::ConstantPathNode < ::Prism::Node # One::Two # ^^ # - # source://prism//lib/prism/node.rb#4997 + # source://prism//lib/prism/node.rb#4944 sig { returns(Prism::Location) } def delimiter_loc; end @@ -7303,26 +7315,26 @@ class Prism::ConstantPathNode < ::Prism::Node # Returns the full name of this constant path. For example: "Foo::Bar" # - # source://prism//lib/prism/node_ext.rb#174 + # source://prism//lib/prism/node_ext.rb#189 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#152 + # source://prism//lib/prism/node_ext.rb#167 sig { returns(T::Array[Symbol]) } def full_name_parts; end # def inspect -> String # - # source://prism//lib/prism/node.rb#5022 + # source://prism//lib/prism/node.rb#4969 sig { override.returns(String) } def inspect; end # The name of the constant being accessed. This could be `nil` in the event of a syntax error. # - # source://prism//lib/prism/node.rb#4988 + # source://prism//lib/prism/node.rb#4935 sig { returns(T.nilable(Symbol)) } def name; end @@ -7334,7 +7346,7 @@ class Prism::ConstantPathNode < ::Prism::Node # One::Two # ^^^ # - # source://prism//lib/prism/node.rb#5010 + # source://prism//lib/prism/node.rb#4957 sig { returns(Prism::Location) } def name_loc; end @@ -7349,7 +7361,7 @@ class Prism::ConstantPathNode < ::Prism::Node # a.b::C # ^^^ # - # source://prism//lib/prism/node.rb#4985 + # source://prism//lib/prism/node.rb#4932 sig { returns(T.nilable(Prism::Node)) } def parent; end @@ -7368,7 +7380,7 @@ class Prism::ConstantPathNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5040 + # source://prism//lib/prism/node.rb#4987 sig { override.returns(Symbol) } def type; end @@ -7380,7 +7392,7 @@ class Prism::ConstantPathNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5050 + # source://prism//lib/prism/node.rb#4997 def type; end end end @@ -7392,14 +7404,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#143 +# source://prism//lib/prism/node_ext.rb#158 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#148 +# source://prism//lib/prism/node_ext.rb#163 class Prism::ConstantPathNode::MissingNodesInConstantPathError < ::StandardError; end # Represents assigning to a constant path using an operator that isn't `=`. @@ -7407,13 +7419,13 @@ class Prism::ConstantPathNode::MissingNodesInConstantPathError < ::StandardError # Parent::Child += value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5069 +# source://prism//lib/prism/node.rb#5016 class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # 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#5071 + # source://prism//lib/prism/node.rb#5018 sig do params( source: Prism::Source, @@ -7429,48 +7441,48 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#5111 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5082 + # source://prism//lib/prism/node.rb#5028 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 + # source://prism//lib/prism/node.rb#5074 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#5118 + # source://prism//lib/prism/node.rb#5064 sig { returns(Prism::Location) } def binary_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5087 + # source://prism//lib/prism/node.rb#5033 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#5097 + # source://prism//lib/prism/node.rb#5043 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#5092 + # source://prism//lib/prism/node.rb#5038 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?target: ConstantPathNode, ?binary_operator_loc: Location, ?value: Prism::node, ?binary_operator: Symbol, ?location: Location) -> ConstantPathOperatorWriteNode # - # source://prism//lib/prism/node.rb#5102 + # source://prism//lib/prism/node.rb#5048 sig do params( target: Prism::ConstantPathNode, @@ -7485,13 +7497,13 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5087 + # source://prism//lib/prism/node.rb#5033 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#5110 + # source://prism//lib/prism/node.rb#5056 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -7500,25 +7512,25 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#5131 + # source://prism//lib/prism/node.rb#5077 sig { override.returns(String) } def inspect; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#355 + # source://prism//lib/prism/node_ext.rb#371 def operator; end # 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_ext.rb#362 + # source://prism//lib/prism/node_ext.rb#378 def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#5115 + # source://prism//lib/prism/node.rb#5061 sig { returns(Prism::ConstantPathNode) } def target; end @@ -7537,13 +7549,13 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5149 + # source://prism//lib/prism/node.rb#5095 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#5125 + # source://prism//lib/prism/node.rb#5071 sig { returns(Prism::Node) } def value; end @@ -7555,7 +7567,7 @@ class Prism::ConstantPathOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5159 + # source://prism//lib/prism/node.rb#5105 def type; end end end @@ -7565,13 +7577,13 @@ end # Parent::Child ||= value # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5178 +# source://prism//lib/prism/node.rb#5124 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#5180 + # source://prism//lib/prism/node.rb#5126 sig do params( source: Prism::Source, @@ -7586,36 +7598,36 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#5220 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5190 + # source://prism//lib/prism/node.rb#5135 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#5195 + # source://prism//lib/prism/node.rb#5140 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#5205 + # source://prism//lib/prism/node.rb#5150 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#5200 + # source://prism//lib/prism/node.rb#5145 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#5210 + # source://prism//lib/prism/node.rb#5155 sig do params( target: Prism::ConstantPathNode, @@ -7629,13 +7641,13 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5195 + # source://prism//lib/prism/node.rb#5140 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#5218 + # source://prism//lib/prism/node.rb#5163 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -7644,25 +7656,25 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#5241 + # source://prism//lib/prism/node.rb#5186 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5236 + # source://prism//lib/prism/node.rb#5181 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#5226 + # source://prism//lib/prism/node.rb#5171 sig { returns(Prism::Location) } def operator_loc; end # attr_reader target: ConstantPathNode # - # source://prism//lib/prism/node.rb#5223 + # source://prism//lib/prism/node.rb#5168 sig { returns(Prism::ConstantPathNode) } def target; end @@ -7681,13 +7693,13 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5259 + # source://prism//lib/prism/node.rb#5204 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#5233 + # source://prism//lib/prism/node.rb#5178 sig { returns(Prism::Node) } def value; end @@ -7699,7 +7711,7 @@ class Prism::ConstantPathOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5269 + # source://prism//lib/prism/node.rb#5214 def type; end end end @@ -7709,13 +7721,13 @@ end # Foo::Foo, Bar::Bar = baz # ^^^^^^^^ ^^^^^^^^ # -# source://prism//lib/prism/node.rb#5287 +# source://prism//lib/prism/node.rb#5232 class Prism::ConstantPathTargetNode < ::Prism::Node # 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#5289 + # source://prism//lib/prism/node.rb#5234 sig do params( source: Prism::Source, @@ -7731,12 +7743,12 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#5338 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5300 + # source://prism//lib/prism/node.rb#5244 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -7744,30 +7756,30 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # constant read or a missing node. To not cause a breaking change, we # continue to supply that API. # - # source://prism//lib/prism/node_ext.rb#217 + # source://prism//lib/prism/node_ext.rb#232 def child; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5305 + # source://prism//lib/prism/node.rb#5249 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#5317 + # source://prism//lib/prism/node.rb#5261 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#5310 + # source://prism//lib/prism/node.rb#5254 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?parent: Prism::node?, ?name: Symbol?, ?delimiter_loc: Location, ?name_loc: Location, ?location: Location) -> ConstantPathTargetNode # - # source://prism//lib/prism/node.rb#5322 + # source://prism//lib/prism/node.rb#5266 sig do params( parent: T.nilable(Prism::Node), @@ -7782,25 +7794,25 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5305 + # source://prism//lib/prism/node.rb#5249 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#5330 + # source://prism//lib/prism/node.rb#5274 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#5355 + # source://prism//lib/prism/node.rb#5299 sig { returns(String) } def delimiter; end # attr_reader delimiter_loc: Location # - # source://prism//lib/prism/node.rb#5341 + # source://prism//lib/prism/node.rb#5285 sig { returns(Prism::Location) } def delimiter_loc; end @@ -7809,38 +7821,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#210 + # source://prism//lib/prism/node_ext.rb#225 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#190 + # source://prism//lib/prism/node_ext.rb#205 sig { returns(T::Array[Symbol]) } def full_name_parts; end # def inspect -> String # - # source://prism//lib/prism/node.rb#5360 + # source://prism//lib/prism/node.rb#5304 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#5338 + # source://prism//lib/prism/node.rb#5282 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#5348 + # source://prism//lib/prism/node.rb#5292 sig { returns(Prism::Location) } def name_loc; end # attr_reader parent: Prism::node? # - # source://prism//lib/prism/node.rb#5335 + # source://prism//lib/prism/node.rb#5279 sig { returns(T.nilable(Prism::Node)) } def parent; end @@ -7859,7 +7871,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5378 + # source://prism//lib/prism/node.rb#5322 sig { override.returns(Symbol) } def type; end @@ -7871,7 +7883,7 @@ class Prism::ConstantPathTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5388 + # source://prism//lib/prism/node.rb#5332 def type; end end end @@ -7887,13 +7899,13 @@ end # ::Foo::Bar = 1 # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5413 +# source://prism//lib/prism/node.rb#5357 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#5415 + # source://prism//lib/prism/node.rb#5359 sig do params( source: Prism::Source, @@ -7908,36 +7920,36 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#5465 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5425 + # source://prism//lib/prism/node.rb#5368 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#5430 + # source://prism//lib/prism/node.rb#5373 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#5440 + # source://prism//lib/prism/node.rb#5383 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#5435 + # source://prism//lib/prism/node.rb#5378 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#5445 + # source://prism//lib/prism/node.rb#5388 sig do params( target: Prism::ConstantPathNode, @@ -7951,13 +7963,13 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5430 + # source://prism//lib/prism/node.rb#5373 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#5453 + # source://prism//lib/prism/node.rb#5396 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -7966,13 +7978,13 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#5488 + # source://prism//lib/prism/node.rb#5431 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5483 + # source://prism//lib/prism/node.rb#5426 sig { returns(String) } def operator; end @@ -7981,7 +7993,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # ::ABC = 123 # ^ # - # source://prism//lib/prism/node.rb#5470 + # source://prism//lib/prism/node.rb#5413 sig { returns(Prism::Location) } def operator_loc; end @@ -7993,7 +8005,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # ::Foo = :abc # ^^^^^ # - # source://prism//lib/prism/node.rb#5464 + # source://prism//lib/prism/node.rb#5407 sig { returns(Prism::ConstantPathNode) } def target; end @@ -8012,7 +8024,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5506 + # source://prism//lib/prism/node.rb#5449 sig { override.returns(Symbol) } def type; end @@ -8021,7 +8033,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # FOO::BAR = :abc # ^^^^ # - # source://prism//lib/prism/node.rb#5480 + # source://prism//lib/prism/node.rb#5423 sig { returns(Prism::Node) } def value; end @@ -8033,7 +8045,7 @@ class Prism::ConstantPathWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5516 + # source://prism//lib/prism/node.rb#5459 def type; end end end @@ -8043,62 +8055,62 @@ end # Foo # ^^^ # -# source://prism//lib/prism/node.rb#5534 +# source://prism//lib/prism/node.rb#5477 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#5536 + # source://prism//lib/prism/node.rb#5479 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 + # source://prism//lib/prism/node.rb#5560 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5544 + # source://prism//lib/prism/node.rb#5486 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#5549 + # source://prism//lib/prism/node.rb#5491 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#5559 + # source://prism//lib/prism/node.rb#5501 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#5554 + # source://prism//lib/prism/node.rb#5496 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#5564 + # source://prism//lib/prism/node.rb#5506 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#5549 + # source://prism//lib/prism/node.rb#5491 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#5572 + # source://prism//lib/prism/node.rb#5514 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -8107,20 +8119,20 @@ class Prism::ConstantReadNode < ::Prism::Node # Returns the full name of this constant. For example: "Foo" # - # source://prism//lib/prism/node_ext.rb#118 + # source://prism//lib/prism/node_ext.rb#133 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#113 + # source://prism//lib/prism/node_ext.rb#128 sig { returns(T::Array[Symbol]) } def full_name_parts; end # def inspect -> String # - # source://prism//lib/prism/node.rb#5584 + # source://prism//lib/prism/node.rb#5526 sig { override.returns(String) } def inspect; end @@ -8130,7 +8142,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # SOME_CONSTANT # name `:SOME_CONSTANT` # - # source://prism//lib/prism/node.rb#5581 + # source://prism//lib/prism/node.rb#5523 sig { returns(Symbol) } def name; end @@ -8149,7 +8161,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5602 + # source://prism//lib/prism/node.rb#5544 sig { override.returns(Symbol) } def type; end @@ -8161,7 +8173,7 @@ class Prism::ConstantReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5612 + # source://prism//lib/prism/node.rb#5554 def type; end end end @@ -8171,62 +8183,62 @@ end # Foo, Bar = baz # ^^^ ^^^ # -# source://prism//lib/prism/node.rb#5628 +# source://prism//lib/prism/node.rb#5570 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#5630 + # source://prism//lib/prism/node.rb#5572 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 + # source://prism//lib/prism/node.rb#5649 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5638 + # source://prism//lib/prism/node.rb#5579 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#5643 + # source://prism//lib/prism/node.rb#5584 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#5653 + # source://prism//lib/prism/node.rb#5594 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#5648 + # source://prism//lib/prism/node.rb#5589 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#5658 + # source://prism//lib/prism/node.rb#5599 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#5643 + # source://prism//lib/prism/node.rb#5584 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#5666 + # source://prism//lib/prism/node.rb#5607 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -8235,26 +8247,26 @@ class Prism::ConstantTargetNode < ::Prism::Node # Returns the full name of this constant. For example: "Foo" # - # source://prism//lib/prism/node_ext.rb#231 + # source://prism//lib/prism/node_ext.rb#246 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#226 + # source://prism//lib/prism/node_ext.rb#241 sig { returns(T::Array[Symbol]) } def full_name_parts; end # def inspect -> String # - # source://prism//lib/prism/node.rb#5674 + # source://prism//lib/prism/node.rb#5615 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#5671 + # source://prism//lib/prism/node.rb#5612 sig { returns(Symbol) } def name; end @@ -8273,7 +8285,7 @@ class Prism::ConstantTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5692 + # source://prism//lib/prism/node.rb#5633 sig { override.returns(Symbol) } def type; end @@ -8285,7 +8297,7 @@ class Prism::ConstantTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5702 + # source://prism//lib/prism/node.rb#5643 def type; end end end @@ -8295,13 +8307,13 @@ end # Foo = 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#5718 +# source://prism//lib/prism/node.rb#5659 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#5720 + # source://prism//lib/prism/node.rb#5661 sig do params( source: Prism::Source, @@ -8317,36 +8329,36 @@ class Prism::ConstantWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#5779 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5731 + # source://prism//lib/prism/node.rb#5671 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#5736 + # source://prism//lib/prism/node.rb#5676 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#5746 + # source://prism//lib/prism/node.rb#5686 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#5741 + # source://prism//lib/prism/node.rb#5681 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#5751 + # source://prism//lib/prism/node.rb#5691 sig do params( name: Symbol, @@ -8361,13 +8373,13 @@ class Prism::ConstantWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5736 + # source://prism//lib/prism/node.rb#5676 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#5759 + # source://prism//lib/prism/node.rb#5699 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -8376,20 +8388,20 @@ class Prism::ConstantWriteNode < ::Prism::Node # Returns the full name of this constant. For example: "Foo" # - # source://prism//lib/prism/node_ext.rb#131 + # source://prism//lib/prism/node_ext.rb#146 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#126 + # source://prism//lib/prism/node_ext.rb#141 sig { returns(T::Array[Symbol]) } def full_name_parts; end # def inspect -> String # - # source://prism//lib/prism/node.rb#5805 + # source://prism//lib/prism/node.rb#5745 sig { override.returns(String) } def inspect; end @@ -8399,7 +8411,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # # XYZ = 1 # name `:XYZ` # - # source://prism//lib/prism/node.rb#5768 + # source://prism//lib/prism/node.rb#5708 sig { returns(Symbol) } def name; end @@ -8408,13 +8420,13 @@ class Prism::ConstantWriteNode < ::Prism::Node # FOO = 1 # ^^^ # - # source://prism//lib/prism/node.rb#5774 + # source://prism//lib/prism/node.rb#5714 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#5800 + # source://prism//lib/prism/node.rb#5740 sig { returns(String) } def operator; end @@ -8423,7 +8435,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # FOO = :bar # ^ # - # source://prism//lib/prism/node.rb#5793 + # source://prism//lib/prism/node.rb#5733 sig { returns(Prism::Location) } def operator_loc; end @@ -8442,7 +8454,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#5823 + # source://prism//lib/prism/node.rb#5763 sig { override.returns(Symbol) } def type; end @@ -8454,7 +8466,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # MyClass = Class.new # ^^^^^^^^^ # - # source://prism//lib/prism/node.rb#5787 + # source://prism//lib/prism/node.rb#5727 sig { returns(Prism::Node) } def value; end @@ -8466,7 +8478,7 @@ class Prism::ConstantWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#5833 + # source://prism//lib/prism/node.rb#5773 def type; end end end @@ -8943,54 +8955,59 @@ module Prism::DSL # source://prism//lib/prism/dsl.rb#481 def InterpolatedXStringNode(opening_loc, parts, closing_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end - # Create a new ItParametersNode node + # Create a new ItLocalVariableReadNode node # # source://prism//lib/prism/dsl.rb#486 + def ItLocalVariableReadNode(source = T.unsafe(nil), location = T.unsafe(nil)); end + + # Create a new ItParametersNode node + # + # source://prism//lib/prism/dsl.rb#491 def ItParametersNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new KeywordHashNode node # - # source://prism//lib/prism/dsl.rb#491 + # source://prism//lib/prism/dsl.rb#496 def KeywordHashNode(flags, elements, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new KeywordRestParameterNode node # - # source://prism//lib/prism/dsl.rb#496 + # source://prism//lib/prism/dsl.rb#501 def KeywordRestParameterNode(flags, name, name_loc, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new LambdaNode node # - # source://prism//lib/prism/dsl.rb#501 + # source://prism//lib/prism/dsl.rb#506 def LambdaNode(locals, operator_loc, opening_loc, closing_loc, parameters, body, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new LocalVariableAndWriteNode node # - # source://prism//lib/prism/dsl.rb#506 + # source://prism//lib/prism/dsl.rb#511 def LocalVariableAndWriteNode(name_loc, operator_loc, value, name, depth, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new LocalVariableOperatorWriteNode node # - # source://prism//lib/prism/dsl.rb#511 + # source://prism//lib/prism/dsl.rb#516 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 # - # source://prism//lib/prism/dsl.rb#516 + # source://prism//lib/prism/dsl.rb#521 def LocalVariableOrWriteNode(name_loc, operator_loc, value, name, depth, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new LocalVariableReadNode node # - # source://prism//lib/prism/dsl.rb#521 + # source://prism//lib/prism/dsl.rb#526 def LocalVariableReadNode(name, depth, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new LocalVariableTargetNode node # - # source://prism//lib/prism/dsl.rb#526 + # source://prism//lib/prism/dsl.rb#531 def LocalVariableTargetNode(name, depth, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new LocalVariableWriteNode node # - # source://prism//lib/prism/dsl.rb#531 + # source://prism//lib/prism/dsl.rb#536 def LocalVariableWriteNode(name, depth, name_loc, value, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new Location object @@ -9000,425 +9017,283 @@ module Prism::DSL # Create a new MatchLastLineNode node # - # source://prism//lib/prism/dsl.rb#536 + # source://prism//lib/prism/dsl.rb#541 def MatchLastLineNode(flags, opening_loc, content_loc, closing_loc, unescaped, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new MatchPredicateNode node # - # source://prism//lib/prism/dsl.rb#541 + # source://prism//lib/prism/dsl.rb#546 def MatchPredicateNode(value, pattern, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new MatchRequiredNode node # - # source://prism//lib/prism/dsl.rb#546 + # source://prism//lib/prism/dsl.rb#551 def MatchRequiredNode(value, pattern, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new MatchWriteNode node # - # source://prism//lib/prism/dsl.rb#551 + # source://prism//lib/prism/dsl.rb#556 def MatchWriteNode(call, targets, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new MissingNode node # - # source://prism//lib/prism/dsl.rb#556 + # source://prism//lib/prism/dsl.rb#561 def MissingNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ModuleNode node # - # source://prism//lib/prism/dsl.rb#561 + # source://prism//lib/prism/dsl.rb#566 def ModuleNode(locals, module_keyword_loc, constant_path, body, end_keyword_loc, name, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new MultiTargetNode node # - # source://prism//lib/prism/dsl.rb#566 + # source://prism//lib/prism/dsl.rb#571 def MultiTargetNode(lefts, rest, rights, lparen_loc, rparen_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new MultiWriteNode node # - # source://prism//lib/prism/dsl.rb#571 + # source://prism//lib/prism/dsl.rb#576 def MultiWriteNode(lefts, rest, rights, lparen_loc, rparen_loc, operator_loc, value, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new NextNode node # - # source://prism//lib/prism/dsl.rb#576 + # source://prism//lib/prism/dsl.rb#581 def NextNode(arguments, keyword_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new NilNode node # - # source://prism//lib/prism/dsl.rb#581 + # source://prism//lib/prism/dsl.rb#586 def NilNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new NoKeywordsParameterNode node # - # source://prism//lib/prism/dsl.rb#586 + # source://prism//lib/prism/dsl.rb#591 def NoKeywordsParameterNode(operator_loc, keyword_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new NumberedParametersNode node # - # source://prism//lib/prism/dsl.rb#591 + # source://prism//lib/prism/dsl.rb#596 def NumberedParametersNode(maximum, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new NumberedReferenceReadNode node # - # source://prism//lib/prism/dsl.rb#596 + # source://prism//lib/prism/dsl.rb#601 def NumberedReferenceReadNode(number, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new OptionalKeywordParameterNode node # - # source://prism//lib/prism/dsl.rb#601 + # source://prism//lib/prism/dsl.rb#606 def OptionalKeywordParameterNode(flags, name, name_loc, value, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new OptionalParameterNode node # - # source://prism//lib/prism/dsl.rb#606 + # source://prism//lib/prism/dsl.rb#611 def OptionalParameterNode(flags, name, name_loc, operator_loc, value, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new OrNode node # - # source://prism//lib/prism/dsl.rb#611 + # source://prism//lib/prism/dsl.rb#616 def OrNode(left, right, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ParametersNode node # - # source://prism//lib/prism/dsl.rb#616 + # source://prism//lib/prism/dsl.rb#621 def ParametersNode(requireds, optionals, rest, posts, keywords, keyword_rest, block, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ParenthesesNode node # - # source://prism//lib/prism/dsl.rb#621 + # source://prism//lib/prism/dsl.rb#626 def ParenthesesNode(body, opening_loc, closing_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new PinnedExpressionNode node # - # source://prism//lib/prism/dsl.rb#626 + # source://prism//lib/prism/dsl.rb#631 def PinnedExpressionNode(expression, operator_loc, lparen_loc, rparen_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new PinnedVariableNode node # - # source://prism//lib/prism/dsl.rb#631 + # source://prism//lib/prism/dsl.rb#636 def PinnedVariableNode(variable, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new PostExecutionNode node # - # source://prism//lib/prism/dsl.rb#636 + # source://prism//lib/prism/dsl.rb#641 def PostExecutionNode(statements, keyword_loc, opening_loc, closing_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new PreExecutionNode node # - # source://prism//lib/prism/dsl.rb#641 + # source://prism//lib/prism/dsl.rb#646 def PreExecutionNode(statements, keyword_loc, opening_loc, closing_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ProgramNode node # - # source://prism//lib/prism/dsl.rb#646 + # source://prism//lib/prism/dsl.rb#651 def ProgramNode(locals, statements, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RangeNode node # - # source://prism//lib/prism/dsl.rb#651 + # source://prism//lib/prism/dsl.rb#656 def RangeNode(flags, left, right, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RationalNode node # - # source://prism//lib/prism/dsl.rb#656 - def RationalNode(numeric, source = T.unsafe(nil), location = T.unsafe(nil)); end + # source://prism//lib/prism/dsl.rb#661 + def RationalNode(flags, numerator, denominator, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RedoNode node # - # source://prism//lib/prism/dsl.rb#661 + # source://prism//lib/prism/dsl.rb#666 def RedoNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RegularExpressionNode node # - # source://prism//lib/prism/dsl.rb#666 + # source://prism//lib/prism/dsl.rb#671 def RegularExpressionNode(flags, opening_loc, content_loc, closing_loc, unescaped, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RequiredKeywordParameterNode node # - # source://prism//lib/prism/dsl.rb#671 + # source://prism//lib/prism/dsl.rb#676 def RequiredKeywordParameterNode(flags, name, name_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RequiredParameterNode node # - # source://prism//lib/prism/dsl.rb#676 + # source://prism//lib/prism/dsl.rb#681 def RequiredParameterNode(flags, name, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RescueModifierNode node # - # source://prism//lib/prism/dsl.rb#681 + # source://prism//lib/prism/dsl.rb#686 def RescueModifierNode(expression, keyword_loc, rescue_expression, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RescueNode node # - # source://prism//lib/prism/dsl.rb#686 + # source://prism//lib/prism/dsl.rb#691 def RescueNode(keyword_loc, exceptions, operator_loc, reference, statements, consequent, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RestParameterNode node # - # source://prism//lib/prism/dsl.rb#691 + # source://prism//lib/prism/dsl.rb#696 def RestParameterNode(flags, name, name_loc, operator_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new RetryNode node # - # source://prism//lib/prism/dsl.rb#696 + # source://prism//lib/prism/dsl.rb#701 def RetryNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ReturnNode node # - # source://prism//lib/prism/dsl.rb#701 + # source://prism//lib/prism/dsl.rb#706 def ReturnNode(flags, keyword_loc, arguments, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SelfNode node # - # source://prism//lib/prism/dsl.rb#706 + # source://prism//lib/prism/dsl.rb#711 def SelfNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new ShareableConstantNode node # - # source://prism//lib/prism/dsl.rb#711 + # source://prism//lib/prism/dsl.rb#716 def ShareableConstantNode(flags, write, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SingletonClassNode node # - # source://prism//lib/prism/dsl.rb#716 + # source://prism//lib/prism/dsl.rb#721 def SingletonClassNode(locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SourceEncodingNode node # - # source://prism//lib/prism/dsl.rb#721 + # source://prism//lib/prism/dsl.rb#726 def SourceEncodingNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SourceFileNode node # - # source://prism//lib/prism/dsl.rb#726 + # source://prism//lib/prism/dsl.rb#731 def SourceFileNode(flags, filepath, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SourceLineNode node # - # source://prism//lib/prism/dsl.rb#731 + # source://prism//lib/prism/dsl.rb#736 def SourceLineNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SplatNode node # - # source://prism//lib/prism/dsl.rb#736 + # source://prism//lib/prism/dsl.rb#741 def SplatNode(operator_loc, expression, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new StatementsNode node # - # source://prism//lib/prism/dsl.rb#741 + # source://prism//lib/prism/dsl.rb#746 def StatementsNode(body, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new StringNode node # - # source://prism//lib/prism/dsl.rb#746 + # source://prism//lib/prism/dsl.rb#751 def StringNode(flags, opening_loc, content_loc, closing_loc, unescaped, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SuperNode node # - # source://prism//lib/prism/dsl.rb#751 + # source://prism//lib/prism/dsl.rb#756 def SuperNode(keyword_loc, lparen_loc, arguments, rparen_loc, block, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new SymbolNode node # - # source://prism//lib/prism/dsl.rb#756 + # source://prism//lib/prism/dsl.rb#761 def SymbolNode(flags, opening_loc, value_loc, closing_loc, unescaped, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new TrueNode node # - # source://prism//lib/prism/dsl.rb#761 + # source://prism//lib/prism/dsl.rb#766 def TrueNode(source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new UndefNode node # - # source://prism//lib/prism/dsl.rb#766 + # source://prism//lib/prism/dsl.rb#771 def UndefNode(names, keyword_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new UnlessNode node # - # source://prism//lib/prism/dsl.rb#771 + # source://prism//lib/prism/dsl.rb#776 def UnlessNode(keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new UntilNode node # - # source://prism//lib/prism/dsl.rb#776 + # source://prism//lib/prism/dsl.rb#781 def UntilNode(flags, keyword_loc, closing_loc, predicate, statements, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new WhenNode node # - # source://prism//lib/prism/dsl.rb#781 + # source://prism//lib/prism/dsl.rb#786 def WhenNode(keyword_loc, conditions, then_keyword_loc, statements, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new WhileNode node # - # source://prism//lib/prism/dsl.rb#786 + # source://prism//lib/prism/dsl.rb#791 def WhileNode(flags, keyword_loc, closing_loc, predicate, statements, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new XStringNode node # - # source://prism//lib/prism/dsl.rb#791 + # source://prism//lib/prism/dsl.rb#796 def XStringNode(flags, opening_loc, content_loc, closing_loc, unescaped, source = T.unsafe(nil), location = T.unsafe(nil)); end # Create a new YieldNode node # - # source://prism//lib/prism/dsl.rb#796 + # source://prism//lib/prism/dsl.rb#801 def YieldNode(keyword_loc, lparen_loc, arguments, rparen_loc, source = T.unsafe(nil), location = T.unsafe(nil)); end end -# This module is used for testing and debugging and is not meant to be used by -# consumers of this library. -# -# source://prism//lib/prism/debug.rb#6 -module Prism::Debug - class << self - # :call-seq: - # Debug::cruby_locals(source) -> Array - # - # For the given source, compiles with CRuby and returns a list of all of the - # sets of local variables that were encountered. - # - # source://prism//lib/prism/debug.rb#54 - def cruby_locals(source); end - - def format_errors(_arg0, _arg1); end - def inspect_node(_arg0); end - def integer_parse(_arg0); end - def memsize(_arg0); end - def named_captures(_arg0); end - - # :call-seq: - # Debug::newlines(source) -> Array - # - # For the given source string, return the byte offsets of every newline in - # the source. - # - # source://prism//lib/prism/debug.rb#202 - def newlines(source); end - - # :call-seq: - # Debug::prism_locals(source) -> Array - # - # For the given source, parses with prism and returns a list of all of the - # sets of local variables that were encountered. - # - # source://prism//lib/prism/debug.rb#98 - def prism_locals(source); end - - def profile_file(_arg0); end - def static_inspect(*_arg0); end - end -end - -# Used to hold the place of a local that will be in the local table but -# cannot be accessed directly from the source code. For example, the -# iteration variable in a for loop or the positional parameter on a method -# definition that is destructured. -# -# source://prism//lib/prism/debug.rb#90 -Prism::Debug::AnonymousLocal = T.let(T.unsafe(nil), Object) - -# A wrapping around prism's internal encoding data structures. This is used -# for reflection and debugging purposes. -# -# source://prism//lib/prism/debug.rb#208 -class Prism::Debug::Encoding - # Initialize a new encoding with the given name and whether or not it is - # a multibyte encoding. - # - # @return [Encoding] a new instance of Encoding - # - # source://prism//lib/prism/debug.rb#214 - def initialize(name, multibyte); end - - # Returns true if the first character in the source string is a valid - # alphanumeric character for the encoding. - # - # @return [Boolean] - # - # source://prism//lib/prism/debug.rb#232 - def alnum?(source); end - - # Returns true if the first character in the source string is a valid - # alphabetic character for the encoding. - # - # @return [Boolean] - # - # source://prism//lib/prism/debug.rb#238 - def alpha?(source); end - - # Whether or not the encoding is a multibyte encoding. - # - # @return [Boolean] - # - # source://prism//lib/prism/debug.rb#220 - def multibyte?; end - - # The name of the encoding, that can be passed to Encoding.find. - # - # source://prism//lib/prism/debug.rb#210 - def name; end - - # Returns true if the first character in the source string is a valid - # uppercase character for the encoding. - # - # @return [Boolean] - # - # source://prism//lib/prism/debug.rb#244 - def upper?(source); end - - # Returns the number of bytes of the first character in the source string, - # if it is valid for the encoding. Otherwise, returns 0. - # - # source://prism//lib/prism/debug.rb#226 - def width(source); end - - class << self - def _alnum?(_arg0, _arg1); end - def _alpha?(_arg0, _arg1); end - def _upper?(_arg0, _arg1); end - def _width(_arg0, _arg1); end - def all; end - end -end - -# A wrapper around a RubyVM::InstructionSequence that provides a more -# convenient interface for accessing parts of the iseq. -# -# source://prism//lib/prism/debug.rb#9 -class Prism::Debug::ISeq - # @return [ISeq] a new instance of ISeq - # - # source://prism//lib/prism/debug.rb#12 - def initialize(parts); end - - # source://prism//lib/prism/debug.rb#28 - def each_child; end - - # source://prism//lib/prism/debug.rb#24 - def instructions; end - - # source://prism//lib/prism/debug.rb#20 - def local_table; end - - # source://prism//lib/prism/debug.rb#10 - def parts; end - - # source://prism//lib/prism/debug.rb#16 - def type; end -end - # Represents a method definition. # # def method # end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#5853 +# source://prism//lib/prism/node.rb#5793 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#5855 + # source://prism//lib/prism/node.rb#5795 sig do params( source: Prism::Source, @@ -9442,42 +9317,42 @@ class Prism::DefNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6008 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#5874 + # source://prism//lib/prism/node.rb#5813 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#5927 + # source://prism//lib/prism/node.rb#5866 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5879 + # source://prism//lib/prism/node.rb#5818 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#5893 + # source://prism//lib/prism/node.rb#5832 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#5884 + # source://prism//lib/prism/node.rb#5823 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#5898 + # source://prism//lib/prism/node.rb#5837 sig do params( name: Symbol, @@ -9500,49 +9375,49 @@ class Prism::DefNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#5879 + # source://prism//lib/prism/node.rb#5818 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#5906 + # source://prism//lib/prism/node.rb#5845 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#6005 + # source://prism//lib/prism/node.rb#5944 sig { returns(String) } def def_keyword; end # attr_reader def_keyword_loc: Location # - # source://prism//lib/prism/node.rb#5933 + # source://prism//lib/prism/node.rb#5872 sig { returns(Prism::Location) } def def_keyword_loc; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#6030 + # source://prism//lib/prism/node.rb#5969 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#5992 + # source://prism//lib/prism/node.rb#5931 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end # def equal: () -> String? # - # source://prism//lib/prism/node.rb#6025 + # source://prism//lib/prism/node.rb#5964 sig { returns(T.nilable(String)) } def equal; end # attr_reader equal_loc: Location? # - # source://prism//lib/prism/node.rb#5979 + # source://prism//lib/prism/node.rb#5918 sig { returns(T.nilable(Prism::Location)) } def equal_loc; end @@ -9551,73 +9426,73 @@ class Prism::DefNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6035 + # source://prism//lib/prism/node.rb#5974 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#5930 + # source://prism//lib/prism/node.rb#5869 sig { returns(T::Array[Symbol]) } def locals; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#6015 + # source://prism//lib/prism/node.rb#5954 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#5953 + # source://prism//lib/prism/node.rb#5892 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#5911 + # source://prism//lib/prism/node.rb#5850 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#5914 + # source://prism//lib/prism/node.rb#5853 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#6010 + # source://prism//lib/prism/node.rb#5949 sig { returns(T.nilable(String)) } def operator; end # attr_reader operator_loc: Location? # - # source://prism//lib/prism/node.rb#5940 + # source://prism//lib/prism/node.rb#5879 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end # attr_reader parameters: ParametersNode? # - # source://prism//lib/prism/node.rb#5924 + # source://prism//lib/prism/node.rb#5863 sig { returns(T.nilable(Prism::ParametersNode)) } def parameters; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#5921 + # source://prism//lib/prism/node.rb#5860 sig { returns(T.nilable(Prism::Node)) } def receiver; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#6020 + # source://prism//lib/prism/node.rb#5959 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#5966 + # source://prism//lib/prism/node.rb#5905 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -9636,7 +9511,7 @@ class Prism::DefNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6053 + # source://prism//lib/prism/node.rb#5992 sig { override.returns(Symbol) } def type; end @@ -9648,7 +9523,7 @@ class Prism::DefNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6063 + # source://prism//lib/prism/node.rb#6002 def type; end end end @@ -9658,13 +9533,13 @@ end # defined?(a) # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6091 +# source://prism//lib/prism/node.rb#6030 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#6093 + # source://prism//lib/prism/node.rb#6032 sig do params( source: Prism::Source, @@ -9680,36 +9555,36 @@ class Prism::DefinedNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6160 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6104 + # source://prism//lib/prism/node.rb#6042 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#6109 + # source://prism//lib/prism/node.rb#6047 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#6119 + # source://prism//lib/prism/node.rb#6057 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#6114 + # source://prism//lib/prism/node.rb#6052 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#6124 + # source://prism//lib/prism/node.rb#6062 sig do params( lparen_loc: T.nilable(Prism::Location), @@ -9724,13 +9599,13 @@ class Prism::DefinedNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6109 + # source://prism//lib/prism/node.rb#6047 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#6132 + # source://prism//lib/prism/node.rb#6070 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -9739,43 +9614,43 @@ class Prism::DefinedNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6188 + # source://prism//lib/prism/node.rb#6126 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#6183 + # source://prism//lib/prism/node.rb#6121 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#6166 + # source://prism//lib/prism/node.rb#6104 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#6173 + # source://prism//lib/prism/node.rb#6111 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#6137 + # source://prism//lib/prism/node.rb#6075 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#6178 + # source://prism//lib/prism/node.rb#6116 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#6153 + # source://prism//lib/prism/node.rb#6091 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -9794,13 +9669,13 @@ class Prism::DefinedNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6206 + # source://prism//lib/prism/node.rb#6144 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#6150 + # source://prism//lib/prism/node.rb#6088 sig { returns(Prism::Node) } def value; end @@ -9812,7 +9687,7 @@ class Prism::DefinedNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6216 + # source://prism//lib/prism/node.rb#6154 def type; end end end @@ -10686,1145 +10561,1156 @@ class Prism::Dispatcher < ::Prism::Visitor # source://prism//lib/prism/dispatcher.rb#759 def visit_interpolated_x_string_node(node); end - # Dispatch enter and leave events for ItParametersNode nodes and continue + # Dispatch enter and leave events for ItLocalVariableReadNode nodes and continue # walking the tree. # # source://prism//lib/prism/dispatcher.rb#767 + def visit_it_local_variable_read_node(node); end + + # Dispatch enter and leave events for ItParametersNode nodes and continue + # walking the tree. + # + # source://prism//lib/prism/dispatcher.rb#775 def visit_it_parameters_node(node); end # Dispatch enter and leave events for KeywordHashNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#775 + # source://prism//lib/prism/dispatcher.rb#783 def visit_keyword_hash_node(node); end # Dispatch enter and leave events for KeywordRestParameterNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#783 + # source://prism//lib/prism/dispatcher.rb#791 def visit_keyword_rest_parameter_node(node); end # Dispatch enter and leave events for LambdaNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#791 + # source://prism//lib/prism/dispatcher.rb#799 def visit_lambda_node(node); end # Dispatch enter and leave events for LocalVariableAndWriteNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#799 + # source://prism//lib/prism/dispatcher.rb#807 def visit_local_variable_and_write_node(node); end # Dispatch enter and leave events for LocalVariableOperatorWriteNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#807 + # source://prism//lib/prism/dispatcher.rb#815 def visit_local_variable_operator_write_node(node); end # Dispatch enter and leave events for LocalVariableOrWriteNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#815 + # source://prism//lib/prism/dispatcher.rb#823 def visit_local_variable_or_write_node(node); end # Dispatch enter and leave events for LocalVariableReadNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#823 + # source://prism//lib/prism/dispatcher.rb#831 def visit_local_variable_read_node(node); end # Dispatch enter and leave events for LocalVariableTargetNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#831 + # source://prism//lib/prism/dispatcher.rb#839 def visit_local_variable_target_node(node); end # Dispatch enter and leave events for LocalVariableWriteNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#839 + # source://prism//lib/prism/dispatcher.rb#847 def visit_local_variable_write_node(node); end # Dispatch enter and leave events for MatchLastLineNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#847 + # source://prism//lib/prism/dispatcher.rb#855 def visit_match_last_line_node(node); end # Dispatch enter and leave events for MatchPredicateNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#855 + # source://prism//lib/prism/dispatcher.rb#863 def visit_match_predicate_node(node); end # Dispatch enter and leave events for MatchRequiredNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#863 + # source://prism//lib/prism/dispatcher.rb#871 def visit_match_required_node(node); end # Dispatch enter and leave events for MatchWriteNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#871 + # source://prism//lib/prism/dispatcher.rb#879 def visit_match_write_node(node); end # Dispatch enter and leave events for MissingNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#879 + # source://prism//lib/prism/dispatcher.rb#887 def visit_missing_node(node); end # Dispatch enter and leave events for ModuleNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#887 + # source://prism//lib/prism/dispatcher.rb#895 def visit_module_node(node); end # Dispatch enter and leave events for MultiTargetNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#895 + # source://prism//lib/prism/dispatcher.rb#903 def visit_multi_target_node(node); end # Dispatch enter and leave events for MultiWriteNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#903 + # source://prism//lib/prism/dispatcher.rb#911 def visit_multi_write_node(node); end # Dispatch enter and leave events for NextNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#911 + # source://prism//lib/prism/dispatcher.rb#919 def visit_next_node(node); end # Dispatch enter and leave events for NilNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#919 + # source://prism//lib/prism/dispatcher.rb#927 def visit_nil_node(node); end # Dispatch enter and leave events for NoKeywordsParameterNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#927 + # source://prism//lib/prism/dispatcher.rb#935 def visit_no_keywords_parameter_node(node); end # Dispatch enter and leave events for NumberedParametersNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#935 + # source://prism//lib/prism/dispatcher.rb#943 def visit_numbered_parameters_node(node); end # Dispatch enter and leave events for NumberedReferenceReadNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#943 + # source://prism//lib/prism/dispatcher.rb#951 def visit_numbered_reference_read_node(node); end # Dispatch enter and leave events for OptionalKeywordParameterNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#951 + # source://prism//lib/prism/dispatcher.rb#959 def visit_optional_keyword_parameter_node(node); end # Dispatch enter and leave events for OptionalParameterNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#959 + # source://prism//lib/prism/dispatcher.rb#967 def visit_optional_parameter_node(node); end # Dispatch enter and leave events for OrNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#967 + # source://prism//lib/prism/dispatcher.rb#975 def visit_or_node(node); end # Dispatch enter and leave events for ParametersNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#975 + # source://prism//lib/prism/dispatcher.rb#983 def visit_parameters_node(node); end # Dispatch enter and leave events for ParenthesesNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#983 + # source://prism//lib/prism/dispatcher.rb#991 def visit_parentheses_node(node); end # Dispatch enter and leave events for PinnedExpressionNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#991 + # source://prism//lib/prism/dispatcher.rb#999 def visit_pinned_expression_node(node); end # Dispatch enter and leave events for PinnedVariableNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#999 + # source://prism//lib/prism/dispatcher.rb#1007 def visit_pinned_variable_node(node); end # Dispatch enter and leave events for PostExecutionNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1007 + # source://prism//lib/prism/dispatcher.rb#1015 def visit_post_execution_node(node); end # Dispatch enter and leave events for PreExecutionNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1015 + # source://prism//lib/prism/dispatcher.rb#1023 def visit_pre_execution_node(node); end # Dispatch enter and leave events for ProgramNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1023 + # source://prism//lib/prism/dispatcher.rb#1031 def visit_program_node(node); end # Dispatch enter and leave events for RangeNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1031 + # source://prism//lib/prism/dispatcher.rb#1039 def visit_range_node(node); end # Dispatch enter and leave events for RationalNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1039 + # source://prism//lib/prism/dispatcher.rb#1047 def visit_rational_node(node); end # Dispatch enter and leave events for RedoNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1047 + # source://prism//lib/prism/dispatcher.rb#1055 def visit_redo_node(node); end # Dispatch enter and leave events for RegularExpressionNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1055 + # source://prism//lib/prism/dispatcher.rb#1063 def visit_regular_expression_node(node); end # Dispatch enter and leave events for RequiredKeywordParameterNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1063 + # source://prism//lib/prism/dispatcher.rb#1071 def visit_required_keyword_parameter_node(node); end # Dispatch enter and leave events for RequiredParameterNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1071 + # source://prism//lib/prism/dispatcher.rb#1079 def visit_required_parameter_node(node); end # Dispatch enter and leave events for RescueModifierNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1079 + # source://prism//lib/prism/dispatcher.rb#1087 def visit_rescue_modifier_node(node); end # Dispatch enter and leave events for RescueNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1087 + # source://prism//lib/prism/dispatcher.rb#1095 def visit_rescue_node(node); end # Dispatch enter and leave events for RestParameterNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1095 + # source://prism//lib/prism/dispatcher.rb#1103 def visit_rest_parameter_node(node); end # Dispatch enter and leave events for RetryNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1103 + # source://prism//lib/prism/dispatcher.rb#1111 def visit_retry_node(node); end # Dispatch enter and leave events for ReturnNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1111 + # source://prism//lib/prism/dispatcher.rb#1119 def visit_return_node(node); end # Dispatch enter and leave events for SelfNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1119 + # source://prism//lib/prism/dispatcher.rb#1127 def visit_self_node(node); end # Dispatch enter and leave events for ShareableConstantNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1127 + # source://prism//lib/prism/dispatcher.rb#1135 def visit_shareable_constant_node(node); end # Dispatch enter and leave events for SingletonClassNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1135 + # source://prism//lib/prism/dispatcher.rb#1143 def visit_singleton_class_node(node); end # Dispatch enter and leave events for SourceEncodingNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1143 + # source://prism//lib/prism/dispatcher.rb#1151 def visit_source_encoding_node(node); end # Dispatch enter and leave events for SourceFileNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1151 + # source://prism//lib/prism/dispatcher.rb#1159 def visit_source_file_node(node); end # Dispatch enter and leave events for SourceLineNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1159 + # source://prism//lib/prism/dispatcher.rb#1167 def visit_source_line_node(node); end # Dispatch enter and leave events for SplatNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1167 + # source://prism//lib/prism/dispatcher.rb#1175 def visit_splat_node(node); end # Dispatch enter and leave events for StatementsNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1175 + # source://prism//lib/prism/dispatcher.rb#1183 def visit_statements_node(node); end # Dispatch enter and leave events for StringNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1183 + # source://prism//lib/prism/dispatcher.rb#1191 def visit_string_node(node); end # Dispatch enter and leave events for SuperNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1191 + # source://prism//lib/prism/dispatcher.rb#1199 def visit_super_node(node); end # Dispatch enter and leave events for SymbolNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1199 + # source://prism//lib/prism/dispatcher.rb#1207 def visit_symbol_node(node); end # Dispatch enter and leave events for TrueNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1207 + # source://prism//lib/prism/dispatcher.rb#1215 def visit_true_node(node); end # Dispatch enter and leave events for UndefNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1215 + # source://prism//lib/prism/dispatcher.rb#1223 def visit_undef_node(node); end # Dispatch enter and leave events for UnlessNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1223 + # source://prism//lib/prism/dispatcher.rb#1231 def visit_unless_node(node); end # Dispatch enter and leave events for UntilNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1231 + # source://prism//lib/prism/dispatcher.rb#1239 def visit_until_node(node); end # Dispatch enter and leave events for WhenNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1239 + # source://prism//lib/prism/dispatcher.rb#1247 def visit_when_node(node); end # Dispatch enter and leave events for WhileNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1247 + # source://prism//lib/prism/dispatcher.rb#1255 def visit_while_node(node); end # Dispatch enter and leave events for XStringNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1255 + # source://prism//lib/prism/dispatcher.rb#1263 def visit_x_string_node(node); end # Dispatch enter and leave events for YieldNode nodes and continue # walking the tree. # - # source://prism//lib/prism/dispatcher.rb#1263 + # source://prism//lib/prism/dispatcher.rb#1271 def visit_yield_node(node); end end -# source://prism//lib/prism/dispatcher.rb#1269 +# source://prism//lib/prism/dispatcher.rb#1277 class Prism::Dispatcher::DispatchOnce < ::Prism::Visitor # @return [DispatchOnce] a new instance of DispatchOnce # - # source://prism//lib/prism/dispatcher.rb#1272 + # source://prism//lib/prism/dispatcher.rb#1280 def initialize(listeners); end # Returns the value of attribute listeners. # - # source://prism//lib/prism/dispatcher.rb#1270 + # source://prism//lib/prism/dispatcher.rb#1278 def listeners; end # Dispatch enter and leave events for AliasGlobalVariableNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1277 + # source://prism//lib/prism/dispatcher.rb#1285 def visit_alias_global_variable_node(node); end # Dispatch enter and leave events for AliasMethodNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1283 + # source://prism//lib/prism/dispatcher.rb#1291 def visit_alias_method_node(node); end # Dispatch enter and leave events for AlternationPatternNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1289 + # source://prism//lib/prism/dispatcher.rb#1297 def visit_alternation_pattern_node(node); end # Dispatch enter and leave events for AndNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1295 + # source://prism//lib/prism/dispatcher.rb#1303 def visit_and_node(node); end # Dispatch enter and leave events for ArgumentsNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1301 + # source://prism//lib/prism/dispatcher.rb#1309 def visit_arguments_node(node); end # Dispatch enter and leave events for ArrayNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1307 + # source://prism//lib/prism/dispatcher.rb#1315 def visit_array_node(node); end # Dispatch enter and leave events for ArrayPatternNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1313 + # source://prism//lib/prism/dispatcher.rb#1321 def visit_array_pattern_node(node); end # Dispatch enter and leave events for AssocNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1319 + # source://prism//lib/prism/dispatcher.rb#1327 def visit_assoc_node(node); end # Dispatch enter and leave events for AssocSplatNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1325 + # source://prism//lib/prism/dispatcher.rb#1333 def visit_assoc_splat_node(node); end # Dispatch enter and leave events for BackReferenceReadNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1331 + # source://prism//lib/prism/dispatcher.rb#1339 def visit_back_reference_read_node(node); end # Dispatch enter and leave events for BeginNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1337 + # source://prism//lib/prism/dispatcher.rb#1345 def visit_begin_node(node); end # Dispatch enter and leave events for BlockArgumentNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1343 + # source://prism//lib/prism/dispatcher.rb#1351 def visit_block_argument_node(node); end # Dispatch enter and leave events for BlockLocalVariableNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1349 + # source://prism//lib/prism/dispatcher.rb#1357 def visit_block_local_variable_node(node); end # Dispatch enter and leave events for BlockNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1355 + # source://prism//lib/prism/dispatcher.rb#1363 def visit_block_node(node); end # Dispatch enter and leave events for BlockParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1361 + # source://prism//lib/prism/dispatcher.rb#1369 def visit_block_parameter_node(node); end # Dispatch enter and leave events for BlockParametersNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1367 + # source://prism//lib/prism/dispatcher.rb#1375 def visit_block_parameters_node(node); end # Dispatch enter and leave events for BreakNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1373 + # source://prism//lib/prism/dispatcher.rb#1381 def visit_break_node(node); end # Dispatch enter and leave events for CallAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1379 + # source://prism//lib/prism/dispatcher.rb#1387 def visit_call_and_write_node(node); end # Dispatch enter and leave events for CallNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1385 + # source://prism//lib/prism/dispatcher.rb#1393 def visit_call_node(node); end # Dispatch enter and leave events for CallOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1391 + # source://prism//lib/prism/dispatcher.rb#1399 def visit_call_operator_write_node(node); end # Dispatch enter and leave events for CallOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1397 + # source://prism//lib/prism/dispatcher.rb#1405 def visit_call_or_write_node(node); end # Dispatch enter and leave events for CallTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1403 + # source://prism//lib/prism/dispatcher.rb#1411 def visit_call_target_node(node); end # Dispatch enter and leave events for CapturePatternNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1409 + # source://prism//lib/prism/dispatcher.rb#1417 def visit_capture_pattern_node(node); end # Dispatch enter and leave events for CaseMatchNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1415 + # source://prism//lib/prism/dispatcher.rb#1423 def visit_case_match_node(node); end # Dispatch enter and leave events for CaseNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1421 + # source://prism//lib/prism/dispatcher.rb#1429 def visit_case_node(node); end # Dispatch enter and leave events for ClassNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1427 + # source://prism//lib/prism/dispatcher.rb#1435 def visit_class_node(node); end # Dispatch enter and leave events for ClassVariableAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1433 + # source://prism//lib/prism/dispatcher.rb#1441 def visit_class_variable_and_write_node(node); end # Dispatch enter and leave events for ClassVariableOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1439 + # source://prism//lib/prism/dispatcher.rb#1447 def visit_class_variable_operator_write_node(node); end # Dispatch enter and leave events for ClassVariableOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1445 + # source://prism//lib/prism/dispatcher.rb#1453 def visit_class_variable_or_write_node(node); end # Dispatch enter and leave events for ClassVariableReadNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1451 + # source://prism//lib/prism/dispatcher.rb#1459 def visit_class_variable_read_node(node); end # Dispatch enter and leave events for ClassVariableTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1457 + # source://prism//lib/prism/dispatcher.rb#1465 def visit_class_variable_target_node(node); end # Dispatch enter and leave events for ClassVariableWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1463 + # source://prism//lib/prism/dispatcher.rb#1471 def visit_class_variable_write_node(node); end # Dispatch enter and leave events for ConstantAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1469 + # source://prism//lib/prism/dispatcher.rb#1477 def visit_constant_and_write_node(node); end # Dispatch enter and leave events for ConstantOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1475 + # source://prism//lib/prism/dispatcher.rb#1483 def visit_constant_operator_write_node(node); end # Dispatch enter and leave events for ConstantOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1481 + # source://prism//lib/prism/dispatcher.rb#1489 def visit_constant_or_write_node(node); end # Dispatch enter and leave events for ConstantPathAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1487 + # source://prism//lib/prism/dispatcher.rb#1495 def visit_constant_path_and_write_node(node); end # Dispatch enter and leave events for ConstantPathNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1493 + # source://prism//lib/prism/dispatcher.rb#1501 def visit_constant_path_node(node); end # Dispatch enter and leave events for ConstantPathOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1499 + # source://prism//lib/prism/dispatcher.rb#1507 def visit_constant_path_operator_write_node(node); end # Dispatch enter and leave events for ConstantPathOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1505 + # source://prism//lib/prism/dispatcher.rb#1513 def visit_constant_path_or_write_node(node); end # Dispatch enter and leave events for ConstantPathTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1511 + # source://prism//lib/prism/dispatcher.rb#1519 def visit_constant_path_target_node(node); end # Dispatch enter and leave events for ConstantPathWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1517 + # source://prism//lib/prism/dispatcher.rb#1525 def visit_constant_path_write_node(node); end # Dispatch enter and leave events for ConstantReadNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1523 + # source://prism//lib/prism/dispatcher.rb#1531 def visit_constant_read_node(node); end # Dispatch enter and leave events for ConstantTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1529 + # source://prism//lib/prism/dispatcher.rb#1537 def visit_constant_target_node(node); end # Dispatch enter and leave events for ConstantWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1535 + # source://prism//lib/prism/dispatcher.rb#1543 def visit_constant_write_node(node); end # Dispatch enter and leave events for DefNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1541 + # source://prism//lib/prism/dispatcher.rb#1549 def visit_def_node(node); end # Dispatch enter and leave events for DefinedNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1547 + # source://prism//lib/prism/dispatcher.rb#1555 def visit_defined_node(node); end # Dispatch enter and leave events for ElseNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1553 + # source://prism//lib/prism/dispatcher.rb#1561 def visit_else_node(node); end # Dispatch enter and leave events for EmbeddedStatementsNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1559 + # source://prism//lib/prism/dispatcher.rb#1567 def visit_embedded_statements_node(node); end # Dispatch enter and leave events for EmbeddedVariableNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1565 + # source://prism//lib/prism/dispatcher.rb#1573 def visit_embedded_variable_node(node); end # Dispatch enter and leave events for EnsureNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1571 + # source://prism//lib/prism/dispatcher.rb#1579 def visit_ensure_node(node); end # Dispatch enter and leave events for FalseNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1577 + # source://prism//lib/prism/dispatcher.rb#1585 def visit_false_node(node); end # Dispatch enter and leave events for FindPatternNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1583 + # source://prism//lib/prism/dispatcher.rb#1591 def visit_find_pattern_node(node); end # Dispatch enter and leave events for FlipFlopNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1589 + # source://prism//lib/prism/dispatcher.rb#1597 def visit_flip_flop_node(node); end # Dispatch enter and leave events for FloatNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1595 + # source://prism//lib/prism/dispatcher.rb#1603 def visit_float_node(node); end # Dispatch enter and leave events for ForNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1601 + # source://prism//lib/prism/dispatcher.rb#1609 def visit_for_node(node); end # Dispatch enter and leave events for ForwardingArgumentsNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1607 + # source://prism//lib/prism/dispatcher.rb#1615 def visit_forwarding_arguments_node(node); end # Dispatch enter and leave events for ForwardingParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1613 + # source://prism//lib/prism/dispatcher.rb#1621 def visit_forwarding_parameter_node(node); end # Dispatch enter and leave events for ForwardingSuperNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1619 + # source://prism//lib/prism/dispatcher.rb#1627 def visit_forwarding_super_node(node); end # Dispatch enter and leave events for GlobalVariableAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1625 + # source://prism//lib/prism/dispatcher.rb#1633 def visit_global_variable_and_write_node(node); end # Dispatch enter and leave events for GlobalVariableOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1631 + # source://prism//lib/prism/dispatcher.rb#1639 def visit_global_variable_operator_write_node(node); end # Dispatch enter and leave events for GlobalVariableOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1637 + # source://prism//lib/prism/dispatcher.rb#1645 def visit_global_variable_or_write_node(node); end # Dispatch enter and leave events for GlobalVariableReadNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1643 + # source://prism//lib/prism/dispatcher.rb#1651 def visit_global_variable_read_node(node); end # Dispatch enter and leave events for GlobalVariableTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1649 + # source://prism//lib/prism/dispatcher.rb#1657 def visit_global_variable_target_node(node); end # Dispatch enter and leave events for GlobalVariableWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1655 + # source://prism//lib/prism/dispatcher.rb#1663 def visit_global_variable_write_node(node); end # Dispatch enter and leave events for HashNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1661 + # source://prism//lib/prism/dispatcher.rb#1669 def visit_hash_node(node); end # Dispatch enter and leave events for HashPatternNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1667 + # source://prism//lib/prism/dispatcher.rb#1675 def visit_hash_pattern_node(node); end # Dispatch enter and leave events for IfNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1673 + # source://prism//lib/prism/dispatcher.rb#1681 def visit_if_node(node); end # Dispatch enter and leave events for ImaginaryNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1679 + # source://prism//lib/prism/dispatcher.rb#1687 def visit_imaginary_node(node); end # Dispatch enter and leave events for ImplicitNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1685 + # source://prism//lib/prism/dispatcher.rb#1693 def visit_implicit_node(node); end # Dispatch enter and leave events for ImplicitRestNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1691 + # source://prism//lib/prism/dispatcher.rb#1699 def visit_implicit_rest_node(node); end # Dispatch enter and leave events for InNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1697 + # source://prism//lib/prism/dispatcher.rb#1705 def visit_in_node(node); end # Dispatch enter and leave events for IndexAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1703 + # source://prism//lib/prism/dispatcher.rb#1711 def visit_index_and_write_node(node); end # Dispatch enter and leave events for IndexOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1709 + # source://prism//lib/prism/dispatcher.rb#1717 def visit_index_operator_write_node(node); end # Dispatch enter and leave events for IndexOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1715 + # source://prism//lib/prism/dispatcher.rb#1723 def visit_index_or_write_node(node); end # Dispatch enter and leave events for IndexTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1721 + # source://prism//lib/prism/dispatcher.rb#1729 def visit_index_target_node(node); end # Dispatch enter and leave events for InstanceVariableAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1727 + # source://prism//lib/prism/dispatcher.rb#1735 def visit_instance_variable_and_write_node(node); end # Dispatch enter and leave events for InstanceVariableOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1733 + # source://prism//lib/prism/dispatcher.rb#1741 def visit_instance_variable_operator_write_node(node); end # Dispatch enter and leave events for InstanceVariableOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1739 + # source://prism//lib/prism/dispatcher.rb#1747 def visit_instance_variable_or_write_node(node); end # Dispatch enter and leave events for InstanceVariableReadNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1745 + # source://prism//lib/prism/dispatcher.rb#1753 def visit_instance_variable_read_node(node); end # Dispatch enter and leave events for InstanceVariableTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1751 + # source://prism//lib/prism/dispatcher.rb#1759 def visit_instance_variable_target_node(node); end # Dispatch enter and leave events for InstanceVariableWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1757 + # source://prism//lib/prism/dispatcher.rb#1765 def visit_instance_variable_write_node(node); end # Dispatch enter and leave events for IntegerNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1763 + # source://prism//lib/prism/dispatcher.rb#1771 def visit_integer_node(node); end # Dispatch enter and leave events for InterpolatedMatchLastLineNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1769 + # source://prism//lib/prism/dispatcher.rb#1777 def visit_interpolated_match_last_line_node(node); end # Dispatch enter and leave events for InterpolatedRegularExpressionNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1775 + # source://prism//lib/prism/dispatcher.rb#1783 def visit_interpolated_regular_expression_node(node); end # Dispatch enter and leave events for InterpolatedStringNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1781 + # source://prism//lib/prism/dispatcher.rb#1789 def visit_interpolated_string_node(node); end # Dispatch enter and leave events for InterpolatedSymbolNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1787 + # source://prism//lib/prism/dispatcher.rb#1795 def visit_interpolated_symbol_node(node); end # Dispatch enter and leave events for InterpolatedXStringNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1793 + # source://prism//lib/prism/dispatcher.rb#1801 def visit_interpolated_x_string_node(node); end + # Dispatch enter and leave events for ItLocalVariableReadNode nodes. + # + # source://prism//lib/prism/dispatcher.rb#1807 + def visit_it_local_variable_read_node(node); end + # Dispatch enter and leave events for ItParametersNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1799 + # source://prism//lib/prism/dispatcher.rb#1813 def visit_it_parameters_node(node); end # Dispatch enter and leave events for KeywordHashNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1805 + # source://prism//lib/prism/dispatcher.rb#1819 def visit_keyword_hash_node(node); end # Dispatch enter and leave events for KeywordRestParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1811 + # source://prism//lib/prism/dispatcher.rb#1825 def visit_keyword_rest_parameter_node(node); end # Dispatch enter and leave events for LambdaNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1817 + # source://prism//lib/prism/dispatcher.rb#1831 def visit_lambda_node(node); end # Dispatch enter and leave events for LocalVariableAndWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1823 + # source://prism//lib/prism/dispatcher.rb#1837 def visit_local_variable_and_write_node(node); end # Dispatch enter and leave events for LocalVariableOperatorWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1829 + # source://prism//lib/prism/dispatcher.rb#1843 def visit_local_variable_operator_write_node(node); end # Dispatch enter and leave events for LocalVariableOrWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1835 + # source://prism//lib/prism/dispatcher.rb#1849 def visit_local_variable_or_write_node(node); end # Dispatch enter and leave events for LocalVariableReadNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1841 + # source://prism//lib/prism/dispatcher.rb#1855 def visit_local_variable_read_node(node); end # Dispatch enter and leave events for LocalVariableTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1847 + # source://prism//lib/prism/dispatcher.rb#1861 def visit_local_variable_target_node(node); end # Dispatch enter and leave events for LocalVariableWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1853 + # source://prism//lib/prism/dispatcher.rb#1867 def visit_local_variable_write_node(node); end # Dispatch enter and leave events for MatchLastLineNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1859 + # source://prism//lib/prism/dispatcher.rb#1873 def visit_match_last_line_node(node); end # Dispatch enter and leave events for MatchPredicateNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1865 + # source://prism//lib/prism/dispatcher.rb#1879 def visit_match_predicate_node(node); end # Dispatch enter and leave events for MatchRequiredNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1871 + # source://prism//lib/prism/dispatcher.rb#1885 def visit_match_required_node(node); end # Dispatch enter and leave events for MatchWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1877 + # source://prism//lib/prism/dispatcher.rb#1891 def visit_match_write_node(node); end # Dispatch enter and leave events for MissingNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1883 + # source://prism//lib/prism/dispatcher.rb#1897 def visit_missing_node(node); end # Dispatch enter and leave events for ModuleNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1889 + # source://prism//lib/prism/dispatcher.rb#1903 def visit_module_node(node); end # Dispatch enter and leave events for MultiTargetNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1895 + # source://prism//lib/prism/dispatcher.rb#1909 def visit_multi_target_node(node); end # Dispatch enter and leave events for MultiWriteNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1901 + # source://prism//lib/prism/dispatcher.rb#1915 def visit_multi_write_node(node); end # Dispatch enter and leave events for NextNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1907 + # source://prism//lib/prism/dispatcher.rb#1921 def visit_next_node(node); end # Dispatch enter and leave events for NilNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1913 + # source://prism//lib/prism/dispatcher.rb#1927 def visit_nil_node(node); end # Dispatch enter and leave events for NoKeywordsParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1919 + # source://prism//lib/prism/dispatcher.rb#1933 def visit_no_keywords_parameter_node(node); end # Dispatch enter and leave events for NumberedParametersNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1925 + # source://prism//lib/prism/dispatcher.rb#1939 def visit_numbered_parameters_node(node); end # Dispatch enter and leave events for NumberedReferenceReadNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1931 + # source://prism//lib/prism/dispatcher.rb#1945 def visit_numbered_reference_read_node(node); end # Dispatch enter and leave events for OptionalKeywordParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1937 + # source://prism//lib/prism/dispatcher.rb#1951 def visit_optional_keyword_parameter_node(node); end # Dispatch enter and leave events for OptionalParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1943 + # source://prism//lib/prism/dispatcher.rb#1957 def visit_optional_parameter_node(node); end # Dispatch enter and leave events for OrNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1949 + # source://prism//lib/prism/dispatcher.rb#1963 def visit_or_node(node); end # Dispatch enter and leave events for ParametersNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1955 + # source://prism//lib/prism/dispatcher.rb#1969 def visit_parameters_node(node); end # Dispatch enter and leave events for ParenthesesNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1961 + # source://prism//lib/prism/dispatcher.rb#1975 def visit_parentheses_node(node); end # Dispatch enter and leave events for PinnedExpressionNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1967 + # source://prism//lib/prism/dispatcher.rb#1981 def visit_pinned_expression_node(node); end # Dispatch enter and leave events for PinnedVariableNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1973 + # source://prism//lib/prism/dispatcher.rb#1987 def visit_pinned_variable_node(node); end # Dispatch enter and leave events for PostExecutionNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1979 + # source://prism//lib/prism/dispatcher.rb#1993 def visit_post_execution_node(node); end # Dispatch enter and leave events for PreExecutionNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1985 + # source://prism//lib/prism/dispatcher.rb#1999 def visit_pre_execution_node(node); end # Dispatch enter and leave events for ProgramNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1991 + # source://prism//lib/prism/dispatcher.rb#2005 def visit_program_node(node); end # Dispatch enter and leave events for RangeNode nodes. # - # source://prism//lib/prism/dispatcher.rb#1997 + # source://prism//lib/prism/dispatcher.rb#2011 def visit_range_node(node); end # Dispatch enter and leave events for RationalNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2003 + # source://prism//lib/prism/dispatcher.rb#2017 def visit_rational_node(node); end # Dispatch enter and leave events for RedoNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2009 + # source://prism//lib/prism/dispatcher.rb#2023 def visit_redo_node(node); end # Dispatch enter and leave events for RegularExpressionNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2015 + # source://prism//lib/prism/dispatcher.rb#2029 def visit_regular_expression_node(node); end # Dispatch enter and leave events for RequiredKeywordParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2021 + # source://prism//lib/prism/dispatcher.rb#2035 def visit_required_keyword_parameter_node(node); end # Dispatch enter and leave events for RequiredParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2027 + # source://prism//lib/prism/dispatcher.rb#2041 def visit_required_parameter_node(node); end # Dispatch enter and leave events for RescueModifierNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2033 + # source://prism//lib/prism/dispatcher.rb#2047 def visit_rescue_modifier_node(node); end # Dispatch enter and leave events for RescueNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2039 + # source://prism//lib/prism/dispatcher.rb#2053 def visit_rescue_node(node); end # Dispatch enter and leave events for RestParameterNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2045 + # source://prism//lib/prism/dispatcher.rb#2059 def visit_rest_parameter_node(node); end # Dispatch enter and leave events for RetryNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2051 + # source://prism//lib/prism/dispatcher.rb#2065 def visit_retry_node(node); end # Dispatch enter and leave events for ReturnNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2057 + # source://prism//lib/prism/dispatcher.rb#2071 def visit_return_node(node); end # Dispatch enter and leave events for SelfNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2063 + # source://prism//lib/prism/dispatcher.rb#2077 def visit_self_node(node); end # Dispatch enter and leave events for ShareableConstantNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2069 + # source://prism//lib/prism/dispatcher.rb#2083 def visit_shareable_constant_node(node); end # Dispatch enter and leave events for SingletonClassNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2075 + # source://prism//lib/prism/dispatcher.rb#2089 def visit_singleton_class_node(node); end # Dispatch enter and leave events for SourceEncodingNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2081 + # source://prism//lib/prism/dispatcher.rb#2095 def visit_source_encoding_node(node); end # Dispatch enter and leave events for SourceFileNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2087 + # source://prism//lib/prism/dispatcher.rb#2101 def visit_source_file_node(node); end # Dispatch enter and leave events for SourceLineNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2093 + # source://prism//lib/prism/dispatcher.rb#2107 def visit_source_line_node(node); end # Dispatch enter and leave events for SplatNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2099 + # source://prism//lib/prism/dispatcher.rb#2113 def visit_splat_node(node); end # Dispatch enter and leave events for StatementsNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2105 + # source://prism//lib/prism/dispatcher.rb#2119 def visit_statements_node(node); end # Dispatch enter and leave events for StringNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2111 + # source://prism//lib/prism/dispatcher.rb#2125 def visit_string_node(node); end # Dispatch enter and leave events for SuperNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2117 + # source://prism//lib/prism/dispatcher.rb#2131 def visit_super_node(node); end # Dispatch enter and leave events for SymbolNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2123 + # source://prism//lib/prism/dispatcher.rb#2137 def visit_symbol_node(node); end # Dispatch enter and leave events for TrueNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2129 + # source://prism//lib/prism/dispatcher.rb#2143 def visit_true_node(node); end # Dispatch enter and leave events for UndefNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2135 + # source://prism//lib/prism/dispatcher.rb#2149 def visit_undef_node(node); end # Dispatch enter and leave events for UnlessNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2141 + # source://prism//lib/prism/dispatcher.rb#2155 def visit_unless_node(node); end # Dispatch enter and leave events for UntilNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2147 + # source://prism//lib/prism/dispatcher.rb#2161 def visit_until_node(node); end # Dispatch enter and leave events for WhenNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2153 + # source://prism//lib/prism/dispatcher.rb#2167 def visit_when_node(node); end # Dispatch enter and leave events for WhileNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2159 + # source://prism//lib/prism/dispatcher.rb#2173 def visit_while_node(node); end # Dispatch enter and leave events for XStringNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2165 + # source://prism//lib/prism/dispatcher.rb#2179 def visit_x_string_node(node); end # Dispatch enter and leave events for YieldNode nodes. # - # source://prism//lib/prism/dispatcher.rb#2171 + # source://prism//lib/prism/dispatcher.rb#2185 def visit_yield_node(node); end end @@ -12285,319 +12171,324 @@ class Prism::DotVisitor < ::Prism::Visitor # source://prism//lib/prism/dot_visitor.rb#2751 def visit_interpolated_x_string_node(node); end - # Visit a ItParametersNode node. + # Visit a ItLocalVariableReadNode node. # # source://prism//lib/prism/dot_visitor.rb#2784 + def visit_it_local_variable_read_node(node); end + + # Visit a ItParametersNode node. + # + # source://prism//lib/prism/dot_visitor.rb#2798 def visit_it_parameters_node(node); end # Visit a KeywordHashNode node. # - # source://prism//lib/prism/dot_visitor.rb#2798 + # source://prism//lib/prism/dot_visitor.rb#2812 def visit_keyword_hash_node(node); end # Visit a KeywordRestParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#2828 + # source://prism//lib/prism/dot_visitor.rb#2842 def visit_keyword_rest_parameter_node(node); end # Visit a LambdaNode node. # - # source://prism//lib/prism/dot_visitor.rb#2856 + # source://prism//lib/prism/dot_visitor.rb#2870 def visit_lambda_node(node); end # Visit a LocalVariableAndWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2894 + # source://prism//lib/prism/dot_visitor.rb#2908 def visit_local_variable_and_write_node(node); end # Visit a LocalVariableOperatorWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2924 + # source://prism//lib/prism/dot_visitor.rb#2938 def visit_local_variable_operator_write_node(node); end # Visit a LocalVariableOrWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#2957 + # source://prism//lib/prism/dot_visitor.rb#2971 def visit_local_variable_or_write_node(node); end # Visit a LocalVariableReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#2987 + # source://prism//lib/prism/dot_visitor.rb#3001 def visit_local_variable_read_node(node); end # Visit a LocalVariableTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#3007 + # source://prism//lib/prism/dot_visitor.rb#3021 def visit_local_variable_target_node(node); end # Visit a LocalVariableWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3027 + # source://prism//lib/prism/dot_visitor.rb#3041 def visit_local_variable_write_node(node); end # Visit a MatchLastLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#3057 + # source://prism//lib/prism/dot_visitor.rb#3071 def visit_match_last_line_node(node); end # Visit a MatchPredicateNode node. # - # source://prism//lib/prism/dot_visitor.rb#3086 + # source://prism//lib/prism/dot_visitor.rb#3100 def visit_match_predicate_node(node); end # Visit a MatchRequiredNode node. # - # source://prism//lib/prism/dot_visitor.rb#3111 + # source://prism//lib/prism/dot_visitor.rb#3125 def visit_match_required_node(node); end # Visit a MatchWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3136 + # source://prism//lib/prism/dot_visitor.rb#3150 def visit_match_write_node(node); end # Visit a MissingNode node. # - # source://prism//lib/prism/dot_visitor.rb#3167 + # source://prism//lib/prism/dot_visitor.rb#3181 def visit_missing_node(node); end # Visit a ModuleNode node. # - # source://prism//lib/prism/dot_visitor.rb#3181 + # source://prism//lib/prism/dot_visitor.rb#3195 def visit_module_node(node); end # Visit a MultiTargetNode node. # - # source://prism//lib/prism/dot_visitor.rb#3217 + # source://prism//lib/prism/dot_visitor.rb#3231 def visit_multi_target_node(node); end # Visit a MultiWriteNode node. # - # source://prism//lib/prism/dot_visitor.rb#3273 + # source://prism//lib/prism/dot_visitor.rb#3287 def visit_multi_write_node(node); end # Visit a NextNode node. # - # source://prism//lib/prism/dot_visitor.rb#3336 + # source://prism//lib/prism/dot_visitor.rb#3350 def visit_next_node(node); end # Visit a NilNode node. # - # source://prism//lib/prism/dot_visitor.rb#3359 + # source://prism//lib/prism/dot_visitor.rb#3373 def visit_nil_node(node); end # Visit a NoKeywordsParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3373 + # source://prism//lib/prism/dot_visitor.rb#3387 def visit_no_keywords_parameter_node(node); end # Visit a NumberedParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#3393 + # source://prism//lib/prism/dot_visitor.rb#3407 def visit_numbered_parameters_node(node); end # Visit a NumberedReferenceReadNode node. # - # source://prism//lib/prism/dot_visitor.rb#3410 + # source://prism//lib/prism/dot_visitor.rb#3424 def visit_numbered_reference_read_node(node); end # Visit a OptionalKeywordParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3427 + # source://prism//lib/prism/dot_visitor.rb#3441 def visit_optional_keyword_parameter_node(node); end # Visit a OptionalParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3454 + # source://prism//lib/prism/dot_visitor.rb#3468 def visit_optional_parameter_node(node); end # Visit a OrNode node. # - # source://prism//lib/prism/dot_visitor.rb#3484 + # source://prism//lib/prism/dot_visitor.rb#3498 def visit_or_node(node); end # Visit a ParametersNode node. # - # source://prism//lib/prism/dot_visitor.rb#3509 + # source://prism//lib/prism/dot_visitor.rb#3523 def visit_parameters_node(node); end # Visit a ParenthesesNode node. # - # source://prism//lib/prism/dot_visitor.rb#3593 + # source://prism//lib/prism/dot_visitor.rb#3607 def visit_parentheses_node(node); end # Visit a PinnedExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3619 + # source://prism//lib/prism/dot_visitor.rb#3633 def visit_pinned_expression_node(node); end # Visit a PinnedVariableNode node. # - # source://prism//lib/prism/dot_visitor.rb#3646 + # source://prism//lib/prism/dot_visitor.rb#3660 def visit_pinned_variable_node(node); end # Visit a PostExecutionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3667 + # source://prism//lib/prism/dot_visitor.rb#3681 def visit_post_execution_node(node); end # Visit a PreExecutionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3696 + # source://prism//lib/prism/dot_visitor.rb#3710 def visit_pre_execution_node(node); end # Visit a ProgramNode node. # - # source://prism//lib/prism/dot_visitor.rb#3725 + # source://prism//lib/prism/dot_visitor.rb#3739 def visit_program_node(node); end # Visit a RangeNode node. # - # source://prism//lib/prism/dot_visitor.rb#3746 + # source://prism//lib/prism/dot_visitor.rb#3760 def visit_range_node(node); end # Visit a RationalNode node. # - # source://prism//lib/prism/dot_visitor.rb#3778 + # source://prism//lib/prism/dot_visitor.rb#3792 def visit_rational_node(node); end # Visit a RedoNode node. # - # source://prism//lib/prism/dot_visitor.rb#3796 + # source://prism//lib/prism/dot_visitor.rb#3815 def visit_redo_node(node); end # Visit a RegularExpressionNode node. # - # source://prism//lib/prism/dot_visitor.rb#3810 + # source://prism//lib/prism/dot_visitor.rb#3829 def visit_regular_expression_node(node); end # Visit a RequiredKeywordParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3839 + # source://prism//lib/prism/dot_visitor.rb#3858 def visit_required_keyword_parameter_node(node); end # Visit a RequiredParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3862 + # source://prism//lib/prism/dot_visitor.rb#3881 def visit_required_parameter_node(node); end # Visit a RescueModifierNode node. # - # source://prism//lib/prism/dot_visitor.rb#3882 + # source://prism//lib/prism/dot_visitor.rb#3901 def visit_rescue_modifier_node(node); end # Visit a RescueNode node. # - # source://prism//lib/prism/dot_visitor.rb#3907 + # source://prism//lib/prism/dot_visitor.rb#3926 def visit_rescue_node(node); end # Visit a RestParameterNode node. # - # source://prism//lib/prism/dot_visitor.rb#3960 + # source://prism//lib/prism/dot_visitor.rb#3979 def visit_rest_parameter_node(node); end # Visit a RetryNode node. # - # source://prism//lib/prism/dot_visitor.rb#3988 + # source://prism//lib/prism/dot_visitor.rb#4007 def visit_retry_node(node); end # Visit a ReturnNode node. # - # source://prism//lib/prism/dot_visitor.rb#4002 + # source://prism//lib/prism/dot_visitor.rb#4021 def visit_return_node(node); end # Visit a SelfNode node. # - # source://prism//lib/prism/dot_visitor.rb#4028 + # source://prism//lib/prism/dot_visitor.rb#4047 def visit_self_node(node); end # Visit a ShareableConstantNode node. # - # source://prism//lib/prism/dot_visitor.rb#4042 + # source://prism//lib/prism/dot_visitor.rb#4061 def visit_shareable_constant_node(node); end # Visit a SingletonClassNode node. # - # source://prism//lib/prism/dot_visitor.rb#4063 + # source://prism//lib/prism/dot_visitor.rb#4082 def visit_singleton_class_node(node); end # Visit a SourceEncodingNode node. # - # source://prism//lib/prism/dot_visitor.rb#4099 + # source://prism//lib/prism/dot_visitor.rb#4118 def visit_source_encoding_node(node); end # Visit a SourceFileNode node. # - # source://prism//lib/prism/dot_visitor.rb#4113 + # source://prism//lib/prism/dot_visitor.rb#4132 def visit_source_file_node(node); end # Visit a SourceLineNode node. # - # source://prism//lib/prism/dot_visitor.rb#4133 + # source://prism//lib/prism/dot_visitor.rb#4152 def visit_source_line_node(node); end # Visit a SplatNode node. # - # source://prism//lib/prism/dot_visitor.rb#4147 + # source://prism//lib/prism/dot_visitor.rb#4166 def visit_splat_node(node); end # Visit a StatementsNode node. # - # source://prism//lib/prism/dot_visitor.rb#4170 + # source://prism//lib/prism/dot_visitor.rb#4189 def visit_statements_node(node); end # Visit a StringNode node. # - # source://prism//lib/prism/dot_visitor.rb#4197 + # source://prism//lib/prism/dot_visitor.rb#4216 def visit_string_node(node); end # Visit a SuperNode node. # - # source://prism//lib/prism/dot_visitor.rb#4230 + # source://prism//lib/prism/dot_visitor.rb#4249 def visit_super_node(node); end # Visit a SymbolNode node. # - # source://prism//lib/prism/dot_visitor.rb#4269 + # source://prism//lib/prism/dot_visitor.rb#4288 def visit_symbol_node(node); end # Visit a TrueNode node. # - # source://prism//lib/prism/dot_visitor.rb#4304 + # source://prism//lib/prism/dot_visitor.rb#4323 def visit_true_node(node); end # Visit a UndefNode node. # - # source://prism//lib/prism/dot_visitor.rb#4318 + # source://prism//lib/prism/dot_visitor.rb#4337 def visit_undef_node(node); end # Visit a UnlessNode node. # - # source://prism//lib/prism/dot_visitor.rb#4348 + # source://prism//lib/prism/dot_visitor.rb#4367 def visit_unless_node(node); end # Visit a UntilNode node. # - # source://prism//lib/prism/dot_visitor.rb#4391 + # source://prism//lib/prism/dot_visitor.rb#4410 def visit_until_node(node); end # Visit a WhenNode node. # - # source://prism//lib/prism/dot_visitor.rb#4426 + # source://prism//lib/prism/dot_visitor.rb#4445 def visit_when_node(node); end # Visit a WhileNode node. # - # source://prism//lib/prism/dot_visitor.rb#4467 + # source://prism//lib/prism/dot_visitor.rb#4486 def visit_while_node(node); end # Visit a XStringNode node. # - # source://prism//lib/prism/dot_visitor.rb#4502 + # source://prism//lib/prism/dot_visitor.rb#4521 def visit_x_string_node(node); end # Visit a YieldNode node. # - # source://prism//lib/prism/dot_visitor.rb#4531 + # source://prism//lib/prism/dot_visitor.rb#4550 def visit_yield_node(node); end private @@ -12605,101 +12496,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#4577 + # source://prism//lib/prism/dot_visitor.rb#4596 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#4586 + # source://prism//lib/prism/dot_visitor.rb#4605 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#4594 + # source://prism//lib/prism/dot_visitor.rb#4613 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#4605 + # source://prism//lib/prism/dot_visitor.rb#4624 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#4614 + # source://prism//lib/prism/dot_visitor.rb#4633 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#4625 + # source://prism//lib/prism/dot_visitor.rb#4644 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#4634 + # source://prism//lib/prism/dot_visitor.rb#4653 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#4571 + # source://prism//lib/prism/dot_visitor.rb#4590 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#4642 + # source://prism//lib/prism/dot_visitor.rb#4661 def loop_flags_inspect(node); end # Generate a unique node ID for a node throughout the digraph. # - # source://prism//lib/prism/dot_visitor.rb#4566 + # source://prism//lib/prism/dot_visitor.rb#4585 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#4650 + # source://prism//lib/prism/dot_visitor.rb#4669 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#4658 + # source://prism//lib/prism/dot_visitor.rb#4677 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#4666 + # source://prism//lib/prism/dot_visitor.rb#4685 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 + # source://prism//lib/prism/dot_visitor.rb#4703 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#4692 + # source://prism//lib/prism/dot_visitor.rb#4711 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#4702 + # source://prism//lib/prism/dot_visitor.rb#4721 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#4713 + # source://prism//lib/prism/dot_visitor.rb#4732 def symbol_flags_inspect(node); end end @@ -12793,13 +12684,13 @@ end # if a then b else c end # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6235 +# source://prism//lib/prism/node.rb#6173 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#6237 + # source://prism//lib/prism/node.rb#6175 sig do params( source: Prism::Source, @@ -12814,36 +12705,36 @@ class Prism::ElseNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6286 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6247 + # source://prism//lib/prism/node.rb#6184 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#6252 + # source://prism//lib/prism/node.rb#6189 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#6264 + # source://prism//lib/prism/node.rb#6201 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#6257 + # source://prism//lib/prism/node.rb#6194 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#6269 + # source://prism//lib/prism/node.rb#6206 sig do params( else_keyword_loc: Prism::Location, @@ -12857,37 +12748,37 @@ class Prism::ElseNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6252 + # source://prism//lib/prism/node.rb#6189 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#6277 + # source://prism//lib/prism/node.rb#6214 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#6305 + # source://prism//lib/prism/node.rb#6242 sig { returns(String) } def else_keyword; end # attr_reader else_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6282 + # source://prism//lib/prism/node.rb#6219 sig { returns(Prism::Location) } def else_keyword_loc; end # def end_keyword: () -> String? # - # source://prism//lib/prism/node.rb#6310 + # source://prism//lib/prism/node.rb#6247 sig { returns(T.nilable(String)) } def end_keyword; end # attr_reader end_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#6292 + # source://prism//lib/prism/node.rb#6229 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end @@ -12896,13 +12787,13 @@ class Prism::ElseNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6315 + # source://prism//lib/prism/node.rb#6252 sig { override.returns(String) } def inspect; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#6289 + # source://prism//lib/prism/node.rb#6226 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -12921,7 +12812,7 @@ class Prism::ElseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6333 + # source://prism//lib/prism/node.rb#6270 sig { override.returns(Symbol) } def type; end @@ -12933,7 +12824,7 @@ class Prism::ElseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6343 + # source://prism//lib/prism/node.rb#6280 def type; end end end @@ -12963,13 +12854,13 @@ end # "foo #{bar}" # ^^^^^^ # -# source://prism//lib/prism/node.rb#6361 +# source://prism//lib/prism/node.rb#6298 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#6363 + # source://prism//lib/prism/node.rb#6300 sig do params( source: Prism::Source, @@ -12984,48 +12875,48 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6405 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6373 + # source://prism//lib/prism/node.rb#6309 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#6378 + # source://prism//lib/prism/node.rb#6314 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#6430 + # source://prism//lib/prism/node.rb#6366 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#6418 + # source://prism//lib/prism/node.rb#6354 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6390 + # source://prism//lib/prism/node.rb#6326 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#6383 + # source://prism//lib/prism/node.rb#6319 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#6395 + # source://prism//lib/prism/node.rb#6331 sig do params( opening_loc: Prism::Location, @@ -13039,13 +12930,13 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6378 + # source://prism//lib/prism/node.rb#6314 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#6403 + # source://prism//lib/prism/node.rb#6339 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -13054,25 +12945,25 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6435 + # source://prism//lib/prism/node.rb#6371 sig { override.returns(String) } def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#6425 + # source://prism//lib/prism/node.rb#6361 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#6408 + # source://prism//lib/prism/node.rb#6344 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#6415 + # source://prism//lib/prism/node.rb#6351 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -13091,7 +12982,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6453 + # source://prism//lib/prism/node.rb#6389 sig { override.returns(Symbol) } def type; end @@ -13103,7 +12994,7 @@ class Prism::EmbeddedStatementsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6463 + # source://prism//lib/prism/node.rb#6399 def type; end end end @@ -13113,13 +13004,13 @@ end # "foo #@bar" # ^^^^^ # -# source://prism//lib/prism/node.rb#6481 +# source://prism//lib/prism/node.rb#6417 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#6483 + # source://prism//lib/prism/node.rb#6419 sig do params( source: Prism::Source, @@ -13133,36 +13024,36 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6509 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6492 + # source://prism//lib/prism/node.rb#6427 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#6497 + # source://prism//lib/prism/node.rb#6432 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#6507 + # source://prism//lib/prism/node.rb#6442 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#6502 + # source://prism//lib/prism/node.rb#6437 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#6512 + # source://prism//lib/prism/node.rb#6447 sig do params( operator_loc: Prism::Location, @@ -13175,13 +13066,13 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6497 + # source://prism//lib/prism/node.rb#6432 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#6520 + # source://prism//lib/prism/node.rb#6455 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -13190,19 +13081,19 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6540 + # source://prism//lib/prism/node.rb#6475 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#6535 + # source://prism//lib/prism/node.rb#6470 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#6525 + # source://prism//lib/prism/node.rb#6460 sig { returns(Prism::Location) } def operator_loc; end @@ -13221,13 +13112,13 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6558 + # source://prism//lib/prism/node.rb#6493 sig { override.returns(Symbol) } def type; end # attr_reader variable: Prism::node # - # source://prism//lib/prism/node.rb#6532 + # source://prism//lib/prism/node.rb#6467 sig { returns(Prism::Node) } def variable; end @@ -13239,24 +13130,24 @@ class Prism::EmbeddedVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6568 + # source://prism//lib/prism/node.rb#6503 def type; end end end # Flags for nodes that have unescaped content. # -# source://prism//lib/prism/node.rb#19232 +# source://prism//lib/prism/node.rb#19157 module Prism::EncodingFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#19237 +# source://prism//lib/prism/node.rb#19162 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#19234 +# source://prism//lib/prism/node.rb#19159 Prism::EncodingFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # Represents an `ensure` clause in a `begin` statement. @@ -13268,13 +13159,13 @@ Prism::EncodingFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # bar # end # -# source://prism//lib/prism/node.rb#6589 +# source://prism//lib/prism/node.rb#6524 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#6591 + # source://prism//lib/prism/node.rb#6526 sig do params( source: Prism::Source, @@ -13289,36 +13180,36 @@ class Prism::EnsureNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6631 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6601 + # source://prism//lib/prism/node.rb#6535 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#6606 + # source://prism//lib/prism/node.rb#6540 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#6618 + # source://prism//lib/prism/node.rb#6552 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#6611 + # source://prism//lib/prism/node.rb#6545 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#6623 + # source://prism//lib/prism/node.rb#6557 sig do params( ensure_keyword_loc: Prism::Location, @@ -13332,37 +13223,37 @@ class Prism::EnsureNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6606 + # source://prism//lib/prism/node.rb#6540 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#6631 + # source://prism//lib/prism/node.rb#6565 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#6658 + # source://prism//lib/prism/node.rb#6592 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6646 + # source://prism//lib/prism/node.rb#6580 sig { returns(Prism::Location) } def end_keyword_loc; end # def ensure_keyword: () -> String # - # source://prism//lib/prism/node.rb#6653 + # source://prism//lib/prism/node.rb#6587 sig { returns(String) } def ensure_keyword; end # attr_reader ensure_keyword_loc: Location # - # source://prism//lib/prism/node.rb#6636 + # source://prism//lib/prism/node.rb#6570 sig { returns(Prism::Location) } def ensure_keyword_loc; end @@ -13371,13 +13262,13 @@ class Prism::EnsureNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6663 + # source://prism//lib/prism/node.rb#6597 sig { override.returns(String) } def inspect; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#6643 + # source://prism//lib/prism/node.rb#6577 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -13396,7 +13287,7 @@ class Prism::EnsureNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6681 + # source://prism//lib/prism/node.rb#6615 sig { override.returns(Symbol) } def type; end @@ -13408,7 +13299,7 @@ class Prism::EnsureNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6691 + # source://prism//lib/prism/node.rb#6625 def type; end end end @@ -13418,62 +13309,62 @@ end # false # ^^^^^ # -# source://prism//lib/prism/node.rb#6709 +# source://prism//lib/prism/node.rb#6643 class Prism::FalseNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [FalseNode] a new instance of FalseNode # - # source://prism//lib/prism/node.rb#6711 + # source://prism//lib/prism/node.rb#6645 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 + # source://prism//lib/prism/node.rb#6718 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6718 + # source://prism//lib/prism/node.rb#6651 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#6723 + # source://prism//lib/prism/node.rb#6656 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#6733 + # source://prism//lib/prism/node.rb#6666 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#6728 + # source://prism//lib/prism/node.rb#6661 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> FalseNode # - # source://prism//lib/prism/node.rb#6738 + # source://prism//lib/prism/node.rb#6671 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#6723 + # source://prism//lib/prism/node.rb#6656 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#6746 + # source://prism//lib/prism/node.rb#6679 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -13482,7 +13373,7 @@ class Prism::FalseNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6751 + # source://prism//lib/prism/node.rb#6684 sig { override.returns(String) } def inspect; end @@ -13501,7 +13392,7 @@ class Prism::FalseNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6769 + # source://prism//lib/prism/node.rb#6702 sig { override.returns(Symbol) } def type; end @@ -13513,7 +13404,7 @@ class Prism::FalseNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6779 + # source://prism//lib/prism/node.rb#6712 def type; end end end @@ -13529,13 +13420,13 @@ end # foo in Foo(*bar, baz, *qux) # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6800 +# source://prism//lib/prism/node.rb#6733 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#6802 + # source://prism//lib/prism/node.rb#6735 sig do params( source: Prism::Source, @@ -13553,54 +13444,54 @@ class Prism::FindPatternNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6867 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6815 + # source://prism//lib/prism/node.rb#6747 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#6752 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#6896 + # source://prism//lib/prism/node.rb#6828 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#6878 + # source://prism//lib/prism/node.rb#6810 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#6835 + # source://prism//lib/prism/node.rb#6767 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#6757 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant: Prism::node? # - # source://prism//lib/prism/node.rb#6853 + # source://prism//lib/prism/node.rb#6785 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#6840 + # source://prism//lib/prism/node.rb#6772 sig do params( constant: T.nilable(Prism::Node), @@ -13617,13 +13508,13 @@ class Prism::FindPatternNode < ::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#6752 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#6848 + # source://prism//lib/prism/node.rb#6780 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -13632,37 +13523,37 @@ class Prism::FindPatternNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#6901 + # source://prism//lib/prism/node.rb#6833 sig { override.returns(String) } def inspect; end # attr_reader left: Prism::node # - # source://prism//lib/prism/node.rb#6856 + # source://prism//lib/prism/node.rb#6788 sig { returns(Prism::Node) } def left; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#6891 + # source://prism//lib/prism/node.rb#6823 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#6865 + # source://prism//lib/prism/node.rb#6797 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader requireds: Array[Prism::node] # - # source://prism//lib/prism/node.rb#6859 + # source://prism//lib/prism/node.rb#6791 sig { returns(T::Array[Prism::Node]) } def requireds; end # attr_reader right: Prism::node # - # source://prism//lib/prism/node.rb#6862 + # source://prism//lib/prism/node.rb#6794 sig { returns(Prism::Node) } def right; end @@ -13681,7 +13572,7 @@ class Prism::FindPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#6919 + # source://prism//lib/prism/node.rb#6851 sig { override.returns(Symbol) } def type; end @@ -13693,7 +13584,7 @@ class Prism::FindPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#6929 + # source://prism//lib/prism/node.rb#6861 def type; end end end @@ -13703,13 +13594,13 @@ end # baz if foo .. bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#6951 +# source://prism//lib/prism/node.rb#6883 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#6953 + # source://prism//lib/prism/node.rb#6885 sig do params( source: Prism::Source, @@ -13725,36 +13616,36 @@ class Prism::FlipFlopNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#6992 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#6964 + # source://prism//lib/prism/node.rb#6895 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#6969 + # source://prism//lib/prism/node.rb#6900 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#6982 + # source://prism//lib/prism/node.rb#6913 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#6974 + # source://prism//lib/prism/node.rb#6905 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#6987 + # source://prism//lib/prism/node.rb#6918 sig do params( flags: Integer, @@ -13769,13 +13660,13 @@ class Prism::FlipFlopNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#6969 + # source://prism//lib/prism/node.rb#6900 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#6995 + # source://prism//lib/prism/node.rb#6926 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -13783,7 +13674,7 @@ class Prism::FlipFlopNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#7017 + # source://prism//lib/prism/node.rb#6948 sig { returns(T::Boolean) } def exclude_end?; end @@ -13792,31 +13683,31 @@ class Prism::FlipFlopNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7027 + # source://prism//lib/prism/node.rb#6958 sig { override.returns(String) } def inspect; end # attr_reader left: Prism::node? # - # source://prism//lib/prism/node.rb#7004 + # source://prism//lib/prism/node.rb#6935 sig { returns(T.nilable(Prism::Node)) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#7022 + # source://prism//lib/prism/node.rb#6953 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#7010 + # source://prism//lib/prism/node.rb#6941 sig { returns(Prism::Location) } def operator_loc; end # attr_reader right: Prism::node? # - # source://prism//lib/prism/node.rb#7007 + # source://prism//lib/prism/node.rb#6938 sig { returns(T.nilable(Prism::Node)) } def right; end @@ -13835,7 +13726,7 @@ class Prism::FlipFlopNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7045 + # source://prism//lib/prism/node.rb#6976 sig { override.returns(Symbol) } def type; end @@ -13843,7 +13734,7 @@ class Prism::FlipFlopNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#7000 + # source://prism//lib/prism/node.rb#6931 sig { returns(Integer) } def flags; end @@ -13855,7 +13746,7 @@ class Prism::FlipFlopNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7055 + # source://prism//lib/prism/node.rb#6986 def type; end end end @@ -13865,62 +13756,62 @@ end # 1.0 # ^^^ # -# source://prism//lib/prism/node.rb#7074 +# source://prism//lib/prism/node.rb#7005 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#7076 + # source://prism//lib/prism/node.rb#7007 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 + # source://prism//lib/prism/node.rb#7084 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7084 + # source://prism//lib/prism/node.rb#7014 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#7089 + # source://prism//lib/prism/node.rb#7019 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#7099 + # source://prism//lib/prism/node.rb#7029 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#7094 + # source://prism//lib/prism/node.rb#7024 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#7104 + # source://prism//lib/prism/node.rb#7034 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#7089 + # source://prism//lib/prism/node.rb#7019 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#7112 + # source://prism//lib/prism/node.rb#7042 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -13929,7 +13820,7 @@ class Prism::FloatNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7120 + # source://prism//lib/prism/node.rb#7050 sig { override.returns(String) } def inspect; end @@ -13948,13 +13839,13 @@ class Prism::FloatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7138 + # source://prism//lib/prism/node.rb#7068 sig { override.returns(Symbol) } def type; end # The value of the floating point number as a Float. # - # source://prism//lib/prism/node.rb#7117 + # source://prism//lib/prism/node.rb#7047 sig { returns(Float) } def value; end @@ -13966,7 +13857,7 @@ class Prism::FloatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7148 + # source://prism//lib/prism/node.rb#7078 def type; end end end @@ -13976,13 +13867,13 @@ end # for i in a end # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7164 +# source://prism//lib/prism/node.rb#7094 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#7166 + # source://prism//lib/prism/node.rb#7096 sig do params( source: Prism::Source, @@ -14001,42 +13892,45 @@ class Prism::ForNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#7266 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7180 + # source://prism//lib/prism/node.rb#7109 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#7185 + # source://prism//lib/prism/node.rb#7114 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end - # attr_reader collection: Prism::node + # The collection to iterate over. + # + # for i in a end + # ^ # - # source://prism//lib/prism/node.rb#7220 + # source://prism//lib/prism/node.rb#7155 sig { returns(Prism::Node) } def collection; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#7199 + # source://prism//lib/prism/node.rb#7128 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#7190 + # source://prism//lib/prism/node.rb#7119 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#7204 + # source://prism//lib/prism/node.rb#7133 sig do params( index: Prism::Node, @@ -14054,37 +13948,43 @@ class Prism::ForNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7185 + # source://prism//lib/prism/node.rb#7114 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#7212 + # source://prism//lib/prism/node.rb#7141 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#7270 + # source://prism//lib/prism/node.rb#7222 sig { returns(T.nilable(String)) } def do_keyword; end - # attr_reader do_keyword_loc: Location? + # The location of the `do` keyword, if present. # - # source://prism//lib/prism/node.rb#7240 + # for i in a do end + # ^^ + # + # source://prism//lib/prism/node.rb#7189 sig { returns(T.nilable(Prism::Location)) } def do_keyword_loc; end # def end_keyword: () -> String # - # source://prism//lib/prism/node.rb#7275 + # source://prism//lib/prism/node.rb#7227 sig { returns(String) } def end_keyword; end - # attr_reader end_keyword_loc: Location + # The location of the `end` keyword. # - # source://prism//lib/prism/node.rb#7253 + # for i in a end + # ^^^ + # + # source://prism//lib/prism/node.rb#7205 sig { returns(Prism::Location) } def end_keyword_loc; end @@ -14093,43 +13993,57 @@ class Prism::ForNode < ::Prism::Node # def for_keyword: () -> String # - # source://prism//lib/prism/node.rb#7260 + # source://prism//lib/prism/node.rb#7212 sig { returns(String) } def for_keyword; end - # attr_reader for_keyword_loc: Location + # The location of the `for` keyword. # - # source://prism//lib/prism/node.rb#7226 + # for i in a end + # ^^^ + # + # source://prism//lib/prism/node.rb#7169 sig { returns(Prism::Location) } def for_keyword_loc; end # def in_keyword: () -> String # - # source://prism//lib/prism/node.rb#7265 + # source://prism//lib/prism/node.rb#7217 sig { returns(String) } def in_keyword; end - # attr_reader in_keyword_loc: Location + # The location of the `in` keyword. + # + # for i in a end + # ^^ # - # source://prism//lib/prism/node.rb#7233 + # source://prism//lib/prism/node.rb#7179 sig { returns(Prism::Location) } def in_keyword_loc; end - # attr_reader index: Prism::node + # The index expression for `for` loops. # - # source://prism//lib/prism/node.rb#7217 + # for i in a end + # ^ + # + # source://prism//lib/prism/node.rb#7149 sig { returns(Prism::Node) } def index; end # def inspect -> String # - # source://prism//lib/prism/node.rb#7280 + # source://prism//lib/prism/node.rb#7232 sig { override.returns(String) } def inspect; end - # attr_reader statements: StatementsNode? + # Represents the body of statements to execute for each iteration of the loop. + # + # for i in a + # foo(i) + # ^^^^^^ + # end # - # source://prism//lib/prism/node.rb#7223 + # source://prism//lib/prism/node.rb#7163 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -14148,7 +14062,7 @@ class Prism::ForNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7298 + # source://prism//lib/prism/node.rb#7250 sig { override.returns(Symbol) } def type; end @@ -14160,7 +14074,7 @@ class Prism::ForNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7308 + # source://prism//lib/prism/node.rb#7260 def type; end end end @@ -14172,62 +14086,62 @@ end # ^^^ # end # -# source://prism//lib/prism/node.rb#7332 +# source://prism//lib/prism/node.rb#7284 class Prism::ForwardingArgumentsNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ForwardingArgumentsNode] a new instance of ForwardingArgumentsNode # - # source://prism//lib/prism/node.rb#7334 + # source://prism//lib/prism/node.rb#7286 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 + # source://prism//lib/prism/node.rb#7359 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7341 + # source://prism//lib/prism/node.rb#7292 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#7346 + # source://prism//lib/prism/node.rb#7297 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#7356 + # source://prism//lib/prism/node.rb#7307 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#7351 + # source://prism//lib/prism/node.rb#7302 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ForwardingArgumentsNode # - # source://prism//lib/prism/node.rb#7361 + # source://prism//lib/prism/node.rb#7312 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#7346 + # source://prism//lib/prism/node.rb#7297 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#7369 + # source://prism//lib/prism/node.rb#7320 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14236,7 +14150,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7374 + # source://prism//lib/prism/node.rb#7325 sig { override.returns(String) } def inspect; end @@ -14255,7 +14169,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7392 + # source://prism//lib/prism/node.rb#7343 sig { override.returns(Symbol) } def type; end @@ -14267,7 +14181,7 @@ class Prism::ForwardingArgumentsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7402 + # source://prism//lib/prism/node.rb#7353 def type; end end end @@ -14278,62 +14192,62 @@ end # ^^^ # end # -# source://prism//lib/prism/node.rb#7418 +# source://prism//lib/prism/node.rb#7369 class Prism::ForwardingParameterNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ForwardingParameterNode] a new instance of ForwardingParameterNode # - # source://prism//lib/prism/node.rb#7420 + # source://prism//lib/prism/node.rb#7371 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 + # source://prism//lib/prism/node.rb#7444 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7427 + # source://prism//lib/prism/node.rb#7377 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#7432 + # source://prism//lib/prism/node.rb#7382 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#7442 + # source://prism//lib/prism/node.rb#7392 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#7437 + # source://prism//lib/prism/node.rb#7387 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ForwardingParameterNode # - # source://prism//lib/prism/node.rb#7447 + # source://prism//lib/prism/node.rb#7397 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#7432 + # source://prism//lib/prism/node.rb#7382 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#7455 + # source://prism//lib/prism/node.rb#7405 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14342,7 +14256,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7460 + # source://prism//lib/prism/node.rb#7410 sig { override.returns(String) } def inspect; end @@ -14361,7 +14275,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7478 + # source://prism//lib/prism/node.rb#7428 sig { override.returns(Symbol) } def type; end @@ -14373,7 +14287,7 @@ class Prism::ForwardingParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7488 + # source://prism//lib/prism/node.rb#7438 def type; end end end @@ -14383,68 +14297,68 @@ end # super # ^^^^^ # -# source://prism//lib/prism/node.rb#7503 +# source://prism//lib/prism/node.rb#7453 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#7505 + # source://prism//lib/prism/node.rb#7455 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 + # source://prism//lib/prism/node.rb#7534 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7513 + # source://prism//lib/prism/node.rb#7462 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader block: BlockNode? # - # source://prism//lib/prism/node.rb#7548 + # source://prism//lib/prism/node.rb#7497 sig { returns(T.nilable(Prism::BlockNode)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7518 + # source://prism//lib/prism/node.rb#7467 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#7530 + # source://prism//lib/prism/node.rb#7479 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#7523 + # source://prism//lib/prism/node.rb#7472 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#7535 + # source://prism//lib/prism/node.rb#7484 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#7518 + # source://prism//lib/prism/node.rb#7467 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#7543 + # source://prism//lib/prism/node.rb#7492 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14453,7 +14367,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7551 + # source://prism//lib/prism/node.rb#7500 sig { override.returns(String) } def inspect; end @@ -14472,7 +14386,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7569 + # source://prism//lib/prism/node.rb#7518 sig { override.returns(Symbol) } def type; end @@ -14484,7 +14398,7 @@ class Prism::ForwardingSuperNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7579 + # source://prism//lib/prism/node.rb#7528 def type; end end end @@ -14494,13 +14408,13 @@ end # $target &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7595 +# source://prism//lib/prism/node.rb#7544 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#7597 + # source://prism//lib/prism/node.rb#7546 sig do params( source: Prism::Source, @@ -14516,36 +14430,36 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#7648 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7608 + # source://prism//lib/prism/node.rb#7556 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#7613 + # source://prism//lib/prism/node.rb#7561 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#7623 + # source://prism//lib/prism/node.rb#7571 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#7618 + # source://prism//lib/prism/node.rb#7566 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#7628 + # source://prism//lib/prism/node.rb#7576 sig do params( name: Symbol, @@ -14560,13 +14474,13 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7613 + # source://prism//lib/prism/node.rb#7561 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#7636 + # source://prism//lib/prism/node.rb#7584 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14578,31 +14492,31 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7666 + # source://prism//lib/prism/node.rb#7614 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7641 + # source://prism//lib/prism/node.rb#7589 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7644 + # source://prism//lib/prism/node.rb#7592 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#7661 + # source://prism//lib/prism/node.rb#7609 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#7651 + # source://prism//lib/prism/node.rb#7599 sig { returns(Prism::Location) } def operator_loc; end @@ -14621,13 +14535,13 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7684 + # source://prism//lib/prism/node.rb#7632 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#7658 + # source://prism//lib/prism/node.rb#7606 sig { returns(Prism::Node) } def value; end @@ -14639,7 +14553,7 @@ class Prism::GlobalVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7694 + # source://prism//lib/prism/node.rb#7642 def type; end end end @@ -14649,13 +14563,13 @@ end # $target += value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7713 +# source://prism//lib/prism/node.rb#7661 class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # 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#7715 + # source://prism//lib/prism/node.rb#7663 sig do params( source: Prism::Source, @@ -14672,48 +14586,48 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#7764 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7727 + # source://prism//lib/prism/node.rb#7674 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 + # source://prism//lib/prism/node.rb#7727 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#7770 + # source://prism//lib/prism/node.rb#7717 sig { returns(Prism::Location) } def binary_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7732 + # source://prism//lib/prism/node.rb#7679 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#7742 + # source://prism//lib/prism/node.rb#7689 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#7737 + # source://prism//lib/prism/node.rb#7684 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # 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#7747 + # source://prism//lib/prism/node.rb#7694 sig do params( name: Symbol, @@ -14729,13 +14643,13 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7732 + # source://prism//lib/prism/node.rb#7679 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#7755 + # source://prism//lib/prism/node.rb#7702 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14747,32 +14661,32 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7783 + # source://prism//lib/prism/node.rb#7730 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7760 + # source://prism//lib/prism/node.rb#7707 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7763 + # source://prism//lib/prism/node.rb#7710 sig { returns(Prism::Location) } def name_loc; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#371 + # source://prism//lib/prism/node_ext.rb#387 def operator; end # 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_ext.rb#378 + # source://prism//lib/prism/node_ext.rb#394 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -14790,13 +14704,13 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7801 + # source://prism//lib/prism/node.rb#7748 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#7777 + # source://prism//lib/prism/node.rb#7724 sig { returns(Prism::Node) } def value; end @@ -14808,7 +14722,7 @@ class Prism::GlobalVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7811 + # source://prism//lib/prism/node.rb#7758 def type; end end end @@ -14818,13 +14732,13 @@ end # $target ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#7831 +# source://prism//lib/prism/node.rb#7778 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#7833 + # source://prism//lib/prism/node.rb#7780 sig do params( source: Prism::Source, @@ -14840,36 +14754,36 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#7882 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7844 + # source://prism//lib/prism/node.rb#7790 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#7849 + # source://prism//lib/prism/node.rb#7795 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#7859 + # source://prism//lib/prism/node.rb#7805 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#7854 + # source://prism//lib/prism/node.rb#7800 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#7864 + # source://prism//lib/prism/node.rb#7810 sig do params( name: Symbol, @@ -14884,13 +14798,13 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#7849 + # source://prism//lib/prism/node.rb#7795 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#7872 + # source://prism//lib/prism/node.rb#7818 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -14902,31 +14816,31 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7902 + # source://prism//lib/prism/node.rb#7848 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#7877 + # source://prism//lib/prism/node.rb#7823 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#7880 + # source://prism//lib/prism/node.rb#7826 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#7897 + # source://prism//lib/prism/node.rb#7843 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#7887 + # source://prism//lib/prism/node.rb#7833 sig { returns(Prism::Location) } def operator_loc; end @@ -14945,13 +14859,13 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#7920 + # source://prism//lib/prism/node.rb#7866 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#7894 + # source://prism//lib/prism/node.rb#7840 sig { returns(Prism::Node) } def value; end @@ -14963,7 +14877,7 @@ class Prism::GlobalVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#7930 + # source://prism//lib/prism/node.rb#7876 def type; end end end @@ -14973,62 +14887,62 @@ end # $foo # ^^^^ # -# source://prism//lib/prism/node.rb#7949 +# source://prism//lib/prism/node.rb#7895 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#7951 + # source://prism//lib/prism/node.rb#7897 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 + # source://prism//lib/prism/node.rb#7978 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#7959 + # source://prism//lib/prism/node.rb#7904 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#7964 + # source://prism//lib/prism/node.rb#7909 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#7974 + # source://prism//lib/prism/node.rb#7919 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#7969 + # source://prism//lib/prism/node.rb#7914 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#7979 + # source://prism//lib/prism/node.rb#7924 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#7964 + # source://prism//lib/prism/node.rb#7909 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#7987 + # source://prism//lib/prism/node.rb#7932 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -15037,7 +14951,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#7999 + # source://prism//lib/prism/node.rb#7944 sig { override.returns(String) } def inspect; end @@ -15047,7 +14961,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # $_Test # name `:$_Test` # - # source://prism//lib/prism/node.rb#7996 + # source://prism//lib/prism/node.rb#7941 sig { returns(Symbol) } def name; end @@ -15066,7 +14980,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8017 + # source://prism//lib/prism/node.rb#7962 sig { override.returns(Symbol) } def type; end @@ -15078,7 +14992,7 @@ class Prism::GlobalVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8027 + # source://prism//lib/prism/node.rb#7972 def type; end end end @@ -15088,62 +15002,62 @@ end # $foo, $bar = baz # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#8043 +# source://prism//lib/prism/node.rb#7988 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#8045 + # source://prism//lib/prism/node.rb#7990 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 + # source://prism//lib/prism/node.rb#8067 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8053 + # source://prism//lib/prism/node.rb#7997 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#8058 + # source://prism//lib/prism/node.rb#8002 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#8068 + # source://prism//lib/prism/node.rb#8012 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#8063 + # source://prism//lib/prism/node.rb#8007 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#8073 + # source://prism//lib/prism/node.rb#8017 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#8058 + # source://prism//lib/prism/node.rb#8002 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#8081 + # source://prism//lib/prism/node.rb#8025 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -15152,13 +15066,13 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#8089 + # source://prism//lib/prism/node.rb#8033 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#8086 + # source://prism//lib/prism/node.rb#8030 sig { returns(Symbol) } def name; end @@ -15177,7 +15091,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8107 + # source://prism//lib/prism/node.rb#8051 sig { override.returns(Symbol) } def type; end @@ -15189,7 +15103,7 @@ class Prism::GlobalVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8117 + # source://prism//lib/prism/node.rb#8061 def type; end end end @@ -15199,13 +15113,13 @@ end # $foo = 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#8133 +# source://prism//lib/prism/node.rb#8077 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#8135 + # source://prism//lib/prism/node.rb#8079 sig do params( source: Prism::Source, @@ -15221,36 +15135,36 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#8197 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8146 + # source://prism//lib/prism/node.rb#8089 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#8151 + # source://prism//lib/prism/node.rb#8094 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#8161 + # source://prism//lib/prism/node.rb#8104 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#8156 + # source://prism//lib/prism/node.rb#8099 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#8166 + # source://prism//lib/prism/node.rb#8109 sig do params( name: Symbol, @@ -15265,13 +15179,13 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8151 + # source://prism//lib/prism/node.rb#8094 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#8174 + # source://prism//lib/prism/node.rb#8117 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -15280,7 +15194,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#8220 + # source://prism//lib/prism/node.rb#8163 sig { override.returns(String) } def inspect; end @@ -15290,7 +15204,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # # $_Test = 123 # name `:$_Test` # - # source://prism//lib/prism/node.rb#8183 + # source://prism//lib/prism/node.rb#8126 sig { returns(Symbol) } def name; end @@ -15299,13 +15213,13 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # $foo = :bar # ^^^^ # - # source://prism//lib/prism/node.rb#8189 + # source://prism//lib/prism/node.rb#8132 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#8215 + # source://prism//lib/prism/node.rb#8158 sig { returns(String) } def operator; end @@ -15314,7 +15228,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # $foo = :bar # ^ # - # source://prism//lib/prism/node.rb#8208 + # source://prism//lib/prism/node.rb#8151 sig { returns(Prism::Location) } def operator_loc; end @@ -15333,7 +15247,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8238 + # source://prism//lib/prism/node.rb#8181 sig { override.returns(Symbol) } def type; end @@ -15345,7 +15259,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # $-xyz = 123 # ^^^ # - # source://prism//lib/prism/node.rb#8202 + # source://prism//lib/prism/node.rb#8145 sig { returns(Prism::Node) } def value; end @@ -15357,7 +15271,7 @@ class Prism::GlobalVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8248 + # source://prism//lib/prism/node.rb#8191 def type; end end end @@ -15367,13 +15281,13 @@ end # { a => b } # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8267 +# source://prism//lib/prism/node.rb#8210 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#8269 + # source://prism//lib/prism/node.rb#8212 sig do params( source: Prism::Source, @@ -15388,24 +15302,24 @@ class Prism::HashNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#8327 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8279 + # source://prism//lib/prism/node.rb#8221 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#8284 + # source://prism//lib/prism/node.rb#8226 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#8346 + # source://prism//lib/prism/node.rb#8288 sig { returns(String) } def closing; end @@ -15414,25 +15328,25 @@ class Prism::HashNode < ::Prism::Node # { a => b } # ^ # - # source://prism//lib/prism/node.rb#8334 + # source://prism//lib/prism/node.rb#8276 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8294 + # source://prism//lib/prism/node.rb#8236 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#8289 + # source://prism//lib/prism/node.rb#8231 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#8299 + # source://prism//lib/prism/node.rb#8241 sig do params( opening_loc: Prism::Location, @@ -15446,13 +15360,13 @@ class Prism::HashNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8284 + # source://prism//lib/prism/node.rb#8226 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#8307 + # source://prism//lib/prism/node.rb#8249 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -15464,7 +15378,7 @@ class Prism::HashNode < ::Prism::Node # { **foo } # ^^^^^ # - # source://prism//lib/prism/node.rb#8328 + # source://prism//lib/prism/node.rb#8270 sig { returns(T::Array[T.any(Prism::AssocNode, Prism::AssocSplatNode)]) } def elements; end @@ -15473,13 +15387,13 @@ class Prism::HashNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#8351 + # source://prism//lib/prism/node.rb#8293 sig { override.returns(String) } def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#8341 + # source://prism//lib/prism/node.rb#8283 sig { returns(String) } def opening; end @@ -15488,7 +15402,7 @@ class Prism::HashNode < ::Prism::Node # { a => b } # ^ # - # source://prism//lib/prism/node.rb#8315 + # source://prism//lib/prism/node.rb#8257 sig { returns(Prism::Location) } def opening_loc; end @@ -15507,7 +15421,7 @@ class Prism::HashNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8369 + # source://prism//lib/prism/node.rb#8311 sig { override.returns(Symbol) } def type; end @@ -15519,7 +15433,7 @@ class Prism::HashNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8379 + # source://prism//lib/prism/node.rb#8321 def type; end end end @@ -15532,13 +15446,13 @@ end # foo => { a: 1, b: 2, **c } # ^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8401 +# source://prism//lib/prism/node.rb#8343 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#8403 + # source://prism//lib/prism/node.rb#8345 sig do params( source: Prism::Source, @@ -15555,54 +15469,54 @@ class Prism::HashPatternNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#8472 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8415 + # source://prism//lib/prism/node.rb#8356 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#8420 + # source://prism//lib/prism/node.rb#8361 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#8492 + # source://prism//lib/prism/node.rb#8433 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#8474 + # source://prism//lib/prism/node.rb#8415 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#8434 + # source://prism//lib/prism/node.rb#8375 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#8425 + # source://prism//lib/prism/node.rb#8366 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant: Prism::node? # - # source://prism//lib/prism/node.rb#8452 + # source://prism//lib/prism/node.rb#8393 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#8439 + # source://prism//lib/prism/node.rb#8380 sig do params( constant: T.nilable(Prism::Node), @@ -15618,19 +15532,19 @@ class Prism::HashPatternNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8420 + # source://prism//lib/prism/node.rb#8361 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#8447 + # source://prism//lib/prism/node.rb#8388 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#8455 + # source://prism//lib/prism/node.rb#8396 sig { returns(T::Array[Prism::AssocNode]) } def elements; end @@ -15639,25 +15553,25 @@ class Prism::HashPatternNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#8497 + # source://prism//lib/prism/node.rb#8438 sig { override.returns(String) } def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#8487 + # source://prism//lib/prism/node.rb#8428 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#8461 + # source://prism//lib/prism/node.rb#8402 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader rest: AssocSplatNode | NoKeywordsParameterNode | nil # - # source://prism//lib/prism/node.rb#8458 + # source://prism//lib/prism/node.rb#8399 sig { returns(T.nilable(T.any(Prism::AssocSplatNode, Prism::NoKeywordsParameterNode))) } def rest; end @@ -15676,7 +15590,7 @@ class Prism::HashPatternNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8515 + # source://prism//lib/prism/node.rb#8456 sig { override.returns(Symbol) } def type; end @@ -15688,18 +15602,18 @@ class Prism::HashPatternNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8525 + # source://prism//lib/prism/node.rb#8466 def type; end end end -# source://prism//lib/prism/node_ext.rb#46 +# source://prism//lib/prism/node_ext.rb#49 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#48 + # source://prism//lib/prism/node_ext.rb#51 def heredoc?; end end @@ -15714,13 +15628,13 @@ end # foo ? bar : baz # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#8552 +# source://prism//lib/prism/node.rb#8493 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#8554 + # source://prism//lib/prism/node.rb#8495 sig do params( source: Prism::Source, @@ -15738,30 +15652,30 @@ class Prism::IfNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#8687 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8567 + # source://prism//lib/prism/node.rb#8507 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#8576 + # source://prism//lib/prism/node.rb#8512 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#8590 + # source://prism//lib/prism/node.rb#8526 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#8581 + # source://prism//lib/prism/node.rb#8517 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -15779,13 +15693,13 @@ class Prism::IfNode < ::Prism::Node # if foo then bar else baz end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/node.rb#8681 + # source://prism//lib/prism/node.rb#8617 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#8595 + # source://prism//lib/prism/node.rb#8531 sig do params( if_keyword_loc: T.nilable(Prism::Location), @@ -15802,19 +15716,19 @@ class Prism::IfNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8576 + # source://prism//lib/prism/node.rb#8512 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#8603 + # source://prism//lib/prism/node.rb#8539 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#8712 + # source://prism//lib/prism/node.rb#8648 sig { returns(T.nilable(String)) } def end_keyword; end @@ -15825,7 +15739,7 @@ class Prism::IfNode < ::Prism::Node # end # ^^^ # - # source://prism//lib/prism/node.rb#8689 + # source://prism//lib/prism/node.rb#8625 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end @@ -15834,7 +15748,7 @@ class Prism::IfNode < ::Prism::Node # def if_keyword: () -> String? # - # source://prism//lib/prism/node.rb#8702 + # source://prism//lib/prism/node.rb#8638 sig { returns(T.nilable(String)) } def if_keyword; end @@ -15845,16 +15759,19 @@ class Prism::IfNode < ::Prism::Node # # The `if_keyword_loc` field will be `nil` when the `IfNode` represents a ternary expression. # - # source://prism//lib/prism/node.rb#8613 + # source://prism//lib/prism/node.rb#8549 sig { returns(T.nilable(Prism::Location)) } def if_keyword_loc; end # def inspect -> String # - # source://prism//lib/prism/node.rb#8717 + # source://prism//lib/prism/node.rb#8653 sig { override.returns(String) } def inspect; end + # source://prism//lib/prism/parse_result/newlines.rb#91 + def newline!(lines); end + # The node for the condition the `IfNode` is testing. # # if foo @@ -15868,13 +15785,10 @@ class Prism::IfNode < ::Prism::Node # foo ? bar : baz # ^^^ # - # source://prism//lib/prism/node.rb#8637 + # source://prism//lib/prism/node.rb#8573 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#8571 - def set_newline_flag(newline_marked); end - # 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 @@ -15884,13 +15798,13 @@ class Prism::IfNode < ::Prism::Node # ^^^ # end # - # source://prism//lib/prism/node.rb#8666 + # source://prism//lib/prism/node.rb#8602 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#8707 + # source://prism//lib/prism/node.rb#8643 sig { returns(T.nilable(String)) } def then_keyword; end @@ -15902,7 +15816,7 @@ class Prism::IfNode < ::Prism::Node # a ? b : c # ^ # - # source://prism//lib/prism/node.rb#8646 + # source://prism//lib/prism/node.rb#8582 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -15921,7 +15835,7 @@ class Prism::IfNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8735 + # source://prism//lib/prism/node.rb#8671 sig { override.returns(Symbol) } def type; end @@ -15933,7 +15847,7 @@ class Prism::IfNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8745 + # source://prism//lib/prism/node.rb#8681 def type; end end end @@ -15943,13 +15857,13 @@ end # 1.0i # ^^^^ # -# source://prism//lib/prism/node.rb#8766 +# source://prism//lib/prism/node.rb#8702 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#8768 + # source://prism//lib/prism/node.rb#8704 sig do params( source: Prism::Source, @@ -15962,36 +15876,36 @@ class Prism::ImaginaryNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#8781 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8776 + # source://prism//lib/prism/node.rb#8711 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#8781 + # source://prism//lib/prism/node.rb#8716 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#8791 + # source://prism//lib/prism/node.rb#8726 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#8786 + # source://prism//lib/prism/node.rb#8721 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#8796 + # source://prism//lib/prism/node.rb#8731 sig do params( numeric: T.any(Prism::FloatNode, Prism::IntegerNode, Prism::RationalNode), @@ -16003,13 +15917,13 @@ class Prism::ImaginaryNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#8781 + # source://prism//lib/prism/node.rb#8716 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#8804 + # source://prism//lib/prism/node.rb#8739 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16018,13 +15932,13 @@ class Prism::ImaginaryNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#8812 + # source://prism//lib/prism/node.rb#8747 sig { override.returns(String) } def inspect; end # attr_reader numeric: FloatNode | IntegerNode | RationalNode # - # source://prism//lib/prism/node.rb#8809 + # source://prism//lib/prism/node.rb#8744 sig { returns(T.any(Prism::FloatNode, Prism::IntegerNode, Prism::RationalNode)) } def numeric; end @@ -16043,13 +15957,13 @@ class Prism::ImaginaryNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8830 + # source://prism//lib/prism/node.rb#8765 sig { override.returns(Symbol) } def type; end # Returns the value of the node as a Ruby Complex. # - # source://prism//lib/prism/node_ext.rb#98 + # source://prism//lib/prism/node_ext.rb#101 sig { returns(Complex) } def value; end @@ -16061,7 +15975,7 @@ class Prism::ImaginaryNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8840 + # source://prism//lib/prism/node.rb#8775 def type; end end end @@ -16077,62 +15991,62 @@ end # foo in { bar: } # ^^^^ # -# source://prism//lib/prism/node.rb#8862 +# source://prism//lib/prism/node.rb#8797 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#8864 + # source://prism//lib/prism/node.rb#8799 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 + # source://prism//lib/prism/node.rb#8876 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8872 + # source://prism//lib/prism/node.rb#8806 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#8877 + # source://prism//lib/prism/node.rb#8811 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#8887 + # source://prism//lib/prism/node.rb#8821 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#8882 + # source://prism//lib/prism/node.rb#8816 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#8892 + # source://prism//lib/prism/node.rb#8826 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#8877 + # source://prism//lib/prism/node.rb#8811 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#8900 + # source://prism//lib/prism/node.rb#8834 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16141,7 +16055,7 @@ class Prism::ImplicitNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#8908 + # source://prism//lib/prism/node.rb#8842 sig { override.returns(String) } def inspect; end @@ -16160,13 +16074,13 @@ class Prism::ImplicitNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#8926 + # source://prism//lib/prism/node.rb#8860 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#8905 + # source://prism//lib/prism/node.rb#8839 sig { returns(Prism::Node) } def value; end @@ -16178,7 +16092,7 @@ class Prism::ImplicitNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#8936 + # source://prism//lib/prism/node.rb#8870 def type; end end end @@ -16197,62 +16111,62 @@ end # foo, = bar # ^ # -# source://prism//lib/prism/node.rb#8961 +# source://prism//lib/prism/node.rb#8895 class Prism::ImplicitRestNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ImplicitRestNode] a new instance of ImplicitRestNode # - # source://prism//lib/prism/node.rb#8963 + # source://prism//lib/prism/node.rb#8897 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 + # source://prism//lib/prism/node.rb#8970 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#8970 + # source://prism//lib/prism/node.rb#8903 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#8975 + # source://prism//lib/prism/node.rb#8908 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#8985 + # source://prism//lib/prism/node.rb#8918 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#8980 + # source://prism//lib/prism/node.rb#8913 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ImplicitRestNode # - # source://prism//lib/prism/node.rb#8990 + # source://prism//lib/prism/node.rb#8923 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#8975 + # source://prism//lib/prism/node.rb#8908 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#8998 + # source://prism//lib/prism/node.rb#8931 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16261,7 +16175,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#9003 + # source://prism//lib/prism/node.rb#8936 sig { override.returns(String) } def inspect; end @@ -16280,7 +16194,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9021 + # source://prism//lib/prism/node.rb#8954 sig { override.returns(Symbol) } def type; end @@ -16292,7 +16206,7 @@ class Prism::ImplicitRestNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9031 + # source://prism//lib/prism/node.rb#8964 def type; end end end @@ -16302,13 +16216,13 @@ end # case a; in b then c end # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9046 +# source://prism//lib/prism/node.rb#8979 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#9048 + # source://prism//lib/prism/node.rb#8981 sig do params( source: Prism::Source, @@ -16324,36 +16238,36 @@ class Prism::InNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#9097 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9059 + # source://prism//lib/prism/node.rb#8991 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#9064 + # source://prism//lib/prism/node.rb#8996 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#9077 + # source://prism//lib/prism/node.rb#9009 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#9069 + # source://prism//lib/prism/node.rb#9001 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#9082 + # source://prism//lib/prism/node.rb#9014 sig do params( pattern: Prism::Node, @@ -16368,13 +16282,13 @@ class Prism::InNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9064 + # source://prism//lib/prism/node.rb#8996 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#9090 + # source://prism//lib/prism/node.rb#9022 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16383,43 +16297,43 @@ class Prism::InNode < ::Prism::Node # def in: () -> String # - # source://prism//lib/prism/node.rb#9121 + # source://prism//lib/prism/node.rb#9053 sig { returns(String) } def in; end # attr_reader in_loc: Location # - # source://prism//lib/prism/node.rb#9101 + # source://prism//lib/prism/node.rb#9033 sig { returns(Prism::Location) } def in_loc; end # def inspect -> String # - # source://prism//lib/prism/node.rb#9131 + # source://prism//lib/prism/node.rb#9063 sig { override.returns(String) } def inspect; end # attr_reader pattern: Prism::node # - # source://prism//lib/prism/node.rb#9095 + # source://prism//lib/prism/node.rb#9027 sig { returns(Prism::Node) } def pattern; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#9098 + # source://prism//lib/prism/node.rb#9030 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then: () -> String? # - # source://prism//lib/prism/node.rb#9126 + # source://prism//lib/prism/node.rb#9058 sig { returns(T.nilable(String)) } def then; end # attr_reader then_loc: Location? # - # source://prism//lib/prism/node.rb#9108 + # source://prism//lib/prism/node.rb#9040 sig { returns(T.nilable(Prism::Location)) } def then_loc; end @@ -16438,7 +16352,7 @@ class Prism::InNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9149 + # source://prism//lib/prism/node.rb#9081 sig { override.returns(Symbol) } def type; end @@ -16450,7 +16364,7 @@ class Prism::InNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9159 + # source://prism//lib/prism/node.rb#9091 def type; end end end @@ -16460,13 +16374,13 @@ end # foo.bar[baz] &&= value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9178 +# source://prism//lib/prism/node.rb#9110 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#9180 + # source://prism//lib/prism/node.rb#9112 sig do params( source: Prism::Source, @@ -16487,18 +16401,18 @@ class Prism::IndexAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#9289 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9196 + # source://prism//lib/prism/node.rb#9127 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9261 + # source://prism//lib/prism/node.rb#9192 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -16506,61 +16420,61 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9294 + # source://prism//lib/prism/node.rb#9225 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#9271 + # source://prism//lib/prism/node.rb#9202 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#9304 + # source://prism//lib/prism/node.rb#9235 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#9241 + # source://prism//lib/prism/node.rb#9172 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9201 + # source://prism//lib/prism/node.rb#9132 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9314 + # source://prism//lib/prism/node.rb#9245 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9264 + # source://prism//lib/prism/node.rb#9195 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9216 + # source://prism//lib/prism/node.rb#9147 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#9206 + # source://prism//lib/prism/node.rb#9137 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#9221 + # source://prism//lib/prism/node.rb#9152 sig do params( flags: Integer, @@ -16580,13 +16494,13 @@ class Prism::IndexAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9201 + # source://prism//lib/prism/node.rb#9132 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#9229 + # source://prism//lib/prism/node.rb#9160 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16597,43 +16511,43 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9299 + # source://prism//lib/prism/node.rb#9230 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#9324 + # source://prism//lib/prism/node.rb#9255 sig { override.returns(String) } def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9309 + # source://prism//lib/prism/node.rb#9240 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9254 + # source://prism//lib/prism/node.rb#9185 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9319 + # source://prism//lib/prism/node.rb#9250 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9274 + # source://prism//lib/prism/node.rb#9205 sig { returns(Prism::Location) } def operator_loc; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#9238 + # source://prism//lib/prism/node.rb#9169 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -16641,7 +16555,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9284 + # source://prism//lib/prism/node.rb#9215 sig { returns(T::Boolean) } def safe_navigation?; end @@ -16660,13 +16574,13 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9342 + # source://prism//lib/prism/node.rb#9273 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9281 + # source://prism//lib/prism/node.rb#9212 sig { returns(Prism::Node) } def value; end @@ -16674,7 +16588,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9289 + # source://prism//lib/prism/node.rb#9220 sig { returns(T::Boolean) } def variable_call?; end @@ -16682,7 +16596,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#9234 + # source://prism//lib/prism/node.rb#9165 sig { returns(Integer) } def flags; end @@ -16694,7 +16608,7 @@ class Prism::IndexAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9352 + # source://prism//lib/prism/node.rb#9283 def type; end end end @@ -16704,13 +16618,13 @@ end # foo.bar[baz] += value # ^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9376 +# source://prism//lib/prism/node.rb#9307 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 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#9378 + # source://prism//lib/prism/node.rb#9309 sig do params( source: Prism::Source, @@ -16732,18 +16646,18 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#9485 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9395 + # source://prism//lib/prism/node.rb#9325 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9460 + # source://prism//lib/prism/node.rb#9390 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -16751,73 +16665,73 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9496 + # source://prism//lib/prism/node.rb#9426 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader binary_operator: Symbol # - # source://prism//lib/prism/node.rb#9473 + # source://prism//lib/prism/node.rb#9403 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#9476 + # source://prism//lib/prism/node.rb#9406 sig { returns(Prism::Location) } def binary_operator_loc; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#9470 + # source://prism//lib/prism/node.rb#9400 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#9506 + # source://prism//lib/prism/node.rb#9436 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#9440 + # source://prism//lib/prism/node.rb#9370 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9400 + # source://prism//lib/prism/node.rb#9330 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9516 + # source://prism//lib/prism/node.rb#9446 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9463 + # source://prism//lib/prism/node.rb#9393 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9415 + # source://prism//lib/prism/node.rb#9345 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#9405 + # source://prism//lib/prism/node.rb#9335 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?, ?binary_operator: Symbol, ?binary_operator_loc: Location, ?value: Prism::node, ?location: Location) -> IndexOperatorWriteNode # - # source://prism//lib/prism/node.rb#9420 + # source://prism//lib/prism/node.rb#9350 sig do params( flags: Integer, @@ -16838,13 +16752,13 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9400 + # source://prism//lib/prism/node.rb#9330 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?, binary_operator: Symbol, binary_operator_loc: Location, value: Prism::node, location: Location } # - # source://prism//lib/prism/node.rb#9428 + # source://prism//lib/prism/node.rb#9358 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -16855,43 +16769,43 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9501 + # source://prism//lib/prism/node.rb#9431 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#9521 + # source://prism//lib/prism/node.rb#9451 sig { override.returns(String) } def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9511 + # source://prism//lib/prism/node.rb#9441 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9453 + # source://prism//lib/prism/node.rb#9383 sig { returns(Prism::Location) } def opening_loc; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#387 + # source://prism//lib/prism/node_ext.rb#403 def operator; end # 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_ext.rb#394 + # source://prism//lib/prism/node_ext.rb#410 def operator_loc; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#9437 + # source://prism//lib/prism/node.rb#9367 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -16899,7 +16813,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9486 + # source://prism//lib/prism/node.rb#9416 sig { returns(T::Boolean) } def safe_navigation?; end @@ -16918,13 +16832,13 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9539 + # source://prism//lib/prism/node.rb#9469 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9483 + # source://prism//lib/prism/node.rb#9413 sig { returns(Prism::Node) } def value; end @@ -16932,7 +16846,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9491 + # source://prism//lib/prism/node.rb#9421 sig { returns(T::Boolean) } def variable_call?; end @@ -16940,7 +16854,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#9433 + # source://prism//lib/prism/node.rb#9363 sig { returns(Integer) } def flags; end @@ -16952,7 +16866,7 @@ class Prism::IndexOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9549 + # source://prism//lib/prism/node.rb#9479 def type; end end end @@ -16962,13 +16876,13 @@ end # foo.bar[baz] ||= value # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9574 +# source://prism//lib/prism/node.rb#9504 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#9576 + # source://prism//lib/prism/node.rb#9506 sig do params( source: Prism::Source, @@ -16989,18 +16903,18 @@ class Prism::IndexOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#9683 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9592 + # source://prism//lib/prism/node.rb#9521 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9657 + # source://prism//lib/prism/node.rb#9586 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -17008,61 +16922,61 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9690 + # source://prism//lib/prism/node.rb#9619 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#9667 + # source://prism//lib/prism/node.rb#9596 sig { returns(T.nilable(Prism::Node)) } def block; end # def call_operator: () -> String? # - # source://prism//lib/prism/node.rb#9700 + # source://prism//lib/prism/node.rb#9629 sig { returns(T.nilable(String)) } def call_operator; end # attr_reader call_operator_loc: Location? # - # source://prism//lib/prism/node.rb#9637 + # source://prism//lib/prism/node.rb#9566 sig { returns(T.nilable(Prism::Location)) } def call_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9597 + # source://prism//lib/prism/node.rb#9526 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9710 + # source://prism//lib/prism/node.rb#9639 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9660 + # source://prism//lib/prism/node.rb#9589 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9612 + # source://prism//lib/prism/node.rb#9541 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#9602 + # source://prism//lib/prism/node.rb#9531 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#9617 + # source://prism//lib/prism/node.rb#9546 sig do params( flags: Integer, @@ -17082,13 +16996,13 @@ class Prism::IndexOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9597 + # source://prism//lib/prism/node.rb#9526 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#9625 + # source://prism//lib/prism/node.rb#9554 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -17099,43 +17013,43 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9695 + # source://prism//lib/prism/node.rb#9624 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#9720 + # source://prism//lib/prism/node.rb#9649 sig { override.returns(String) } def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9705 + # source://prism//lib/prism/node.rb#9634 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9650 + # source://prism//lib/prism/node.rb#9579 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#9715 + # source://prism//lib/prism/node.rb#9644 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9670 + # source://prism//lib/prism/node.rb#9599 sig { returns(Prism::Location) } def operator_loc; end # attr_reader receiver: Prism::node? # - # source://prism//lib/prism/node.rb#9634 + # source://prism//lib/prism/node.rb#9563 sig { returns(T.nilable(Prism::Node)) } def receiver; end @@ -17143,7 +17057,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9680 + # source://prism//lib/prism/node.rb#9609 sig { returns(T::Boolean) } def safe_navigation?; end @@ -17162,13 +17076,13 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9738 + # source://prism//lib/prism/node.rb#9667 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#9677 + # source://prism//lib/prism/node.rb#9606 sig { returns(Prism::Node) } def value; end @@ -17176,7 +17090,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9685 + # source://prism//lib/prism/node.rb#9614 sig { returns(T::Boolean) } def variable_call?; end @@ -17184,7 +17098,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#9630 + # source://prism//lib/prism/node.rb#9559 sig { returns(Integer) } def flags; end @@ -17196,7 +17110,7 @@ class Prism::IndexOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9748 + # source://prism//lib/prism/node.rb#9677 def type; end end end @@ -17214,13 +17128,13 @@ end # for foo[bar] in baz do end # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#9780 +# source://prism//lib/prism/node.rb#9709 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#9782 + # source://prism//lib/prism/node.rb#9711 sig do params( source: Prism::Source, @@ -17238,18 +17152,18 @@ class Prism::IndexTargetNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#9851 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9795 + # source://prism//lib/prism/node.rb#9723 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#9846 + # source://prism//lib/prism/node.rb#9774 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end @@ -17257,49 +17171,49 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9869 + # source://prism//lib/prism/node.rb#9797 sig { returns(T::Boolean) } def attribute_write?; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#9856 + # source://prism//lib/prism/node.rb#9784 sig { returns(T.nilable(Prism::Node)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9800 + # source://prism//lib/prism/node.rb#9728 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#9884 + # source://prism//lib/prism/node.rb#9812 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#9849 + # source://prism//lib/prism/node.rb#9777 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#9814 + # source://prism//lib/prism/node.rb#9742 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#9805 + # source://prism//lib/prism/node.rb#9733 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#9819 + # source://prism//lib/prism/node.rb#9747 sig do params( flags: Integer, @@ -17316,13 +17230,13 @@ class Prism::IndexTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9800 + # source://prism//lib/prism/node.rb#9728 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#9827 + # source://prism//lib/prism/node.rb#9755 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -17333,31 +17247,31 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9874 + # source://prism//lib/prism/node.rb#9802 sig { returns(T::Boolean) } def ignore_visibility?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#9889 + # source://prism//lib/prism/node.rb#9817 sig { override.returns(String) } def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#9879 + # source://prism//lib/prism/node.rb#9807 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#9839 + # source://prism//lib/prism/node.rb#9767 sig { returns(Prism::Location) } def opening_loc; end # attr_reader receiver: Prism::node # - # source://prism//lib/prism/node.rb#9836 + # source://prism//lib/prism/node.rb#9764 sig { returns(Prism::Node) } def receiver; end @@ -17365,7 +17279,7 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9859 + # source://prism//lib/prism/node.rb#9787 sig { returns(T::Boolean) } def safe_navigation?; end @@ -17384,7 +17298,7 @@ class Prism::IndexTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#9907 + # source://prism//lib/prism/node.rb#9835 sig { override.returns(Symbol) } def type; end @@ -17392,7 +17306,7 @@ class Prism::IndexTargetNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#9864 + # source://prism//lib/prism/node.rb#9792 sig { returns(T::Boolean) } def variable_call?; end @@ -17400,7 +17314,7 @@ class Prism::IndexTargetNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#9832 + # source://prism//lib/prism/node.rb#9760 sig { returns(Integer) } def flags; end @@ -17412,7 +17326,7 @@ class Prism::IndexTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#9917 + # source://prism//lib/prism/node.rb#9845 def type; end end end @@ -17903,331 +17817,336 @@ class Prism::InspectVisitor < ::Prism::Visitor # source://prism//lib/prism/inspect_visitor.rb#1298 def visit_interpolated_x_string_node(node); end - # Inspect a ItParametersNode node. + # Inspect a ItLocalVariableReadNode node. # # source://prism//lib/prism/inspect_visitor.rb#1314 + def visit_it_local_variable_read_node(node); end + + # Inspect a ItParametersNode node. + # + # source://prism//lib/prism/inspect_visitor.rb#1319 def visit_it_parameters_node(node); end # Inspect a KeywordHashNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1319 + # source://prism//lib/prism/inspect_visitor.rb#1324 def visit_keyword_hash_node(node); end # Inspect a KeywordRestParameterNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1335 + # source://prism//lib/prism/inspect_visitor.rb#1340 def visit_keyword_rest_parameter_node(node); end # Inspect a LambdaNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1349 + # source://prism//lib/prism/inspect_visitor.rb#1354 def visit_lambda_node(node); end # Inspect a LocalVariableAndWriteNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1370 + # source://prism//lib/prism/inspect_visitor.rb#1375 def visit_local_variable_and_write_node(node); end # Inspect a LocalVariableOperatorWriteNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1381 + # source://prism//lib/prism/inspect_visitor.rb#1386 def visit_local_variable_operator_write_node(node); end # Inspect a LocalVariableOrWriteNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1393 + # source://prism//lib/prism/inspect_visitor.rb#1398 def visit_local_variable_or_write_node(node); end # Inspect a LocalVariableReadNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1404 + # source://prism//lib/prism/inspect_visitor.rb#1409 def visit_local_variable_read_node(node); end # Inspect a LocalVariableTargetNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1411 + # source://prism//lib/prism/inspect_visitor.rb#1416 def visit_local_variable_target_node(node); end # Inspect a LocalVariableWriteNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1418 + # source://prism//lib/prism/inspect_visitor.rb#1423 def visit_local_variable_write_node(node); end # Inspect a MatchLastLineNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1429 + # source://prism//lib/prism/inspect_visitor.rb#1434 def visit_match_last_line_node(node); end # Inspect a MatchPredicateNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1440 + # source://prism//lib/prism/inspect_visitor.rb#1445 def visit_match_predicate_node(node); end # Inspect a MatchRequiredNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1450 + # source://prism//lib/prism/inspect_visitor.rb#1455 def visit_match_required_node(node); end # Inspect a MatchWriteNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1460 + # source://prism//lib/prism/inspect_visitor.rb#1465 def visit_match_write_node(node); end # Inspect a MissingNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1476 + # source://prism//lib/prism/inspect_visitor.rb#1481 def visit_missing_node(node); end # Inspect a ModuleNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1481 + # source://prism//lib/prism/inspect_visitor.rb#1486 def visit_module_node(node); end # Inspect a MultiTargetNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1498 + # source://prism//lib/prism/inspect_visitor.rb#1503 def visit_multi_target_node(node); end # Inspect a MultiWriteNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1529 + # source://prism//lib/prism/inspect_visitor.rb#1534 def visit_multi_write_node(node); end # Inspect a NextNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1563 + # source://prism//lib/prism/inspect_visitor.rb#1568 def visit_next_node(node); end # Inspect a NilNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1575 + # source://prism//lib/prism/inspect_visitor.rb#1580 def visit_nil_node(node); end # Inspect a NoKeywordsParameterNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1580 + # source://prism//lib/prism/inspect_visitor.rb#1585 def visit_no_keywords_parameter_node(node); end # Inspect a NumberedParametersNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1587 + # source://prism//lib/prism/inspect_visitor.rb#1592 def visit_numbered_parameters_node(node); end # Inspect a NumberedReferenceReadNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1593 + # source://prism//lib/prism/inspect_visitor.rb#1598 def visit_numbered_reference_read_node(node); end # Inspect a OptionalKeywordParameterNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1599 + # source://prism//lib/prism/inspect_visitor.rb#1604 def visit_optional_keyword_parameter_node(node); end # Inspect a OptionalParameterNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1610 + # source://prism//lib/prism/inspect_visitor.rb#1615 def visit_optional_parameter_node(node); end # Inspect a OrNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1622 + # source://prism//lib/prism/inspect_visitor.rb#1627 def visit_or_node(node); end # Inspect a ParametersNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1632 + # source://prism//lib/prism/inspect_visitor.rb#1637 def visit_parameters_node(node); end # Inspect a ParenthesesNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1691 + # source://prism//lib/prism/inspect_visitor.rb#1696 def visit_parentheses_node(node); end # Inspect a PinnedExpressionNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1704 + # source://prism//lib/prism/inspect_visitor.rb#1709 def visit_pinned_expression_node(node); end # Inspect a PinnedVariableNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1714 + # source://prism//lib/prism/inspect_visitor.rb#1719 def visit_pinned_variable_node(node); end # Inspect a PostExecutionNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1722 + # source://prism//lib/prism/inspect_visitor.rb#1727 def visit_post_execution_node(node); end # Inspect a PreExecutionNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1736 + # source://prism//lib/prism/inspect_visitor.rb#1741 def visit_pre_execution_node(node); end # Inspect a ProgramNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1750 + # source://prism//lib/prism/inspect_visitor.rb#1755 def visit_program_node(node); end # Inspect a RangeNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1758 + # source://prism//lib/prism/inspect_visitor.rb#1763 def visit_range_node(node); end # Inspect a RationalNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1778 + # source://prism//lib/prism/inspect_visitor.rb#1783 def visit_rational_node(node); end # Inspect a RedoNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1785 + # source://prism//lib/prism/inspect_visitor.rb#1792 def visit_redo_node(node); end # Inspect a RegularExpressionNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1790 + # source://prism//lib/prism/inspect_visitor.rb#1797 def visit_regular_expression_node(node); end # Inspect a RequiredKeywordParameterNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1801 + # source://prism//lib/prism/inspect_visitor.rb#1808 def visit_required_keyword_parameter_node(node); end # Inspect a RequiredParameterNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1810 + # source://prism//lib/prism/inspect_visitor.rb#1817 def visit_required_parameter_node(node); end # Inspect a RescueModifierNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1818 + # source://prism//lib/prism/inspect_visitor.rb#1825 def visit_rescue_modifier_node(node); end # Inspect a RescueNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1828 + # source://prism//lib/prism/inspect_visitor.rb#1835 def visit_rescue_node(node); end # Inspect a RestParameterNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1862 + # source://prism//lib/prism/inspect_visitor.rb#1869 def visit_rest_parameter_node(node); end # Inspect a RetryNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1876 + # source://prism//lib/prism/inspect_visitor.rb#1883 def visit_retry_node(node); end # Inspect a ReturnNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1881 + # source://prism//lib/prism/inspect_visitor.rb#1888 def visit_return_node(node); end # Inspect a SelfNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1895 + # source://prism//lib/prism/inspect_visitor.rb#1902 def visit_self_node(node); end # Inspect a ShareableConstantNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1900 + # source://prism//lib/prism/inspect_visitor.rb#1907 def visit_shareable_constant_node(node); end # Inspect a SingletonClassNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1909 + # source://prism//lib/prism/inspect_visitor.rb#1916 def visit_singleton_class_node(node); end # Inspect a SourceEncodingNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1926 + # source://prism//lib/prism/inspect_visitor.rb#1933 def visit_source_encoding_node(node); end # Inspect a SourceFileNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1931 + # source://prism//lib/prism/inspect_visitor.rb#1938 def visit_source_file_node(node); end # Inspect a SourceLineNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1939 + # source://prism//lib/prism/inspect_visitor.rb#1946 def visit_source_line_node(node); end # Inspect a SplatNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1944 + # source://prism//lib/prism/inspect_visitor.rb#1951 def visit_splat_node(node); end # Inspect a StatementsNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1956 + # source://prism//lib/prism/inspect_visitor.rb#1963 def visit_statements_node(node); end # Inspect a StringNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1970 + # source://prism//lib/prism/inspect_visitor.rb#1977 def visit_string_node(node); end # Inspect a SuperNode node. # - # source://prism//lib/prism/inspect_visitor.rb#1981 + # source://prism//lib/prism/inspect_visitor.rb#1988 def visit_super_node(node); end # Inspect a SymbolNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2001 + # source://prism//lib/prism/inspect_visitor.rb#2008 def visit_symbol_node(node); end # Inspect a TrueNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2012 + # source://prism//lib/prism/inspect_visitor.rb#2019 def visit_true_node(node); end # Inspect a UndefNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2017 + # source://prism//lib/prism/inspect_visitor.rb#2024 def visit_undef_node(node); end # Inspect a UnlessNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2032 + # source://prism//lib/prism/inspect_visitor.rb#2039 def visit_unless_node(node); end # Inspect a UntilNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2054 + # source://prism//lib/prism/inspect_visitor.rb#2061 def visit_until_node(node); end # Inspect a WhenNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2071 + # source://prism//lib/prism/inspect_visitor.rb#2078 def visit_when_node(node); end # Inspect a WhileNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2093 + # source://prism//lib/prism/inspect_visitor.rb#2100 def visit_while_node(node); end # Inspect a XStringNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2110 + # source://prism//lib/prism/inspect_visitor.rb#2117 def visit_x_string_node(node); end # Inspect a YieldNode node. # - # source://prism//lib/prism/inspect_visitor.rb#2121 + # source://prism//lib/prism/inspect_visitor.rb#2128 def visit_yield_node(node); end private # Compose a string representing the given inner location field. # - # source://prism//lib/prism/inspect_visitor.rb#2148 + # source://prism//lib/prism/inspect_visitor.rb#2150 def inspect_location(location); end # Compose a header for the given node. # - # source://prism//lib/prism/inspect_visitor.rb#2137 + # source://prism//lib/prism/inspect_visitor.rb#2144 def inspect_node(name, node); end class << self @@ -18260,13 +18179,13 @@ end # @target &&= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#9938 +# source://prism//lib/prism/node.rb#9866 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#9940 + # source://prism//lib/prism/node.rb#9868 sig do params( source: Prism::Source, @@ -18282,36 +18201,36 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#9970 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#9951 + # source://prism//lib/prism/node.rb#9878 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#9956 + # source://prism//lib/prism/node.rb#9883 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#9966 + # source://prism//lib/prism/node.rb#9893 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#9961 + # source://prism//lib/prism/node.rb#9888 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#9971 + # source://prism//lib/prism/node.rb#9898 sig do params( name: Symbol, @@ -18326,13 +18245,13 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#9956 + # source://prism//lib/prism/node.rb#9883 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#9979 + # source://prism//lib/prism/node.rb#9906 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18344,31 +18263,31 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#10009 + # source://prism//lib/prism/node.rb#9936 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#9984 + # source://prism//lib/prism/node.rb#9911 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#9987 + # source://prism//lib/prism/node.rb#9914 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10004 + # source://prism//lib/prism/node.rb#9931 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#9994 + # source://prism//lib/prism/node.rb#9921 sig { returns(Prism::Location) } def operator_loc; end @@ -18387,13 +18306,13 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10027 + # source://prism//lib/prism/node.rb#9954 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#10001 + # source://prism//lib/prism/node.rb#9928 sig { returns(Prism::Node) } def value; end @@ -18405,7 +18324,7 @@ class Prism::InstanceVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10037 + # source://prism//lib/prism/node.rb#9964 def type; end end end @@ -18415,13 +18334,13 @@ end # @target += value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10056 +# source://prism//lib/prism/node.rb#9983 class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # 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#10058 + # source://prism//lib/prism/node.rb#9985 sig do params( source: Prism::Source, @@ -18438,48 +18357,48 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#10086 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10070 + # source://prism//lib/prism/node.rb#9996 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 + # source://prism//lib/prism/node.rb#10049 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#10113 + # source://prism//lib/prism/node.rb#10039 sig { returns(Prism::Location) } def binary_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10075 + # source://prism//lib/prism/node.rb#10001 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#10085 + # source://prism//lib/prism/node.rb#10011 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#10080 + # source://prism//lib/prism/node.rb#10006 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # 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#10090 + # source://prism//lib/prism/node.rb#10016 sig do params( name: Symbol, @@ -18495,13 +18414,13 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10075 + # source://prism//lib/prism/node.rb#10001 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#10098 + # source://prism//lib/prism/node.rb#10024 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18513,32 +18432,32 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#10126 + # source://prism//lib/prism/node.rb#10052 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#10103 + # source://prism//lib/prism/node.rb#10029 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#10106 + # source://prism//lib/prism/node.rb#10032 sig { returns(Prism::Location) } def name_loc; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#403 + # source://prism//lib/prism/node_ext.rb#419 def operator; end # 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_ext.rb#410 + # 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 @@ -18556,13 +18475,13 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10144 + # source://prism//lib/prism/node.rb#10070 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#10120 + # source://prism//lib/prism/node.rb#10046 sig { returns(Prism::Node) } def value; end @@ -18574,7 +18493,7 @@ class Prism::InstanceVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10154 + # source://prism//lib/prism/node.rb#10080 def type; end end end @@ -18584,13 +18503,13 @@ end # @target ||= value # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10174 +# source://prism//lib/prism/node.rb#10100 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#10176 + # source://prism//lib/prism/node.rb#10102 sig do params( source: Prism::Source, @@ -18606,36 +18525,36 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#10204 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10187 + # source://prism//lib/prism/node.rb#10112 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#10192 + # source://prism//lib/prism/node.rb#10117 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#10202 + # source://prism//lib/prism/node.rb#10127 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#10197 + # source://prism//lib/prism/node.rb#10122 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#10207 + # source://prism//lib/prism/node.rb#10132 sig do params( name: Symbol, @@ -18650,13 +18569,13 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10192 + # source://prism//lib/prism/node.rb#10117 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#10215 + # source://prism//lib/prism/node.rb#10140 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18668,31 +18587,31 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#10245 + # source://prism//lib/prism/node.rb#10170 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#10220 + # source://prism//lib/prism/node.rb#10145 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#10223 + # source://prism//lib/prism/node.rb#10148 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10240 + # source://prism//lib/prism/node.rb#10165 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#10230 + # source://prism//lib/prism/node.rb#10155 sig { returns(Prism::Location) } def operator_loc; end @@ -18711,13 +18630,13 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10263 + # source://prism//lib/prism/node.rb#10188 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#10237 + # source://prism//lib/prism/node.rb#10162 sig { returns(Prism::Node) } def value; end @@ -18729,7 +18648,7 @@ class Prism::InstanceVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10273 + # source://prism//lib/prism/node.rb#10198 def type; end end end @@ -18739,62 +18658,62 @@ end # @foo # ^^^^ # -# source://prism//lib/prism/node.rb#10292 +# source://prism//lib/prism/node.rb#10217 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#10294 + # source://prism//lib/prism/node.rb#10219 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 + # source://prism//lib/prism/node.rb#10300 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10302 + # source://prism//lib/prism/node.rb#10226 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#10307 + # source://prism//lib/prism/node.rb#10231 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#10317 + # source://prism//lib/prism/node.rb#10241 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#10312 + # source://prism//lib/prism/node.rb#10236 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#10322 + # source://prism//lib/prism/node.rb#10246 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#10307 + # source://prism//lib/prism/node.rb#10231 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#10330 + # source://prism//lib/prism/node.rb#10254 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18803,7 +18722,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#10342 + # source://prism//lib/prism/node.rb#10266 sig { override.returns(String) } def inspect; end @@ -18813,7 +18732,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # @_test # name `:@_test` # - # source://prism//lib/prism/node.rb#10339 + # source://prism//lib/prism/node.rb#10263 sig { returns(Symbol) } def name; end @@ -18832,7 +18751,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10360 + # source://prism//lib/prism/node.rb#10284 sig { override.returns(Symbol) } def type; end @@ -18844,7 +18763,7 @@ class Prism::InstanceVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10370 + # source://prism//lib/prism/node.rb#10294 def type; end end end @@ -18854,62 +18773,62 @@ end # @foo, @bar = baz # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#10386 +# source://prism//lib/prism/node.rb#10310 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#10388 + # source://prism//lib/prism/node.rb#10312 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 + # source://prism//lib/prism/node.rb#10389 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10396 + # source://prism//lib/prism/node.rb#10319 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#10401 + # source://prism//lib/prism/node.rb#10324 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#10411 + # source://prism//lib/prism/node.rb#10334 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#10406 + # source://prism//lib/prism/node.rb#10329 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#10416 + # source://prism//lib/prism/node.rb#10339 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#10401 + # source://prism//lib/prism/node.rb#10324 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#10424 + # source://prism//lib/prism/node.rb#10347 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -18918,13 +18837,13 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#10432 + # source://prism//lib/prism/node.rb#10355 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#10429 + # source://prism//lib/prism/node.rb#10352 sig { returns(Symbol) } def name; end @@ -18943,7 +18862,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10450 + # source://prism//lib/prism/node.rb#10373 sig { override.returns(Symbol) } def type; end @@ -18955,7 +18874,7 @@ class Prism::InstanceVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10460 + # source://prism//lib/prism/node.rb#10383 def type; end end end @@ -18965,13 +18884,13 @@ end # @foo = 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#10476 +# source://prism//lib/prism/node.rb#10399 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#10478 + # source://prism//lib/prism/node.rb#10401 sig do params( source: Prism::Source, @@ -18987,36 +18906,36 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#10519 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10489 + # source://prism//lib/prism/node.rb#10411 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#10494 + # source://prism//lib/prism/node.rb#10416 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#10504 + # source://prism//lib/prism/node.rb#10426 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#10499 + # source://prism//lib/prism/node.rb#10421 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#10509 + # source://prism//lib/prism/node.rb#10431 sig do params( name: Symbol, @@ -19031,13 +18950,13 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10494 + # source://prism//lib/prism/node.rb#10416 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#10517 + # source://prism//lib/prism/node.rb#10439 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -19046,7 +18965,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#10563 + # source://prism//lib/prism/node.rb#10485 sig { override.returns(String) } def inspect; end @@ -19056,7 +18975,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # @_foo = "bar" # name `@_foo` # - # source://prism//lib/prism/node.rb#10526 + # source://prism//lib/prism/node.rb#10448 sig { returns(Symbol) } def name; end @@ -19065,13 +18984,13 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # @_x = 1 # ^^^ # - # source://prism//lib/prism/node.rb#10532 + # source://prism//lib/prism/node.rb#10454 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#10558 + # source://prism//lib/prism/node.rb#10480 sig { returns(String) } def operator; end @@ -19080,7 +18999,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # @x = y # ^ # - # source://prism//lib/prism/node.rb#10551 + # source://prism//lib/prism/node.rb#10473 sig { returns(Prism::Location) } def operator_loc; end @@ -19099,7 +19018,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10581 + # source://prism//lib/prism/node.rb#10503 sig { override.returns(Symbol) } def type; end @@ -19111,7 +19030,7 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # @_x = 1234 # ^^^^ # - # source://prism//lib/prism/node.rb#10545 + # source://prism//lib/prism/node.rb#10467 sig { returns(Prism::Node) } def value; end @@ -19123,34 +19042,34 @@ class Prism::InstanceVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10591 + # source://prism//lib/prism/node.rb#10513 def type; end end end # Flags for integer nodes that correspond to the base of the integer. # -# source://prism//lib/prism/node.rb#19241 +# source://prism//lib/prism/node.rb#19166 module Prism::IntegerBaseFlags; end # 0b prefix # -# source://prism//lib/prism/node.rb#19243 +# source://prism//lib/prism/node.rb#19168 Prism::IntegerBaseFlags::BINARY = T.let(T.unsafe(nil), Integer) # 0d or no prefix # -# source://prism//lib/prism/node.rb#19246 +# source://prism//lib/prism/node.rb#19171 Prism::IntegerBaseFlags::DECIMAL = T.let(T.unsafe(nil), Integer) # 0x prefix # -# source://prism//lib/prism/node.rb#19252 +# source://prism//lib/prism/node.rb#19177 Prism::IntegerBaseFlags::HEXADECIMAL = T.let(T.unsafe(nil), Integer) # 0o or 0 prefix # -# source://prism//lib/prism/node.rb#19249 +# source://prism//lib/prism/node.rb#19174 Prism::IntegerBaseFlags::OCTAL = T.let(T.unsafe(nil), Integer) # Represents an integer number literal. @@ -19158,25 +19077,25 @@ Prism::IntegerBaseFlags::OCTAL = T.let(T.unsafe(nil), Integer) # 1 # ^ # -# source://prism//lib/prism/node.rb#10610 +# source://prism//lib/prism/node.rb#10532 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#10612 + # source://prism//lib/prism/node.rb#10534 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 + # source://prism//lib/prism/node.rb#10636 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10621 + # source://prism//lib/prism/node.rb#10542 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -19184,31 +19103,31 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10661 + # source://prism//lib/prism/node.rb#10582 sig { returns(T::Boolean) } def binary?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10626 + # source://prism//lib/prism/node.rb#10547 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#10636 + # source://prism//lib/prism/node.rb#10557 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#10631 + # source://prism//lib/prism/node.rb#10552 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#10641 + # source://prism//lib/prism/node.rb#10562 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 @@ -19216,20 +19135,20 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10666 + # source://prism//lib/prism/node.rb#10587 sig { returns(T::Boolean) } def decimal?; end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10626 + # source://prism//lib/prism/node.rb#10547 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#10649 + # source://prism//lib/prism/node.rb#10570 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -19240,13 +19159,13 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10676 + # source://prism//lib/prism/node.rb#10597 sig { returns(T::Boolean) } def hexadecimal?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#10681 + # source://prism//lib/prism/node.rb#10602 sig { override.returns(String) } def inspect; end @@ -19254,7 +19173,7 @@ class Prism::IntegerNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10671 + # source://prism//lib/prism/node.rb#10592 sig { returns(T::Boolean) } def octal?; end @@ -19273,13 +19192,13 @@ class Prism::IntegerNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10699 + # source://prism//lib/prism/node.rb#10620 sig { override.returns(Symbol) } def type; end # The value of the integer literal as a number. # - # source://prism//lib/prism/node.rb#10658 + # source://prism//lib/prism/node.rb#10579 sig { returns(Integer) } def value; end @@ -19287,7 +19206,7 @@ class Prism::IntegerNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#10654 + # source://prism//lib/prism/node.rb#10575 sig { returns(Integer) } def flags; end @@ -19299,7 +19218,7 @@ class Prism::IntegerNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10709 + # source://prism//lib/prism/node.rb#10630 def type; end end end @@ -19309,7 +19228,7 @@ end # if /foo #{bar} baz/ then end # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10726 +# source://prism//lib/prism/node.rb#10647 class Prism::InterpolatedMatchLastLineNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -19317,7 +19236,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [InterpolatedMatchLastLineNode] a new instance of InterpolatedMatchLastLineNode # - # source://prism//lib/prism/node.rb#10728 + # source://prism//lib/prism/node.rb#10649 sig do params( source: Prism::Source, @@ -19333,12 +19252,12 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#10812 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10739 + # source://prism//lib/prism/node.rb#10659 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -19346,43 +19265,43 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10823 + # source://prism//lib/prism/node.rb#10738 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10749 + # source://prism//lib/prism/node.rb#10664 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#10858 + # source://prism//lib/prism/node.rb#10773 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#10791 + # source://prism//lib/prism/node.rb#10706 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10759 + # source://prism//lib/prism/node.rb#10674 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#10754 + # source://prism//lib/prism/node.rb#10669 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#10764 + # source://prism//lib/prism/node.rb#10679 sig do params( flags: Integer, @@ -19397,13 +19316,13 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10749 + # source://prism//lib/prism/node.rb#10664 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#10772 + # source://prism//lib/prism/node.rb#10687 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -19411,7 +19330,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10818 + # source://prism//lib/prism/node.rb#10733 sig { returns(T::Boolean) } def euc_jp?; end @@ -19419,7 +19338,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10803 + # source://prism//lib/prism/node.rb#10718 sig { returns(T::Boolean) } def extended?; end @@ -19430,7 +19349,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10843 + # source://prism//lib/prism/node.rb#10758 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -19438,7 +19357,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10848 + # source://prism//lib/prism/node.rb#10763 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -19446,7 +19365,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10838 + # source://prism//lib/prism/node.rb#10753 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -19454,13 +19373,13 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10798 + # source://prism//lib/prism/node.rb#10713 sig { returns(T::Boolean) } def ignore_case?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#10863 + # source://prism//lib/prism/node.rb#10778 sig { override.returns(String) } def inspect; end @@ -19468,27 +19387,30 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10808 + # source://prism//lib/prism/node.rb#10723 sig { returns(T::Boolean) } def multi_line?; end + # source://prism//lib/prism/parse_result/newlines.rb#121 + def newline!(lines); end + # def once?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10813 + # source://prism//lib/prism/node.rb#10728 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#10853 + # source://prism//lib/prism/node.rb#10768 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#10781 + # source://prism//lib/prism/node.rb#10696 sig { returns(Prism::Location) } def opening_loc; end @@ -19497,13 +19419,10 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#10788 + # source://prism//lib/prism/node.rb#10703 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # 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 # 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 @@ -19519,7 +19438,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#10881 + # source://prism//lib/prism/node.rb#10796 sig { override.returns(Symbol) } def type; end @@ -19527,7 +19446,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10833 + # source://prism//lib/prism/node.rb#10748 sig { returns(T::Boolean) } def utf_8?; end @@ -19535,7 +19454,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10828 + # source://prism//lib/prism/node.rb#10743 sig { returns(T::Boolean) } def windows_31j?; end @@ -19543,7 +19462,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#10777 + # source://prism//lib/prism/node.rb#10692 sig { returns(Integer) } def flags; end @@ -19555,7 +19474,7 @@ class Prism::InterpolatedMatchLastLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#10891 + # source://prism//lib/prism/node.rb#10806 def type; end end end @@ -19565,7 +19484,7 @@ end # /foo #{bar} baz/ # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#10911 +# source://prism//lib/prism/node.rb#10826 class Prism::InterpolatedRegularExpressionNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -19573,7 +19492,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [InterpolatedRegularExpressionNode] a new instance of InterpolatedRegularExpressionNode # - # source://prism//lib/prism/node.rb#10913 + # source://prism//lib/prism/node.rb#10828 sig do params( source: Prism::Source, @@ -19589,12 +19508,12 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#10991 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#10924 + # source://prism//lib/prism/node.rb#10838 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -19602,43 +19521,43 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11008 + # source://prism//lib/prism/node.rb#10917 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10934 + # source://prism//lib/prism/node.rb#10843 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#11043 + # source://prism//lib/prism/node.rb#10952 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#10976 + # source://prism//lib/prism/node.rb#10885 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#10944 + # source://prism//lib/prism/node.rb#10853 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#10939 + # source://prism//lib/prism/node.rb#10848 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#10949 + # source://prism//lib/prism/node.rb#10858 sig do params( flags: Integer, @@ -19653,13 +19572,13 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#10934 + # source://prism//lib/prism/node.rb#10843 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#10957 + # source://prism//lib/prism/node.rb#10866 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -19667,7 +19586,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11003 + # source://prism//lib/prism/node.rb#10912 sig { returns(T::Boolean) } def euc_jp?; end @@ -19675,7 +19594,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10988 + # source://prism//lib/prism/node.rb#10897 sig { returns(T::Boolean) } def extended?; end @@ -19686,7 +19605,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11028 + # source://prism//lib/prism/node.rb#10937 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -19694,7 +19613,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11033 + # source://prism//lib/prism/node.rb#10942 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -19702,7 +19621,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11023 + # source://prism//lib/prism/node.rb#10932 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -19710,13 +19629,13 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10983 + # source://prism//lib/prism/node.rb#10892 sig { returns(T::Boolean) } def ignore_case?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#11048 + # source://prism//lib/prism/node.rb#10957 sig { override.returns(String) } def inspect; end @@ -19724,27 +19643,30 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10993 + # source://prism//lib/prism/node.rb#10902 sig { returns(T::Boolean) } def multi_line?; end + # source://prism//lib/prism/parse_result/newlines.rb#128 + def newline!(lines); end + # def once?: () -> bool # # @return [Boolean] # - # source://prism//lib/prism/node.rb#10998 + # source://prism//lib/prism/node.rb#10907 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#11038 + # source://prism//lib/prism/node.rb#10947 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#10966 + # source://prism//lib/prism/node.rb#10875 sig { returns(Prism::Location) } def opening_loc; end @@ -19753,13 +19675,10 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#10973 + # source://prism//lib/prism/node.rb#10882 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # 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 # 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 @@ -19775,7 +19694,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11066 + # source://prism//lib/prism/node.rb#10975 sig { override.returns(Symbol) } def type; end @@ -19783,7 +19702,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11018 + # source://prism//lib/prism/node.rb#10927 sig { returns(T::Boolean) } def utf_8?; end @@ -19791,7 +19710,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11013 + # source://prism//lib/prism/node.rb#10922 sig { returns(T::Boolean) } def windows_31j?; end @@ -19799,7 +19718,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#10962 + # source://prism//lib/prism/node.rb#10871 sig { returns(Integer) } def flags; end @@ -19811,7 +19730,7 @@ class Prism::InterpolatedRegularExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11076 + # source://prism//lib/prism/node.rb#10985 def type; end end end @@ -19821,7 +19740,7 @@ end # "foo #{bar} baz" # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11096 +# source://prism//lib/prism/node.rb#11005 class Prism::InterpolatedStringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -19829,7 +19748,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # @return [InterpolatedStringNode] a new instance of InterpolatedStringNode # - # source://prism//lib/prism/node.rb#11098 + # source://prism//lib/prism/node.rb#11007 sig do params( source: Prism::Source, @@ -19845,48 +19764,48 @@ class Prism::InterpolatedStringNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#11137 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11109 + # source://prism//lib/prism/node.rb#11017 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#11119 + # source://prism//lib/prism/node.rb#11022 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#11195 + # source://prism//lib/prism/node.rb#11098 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#11167 + # source://prism//lib/prism/node.rb#11070 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11129 + # source://prism//lib/prism/node.rb#11032 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#11124 + # source://prism//lib/prism/node.rb#11027 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#11134 + # source://prism//lib/prism/node.rb#11037 sig do params( flags: Integer, @@ -19901,13 +19820,13 @@ class Prism::InterpolatedStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11119 + # source://prism//lib/prism/node.rb#11022 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#11142 + # source://prism//lib/prism/node.rb#11045 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -19918,7 +19837,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11180 + # source://prism//lib/prism/node.rb#11083 sig { returns(T::Boolean) } def frozen?; end @@ -19927,7 +19846,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#11200 + # source://prism//lib/prism/node.rb#11103 sig { override.returns(String) } def inspect; end @@ -19935,33 +19854,33 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11185 + # source://prism//lib/prism/node.rb#11088 sig { returns(T::Boolean) } def mutable?; end + # source://prism//lib/prism/parse_result/newlines.rb#135 + def newline!(lines); end + # def opening: () -> String? # - # source://prism//lib/prism/node.rb#11190 + # source://prism//lib/prism/node.rb#11093 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#11151 + # source://prism//lib/prism/node.rb#11054 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode | InterpolatedStringNode] # - # source://prism//lib/prism/node.rb#11164 + # source://prism//lib/prism/node.rb#11067 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#11113 - def set_newline_flag(newline_marked); 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 @@ -19977,7 +19896,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11218 + # source://prism//lib/prism/node.rb#11121 sig { override.returns(Symbol) } def type; end @@ -19985,7 +19904,7 @@ class Prism::InterpolatedStringNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#11147 + # source://prism//lib/prism/node.rb#11050 sig { returns(Integer) } def flags; end @@ -19997,20 +19916,20 @@ class Prism::InterpolatedStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11228 + # source://prism//lib/prism/node.rb#11131 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#19256 +# source://prism//lib/prism/node.rb#19181 module Prism::InterpolatedStringNodeFlags; end -# source://prism//lib/prism/node.rb#19258 +# source://prism//lib/prism/node.rb#19183 Prism::InterpolatedStringNodeFlags::FROZEN = T.let(T.unsafe(nil), Integer) -# source://prism//lib/prism/node.rb#19261 +# source://prism//lib/prism/node.rb#19186 Prism::InterpolatedStringNodeFlags::MUTABLE = T.let(T.unsafe(nil), Integer) # Represents a symbol literal that contains interpolation. @@ -20018,13 +19937,13 @@ Prism::InterpolatedStringNodeFlags::MUTABLE = T.let(T.unsafe(nil), Integer) # :"foo #{bar} baz" # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11248 +# source://prism//lib/prism/node.rb#11151 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#11250 + # source://prism//lib/prism/node.rb#11153 sig do params( source: Prism::Source, @@ -20039,48 +19958,48 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#11268 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11260 + # source://prism//lib/prism/node.rb#11162 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#11270 + # source://prism//lib/prism/node.rb#11167 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#11332 + # source://prism//lib/prism/node.rb#11229 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#11314 + # source://prism//lib/prism/node.rb#11211 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11280 + # source://prism//lib/prism/node.rb#11177 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#11275 + # source://prism//lib/prism/node.rb#11172 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#11285 + # source://prism//lib/prism/node.rb#11182 sig do params( opening_loc: T.nilable(Prism::Location), @@ -20094,13 +20013,13 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11270 + # source://prism//lib/prism/node.rb#11167 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#11293 + # source://prism//lib/prism/node.rb#11190 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -20109,31 +20028,31 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#11337 + # source://prism//lib/prism/node.rb#11234 sig { override.returns(String) } def inspect; end + # source://prism//lib/prism/parse_result/newlines.rb#142 + def newline!(lines); end + # def opening: () -> String? # - # source://prism//lib/prism/node.rb#11327 + # source://prism//lib/prism/node.rb#11224 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#11298 + # source://prism//lib/prism/node.rb#11195 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#11311 + # source://prism//lib/prism/node.rb#11208 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # 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 # 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 @@ -20149,7 +20068,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11355 + # source://prism//lib/prism/node.rb#11252 sig { override.returns(Symbol) } def type; end @@ -20161,7 +20080,7 @@ class Prism::InterpolatedSymbolNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11365 + # source://prism//lib/prism/node.rb#11262 def type; end end end @@ -20171,7 +20090,7 @@ end # `foo #{bar} baz` # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11384 +# source://prism//lib/prism/node.rb#11281 class Prism::InterpolatedXStringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -20179,7 +20098,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # @return [InterpolatedXStringNode] a new instance of InterpolatedXStringNode # - # source://prism//lib/prism/node.rb#11386 + # source://prism//lib/prism/node.rb#11283 sig do params( source: Prism::Source, @@ -20194,48 +20113,48 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#11386 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11396 + # source://prism//lib/prism/node.rb#11292 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#11406 + # source://prism//lib/prism/node.rb#11297 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#11456 + # source://prism//lib/prism/node.rb#11347 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#11444 + # source://prism//lib/prism/node.rb#11335 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11416 + # source://prism//lib/prism/node.rb#11307 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#11411 + # source://prism//lib/prism/node.rb#11302 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#11421 + # source://prism//lib/prism/node.rb#11312 sig do params( opening_loc: Prism::Location, @@ -20249,13 +20168,13 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11406 + # source://prism//lib/prism/node.rb#11297 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#11429 + # source://prism//lib/prism/node.rb#11320 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -20267,30 +20186,135 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#11461 + # source://prism//lib/prism/node.rb#11352 sig { override.returns(String) } def inspect; end + # source://prism//lib/prism/parse_result/newlines.rb#149 + def newline!(lines); end + # def opening: () -> String # - # source://prism//lib/prism/node.rb#11451 + # source://prism//lib/prism/node.rb#11342 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#11434 + # source://prism//lib/prism/node.rb#11325 sig { returns(Prism::Location) } def opening_loc; end # attr_reader parts: Array[StringNode | EmbeddedStatementsNode | EmbeddedVariableNode] # - # source://prism//lib/prism/node.rb#11441 + # source://prism//lib/prism/node.rb#11332 sig { returns(T::Array[T.any(Prism::StringNode, Prism::EmbeddedStatementsNode, Prism::EmbeddedVariableNode)]) } def parts; end - # 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 + # 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#11370 + sig { override.returns(Symbol) } + def type; end + + class << self + # Similar to #type, this method returns a symbol that you can use for + # splitting on the type of the node without having to do a long === chain. + # Note that like #type, it will still be slower than using == for a single + # class, but should be faster in a case statement or an array comparison. + # + # def self.type: () -> Symbol + # + # source://prism//lib/prism/node.rb#11380 + def type; end + end +end + +# Represents reading from the implicit `it` local variable. +# +# -> { it } +# ^^ +# +# source://prism//lib/prism/node.rb#11399 +class Prism::ItLocalVariableReadNode < ::Prism::Node + # def initialize: (Location location) -> void + # + # @return [ItLocalVariableReadNode] a new instance of ItLocalVariableReadNode + # + # source://prism//lib/prism/node.rb#11401 + 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#11474 + def ===(other); end + + # def accept: (Visitor visitor) -> void + # + # source://prism//lib/prism/node.rb#11407 + 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#11412 + 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#11422 + 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#11417 + sig { override.returns(T::Array[Prism::Node]) } + def compact_child_nodes; end + + # def copy: (?location: Location) -> ItLocalVariableReadNode + # + # source://prism//lib/prism/node.rb#11427 + sig { params(location: Prism::Location).returns(Prism::ItLocalVariableReadNode) } + def copy(location: T.unsafe(nil)); end + + # def child_nodes: () -> Array[nil | Node] + # def deconstruct: () -> Array[nil | Node] + # + # source://prism//lib/prism/node.rb#11412 + 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#11435 + 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 -> String + # + # source://prism//lib/prism/node.rb#11440 + 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 @@ -20307,7 +20331,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11479 + # source://prism//lib/prism/node.rb#11458 sig { override.returns(Symbol) } def type; end @@ -20319,7 +20343,7 @@ class Prism::InterpolatedXStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11489 + # source://prism//lib/prism/node.rb#11468 def type; end end end @@ -20329,62 +20353,62 @@ end # -> { it + it } # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11508 +# source://prism//lib/prism/node.rb#11483 class Prism::ItParametersNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [ItParametersNode] a new instance of ItParametersNode # - # source://prism//lib/prism/node.rb#11510 + # source://prism//lib/prism/node.rb#11485 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 + # source://prism//lib/prism/node.rb#11558 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11517 + # source://prism//lib/prism/node.rb#11491 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#11522 + # source://prism//lib/prism/node.rb#11496 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#11532 + # source://prism//lib/prism/node.rb#11506 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#11527 + # source://prism//lib/prism/node.rb#11501 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> ItParametersNode # - # source://prism//lib/prism/node.rb#11537 + # source://prism//lib/prism/node.rb#11511 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#11522 + # source://prism//lib/prism/node.rb#11496 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#11545 + # source://prism//lib/prism/node.rb#11519 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -20393,7 +20417,7 @@ class Prism::ItParametersNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#11550 + # source://prism//lib/prism/node.rb#11524 sig { override.returns(String) } def inspect; end @@ -20412,7 +20436,7 @@ class Prism::ItParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11568 + # source://prism//lib/prism/node.rb#11542 sig { override.returns(Symbol) } def type; end @@ -20424,7 +20448,7 @@ class Prism::ItParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11578 + # source://prism//lib/prism/node.rb#11552 def type; end end end @@ -20434,13 +20458,13 @@ end # foo(a: b) # ^^^^ # -# source://prism//lib/prism/node.rb#11593 +# source://prism//lib/prism/node.rb#11567 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#11595 + # source://prism//lib/prism/node.rb#11569 sig do params( source: Prism::Source, @@ -20454,36 +20478,36 @@ class Prism::KeywordHashNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#11656 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11604 + # source://prism//lib/prism/node.rb#11577 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#11609 + # source://prism//lib/prism/node.rb#11582 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#11619 + # source://prism//lib/prism/node.rb#11592 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#11614 + # source://prism//lib/prism/node.rb#11587 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#11624 + # source://prism//lib/prism/node.rb#11597 sig do params( flags: Integer, @@ -20496,19 +20520,19 @@ class Prism::KeywordHashNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11609 + # source://prism//lib/prism/node.rb#11582 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#11632 + # source://prism//lib/prism/node.rb#11605 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#11641 + # source://prism//lib/prism/node.rb#11614 sig { returns(T::Array[T.any(Prism::AssocNode, Prism::AssocSplatNode)]) } def elements; end @@ -20517,7 +20541,7 @@ class Prism::KeywordHashNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#11649 + # source://prism//lib/prism/node.rb#11622 sig { override.returns(String) } def inspect; end @@ -20525,7 +20549,7 @@ class Prism::KeywordHashNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11644 + # source://prism//lib/prism/node.rb#11617 sig { returns(T::Boolean) } def symbol_keys?; end @@ -20544,7 +20568,7 @@ class Prism::KeywordHashNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11667 + # source://prism//lib/prism/node.rb#11640 sig { override.returns(Symbol) } def type; end @@ -20552,7 +20576,7 @@ class Prism::KeywordHashNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#11637 + # source://prism//lib/prism/node.rb#11610 sig { returns(Integer) } def flags; end @@ -20564,19 +20588,19 @@ class Prism::KeywordHashNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11677 + # source://prism//lib/prism/node.rb#11650 def type; end end end # Flags for keyword hash nodes. # -# source://prism//lib/prism/node.rb#19265 +# source://prism//lib/prism/node.rb#19190 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#19267 +# source://prism//lib/prism/node.rb#19192 Prism::KeywordHashNodeFlags::SYMBOL_KEYS = T.let(T.unsafe(nil), Integer) # Represents a keyword rest parameter to a method, block, or lambda definition. @@ -20585,13 +20609,13 @@ Prism::KeywordHashNodeFlags::SYMBOL_KEYS = T.let(T.unsafe(nil), Integer) # ^^^ # end # -# source://prism//lib/prism/node.rb#11696 +# source://prism//lib/prism/node.rb#11669 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#11698 + # source://prism//lib/prism/node.rb#11671 sig do params( source: Prism::Source, @@ -20607,36 +20631,36 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#11785 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11709 + # source://prism//lib/prism/node.rb#11681 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#11714 + # source://prism//lib/prism/node.rb#11686 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#11724 + # source://prism//lib/prism/node.rb#11696 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#11719 + # source://prism//lib/prism/node.rb#11691 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#11729 + # source://prism//lib/prism/node.rb#11701 sig do params( flags: Integer, @@ -20651,13 +20675,13 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11714 + # source://prism//lib/prism/node.rb#11686 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#11737 + # source://prism//lib/prism/node.rb#11709 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -20666,31 +20690,31 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#11779 + # source://prism//lib/prism/node.rb#11751 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol? # - # source://prism//lib/prism/node.rb#11746 + # source://prism//lib/prism/node.rb#11718 sig { returns(T.nilable(Symbol)) } def name; end # attr_reader name_loc: Location? # - # source://prism//lib/prism/node.rb#11749 + # source://prism//lib/prism/node.rb#11721 sig { returns(T.nilable(Prism::Location)) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11774 + # source://prism//lib/prism/node.rb#11746 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11762 + # source://prism//lib/prism/node.rb#11734 sig { returns(Prism::Location) } def operator_loc; end @@ -20698,7 +20722,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#11769 + # source://prism//lib/prism/node.rb#11741 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -20717,7 +20741,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11797 + # source://prism//lib/prism/node.rb#11769 sig { override.returns(Symbol) } def type; end @@ -20725,7 +20749,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#11742 + # source://prism//lib/prism/node.rb#11714 sig { returns(Integer) } def flags; end @@ -20737,7 +20761,7 @@ class Prism::KeywordRestParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11807 + # source://prism//lib/prism/node.rb#11779 def type; end end end @@ -20747,13 +20771,13 @@ end # ->(value) { value * 2 } # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11826 +# source://prism//lib/prism/node.rb#11798 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#11828 + # source://prism//lib/prism/node.rb#11800 sig do params( source: Prism::Source, @@ -20771,54 +20795,54 @@ class Prism::LambdaNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#11927 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11841 + # source://prism//lib/prism/node.rb#11812 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#11904 + # source://prism//lib/prism/node.rb#11875 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11846 + # source://prism//lib/prism/node.rb#11817 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#11917 + # source://prism//lib/prism/node.rb#11888 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#11894 + # source://prism//lib/prism/node.rb#11865 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#11859 + # source://prism//lib/prism/node.rb#11830 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#11851 + # source://prism//lib/prism/node.rb#11822 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#11864 + # source://prism//lib/prism/node.rb#11835 sig do params( locals: T::Array[Symbol], @@ -20835,13 +20859,13 @@ class Prism::LambdaNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11846 + # source://prism//lib/prism/node.rb#11817 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#11872 + # source://prism//lib/prism/node.rb#11843 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -20850,43 +20874,43 @@ class Prism::LambdaNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#11922 + # source://prism//lib/prism/node.rb#11893 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#11877 + # source://prism//lib/prism/node.rb#11848 sig { returns(T::Array[Symbol]) } def locals; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#11912 + # source://prism//lib/prism/node.rb#11883 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#11887 + # source://prism//lib/prism/node.rb#11858 sig { returns(Prism::Location) } def opening_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#11907 + # source://prism//lib/prism/node.rb#11878 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#11880 + # source://prism//lib/prism/node.rb#11851 sig { returns(Prism::Location) } def operator_loc; end # attr_reader parameters: Prism::node? # - # source://prism//lib/prism/node.rb#11901 + # source://prism//lib/prism/node.rb#11872 sig { returns(T.nilable(Prism::Node)) } def parameters; end @@ -20905,7 +20929,7 @@ class Prism::LambdaNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#11940 + # source://prism//lib/prism/node.rb#11911 sig { override.returns(Symbol) } def type; end @@ -20917,7 +20941,7 @@ class Prism::LambdaNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#11950 + # source://prism//lib/prism/node.rb#11921 def type; end end end @@ -21173,13 +21197,13 @@ end # This is a result specific to the `lex` and `lex_file` methods. # -# source://prism//lib/prism/parse_result.rb#593 +# source://prism//lib/prism/parse_result.rb#610 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 + # source://prism//lib/prism/parse_result.rb#615 sig do params( value: T::Array[T.untyped], @@ -21195,13 +21219,13 @@ class Prism::LexResult < ::Prism::Result # Implement the hash pattern matching interface for LexResult. # - # source://prism//lib/prism/parse_result.rb#604 + # source://prism//lib/prism/parse_result.rb#621 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 + # source://prism//lib/prism/parse_result.rb#612 sig { returns(T::Array[T.untyped]) } def value; end end @@ -21233,13 +21257,13 @@ end # target &&= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#11972 +# source://prism//lib/prism/node.rb#11943 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#11974 + # source://prism//lib/prism/node.rb#11945 sig do params( source: Prism::Source, @@ -21256,36 +21280,36 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#12051 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#11986 + # source://prism//lib/prism/node.rb#11956 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#11991 + # source://prism//lib/prism/node.rb#11961 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#12001 + # source://prism//lib/prism/node.rb#11971 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#11996 + # source://prism//lib/prism/node.rb#11966 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#12006 + # source://prism//lib/prism/node.rb#11976 sig do params( name_loc: Prism::Location, @@ -21301,19 +21325,19 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#11991 + # source://prism//lib/prism/node.rb#11961 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#12014 + # source://prism//lib/prism/node.rb#11984 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#12039 + # source://prism//lib/prism/node.rb#12009 sig { returns(Integer) } def depth; end @@ -21325,31 +21349,31 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#12047 + # source://prism//lib/prism/node.rb#12017 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12036 + # source://prism//lib/prism/node.rb#12006 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#12019 + # source://prism//lib/prism/node.rb#11989 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12042 + # source://prism//lib/prism/node.rb#12012 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12026 + # source://prism//lib/prism/node.rb#11996 sig { returns(Prism::Location) } def operator_loc; end @@ -21368,13 +21392,13 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12065 + # source://prism//lib/prism/node.rb#12035 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#12033 + # source://prism//lib/prism/node.rb#12003 sig { returns(Prism::Node) } def value; end @@ -21386,7 +21410,7 @@ class Prism::LocalVariableAndWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12075 + # source://prism//lib/prism/node.rb#12045 def type; end end end @@ -21396,13 +21420,13 @@ end # target += value # ^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12095 +# source://prism//lib/prism/node.rb#12065 class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # 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#12097 + # source://prism//lib/prism/node.rb#12067 sig do params( source: Prism::Source, @@ -21420,48 +21444,48 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#12172 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12110 + # source://prism//lib/prism/node.rb#12079 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 + # source://prism//lib/prism/node.rb#12132 sig { returns(Symbol) } def binary_operator; end # attr_reader binary_operator_loc: Location # - # source://prism//lib/prism/node.rb#12150 + # source://prism//lib/prism/node.rb#12119 sig { returns(Prism::Location) } def binary_operator_loc; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12115 + # source://prism//lib/prism/node.rb#12084 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#12125 + # source://prism//lib/prism/node.rb#12094 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#12120 + # source://prism//lib/prism/node.rb#12089 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # 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#12130 + # source://prism//lib/prism/node.rb#12099 sig do params( name_loc: Prism::Location, @@ -21478,19 +21502,19 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12115 + # source://prism//lib/prism/node.rb#12084 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # 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#12138 + # source://prism//lib/prism/node.rb#12107 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#12166 + # source://prism//lib/prism/node.rb#12135 sig { returns(Integer) } def depth; end @@ -21502,32 +21526,32 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#12169 + # source://prism//lib/prism/node.rb#12138 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12160 + # source://prism//lib/prism/node.rb#12129 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#12143 + # source://prism//lib/prism/node.rb#12112 sig { returns(Prism::Location) } def name_loc; end # Returns the binary operator used to modify the receiver. This method is # deprecated in favor of #binary_operator. # - # source://prism//lib/prism/node_ext.rb#419 + # source://prism//lib/prism/node_ext.rb#435 def operator; end # 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_ext.rb#426 + # source://prism//lib/prism/node_ext.rb#442 def operator_loc; end # Sometimes you want to check an instance of a node against a list of @@ -21545,13 +21569,13 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12187 + # source://prism//lib/prism/node.rb#12156 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#12157 + # source://prism//lib/prism/node.rb#12126 sig { returns(Prism::Node) } def value; end @@ -21563,7 +21587,7 @@ class Prism::LocalVariableOperatorWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12197 + # source://prism//lib/prism/node.rb#12166 def type; end end end @@ -21573,13 +21597,13 @@ end # target ||= value # ^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12218 +# source://prism//lib/prism/node.rb#12187 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#12220 + # source://prism//lib/prism/node.rb#12189 sig do params( source: Prism::Source, @@ -21596,36 +21620,36 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#12295 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12232 + # source://prism//lib/prism/node.rb#12200 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#12237 + # source://prism//lib/prism/node.rb#12205 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#12247 + # source://prism//lib/prism/node.rb#12215 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#12242 + # source://prism//lib/prism/node.rb#12210 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#12252 + # source://prism//lib/prism/node.rb#12220 sig do params( name_loc: Prism::Location, @@ -21641,19 +21665,19 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12237 + # source://prism//lib/prism/node.rb#12205 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#12260 + # source://prism//lib/prism/node.rb#12228 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#12285 + # source://prism//lib/prism/node.rb#12253 sig { returns(Integer) } def depth; end @@ -21665,31 +21689,31 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#12293 + # source://prism//lib/prism/node.rb#12261 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12282 + # source://prism//lib/prism/node.rb#12250 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#12265 + # source://prism//lib/prism/node.rb#12233 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12288 + # source://prism//lib/prism/node.rb#12256 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12272 + # source://prism//lib/prism/node.rb#12240 sig { returns(Prism::Location) } def operator_loc; end @@ -21708,13 +21732,13 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12311 + # source://prism//lib/prism/node.rb#12279 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#12279 + # source://prism//lib/prism/node.rb#12247 sig { returns(Prism::Node) } def value; end @@ -21726,7 +21750,7 @@ class Prism::LocalVariableOrWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12321 + # source://prism//lib/prism/node.rb#12289 def type; end end end @@ -21736,62 +21760,62 @@ end # foo # ^^^ # -# source://prism//lib/prism/node.rb#12341 +# source://prism//lib/prism/node.rb#12309 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#12343 + # source://prism//lib/prism/node.rb#12311 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 + # source://prism//lib/prism/node.rb#12406 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12352 + # source://prism//lib/prism/node.rb#12319 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#12357 + # source://prism//lib/prism/node.rb#12324 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#12367 + # source://prism//lib/prism/node.rb#12334 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#12362 + # source://prism//lib/prism/node.rb#12329 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#12372 + # source://prism//lib/prism/node.rb#12339 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#12357 + # source://prism//lib/prism/node.rb#12324 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#12380 + # source://prism//lib/prism/node.rb#12347 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -21803,7 +21827,7 @@ 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#12406 + # source://prism//lib/prism/node.rb#12369 sig { returns(Integer) } def depth; end @@ -21812,7 +21836,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#12409 + # source://prism//lib/prism/node.rb#12372 sig { override.returns(String) } def inspect; end @@ -21826,11 +21850,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # _1 # name `:_1` # - # Finally, for the default `it` block parameter, the name is `0it`. This is to distinguish it from an `it` local variable that is explicitly declared. - # - # it # name `:0it` - # - # source://prism//lib/prism/node.rb#12397 + # source://prism//lib/prism/node.rb#12360 sig { returns(Symbol) } def name; end @@ -21849,7 +21869,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12427 + # source://prism//lib/prism/node.rb#12390 sig { override.returns(Symbol) } def type; end @@ -21861,7 +21881,7 @@ class Prism::LocalVariableReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12437 + # source://prism//lib/prism/node.rb#12400 def type; end end end @@ -21871,68 +21891,68 @@ end # foo, bar = baz # ^^^ ^^^ # -# source://prism//lib/prism/node.rb#12454 +# source://prism//lib/prism/node.rb#12417 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#12456 + # source://prism//lib/prism/node.rb#12419 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 + # source://prism//lib/prism/node.rb#12500 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12465 + # source://prism//lib/prism/node.rb#12427 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#12470 + # source://prism//lib/prism/node.rb#12432 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#12480 + # source://prism//lib/prism/node.rb#12442 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#12475 + # source://prism//lib/prism/node.rb#12437 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#12485 + # source://prism//lib/prism/node.rb#12447 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#12470 + # source://prism//lib/prism/node.rb#12432 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#12493 + # source://prism//lib/prism/node.rb#12455 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#12501 + # source://prism//lib/prism/node.rb#12463 sig { returns(Integer) } def depth; end @@ -21941,13 +21961,13 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#12504 + # source://prism//lib/prism/node.rb#12466 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#12498 + # source://prism//lib/prism/node.rb#12460 sig { returns(Symbol) } def name; end @@ -21966,7 +21986,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12522 + # source://prism//lib/prism/node.rb#12484 sig { override.returns(Symbol) } def type; end @@ -21978,7 +21998,7 @@ class Prism::LocalVariableTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12532 + # source://prism//lib/prism/node.rb#12494 def type; end end end @@ -21988,13 +22008,13 @@ end # foo = 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#12549 +# source://prism//lib/prism/node.rb#12511 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#12551 + # source://prism//lib/prism/node.rb#12513 sig do params( source: Prism::Source, @@ -22011,36 +22031,36 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#12645 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12563 + # source://prism//lib/prism/node.rb#12524 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#12568 + # source://prism//lib/prism/node.rb#12529 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#12578 + # source://prism//lib/prism/node.rb#12539 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#12573 + # source://prism//lib/prism/node.rb#12534 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#12583 + # source://prism//lib/prism/node.rb#12544 sig do params( name: Symbol, @@ -22056,13 +22076,13 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12568 + # source://prism//lib/prism/node.rb#12529 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#12591 + # source://prism//lib/prism/node.rb#12552 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -22074,7 +22094,7 @@ class Prism::LocalVariableWriteNode < ::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#12609 + # source://prism//lib/prism/node.rb#12570 sig { returns(Integer) } def depth; end @@ -22083,7 +22103,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#12650 + # source://prism//lib/prism/node.rb#12611 sig { override.returns(String) } def inspect; end @@ -22093,7 +22113,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # abc = 123 # name `:abc` # - # source://prism//lib/prism/node.rb#12600 + # source://prism//lib/prism/node.rb#12561 sig { returns(Symbol) } def name; end @@ -22102,13 +22122,13 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # foo = :bar # ^^^ # - # source://prism//lib/prism/node.rb#12615 + # source://prism//lib/prism/node.rb#12576 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12645 + # source://prism//lib/prism/node.rb#12606 sig { returns(String) } def operator; end @@ -22117,7 +22137,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # x = :y # ^ # - # source://prism//lib/prism/node.rb#12638 + # source://prism//lib/prism/node.rb#12599 sig { returns(Prism::Location) } def operator_loc; end @@ -22136,7 +22156,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12668 + # source://prism//lib/prism/node.rb#12629 sig { override.returns(Symbol) } def type; end @@ -22152,7 +22172,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # foo = foo # - # source://prism//lib/prism/node.rb#12632 + # source://prism//lib/prism/node.rb#12593 sig { returns(Prism::Node) } def value; end @@ -22164,7 +22184,7 @@ class Prism::LocalVariableWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12678 + # source://prism//lib/prism/node.rb#12639 def type; end end end @@ -22403,12 +22423,12 @@ end # Flags for while and until loop nodes. # -# source://prism//lib/prism/node.rb#19271 +# source://prism//lib/prism/node.rb#19196 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#19273 +# source://prism//lib/prism/node.rb#19198 Prism::LoopFlags::BEGIN_MODIFIER = T.let(T.unsafe(nil), Integer) # This represents a magic comment that was encountered during parsing. @@ -22465,7 +22485,7 @@ end # if /foo/i then end # ^^^^^^ # -# source://prism//lib/prism/node.rb#12698 +# source://prism//lib/prism/node.rb#12659 class Prism::MatchLastLineNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -22473,7 +22493,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [MatchLastLineNode] a new instance of MatchLastLineNode # - # source://prism//lib/prism/node.rb#12700 + # source://prism//lib/prism/node.rb#12661 sig do params( source: Prism::Source, @@ -22490,12 +22510,12 @@ class Prism::MatchLastLineNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#12837 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12712 + # source://prism//lib/prism/node.rb#12672 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -22503,55 +22523,55 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12798 + # source://prism//lib/prism/node.rb#12758 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12717 + # source://prism//lib/prism/node.rb#12677 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#12838 + # source://prism//lib/prism/node.rb#12798 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#12763 + # source://prism//lib/prism/node.rb#12723 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#12727 + # source://prism//lib/prism/node.rb#12687 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#12722 + # source://prism//lib/prism/node.rb#12682 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#12833 + # source://prism//lib/prism/node.rb#12793 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#12756 + # source://prism//lib/prism/node.rb#12716 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#12732 + # source://prism//lib/prism/node.rb#12692 sig do params( flags: Integer, @@ -22567,13 +22587,13 @@ class Prism::MatchLastLineNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12717 + # source://prism//lib/prism/node.rb#12677 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#12740 + # source://prism//lib/prism/node.rb#12700 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -22581,7 +22601,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12793 + # source://prism//lib/prism/node.rb#12753 sig { returns(T::Boolean) } def euc_jp?; end @@ -22589,7 +22609,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12778 + # source://prism//lib/prism/node.rb#12738 sig { returns(T::Boolean) } def extended?; end @@ -22600,7 +22620,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12818 + # source://prism//lib/prism/node.rb#12778 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -22608,7 +22628,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12823 + # source://prism//lib/prism/node.rb#12783 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -22616,7 +22636,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12813 + # source://prism//lib/prism/node.rb#12773 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -22624,13 +22644,13 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12773 + # source://prism//lib/prism/node.rb#12733 sig { returns(T::Boolean) } def ignore_case?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#12843 + # source://prism//lib/prism/node.rb#12803 sig { override.returns(String) } def inspect; end @@ -22638,7 +22658,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12783 + # source://prism//lib/prism/node.rb#12743 sig { returns(T::Boolean) } def multi_line?; end @@ -22646,19 +22666,19 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12788 + # source://prism//lib/prism/node.rb#12748 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#12828 + # source://prism//lib/prism/node.rb#12788 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#12749 + # source://prism//lib/prism/node.rb#12709 sig { returns(Prism::Location) } def opening_loc; end @@ -22680,13 +22700,13 @@ class Prism::MatchLastLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12861 + # source://prism//lib/prism/node.rb#12821 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#12770 + # source://prism//lib/prism/node.rb#12730 sig { returns(String) } def unescaped; end @@ -22694,7 +22714,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12808 + # source://prism//lib/prism/node.rb#12768 sig { returns(T::Boolean) } def utf_8?; end @@ -22702,7 +22722,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#12803 + # source://prism//lib/prism/node.rb#12763 sig { returns(T::Boolean) } def windows_31j?; end @@ -22710,7 +22730,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#12745 + # source://prism//lib/prism/node.rb#12705 sig { returns(Integer) } def flags; end @@ -22722,7 +22742,7 @@ class Prism::MatchLastLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12871 + # source://prism//lib/prism/node.rb#12831 def type; end end end @@ -22732,13 +22752,13 @@ end # foo in bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#12891 +# source://prism//lib/prism/node.rb#12851 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#12893 + # source://prism//lib/prism/node.rb#12853 sig do params( source: Prism::Source, @@ -22753,36 +22773,36 @@ class Prism::MatchPredicateNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#12947 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#12903 + # source://prism//lib/prism/node.rb#12862 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#12908 + # source://prism//lib/prism/node.rb#12867 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#12918 + # source://prism//lib/prism/node.rb#12877 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#12913 + # source://prism//lib/prism/node.rb#12872 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#12923 + # source://prism//lib/prism/node.rb#12882 sig do params( value: Prism::Node, @@ -22796,13 +22816,13 @@ class Prism::MatchPredicateNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#12908 + # source://prism//lib/prism/node.rb#12867 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#12931 + # source://prism//lib/prism/node.rb#12890 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -22811,25 +22831,25 @@ class Prism::MatchPredicateNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#12954 + # source://prism//lib/prism/node.rb#12913 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#12949 + # source://prism//lib/prism/node.rb#12908 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#12942 + # source://prism//lib/prism/node.rb#12901 sig { returns(Prism::Location) } def operator_loc; end # attr_reader pattern: Prism::node # - # source://prism//lib/prism/node.rb#12939 + # source://prism//lib/prism/node.rb#12898 sig { returns(Prism::Node) } def pattern; end @@ -22848,13 +22868,13 @@ class Prism::MatchPredicateNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#12972 + # source://prism//lib/prism/node.rb#12931 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#12936 + # source://prism//lib/prism/node.rb#12895 sig { returns(Prism::Node) } def value; end @@ -22866,7 +22886,7 @@ class Prism::MatchPredicateNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#12982 + # source://prism//lib/prism/node.rb#12941 def type; end end end @@ -22876,13 +22896,13 @@ end # foo => bar # ^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13000 +# source://prism//lib/prism/node.rb#12959 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#13002 + # source://prism//lib/prism/node.rb#12961 sig do params( source: Prism::Source, @@ -22897,36 +22917,36 @@ class Prism::MatchRequiredNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#13055 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13012 + # source://prism//lib/prism/node.rb#12970 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#13017 + # source://prism//lib/prism/node.rb#12975 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#13027 + # source://prism//lib/prism/node.rb#12985 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#13022 + # source://prism//lib/prism/node.rb#12980 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#13032 + # source://prism//lib/prism/node.rb#12990 sig do params( value: Prism::Node, @@ -22940,13 +22960,13 @@ class Prism::MatchRequiredNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13017 + # source://prism//lib/prism/node.rb#12975 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#13040 + # source://prism//lib/prism/node.rb#12998 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -22955,25 +22975,25 @@ class Prism::MatchRequiredNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13063 + # source://prism//lib/prism/node.rb#13021 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13058 + # source://prism//lib/prism/node.rb#13016 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#13051 + # source://prism//lib/prism/node.rb#13009 sig { returns(Prism::Location) } def operator_loc; end # attr_reader pattern: Prism::node # - # source://prism//lib/prism/node.rb#13048 + # source://prism//lib/prism/node.rb#13006 sig { returns(Prism::Node) } def pattern; end @@ -22992,13 +23012,13 @@ class Prism::MatchRequiredNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13081 + # source://prism//lib/prism/node.rb#13039 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#13045 + # source://prism//lib/prism/node.rb#13003 sig { returns(Prism::Node) } def value; end @@ -23010,7 +23030,7 @@ class Prism::MatchRequiredNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13091 + # source://prism//lib/prism/node.rb#13049 def type; end end end @@ -23020,13 +23040,13 @@ end # /(?bar)/ =~ baz # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13109 +# source://prism//lib/prism/node.rb#13067 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#13111 + # source://prism//lib/prism/node.rb#13069 sig do params( source: Prism::Source, @@ -23040,42 +23060,42 @@ class Prism::MatchWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#13150 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13120 + # source://prism//lib/prism/node.rb#13077 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader call: CallNode # - # source://prism//lib/prism/node.rb#13153 + # source://prism//lib/prism/node.rb#13110 sig { returns(Prism::CallNode) } def call; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13125 + # source://prism//lib/prism/node.rb#13082 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#13135 + # source://prism//lib/prism/node.rb#13092 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#13130 + # source://prism//lib/prism/node.rb#13087 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#13140 + # source://prism//lib/prism/node.rb#13097 sig do params( call: Prism::CallNode, @@ -23088,13 +23108,13 @@ class Prism::MatchWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13125 + # source://prism//lib/prism/node.rb#13082 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#13148 + # source://prism//lib/prism/node.rb#13105 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -23103,13 +23123,13 @@ class Prism::MatchWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13159 + # source://prism//lib/prism/node.rb#13116 sig { override.returns(String) } def inspect; end # attr_reader targets: Array[LocalVariableTargetNode] # - # source://prism//lib/prism/node.rb#13156 + # source://prism//lib/prism/node.rb#13113 sig { returns(T::Array[Prism::LocalVariableTargetNode]) } def targets; end @@ -23128,7 +23148,7 @@ class Prism::MatchWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13177 + # source://prism//lib/prism/node.rb#13134 sig { override.returns(Symbol) } def type; end @@ -23140,69 +23160,69 @@ class Prism::MatchWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13187 + # source://prism//lib/prism/node.rb#13144 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#13202 +# source://prism//lib/prism/node.rb#13159 class Prism::MissingNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [MissingNode] a new instance of MissingNode # - # source://prism//lib/prism/node.rb#13204 + # source://prism//lib/prism/node.rb#13161 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 + # source://prism//lib/prism/node.rb#13234 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13211 + # source://prism//lib/prism/node.rb#13167 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#13216 + # source://prism//lib/prism/node.rb#13172 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#13226 + # source://prism//lib/prism/node.rb#13182 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#13221 + # source://prism//lib/prism/node.rb#13177 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> MissingNode # - # source://prism//lib/prism/node.rb#13231 + # source://prism//lib/prism/node.rb#13187 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#13216 + # source://prism//lib/prism/node.rb#13172 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#13239 + # source://prism//lib/prism/node.rb#13195 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -23211,7 +23231,7 @@ class Prism::MissingNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13244 + # source://prism//lib/prism/node.rb#13200 sig { override.returns(String) } def inspect; end @@ -23230,7 +23250,7 @@ class Prism::MissingNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13262 + # source://prism//lib/prism/node.rb#13218 sig { override.returns(Symbol) } def type; end @@ -23242,7 +23262,7 @@ class Prism::MissingNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13272 + # source://prism//lib/prism/node.rb#13228 def type; end end end @@ -23252,13 +23272,13 @@ end # module Foo end # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13287 +# source://prism//lib/prism/node.rb#13243 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#13289 + # source://prism//lib/prism/node.rb#13245 sig do params( source: Prism::Source, @@ -23276,48 +23296,48 @@ class Prism::ModuleNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#13363 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13302 + # source://prism//lib/prism/node.rb#13257 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#13351 + # source://prism//lib/prism/node.rb#13306 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13307 + # source://prism//lib/prism/node.rb#13262 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#13320 + # source://prism//lib/prism/node.rb#13275 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#13312 + # source://prism//lib/prism/node.rb#13267 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader constant_path: Prism::node # - # source://prism//lib/prism/node.rb#13348 + # source://prism//lib/prism/node.rb#13303 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#13325 + # source://prism//lib/prism/node.rb#13280 sig do params( locals: T::Array[Symbol], @@ -23334,25 +23354,25 @@ class Prism::ModuleNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13307 + # source://prism//lib/prism/node.rb#13262 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#13333 + # source://prism//lib/prism/node.rb#13288 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#13369 + # source://prism//lib/prism/node.rb#13324 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#13354 + # source://prism//lib/prism/node.rb#13309 sig { returns(Prism::Location) } def end_keyword_loc; end @@ -23361,31 +23381,31 @@ class Prism::ModuleNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13374 + # source://prism//lib/prism/node.rb#13329 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#13338 + # source://prism//lib/prism/node.rb#13293 sig { returns(T::Array[Symbol]) } def locals; end # def module_keyword: () -> String # - # source://prism//lib/prism/node.rb#13364 + # source://prism//lib/prism/node.rb#13319 sig { returns(String) } def module_keyword; end # attr_reader module_keyword_loc: Location # - # source://prism//lib/prism/node.rb#13341 + # source://prism//lib/prism/node.rb#13296 sig { returns(Prism::Location) } def module_keyword_loc; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#13361 + # source://prism//lib/prism/node.rb#13316 sig { returns(Symbol) } def name; end @@ -23404,7 +23424,7 @@ class Prism::ModuleNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13392 + # source://prism//lib/prism/node.rb#13347 sig { override.returns(Symbol) } def type; end @@ -23416,7 +23436,7 @@ class Prism::ModuleNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13402 + # source://prism//lib/prism/node.rb#13357 def type; end end end @@ -23426,13 +23446,13 @@ end # a, (b, c) = 1, 2, 3 # ^^^^^^ # -# source://prism//lib/prism/node.rb#13424 +# source://prism//lib/prism/node.rb#13379 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#13426 + # source://prism//lib/prism/node.rb#13381 sig do params( source: Prism::Source, @@ -23449,36 +23469,36 @@ class Prism::MultiTargetNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#13508 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13438 + # source://prism//lib/prism/node.rb#13392 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#13443 + # source://prism//lib/prism/node.rb#13397 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#13457 + # source://prism//lib/prism/node.rb#13411 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#13448 + # source://prism//lib/prism/node.rb#13402 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#13462 + # source://prism//lib/prism/node.rb#13416 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)], @@ -23494,13 +23514,13 @@ class Prism::MultiTargetNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13443 + # source://prism//lib/prism/node.rb#13397 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#13470 + # source://prism//lib/prism/node.rb#13424 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -23509,13 +23529,13 @@ class Prism::MultiTargetNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13520 + # source://prism//lib/prism/node.rb#13474 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#13475 + # source://prism//lib/prism/node.rb#13429 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 @@ -23523,25 +23543,25 @@ class Prism::MultiTargetNode < ::Prism::Node # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#13510 + # source://prism//lib/prism/node.rb#13464 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#13484 + # source://prism//lib/prism/node.rb#13438 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # attr_reader rest: Prism::node? # - # source://prism//lib/prism/node.rb#13478 + # source://prism//lib/prism/node.rb#13432 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#13481 + # source://prism//lib/prism/node.rb#13435 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 @@ -23549,13 +23569,13 @@ class Prism::MultiTargetNode < ::Prism::Node # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#13515 + # source://prism//lib/prism/node.rb#13469 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#13497 + # source://prism//lib/prism/node.rb#13451 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -23574,7 +23594,7 @@ class Prism::MultiTargetNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13538 + # source://prism//lib/prism/node.rb#13492 sig { override.returns(Symbol) } def type; end @@ -23586,7 +23606,7 @@ class Prism::MultiTargetNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13548 + # source://prism//lib/prism/node.rb#13502 def type; end end end @@ -23596,13 +23616,13 @@ end # a, b, c = 1, 2, 3 # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#13570 +# source://prism//lib/prism/node.rb#13524 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#13572 + # source://prism//lib/prism/node.rb#13526 sig do params( source: Prism::Source, @@ -23621,36 +23641,36 @@ class Prism::MultiWriteNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#13671 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13586 + # source://prism//lib/prism/node.rb#13539 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#13591 + # source://prism//lib/prism/node.rb#13544 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#13606 + # source://prism//lib/prism/node.rb#13559 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#13596 + # source://prism//lib/prism/node.rb#13549 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#13611 + # source://prism//lib/prism/node.rb#13564 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)], @@ -23668,13 +23688,13 @@ class Prism::MultiWriteNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13591 + # source://prism//lib/prism/node.rb#13544 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#13619 + # source://prism//lib/prism/node.rb#13572 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -23683,13 +23703,13 @@ class Prism::MultiWriteNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13684 + # source://prism//lib/prism/node.rb#13637 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#13624 + # source://prism//lib/prism/node.rb#13577 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 @@ -23697,37 +23717,37 @@ class Prism::MultiWriteNode < ::Prism::Node # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#13669 + # source://prism//lib/prism/node.rb#13622 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#13633 + # source://prism//lib/prism/node.rb#13586 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13679 + # source://prism//lib/prism/node.rb#13632 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#13659 + # source://prism//lib/prism/node.rb#13612 sig { returns(Prism::Location) } def operator_loc; end # attr_reader rest: Prism::node? # - # source://prism//lib/prism/node.rb#13627 + # source://prism//lib/prism/node.rb#13580 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#13630 + # source://prism//lib/prism/node.rb#13583 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 @@ -23735,13 +23755,13 @@ class Prism::MultiWriteNode < ::Prism::Node # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#13674 + # source://prism//lib/prism/node.rb#13627 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#13646 + # source://prism//lib/prism/node.rb#13599 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -23760,13 +23780,13 @@ class Prism::MultiWriteNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13702 + # source://prism//lib/prism/node.rb#13655 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#13666 + # source://prism//lib/prism/node.rb#13619 sig { returns(Prism::Node) } def value; end @@ -23778,7 +23798,7 @@ class Prism::MultiWriteNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13712 + # source://prism//lib/prism/node.rb#13665 def type; end end end @@ -24224,319 +24244,324 @@ class Prism::MutationCompiler < ::Prism::Compiler # source://prism//lib/prism/mutation_compiler.rb#445 def visit_interpolated_x_string_node(node); end - # Copy a ItParametersNode node + # Copy a ItLocalVariableReadNode node # # source://prism//lib/prism/mutation_compiler.rb#450 + def visit_it_local_variable_read_node(node); end + + # Copy a ItParametersNode node + # + # source://prism//lib/prism/mutation_compiler.rb#455 def visit_it_parameters_node(node); end # Copy a KeywordHashNode node # - # source://prism//lib/prism/mutation_compiler.rb#455 + # source://prism//lib/prism/mutation_compiler.rb#460 def visit_keyword_hash_node(node); end # Copy a KeywordRestParameterNode node # - # source://prism//lib/prism/mutation_compiler.rb#460 + # source://prism//lib/prism/mutation_compiler.rb#465 def visit_keyword_rest_parameter_node(node); end # Copy a LambdaNode node # - # source://prism//lib/prism/mutation_compiler.rb#465 + # source://prism//lib/prism/mutation_compiler.rb#470 def visit_lambda_node(node); end # Copy a LocalVariableAndWriteNode node # - # source://prism//lib/prism/mutation_compiler.rb#470 + # source://prism//lib/prism/mutation_compiler.rb#475 def visit_local_variable_and_write_node(node); end # Copy a LocalVariableOperatorWriteNode node # - # source://prism//lib/prism/mutation_compiler.rb#475 + # source://prism//lib/prism/mutation_compiler.rb#480 def visit_local_variable_operator_write_node(node); end # Copy a LocalVariableOrWriteNode node # - # source://prism//lib/prism/mutation_compiler.rb#480 + # source://prism//lib/prism/mutation_compiler.rb#485 def visit_local_variable_or_write_node(node); end # Copy a LocalVariableReadNode node # - # source://prism//lib/prism/mutation_compiler.rb#485 + # source://prism//lib/prism/mutation_compiler.rb#490 def visit_local_variable_read_node(node); end # Copy a LocalVariableTargetNode node # - # source://prism//lib/prism/mutation_compiler.rb#490 + # source://prism//lib/prism/mutation_compiler.rb#495 def visit_local_variable_target_node(node); end # Copy a LocalVariableWriteNode node # - # source://prism//lib/prism/mutation_compiler.rb#495 + # source://prism//lib/prism/mutation_compiler.rb#500 def visit_local_variable_write_node(node); end # Copy a MatchLastLineNode node # - # source://prism//lib/prism/mutation_compiler.rb#500 + # source://prism//lib/prism/mutation_compiler.rb#505 def visit_match_last_line_node(node); end # Copy a MatchPredicateNode node # - # source://prism//lib/prism/mutation_compiler.rb#505 + # source://prism//lib/prism/mutation_compiler.rb#510 def visit_match_predicate_node(node); end # Copy a MatchRequiredNode node # - # source://prism//lib/prism/mutation_compiler.rb#510 + # source://prism//lib/prism/mutation_compiler.rb#515 def visit_match_required_node(node); end # Copy a MatchWriteNode node # - # source://prism//lib/prism/mutation_compiler.rb#515 + # source://prism//lib/prism/mutation_compiler.rb#520 def visit_match_write_node(node); end # Copy a MissingNode node # - # source://prism//lib/prism/mutation_compiler.rb#520 + # source://prism//lib/prism/mutation_compiler.rb#525 def visit_missing_node(node); end # Copy a ModuleNode node # - # source://prism//lib/prism/mutation_compiler.rb#525 + # source://prism//lib/prism/mutation_compiler.rb#530 def visit_module_node(node); end # Copy a MultiTargetNode node # - # source://prism//lib/prism/mutation_compiler.rb#530 + # source://prism//lib/prism/mutation_compiler.rb#535 def visit_multi_target_node(node); end # Copy a MultiWriteNode node # - # source://prism//lib/prism/mutation_compiler.rb#535 + # source://prism//lib/prism/mutation_compiler.rb#540 def visit_multi_write_node(node); end # Copy a NextNode node # - # source://prism//lib/prism/mutation_compiler.rb#540 + # source://prism//lib/prism/mutation_compiler.rb#545 def visit_next_node(node); end # Copy a NilNode node # - # source://prism//lib/prism/mutation_compiler.rb#545 + # source://prism//lib/prism/mutation_compiler.rb#550 def visit_nil_node(node); end # Copy a NoKeywordsParameterNode node # - # source://prism//lib/prism/mutation_compiler.rb#550 + # source://prism//lib/prism/mutation_compiler.rb#555 def visit_no_keywords_parameter_node(node); end # Copy a NumberedParametersNode node # - # source://prism//lib/prism/mutation_compiler.rb#555 + # source://prism//lib/prism/mutation_compiler.rb#560 def visit_numbered_parameters_node(node); end # Copy a NumberedReferenceReadNode node # - # source://prism//lib/prism/mutation_compiler.rb#560 + # source://prism//lib/prism/mutation_compiler.rb#565 def visit_numbered_reference_read_node(node); end # Copy a OptionalKeywordParameterNode node # - # source://prism//lib/prism/mutation_compiler.rb#565 + # source://prism//lib/prism/mutation_compiler.rb#570 def visit_optional_keyword_parameter_node(node); end # Copy a OptionalParameterNode node # - # source://prism//lib/prism/mutation_compiler.rb#570 + # source://prism//lib/prism/mutation_compiler.rb#575 def visit_optional_parameter_node(node); end # Copy a OrNode node # - # source://prism//lib/prism/mutation_compiler.rb#575 + # source://prism//lib/prism/mutation_compiler.rb#580 def visit_or_node(node); end # Copy a ParametersNode node # - # source://prism//lib/prism/mutation_compiler.rb#580 + # source://prism//lib/prism/mutation_compiler.rb#585 def visit_parameters_node(node); end # Copy a ParenthesesNode node # - # source://prism//lib/prism/mutation_compiler.rb#585 + # source://prism//lib/prism/mutation_compiler.rb#590 def visit_parentheses_node(node); end # Copy a PinnedExpressionNode node # - # source://prism//lib/prism/mutation_compiler.rb#590 + # source://prism//lib/prism/mutation_compiler.rb#595 def visit_pinned_expression_node(node); end # Copy a PinnedVariableNode node # - # source://prism//lib/prism/mutation_compiler.rb#595 + # source://prism//lib/prism/mutation_compiler.rb#600 def visit_pinned_variable_node(node); end # Copy a PostExecutionNode node # - # source://prism//lib/prism/mutation_compiler.rb#600 + # source://prism//lib/prism/mutation_compiler.rb#605 def visit_post_execution_node(node); end # Copy a PreExecutionNode node # - # source://prism//lib/prism/mutation_compiler.rb#605 + # source://prism//lib/prism/mutation_compiler.rb#610 def visit_pre_execution_node(node); end # Copy a ProgramNode node # - # source://prism//lib/prism/mutation_compiler.rb#610 + # source://prism//lib/prism/mutation_compiler.rb#615 def visit_program_node(node); end # Copy a RangeNode node # - # source://prism//lib/prism/mutation_compiler.rb#615 + # source://prism//lib/prism/mutation_compiler.rb#620 def visit_range_node(node); end # Copy a RationalNode node # - # source://prism//lib/prism/mutation_compiler.rb#620 + # source://prism//lib/prism/mutation_compiler.rb#625 def visit_rational_node(node); end # Copy a RedoNode node # - # source://prism//lib/prism/mutation_compiler.rb#625 + # source://prism//lib/prism/mutation_compiler.rb#630 def visit_redo_node(node); end # Copy a RegularExpressionNode node # - # source://prism//lib/prism/mutation_compiler.rb#630 + # source://prism//lib/prism/mutation_compiler.rb#635 def visit_regular_expression_node(node); end # Copy a RequiredKeywordParameterNode node # - # source://prism//lib/prism/mutation_compiler.rb#635 + # source://prism//lib/prism/mutation_compiler.rb#640 def visit_required_keyword_parameter_node(node); end # Copy a RequiredParameterNode node # - # source://prism//lib/prism/mutation_compiler.rb#640 + # source://prism//lib/prism/mutation_compiler.rb#645 def visit_required_parameter_node(node); end # Copy a RescueModifierNode node # - # source://prism//lib/prism/mutation_compiler.rb#645 + # source://prism//lib/prism/mutation_compiler.rb#650 def visit_rescue_modifier_node(node); end # Copy a RescueNode node # - # source://prism//lib/prism/mutation_compiler.rb#650 + # source://prism//lib/prism/mutation_compiler.rb#655 def visit_rescue_node(node); end # Copy a RestParameterNode node # - # source://prism//lib/prism/mutation_compiler.rb#655 + # source://prism//lib/prism/mutation_compiler.rb#660 def visit_rest_parameter_node(node); end # Copy a RetryNode node # - # source://prism//lib/prism/mutation_compiler.rb#660 + # source://prism//lib/prism/mutation_compiler.rb#665 def visit_retry_node(node); end # Copy a ReturnNode node # - # source://prism//lib/prism/mutation_compiler.rb#665 + # source://prism//lib/prism/mutation_compiler.rb#670 def visit_return_node(node); end # Copy a SelfNode node # - # source://prism//lib/prism/mutation_compiler.rb#670 + # source://prism//lib/prism/mutation_compiler.rb#675 def visit_self_node(node); end # Copy a ShareableConstantNode node # - # source://prism//lib/prism/mutation_compiler.rb#675 + # source://prism//lib/prism/mutation_compiler.rb#680 def visit_shareable_constant_node(node); end # Copy a SingletonClassNode node # - # source://prism//lib/prism/mutation_compiler.rb#680 + # source://prism//lib/prism/mutation_compiler.rb#685 def visit_singleton_class_node(node); end # Copy a SourceEncodingNode node # - # source://prism//lib/prism/mutation_compiler.rb#685 + # source://prism//lib/prism/mutation_compiler.rb#690 def visit_source_encoding_node(node); end # Copy a SourceFileNode node # - # source://prism//lib/prism/mutation_compiler.rb#690 + # source://prism//lib/prism/mutation_compiler.rb#695 def visit_source_file_node(node); end # Copy a SourceLineNode node # - # source://prism//lib/prism/mutation_compiler.rb#695 + # source://prism//lib/prism/mutation_compiler.rb#700 def visit_source_line_node(node); end # Copy a SplatNode node # - # source://prism//lib/prism/mutation_compiler.rb#700 + # source://prism//lib/prism/mutation_compiler.rb#705 def visit_splat_node(node); end # Copy a StatementsNode node # - # source://prism//lib/prism/mutation_compiler.rb#705 + # source://prism//lib/prism/mutation_compiler.rb#710 def visit_statements_node(node); end # Copy a StringNode node # - # source://prism//lib/prism/mutation_compiler.rb#710 + # source://prism//lib/prism/mutation_compiler.rb#715 def visit_string_node(node); end # Copy a SuperNode node # - # source://prism//lib/prism/mutation_compiler.rb#715 + # source://prism//lib/prism/mutation_compiler.rb#720 def visit_super_node(node); end # Copy a SymbolNode node # - # source://prism//lib/prism/mutation_compiler.rb#720 + # source://prism//lib/prism/mutation_compiler.rb#725 def visit_symbol_node(node); end # Copy a TrueNode node # - # source://prism//lib/prism/mutation_compiler.rb#725 + # source://prism//lib/prism/mutation_compiler.rb#730 def visit_true_node(node); end # Copy a UndefNode node # - # source://prism//lib/prism/mutation_compiler.rb#730 + # source://prism//lib/prism/mutation_compiler.rb#735 def visit_undef_node(node); end # Copy a UnlessNode node # - # source://prism//lib/prism/mutation_compiler.rb#735 + # source://prism//lib/prism/mutation_compiler.rb#740 def visit_unless_node(node); end # Copy a UntilNode node # - # source://prism//lib/prism/mutation_compiler.rb#740 + # source://prism//lib/prism/mutation_compiler.rb#745 def visit_until_node(node); end # Copy a WhenNode node # - # source://prism//lib/prism/mutation_compiler.rb#745 + # source://prism//lib/prism/mutation_compiler.rb#750 def visit_when_node(node); end # Copy a WhileNode node # - # source://prism//lib/prism/mutation_compiler.rb#750 + # source://prism//lib/prism/mutation_compiler.rb#755 def visit_while_node(node); end # Copy a XStringNode node # - # source://prism//lib/prism/mutation_compiler.rb#755 + # source://prism//lib/prism/mutation_compiler.rb#760 def visit_x_string_node(node); end # Copy a YieldNode node # - # source://prism//lib/prism/mutation_compiler.rb#760 + # source://prism//lib/prism/mutation_compiler.rb#765 def visit_yield_node(node); end end @@ -24545,13 +24570,13 @@ end # next 1 # ^^^^^^ # -# source://prism//lib/prism/node.rb#13736 +# source://prism//lib/prism/node.rb#13689 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#13738 + # source://prism//lib/prism/node.rb#13691 sig do params( source: Prism::Source, @@ -24565,42 +24590,42 @@ class Prism::NextNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#13783 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13747 + # source://prism//lib/prism/node.rb#13699 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#13782 + # source://prism//lib/prism/node.rb#13734 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13752 + # source://prism//lib/prism/node.rb#13704 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#13764 + # source://prism//lib/prism/node.rb#13716 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#13757 + # source://prism//lib/prism/node.rb#13709 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#13769 + # source://prism//lib/prism/node.rb#13721 sig do params( arguments: T.nilable(Prism::ArgumentsNode), @@ -24613,13 +24638,13 @@ class Prism::NextNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13752 + # source://prism//lib/prism/node.rb#13704 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#13777 + # source://prism//lib/prism/node.rb#13729 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -24628,19 +24653,19 @@ class Prism::NextNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13797 + # source://prism//lib/prism/node.rb#13749 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#13792 + # source://prism//lib/prism/node.rb#13744 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#13785 + # source://prism//lib/prism/node.rb#13737 sig { returns(Prism::Location) } def keyword_loc; end @@ -24659,7 +24684,7 @@ class Prism::NextNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13815 + # source://prism//lib/prism/node.rb#13767 sig { override.returns(Symbol) } def type; end @@ -24671,7 +24696,7 @@ class Prism::NextNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13825 + # source://prism//lib/prism/node.rb#13777 def type; end end end @@ -24681,62 +24706,62 @@ end # nil # ^^^ # -# source://prism//lib/prism/node.rb#13842 +# source://prism//lib/prism/node.rb#13794 class Prism::NilNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [NilNode] a new instance of NilNode # - # source://prism//lib/prism/node.rb#13844 + # source://prism//lib/prism/node.rb#13796 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 + # source://prism//lib/prism/node.rb#13869 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13851 + # source://prism//lib/prism/node.rb#13802 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#13856 + # source://prism//lib/prism/node.rb#13807 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#13866 + # source://prism//lib/prism/node.rb#13817 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#13861 + # source://prism//lib/prism/node.rb#13812 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> NilNode # - # source://prism//lib/prism/node.rb#13871 + # source://prism//lib/prism/node.rb#13822 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#13856 + # source://prism//lib/prism/node.rb#13807 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#13879 + # source://prism//lib/prism/node.rb#13830 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -24745,7 +24770,7 @@ class Prism::NilNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13884 + # source://prism//lib/prism/node.rb#13835 sig { override.returns(String) } def inspect; end @@ -24764,7 +24789,7 @@ class Prism::NilNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#13902 + # source://prism//lib/prism/node.rb#13853 sig { override.returns(Symbol) } def type; end @@ -24776,7 +24801,7 @@ class Prism::NilNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#13912 + # source://prism//lib/prism/node.rb#13863 def type; end end end @@ -24787,13 +24812,13 @@ end # ^^^^^ # end # -# source://prism//lib/prism/node.rb#13928 +# source://prism//lib/prism/node.rb#13879 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#13930 + # source://prism//lib/prism/node.rb#13881 sig do params( source: Prism::Source, @@ -24807,36 +24832,36 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#13980 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#13939 + # source://prism//lib/prism/node.rb#13889 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#13944 + # source://prism//lib/prism/node.rb#13894 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#13954 + # source://prism//lib/prism/node.rb#13904 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#13949 + # source://prism//lib/prism/node.rb#13899 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#13959 + # source://prism//lib/prism/node.rb#13909 sig do params( operator_loc: Prism::Location, @@ -24849,13 +24874,13 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#13944 + # source://prism//lib/prism/node.rb#13894 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#13967 + # source://prism//lib/prism/node.rb#13917 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -24864,31 +24889,31 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#13996 + # source://prism//lib/prism/node.rb#13946 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#13991 + # source://prism//lib/prism/node.rb#13941 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#13979 + # source://prism//lib/prism/node.rb#13929 sig { returns(Prism::Location) } def keyword_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#13986 + # source://prism//lib/prism/node.rb#13936 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#13972 + # source://prism//lib/prism/node.rb#13922 sig { returns(Prism::Location) } def operator_loc; end @@ -24907,7 +24932,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14014 + # source://prism//lib/prism/node.rb#13964 sig { override.returns(Symbol) } def type; end @@ -24919,7 +24944,7 @@ class Prism::NoKeywordsParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14024 + # source://prism//lib/prism/node.rb#13974 def type; end end end @@ -24935,7 +24960,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#143 + # source://prism//lib/prism/node.rb#131 sig { abstract.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -24944,7 +24969,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#149 + # source://prism//lib/prism/node.rb#137 sig { abstract.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end @@ -24953,7 +24978,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#163 + # source://prism//lib/prism/node.rb#151 sig { abstract.returns(T::Array[T.any(Prism::Node, Prism::Location)]) } def comment_targets; end @@ -24962,7 +24987,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#157 + # source://prism//lib/prism/node.rb#145 sig { abstract.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -24971,7 +24996,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#149 + # source://prism//lib/prism/node.rb#137 sig { abstract.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end @@ -24992,7 +25017,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#174 + # source://prism//lib/prism/node.rb#162 sig { abstract.returns(String) } def inspect; end @@ -25003,15 +25028,18 @@ class Prism::Node sig { returns(Prism::Location) } def location; end + # source://prism//lib/prism/parse_result/newlines.rb#69 + def newline!(lines); end + # @return [Boolean] # - # source://prism//lib/prism/node.rb#39 + # source://prism//lib/prism/parse_result/newlines.rb#65 def newline?; end # Similar to inspect, but respects the current level of indentation given by # the pretty print object. # - # source://prism//lib/prism/node.rb#74 + # source://prism//lib/prism/node.rb#62 sig { params(q: T.untyped).void } def pretty_print(q); end @@ -25019,16 +25047,13 @@ class Prism::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 + # source://prism//lib/prism/node.rb#40 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#61 + # source://prism//lib/prism/node.rb#49 sig { returns(String) } def slice; end @@ -25036,13 +25061,13 @@ class Prism::Node # 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 + # source://prism//lib/prism/node.rb#56 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 + # source://prism//lib/prism/node.rb#40 sig { returns(T::Array[String]) } def source_lines; end @@ -25055,7 +25080,7 @@ class Prism::Node # Convert this node into a graphviz dot graph string. # - # source://prism//lib/prism/node.rb#82 + # source://prism//lib/prism/node.rb#70 sig { returns(String) } def to_dot; end @@ -25066,7 +25091,7 @@ class Prism::Node # 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 + # source://prism//lib/prism/node.rb#81 sig { params(line: Integer, column: Integer).returns(T::Array[Prism::Node]) } def tunnel(line, column); end @@ -25075,7 +25100,7 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#169 + # source://prism//lib/prism/node.rb#157 sig { abstract.returns(Symbol) } def type; end @@ -25094,14 +25119,14 @@ class Prism::Node # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#127 + # source://prism//lib/prism/node.rb#115 def fields; end # Returns the type of the node as a symbol. # # @raise [NoMethodError] # - # source://prism//lib/prism/node.rb#179 + # source://prism//lib/prism/node.rb#167 def type; end end end @@ -25111,62 +25136,62 @@ end # -> { _1 + _2 } # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14041 +# source://prism//lib/prism/node.rb#13991 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#14043 + # source://prism//lib/prism/node.rb#13993 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 + # source://prism//lib/prism/node.rb#14070 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14051 + # source://prism//lib/prism/node.rb#14000 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#14056 + # source://prism//lib/prism/node.rb#14005 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#14066 + # source://prism//lib/prism/node.rb#14015 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#14061 + # source://prism//lib/prism/node.rb#14010 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#14071 + # source://prism//lib/prism/node.rb#14020 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#14056 + # source://prism//lib/prism/node.rb#14005 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#14079 + # source://prism//lib/prism/node.rb#14028 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -25175,13 +25200,13 @@ class Prism::NumberedParametersNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14087 + # source://prism//lib/prism/node.rb#14036 sig { override.returns(String) } def inspect; end # attr_reader maximum: Integer # - # source://prism//lib/prism/node.rb#14084 + # source://prism//lib/prism/node.rb#14033 sig { returns(Integer) } def maximum; end @@ -25200,7 +25225,7 @@ class Prism::NumberedParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14105 + # source://prism//lib/prism/node.rb#14054 sig { override.returns(Symbol) } def type; end @@ -25212,7 +25237,7 @@ class Prism::NumberedParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14115 + # source://prism//lib/prism/node.rb#14064 def type; end end end @@ -25222,62 +25247,62 @@ end # $1 # ^^ # -# source://prism//lib/prism/node.rb#14131 +# source://prism//lib/prism/node.rb#14080 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#14133 + # source://prism//lib/prism/node.rb#14082 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 + # source://prism//lib/prism/node.rb#14165 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14141 + # source://prism//lib/prism/node.rb#14089 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#14146 + # source://prism//lib/prism/node.rb#14094 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#14156 + # source://prism//lib/prism/node.rb#14104 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#14151 + # source://prism//lib/prism/node.rb#14099 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#14161 + # source://prism//lib/prism/node.rb#14109 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#14146 + # source://prism//lib/prism/node.rb#14094 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#14169 + # source://prism//lib/prism/node.rb#14117 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -25286,7 +25311,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14183 + # source://prism//lib/prism/node.rb#14131 sig { override.returns(String) } def inspect; end @@ -25298,7 +25323,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # $4294967296 # number `0` # - # source://prism//lib/prism/node.rb#14180 + # source://prism//lib/prism/node.rb#14128 sig { returns(Integer) } def number; end @@ -25317,7 +25342,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14201 + # source://prism//lib/prism/node.rb#14149 sig { override.returns(Symbol) } def type; end @@ -25329,7 +25354,7 @@ class Prism::NumberedReferenceReadNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14211 + # source://prism//lib/prism/node.rb#14159 def type; end end end @@ -25340,13 +25365,13 @@ end # ^^^^ # end # -# source://prism//lib/prism/node.rb#14228 +# source://prism//lib/prism/node.rb#14176 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#14230 + # source://prism//lib/prism/node.rb#14178 sig do params( source: Prism::Source, @@ -25362,36 +25387,36 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#14277 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14241 + # source://prism//lib/prism/node.rb#14188 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#14246 + # source://prism//lib/prism/node.rb#14193 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#14256 + # source://prism//lib/prism/node.rb#14203 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#14251 + # source://prism//lib/prism/node.rb#14198 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#14261 + # source://prism//lib/prism/node.rb#14208 sig do params( flags: Integer, @@ -25406,13 +25431,13 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14246 + # source://prism//lib/prism/node.rb#14193 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#14269 + # source://prism//lib/prism/node.rb#14216 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -25421,19 +25446,19 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14296 + # source://prism//lib/prism/node.rb#14243 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#14278 + # source://prism//lib/prism/node.rb#14225 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#14281 + # source://prism//lib/prism/node.rb#14228 sig { returns(Prism::Location) } def name_loc; end @@ -25441,7 +25466,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14291 + # source://prism//lib/prism/node.rb#14238 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -25460,13 +25485,13 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14314 + # source://prism//lib/prism/node.rb#14261 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#14288 + # source://prism//lib/prism/node.rb#14235 sig { returns(Prism::Node) } def value; end @@ -25474,7 +25499,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#14274 + # source://prism//lib/prism/node.rb#14221 sig { returns(Integer) } def flags; end @@ -25486,7 +25511,7 @@ class Prism::OptionalKeywordParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14324 + # source://prism//lib/prism/node.rb#14271 def type; end end end @@ -25497,13 +25522,13 @@ end # ^^^^^ # end # -# source://prism//lib/prism/node.rb#14344 +# source://prism//lib/prism/node.rb#14291 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#14346 + # source://prism//lib/prism/node.rb#14293 sig do params( source: Prism::Source, @@ -25520,36 +25545,36 @@ class Prism::OptionalParameterNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#14405 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14358 + # source://prism//lib/prism/node.rb#14304 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#14363 + # source://prism//lib/prism/node.rb#14309 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#14373 + # source://prism//lib/prism/node.rb#14319 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#14368 + # source://prism//lib/prism/node.rb#14314 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#14378 + # source://prism//lib/prism/node.rb#14324 sig do params( flags: Integer, @@ -25565,13 +25590,13 @@ class Prism::OptionalParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14363 + # source://prism//lib/prism/node.rb#14309 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#14386 + # source://prism//lib/prism/node.rb#14332 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -25580,31 +25605,31 @@ class Prism::OptionalParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14425 + # source://prism//lib/prism/node.rb#14371 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#14395 + # source://prism//lib/prism/node.rb#14341 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#14398 + # source://prism//lib/prism/node.rb#14344 sig { returns(Prism::Location) } def name_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14420 + # source://prism//lib/prism/node.rb#14366 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#14405 + # source://prism//lib/prism/node.rb#14351 sig { returns(Prism::Location) } def operator_loc; end @@ -25612,7 +25637,7 @@ class Prism::OptionalParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#14415 + # source://prism//lib/prism/node.rb#14361 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -25631,13 +25656,13 @@ class Prism::OptionalParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14443 + # source://prism//lib/prism/node.rb#14389 sig { override.returns(Symbol) } def type; end # attr_reader value: Prism::node # - # source://prism//lib/prism/node.rb#14412 + # source://prism//lib/prism/node.rb#14358 sig { returns(Prism::Node) } def value; end @@ -25645,7 +25670,7 @@ class Prism::OptionalParameterNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#14391 + # source://prism//lib/prism/node.rb#14337 sig { returns(Integer) } def flags; end @@ -25657,7 +25682,7 @@ class Prism::OptionalParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14453 + # source://prism//lib/prism/node.rb#14399 def type; end end end @@ -25667,13 +25692,13 @@ end # left or right # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14473 +# source://prism//lib/prism/node.rb#14419 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#14475 + # source://prism//lib/prism/node.rb#14421 sig do params( source: Prism::Source, @@ -25688,36 +25713,36 @@ class Prism::OrNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#14530 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14485 + # source://prism//lib/prism/node.rb#14430 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#14490 + # source://prism//lib/prism/node.rb#14435 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#14500 + # source://prism//lib/prism/node.rb#14445 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#14495 + # source://prism//lib/prism/node.rb#14440 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#14505 + # source://prism//lib/prism/node.rb#14450 sig do params( left: Prism::Node, @@ -25731,13 +25756,13 @@ class Prism::OrNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14490 + # source://prism//lib/prism/node.rb#14435 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#14513 + # source://prism//lib/prism/node.rb#14458 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -25746,7 +25771,7 @@ class Prism::OrNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14551 + # source://prism//lib/prism/node.rb#14496 sig { override.returns(String) } def inspect; end @@ -25758,13 +25783,13 @@ class Prism::OrNode < ::Prism::Node # 1 || 2 # ^ # - # source://prism//lib/prism/node.rb#14524 + # source://prism//lib/prism/node.rb#14469 sig { returns(Prism::Node) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14546 + # source://prism//lib/prism/node.rb#14491 sig { returns(String) } def operator; end @@ -25773,7 +25798,7 @@ class Prism::OrNode < ::Prism::Node # left or right # ^^ # - # source://prism//lib/prism/node.rb#14539 + # source://prism//lib/prism/node.rb#14484 sig { returns(Prism::Location) } def operator_loc; end @@ -25785,7 +25810,7 @@ class Prism::OrNode < ::Prism::Node # 1 or 2 # ^ # - # source://prism//lib/prism/node.rb#14533 + # source://prism//lib/prism/node.rb#14478 sig { returns(Prism::Node) } def right; end @@ -25804,7 +25829,7 @@ class Prism::OrNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14569 + # source://prism//lib/prism/node.rb#14514 sig { override.returns(Symbol) } def type; end @@ -25816,7 +25841,7 @@ class Prism::OrNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14579 + # source://prism//lib/prism/node.rb#14524 def type; end end end @@ -26065,12 +26090,12 @@ Prism::Pack::UTF8 = T.let(T.unsafe(nil), Symbol) # Flags for parameter nodes. # -# source://prism//lib/prism/node.rb#19277 +# source://prism//lib/prism/node.rb#19202 module Prism::ParameterFlags; end # a parameter name that has been repeated in the method signature # -# source://prism//lib/prism/node.rb#19279 +# source://prism//lib/prism/node.rb#19204 Prism::ParameterFlags::REPEATED_PARAMETER = T.let(T.unsafe(nil), Integer) # Represents the list of parameters on a method, block, or lambda definition. @@ -26079,13 +26104,13 @@ Prism::ParameterFlags::REPEATED_PARAMETER = T.let(T.unsafe(nil), Integer) # ^^^^^^^ # end # -# source://prism//lib/prism/node.rb#14598 +# source://prism//lib/prism/node.rb#14543 class Prism::ParametersNode < ::Prism::Node # 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#14600 + # source://prism//lib/prism/node.rb#14545 sig do params( source: Prism::Source, @@ -26104,42 +26129,42 @@ class Prism::ParametersNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#14654 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14614 + # source://prism//lib/prism/node.rb#14558 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader block: BlockParameterNode? # - # source://prism//lib/prism/node.rb#14673 + # source://prism//lib/prism/node.rb#14617 sig { returns(T.nilable(Prism::BlockParameterNode)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14619 + # source://prism//lib/prism/node.rb#14563 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#14637 + # source://prism//lib/prism/node.rb#14581 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#14624 + # source://prism//lib/prism/node.rb#14568 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 | ForwardingParameterNode], ?keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode], ?keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil, ?block: BlockParameterNode?, ?location: Location) -> ParametersNode # - # source://prism//lib/prism/node.rb#14642 + # source://prism//lib/prism/node.rb#14586 sig do params( requireds: T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode)], @@ -26157,13 +26182,13 @@ class Prism::ParametersNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14619 + # source://prism//lib/prism/node.rb#14563 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 | ForwardingParameterNode], keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode], keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil, block: BlockParameterNode?, location: Location } # - # source://prism//lib/prism/node.rb#14650 + # source://prism//lib/prism/node.rb#14594 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -26172,13 +26197,13 @@ class Prism::ParametersNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14676 + # source://prism//lib/prism/node.rb#14620 sig { override.returns(String) } def inspect; end # attr_reader keyword_rest: KeywordRestParameterNode | ForwardingParameterNode | NoKeywordsParameterNode | nil # - # source://prism//lib/prism/node.rb#14670 + # source://prism//lib/prism/node.rb#14614 sig do returns(T.nilable(T.any(Prism::KeywordRestParameterNode, Prism::ForwardingParameterNode, Prism::NoKeywordsParameterNode))) end @@ -26186,19 +26211,19 @@ class Prism::ParametersNode < ::Prism::Node # attr_reader keywords: Array[RequiredKeywordParameterNode | OptionalKeywordParameterNode] # - # source://prism//lib/prism/node.rb#14667 + # source://prism//lib/prism/node.rb#14611 sig { returns(T::Array[T.any(Prism::RequiredKeywordParameterNode, Prism::OptionalKeywordParameterNode)]) } def keywords; end # attr_reader optionals: Array[OptionalParameterNode] # - # source://prism//lib/prism/node.rb#14658 + # source://prism//lib/prism/node.rb#14602 sig { returns(T::Array[Prism::OptionalParameterNode]) } def optionals; end # attr_reader posts: Array[RequiredParameterNode | MultiTargetNode | KeywordRestParameterNode | NoKeywordsParameterNode | ForwardingParameterNode] # - # source://prism//lib/prism/node.rb#14664 + # source://prism//lib/prism/node.rb#14608 sig do returns(T::Array[T.any(Prism::RequiredParameterNode, Prism::MultiTargetNode, Prism::KeywordRestParameterNode, Prism::NoKeywordsParameterNode, Prism::ForwardingParameterNode)]) end @@ -26206,19 +26231,19 @@ class Prism::ParametersNode < ::Prism::Node # attr_reader requireds: Array[RequiredParameterNode | MultiTargetNode] # - # source://prism//lib/prism/node.rb#14655 + # source://prism//lib/prism/node.rb#14599 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#14661 + # source://prism//lib/prism/node.rb#14605 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#238 + # source://prism//lib/prism/node_ext.rb#253 sig { returns(T::Array[T.any([Symbol, Symbol], [Symbol])]) } def signature; end @@ -26237,7 +26262,7 @@ class Prism::ParametersNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14694 + # source://prism//lib/prism/node.rb#14638 sig { override.returns(Symbol) } def type; end @@ -26249,7 +26274,7 @@ class Prism::ParametersNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14704 + # source://prism//lib/prism/node.rb#14648 def type; end end end @@ -26259,13 +26284,13 @@ end # (10 + 34) # ^^^^^^^^^ # -# source://prism//lib/prism/node.rb#14730 +# source://prism//lib/prism/node.rb#14674 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#14732 + # source://prism//lib/prism/node.rb#14676 sig do params( source: Prism::Source, @@ -26280,54 +26305,54 @@ class Prism::ParenthesesNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#14781 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14742 + # source://prism//lib/prism/node.rb#14685 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#14781 + # source://prism//lib/prism/node.rb#14720 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14751 + # source://prism//lib/prism/node.rb#14690 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#14803 + # source://prism//lib/prism/node.rb#14742 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#14791 + # source://prism//lib/prism/node.rb#14730 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#14763 + # source://prism//lib/prism/node.rb#14702 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#14756 + # source://prism//lib/prism/node.rb#14695 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#14768 + # source://prism//lib/prism/node.rb#14707 sig do params( body: T.nilable(Prism::Node), @@ -26341,13 +26366,13 @@ class Prism::ParenthesesNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14751 + # source://prism//lib/prism/node.rb#14690 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#14776 + # source://prism//lib/prism/node.rb#14715 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -26356,25 +26381,25 @@ class Prism::ParenthesesNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14808 + # source://prism//lib/prism/node.rb#14747 sig { override.returns(String) } def inspect; end + # source://prism//lib/prism/parse_result/newlines.rb#85 + def newline!(lines); end + # def opening: () -> String # - # source://prism//lib/prism/node.rb#14798 + # source://prism//lib/prism/node.rb#14737 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#14784 + # source://prism//lib/prism/node.rb#14723 sig { returns(Prism::Location) } def opening_loc; end - # 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 # 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 @@ -26390,7 +26415,7 @@ class Prism::ParenthesesNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14826 + # source://prism//lib/prism/node.rb#14765 sig { override.returns(Symbol) } def type; end @@ -26402,7 +26427,7 @@ class Prism::ParenthesesNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14836 + # source://prism//lib/prism/node.rb#14775 def type; end end end @@ -26459,13 +26484,13 @@ end # This is a result specific to the `parse_lex` and `parse_lex_file` methods. # -# source://prism//lib/prism/parse_result.rb#610 +# source://prism//lib/prism/parse_result.rb#627 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 + # source://prism//lib/prism/parse_result.rb#633 sig do params( value: [Prism::ProgramNode, T::Array[T.untyped]], @@ -26481,14 +26506,14 @@ class Prism::ParseLexResult < ::Prism::Result # Implement the hash pattern matching interface for ParseLexResult. # - # source://prism//lib/prism/parse_result.rb#622 + # source://prism//lib/prism/parse_result.rb#639 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 + # source://prism//lib/prism/parse_result.rb#630 sig { returns([Prism::ProgramNode, T::Array[T.untyped]]) } def value; end end @@ -26501,7 +26526,7 @@ class Prism::ParseResult < ::Prism::Result # # @return [ParseResult] a new instance of ParseResult # - # source://prism//lib/prism/parse_result.rb#581 + # source://prism//lib/prism/parse_result.rb#587 sig do params( value: Prism::ProgramNode, @@ -26517,23 +26542,24 @@ class Prism::ParseResult < ::Prism::Result # Attach the list of comments to their respective locations in the tree. # - # source://prism//lib/prism/parse_result/comments.rb#190 + # source://prism//lib/prism/parse_result.rb#598 def attach_comments!; end # Implement the hash pattern matching interface for ParseResult. # - # source://prism//lib/prism/parse_result.rb#587 + # source://prism//lib/prism/parse_result.rb#593 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end - # Walk the tree and mark nodes that are on a new line. + # Walk the tree and mark nodes that are on a new line, loosely emulating + # the behavior of CRuby's `:line` tracepoint event. # - # source://prism//lib/prism/parse_result/newlines.rb#60 + # source://prism//lib/prism/parse_result.rb#604 def mark_newlines!; end # The syntax tree that was parsed from the source code. # - # source://prism//lib/prism/parse_result.rb#578 + # source://prism//lib/prism/parse_result.rb#584 sig { returns(Prism::ProgramNode) } def value; end end @@ -26661,38 +26687,43 @@ end # MarkNewlinesVisitor, since that visitor is responsible for marking the # newlines for JRuby/TruffleRuby. # -# source://prism//lib/prism/parse_result/newlines.rb#20 +# This file is autoloaded only when `mark_newlines!` is called, so the +# re-opening of the various nodes in this file will only be performed in +# that case. We do that to avoid storing the extra `@newline` instance +# variable on every node if we don't need it. +# +# source://prism//lib/prism/parse_result/newlines.rb#25 class Prism::ParseResult::Newlines < ::Prism::Visitor # Create a new Newlines visitor with the given newline offsets. # # @return [Newlines] a new instance of Newlines # - # source://prism//lib/prism/parse_result/newlines.rb#22 - def initialize(newline_marked); end + # source://prism//lib/prism/parse_result/newlines.rb#27 + def initialize(lines); end # Permit block/lambda nodes to mark newlines within themselves. # - # source://prism//lib/prism/parse_result/newlines.rb#27 + # source://prism//lib/prism/parse_result/newlines.rb#33 def visit_block_node(node); end # Mark if/unless nodes as newlines. # - # source://prism//lib/prism/parse_result/newlines.rb#41 + # source://prism//lib/prism/parse_result/newlines.rb#47 def visit_if_node(node); end # Permit block/lambda nodes to mark newlines within themselves. # - # source://prism//lib/prism/parse_result/newlines.rb#27 + # source://prism//lib/prism/parse_result/newlines.rb#33 def visit_lambda_node(node); end # Permit statements lists to mark newlines within themselves. # - # source://prism//lib/prism/parse_result/newlines.rb#49 + # source://prism//lib/prism/parse_result/newlines.rb#55 def visit_statements_node(node); end # Mark if/unless nodes as newlines. # - # source://prism//lib/prism/parse_result/newlines.rb#41 + # source://prism//lib/prism/parse_result/newlines.rb#47 def visit_unless_node(node); end end @@ -26912,13 +26943,13 @@ end # foo in ^(bar) # ^^^^^^ # -# source://prism//lib/prism/node.rb#14854 +# source://prism//lib/prism/node.rb#14793 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#14856 + # source://prism//lib/prism/node.rb#14795 sig do params( source: Prism::Source, @@ -26934,36 +26965,36 @@ class Prism::PinnedExpressionNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#14911 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14867 + # source://prism//lib/prism/node.rb#14805 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#14872 + # source://prism//lib/prism/node.rb#14810 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#14882 + # source://prism//lib/prism/node.rb#14820 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#14877 + # source://prism//lib/prism/node.rb#14815 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#14887 + # source://prism//lib/prism/node.rb#14825 sig do params( expression: Prism::Node, @@ -26978,19 +27009,19 @@ class Prism::PinnedExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#14872 + # source://prism//lib/prism/node.rb#14810 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#14895 + # source://prism//lib/prism/node.rb#14833 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#14900 + # source://prism//lib/prism/node.rb#14838 sig { returns(Prism::Node) } def expression; end @@ -26999,43 +27030,43 @@ class Prism::PinnedExpressionNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#14939 + # source://prism//lib/prism/node.rb#14877 sig { override.returns(String) } def inspect; end # def lparen: () -> String # - # source://prism//lib/prism/node.rb#14929 + # source://prism//lib/prism/node.rb#14867 sig { returns(String) } def lparen; end # attr_reader lparen_loc: Location # - # source://prism//lib/prism/node.rb#14910 + # source://prism//lib/prism/node.rb#14848 sig { returns(Prism::Location) } def lparen_loc; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#14924 + # source://prism//lib/prism/node.rb#14862 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#14903 + # source://prism//lib/prism/node.rb#14841 sig { returns(Prism::Location) } def operator_loc; end # def rparen: () -> String # - # source://prism//lib/prism/node.rb#14934 + # source://prism//lib/prism/node.rb#14872 sig { returns(String) } def rparen; end # attr_reader rparen_loc: Location # - # source://prism//lib/prism/node.rb#14917 + # source://prism//lib/prism/node.rb#14855 sig { returns(Prism::Location) } def rparen_loc; end @@ -27054,7 +27085,7 @@ class Prism::PinnedExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#14957 + # source://prism//lib/prism/node.rb#14895 sig { override.returns(Symbol) } def type; end @@ -27066,7 +27097,7 @@ class Prism::PinnedExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#14967 + # source://prism//lib/prism/node.rb#14905 def type; end end end @@ -27076,13 +27107,13 @@ end # foo in ^bar # ^^^^ # -# source://prism//lib/prism/node.rb#14986 +# source://prism//lib/prism/node.rb#14924 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#14988 + # source://prism//lib/prism/node.rb#14926 sig do params( source: Prism::Source, @@ -27096,36 +27127,36 @@ class Prism::PinnedVariableNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#15016 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#14997 + # source://prism//lib/prism/node.rb#14934 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#15002 + # source://prism//lib/prism/node.rb#14939 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#15012 + # source://prism//lib/prism/node.rb#14949 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#15007 + # source://prism//lib/prism/node.rb#14944 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#15017 + # source://prism//lib/prism/node.rb#14954 sig do params( variable: Prism::Node, @@ -27138,13 +27169,13 @@ class Prism::PinnedVariableNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15002 + # source://prism//lib/prism/node.rb#14939 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#15025 + # source://prism//lib/prism/node.rb#14962 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -27153,19 +27184,19 @@ class Prism::PinnedVariableNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#15045 + # source://prism//lib/prism/node.rb#14982 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#15040 + # source://prism//lib/prism/node.rb#14977 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#15033 + # source://prism//lib/prism/node.rb#14970 sig { returns(Prism::Location) } def operator_loc; end @@ -27184,13 +27215,13 @@ class Prism::PinnedVariableNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15063 + # source://prism//lib/prism/node.rb#15000 sig { override.returns(Symbol) } def type; end # attr_reader variable: Prism::node # - # source://prism//lib/prism/node.rb#15030 + # source://prism//lib/prism/node.rb#14967 sig { returns(Prism::Node) } def variable; end @@ -27202,7 +27233,7 @@ class Prism::PinnedVariableNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15073 + # source://prism//lib/prism/node.rb#15010 def type; end end end @@ -27212,13 +27243,13 @@ end # END { foo } # ^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15090 +# source://prism//lib/prism/node.rb#15027 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#15092 + # source://prism//lib/prism/node.rb#15029 sig do params( source: Prism::Source, @@ -27234,48 +27265,48 @@ class Prism::PostExecutionNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#15147 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15103 + # source://prism//lib/prism/node.rb#15039 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#15108 + # source://prism//lib/prism/node.rb#15044 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#15172 + # source://prism//lib/prism/node.rb#15108 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#15155 + # source://prism//lib/prism/node.rb#15091 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15120 + # source://prism//lib/prism/node.rb#15056 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#15113 + # source://prism//lib/prism/node.rb#15049 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#15125 + # source://prism//lib/prism/node.rb#15061 sig do params( statements: T.nilable(Prism::StatementsNode), @@ -27290,13 +27321,13 @@ class Prism::PostExecutionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15108 + # source://prism//lib/prism/node.rb#15044 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#15133 + # source://prism//lib/prism/node.rb#15069 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -27305,37 +27336,37 @@ class Prism::PostExecutionNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#15177 + # source://prism//lib/prism/node.rb#15113 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#15162 + # source://prism//lib/prism/node.rb#15098 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#15141 + # source://prism//lib/prism/node.rb#15077 sig { returns(Prism::Location) } def keyword_loc; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#15167 + # source://prism//lib/prism/node.rb#15103 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#15148 + # source://prism//lib/prism/node.rb#15084 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#15138 + # source://prism//lib/prism/node.rb#15074 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -27354,7 +27385,7 @@ class Prism::PostExecutionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15195 + # source://prism//lib/prism/node.rb#15131 sig { override.returns(Symbol) } def type; end @@ -27366,7 +27397,7 @@ class Prism::PostExecutionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15205 + # source://prism//lib/prism/node.rb#15141 def type; end end end @@ -27376,13 +27407,13 @@ end # BEGIN { foo } # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15224 +# source://prism//lib/prism/node.rb#15160 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#15226 + # source://prism//lib/prism/node.rb#15162 sig do params( source: Prism::Source, @@ -27398,48 +27429,48 @@ class Prism::PreExecutionNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#15280 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15237 + # source://prism//lib/prism/node.rb#15172 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#15242 + # source://prism//lib/prism/node.rb#15177 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#15306 + # source://prism//lib/prism/node.rb#15241 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#15289 + # source://prism//lib/prism/node.rb#15224 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15254 + # source://prism//lib/prism/node.rb#15189 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#15247 + # source://prism//lib/prism/node.rb#15182 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#15259 + # source://prism//lib/prism/node.rb#15194 sig do params( statements: T.nilable(Prism::StatementsNode), @@ -27454,13 +27485,13 @@ class Prism::PreExecutionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15242 + # source://prism//lib/prism/node.rb#15177 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#15267 + # source://prism//lib/prism/node.rb#15202 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -27469,37 +27500,37 @@ class Prism::PreExecutionNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#15311 + # source://prism//lib/prism/node.rb#15246 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#15296 + # source://prism//lib/prism/node.rb#15231 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#15275 + # source://prism//lib/prism/node.rb#15210 sig { returns(Prism::Location) } def keyword_loc; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#15301 + # source://prism//lib/prism/node.rb#15236 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#15282 + # source://prism//lib/prism/node.rb#15217 sig { returns(Prism::Location) } def opening_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#15272 + # source://prism//lib/prism/node.rb#15207 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -27518,7 +27549,7 @@ class Prism::PreExecutionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15329 + # source://prism//lib/prism/node.rb#15264 sig { override.returns(Symbol) } def type; end @@ -27530,20 +27561,20 @@ class Prism::PreExecutionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15339 + # source://prism//lib/prism/node.rb#15274 def type; end end end # The top level node of any parse tree. # -# source://prism//lib/prism/node.rb#15355 +# source://prism//lib/prism/node.rb#15290 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#15357 + # source://prism//lib/prism/node.rb#15292 sig do params( source: Prism::Source, @@ -27557,36 +27588,36 @@ class Prism::ProgramNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#15373 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15366 + # source://prism//lib/prism/node.rb#15300 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#15371 + # source://prism//lib/prism/node.rb#15305 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#15381 + # source://prism//lib/prism/node.rb#15315 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#15376 + # source://prism//lib/prism/node.rb#15310 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#15386 + # source://prism//lib/prism/node.rb#15320 sig do params( locals: T::Array[Symbol], @@ -27599,13 +27630,13 @@ class Prism::ProgramNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15371 + # source://prism//lib/prism/node.rb#15305 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#15394 + # source://prism//lib/prism/node.rb#15328 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -27614,19 +27645,19 @@ class Prism::ProgramNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#15405 + # source://prism//lib/prism/node.rb#15339 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#15399 + # source://prism//lib/prism/node.rb#15333 sig { returns(T::Array[Symbol]) } def locals; end # attr_reader statements: StatementsNode # - # source://prism//lib/prism/node.rb#15402 + # source://prism//lib/prism/node.rb#15336 sig { returns(Prism::StatementsNode) } def statements; end @@ -27645,7 +27676,7 @@ class Prism::ProgramNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15423 + # source://prism//lib/prism/node.rb#15357 sig { override.returns(Symbol) } def type; end @@ -27657,19 +27688,19 @@ class Prism::ProgramNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15433 + # source://prism//lib/prism/node.rb#15367 def type; end end end # Flags for range and flip-flop nodes. # -# source://prism//lib/prism/node.rb#19283 +# source://prism//lib/prism/node.rb#19208 module Prism::RangeFlags; end # ... operator # -# source://prism//lib/prism/node.rb#19285 +# source://prism//lib/prism/node.rb#19210 Prism::RangeFlags::EXCLUDE_END = T.let(T.unsafe(nil), Integer) # Represents the use of the `..` or `...` operators. @@ -27680,13 +27711,13 @@ Prism::RangeFlags::EXCLUDE_END = T.let(T.unsafe(nil), Integer) # c if a =~ /left/ ... b =~ /right/ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#15454 +# source://prism//lib/prism/node.rb#15388 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#15456 + # source://prism//lib/prism/node.rb#15390 sig do params( source: Prism::Source, @@ -27702,36 +27733,36 @@ class Prism::RangeNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#15510 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15467 + # source://prism//lib/prism/node.rb#15400 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#15472 + # source://prism//lib/prism/node.rb#15405 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#15485 + # source://prism//lib/prism/node.rb#15418 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#15477 + # source://prism//lib/prism/node.rb#15410 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#15490 + # source://prism//lib/prism/node.rb#15423 sig do params( flags: Integer, @@ -27746,13 +27777,13 @@ class Prism::RangeNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15472 + # source://prism//lib/prism/node.rb#15405 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#15498 + # source://prism//lib/prism/node.rb#15431 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -27760,7 +27791,7 @@ class Prism::RangeNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15533 + # source://prism//lib/prism/node.rb#15466 sig { returns(T::Boolean) } def exclude_end?; end @@ -27769,7 +27800,7 @@ class Prism::RangeNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#15543 + # source://prism//lib/prism/node.rb#15476 sig { override.returns(String) } def inspect; end @@ -27781,19 +27812,19 @@ class Prism::RangeNode < ::Prism::Node # hello...goodbye # ^^^^^ # - # source://prism//lib/prism/node.rb#15513 + # source://prism//lib/prism/node.rb#15446 sig { returns(T.nilable(Prism::Node)) } def left; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#15538 + # source://prism//lib/prism/node.rb#15471 sig { returns(String) } def operator; end # The location of the `..` or `...` operator. # - # source://prism//lib/prism/node.rb#15526 + # source://prism//lib/prism/node.rb#15459 sig { returns(Prism::Location) } def operator_loc; end @@ -27806,7 +27837,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#15523 + # source://prism//lib/prism/node.rb#15456 sig { returns(T.nilable(Prism::Node)) } def right; end @@ -27825,7 +27856,7 @@ class Prism::RangeNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15561 + # source://prism//lib/prism/node.rb#15494 sig { override.returns(Symbol) } def type; end @@ -27833,7 +27864,7 @@ class Prism::RangeNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#15503 + # source://prism//lib/prism/node.rb#15436 sig { returns(Integer) } def flags; end @@ -27845,7 +27876,7 @@ class Prism::RangeNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15571 + # source://prism//lib/prism/node.rb#15504 def type; end end end @@ -27855,80 +27886,143 @@ end # 1.0r # ^^^^ # -# source://prism//lib/prism/node.rb#15590 +# source://prism//lib/prism/node.rb#15523 class Prism::RationalNode < ::Prism::Node - # def initialize: (Prism::node numeric, Location location) -> void + # def initialize: (Integer flags, Integer numerator, Integer denominator, Location location) -> void # # @return [RationalNode] a new instance of RationalNode # - # 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 + # source://prism//lib/prism/node.rb#15525 + sig do + params( + source: Prism::Source, + flags: Integer, + numerator: Integer, + denominator: Integer, + location: Prism::Location + ).void + end + def initialize(source, flags, numerator, denominator, 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 + # source://prism//lib/prism/node.rb#15635 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15600 + # source://prism//lib/prism/node.rb#15534 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end + # def binary?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#15581 + sig { returns(T::Boolean) } + def binary?; end + # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15605 + # source://prism//lib/prism/node.rb#15539 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#15615 + # source://prism//lib/prism/node.rb#15549 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#15610 + # source://prism//lib/prism/node.rb#15544 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end - # def copy: (?numeric: Prism::node, ?location: Location) -> RationalNode + # def copy: (?flags: Integer, ?numerator: Integer, ?denominator: Integer, ?location: Location) -> RationalNode # - # 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 + # source://prism//lib/prism/node.rb#15554 + sig do + params( + flags: Integer, + numerator: Integer, + denominator: Integer, + location: Prism::Location + ).returns(Prism::RationalNode) + end + def copy(flags: T.unsafe(nil), numerator: T.unsafe(nil), denominator: T.unsafe(nil), location: T.unsafe(nil)); end + + # def decimal?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#15586 + sig { returns(T::Boolean) } + def decimal?; end # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15605 + # source://prism//lib/prism/node.rb#15539 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end - # def deconstruct_keys: (Array[Symbol] keys) -> { numeric: Prism::node, location: Location } + # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, numerator: Integer, denominator: Integer, location: Location } # - # source://prism//lib/prism/node.rb#15628 + # source://prism//lib/prism/node.rb#15562 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end + # The denominator of the rational number. + # + # 1.5r # denominator 2 + # + # source://prism//lib/prism/node.rb#15578 + sig { returns(Integer) } + def denominator; end + sig { override.returns(T::Array[Prism::Reflection::Field]) } def fields; end + # def hexadecimal?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#15596 + sig { returns(T::Boolean) } + def hexadecimal?; end + # def inspect -> String # - # source://prism//lib/prism/node.rb#15636 + # source://prism//lib/prism/node.rb#15601 sig { override.returns(String) } def inspect; end - # attr_reader numeric: Prism::node + # The numerator of the rational number. # - # source://prism//lib/prism/node.rb#15633 - sig { returns(Prism::Node) } + # 1.5r # numerator 3 + # + # source://prism//lib/prism/node.rb#15573 + sig { returns(Integer) } + def numerator; end + + # Returns the value of the node as an IntegerNode or a FloatNode. This + # method is deprecated in favor of #value or #numerator/#denominator. + # + # source://prism//lib/prism/node_ext.rb#114 def numeric; end + # def octal?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#15591 + sig { returns(T::Boolean) } + def octal?; 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 @@ -27944,16 +28038,24 @@ class Prism::RationalNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15654 + # source://prism//lib/prism/node.rb#15619 sig { override.returns(Symbol) } def type; end # Returns the value of the node as a Ruby Rational. # - # source://prism//lib/prism/node_ext.rb#105 + # source://prism//lib/prism/node_ext.rb#108 sig { returns(Rational) } def value; end + protected + + # protected attr_reader flags: Integer + # + # source://prism//lib/prism/node.rb#15567 + 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. @@ -27962,7 +28064,7 @@ class Prism::RationalNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15664 + # source://prism//lib/prism/node.rb#15629 def type; end end end @@ -27972,62 +28074,62 @@ end # redo # ^^^^ # -# source://prism//lib/prism/node.rb#15680 +# source://prism//lib/prism/node.rb#15647 class Prism::RedoNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [RedoNode] a new instance of RedoNode # - # source://prism//lib/prism/node.rb#15682 + # source://prism//lib/prism/node.rb#15649 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 + # source://prism//lib/prism/node.rb#15722 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15689 + # source://prism//lib/prism/node.rb#15655 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#15694 + # source://prism//lib/prism/node.rb#15660 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#15704 + # source://prism//lib/prism/node.rb#15670 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#15699 + # source://prism//lib/prism/node.rb#15665 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> RedoNode # - # source://prism//lib/prism/node.rb#15709 + # source://prism//lib/prism/node.rb#15675 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#15694 + # source://prism//lib/prism/node.rb#15660 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#15717 + # source://prism//lib/prism/node.rb#15683 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -28036,7 +28138,7 @@ class Prism::RedoNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#15722 + # source://prism//lib/prism/node.rb#15688 sig { override.returns(String) } def inspect; end @@ -28055,7 +28157,7 @@ class Prism::RedoNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15740 + # source://prism//lib/prism/node.rb#15706 sig { override.returns(Symbol) } def type; end @@ -28067,7 +28169,7 @@ class Prism::RedoNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15750 + # source://prism//lib/prism/node.rb#15716 def type; end end end @@ -28204,62 +28306,62 @@ class Prism::Reflection::StringField < ::Prism::Reflection::Field; end # Flags for regular expression and match last line nodes. # -# source://prism//lib/prism/node.rb#19289 +# source://prism//lib/prism/node.rb#19214 module Prism::RegularExpressionFlags; end # n - forces the ASCII-8BIT encoding # -# source://prism//lib/prism/node.rb#19306 +# source://prism//lib/prism/node.rb#19231 Prism::RegularExpressionFlags::ASCII_8BIT = T.let(T.unsafe(nil), Integer) # e - forces the EUC-JP encoding # -# source://prism//lib/prism/node.rb#19303 +# source://prism//lib/prism/node.rb#19228 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#19294 +# source://prism//lib/prism/node.rb#19219 Prism::RegularExpressionFlags::EXTENDED = T.let(T.unsafe(nil), Integer) # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#19318 +# source://prism//lib/prism/node.rb#19243 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#19321 +# source://prism//lib/prism/node.rb#19246 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#19315 +# source://prism//lib/prism/node.rb#19240 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#19291 +# source://prism//lib/prism/node.rb#19216 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#19297 +# source://prism//lib/prism/node.rb#19222 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#19300 +# source://prism//lib/prism/node.rb#19225 Prism::RegularExpressionFlags::ONCE = T.let(T.unsafe(nil), Integer) # u - forces the UTF-8 encoding # -# source://prism//lib/prism/node.rb#19312 +# source://prism//lib/prism/node.rb#19237 Prism::RegularExpressionFlags::UTF_8 = T.let(T.unsafe(nil), Integer) # s - forces the Windows-31J encoding # -# source://prism//lib/prism/node.rb#19309 +# source://prism//lib/prism/node.rb#19234 Prism::RegularExpressionFlags::WINDOWS_31J = T.let(T.unsafe(nil), Integer) # Represents a regular expression literal with no interpolation. @@ -28267,7 +28369,7 @@ Prism::RegularExpressionFlags::WINDOWS_31J = T.let(T.unsafe(nil), Integer) # /foo/i # ^^^^^^ # -# source://prism//lib/prism/node.rb#15765 +# source://prism//lib/prism/node.rb#15731 class Prism::RegularExpressionNode < ::Prism::Node include ::Prism::RegularExpressionOptions @@ -28275,7 +28377,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [RegularExpressionNode] a new instance of RegularExpressionNode # - # source://prism//lib/prism/node.rb#15767 + # source://prism//lib/prism/node.rb#15733 sig do params( source: Prism::Source, @@ -28292,12 +28394,12 @@ class Prism::RegularExpressionNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#15909 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15779 + # source://prism//lib/prism/node.rb#15744 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -28305,55 +28407,55 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15865 + # source://prism//lib/prism/node.rb#15830 sig { returns(T::Boolean) } def ascii_8bit?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15784 + # source://prism//lib/prism/node.rb#15749 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#15905 + # source://prism//lib/prism/node.rb#15870 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#15830 + # source://prism//lib/prism/node.rb#15795 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#15794 + # source://prism//lib/prism/node.rb#15759 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#15789 + # source://prism//lib/prism/node.rb#15754 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#15900 + # source://prism//lib/prism/node.rb#15865 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#15823 + # source://prism//lib/prism/node.rb#15788 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#15799 + # source://prism//lib/prism/node.rb#15764 sig do params( flags: Integer, @@ -28369,13 +28471,13 @@ class Prism::RegularExpressionNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15784 + # source://prism//lib/prism/node.rb#15749 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#15807 + # source://prism//lib/prism/node.rb#15772 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -28383,7 +28485,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15860 + # source://prism//lib/prism/node.rb#15825 sig { returns(T::Boolean) } def euc_jp?; end @@ -28391,7 +28493,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15845 + # source://prism//lib/prism/node.rb#15810 sig { returns(T::Boolean) } def extended?; end @@ -28402,7 +28504,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15885 + # source://prism//lib/prism/node.rb#15850 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -28410,7 +28512,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15890 + # source://prism//lib/prism/node.rb#15855 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -28418,7 +28520,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15880 + # source://prism//lib/prism/node.rb#15845 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -28426,13 +28528,13 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15840 + # source://prism//lib/prism/node.rb#15805 sig { returns(T::Boolean) } def ignore_case?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#15910 + # source://prism//lib/prism/node.rb#15875 sig { override.returns(String) } def inspect; end @@ -28440,7 +28542,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15850 + # source://prism//lib/prism/node.rb#15815 sig { returns(T::Boolean) } def multi_line?; end @@ -28448,19 +28550,19 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15855 + # source://prism//lib/prism/node.rb#15820 sig { returns(T::Boolean) } def once?; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#15895 + # source://prism//lib/prism/node.rb#15860 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#15816 + # source://prism//lib/prism/node.rb#15781 sig { returns(Prism::Location) } def opening_loc; end @@ -28482,13 +28584,13 @@ class Prism::RegularExpressionNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#15928 + # source://prism//lib/prism/node.rb#15893 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#15837 + # source://prism//lib/prism/node.rb#15802 sig { returns(String) } def unescaped; end @@ -28496,7 +28598,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15875 + # source://prism//lib/prism/node.rb#15840 sig { returns(T::Boolean) } def utf_8?; end @@ -28504,7 +28606,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#15870 + # source://prism//lib/prism/node.rb#15835 sig { returns(T::Boolean) } def windows_31j?; end @@ -28512,7 +28614,7 @@ class Prism::RegularExpressionNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#15812 + # source://prism//lib/prism/node.rb#15777 sig { returns(Integer) } def flags; end @@ -28524,17 +28626,17 @@ class Prism::RegularExpressionNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#15938 + # source://prism//lib/prism/node.rb#15903 def type; end end end -# source://prism//lib/prism/node_ext.rb#17 +# source://prism//lib/prism/node_ext.rb#20 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#20 + # source://prism//lib/prism/node_ext.rb#23 def options; end end @@ -28544,13 +28646,13 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#15959 +# source://prism//lib/prism/node.rb#15924 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#15961 + # source://prism//lib/prism/node.rb#15926 sig do params( source: Prism::Source, @@ -28565,36 +28667,36 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#16021 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#15971 + # source://prism//lib/prism/node.rb#15935 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#15976 + # source://prism//lib/prism/node.rb#15940 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#15986 + # source://prism//lib/prism/node.rb#15950 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#15981 + # source://prism//lib/prism/node.rb#15945 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#15991 + # source://prism//lib/prism/node.rb#15955 sig do params( flags: Integer, @@ -28608,13 +28710,13 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#15976 + # source://prism//lib/prism/node.rb#15940 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#15999 + # source://prism//lib/prism/node.rb#15963 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -28623,19 +28725,19 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16023 + # source://prism//lib/prism/node.rb#15987 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#16008 + # source://prism//lib/prism/node.rb#15972 sig { returns(Symbol) } def name; end # attr_reader name_loc: Location # - # source://prism//lib/prism/node.rb#16011 + # source://prism//lib/prism/node.rb#15975 sig { returns(Prism::Location) } def name_loc; end @@ -28643,7 +28745,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16018 + # source://prism//lib/prism/node.rb#15982 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -28662,7 +28764,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16041 + # source://prism//lib/prism/node.rb#16005 sig { override.returns(Symbol) } def type; end @@ -28670,7 +28772,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#16004 + # source://prism//lib/prism/node.rb#15968 sig { returns(Integer) } def flags; end @@ -28682,7 +28784,7 @@ class Prism::RequiredKeywordParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16051 + # source://prism//lib/prism/node.rb#16015 def type; end end end @@ -28693,62 +28795,62 @@ end # ^ # end # -# source://prism//lib/prism/node.rb#16070 +# source://prism//lib/prism/node.rb#16034 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#16072 + # source://prism//lib/prism/node.rb#16036 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 + # source://prism//lib/prism/node.rb#16123 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16081 + # source://prism//lib/prism/node.rb#16044 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#16086 + # source://prism//lib/prism/node.rb#16049 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#16096 + # source://prism//lib/prism/node.rb#16059 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#16091 + # source://prism//lib/prism/node.rb#16054 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#16101 + # source://prism//lib/prism/node.rb#16064 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#16086 + # source://prism//lib/prism/node.rb#16049 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#16109 + # source://prism//lib/prism/node.rb#16072 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -28757,13 +28859,13 @@ class Prism::RequiredParameterNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16126 + # source://prism//lib/prism/node.rb#16089 sig { override.returns(String) } def inspect; end # attr_reader name: Symbol # - # source://prism//lib/prism/node.rb#16118 + # source://prism//lib/prism/node.rb#16081 sig { returns(Symbol) } def name; end @@ -28771,7 +28873,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16121 + # source://prism//lib/prism/node.rb#16084 sig { returns(T::Boolean) } def repeated_parameter?; end @@ -28790,7 +28892,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16144 + # source://prism//lib/prism/node.rb#16107 sig { override.returns(Symbol) } def type; end @@ -28798,7 +28900,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#16114 + # source://prism//lib/prism/node.rb#16077 sig { returns(Integer) } def flags; end @@ -28810,7 +28912,7 @@ class Prism::RequiredParameterNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16154 + # source://prism//lib/prism/node.rb#16117 def type; end end end @@ -28820,13 +28922,13 @@ end # foo rescue nil # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16171 +# source://prism//lib/prism/node.rb#16134 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#16173 + # source://prism//lib/prism/node.rb#16136 sig do params( source: Prism::Source, @@ -28841,36 +28943,36 @@ class Prism::RescueModifierNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#16230 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16183 + # source://prism//lib/prism/node.rb#16145 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#16192 + # source://prism//lib/prism/node.rb#16150 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#16202 + # source://prism//lib/prism/node.rb#16160 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#16197 + # source://prism//lib/prism/node.rb#16155 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#16207 + # source://prism//lib/prism/node.rb#16165 sig do params( expression: Prism::Node, @@ -28884,19 +28986,19 @@ class Prism::RescueModifierNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16192 + # source://prism//lib/prism/node.rb#16150 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#16215 + # source://prism//lib/prism/node.rb#16173 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#16220 + # source://prism//lib/prism/node.rb#16178 sig { returns(Prism::Node) } def expression; end @@ -28905,31 +29007,31 @@ class Prism::RescueModifierNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16238 + # source://prism//lib/prism/node.rb#16196 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16233 + # source://prism//lib/prism/node.rb#16191 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16223 + # source://prism//lib/prism/node.rb#16181 sig { returns(Prism::Location) } def keyword_loc; end + # source://prism//lib/prism/parse_result/newlines.rb#115 + def newline!(lines); end + # attr_reader rescue_expression: Prism::node # - # source://prism//lib/prism/node.rb#16230 + # source://prism//lib/prism/node.rb#16188 sig { returns(Prism::Node) } def rescue_expression; end - # 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 # 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 @@ -28945,7 +29047,7 @@ class Prism::RescueModifierNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16256 + # source://prism//lib/prism/node.rb#16214 sig { override.returns(Symbol) } def type; end @@ -28957,7 +29059,7 @@ class Prism::RescueModifierNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16266 + # source://prism//lib/prism/node.rb#16224 def type; end end end @@ -28972,13 +29074,13 @@ end # # `Foo, *splat, Bar` are in the `exceptions` field. `ex` is in the `exception` field. # -# source://prism//lib/prism/node.rb#16289 +# source://prism//lib/prism/node.rb#16247 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#16291 + # source://prism//lib/prism/node.rb#16249 sig do params( source: Prism::Source, @@ -28996,42 +29098,42 @@ class Prism::RescueNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#16375 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16304 + # source://prism//lib/prism/node.rb#16261 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#16309 + # source://prism//lib/prism/node.rb#16266 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#16324 + # source://prism//lib/prism/node.rb#16281 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#16314 + # source://prism//lib/prism/node.rb#16271 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader consequent: RescueNode? # - # source://prism//lib/prism/node.rb#16371 + # source://prism//lib/prism/node.rb#16328 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#16329 + # source://prism//lib/prism/node.rb#16286 sig do params( keyword_loc: Prism::Location, @@ -29048,19 +29150,19 @@ class Prism::RescueNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16309 + # source://prism//lib/prism/node.rb#16266 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#16337 + # source://prism//lib/prism/node.rb#16294 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#16349 + # source://prism//lib/prism/node.rb#16306 sig { returns(T::Array[Prism::Node]) } def exceptions; end @@ -29069,43 +29171,43 @@ class Prism::RescueNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16384 + # source://prism//lib/prism/node.rb#16341 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16374 + # source://prism//lib/prism/node.rb#16331 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16342 + # source://prism//lib/prism/node.rb#16299 sig { returns(Prism::Location) } def keyword_loc; end # def operator: () -> String? # - # source://prism//lib/prism/node.rb#16379 + # source://prism//lib/prism/node.rb#16336 sig { returns(T.nilable(String)) } def operator; end # attr_reader operator_loc: Location? # - # source://prism//lib/prism/node.rb#16352 + # source://prism//lib/prism/node.rb#16309 sig { returns(T.nilable(Prism::Location)) } def operator_loc; end # attr_reader reference: Prism::node? # - # source://prism//lib/prism/node.rb#16365 + # source://prism//lib/prism/node.rb#16322 sig { returns(T.nilable(Prism::Node)) } def reference; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#16368 + # source://prism//lib/prism/node.rb#16325 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -29124,7 +29226,7 @@ class Prism::RescueNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16402 + # source://prism//lib/prism/node.rb#16359 sig { override.returns(Symbol) } def type; end @@ -29136,7 +29238,7 @@ class Prism::RescueNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16412 + # source://prism//lib/prism/node.rb#16369 def type; end end end @@ -29147,13 +29249,13 @@ end # ^^ # end # -# source://prism//lib/prism/node.rb#16435 +# source://prism//lib/prism/node.rb#16392 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#16437 + # source://prism//lib/prism/node.rb#16394 sig do params( source: Prism::Source, @@ -29169,294 +29271,294 @@ class Prism::RestParameterNode < ::Prism::Node # 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#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#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#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#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#16468 - sig do - params( - flags: Integer, - name: T.nilable(Symbol), - name_loc: T.nilable(Prism::Location), - operator_loc: Prism::Location, - location: Prism::Location - ).returns(Prism::RestParameterNode) - end - def copy(flags: T.unsafe(nil), name: T.unsafe(nil), name_loc: T.unsafe(nil), operator_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#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#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 -> String - # - # source://prism//lib/prism/node.rb#16518 - sig { override.returns(String) } - def inspect; end - - # attr_reader name: Symbol? - # - # 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#16488 - sig { returns(T.nilable(Prism::Location)) } - def name_loc; end - - # 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/parse_result.rb#558 - sig { returns(Encoding) } - def encoding; end - - # The list of errors that were generated during parsing. - # - # source://prism//lib/prism/parse_result.rb#534 - sig { returns(T::Array[Prism::ParseError]) } - 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#570 - sig { returns(T::Boolean) } - def failure?; end - - # The list of magic comments that were encountered during parsing. - # - # source://prism//lib/prism/parse_result.rb#526 - sig { returns(T::Array[Prism::MagicComment]) } - def magic_comments; end - - # 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 - - # Returns true if there were no errors during parsing and false if there - # were. - # - # @return [Boolean] - # - # source://prism//lib/prism/parse_result.rb#564 - sig { returns(T::Boolean) } - def success?; 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. -# -# retry -# ^^^^^ -# -# 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#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#16574 + # source://prism//lib/prism/node.rb#16404 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#16579 + # source://prism//lib/prism/node.rb#16409 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#16589 + # source://prism//lib/prism/node.rb#16419 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#16584 + # source://prism//lib/prism/node.rb#16414 + 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#16424 + sig do + params( + flags: Integer, + name: T.nilable(Symbol), + name_loc: T.nilable(Prism::Location), + operator_loc: Prism::Location, + location: Prism::Location + ).returns(Prism::RestParameterNode) + end + def copy(flags: T.unsafe(nil), name: T.unsafe(nil), name_loc: T.unsafe(nil), operator_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#16409 + 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#16432 + 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 -> String + # + # source://prism//lib/prism/node.rb#16474 + sig { override.returns(String) } + def inspect; end + + # attr_reader name: Symbol? + # + # source://prism//lib/prism/node.rb#16441 + sig { returns(T.nilable(Symbol)) } + def name; end + + # attr_reader name_loc: Location? + # + # source://prism//lib/prism/node.rb#16444 + sig { returns(T.nilable(Prism::Location)) } + def name_loc; end + + # def operator: () -> String + # + # source://prism//lib/prism/node.rb#16469 + sig { returns(String) } + def operator; end + + # attr_reader operator_loc: Location + # + # source://prism//lib/prism/node.rb#16457 + sig { returns(Prism::Location) } + def operator_loc; end + + # def repeated_parameter?: () -> bool + # + # @return [Boolean] + # + # source://prism//lib/prism/node.rb#16464 + 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#16492 + sig { override.returns(Symbol) } + def type; end + + protected + + # protected attr_reader flags: Integer + # + # source://prism//lib/prism/node.rb#16437 + 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#16502 + 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/parse_result.rb#558 + sig { returns(Encoding) } + def encoding; end + + # The list of errors that were generated during parsing. + # + # source://prism//lib/prism/parse_result.rb#534 + sig { returns(T::Array[Prism::ParseError]) } + 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#570 + sig { returns(T::Boolean) } + def failure?; end + + # The list of magic comments that were encountered during parsing. + # + # source://prism//lib/prism/parse_result.rb#526 + sig { returns(T::Array[Prism::MagicComment]) } + def magic_comments; end + + # 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 + + # Returns true if there were no errors during parsing and false if there + # were. + # + # @return [Boolean] + # + # source://prism//lib/prism/parse_result.rb#564 + sig { returns(T::Boolean) } + def success?; 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. +# +# retry +# ^^^^^ +# +# source://prism//lib/prism/node.rb#16521 +class Prism::RetryNode < ::Prism::Node + # def initialize: (Location location) -> void + # + # @return [RetryNode] a new instance of RetryNode + # + # source://prism//lib/prism/node.rb#16523 + 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#16596 + def ===(other); end + + # def accept: (Visitor visitor) -> void + # + # source://prism//lib/prism/node.rb#16529 + 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 + 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 + 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 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> RetryNode # - # source://prism//lib/prism/node.rb#16594 + # source://prism//lib/prism/node.rb#16549 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#16579 + # source://prism//lib/prism/node.rb#16534 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#16602 + # source://prism//lib/prism/node.rb#16557 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -29465,7 +29567,7 @@ class Prism::RetryNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16607 + # source://prism//lib/prism/node.rb#16562 sig { override.returns(String) } def inspect; end @@ -29484,7 +29586,7 @@ class Prism::RetryNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16625 + # source://prism//lib/prism/node.rb#16580 sig { override.returns(Symbol) } def type; end @@ -29496,7 +29598,7 @@ class Prism::RetryNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16635 + # source://prism//lib/prism/node.rb#16590 def type; end end end @@ -29506,13 +29608,13 @@ end # return 1 # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#16650 +# source://prism//lib/prism/node.rb#16605 class Prism::ReturnNode < ::Prism::Node # 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#16652 + # source://prism//lib/prism/node.rb#16607 sig do params( source: Prism::Source, @@ -29527,42 +29629,42 @@ class Prism::ReturnNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#16709 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16662 + # source://prism//lib/prism/node.rb#16616 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#16708 + # source://prism//lib/prism/node.rb#16662 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16667 + # source://prism//lib/prism/node.rb#16621 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#16679 + # source://prism//lib/prism/node.rb#16633 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#16672 + # source://prism//lib/prism/node.rb#16626 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?flags: Integer, ?keyword_loc: Location, ?arguments: ArgumentsNode?, ?location: Location) -> ReturnNode # - # source://prism//lib/prism/node.rb#16684 + # source://prism//lib/prism/node.rb#16638 sig do params( flags: Integer, @@ -29576,13 +29678,13 @@ class Prism::ReturnNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16667 + # source://prism//lib/prism/node.rb#16621 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def deconstruct; end # def deconstruct_keys: (Array[Symbol] keys) -> { flags: Integer, keyword_loc: Location, arguments: ArgumentsNode?, location: Location } # - # source://prism//lib/prism/node.rb#16692 + # source://prism//lib/prism/node.rb#16646 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -29591,19 +29693,19 @@ class Prism::ReturnNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16721 + # source://prism//lib/prism/node.rb#16675 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#16716 + # source://prism//lib/prism/node.rb#16670 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#16701 + # source://prism//lib/prism/node.rb#16655 sig { returns(Prism::Location) } def keyword_loc; end @@ -29611,7 +29713,7 @@ class Prism::ReturnNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16711 + # source://prism//lib/prism/node.rb#16665 sig { returns(T::Boolean) } def redundant?; end @@ -29630,7 +29732,7 @@ class Prism::ReturnNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16739 + # source://prism//lib/prism/node.rb#16693 sig { override.returns(Symbol) } def type; end @@ -29638,7 +29740,7 @@ class Prism::ReturnNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#16697 + # source://prism//lib/prism/node.rb#16651 sig { returns(Integer) } def flags; end @@ -29650,19 +29752,19 @@ class Prism::ReturnNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16749 + # source://prism//lib/prism/node.rb#16703 def type; end end end # Flags for return nodes. # -# source://prism//lib/prism/node.rb#19325 +# source://prism//lib/prism/node.rb#19250 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 +# source://prism//lib/prism/node.rb#19252 Prism::ReturnNodeFlags::REDUNDANT = T.let(T.unsafe(nil), Integer) # Represents the `self` keyword. @@ -29670,62 +29772,62 @@ Prism::ReturnNodeFlags::REDUNDANT = T.let(T.unsafe(nil), Integer) # self # ^^^^ # -# source://prism//lib/prism/node.rb#16767 +# source://prism//lib/prism/node.rb#16721 class Prism::SelfNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [SelfNode] a new instance of SelfNode # - # source://prism//lib/prism/node.rb#16769 + # source://prism//lib/prism/node.rb#16723 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 + # source://prism//lib/prism/node.rb#16796 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16776 + # source://prism//lib/prism/node.rb#16729 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#16781 + # source://prism//lib/prism/node.rb#16734 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#16791 + # source://prism//lib/prism/node.rb#16744 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#16786 + # source://prism//lib/prism/node.rb#16739 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> SelfNode # - # source://prism//lib/prism/node.rb#16796 + # source://prism//lib/prism/node.rb#16749 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#16781 + # source://prism//lib/prism/node.rb#16734 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#16804 + # source://prism//lib/prism/node.rb#16757 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -29734,7 +29836,7 @@ class Prism::SelfNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16809 + # source://prism//lib/prism/node.rb#16762 sig { override.returns(String) } def inspect; end @@ -29753,7 +29855,7 @@ class Prism::SelfNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16827 + # source://prism//lib/prism/node.rb#16780 sig { override.returns(Symbol) } def type; end @@ -29765,7 +29867,7 @@ class Prism::SelfNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16837 + # source://prism//lib/prism/node.rb#16790 def type; end end end @@ -29832,22 +29934,22 @@ class Prism::Serialize::Loader # source://prism//lib/prism/serialize.rb#114 def load_line_offsets; end - # source://prism//lib/prism/serialize.rb#433 + # source://prism//lib/prism/serialize.rb#438 def load_metadata; end - # source://prism//lib/prism/serialize.rb#467 + # source://prism//lib/prism/serialize.rb#472 def load_nodes; end - # source://prism//lib/prism/serialize.rb#481 + # source://prism//lib/prism/serialize.rb#486 def load_result; end # source://prism//lib/prism/serialize.rb#110 def load_start_line; end - # source://prism//lib/prism/serialize.rb#442 + # source://prism//lib/prism/serialize.rb#447 def load_tokens; end - # source://prism//lib/prism/serialize.rb#455 + # source://prism//lib/prism/serialize.rb#460 def load_tokens_result; end # Returns the value of attribute serialized. @@ -29867,61 +29969,61 @@ class Prism::Serialize::Loader private - # source://prism//lib/prism/serialize.rb#567 + # source://prism//lib/prism/serialize.rb#572 def load_constant(index); end - # source://prism//lib/prism/serialize.rb#520 + # source://prism//lib/prism/serialize.rb#525 def load_double; end - # source://prism//lib/prism/serialize.rb#535 + # source://prism//lib/prism/serialize.rb#540 def load_embedded_string; end - # source://prism//lib/prism/serialize.rb#597 + # source://prism//lib/prism/serialize.rb#602 def load_error_level; end - # source://prism//lib/prism/serialize.rb#509 + # source://prism//lib/prism/serialize.rb#514 def load_integer; end - # source://prism//lib/prism/serialize.rb#551 + # source://prism//lib/prism/serialize.rb#556 def load_location; end - # source://prism//lib/prism/serialize.rb#555 + # source://prism//lib/prism/serialize.rb#560 def load_location_object; end - # source://prism//lib/prism/serialize.rb#626 + # source://prism//lib/prism/serialize.rb#631 def load_node; end - # source://prism//lib/prism/serialize.rb#592 + # source://prism//lib/prism/serialize.rb#597 def load_optional_constant; end - # source://prism//lib/prism/serialize.rb#559 + # source://prism//lib/prism/serialize.rb#564 def load_optional_location; end - # source://prism//lib/prism/serialize.rb#563 + # source://prism//lib/prism/serialize.rb#568 def load_optional_location_object; end - # source://prism//lib/prism/serialize.rb#528 + # source://prism//lib/prism/serialize.rb#533 def load_optional_node; end - # source://prism//lib/prism/serialize.rb#588 + # source://prism//lib/prism/serialize.rb#593 def load_required_constant; end - # source://prism//lib/prism/serialize.rb#539 + # source://prism//lib/prism/serialize.rb#544 def load_string; end - # source://prism//lib/prism/serialize.rb#524 + # source://prism//lib/prism/serialize.rb#529 def load_uint32; end - # source://prism//lib/prism/serialize.rb#504 + # source://prism//lib/prism/serialize.rb#509 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#490 + # source://prism//lib/prism/serialize.rb#495 def load_varuint; end - # source://prism//lib/prism/serialize.rb#612 + # source://prism//lib/prism/serialize.rb#617 def load_warning_level; end end @@ -29953,7 +30055,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#1850 +# source://prism//lib/prism/serialize.rb#1863 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. @@ -29961,13 +30063,13 @@ Prism::Serialize::TOKEN_TYPES = T.let(T.unsafe(nil), Array) # C = { a: 1 } # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16853 +# source://prism//lib/prism/node.rb#16806 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#16855 + # source://prism//lib/prism/node.rb#16808 sig do params( source: Prism::Source, @@ -29981,36 +30083,36 @@ class Prism::ShareableConstantNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#16905 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16864 + # source://prism//lib/prism/node.rb#16816 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#16869 + # source://prism//lib/prism/node.rb#16821 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#16879 + # source://prism//lib/prism/node.rb#16831 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#16874 + # source://prism//lib/prism/node.rb#16826 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#16884 + # source://prism//lib/prism/node.rb#16836 sig do params( flags: Integer, @@ -30023,13 +30125,13 @@ class Prism::ShareableConstantNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16869 + # source://prism//lib/prism/node.rb#16821 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#16892 + # source://prism//lib/prism/node.rb#16844 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -30037,7 +30139,7 @@ class Prism::ShareableConstantNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16914 + # source://prism//lib/prism/node.rb#16866 sig { returns(T::Boolean) } def experimental_copy?; end @@ -30045,7 +30147,7 @@ class Prism::ShareableConstantNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16909 + # source://prism//lib/prism/node.rb#16861 sig { returns(T::Boolean) } def experimental_everything?; end @@ -30054,7 +30156,7 @@ class Prism::ShareableConstantNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#16919 + # source://prism//lib/prism/node.rb#16871 sig { override.returns(String) } def inspect; end @@ -30062,7 +30164,7 @@ class Prism::ShareableConstantNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#16904 + # source://prism//lib/prism/node.rb#16856 sig { returns(T::Boolean) } def literal?; end @@ -30081,13 +30183,13 @@ class Prism::ShareableConstantNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#16937 + # source://prism//lib/prism/node.rb#16889 sig { override.returns(Symbol) } def type; end # The constant write that should be modified with the shareability state. # - # source://prism//lib/prism/node.rb#16901 + # source://prism//lib/prism/node.rb#16853 sig do returns(T.any(Prism::ConstantWriteNode, Prism::ConstantAndWriteNode, Prism::ConstantOrWriteNode, Prism::ConstantOperatorWriteNode, Prism::ConstantPathWriteNode, Prism::ConstantPathAndWriteNode, Prism::ConstantPathOrWriteNode, Prism::ConstantPathOperatorWriteNode)) end @@ -30097,7 +30199,7 @@ class Prism::ShareableConstantNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#16897 + # source://prism//lib/prism/node.rb#16849 sig { returns(Integer) } def flags; end @@ -30109,29 +30211,29 @@ class Prism::ShareableConstantNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#16947 + # source://prism//lib/prism/node.rb#16899 def type; end end end # Flags for shareable constant nodes. # -# source://prism//lib/prism/node.rb#19331 +# source://prism//lib/prism/node.rb#19256 module Prism::ShareableConstantNodeFlags; end # constant writes that should be modified with shareable constant value experimental copy # -# source://prism//lib/prism/node.rb#19339 +# source://prism//lib/prism/node.rb#19264 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#19336 +# source://prism//lib/prism/node.rb#19261 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#19333 +# source://prism//lib/prism/node.rb#19258 Prism::ShareableConstantNodeFlags::LITERAL = T.let(T.unsafe(nil), Integer) # Represents a singleton class declaration involving the `class` keyword. @@ -30139,13 +30241,13 @@ Prism::ShareableConstantNodeFlags::LITERAL = T.let(T.unsafe(nil), Integer) # class << self end # ^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#16964 +# source://prism//lib/prism/node.rb#16916 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#16966 + # source://prism//lib/prism/node.rb#16918 sig do params( source: Prism::Source, @@ -30163,54 +30265,54 @@ class Prism::SingletonClassNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#17045 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#16979 + # source://prism//lib/prism/node.rb#16930 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader body: Prism::node? # - # source://prism//lib/prism/node.rb#17035 + # source://prism//lib/prism/node.rb#16986 sig { returns(T.nilable(Prism::Node)) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16984 + # source://prism//lib/prism/node.rb#16935 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def class_keyword: () -> String # - # source://prism//lib/prism/node.rb#17045 + # source://prism//lib/prism/node.rb#16996 sig { returns(String) } def class_keyword; end # attr_reader class_keyword_loc: Location # - # source://prism//lib/prism/node.rb#17018 + # source://prism//lib/prism/node.rb#16969 sig { returns(Prism::Location) } def class_keyword_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#16997 + # source://prism//lib/prism/node.rb#16948 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#16989 + # source://prism//lib/prism/node.rb#16940 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#17002 + # source://prism//lib/prism/node.rb#16953 sig do params( locals: T::Array[Symbol], @@ -30227,31 +30329,31 @@ class Prism::SingletonClassNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#16984 + # source://prism//lib/prism/node.rb#16935 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#17010 + # source://prism//lib/prism/node.rb#16961 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#17055 + # source://prism//lib/prism/node.rb#17006 sig { returns(String) } def end_keyword; end # attr_reader end_keyword_loc: Location # - # source://prism//lib/prism/node.rb#17038 + # source://prism//lib/prism/node.rb#16989 sig { returns(Prism::Location) } def end_keyword_loc; end # attr_reader expression: Prism::node # - # source://prism//lib/prism/node.rb#17032 + # source://prism//lib/prism/node.rb#16983 sig { returns(Prism::Node) } def expression; end @@ -30260,25 +30362,25 @@ class Prism::SingletonClassNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#17060 + # source://prism//lib/prism/node.rb#17011 sig { override.returns(String) } def inspect; end # attr_reader locals: Array[Symbol] # - # source://prism//lib/prism/node.rb#17015 + # source://prism//lib/prism/node.rb#16966 sig { returns(T::Array[Symbol]) } def locals; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#17050 + # source://prism//lib/prism/node.rb#17001 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#17025 + # source://prism//lib/prism/node.rb#16976 sig { returns(Prism::Location) } def operator_loc; end @@ -30297,7 +30399,7 @@ class Prism::SingletonClassNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17078 + # source://prism//lib/prism/node.rb#17029 sig { override.returns(Symbol) } def type; end @@ -30309,7 +30411,7 @@ class Prism::SingletonClassNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17088 + # source://prism//lib/prism/node.rb#17039 def type; end end end @@ -30446,62 +30548,62 @@ end # __ENCODING__ # ^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#17110 +# source://prism//lib/prism/node.rb#17061 class Prism::SourceEncodingNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [SourceEncodingNode] a new instance of SourceEncodingNode # - # source://prism//lib/prism/node.rb#17112 + # source://prism//lib/prism/node.rb#17063 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 + # source://prism//lib/prism/node.rb#17136 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17119 + # source://prism//lib/prism/node.rb#17069 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#17124 + # source://prism//lib/prism/node.rb#17074 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#17134 + # source://prism//lib/prism/node.rb#17084 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#17129 + # source://prism//lib/prism/node.rb#17079 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> SourceEncodingNode # - # source://prism//lib/prism/node.rb#17139 + # source://prism//lib/prism/node.rb#17089 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#17124 + # source://prism//lib/prism/node.rb#17074 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#17147 + # source://prism//lib/prism/node.rb#17097 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -30510,7 +30612,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#17152 + # source://prism//lib/prism/node.rb#17102 sig { override.returns(String) } def inspect; end @@ -30529,7 +30631,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17170 + # source://prism//lib/prism/node.rb#17120 sig { override.returns(Symbol) } def type; end @@ -30541,7 +30643,7 @@ class Prism::SourceEncodingNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17180 + # source://prism//lib/prism/node.rb#17130 def type; end end end @@ -30551,62 +30653,62 @@ end # __FILE__ # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#17195 +# source://prism//lib/prism/node.rb#17145 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#17197 + # source://prism//lib/prism/node.rb#17147 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 + # source://prism//lib/prism/node.rb#17249 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17206 + # source://prism//lib/prism/node.rb#17155 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#17211 + # source://prism//lib/prism/node.rb#17160 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#17221 + # source://prism//lib/prism/node.rb#17170 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#17216 + # source://prism//lib/prism/node.rb#17165 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#17226 + # source://prism//lib/prism/node.rb#17175 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#17211 + # source://prism//lib/prism/node.rb#17160 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#17234 + # source://prism//lib/prism/node.rb#17183 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -30615,7 +30717,7 @@ class Prism::SourceFileNode < ::Prism::Node # 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#17243 + # source://prism//lib/prism/node.rb#17192 sig { returns(String) } def filepath; end @@ -30623,7 +30725,7 @@ class Prism::SourceFileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17251 + # source://prism//lib/prism/node.rb#17200 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -30631,7 +30733,7 @@ class Prism::SourceFileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17246 + # source://prism//lib/prism/node.rb#17195 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -30639,13 +30741,13 @@ class Prism::SourceFileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17256 + # source://prism//lib/prism/node.rb#17205 sig { returns(T::Boolean) } def frozen?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#17266 + # source://prism//lib/prism/node.rb#17215 sig { override.returns(String) } def inspect; end @@ -30653,7 +30755,7 @@ class Prism::SourceFileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17261 + # source://prism//lib/prism/node.rb#17210 sig { returns(T::Boolean) } def mutable?; end @@ -30672,7 +30774,7 @@ class Prism::SourceFileNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17284 + # source://prism//lib/prism/node.rb#17233 sig { override.returns(Symbol) } def type; end @@ -30680,7 +30782,7 @@ class Prism::SourceFileNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#17239 + # source://prism//lib/prism/node.rb#17188 sig { returns(Integer) } def flags; end @@ -30692,7 +30794,7 @@ class Prism::SourceFileNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17294 + # source://prism//lib/prism/node.rb#17243 def type; end end end @@ -30702,62 +30804,62 @@ end # __LINE__ # ^^^^^^^^ # -# source://prism//lib/prism/node.rb#17311 +# source://prism//lib/prism/node.rb#17260 class Prism::SourceLineNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [SourceLineNode] a new instance of SourceLineNode # - # source://prism//lib/prism/node.rb#17313 + # source://prism//lib/prism/node.rb#17262 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 + # source://prism//lib/prism/node.rb#17335 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17320 + # source://prism//lib/prism/node.rb#17268 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#17325 + # source://prism//lib/prism/node.rb#17273 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#17335 + # source://prism//lib/prism/node.rb#17283 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#17330 + # source://prism//lib/prism/node.rb#17278 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> SourceLineNode # - # source://prism//lib/prism/node.rb#17340 + # source://prism//lib/prism/node.rb#17288 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#17325 + # source://prism//lib/prism/node.rb#17273 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#17348 + # source://prism//lib/prism/node.rb#17296 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -30766,7 +30868,7 @@ class Prism::SourceLineNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#17353 + # source://prism//lib/prism/node.rb#17301 sig { override.returns(String) } def inspect; end @@ -30785,7 +30887,7 @@ class Prism::SourceLineNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17371 + # source://prism//lib/prism/node.rb#17319 sig { override.returns(Symbol) } def type; end @@ -30797,7 +30899,7 @@ class Prism::SourceLineNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17381 + # source://prism//lib/prism/node.rb#17329 def type; end end end @@ -30807,13 +30909,13 @@ end # [*a] # ^^ # -# source://prism//lib/prism/node.rb#17396 +# source://prism//lib/prism/node.rb#17344 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#17398 + # source://prism//lib/prism/node.rb#17346 sig do params( source: Prism::Source, @@ -30827,36 +30929,36 @@ class Prism::SplatNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#17438 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17407 + # source://prism//lib/prism/node.rb#17354 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#17412 + # source://prism//lib/prism/node.rb#17359 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#17424 + # source://prism//lib/prism/node.rb#17371 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#17417 + # source://prism//lib/prism/node.rb#17364 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#17429 + # source://prism//lib/prism/node.rb#17376 sig do params( operator_loc: Prism::Location, @@ -30869,19 +30971,19 @@ class Prism::SplatNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17412 + # source://prism//lib/prism/node.rb#17359 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#17437 + # source://prism//lib/prism/node.rb#17384 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#17449 + # source://prism//lib/prism/node.rb#17396 sig { returns(T.nilable(Prism::Node)) } def expression; end @@ -30890,19 +30992,19 @@ class Prism::SplatNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#17457 + # source://prism//lib/prism/node.rb#17404 sig { override.returns(String) } def inspect; end # def operator: () -> String # - # source://prism//lib/prism/node.rb#17452 + # source://prism//lib/prism/node.rb#17399 sig { returns(String) } def operator; end # attr_reader operator_loc: Location # - # source://prism//lib/prism/node.rb#17442 + # source://prism//lib/prism/node.rb#17389 sig { returns(Prism::Location) } def operator_loc; end @@ -30921,7 +31023,7 @@ class Prism::SplatNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17475 + # source://prism//lib/prism/node.rb#17422 sig { override.returns(Symbol) } def type; end @@ -30933,7 +31035,7 @@ class Prism::SplatNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17485 + # source://prism//lib/prism/node.rb#17432 def type; end end end @@ -30943,68 +31045,68 @@ end # foo; bar; baz # ^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#17502 +# source://prism//lib/prism/node.rb#17449 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#17504 + # source://prism//lib/prism/node.rb#17451 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 + # source://prism//lib/prism/node.rb#17528 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17512 + # source://prism//lib/prism/node.rb#17458 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#17545 + # source://prism//lib/prism/node.rb#17491 sig { returns(T::Array[Prism::Node]) } def body; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17517 + # source://prism//lib/prism/node.rb#17463 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#17527 + # source://prism//lib/prism/node.rb#17473 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#17522 + # source://prism//lib/prism/node.rb#17468 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#17532 + # source://prism//lib/prism/node.rb#17478 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#17517 + # source://prism//lib/prism/node.rb#17463 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#17540 + # source://prism//lib/prism/node.rb#17486 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -31013,7 +31115,7 @@ class Prism::StatementsNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#17548 + # source://prism//lib/prism/node.rb#17494 sig { override.returns(String) } def inspect; end @@ -31032,7 +31134,7 @@ class Prism::StatementsNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17566 + # source://prism//lib/prism/node.rb#17512 sig { override.returns(Symbol) } def type; end @@ -31044,30 +31146,30 @@ class Prism::StatementsNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17576 + # source://prism//lib/prism/node.rb#17522 def type; end end end # Flags for string nodes. # -# source://prism//lib/prism/node.rb#19343 +# source://prism//lib/prism/node.rb#19268 module Prism::StringFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#19348 +# source://prism//lib/prism/node.rb#19273 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#19345 +# source://prism//lib/prism/node.rb#19270 Prism::StringFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) -# source://prism//lib/prism/node.rb#19351 +# source://prism//lib/prism/node.rb#19276 Prism::StringFlags::FROZEN = T.let(T.unsafe(nil), Integer) -# source://prism//lib/prism/node.rb#19354 +# source://prism//lib/prism/node.rb#19279 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. @@ -31081,7 +31183,7 @@ Prism::StringFlags::MUTABLE = T.let(T.unsafe(nil), Integer) # "foo #{bar} baz" # ^^^^ ^^^^ # -# source://prism//lib/prism/node.rb#17599 +# source://prism//lib/prism/node.rb#17545 class Prism::StringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -31089,7 +31191,7 @@ class Prism::StringNode < ::Prism::Node # # @return [StringNode] a new instance of StringNode # - # source://prism//lib/prism/node.rb#17601 + # source://prism//lib/prism/node.rb#17547 sig do params( source: Prism::Source, @@ -31106,60 +31208,60 @@ class Prism::StringNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#17700 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17613 + # source://prism//lib/prism/node.rb#17558 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#17618 + # source://prism//lib/prism/node.rb#17563 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#17716 + # source://prism//lib/prism/node.rb#17661 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#17670 + # source://prism//lib/prism/node.rb#17615 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17628 + # source://prism//lib/prism/node.rb#17573 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#17623 + # source://prism//lib/prism/node.rb#17568 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#17711 + # source://prism//lib/prism/node.rb#17656 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#17663 + # source://prism//lib/prism/node.rb#17608 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#17633 + # source://prism//lib/prism/node.rb#17578 sig do params( flags: Integer, @@ -31175,13 +31277,13 @@ class Prism::StringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17618 + # source://prism//lib/prism/node.rb#17563 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#17641 + # source://prism//lib/prism/node.rb#17586 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -31192,7 +31294,7 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17691 + # source://prism//lib/prism/node.rb#17636 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -31200,7 +31302,7 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17686 + # source://prism//lib/prism/node.rb#17631 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -31208,7 +31310,7 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17696 + # source://prism//lib/prism/node.rb#17641 sig { returns(T::Boolean) } def frozen?; end @@ -31217,7 +31319,7 @@ class Prism::StringNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#17721 + # source://prism//lib/prism/node.rb#17666 sig { override.returns(String) } def inspect; end @@ -31225,26 +31327,26 @@ class Prism::StringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#17701 + # source://prism//lib/prism/node.rb#17646 sig { returns(T::Boolean) } def mutable?; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#17706 + # source://prism//lib/prism/node.rb#17651 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#17650 + # source://prism//lib/prism/node.rb#17595 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#66 + # source://prism//lib/prism/node_ext.rb#69 sig { returns(Prism::InterpolatedStringNode) } def to_interpolated; end @@ -31263,13 +31365,13 @@ class Prism::StringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17739 + # source://prism//lib/prism/node.rb#17684 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#17683 + # source://prism//lib/prism/node.rb#17628 sig { returns(String) } def unescaped; end @@ -31277,7 +31379,7 @@ class Prism::StringNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#17646 + # source://prism//lib/prism/node.rb#17591 sig { returns(Integer) } def flags; end @@ -31289,7 +31391,7 @@ class Prism::StringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17749 + # source://prism//lib/prism/node.rb#17694 def type; end end end @@ -31302,13 +31404,13 @@ end # super foo, bar # ^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#17772 +# source://prism//lib/prism/node.rb#17717 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#17774 + # source://prism//lib/prism/node.rb#17719 sig do params( source: Prism::Source, @@ -31325,48 +31427,48 @@ class Prism::SuperNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#17854 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17786 + # source://prism//lib/prism/node.rb#17730 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#17842 + # source://prism//lib/prism/node.rb#17786 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # attr_reader block: Prism::node? # - # source://prism//lib/prism/node.rb#17858 + # source://prism//lib/prism/node.rb#17802 sig { returns(T.nilable(Prism::Node)) } def block; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17791 + # source://prism//lib/prism/node.rb#17735 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#17804 + # source://prism//lib/prism/node.rb#17748 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#17796 + # source://prism//lib/prism/node.rb#17740 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#17809 + # source://prism//lib/prism/node.rb#17753 sig do params( keyword_loc: Prism::Location, @@ -31382,13 +31484,13 @@ class Prism::SuperNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17791 + # source://prism//lib/prism/node.rb#17735 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#17817 + # source://prism//lib/prism/node.rb#17761 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -31397,43 +31499,43 @@ class Prism::SuperNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#17876 + # source://prism//lib/prism/node.rb#17820 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#17861 + # source://prism//lib/prism/node.rb#17805 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#17822 + # source://prism//lib/prism/node.rb#17766 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#17866 + # source://prism//lib/prism/node.rb#17810 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#17829 + # source://prism//lib/prism/node.rb#17773 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#17871 + # source://prism//lib/prism/node.rb#17815 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#17845 + # source://prism//lib/prism/node.rb#17789 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -31452,7 +31554,7 @@ class Prism::SuperNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#17894 + # source://prism//lib/prism/node.rb#17838 sig { override.returns(Symbol) } def type; end @@ -31464,29 +31566,29 @@ class Prism::SuperNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#17904 + # source://prism//lib/prism/node.rb#17848 def type; end end end # Flags for symbol nodes. # -# source://prism//lib/prism/node.rb#19358 +# source://prism//lib/prism/node.rb#19283 module Prism::SymbolFlags; end # internal bytes forced the encoding to binary # -# source://prism//lib/prism/node.rb#19363 +# source://prism//lib/prism/node.rb#19288 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#19366 +# source://prism//lib/prism/node.rb#19291 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#19360 +# source://prism//lib/prism/node.rb#19285 Prism::SymbolFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # Represents a symbol literal or a symbol contained within a `%i` list. @@ -31497,13 +31599,13 @@ Prism::SymbolFlags::FORCED_UTF8_ENCODING = T.let(T.unsafe(nil), Integer) # %i[foo] # ^^^ # -# source://prism//lib/prism/node.rb#17927 +# source://prism//lib/prism/node.rb#17871 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#17929 + # source://prism//lib/prism/node.rb#17873 sig do params( source: Prism::Source, @@ -31520,48 +31622,48 @@ class Prism::SymbolNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#18027 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#17941 + # source://prism//lib/prism/node.rb#17884 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#17946 + # source://prism//lib/prism/node.rb#17889 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#18045 + # source://prism//lib/prism/node.rb#17988 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#18004 + # source://prism//lib/prism/node.rb#17947 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#17956 + # source://prism//lib/prism/node.rb#17899 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#17951 + # source://prism//lib/prism/node.rb#17894 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#17961 + # source://prism//lib/prism/node.rb#17904 sig do params( flags: Integer, @@ -31577,13 +31679,13 @@ class Prism::SymbolNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#17946 + # source://prism//lib/prism/node.rb#17889 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#17969 + # source://prism//lib/prism/node.rb#17912 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -31594,7 +31696,7 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18025 + # source://prism//lib/prism/node.rb#17968 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -31602,7 +31704,7 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18030 + # source://prism//lib/prism/node.rb#17973 sig { returns(T::Boolean) } def forced_us_ascii_encoding?; end @@ -31610,25 +31712,25 @@ class Prism::SymbolNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18020 + # source://prism//lib/prism/node.rb#17963 sig { returns(T::Boolean) } def forced_utf8_encoding?; end # def inspect -> String # - # source://prism//lib/prism/node.rb#18050 + # source://prism//lib/prism/node.rb#17993 sig { override.returns(String) } def inspect; end # def opening: () -> String? # - # source://prism//lib/prism/node.rb#18035 + # source://prism//lib/prism/node.rb#17978 sig { returns(T.nilable(String)) } def opening; end # attr_reader opening_loc: Location? # - # source://prism//lib/prism/node.rb#17978 + # source://prism//lib/prism/node.rb#17921 sig { returns(T.nilable(Prism::Location)) } def opening_loc; end @@ -31647,25 +31749,25 @@ class Prism::SymbolNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18068 + # source://prism//lib/prism/node.rb#18011 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#18017 + # source://prism//lib/prism/node.rb#17960 sig { returns(String) } def unescaped; end # def value: () -> String? # - # source://prism//lib/prism/node.rb#18040 + # source://prism//lib/prism/node.rb#17983 sig { returns(T.nilable(String)) } def value; end # attr_reader value_loc: Location? # - # source://prism//lib/prism/node.rb#17991 + # source://prism//lib/prism/node.rb#17934 sig { returns(T.nilable(Prism::Location)) } def value_loc; end @@ -31673,7 +31775,7 @@ class Prism::SymbolNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#17974 + # source://prism//lib/prism/node.rb#17917 sig { returns(Integer) } def flags; end @@ -31685,56 +31787,56 @@ class Prism::SymbolNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18078 + # source://prism//lib/prism/node.rb#18021 def type; end end end # This represents a token from the Ruby source. # -# source://prism//lib/prism/parse_result.rb#628 +# source://prism//lib/prism/parse_result.rb#645 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#640 + # source://prism//lib/prism/parse_result.rb#657 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#675 + # source://prism//lib/prism/parse_result.rb#692 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#648 + # source://prism//lib/prism/parse_result.rb#665 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#653 + # source://prism//lib/prism/parse_result.rb#670 sig { returns(Prism::Location) } def location; end # Implement the pretty print interface for Token. # - # source://prism//lib/prism/parse_result.rb#660 + # source://prism//lib/prism/parse_result.rb#677 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#634 + # source://prism//lib/prism/parse_result.rb#651 sig { returns(Symbol) } def type; end # A byteslice of the source that this token represents. # - # source://prism//lib/prism/parse_result.rb#637 + # source://prism//lib/prism/parse_result.rb#654 sig { returns(String) } def value; end @@ -31742,7 +31844,7 @@ class Prism::Token # The Source object that represents the source this token came from. # - # source://prism//lib/prism/parse_result.rb#630 + # source://prism//lib/prism/parse_result.rb#647 sig { returns(Prism::Source) } def source; end end @@ -31758,52 +31860,52 @@ module Prism::Translation; end # the parser gem, and overrides the parse* methods to parse with prism and # then translate. # -# source://prism//lib/prism/translation/parser.rb#11 +# source://prism//lib/prism/translation/parser.rb#16 class Prism::Translation::Parser < ::Parser::Base # The default encoding for Ruby files is UTF-8. # - # source://prism//lib/prism/translation/parser.rb#36 + # source://prism//lib/prism/translation/parser.rb#41 def default_encoding; end # Parses a source buffer and returns the AST. # - # source://prism//lib/prism/translation/parser.rb#44 + # source://prism//lib/prism/translation/parser.rb#49 def parse(source_buffer); end # Parses a source buffer and returns the AST and the source code comments. # - # source://prism//lib/prism/translation/parser.rb#57 + # source://prism//lib/prism/translation/parser.rb#62 def parse_with_comments(source_buffer); end # Parses a source buffer and returns the AST, the source code comments, # and the tokens emitted by the lexer. # - # source://prism//lib/prism/translation/parser.rb#74 + # source://prism//lib/prism/translation/parser.rb#79 def tokenize(source_buffer, recover = T.unsafe(nil)); end # Since prism resolves num params for us, we don't need to support this # kind of logic here. # - # source://prism//lib/prism/translation/parser.rb#100 + # source://prism//lib/prism/translation/parser.rb#105 def try_declare_numparam(node); end - # source://prism//lib/prism/translation/parser.rb#31 + # source://prism//lib/prism/translation/parser.rb#36 sig { overridable.returns(Integer) } def version; end - # source://prism//lib/prism/translation/parser.rb#40 + # source://prism//lib/prism/translation/parser.rb#45 def yyerror; end private # Build the parser gem AST from the prism AST. # - # source://prism//lib/prism/translation/parser.rb#258 + # source://prism//lib/prism/translation/parser.rb#263 def build_ast(program, offset_cache); end # Build the parser gem comments from the prism comments. # - # source://prism//lib/prism/translation/parser.rb#263 + # source://prism//lib/prism/translation/parser.rb#268 def build_comments(comments, offset_cache); end # Prism deals with offsets in bytes, while the parser gem deals with @@ -31814,33 +31916,33 @@ class Prism::Translation::Parser < ::Parser::Base # just use the offset directly. Otherwise, we build an array where the # index is the byte offset and the value is the character offset. # - # source://prism//lib/prism/translation/parser.rb#241 + # source://prism//lib/prism/translation/parser.rb#246 def build_offset_cache(source); end # Build a range from a prism location. # - # source://prism//lib/prism/translation/parser.rb#275 + # source://prism//lib/prism/translation/parser.rb#280 def build_range(location, offset_cache); end # Build the parser gem tokens from the prism tokens. # - # source://prism//lib/prism/translation/parser.rb#270 + # source://prism//lib/prism/translation/parser.rb#275 def build_tokens(tokens, offset_cache); end # Converts the version format handled by Parser to the format handled by Prism. # - # source://prism//lib/prism/translation/parser.rb#284 + # source://prism//lib/prism/translation/parser.rb#289 def convert_for_prism(version); end # Build a diagnostic from the given prism parse error. # - # source://prism//lib/prism/translation/parser.rb#119 + # source://prism//lib/prism/translation/parser.rb#124 def error_diagnostic(error, offset_cache); end # If there was a error generated during the parse, then raise an # appropriate syntax error. Otherwise return the result. # - # source://prism//lib/prism/translation/parser.rb#219 + # source://prism//lib/prism/translation/parser.rb#224 def unwrap(result, offset_cache); end # This is a hook to allow consumers to disable some errors if they don't @@ -31848,7 +31950,7 @@ class Prism::Translation::Parser < ::Parser::Base # # @return [Boolean] # - # source://prism//lib/prism/translation/parser.rb#108 + # source://prism//lib/prism/translation/parser.rb#113 def valid_error?(error); end # This is a hook to allow consumers to disable some warnings if they don't @@ -31856,12 +31958,12 @@ class Prism::Translation::Parser < ::Parser::Base # # @return [Boolean] # - # source://prism//lib/prism/translation/parser.rb#114 + # source://prism//lib/prism/translation/parser.rb#119 def valid_warning?(warning); end # Build a diagnostic from the given prism parse warning. # - # source://prism//lib/prism/translation/parser.rb#192 + # source://prism//lib/prism/translation/parser.rb#197 def warning_diagnostic(warning, offset_cache); end end @@ -31961,7 +32063,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # foo(bar) # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#101 + # source://prism//lib/prism/translation/parser/compiler.rb#105 def visit_arguments_node(node); end # [] @@ -31979,7 +32081,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # { a: 1 } # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#107 + # source://prism//lib/prism/translation/parser/compiler.rb#111 def visit_assoc_node(node); end # def foo(**); bar(**); end @@ -31988,49 +32090,49 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # { **foo } # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#148 + # source://prism//lib/prism/translation/parser/compiler.rb#160 def visit_assoc_splat_node(node); end # $+ # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#158 + # source://prism//lib/prism/translation/parser/compiler.rb#172 def visit_back_reference_read_node(node); end # begin end # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#164 + # source://prism//lib/prism/translation/parser/compiler.rb#178 def visit_begin_node(node); end # foo(&bar) # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#202 + # source://prism//lib/prism/translation/parser/compiler.rb#216 def visit_block_argument_node(node); end # foo { |; bar| } # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#208 + # source://prism//lib/prism/translation/parser/compiler.rb#222 def visit_block_local_variable_node(node); end # A block on a keyword or method call. # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#213 + # source://prism//lib/prism/translation/parser/compiler.rb#227 def visit_block_node(node); end # def foo(&bar); end # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#219 + # source://prism//lib/prism/translation/parser/compiler.rb#233 def visit_block_parameter_node(node); end # A block's parameters. # - # source://prism//lib/prism/translation/parser/compiler.rb#224 + # source://prism//lib/prism/translation/parser/compiler.rb#238 def visit_block_parameters_node(node); end # break @@ -32039,13 +32141,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # break foo # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#233 + # source://prism//lib/prism/translation/parser/compiler.rb#247 def visit_break_node(node); end # foo.bar &&= baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#338 + # source://prism//lib/prism/translation/parser/compiler.rb#352 def visit_call_and_write_node(node); end # foo @@ -32057,133 +32159,133 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # foo.bar() {} # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#245 + # source://prism//lib/prism/translation/parser/compiler.rb#259 def visit_call_node(node); end # foo.bar += baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#319 + # source://prism//lib/prism/translation/parser/compiler.rb#333 def visit_call_operator_write_node(node); end # foo.bar ||= baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#357 + # source://prism//lib/prism/translation/parser/compiler.rb#371 def visit_call_or_write_node(node); end # foo.bar, = 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#376 + # source://prism//lib/prism/translation/parser/compiler.rb#390 def visit_call_target_node(node); end # foo => bar => baz # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#388 + # source://prism//lib/prism/translation/parser/compiler.rb#402 def visit_capture_pattern_node(node); end # case foo; in bar; end # ^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#407 + # source://prism//lib/prism/translation/parser/compiler.rb#421 def visit_case_match_node(node); end # case foo; when bar; end # ^^^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#394 + # source://prism//lib/prism/translation/parser/compiler.rb#408 def visit_case_node(node); end # class Foo; end # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#420 + # source://prism//lib/prism/translation/parser/compiler.rb#434 def visit_class_node(node); end # @@foo &&= bar # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#459 + # source://prism//lib/prism/translation/parser/compiler.rb#473 def visit_class_variable_and_write_node(node); end # @@foo += bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#449 + # source://prism//lib/prism/translation/parser/compiler.rb#463 def visit_class_variable_operator_write_node(node); end # @@foo ||= bar # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#469 + # source://prism//lib/prism/translation/parser/compiler.rb#483 def visit_class_variable_or_write_node(node); end # @@foo # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#433 + # source://prism//lib/prism/translation/parser/compiler.rb#447 def visit_class_variable_read_node(node); end # @@foo, = bar # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#479 + # source://prism//lib/prism/translation/parser/compiler.rb#493 def visit_class_variable_target_node(node); end # @@foo = 1 # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#439 + # source://prism//lib/prism/translation/parser/compiler.rb#453 def visit_class_variable_write_node(node); end # Foo &&= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#510 + # source://prism//lib/prism/translation/parser/compiler.rb#524 def visit_constant_and_write_node(node); end # Foo += bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#500 + # source://prism//lib/prism/translation/parser/compiler.rb#514 def visit_constant_operator_write_node(node); end # Foo ||= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#520 + # source://prism//lib/prism/translation/parser/compiler.rb#534 def visit_constant_or_write_node(node); end # Foo::Bar &&= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#576 + # source://prism//lib/prism/translation/parser/compiler.rb#590 def visit_constant_path_and_write_node(node); end # Foo::Bar # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#536 + # source://prism//lib/prism/translation/parser/compiler.rb#550 def visit_constant_path_node(node); end # Foo::Bar += baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#566 + # source://prism//lib/prism/translation/parser/compiler.rb#580 def visit_constant_path_operator_write_node(node); end # Foo::Bar ||= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#586 + # source://prism//lib/prism/translation/parser/compiler.rb#600 def visit_constant_path_or_write_node(node); end # Foo::Bar, = baz # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#596 + # source://prism//lib/prism/translation/parser/compiler.rb#610 def visit_constant_path_target_node(node); end # Foo::Bar = 1 @@ -32192,19 +32294,19 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # Foo::Foo, Bar::Bar = 1 # ^^^^^^^^ ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#556 + # source://prism//lib/prism/translation/parser/compiler.rb#570 def visit_constant_path_write_node(node); end # Foo # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#485 + # source://prism//lib/prism/translation/parser/compiler.rb#499 def visit_constant_read_node(node); end # Foo, = bar # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#530 + # source://prism//lib/prism/translation/parser/compiler.rb#544 def visit_constant_target_node(node); end # Foo = 1 @@ -32213,7 +32315,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # Foo, Bar = 1 # ^^^ ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#494 + # source://prism//lib/prism/translation/parser/compiler.rb#508 def visit_constant_write_node(node); end # def foo; end @@ -32222,7 +32324,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def self.foo; end # ^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#605 + # source://prism//lib/prism/translation/parser/compiler.rb#619 def visit_def_node(node); end # defined? a @@ -32231,25 +32333,25 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # defined?(a) # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#652 + # source://prism//lib/prism/translation/parser/compiler.rb#666 def visit_defined_node(node); end # if foo then bar else baz end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#664 + # source://prism//lib/prism/translation/parser/compiler.rb#678 def visit_else_node(node); end # "foo #{bar}" # ^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#670 + # source://prism//lib/prism/translation/parser/compiler.rb#684 def visit_embedded_statements_node(node); end # "foo #@bar" # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#680 + # source://prism//lib/prism/translation/parser/compiler.rb#694 def visit_embedded_variable_node(node); end # begin; foo; ensure; bar; end @@ -32257,19 +32359,19 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#686 + # source://prism//lib/prism/translation/parser/compiler.rb#700 def visit_ensure_node(node); end # false # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#692 + # source://prism//lib/prism/translation/parser/compiler.rb#706 def visit_false_node(node); end # foo => [*, bar, *] # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#698 + # source://prism//lib/prism/translation/parser/compiler.rb#712 def visit_find_pattern_node(node); end # 0..5 @@ -32277,31 +32379,31 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if foo .. bar; end # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1494 + # source://prism//lib/prism/translation/parser/compiler.rb#1475 def visit_flip_flop_node(node); end # 1.0 # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#710 + # source://prism//lib/prism/translation/parser/compiler.rb#724 def visit_float_node(node); end # for foo in bar do end # ^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#716 + # source://prism//lib/prism/translation/parser/compiler.rb#730 def visit_for_node(node); end # def foo(...); bar(...); end # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#734 + # source://prism//lib/prism/translation/parser/compiler.rb#748 def visit_forwarding_arguments_node(node); end # def foo(...); end # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#740 + # source://prism//lib/prism/translation/parser/compiler.rb#754 def visit_forwarding_parameter_node(node); end # super @@ -32310,55 +32412,55 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # super {} # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#749 + # source://prism//lib/prism/translation/parser/compiler.rb#763 def visit_forwarding_super_node(node); end # $foo &&= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#787 + # source://prism//lib/prism/translation/parser/compiler.rb#801 def visit_global_variable_and_write_node(node); end # $foo += bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#777 + # source://prism//lib/prism/translation/parser/compiler.rb#791 def visit_global_variable_operator_write_node(node); end # $foo ||= bar # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#797 + # source://prism//lib/prism/translation/parser/compiler.rb#811 def visit_global_variable_or_write_node(node); end # $foo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#761 + # source://prism//lib/prism/translation/parser/compiler.rb#775 def visit_global_variable_read_node(node); end # $foo, = bar # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#807 + # source://prism//lib/prism/translation/parser/compiler.rb#821 def visit_global_variable_target_node(node); end # $foo = 1 # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#767 + # source://prism//lib/prism/translation/parser/compiler.rb#781 def visit_global_variable_write_node(node); end # {} # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#813 + # source://prism//lib/prism/translation/parser/compiler.rb#827 def visit_hash_node(node); end # foo => {} # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#823 + # source://prism//lib/prism/translation/parser/compiler.rb#837 def visit_hash_pattern_node(node); end # if foo then bar end @@ -32370,13 +32472,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # foo ? bar : baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#841 + # source://prism//lib/prism/translation/parser/compiler.rb#855 def visit_if_node(node); end # 1i # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#883 + # source://prism//lib/prism/translation/parser/compiler.rb#897 def visit_imaginary_node(node); end # { foo: } @@ -32384,7 +32486,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#889 + # source://prism//lib/prism/translation/parser/compiler.rb#903 def visit_implicit_node(node); end # foo { |bar,| } @@ -32392,74 +32494,74 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#895 + # source://prism//lib/prism/translation/parser/compiler.rb#909 def visit_implicit_rest_node(node); end # case foo; in bar; end # ^^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#901 + # source://prism//lib/prism/translation/parser/compiler.rb#915 def visit_in_node(node); end # foo[bar] &&= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#945 + # source://prism//lib/prism/translation/parser/compiler.rb#959 def visit_index_and_write_node(node); end # foo[bar] += baz # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#927 + # source://prism//lib/prism/translation/parser/compiler.rb#941 def visit_index_operator_write_node(node); end # foo[bar] ||= baz # ^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#963 + # source://prism//lib/prism/translation/parser/compiler.rb#977 def visit_index_or_write_node(node); end # foo[bar], = 1 # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#981 + # source://prism//lib/prism/translation/parser/compiler.rb#995 def visit_index_target_node(node); end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1018 + # source://prism//lib/prism/translation/parser/compiler.rb#1032 def visit_instance_variable_and_write_node(node); end # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1008 + # source://prism//lib/prism/translation/parser/compiler.rb#1022 def visit_instance_variable_operator_write_node(node); end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1028 + # source://prism//lib/prism/translation/parser/compiler.rb#1042 def visit_instance_variable_or_write_node(node); end # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#992 + # source://prism//lib/prism/translation/parser/compiler.rb#1006 def visit_instance_variable_read_node(node); end # @foo, = bar # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1038 + # source://prism//lib/prism/translation/parser/compiler.rb#1052 def visit_instance_variable_target_node(node); end # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#998 + # source://prism//lib/prism/translation/parser/compiler.rb#1012 def visit_instance_variable_write_node(node); end # 1 # ^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1044 + # source://prism//lib/prism/translation/parser/compiler.rb#1058 def visit_integer_node(node); end # /foo #{bar}/ @@ -32467,43 +32569,49 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if /foo #{bar}/ then end # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1050 + # source://prism//lib/prism/translation/parser/compiler.rb#1064 def visit_interpolated_match_last_line_node(node); end # /foo #{bar}/ # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1050 + # source://prism//lib/prism/translation/parser/compiler.rb#1064 def visit_interpolated_regular_expression_node(node); end # "foo #{bar}" # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1065 + # source://prism//lib/prism/translation/parser/compiler.rb#1079 def visit_interpolated_string_node(node); end # :"foo #{bar}" # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1128 + # source://prism//lib/prism/translation/parser/compiler.rb#1113 def visit_interpolated_symbol_node(node); end # `foo #{bar}` # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1138 + # source://prism//lib/prism/translation/parser/compiler.rb#1123 def visit_interpolated_x_string_node(node); end + # -> { it } + # ^^ + # + # source://prism//lib/prism/translation/parser/compiler.rb#1137 + def visit_it_local_variable_read_node(node); end + # -> { it } # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1153 + # source://prism//lib/prism/translation/parser/compiler.rb#1143 def visit_it_parameters_node(node); end # foo(bar: baz) # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1159 + # source://prism//lib/prism/translation/parser/compiler.rb#1149 def visit_keyword_hash_node(node); end # def foo(**bar); end @@ -32512,49 +32620,49 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def foo(**); end # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1168 + # source://prism//lib/prism/translation/parser/compiler.rb#1158 def visit_keyword_rest_parameter_node(node); end # -> {} # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1177 + # source://prism//lib/prism/translation/parser/compiler.rb#1167 def visit_lambda_node(node); end # foo &&= bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1236 + # source://prism//lib/prism/translation/parser/compiler.rb#1219 def visit_local_variable_and_write_node(node); end # foo += bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1226 + # source://prism//lib/prism/translation/parser/compiler.rb#1209 def visit_local_variable_operator_write_node(node); end # foo ||= bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1246 + # source://prism//lib/prism/translation/parser/compiler.rb#1229 def visit_local_variable_or_write_node(node); end # foo # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1203 + # source://prism//lib/prism/translation/parser/compiler.rb#1193 def visit_local_variable_read_node(node); end # foo, = bar # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1256 + # source://prism//lib/prism/translation/parser/compiler.rb#1239 def visit_local_variable_target_node(node); end # foo = 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1216 + # source://prism//lib/prism/translation/parser/compiler.rb#1199 def visit_local_variable_write_node(node); end # /foo/ @@ -32562,50 +32670,50 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # if /foo/ then end # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1528 + # source://prism//lib/prism/translation/parser/compiler.rb#1509 def visit_match_last_line_node(node); end # foo in bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1266 + # source://prism//lib/prism/translation/parser/compiler.rb#1249 def visit_match_predicate_node(node); end # foo => bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1276 + # source://prism//lib/prism/translation/parser/compiler.rb#1259 def visit_match_required_node(node); end # /(?foo)/ =~ bar # ^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1286 + # source://prism//lib/prism/translation/parser/compiler.rb#1269 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#1297 + # source://prism//lib/prism/translation/parser/compiler.rb#1280 def visit_missing_node(node); end # module Foo; end # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1303 + # source://prism//lib/prism/translation/parser/compiler.rb#1286 def visit_module_node(node); end # foo, bar = baz # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1314 + # source://prism//lib/prism/translation/parser/compiler.rb#1297 def visit_multi_target_node(node); end # foo, bar = baz # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1328 + # source://prism//lib/prism/translation/parser/compiler.rb#1307 def visit_multi_write_node(node); end # next @@ -32614,55 +32722,55 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # next foo # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1349 + # source://prism//lib/prism/translation/parser/compiler.rb#1330 def visit_next_node(node); end # nil # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1361 + # source://prism//lib/prism/translation/parser/compiler.rb#1342 def visit_nil_node(node); end # def foo(**nil); end # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1367 + # source://prism//lib/prism/translation/parser/compiler.rb#1348 def visit_no_keywords_parameter_node(node); end # -> { _1 + _2 } # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1377 + # source://prism//lib/prism/translation/parser/compiler.rb#1358 def visit_numbered_parameters_node(node); end # $1 # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1383 + # source://prism//lib/prism/translation/parser/compiler.rb#1364 def visit_numbered_reference_read_node(node); end # def foo(bar: baz); end # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1389 + # source://prism//lib/prism/translation/parser/compiler.rb#1370 def visit_optional_keyword_parameter_node(node); end # def foo(bar = 1); end # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1395 + # source://prism//lib/prism/translation/parser/compiler.rb#1376 def visit_optional_parameter_node(node); end # a or b # ^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1401 + # source://prism//lib/prism/translation/parser/compiler.rb#1382 def visit_or_node(node); end # def foo(bar, *baz); end # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1407 + # source://prism//lib/prism/translation/parser/compiler.rb#1388 def visit_parameters_node(node); end # () @@ -32671,76 +32779,76 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # (1) # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1446 + # source://prism//lib/prism/translation/parser/compiler.rb#1427 def visit_parentheses_node(node); end # foo => ^(bar) # ^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1456 + # source://prism//lib/prism/translation/parser/compiler.rb#1437 def visit_pinned_expression_node(node); end # foo = 1 and bar => ^foo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1463 + # source://prism//lib/prism/translation/parser/compiler.rb#1444 def visit_pinned_variable_node(node); end # END {} # - # source://prism//lib/prism/translation/parser/compiler.rb#1468 + # source://prism//lib/prism/translation/parser/compiler.rb#1449 def visit_post_execution_node(node); end # BEGIN {} # - # source://prism//lib/prism/translation/parser/compiler.rb#1478 + # source://prism//lib/prism/translation/parser/compiler.rb#1459 def visit_pre_execution_node(node); end # The top-level program node. # - # source://prism//lib/prism/translation/parser/compiler.rb#1488 + # source://prism//lib/prism/translation/parser/compiler.rb#1469 def visit_program_node(node); end # 0..5 # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1494 + # source://prism//lib/prism/translation/parser/compiler.rb#1475 def visit_range_node(node); end # 1r # ^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1516 + # source://prism//lib/prism/translation/parser/compiler.rb#1497 def visit_rational_node(node); end # redo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1522 + # source://prism//lib/prism/translation/parser/compiler.rb#1503 def visit_redo_node(node); end # /foo/ # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1528 + # source://prism//lib/prism/translation/parser/compiler.rb#1509 def visit_regular_expression_node(node); end # def foo(bar:); end # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1543 + # source://prism//lib/prism/translation/parser/compiler.rb#1535 def visit_required_keyword_parameter_node(node); end # def foo(bar); end # ^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1549 + # source://prism//lib/prism/translation/parser/compiler.rb#1541 def visit_required_parameter_node(node); end # foo rescue bar # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1555 + # source://prism//lib/prism/translation/parser/compiler.rb#1547 def visit_rescue_modifier_node(node); end # begin; rescue; end @@ -32748,7 +32856,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @raise [CompilationError] # - # source://prism//lib/prism/translation/parser/compiler.rb#1573 + # source://prism//lib/prism/translation/parser/compiler.rb#1565 def visit_rescue_node(node); end # def foo(*bar); end @@ -32757,13 +32865,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def foo(*); end # ^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1582 + # source://prism//lib/prism/translation/parser/compiler.rb#1574 def visit_rest_parameter_node(node); end # retry # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1588 + # source://prism//lib/prism/translation/parser/compiler.rb#1580 def visit_retry_node(node); end # return @@ -32772,42 +32880,42 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # return 1 # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1597 + # source://prism//lib/prism/translation/parser/compiler.rb#1589 def visit_return_node(node); end # self # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1609 + # source://prism//lib/prism/translation/parser/compiler.rb#1601 def visit_self_node(node); end # A shareable constant. # - # source://prism//lib/prism/translation/parser/compiler.rb#1614 + # source://prism//lib/prism/translation/parser/compiler.rb#1606 def visit_shareable_constant_node(node); end # class << self; end # ^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1620 + # source://prism//lib/prism/translation/parser/compiler.rb#1612 def visit_singleton_class_node(node); end # __ENCODING__ # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1632 + # source://prism//lib/prism/translation/parser/compiler.rb#1624 def visit_source_encoding_node(node); end # __FILE__ # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1638 + # source://prism//lib/prism/translation/parser/compiler.rb#1630 def visit_source_file_node(node); end # __LINE__ # ^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1644 + # source://prism//lib/prism/translation/parser/compiler.rb#1636 def visit_source_line_node(node); end # foo(*bar) @@ -32819,42 +32927,42 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # def foo(*); bar(*); end # ^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1656 + # source://prism//lib/prism/translation/parser/compiler.rb#1648 def visit_splat_node(node); end # A list of statements. # - # source://prism//lib/prism/translation/parser/compiler.rb#1669 + # source://prism//lib/prism/translation/parser/compiler.rb#1661 def visit_statements_node(node); end # "foo" # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1675 + # source://prism//lib/prism/translation/parser/compiler.rb#1667 def visit_string_node(node); end # super(foo) # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1716 + # source://prism//lib/prism/translation/parser/compiler.rb#1709 def visit_super_node(node); end # :foo # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1739 + # source://prism//lib/prism/translation/parser/compiler.rb#1732 def visit_symbol_node(node); end # true # ^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1771 + # source://prism//lib/prism/translation/parser/compiler.rb#1764 def visit_true_node(node); end # undef foo # ^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1777 + # source://prism//lib/prism/translation/parser/compiler.rb#1770 def visit_undef_node(node); end # unless foo; bar end @@ -32863,7 +32971,7 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # bar unless foo # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1786 + # source://prism//lib/prism/translation/parser/compiler.rb#1779 def visit_unless_node(node); end # until foo; bar end @@ -32872,13 +32980,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # bar until foo # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1816 + # source://prism//lib/prism/translation/parser/compiler.rb#1809 def visit_until_node(node); end # case foo; when bar; end # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1838 + # source://prism//lib/prism/translation/parser/compiler.rb#1831 def visit_when_node(node); end # while foo; bar end @@ -32887,13 +32995,13 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # bar while foo # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1856 + # source://prism//lib/prism/translation/parser/compiler.rb#1849 def visit_while_node(node); end # `foo` # ^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1878 + # source://prism//lib/prism/translation/parser/compiler.rb#1871 def visit_x_string_node(node); end # yield @@ -32902,29 +33010,34 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # yield 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/parser/compiler.rb#1910 + # source://prism//lib/prism/translation/parser/compiler.rb#1902 def visit_yield_node(node); end private + # The parser gem automatically converts \r\n to \n, meaning our offsets + # need to be adjusted to always subtract 1 from the length. + # + # source://prism//lib/prism/translation/parser/compiler.rb#2045 + def chomped_bytesize(line); end + # 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#1924 + # source://prism//lib/prism/translation/parser/compiler.rb#1916 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#1931 + # source://prism//lib/prism/translation/parser/compiler.rb#1923 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. + # Returns the set of targets for a MultiTargetNode or a MultiWriteNode. # - # source://prism//lib/prism/translation/parser/compiler.rb#1945 - def imaginary_value(node); end + # source://prism//lib/prism/translation/parser/compiler.rb#1936 + def multi_target_elements(node); end # Negate the value of a numeric node. This is a special case where you # have a negative sign on one line and then a number on the next line. @@ -32932,7 +33045,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#1954 + # source://prism//lib/prism/translation/parser/compiler.rb#1948 def numeric_negate(message_loc, receiver); end # Blocks can have a special set of parameters that automatically expand @@ -32941,18 +33054,12 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # # @return [Boolean] # - # source://prism//lib/prism/translation/parser/compiler.rb#1966 + # source://prism//lib/prism/translation/parser/compiler.rb#1962 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#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#1993 + # source://prism//lib/prism/translation/parser/compiler.rb#1979 def srange(location); end # Constructs a new source range by finding the given tokens between the @@ -32962,37 +33069,37 @@ class Prism::Translation::Parser::Compiler < ::Prism::Compiler # 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#2008 + # source://prism//lib/prism/translation/parser/compiler.rb#1994 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#1998 + # source://prism//lib/prism/translation/parser/compiler.rb#1984 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#2018 + # source://prism//lib/prism/translation/parser/compiler.rb#2004 def token(location); end # Visit a block node on a call. # - # source://prism//lib/prism/translation/parser/compiler.rb#2023 + # source://prism//lib/prism/translation/parser/compiler.rb#2009 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#2057 + # source://prism//lib/prism/translation/parser/compiler.rb#2051 def visit_heredoc(node); end # Visit a numeric node and account for the optional sign. # - # source://prism//lib/prism/translation/parser/compiler.rb#2103 + # source://prism//lib/prism/translation/parser/compiler.rb#2123 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#2115 + # source://prism//lib/prism/translation/parser/compiler.rb#2135 def within_pattern; end end @@ -33005,10 +33112,10 @@ 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#1990 +# source://prism//lib/prism/translation/parser/compiler.rb#1976 Prism::Translation::Parser::Compiler::Range = Parser::Source::Range -# source://prism//lib/prism/translation/parser.rb#12 +# source://prism//lib/prism/translation/parser.rb#17 Prism::Translation::Parser::Diagnostic = Parser::Diagnostic # Accepts a list of prism tokens and converts them into the expected @@ -33094,22 +33201,22 @@ Prism::Translation::Parser::Lexer::TYPES = T.let(T.unsafe(nil), Hash) # messages. We create our own diagnostic class in order to set our own # error messages. # -# source://prism//lib/prism/translation/parser.rb#18 +# source://prism//lib/prism/translation/parser.rb#23 class Prism::Translation::Parser::PrismDiagnostic < ::Parser::Diagnostic # Initialize a new diagnostic with the given message and location. # # @return [PrismDiagnostic] a new instance of PrismDiagnostic # - # source://prism//lib/prism/translation/parser.rb#23 + # source://prism//lib/prism/translation/parser.rb#28 def initialize(message, level, reason, location); end # This is the cached message coming from prism. # - # source://prism//lib/prism/translation/parser.rb#20 + # source://prism//lib/prism/translation/parser.rb#25 def message; end end -# source://prism//lib/prism/translation/parser.rb#29 +# source://prism//lib/prism/translation/parser.rb#34 Prism::Translation::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # This class provides a compatibility layer between prism and Ripper. It @@ -33745,15 +33852,21 @@ class Prism::Translation::Ripper < ::Prism::Compiler def visit_interpolated_x_string_node(node); end # -> { it } - # ^^^^^^^^^ + # ^^ # # source://prism//lib/prism/translation/ripper.rb#2222 + def visit_it_local_variable_read_node(node); end + + # -> { it } + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/ripper.rb#2229 def visit_it_parameters_node(node); end # foo(bar: baz) # ^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2227 + # source://prism//lib/prism/translation/ripper.rb#2234 def visit_keyword_hash_node(node); end # def foo(**bar); end @@ -33762,96 +33875,96 @@ class Prism::Translation::Ripper < ::Prism::Compiler # def foo(**); end # ^^ # - # source://prism//lib/prism/translation/ripper.rb#2239 + # source://prism//lib/prism/translation/ripper.rb#2246 def visit_keyword_rest_parameter_node(node); end # -> {} # - # source://prism//lib/prism/translation/ripper.rb#2253 + # source://prism//lib/prism/translation/ripper.rb#2260 def visit_lambda_node(node); end # foo &&= bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2350 + # source://prism//lib/prism/translation/ripper.rb#2352 def visit_local_variable_and_write_node(node); end # foo += bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2336 + # source://prism//lib/prism/translation/ripper.rb#2338 def visit_local_variable_operator_write_node(node); end # foo ||= bar # ^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2364 + # source://prism//lib/prism/translation/ripper.rb#2366 def visit_local_variable_or_write_node(node); end # foo # ^^^ # - # source://prism//lib/prism/translation/ripper.rb#2313 + # source://prism//lib/prism/translation/ripper.rb#2320 def visit_local_variable_read_node(node); end # foo, = bar # ^^^ # - # source://prism//lib/prism/translation/ripper.rb#2378 + # source://prism//lib/prism/translation/ripper.rb#2380 def visit_local_variable_target_node(node); end # foo = 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2325 + # source://prism//lib/prism/translation/ripper.rb#2327 def visit_local_variable_write_node(node); end # if /foo/ then end # ^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2385 + # source://prism//lib/prism/translation/ripper.rb#2387 def visit_match_last_line_node(node); end # foo in bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2400 + # source://prism//lib/prism/translation/ripper.rb#2402 def visit_match_predicate_node(node); end # foo => bar # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2409 + # source://prism//lib/prism/translation/ripper.rb#2411 def visit_match_required_node(node); end # /(?foo)/ =~ bar # ^^^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2418 + # source://prism//lib/prism/translation/ripper.rb#2420 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. # - # source://prism//lib/prism/translation/ripper.rb#2424 + # source://prism//lib/prism/translation/ripper.rb#2426 def visit_missing_node(node); end # module Foo; end # ^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2430 + # source://prism//lib/prism/translation/ripper.rb#2432 def visit_module_node(node); end # (foo, bar), bar = qux # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2447 + # source://prism//lib/prism/translation/ripper.rb#2449 def visit_multi_target_node(node); end # foo, bar = baz # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2501 + # source://prism//lib/prism/translation/ripper.rb#2503 def visit_multi_write_node(node); end # next @@ -33860,55 +33973,55 @@ class Prism::Translation::Ripper < ::Prism::Compiler # next foo # ^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2521 + # source://prism//lib/prism/translation/ripper.rb#2523 def visit_next_node(node); end # nil # ^^^ # - # source://prism//lib/prism/translation/ripper.rb#2535 + # source://prism//lib/prism/translation/ripper.rb#2537 def visit_nil_node(node); end # def foo(**nil); end # ^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2542 + # source://prism//lib/prism/translation/ripper.rb#2544 def visit_no_keywords_parameter_node(node); end # -> { _1 + _2 } # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2551 + # source://prism//lib/prism/translation/ripper.rb#2553 def visit_numbered_parameters_node(node); end # $1 # ^^ # - # source://prism//lib/prism/translation/ripper.rb#2556 + # source://prism//lib/prism/translation/ripper.rb#2558 def visit_numbered_reference_read_node(node); end # def foo(bar: baz); end # ^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2563 + # source://prism//lib/prism/translation/ripper.rb#2565 def visit_optional_keyword_parameter_node(node); end # def foo(bar = 1); end # ^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2573 + # source://prism//lib/prism/translation/ripper.rb#2575 def visit_optional_parameter_node(node); end # a or b # ^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2583 + # source://prism//lib/prism/translation/ripper.rb#2585 def visit_or_node(node); end # def foo(bar, *baz); end # ^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2593 + # source://prism//lib/prism/translation/ripper.rb#2595 def visit_parameters_node(node); end # () @@ -33917,84 +34030,84 @@ class Prism::Translation::Ripper < ::Prism::Compiler # (1) # ^^^ # - # source://prism//lib/prism/translation/ripper.rb#2620 + # source://prism//lib/prism/translation/ripper.rb#2622 def visit_parentheses_node(node); end # foo => ^(bar) # ^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2634 + # source://prism//lib/prism/translation/ripper.rb#2636 def visit_pinned_expression_node(node); end # foo = 1 and bar => ^foo # ^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2643 + # source://prism//lib/prism/translation/ripper.rb#2645 def visit_pinned_variable_node(node); end # END {} # ^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2649 + # source://prism//lib/prism/translation/ripper.rb#2651 def visit_post_execution_node(node); end # BEGIN {} # ^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2664 + # source://prism//lib/prism/translation/ripper.rb#2666 def visit_pre_execution_node(node); end # The top-level program node. # - # source://prism//lib/prism/translation/ripper.rb#2678 + # source://prism//lib/prism/translation/ripper.rb#2680 def visit_program_node(node); end # 0..5 # ^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2689 + # source://prism//lib/prism/translation/ripper.rb#2691 def visit_range_node(node); end # 1r # ^^ # - # source://prism//lib/prism/translation/ripper.rb#2703 + # source://prism//lib/prism/translation/ripper.rb#2705 def visit_rational_node(node); end # redo # ^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2709 + # source://prism//lib/prism/translation/ripper.rb#2711 def visit_redo_node(node); end # /foo/ # ^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2716 + # source://prism//lib/prism/translation/ripper.rb#2718 def visit_regular_expression_node(node); end # def foo(bar:); end # ^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2738 + # source://prism//lib/prism/translation/ripper.rb#2740 def visit_required_keyword_parameter_node(node); end # def foo(bar); end # ^^^ # - # source://prism//lib/prism/translation/ripper.rb#2745 + # source://prism//lib/prism/translation/ripper.rb#2747 def visit_required_parameter_node(node); end # foo rescue bar # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2752 + # source://prism//lib/prism/translation/ripper.rb#2754 def visit_rescue_modifier_node(node); end # begin; rescue; end # ^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2762 + # source://prism//lib/prism/translation/ripper.rb#2764 def visit_rescue_node(node); end # def foo(*bar); end @@ -34003,13 +34116,13 @@ class Prism::Translation::Ripper < ::Prism::Compiler # def foo(*); end # ^ # - # source://prism//lib/prism/translation/ripper.rb#2820 + # source://prism//lib/prism/translation/ripper.rb#2822 def visit_rest_parameter_node(node); end # retry # ^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2832 + # source://prism//lib/prism/translation/ripper.rb#2834 def visit_retry_node(node); end # return @@ -34018,42 +34131,42 @@ class Prism::Translation::Ripper < ::Prism::Compiler # return 1 # ^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2842 + # source://prism//lib/prism/translation/ripper.rb#2844 def visit_return_node(node); end # self # ^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2856 + # source://prism//lib/prism/translation/ripper.rb#2858 def visit_self_node(node); end # A shareable constant. # - # source://prism//lib/prism/translation/ripper.rb#2862 + # source://prism//lib/prism/translation/ripper.rb#2864 def visit_shareable_constant_node(node); end # class << self; end # ^^^^^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2868 + # source://prism//lib/prism/translation/ripper.rb#2870 def visit_singleton_class_node(node); end # __ENCODING__ # ^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2878 + # source://prism//lib/prism/translation/ripper.rb#2880 def visit_source_encoding_node(node); end # __FILE__ # ^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2885 + # source://prism//lib/prism/translation/ripper.rb#2887 def visit_source_file_node(node); end # __LINE__ # ^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2892 + # source://prism//lib/prism/translation/ripper.rb#2894 def visit_source_line_node(node); end # foo(*bar) @@ -34065,42 +34178,42 @@ class Prism::Translation::Ripper < ::Prism::Compiler # def foo(*); bar(*); end # ^ # - # source://prism//lib/prism/translation/ripper.rb#2905 + # source://prism//lib/prism/translation/ripper.rb#2907 def visit_splat_node(node); end # A list of statements. # - # source://prism//lib/prism/translation/ripper.rb#2910 + # source://prism//lib/prism/translation/ripper.rb#2912 def visit_statements_node(node); end # "foo" # ^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#2927 + # source://prism//lib/prism/translation/ripper.rb#2929 def visit_string_node(node); end # super(foo) # ^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3059 + # source://prism//lib/prism/translation/ripper.rb#3061 def visit_super_node(node); end # :foo # ^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3080 + # source://prism//lib/prism/translation/ripper.rb#3082 def visit_symbol_node(node); end # true # ^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3104 + # source://prism//lib/prism/translation/ripper.rb#3106 def visit_true_node(node); end # undef foo # ^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3111 + # source://prism//lib/prism/translation/ripper.rb#3113 def visit_undef_node(node); end # unless foo; bar end @@ -34109,7 +34222,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # bar unless foo # ^^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3123 + # source://prism//lib/prism/translation/ripper.rb#3125 def visit_unless_node(node); end # until foo; bar end @@ -34118,13 +34231,13 @@ class Prism::Translation::Ripper < ::Prism::Compiler # bar until foo # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3151 + # source://prism//lib/prism/translation/ripper.rb#3153 def visit_until_node(node); end # case foo; when bar; end # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3175 + # source://prism//lib/prism/translation/ripper.rb#3177 def visit_when_node(node); end # while foo; bar end @@ -34133,13 +34246,13 @@ class Prism::Translation::Ripper < ::Prism::Compiler # bar while foo # ^^^^^^^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3196 + # source://prism//lib/prism/translation/ripper.rb#3198 def visit_while_node(node); end # `foo` # ^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3220 + # source://prism//lib/prism/translation/ripper.rb#3222 def visit_x_string_node(node); end # yield @@ -34148,32 +34261,32 @@ class Prism::Translation::Ripper < ::Prism::Compiler # yield 1 # ^^^^^^^ # - # source://prism//lib/prism/translation/ripper.rb#3243 + # source://prism//lib/prism/translation/ripper.rb#3245 def visit_yield_node(node); end private # :stopdoc: # - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def _dispatch_0; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def _dispatch_1(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def _dispatch_2(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def _dispatch_3(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3391 + # source://prism//lib/prism/translation/ripper.rb#3393 def _dispatch_4(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3392 + # source://prism//lib/prism/translation/ripper.rb#3394 def _dispatch_5(_, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3393 + # source://prism//lib/prism/translation/ripper.rb#3395 def _dispatch_7(_, _, _, _, _, _, _); end # This method is responsible for updating lineno and column information @@ -34182,7 +34295,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#3377 + # source://prism//lib/prism/translation/ripper.rb#3379 def bounds(location); end # Returns true if the given node is a command node. @@ -34194,7 +34307,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # This method is called when the parser found syntax error. # - # source://prism//lib/prism/translation/ripper.rb#3415 + # source://prism//lib/prism/translation/ripper.rb#3417 def compile_error(msg); end # This method is provided by the Ripper C extension. It is called when a @@ -34202,589 +34315,589 @@ 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#3430 + # source://prism//lib/prism/translation/ripper.rb#3432 def dedent_string(string, width); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_BEGIN(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_CHAR(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_END(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on___end__(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_alias(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_alias_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_aref(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_aref_field(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_arg_ambiguous(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_arg_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_args_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_args_add_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_args_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_args_forward; end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_args_new; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_array(_); end - # source://prism//lib/prism/translation/ripper.rb#3391 + # source://prism//lib/prism/translation/ripper.rb#3393 def on_aryptn(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_assign(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_assign_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_assoc_new(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_assoc_splat(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_assoclist_from_args(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_backref(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_backtick(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_bare_assoc_hash(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_begin(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_binary(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_block_var(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_blockarg(_); end - # source://prism//lib/prism/translation/ripper.rb#3391 + # source://prism//lib/prism/translation/ripper.rb#3393 def on_bodystmt(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_brace_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_break(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_call(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_case(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_class(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_class_name_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_comma(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_command(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3391 + # source://prism//lib/prism/translation/ripper.rb#3393 def on_command_call(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_comment(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_const(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_const_path_field(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_const_path_ref(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_const_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_cvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_def(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_defined(_); end - # source://prism//lib/prism/translation/ripper.rb#3392 + # source://prism//lib/prism/translation/ripper.rb#3394 def on_defs(_, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_do_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_dot2(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_dot3(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_dyna_symbol(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_else(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_elsif(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_embdoc(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_embdoc_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_embdoc_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_embexpr_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_embexpr_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_embvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_ensure(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_excessed_comma; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_fcall(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_field(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_float(_); end - # source://prism//lib/prism/translation/ripper.rb#3391 + # source://prism//lib/prism/translation/ripper.rb#3393 def on_fndptn(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_for(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_gvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_hash(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_heredoc_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_heredoc_dedent(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_heredoc_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_hshptn(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_ident(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_if(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_if_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_ifop(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_ignored_nl(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_ignored_sp(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_imaginary(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_in(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_int(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_ivar(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_kw(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_kwrest_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_label(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_label_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_lambda(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_lbrace(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_lbracket(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_lparen(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_magic_comment(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_massign(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_method_add_arg(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_method_add_block(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_mlhs_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_mlhs_add_post(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_mlhs_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_mlhs_new; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_mlhs_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_module(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_mrhs_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_mrhs_add_star(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_mrhs_new; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_mrhs_new_from_args(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_next(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_nl(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_nokw_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_op(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_opassign(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_operator_ambiguous(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_param_error(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3393 + # source://prism//lib/prism/translation/ripper.rb#3395 def on_params(_, _, _, _, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_paren(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_parse_error(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_period(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_program(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_qsymbols_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_qsymbols_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_qsymbols_new; end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_qwords_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_qwords_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_qwords_new; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_rational(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_rbrace(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_rbracket(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_redo; end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_regexp_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_regexp_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_regexp_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_regexp_literal(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_regexp_new; end - # source://prism//lib/prism/translation/ripper.rb#3391 + # source://prism//lib/prism/translation/ripper.rb#3393 def on_rescue(_, _, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_rescue_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_rest_param(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_retry; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_return(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_return0; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_rparen(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_sclass(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_semicolon(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_sp(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_stmts_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_stmts_new; end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_string_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_string_concat(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_string_content; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_string_dvar(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_string_embexpr(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_string_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_super(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_symbeg(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_symbol(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_symbol_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_symbols_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_symbols_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_symbols_new; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_tlambda(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_tlambeg(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_top_const_field(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_top_const_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_tstring_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_tstring_content(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_tstring_end(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_unary(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_undef(_); end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_unless(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_unless_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_until(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_until_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_var_alias(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_var_field(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_var_ref(_); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_vcall(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_void_stmt; end - # source://prism//lib/prism/translation/ripper.rb#3390 + # source://prism//lib/prism/translation/ripper.rb#3392 def on_when(_, _, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_while(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_while_mod(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_word_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_word_new; end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_words_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_words_beg(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_words_new; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_words_sep(_); end - # source://prism//lib/prism/translation/ripper.rb#3389 + # source://prism//lib/prism/translation/ripper.rb#3391 def on_xstring_add(_, _); end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_xstring_literal(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_xstring_new; end - # source://prism//lib/prism/translation/ripper.rb#3388 + # source://prism//lib/prism/translation/ripper.rb#3390 def on_yield(_); end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_yield0; end - # source://prism//lib/prism/translation/ripper.rb#3387 + # source://prism//lib/prism/translation/ripper.rb#3389 def on_zsuper; end # Lazily initialize the parse result. # - # source://prism//lib/prism/translation/ripper.rb#3269 + # source://prism//lib/prism/translation/ripper.rb#3271 def result; end # Returns true if there is a comma between the two locations. # # @return [Boolean] # - # source://prism//lib/prism/translation/ripper.rb#3282 + # source://prism//lib/prism/translation/ripper.rb#3284 def trailing_comma?(left, right); end # Visit one side of an alias global variable node. @@ -34821,12 +34934,12 @@ class Prism::Translation::Ripper < ::Prism::Compiler # Visit a destructured positional parameter node. # - # source://prism//lib/prism/translation/ripper.rb#2607 + # source://prism//lib/prism/translation/ripper.rb#2609 def visit_destructured_parameter_node(node); end # Visit a string that is expressed using a <<~ heredoc. # - # source://prism//lib/prism/translation/ripper.rb#2978 + # source://prism//lib/prism/translation/ripper.rb#2980 def visit_heredoc_node(parts, base); end # Ripper gives back the escaped string content but strips out the common @@ -34835,28 +34948,28 @@ class Prism::Translation::Ripper < ::Prism::Compiler # work well together, so here we need to re-derive the common leading # whitespace. # - # source://prism//lib/prism/translation/ripper.rb#2953 + # source://prism//lib/prism/translation/ripper.rb#2955 def visit_heredoc_node_whitespace(parts); end # Visit a heredoc node that is representing a string. # - # source://prism//lib/prism/translation/ripper.rb#3024 + # source://prism//lib/prism/translation/ripper.rb#3026 def visit_heredoc_string_node(node); end # Visit a heredoc node that is representing an xstring. # - # source://prism//lib/prism/translation/ripper.rb#3041 + # source://prism//lib/prism/translation/ripper.rb#3043 def visit_heredoc_x_string_node(node); end # Visit the targets of a multi-target node. # - # source://prism//lib/prism/translation/ripper.rb#2460 + # source://prism//lib/prism/translation/ripper.rb#2462 def visit_multi_target_node_targets(lefts, rest, rights, skippable); end # Visit a node that represents a number. We need to explicitly handle the # unary - operator. # - # source://prism//lib/prism/translation/ripper.rb#3321 + # source://prism//lib/prism/translation/ripper.rb#3323 def visit_number_node(node); end # Visit a pattern within a pattern match. This is used to bypass the @@ -34870,7 +34983,7 @@ class Prism::Translation::Ripper < ::Prism::Compiler # structure of the prism parse tree, but we manually add them here so that # we can mirror Ripper's void stmt. # - # source://prism//lib/prism/translation/ripper.rb#2919 + # source://prism//lib/prism/translation/ripper.rb#2921 def visit_statements_node_body(body); end # Visit an individual part of a string-like node. @@ -34881,7 +34994,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#3294 + # source://prism//lib/prism/translation/ripper.rb#3296 def visit_token(token, allow_keywords = T.unsafe(nil)); end # Dispatch a words_sep event that contains the space between the elements @@ -34893,26 +35006,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#3339 + # source://prism//lib/prism/translation/ripper.rb#3341 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#3287 + # source://prism//lib/prism/translation/ripper.rb#3289 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#3406 + # source://prism//lib/prism/translation/ripper.rb#3408 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#3411 + # source://prism//lib/prism/translation/ripper.rb#3413 def warning(fmt, *args); end class << self @@ -35721,67 +35834,1171 @@ class Prism::Translation::Ripper::SexpBuilderPP < ::Prism::Translation::Ripper:: def on_xstring_new; end end +# This module is the entry-point for converting a prism syntax tree into the +# seattlerb/ruby_parser gem's syntax tree. +# +# source://prism//lib/prism/translation/ruby_parser.rb#14 +class Prism::Translation::RubyParser + # Parse the given source and translate it into the seattlerb/ruby_parser + # gem's Sexp format. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1556 + def parse(source, filepath = T.unsafe(nil)); end + + # Parse the given file and translate it into the seattlerb/ruby_parser + # gem's Sexp format. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1562 + def parse_file(filepath); end + + private + + # Translate the given parse result and filepath into the + # seattlerb/ruby_parser gem's Sexp format. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1584 + def translate(result, filepath); end + + class << self + # Parse the given source and translate it into the seattlerb/ruby_parser + # gem's Sexp format. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1569 + def parse(source, filepath = T.unsafe(nil)); end + + # Parse the given file and translate it into the seattlerb/ruby_parser + # gem's Sexp format. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1575 + def parse_file(filepath); end + end +end + +# A prism visitor that builds Sexp objects. +# +# source://prism//lib/prism/translation/ruby_parser.rb#16 +class Prism::Translation::RubyParser::Compiler < ::Prism::Compiler + # Initialize a new compiler with the given file name. + # + # @return [Compiler] a new instance of Compiler + # + # source://prism//lib/prism/translation/ruby_parser.rb#31 + def initialize(file, in_def: T.unsafe(nil), in_pattern: T.unsafe(nil)); end + + # This is the name of the file that we are compiling. We set it on every + # Sexp object that is generated, and also use it to compile __FILE__ + # nodes. + # + # source://prism//lib/prism/translation/ruby_parser.rb#20 + def file; end + + # Class variables will change their type based on if they are inside of + # a method definition or not, so we need to track that state. + # + # source://prism//lib/prism/translation/ruby_parser.rb#24 + def in_def; end + + # Some nodes will change their representation if they are inside of a + # pattern, so we need to track that state. + # + # source://prism//lib/prism/translation/ruby_parser.rb#28 + def in_pattern; end + + # alias $foo $bar + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#45 + def visit_alias_global_variable_node(node); end + + # alias foo bar + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#39 + def visit_alias_method_node(node); end + + # foo => bar | baz + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#51 + def visit_alternation_pattern_node(node); end + + # a and b + # ^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#57 + def visit_and_node(node); end + + # foo(bar) + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#96 + def visit_arguments_node(node); end + + # [] + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#63 + def visit_array_node(node); end + + # foo => [bar] + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#73 + def visit_array_pattern_node(node); end + + # { a: 1 } + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#102 + def visit_assoc_node(node); end + + # def foo(**); bar(**); end + # ^^ + # + # { **foo } + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#111 + def visit_assoc_splat_node(node); end + + # $+ + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#121 + def visit_back_reference_read_node(node); end + + # begin end + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#127 + def visit_begin_node(node); end + + # foo(&bar) + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#160 + def visit_block_argument_node(node); end + + # foo { |; bar| } + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#168 + def visit_block_local_variable_node(node); end + + # A block on a keyword or method call. + # + # source://prism//lib/prism/translation/ruby_parser.rb#173 + def visit_block_node(node); end + + # def foo(&bar); end + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#179 + def visit_block_parameter_node(node); end + + # A block's parameters. + # + # source://prism//lib/prism/translation/ruby_parser.rb#184 + def visit_block_parameters_node(node); end + + # break + # ^^^^^ + # + # break foo + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#224 + def visit_break_node(node); end + + # foo.bar &&= baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#287 + def visit_call_and_write_node(node); end + + # foo + # ^^^ + # + # foo.bar + # ^^^^^^^ + # + # foo.bar() {} + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#242 + def visit_call_node(node); end + + # foo.bar += baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#277 + def visit_call_operator_write_node(node); end + + # foo.bar ||= baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#297 + def visit_call_or_write_node(node); end + + # foo.bar, = 1 + # ^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#320 + def visit_call_target_node(node); end + + # foo => bar => baz + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#326 + def visit_capture_pattern_node(node); end + + # case foo; in bar; end + # ^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#338 + def visit_case_match_node(node); end + + # case foo; when bar; end + # ^^^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#332 + def visit_case_node(node); end + + # class Foo; end + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#344 + def visit_class_node(node); end + + # @@foo &&= bar + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#385 + def visit_class_variable_and_write_node(node); end + + # @@foo += bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#379 + def visit_class_variable_operator_write_node(node); end + + # @@foo ||= bar + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#391 + def visit_class_variable_or_write_node(node); end + + # @@foo + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#364 + def visit_class_variable_read_node(node); end + + # @@foo, = bar + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#397 + def visit_class_variable_target_node(node); end + + # @@foo = 1 + # ^^^^^^^^^ + # + # @@foo, @@bar = 1 + # ^^^^^ ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#373 + def visit_class_variable_write_node(node); end + + # Foo &&= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#430 + def visit_constant_and_write_node(node); end + + # Foo += bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#424 + def visit_constant_operator_write_node(node); end + + # Foo ||= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#436 + def visit_constant_or_write_node(node); end + + # Foo::Bar &&= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#473 + def visit_constant_path_and_write_node(node); end + + # Foo::Bar + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#448 + def visit_constant_path_node(node); end + + # Foo::Bar += baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#467 + def visit_constant_path_operator_write_node(node); end + + # Foo::Bar ||= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#479 + def visit_constant_path_or_write_node(node); end + + # Foo::Bar, = baz + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#485 + def visit_constant_path_target_node(node); end + + # Foo::Bar = 1 + # ^^^^^^^^^^^^ + # + # Foo::Foo, Bar::Bar = 1 + # ^^^^^^^^ ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#461 + def visit_constant_path_write_node(node); end + + # Foo + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#409 + def visit_constant_read_node(node); end + + # Foo, = bar + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#442 + def visit_constant_target_node(node); end + + # Foo = 1 + # ^^^^^^^ + # + # Foo, Bar = 1 + # ^^^ ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#418 + def visit_constant_write_node(node); end + + # def foo; end + # ^^^^^^^^^^^^ + # + # def self.foo; end + # ^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#501 + def visit_def_node(node); end + + # defined? a + # ^^^^^^^^^^ + # + # defined?(a) + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#532 + def visit_defined_node(node); end + + # if foo then bar else baz end + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#538 + def visit_else_node(node); end + + # "foo #{bar}" + # ^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#544 + def visit_embedded_statements_node(node); end + + # "foo #@bar" + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#552 + def visit_embedded_variable_node(node); end + + # begin; foo; ensure; bar; end + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#558 + def visit_ensure_node(node); end + + # false + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#564 + def visit_false_node(node); end + + # foo => [*, bar, *] + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#570 + def visit_find_pattern_node(node); end + + # if foo .. bar; end + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#576 + def visit_flip_flop_node(node); end + + # 1.0 + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#586 + def visit_float_node(node); end + + # for foo in bar do end + # ^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#592 + def visit_for_node(node); end + + # def foo(...); bar(...); end + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#598 + def visit_forwarding_arguments_node(node); end + + # def foo(...); end + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#604 + def visit_forwarding_parameter_node(node); end + + # super + # ^^^^^ + # + # super {} + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#613 + def visit_forwarding_super_node(node); end + + # $foo &&= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#640 + def visit_global_variable_and_write_node(node); end + + # $foo += bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#634 + def visit_global_variable_operator_write_node(node); end + + # $foo ||= bar + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#646 + def visit_global_variable_or_write_node(node); end + + # $foo + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#619 + def visit_global_variable_read_node(node); end + + # $foo, = bar + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#652 + def visit_global_variable_target_node(node); end + + # $foo = 1 + # ^^^^^^^^ + # + # $foo, $bar = 1 + # ^^^^ ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#628 + def visit_global_variable_write_node(node); end + + # {} + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#658 + def visit_hash_node(node); end + + # foo => {} + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#664 + def visit_hash_pattern_node(node); end + + # if foo then bar end + # ^^^^^^^^^^^^^^^^^^^ + # + # bar if foo + # ^^^^^^^^^^ + # + # foo ? bar : baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#685 + def visit_if_node(node); end + + # 1i + # + # source://prism//lib/prism/translation/ruby_parser.rb#690 + def visit_imaginary_node(node); end + + # { foo: } + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#696 + def visit_implicit_node(node); end + + # foo { |bar,| } + # ^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#701 + def visit_implicit_rest_node(node); end + + # case foo; in bar; end + # ^^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#706 + def visit_in_node(node); end + + # foo[bar] &&= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#732 + def visit_index_and_write_node(node); end + + # foo[bar] += baz + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#719 + def visit_index_operator_write_node(node); end + + # foo[bar] ||= baz + # ^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#745 + def visit_index_or_write_node(node); end + + # foo[bar], = 1 + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#758 + def visit_index_target_node(node); end + + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#788 + def visit_instance_variable_and_write_node(node); end + + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#782 + def visit_instance_variable_operator_write_node(node); end + + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#794 + def visit_instance_variable_or_write_node(node); end + + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#767 + def visit_instance_variable_read_node(node); end + + # @foo, = bar + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#800 + def visit_instance_variable_target_node(node); end + + # ^^^^^^^^ + # + # @foo, @bar = 1 + # ^^^^ ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#776 + def visit_instance_variable_write_node(node); end + + # 1 + # ^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#806 + def visit_integer_node(node); end + + # if /foo #{bar}/ then end + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#812 + def visit_interpolated_match_last_line_node(node); end + + # /foo #{bar}/ + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#829 + def visit_interpolated_regular_expression_node(node); end + + # "foo #{bar}" + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#844 + def visit_interpolated_string_node(node); end + + # :"foo #{bar}" + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#851 + def visit_interpolated_symbol_node(node); end + + # `foo #{bar}` + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#858 + def visit_interpolated_x_string_node(node); end + + # -> { it } + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#923 + def visit_it_local_variable_read_node(node); end + + # foo(bar: baz) + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#929 + def visit_keyword_hash_node(node); end + + # def foo(**bar); end + # ^^^^^ + # + # def foo(**); end + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#938 + def visit_keyword_rest_parameter_node(node); end + + # -> {} + # + # source://prism//lib/prism/translation/ruby_parser.rb#943 + def visit_lambda_node(node); end + + # foo &&= bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#986 + def visit_local_variable_and_write_node(node); end + + # foo += bar + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#980 + def visit_local_variable_operator_write_node(node); end + + # foo ||= bar + # ^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#992 + def visit_local_variable_or_write_node(node); end + + # foo + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#961 + def visit_local_variable_read_node(node); end + + # foo, = bar + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#998 + def visit_local_variable_target_node(node); end + + # foo = 1 + # ^^^^^^^ + # + # foo, bar = 1 + # ^^^ ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#974 + def visit_local_variable_write_node(node); end + + # if /foo/ then end + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1004 + def visit_match_last_line_node(node); end + + # foo in bar + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1010 + def visit_match_predicate_node(node); end + + # foo => bar + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1016 + def visit_match_required_node(node); end + + # /(?foo)/ =~ bar + # ^^^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1022 + 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/ruby_parser.rb#1029 + def visit_missing_node(node); end + + # module Foo; end + # ^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1035 + def visit_module_node(node); end + + # foo, bar = baz + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1055 + def visit_multi_target_node(node); end + + # foo, bar = baz + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1065 + def visit_multi_write_node(node); end + + # next + # ^^^^ + # + # next foo + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1089 + def visit_next_node(node); end + + # nil + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1102 + def visit_nil_node(node); end + + # def foo(**nil); end + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1108 + def visit_no_keywords_parameter_node(node); end + + # -> { _1 + _2 } + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1114 + def visit_numbered_parameters_node(node); end + + # $1 + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1120 + def visit_numbered_reference_read_node(node); end + + # def foo(bar: baz); end + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1126 + def visit_optional_keyword_parameter_node(node); end + + # def foo(bar = 1); end + # ^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1132 + def visit_optional_parameter_node(node); end + + # a or b + # ^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1138 + def visit_or_node(node); end + + # def foo(bar, *baz); end + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1144 + def visit_parameters_node(node); end + + # () + # ^^ + # + # (1) + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1182 + def visit_parentheses_node(node); end + + # foo => ^(bar) + # ^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1192 + def visit_pinned_expression_node(node); end + + # foo = 1 and bar => ^foo + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1198 + def visit_pinned_variable_node(node); end + + # END {} + # + # source://prism//lib/prism/translation/ruby_parser.rb#1207 + def visit_post_execution_node(node); end + + # BEGIN {} + # + # source://prism//lib/prism/translation/ruby_parser.rb#1212 + def visit_pre_execution_node(node); end + + # The top-level program node. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1217 + def visit_program_node(node); end + + # 0..5 + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1223 + def visit_range_node(node); end + + # 1r + # ^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1245 + def visit_rational_node(node); end + + # redo + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1251 + def visit_redo_node(node); end + + # /foo/ + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1257 + def visit_regular_expression_node(node); end + + # def foo(bar:); end + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1263 + def visit_required_keyword_parameter_node(node); end + + # def foo(bar); end + # ^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1269 + def visit_required_parameter_node(node); end + + # foo rescue bar + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1275 + def visit_rescue_modifier_node(node); end + + # begin; rescue; end + # ^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1281 + def visit_rescue_node(node); end + + # def foo(*bar); end + # ^^^^ + # + # def foo(*); end + # ^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1301 + def visit_rest_parameter_node(node); end + + # retry + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1307 + def visit_retry_node(node); end + + # return + # ^^^^^^ + # + # return 1 + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1316 + def visit_return_node(node); end + + # self + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1329 + def visit_self_node(node); end + + # A shareable constant. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1334 + def visit_shareable_constant_node(node); end + + # class << self; end + # ^^^^^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1340 + def visit_singleton_class_node(node); end + + # __ENCODING__ + # ^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1348 + def visit_source_encoding_node(node); end + + # __FILE__ + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1355 + def visit_source_file_node(node); end + + # __LINE__ + # ^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1361 + def visit_source_line_node(node); end + + # foo(*bar) + # ^^^^ + # + # def foo((bar, *baz)); end + # ^^^^ + # + # def foo(*); bar(*); end + # ^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1373 + def visit_splat_node(node); end + + # A list of statements. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1382 + def visit_statements_node(node); end + + # "foo" + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1394 + def visit_string_node(node); end + + # super(foo) + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1400 + def visit_super_node(node); end + + # :foo + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1414 + def visit_symbol_node(node); end + + # true + # ^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1420 + def visit_true_node(node); end + + # undef foo + # ^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1426 + def visit_undef_node(node); end + + # unless foo; bar end + # ^^^^^^^^^^^^^^^^^^^ + # + # bar unless foo + # ^^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1436 + def visit_unless_node(node); end + + # until foo; bar end + # ^^^^^^^^^^^^^^^^^ + # + # bar until foo + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1445 + def visit_until_node(node); end + + # case foo; when bar; end + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1451 + def visit_when_node(node); end + + # while foo; bar end + # ^^^^^^^^^^^^^^^^^^ + # + # bar while foo + # ^^^^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1460 + def visit_while_node(node); end + + # `foo` + # ^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1466 + def visit_x_string_node(node); end + + # yield + # ^^^^^ + # + # yield 1 + # ^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1482 + def visit_yield_node(node); end + + private + + # If a class variable is written within a method definition, it has a + # different type than everywhere else. + # + # source://prism//lib/prism/translation/ruby_parser.rb#403 + def class_variable_write_type; end + + # Create a new compiler with the given options. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1489 + def copy_compiler(in_def: T.unsafe(nil), in_pattern: T.unsafe(nil)); end + + # Call nodes with operators following them will either be op_asgn or + # op_asgn2 nodes. That is determined by their call operator and their + # right-hand side. + # + # @return [Boolean] + # + # source://prism//lib/prism/translation/ruby_parser.rb#308 + def op_asgn?(node); end + + # Call nodes with operators following them can use &. as an operator, + # which changes their type by prefixing "safe_". + # + # source://prism//lib/prism/translation/ruby_parser.rb#314 + def op_asgn_type(node, type); end + + # Create a new Sexp object from the given prism node and arguments. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1494 + def s(node, *arguments); end + + # Visit a block node, which will modify the AST by wrapping the given + # visited node in an iter node. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1504 + def visit_block(node, sexp, block); end + + # def foo((bar, baz)); end + # ^^^^^^^^^^ + # + # source://prism//lib/prism/translation/ruby_parser.rb#1159 + def visit_destructured_parameter(node); end + + # Visit the interpolated content of the string-like node. + # + # source://prism//lib/prism/translation/ruby_parser.rb#865 + def visit_interpolated_parts(parts); end + + # Pattern constants get wrapped in another layer of :const. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1525 + def visit_pattern_constant(node); end + + # If the bounds of a range node are empty parentheses, then they do not + # get replaced by their usual s(:nil), but instead are s(:begin). + # + # source://prism//lib/prism/translation/ruby_parser.rb#1235 + def visit_range_bounds_node(node); end + + # Visit the value of a write, which will be on the right-hand side of + # a write operator. Because implicit arrays can have splats, those could + # potentially be wrapped in an svalue node. + # + # source://prism//lib/prism/translation/ruby_parser.rb#1539 + def visit_write_value(node); end +end + # Represents the use of the literal `true` keyword. # # true # ^^^^ # -# source://prism//lib/prism/node.rb#18098 +# source://prism//lib/prism/node.rb#18041 class Prism::TrueNode < ::Prism::Node # def initialize: (Location location) -> void # # @return [TrueNode] a new instance of TrueNode # - # source://prism//lib/prism/node.rb#18100 + # source://prism//lib/prism/node.rb#18043 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 + # source://prism//lib/prism/node.rb#18116 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18107 + # source://prism//lib/prism/node.rb#18049 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#18112 + # source://prism//lib/prism/node.rb#18054 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#18122 + # source://prism//lib/prism/node.rb#18064 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#18117 + # source://prism//lib/prism/node.rb#18059 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def copy: (?location: Location) -> TrueNode # - # source://prism//lib/prism/node.rb#18127 + # source://prism//lib/prism/node.rb#18069 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#18112 + # source://prism//lib/prism/node.rb#18054 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#18135 + # source://prism//lib/prism/node.rb#18077 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -35790,7 +37007,7 @@ class Prism::TrueNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#18140 + # source://prism//lib/prism/node.rb#18082 sig { override.returns(String) } def inspect; end @@ -35809,7 +37026,7 @@ class Prism::TrueNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18158 + # source://prism//lib/prism/node.rb#18100 sig { override.returns(Symbol) } def type; end @@ -35821,7 +37038,7 @@ class Prism::TrueNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18168 + # source://prism//lib/prism/node.rb#18110 def type; end end end @@ -35831,13 +37048,13 @@ end # undef :foo, :bar, :baz # ^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#18183 +# source://prism//lib/prism/node.rb#18125 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#18185 + # source://prism//lib/prism/node.rb#18127 sig do params( source: Prism::Source, @@ -35851,36 +37068,36 @@ class Prism::UndefNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#18217 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18194 + # source://prism//lib/prism/node.rb#18135 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#18199 + # source://prism//lib/prism/node.rb#18140 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#18209 + # source://prism//lib/prism/node.rb#18150 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#18204 + # source://prism//lib/prism/node.rb#18145 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#18214 + # source://prism//lib/prism/node.rb#18155 sig do params( names: T::Array[T.any(Prism::SymbolNode, Prism::InterpolatedSymbolNode)], @@ -35893,13 +37110,13 @@ class Prism::UndefNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18199 + # source://prism//lib/prism/node.rb#18140 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#18222 + # source://prism//lib/prism/node.rb#18163 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -35908,25 +37125,25 @@ class Prism::UndefNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#18242 + # source://prism//lib/prism/node.rb#18183 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18237 + # source://prism//lib/prism/node.rb#18178 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18230 + # source://prism//lib/prism/node.rb#18171 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader names: Array[SymbolNode | InterpolatedSymbolNode] # - # source://prism//lib/prism/node.rb#18227 + # source://prism//lib/prism/node.rb#18168 sig { returns(T::Array[T.any(Prism::SymbolNode, Prism::InterpolatedSymbolNode)]) } def names; end @@ -35945,7 +37162,7 @@ class Prism::UndefNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18260 + # source://prism//lib/prism/node.rb#18201 sig { override.returns(Symbol) } def type; end @@ -35957,7 +37174,7 @@ class Prism::UndefNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18270 + # source://prism//lib/prism/node.rb#18211 def type; end end end @@ -35970,13 +37187,13 @@ end # unless foo then bar end # ^^^^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#18291 +# source://prism//lib/prism/node.rb#18232 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#18293 + # source://prism//lib/prism/node.rb#18234 sig do params( source: Prism::Source, @@ -35994,30 +37211,30 @@ class Prism::UnlessNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#18399 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18306 + # source://prism//lib/prism/node.rb#18246 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#18315 + # source://prism//lib/prism/node.rb#18251 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#18329 + # source://prism//lib/prism/node.rb#18265 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#18320 + # source://prism//lib/prism/node.rb#18256 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end @@ -36026,13 +37243,13 @@ class Prism::UnlessNode < ::Prism::Node # unless cond then bar else baz end # ^^^^^^^^ # - # source://prism//lib/prism/node.rb#18393 + # source://prism//lib/prism/node.rb#18331 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#18334 + # source://prism//lib/prism/node.rb#18270 sig do params( keyword_loc: Prism::Location, @@ -36049,19 +37266,19 @@ class Prism::UnlessNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18315 + # source://prism//lib/prism/node.rb#18251 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#18342 + # source://prism//lib/prism/node.rb#18278 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#18422 + # source://prism//lib/prism/node.rb#18360 sig { returns(T.nilable(String)) } def end_keyword; end @@ -36070,7 +37287,7 @@ class Prism::UnlessNode < ::Prism::Node # unless cond then bar end # ^^^ # - # source://prism//lib/prism/node.rb#18399 + # source://prism//lib/prism/node.rb#18337 sig { returns(T.nilable(Prism::Location)) } def end_keyword_loc; end @@ -36079,13 +37296,13 @@ class Prism::UnlessNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#18427 + # source://prism//lib/prism/node.rb#18365 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18412 + # source://prism//lib/prism/node.rb#18350 sig { returns(String) } def keyword; end @@ -36097,10 +37314,13 @@ class Prism::UnlessNode < ::Prism::Node # bar unless cond # ^^^^^^ # - # source://prism//lib/prism/node.rb#18353 + # source://prism//lib/prism/node.rb#18289 sig { returns(Prism::Location) } def keyword_loc; end + # source://prism//lib/prism/parse_result/newlines.rb#97 + def newline!(lines); end + # 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). # # unless cond then bar end @@ -36109,33 +37329,32 @@ class Prism::UnlessNode < ::Prism::Node # bar unless cond # ^^^^ # - # source://prism//lib/prism/node.rb#18366 + # source://prism//lib/prism/node.rb#18302 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#18310 - def set_newline_flag(newline_marked); end - # The body of statements that will executed if the unless condition is # falsey. Will be `nil` if no body is provided. # # unless cond then bar end # ^^^ # - # source://prism//lib/prism/node.rb#18387 + # source://prism//lib/prism/node.rb#18325 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#18417 + # source://prism//lib/prism/node.rb#18355 sig { returns(T.nilable(String)) } def then_keyword; end # The location of the `then` keyword, if present. - # unless cond then bar end ^^^^ # - # source://prism//lib/prism/node.rb#18370 + # unless cond then bar end + # ^^^^ + # + # source://prism//lib/prism/node.rb#18308 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -36154,7 +37373,7 @@ class Prism::UnlessNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18445 + # source://prism//lib/prism/node.rb#18383 sig { override.returns(Symbol) } def type; end @@ -36166,7 +37385,7 @@ class Prism::UnlessNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18455 + # source://prism//lib/prism/node.rb#18393 def type; end end end @@ -36179,13 +37398,13 @@ end # until foo do bar end # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#18479 +# source://prism//lib/prism/node.rb#18417 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#18481 + # source://prism//lib/prism/node.rb#18419 sig do params( source: Prism::Source, @@ -36202,12 +37421,12 @@ class Prism::UntilNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#18545 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18493 + # source://prism//lib/prism/node.rb#18430 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -36215,43 +37434,43 @@ class Prism::UntilNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18563 + # source://prism//lib/prism/node.rb#18496 sig { returns(T::Boolean) } def begin_modifier?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18502 + # source://prism//lib/prism/node.rb#18435 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#18573 + # source://prism//lib/prism/node.rb#18506 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#18544 + # source://prism//lib/prism/node.rb#18477 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18515 + # source://prism//lib/prism/node.rb#18448 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#18507 + # source://prism//lib/prism/node.rb#18440 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#18520 + # source://prism//lib/prism/node.rb#18453 sig do params( flags: Integer, @@ -36267,13 +37486,13 @@ class Prism::UntilNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18502 + # source://prism//lib/prism/node.rb#18435 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#18528 + # source://prism//lib/prism/node.rb#18461 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -36282,34 +37501,34 @@ class Prism::UntilNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#18578 + # source://prism//lib/prism/node.rb#18511 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18568 + # source://prism//lib/prism/node.rb#18501 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18537 + # source://prism//lib/prism/node.rb#18470 sig { returns(Prism::Location) } def keyword_loc; end + # source://prism//lib/prism/parse_result/newlines.rb#103 + def newline!(lines); end + # attr_reader predicate: Prism::node # - # source://prism//lib/prism/node.rb#18557 + # source://prism//lib/prism/node.rb#18490 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#18497 - def set_newline_flag(newline_marked); end - # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#18560 + # source://prism//lib/prism/node.rb#18493 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -36328,7 +37547,7 @@ class Prism::UntilNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18596 + # source://prism//lib/prism/node.rb#18529 sig { override.returns(Symbol) } def type; end @@ -36336,7 +37555,7 @@ class Prism::UntilNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#18533 + # source://prism//lib/prism/node.rb#18466 sig { returns(Integer) } def flags; end @@ -36348,7 +37567,7 @@ class Prism::UntilNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18606 + # source://prism//lib/prism/node.rb#18539 def type; end end end @@ -36899,6 +38118,12 @@ class Prism::Visitor < ::Prism::BasicVisitor sig { params(node: Prism::InterpolatedXStringNode).void } def visit_interpolated_x_string_node(node); end + # Visit a ItLocalVariableReadNode node + # + # source://prism//lib/prism/visitor.rb#29 + sig { params(node: Prism::ItLocalVariableReadNode).void } + def visit_it_local_variable_read_node(node); end + # Visit a ItParametersNode node # # source://prism//lib/prism/visitor.rb#29 @@ -37285,13 +38510,13 @@ end # ^^^^^^^^^ # end # -# source://prism//lib/prism/node.rb#18628 +# source://prism//lib/prism/node.rb#18561 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#18630 + # source://prism//lib/prism/node.rb#18563 sig do params( source: Prism::Source, @@ -37307,42 +38532,42 @@ class Prism::WhenNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#18679 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18641 + # source://prism//lib/prism/node.rb#18573 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#18646 + # source://prism//lib/prism/node.rb#18578 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#18659 + # source://prism//lib/prism/node.rb#18591 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#18651 + # source://prism//lib/prism/node.rb#18583 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # attr_reader conditions: Array[Prism::node] # - # source://prism//lib/prism/node.rb#18684 + # source://prism//lib/prism/node.rb#18616 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#18664 + # source://prism//lib/prism/node.rb#18596 sig do params( keyword_loc: Prism::Location, @@ -37357,13 +38582,13 @@ class Prism::WhenNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18646 + # source://prism//lib/prism/node.rb#18578 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#18672 + # source://prism//lib/prism/node.rb#18604 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -37372,37 +38597,37 @@ class Prism::WhenNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#18713 + # source://prism//lib/prism/node.rb#18645 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18703 + # source://prism//lib/prism/node.rb#18635 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18677 + # source://prism//lib/prism/node.rb#18609 sig { returns(Prism::Location) } def keyword_loc; end # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#18700 + # source://prism//lib/prism/node.rb#18632 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end # def then_keyword: () -> String? # - # source://prism//lib/prism/node.rb#18708 + # source://prism//lib/prism/node.rb#18640 sig { returns(T.nilable(String)) } def then_keyword; end # attr_reader then_keyword_loc: Location? # - # source://prism//lib/prism/node.rb#18687 + # source://prism//lib/prism/node.rb#18619 sig { returns(T.nilable(Prism::Location)) } def then_keyword_loc; end @@ -37421,7 +38646,7 @@ class Prism::WhenNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18731 + # source://prism//lib/prism/node.rb#18663 sig { override.returns(Symbol) } def type; end @@ -37433,7 +38658,7 @@ class Prism::WhenNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18741 + # source://prism//lib/prism/node.rb#18673 def type; end end end @@ -37446,13 +38671,13 @@ end # while foo do bar end # ^^^^^^^^^^^^^^^^^^^^ # -# source://prism//lib/prism/node.rb#18764 +# source://prism//lib/prism/node.rb#18696 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#18766 + # source://prism//lib/prism/node.rb#18698 sig do params( source: Prism::Source, @@ -37469,12 +38694,12 @@ class Prism::WhileNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#18824 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18778 + # source://prism//lib/prism/node.rb#18709 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end @@ -37482,43 +38707,43 @@ class Prism::WhileNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18848 + # source://prism//lib/prism/node.rb#18775 sig { returns(T::Boolean) } def begin_modifier?; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18787 + # source://prism//lib/prism/node.rb#18714 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String? # - # source://prism//lib/prism/node.rb#18858 + # source://prism//lib/prism/node.rb#18785 sig { returns(T.nilable(String)) } def closing; end # attr_reader closing_loc: Location? # - # source://prism//lib/prism/node.rb#18829 + # source://prism//lib/prism/node.rb#18756 sig { returns(T.nilable(Prism::Location)) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18800 + # source://prism//lib/prism/node.rb#18727 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#18792 + # source://prism//lib/prism/node.rb#18719 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#18805 + # source://prism//lib/prism/node.rb#18732 sig do params( flags: Integer, @@ -37534,13 +38759,13 @@ class Prism::WhileNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18787 + # source://prism//lib/prism/node.rb#18714 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#18813 + # source://prism//lib/prism/node.rb#18740 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -37549,34 +38774,34 @@ class Prism::WhileNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#18863 + # source://prism//lib/prism/node.rb#18790 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#18853 + # source://prism//lib/prism/node.rb#18780 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#18822 + # source://prism//lib/prism/node.rb#18749 sig { returns(Prism::Location) } def keyword_loc; end + # source://prism//lib/prism/parse_result/newlines.rb#109 + def newline!(lines); end + # attr_reader predicate: Prism::node # - # source://prism//lib/prism/node.rb#18842 + # source://prism//lib/prism/node.rb#18769 sig { returns(Prism::Node) } def predicate; end - # source://prism//lib/prism/node.rb#18782 - def set_newline_flag(newline_marked); end - # attr_reader statements: StatementsNode? # - # source://prism//lib/prism/node.rb#18845 + # source://prism//lib/prism/node.rb#18772 sig { returns(T.nilable(Prism::StatementsNode)) } def statements; end @@ -37595,7 +38820,7 @@ class Prism::WhileNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#18881 + # source://prism//lib/prism/node.rb#18808 sig { override.returns(Symbol) } def type; end @@ -37603,7 +38828,7 @@ class Prism::WhileNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#18818 + # source://prism//lib/prism/node.rb#18745 sig { returns(Integer) } def flags; end @@ -37615,7 +38840,7 @@ class Prism::WhileNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#18891 + # source://prism//lib/prism/node.rb#18818 def type; end end end @@ -37625,7 +38850,7 @@ end # `foo` # ^^^^^ # -# source://prism//lib/prism/node.rb#18911 +# source://prism//lib/prism/node.rb#18838 class Prism::XStringNode < ::Prism::Node include ::Prism::HeredocQuery @@ -37633,7 +38858,7 @@ class Prism::XStringNode < ::Prism::Node # # @return [XStringNode] a new instance of XStringNode # - # source://prism//lib/prism/node.rb#18913 + # source://prism//lib/prism/node.rb#18840 sig do params( source: Prism::Source, @@ -37650,60 +38875,60 @@ class Prism::XStringNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#18971 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#18925 + # source://prism//lib/prism/node.rb#18851 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#18930 + # source://prism//lib/prism/node.rb#18856 sig { override.returns(T::Array[T.nilable(Prism::Node)]) } def child_nodes; end # def closing: () -> String # - # source://prism//lib/prism/node.rb#19006 + # source://prism//lib/prism/node.rb#18932 sig { returns(String) } def closing; end # attr_reader closing_loc: Location # - # source://prism//lib/prism/node.rb#18976 + # source://prism//lib/prism/node.rb#18902 sig { returns(Prism::Location) } def closing_loc; end # def comment_targets: () -> Array[Node | Location] # - # source://prism//lib/prism/node.rb#18940 + # source://prism//lib/prism/node.rb#18866 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#18935 + # source://prism//lib/prism/node.rb#18861 sig { override.returns(T::Array[Prism::Node]) } def compact_child_nodes; end # def content: () -> String # - # source://prism//lib/prism/node.rb#19001 + # source://prism//lib/prism/node.rb#18927 sig { returns(String) } def content; end # attr_reader content_loc: Location # - # source://prism//lib/prism/node.rb#18969 + # source://prism//lib/prism/node.rb#18895 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#18945 + # source://prism//lib/prism/node.rb#18871 sig do params( flags: Integer, @@ -37719,13 +38944,13 @@ class Prism::XStringNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#18930 + # source://prism//lib/prism/node.rb#18856 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#18953 + # source://prism//lib/prism/node.rb#18879 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -37736,7 +38961,7 @@ class Prism::XStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18991 + # source://prism//lib/prism/node.rb#18917 sig { returns(T::Boolean) } def forced_binary_encoding?; end @@ -37744,7 +38969,7 @@ class Prism::XStringNode < ::Prism::Node # # @return [Boolean] # - # source://prism//lib/prism/node.rb#18986 + # source://prism//lib/prism/node.rb#18912 sig { returns(T::Boolean) } def forced_utf8_encoding?; end @@ -37753,26 +38978,26 @@ class Prism::XStringNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#19011 + # source://prism//lib/prism/node.rb#18937 sig { override.returns(String) } def inspect; end # def opening: () -> String # - # source://prism//lib/prism/node.rb#18996 + # source://prism//lib/prism/node.rb#18922 sig { returns(String) } def opening; end # attr_reader opening_loc: Location # - # source://prism//lib/prism/node.rb#18962 + # source://prism//lib/prism/node.rb#18888 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#83 + # source://prism//lib/prism/node_ext.rb#86 sig { returns(Prism::InterpolatedXStringNode) } def to_interpolated; end @@ -37791,13 +39016,13 @@ class Prism::XStringNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#19029 + # source://prism//lib/prism/node.rb#18955 sig { override.returns(Symbol) } def type; end # attr_reader unescaped: String # - # source://prism//lib/prism/node.rb#18983 + # source://prism//lib/prism/node.rb#18909 sig { returns(String) } def unescaped; end @@ -37805,7 +39030,7 @@ class Prism::XStringNode < ::Prism::Node # protected attr_reader flags: Integer # - # source://prism//lib/prism/node.rb#18958 + # source://prism//lib/prism/node.rb#18884 sig { returns(Integer) } def flags; end @@ -37817,7 +39042,7 @@ class Prism::XStringNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#19039 + # source://prism//lib/prism/node.rb#18965 def type; end end end @@ -37827,13 +39052,13 @@ end # yield 1 # ^^^^^^^ # -# source://prism//lib/prism/node.rb#19059 +# source://prism//lib/prism/node.rb#18985 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#19061 + # source://prism//lib/prism/node.rb#18987 sig do params( source: Prism::Source, @@ -37849,42 +39074,42 @@ class Prism::YieldNode < ::Prism::Node # 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 + # source://prism//lib/prism/node.rb#19117 def ===(other); end # def accept: (Visitor visitor) -> void # - # source://prism//lib/prism/node.rb#19072 + # source://prism//lib/prism/node.rb#18997 sig { override.params(visitor: Prism::Visitor).returns(T.untyped) } def accept(visitor); end # attr_reader arguments: ArgumentsNode? # - # source://prism//lib/prism/node.rb#19127 + # source://prism//lib/prism/node.rb#19052 sig { returns(T.nilable(Prism::ArgumentsNode)) } def arguments; end # def child_nodes: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#19077 + # source://prism//lib/prism/node.rb#19002 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#19089 + # source://prism//lib/prism/node.rb#19014 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#19082 + # source://prism//lib/prism/node.rb#19007 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#19094 + # source://prism//lib/prism/node.rb#19019 sig do params( keyword_loc: Prism::Location, @@ -37899,13 +39124,13 @@ class Prism::YieldNode < ::Prism::Node # def child_nodes: () -> Array[nil | Node] # def deconstruct: () -> Array[nil | Node] # - # source://prism//lib/prism/node.rb#19077 + # source://prism//lib/prism/node.rb#19002 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#19102 + # source://prism//lib/prism/node.rb#19027 sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) } def deconstruct_keys(keys); end @@ -37914,43 +39139,43 @@ class Prism::YieldNode < ::Prism::Node # def inspect -> String # - # source://prism//lib/prism/node.rb#19158 + # source://prism//lib/prism/node.rb#19083 sig { override.returns(String) } def inspect; end # def keyword: () -> String # - # source://prism//lib/prism/node.rb#19143 + # source://prism//lib/prism/node.rb#19068 sig { returns(String) } def keyword; end # attr_reader keyword_loc: Location # - # source://prism//lib/prism/node.rb#19107 + # source://prism//lib/prism/node.rb#19032 sig { returns(Prism::Location) } def keyword_loc; end # def lparen: () -> String? # - # source://prism//lib/prism/node.rb#19148 + # source://prism//lib/prism/node.rb#19073 sig { returns(T.nilable(String)) } def lparen; end # attr_reader lparen_loc: Location? # - # source://prism//lib/prism/node.rb#19114 + # source://prism//lib/prism/node.rb#19039 sig { returns(T.nilable(Prism::Location)) } def lparen_loc; end # def rparen: () -> String? # - # source://prism//lib/prism/node.rb#19153 + # source://prism//lib/prism/node.rb#19078 sig { returns(T.nilable(String)) } def rparen; end # attr_reader rparen_loc: Location? # - # source://prism//lib/prism/node.rb#19130 + # source://prism//lib/prism/node.rb#19055 sig { returns(T.nilable(Prism::Location)) } def rparen_loc; end @@ -37969,7 +39194,7 @@ class Prism::YieldNode < ::Prism::Node # # def type: () -> Symbol # - # source://prism//lib/prism/node.rb#19176 + # source://prism//lib/prism/node.rb#19101 sig { override.returns(Symbol) } def type; end @@ -37981,7 +39206,7 @@ class Prism::YieldNode < ::Prism::Node # # def self.type: () -> Symbol # - # source://prism//lib/prism/node.rb#19186 + # source://prism//lib/prism/node.rb#19111 def type; end end end diff --git a/sorbet/rbi/gems/psych@5.1.2.rbi b/sorbet/rbi/gems/psych@5.1.2.rbi index db4b64ec..e8de68e8 100644 --- a/sorbet/rbi/gems/psych@5.1.2.rbi +++ b/sorbet/rbi/gems/psych@5.1.2.rbi @@ -5,6 +5,7 @@ # Please instead update this file by running `bin/tapioca gem psych`. +# source://psych//lib/psych/core_ext.rb#2 class Object < ::BasicObject include ::Kernel include ::PP::ObjectMixin @@ -14,11 +15,11 @@ class Object < ::BasicObject # Convert an object to YAML. See Psych.dump for more information on the # available +options+. # - # source://psych//psych/core_ext.rb#12 + # source://psych//lib/psych/core_ext.rb#12 def to_yaml(options = T.unsafe(nil)); end class << self - # source://psych//psych/core_ext.rb#3 + # source://psych//lib/psych/core_ext.rb#3 def yaml_tag(url); end end end @@ -224,28 +225,30 @@ end # # You can instantiate an Emitter manually # Psych::Visitors::ToRuby.new.accept(parser.handler.root.first) # # => "a" +# +# source://psych//lib/psych/versions.rb#3 module Psych extend ::Bootsnap::CompileCache::YAML::Psych4::Patch class << self - # source://psych//psych.rb#682 + # source://psych//lib/psych.rb#682 def add_builtin_type(type_tag, &block); end # :stopdoc: # - # source://psych//psych.rb#676 + # source://psych//lib/psych.rb#676 def add_domain_type(domain, type_tag, &block); end - # source://psych//psych.rb#692 + # source://psych//lib/psych.rb#692 def add_tag(tag, klass); end - # source://psych//psych.rb#708 + # source://psych//lib/psych.rb#708 def config; end - # source://psych//psych.rb#720 + # source://psych//lib/psych.rb#720 def domain_types; end - # source://psych//psych.rb#732 + # source://psych//lib/psych.rb#732 def domain_types=(value); end # call-seq: @@ -290,7 +293,7 @@ module Psych # # Dump an array to an IO with indentation set # Psych.dump(['a', ['b']], StringIO.new, indentation: 3) # - # source://psych//psych.rb#505 + # source://psych//lib/psych.rb#505 def dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Dump a list of objects as separate documents to a document stream. @@ -299,13 +302,13 @@ module Psych # # Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n" # - # source://psych//psych.rb#595 + # source://psych//lib/psych.rb#595 def dump_stream(*objects); end - # source://psych//psych.rb#716 + # source://psych//lib/psych.rb#716 def dump_tags; end - # source://psych//psych.rb#728 + # source://psych//lib/psych.rb#728 def dump_tags=(value); end # Load +yaml+ in to a Ruby data structure. If multiple documents are @@ -337,7 +340,7 @@ module Psych # Raises a TypeError when `yaml` parameter is NilClass. This method is # similar to `safe_load` except that `Symbol` objects are allowed by default. # - # source://psych//psych.rb#368 + # source://psych//lib/psych.rb#368 def load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Load multiple documents given in +yaml+. Returns the parsed documents @@ -354,13 +357,13 @@ module Psych # end # list # => ['foo', 'bar'] # - # source://psych//psych.rb#626 + # source://psych//lib/psych.rb#626 def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end - # source://psych//psych.rb#712 + # source://psych//lib/psych.rb#712 def load_tags; end - # source://psych//psych.rb#724 + # source://psych//lib/psych.rb#724 def load_tags=(value); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document. @@ -382,14 +385,14 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//psych.rb#398 + # source://psych//lib/psych.rb#398 def parse(yaml, filename: T.unsafe(nil)); end # Parse a file at +filename+. Returns the Psych::Nodes::Document. # # Raises a Psych::SyntaxError when a YAML syntax error is detected. # - # source://psych//psych.rb#410 + # source://psych//lib/psych.rb#410 def parse_file(filename, fallback: T.unsafe(nil)); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream. @@ -421,15 +424,15 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//psych.rb#452 + # source://psych//lib/psych.rb#452 def parse_stream(yaml, filename: T.unsafe(nil), &block); end # Returns a default parser # - # source://psych//psych.rb#419 + # source://psych//lib/psych.rb#419 def parser; end - # source://psych//psych.rb#688 + # source://psych//lib/psych.rb#688 def remove_type(type_tag); end # call-seq: @@ -494,7 +497,7 @@ module Psych # # Dump an array to an IO with indentation set # Psych.safe_dump(['a', ['b']], StringIO.new, indentation: 3) # - # source://psych//psych.rb#578 + # source://psych//lib/psych.rb#578 def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Safely load the yaml string in +yaml+. By default, only the following @@ -541,7 +544,7 @@ module Psych # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"} # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"} # - # source://psych//psych.rb#322 + # source://psych//lib/psych.rb#322 def safe_load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Safely loads the document contained in +filename+. Returns the yaml contained in @@ -549,12 +552,12 @@ module Psych # the specified +fallback+ return value, which defaults to +false+. # See safe_load for options. # - # source://psych//psych.rb#658 + # source://psych//lib/psych.rb#658 def safe_load_file(filename, **kwargs); end # Dump Ruby +object+ to a JSON string. # - # source://psych//psych.rb#605 + # source://psych//lib/psych.rb#605 def to_json(object); end # Load +yaml+ in to a Ruby data structure. If multiple documents are @@ -589,99 +592,105 @@ module Psych # YAML documents that are supplied via user input. Instead, please use the # load method or the safe_load method. # - # source://psych//psych.rb#271 + # source://psych//lib/psych.rb#271 def unsafe_load(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end end end # Subclasses `BadAlias` for backwards compatibility +# +# source://psych//lib/psych/exception.rb#10 class Psych::AliasesNotEnabled < ::Psych::BadAlias # @return [AliasesNotEnabled] a new instance of AliasesNotEnabled # - # source://psych//psych/exception.rb#11 + # source://psych//lib/psych/exception.rb#11 def initialize; end end # Subclasses `BadAlias` for backwards compatibility +# +# source://psych//lib/psych/exception.rb#17 class Psych::AnchorNotDefined < ::Psych::BadAlias # @return [AnchorNotDefined] a new instance of AnchorNotDefined # - # source://psych//psych/exception.rb#18 + # source://psych//lib/psych/exception.rb#18 def initialize(anchor_name); end end +# source://psych//lib/psych/class_loader.rb#6 class Psych::ClassLoader # @return [ClassLoader] a new instance of ClassLoader # - # source://psych//psych/class_loader.rb#21 + # source://psych//lib/psych/class_loader.rb#21 def initialize; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def big_decimal; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def complex; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def date; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def date_time; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def exception; end - # source://psych//psych/class_loader.rb#25 + # source://psych//lib/psych/class_loader.rb#25 def load(klassname); end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def object; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def psych_omap; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def psych_set; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def range; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def rational; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def regexp; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def struct; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def symbol; end - # source://psych//psych/class_loader.rb#31 + # source://psych//lib/psych/class_loader.rb#31 def symbolize(sym); end private - # source://psych//psych/class_loader.rb#47 + # source://psych//lib/psych/class_loader.rb#47 def find(klassname); end - # source://psych//psych/class_loader.rb#51 + # source://psych//lib/psych/class_loader.rb#51 def resolve(klassname); end end +# source://psych//lib/psych/class_loader.rb#76 class Psych::ClassLoader::Restricted < ::Psych::ClassLoader # @return [Restricted] a new instance of Restricted # - # source://psych//psych/class_loader.rb#77 + # source://psych//lib/psych/class_loader.rb#77 def initialize(classes, symbols); end - # source://psych//psych/class_loader.rb#83 + # source://psych//lib/psych/class_loader.rb#83 def symbolize(sym); end private - # source://psych//psych/class_loader.rb#95 + # source://psych//lib/psych/class_loader.rb#95 def find(klassname); end end @@ -690,31 +699,33 @@ end # automatically assumes a Psych::Nodes::Mapping is being emitted. Other # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are # called, respectively. +# +# source://psych//lib/psych/coder.rb#9 class Psych::Coder # @return [Coder] a new instance of Coder # - # source://psych//psych/coder.rb#13 + # source://psych//lib/psych/coder.rb#13 def initialize(tag); end - # source://psych//psych/coder.rb#84 + # source://psych//lib/psych/coder.rb#84 def [](k); end - # source://psych//psych/coder.rb#78 + # source://psych//lib/psych/coder.rb#78 def []=(k, v); end - # source://psych//psych/coder.rb#78 + # source://psych//lib/psych/coder.rb#78 def add(k, v); end # Returns the value of attribute implicit. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def implicit; end # Sets the attribute implicit # # @param value the value to set the attribute implicit to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def implicit=(_arg0); end # Emit a map. The coder will be yielded to the block. @@ -722,98 +733,99 @@ class Psych::Coder # @yield [_self] # @yieldparam _self [Psych::Coder] the object that the method was called on # - # source://psych//psych/coder.rb#34 + # source://psych//lib/psych/coder.rb#34 def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end # Emit a map with +value+ # - # source://psych//psych/coder.rb#73 + # source://psych//lib/psych/coder.rb#73 def map=(map); end # Returns the value of attribute object. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def object; end # Sets the attribute object # # @param value the value to set the attribute object to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def object=(_arg0); end # Emit a sequence with +map+ and +tag+ # - # source://psych//psych/coder.rb#54 + # source://psych//lib/psych/coder.rb#54 def represent_map(tag, map); end # Emit an arbitrary object +obj+ and +tag+ # - # source://psych//psych/coder.rb#60 + # source://psych//lib/psych/coder.rb#60 def represent_object(tag, obj); end # Emit a scalar with +value+ and +tag+ # - # source://psych//psych/coder.rb#42 + # source://psych//lib/psych/coder.rb#42 def represent_scalar(tag, value); end # Emit a sequence with +list+ and +tag+ # - # source://psych//psych/coder.rb#48 + # source://psych//lib/psych/coder.rb#48 def represent_seq(tag, list); end - # source://psych//psych/coder.rb#24 + # source://psych//lib/psych/coder.rb#24 def scalar(*args); end # Emit a scalar with +value+ # - # source://psych//psych/coder.rb#67 + # source://psych//lib/psych/coder.rb#67 def scalar=(value); end # Returns the value of attribute seq. # - # source://psych//psych/coder.rb#11 + # source://psych//lib/psych/coder.rb#11 def seq; end # Emit a sequence of +list+ # - # source://psych//psych/coder.rb#90 + # source://psych//lib/psych/coder.rb#90 def seq=(list); end # Returns the value of attribute style. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def style; end # Sets the attribute style # # @param value the value to set the attribute style to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def style=(_arg0); end # Returns the value of attribute tag. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def tag; end # Sets the attribute tag # # @param value the value to set the attribute tag to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def tag=(_arg0); end # Returns the value of attribute type. # - # source://psych//psych/coder.rb#11 + # source://psych//lib/psych/coder.rb#11 def type; end end +# source://psych//lib/psych/exception.rb#23 class Psych::DisallowedClass < ::Psych::Exception # @return [DisallowedClass] a new instance of DisallowedClass # - # source://psych//psych/exception.rb#24 + # source://psych//lib/psych/exception.rb#24 def initialize(action, klass_name); end end @@ -826,6 +838,8 @@ end # event handlers. # # See Psych::Parser for more details +# +# source://psych//lib/psych/handler.rb#13 class Psych::Handler # Called when an alias is found to +anchor+. +anchor+ will be the name # of the anchor found. @@ -841,13 +855,13 @@ class Psych::Handler # &ponies is the anchor, *ponies is the alias. In this case, alias is # called with "ponies". # - # source://psych//psych/handler.rb#110 + # source://psych//lib/psych/handler.rb#110 def alias(anchor); end # Called when an empty event happens. (Which, as far as I can tell, is # never). # - # source://psych//psych/handler.rb#236 + # source://psych//lib/psych/handler.rb#236 def empty; end # Called with the document ends. +implicit+ is a boolean value indicating @@ -868,27 +882,27 @@ class Psych::Handler # # +implicit+ will be false. # - # source://psych//psych/handler.rb#93 + # source://psych//lib/psych/handler.rb#93 def end_document(implicit); end # Called when a map ends # - # source://psych//psych/handler.rb#230 + # source://psych//lib/psych/handler.rb#230 def end_mapping; end # Called when a sequence ends. # - # source://psych//psych/handler.rb#191 + # source://psych//lib/psych/handler.rb#191 def end_sequence; end # Called when the YAML stream ends # - # source://psych//psych/handler.rb#241 + # source://psych//lib/psych/handler.rb#241 def end_stream; end # Called before each event with line/column information. # - # source://psych//psych/handler.rb#246 + # source://psych//lib/psych/handler.rb#246 def event_location(start_line, start_column, end_line, end_column); end # Called when a scalar +value+ is found. The scalar may have an @@ -927,7 +941,7 @@ class Psych::Handler # ["many lines", nil, nil, true, false, 1 ] # ["many\nnewlines\n", nil, nil, false, true, 4 ] # - # source://psych//psych/handler.rb#150 + # source://psych//lib/psych/handler.rb#150 def scalar(value, anchor, tag, plain, quoted, style); end # Called when the document starts with the declared +version+, @@ -952,7 +966,7 @@ class Psych::Handler # tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]] # implicit # => false # - # source://psych//psych/handler.rb#72 + # source://psych//lib/psych/handler.rb#72 def start_document(version, tag_directives, implicit); end # Called when a map starts. @@ -985,7 +999,7 @@ class Psych::Handler # [nil, "tag:yaml.org,2002:map", false, 2 ] # ["pewpew", nil, true, 1 ] # - # source://psych//psych/handler.rb#225 + # source://psych//lib/psych/handler.rb#225 def start_mapping(anchor, tag, implicit, style); end # Called when a sequence is started. @@ -1020,7 +1034,7 @@ class Psych::Handler # [nil, "tag:yaml.org,2002:seq", false, 2 ] # ["pewpew", nil, true, 1 ] # - # source://psych//psych/handler.rb#186 + # source://psych//lib/psych/handler.rb#186 def start_sequence(anchor, tag, implicit, style); end # Called with +encoding+ when the YAML stream starts. This method is @@ -1028,61 +1042,64 @@ class Psych::Handler # # See the constants in Psych::Parser for the possible values of +encoding+. # - # source://psych//psych/handler.rb#47 + # source://psych//lib/psych/handler.rb#47 def start_stream(encoding); end # Is this handler a streaming handler? # # @return [Boolean] # - # source://psych//psych/handler.rb#251 + # source://psych//lib/psych/handler.rb#251 def streaming?; end end # Configuration options for dumping YAML. +# +# source://psych//lib/psych/handler.rb#16 class Psych::Handler::DumperOptions # @return [DumperOptions] a new instance of DumperOptions # - # source://psych//psych/handler.rb#19 + # source://psych//lib/psych/handler.rb#19 def initialize; end # Returns the value of attribute canonical. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def canonical; end # Sets the attribute canonical # # @param value the value to set the attribute canonical to. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def canonical=(_arg0); end # Returns the value of attribute indentation. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def indentation; end # Sets the attribute indentation # # @param value the value to set the attribute indentation to. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def indentation=(_arg0); end # Returns the value of attribute line_width. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def line_width; end # Sets the attribute line_width # # @param value the value to set the attribute line_width to. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def line_width=(_arg0); end end +# source://psych//lib/psych/json/stream.rb#7 class Psych::JSON::Stream < ::Psych::Visitors::JSONTree include ::Psych::Streaming extend ::Psych::Streaming::ClassMethods @@ -1116,28 +1133,30 @@ end # # Psych uses Psych::Parser in combination with Psych::TreeBuilder to # construct an AST of the parsed YAML document. +# +# source://psych//lib/psych/parser.rb#33 class Psych::Parser # Creates a new Psych::Parser instance with +handler+. YAML events will # be called on +handler+. See Psych::Parser for more details. # # @return [Parser] a new instance of Parser # - # source://psych//psych/parser.rb#47 + # source://psych//lib/psych/parser.rb#47 def initialize(handler = T.unsafe(nil)); end # Set the encoding for this parser to +encoding+ # - # source://psych//psych/parser.rb#41 + # source://psych//lib/psych/parser.rb#41 def external_encoding=(_arg0); end # The handler on which events will be called # - # source://psych//psych/parser.rb#38 + # source://psych//lib/psych/parser.rb#38 def handler; end # The handler on which events will be called # - # source://psych//psych/parser.rb#38 + # source://psych//lib/psych/parser.rb#38 def handler=(_arg0); end # call-seq: @@ -1148,49 +1167,51 @@ class Psych::Parser # # See Psych::Parser and Psych::Parser#handler # - # source://psych//psych/parser.rb#61 + # source://psych//lib/psych/parser.rb#61 def parse(yaml, path = T.unsafe(nil)); end end # Scan scalars for built in types +# +# source://psych//lib/psych/scalar_scanner.rb#6 class Psych::ScalarScanner # Create a new scanner # # @return [ScalarScanner] a new instance of ScalarScanner # - # source://psych//psych/scalar_scanner.rb#30 + # source://psych//lib/psych/scalar_scanner.rb#30 def initialize(class_loader, strict_integer: T.unsafe(nil)); end # Returns the value of attribute class_loader. # - # source://psych//psych/scalar_scanner.rb#27 + # source://psych//lib/psych/scalar_scanner.rb#27 def class_loader; end # Parse and return an int from +string+ # - # source://psych//psych/scalar_scanner.rb#109 + # source://psych//lib/psych/scalar_scanner.rb#109 def parse_int(string); end # Parse and return a Time from +string+ # - # source://psych//psych/scalar_scanner.rb#115 + # source://psych//lib/psych/scalar_scanner.rb#115 def parse_time(string); end # Tokenize +string+ returning the Ruby object # - # source://psych//psych/scalar_scanner.rb#37 + # source://psych//lib/psych/scalar_scanner.rb#37 def tokenize(string); end end # Same as above, but allows commas. # Not to YML spec, but kept for backwards compatibility # -# source://psych//psych/scalar_scanner.rb#22 +# source://psych//lib/psych/scalar_scanner.rb#22 Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp) # Taken from http://yaml.org/type/int.html # -# source://psych//psych/scalar_scanner.rb#15 +# source://psych//lib/psych/scalar_scanner.rb#15 Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp) # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML, @@ -1212,75 +1233,81 @@ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp) # stream.start do |em| # em.push(:foo => 'bar') # end +# +# source://psych//lib/psych/stream.rb#24 class Psych::Stream < ::Psych::Visitors::YAMLTree include ::Psych::Streaming extend ::Psych::Streaming::ClassMethods end +# source://psych//lib/psych/stream.rb#25 class Psych::Stream::Emitter < ::Psych::Emitter - # source://psych//psych/stream.rb#26 + # source://psych//lib/psych/stream.rb#26 def end_document(implicit_end = T.unsafe(nil)); end # @return [Boolean] # - # source://psych//psych/stream.rb#30 + # source://psych//lib/psych/stream.rb#30 def streaming?; end end +# source://psych//lib/psych/streaming.rb#3 module Psych::Streaming # Start streaming using +encoding+ # - # source://psych//psych/streaming.rb#18 + # source://psych//lib/psych/streaming.rb#18 def start(encoding = T.unsafe(nil)); end private - # source://psych//psych/streaming.rb#25 + # source://psych//lib/psych/streaming.rb#25 def register(target, obj); end end +# source://psych//lib/psych/streaming.rb#4 module Psych::Streaming::ClassMethods # Create a new streaming emitter. Emitter will print to +io+. See # Psych::Stream for an example. # - # source://psych//psych/streaming.rb#8 + # source://psych//lib/psych/streaming.rb#8 def new(io); end end +# source://psych//lib/psych/syntax_error.rb#5 class Psych::SyntaxError < ::Psych::Exception # @return [SyntaxError] a new instance of SyntaxError # - # source://psych//psych/syntax_error.rb#8 + # source://psych//lib/psych/syntax_error.rb#8 def initialize(file, line, col, offset, problem, context); end # Returns the value of attribute column. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def column; end # Returns the value of attribute context. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def context; end # Returns the value of attribute file. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def file; end # Returns the value of attribute line. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def line; end # Returns the value of attribute offset. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def offset; end # Returns the value of attribute problem. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def problem; end end @@ -1295,15 +1322,17 @@ end # # See Psych::Handler for documentation on the event methods used in this # class. +# +# source://psych//lib/psych/tree_builder.rb#17 class Psych::TreeBuilder < ::Psych::Handler # Create a new TreeBuilder instance # # @return [TreeBuilder] a new instance of TreeBuilder # - # source://psych//psych/tree_builder.rb#22 + # source://psych//lib/psych/tree_builder.rb#22 def initialize; end - # source://psych//psych/tree_builder.rb#103 + # source://psych//lib/psych/tree_builder.rb#103 def alias(anchor); end # Handles end_document events with +version+, +tag_directives+, @@ -1311,27 +1340,27 @@ class Psych::TreeBuilder < ::Psych::Handler # # See Psych::Handler#start_document # - # source://psych//psych/tree_builder.rb#77 + # source://psych//lib/psych/tree_builder.rb#77 def end_document(implicit_end = T.unsafe(nil)); end - # source://psych//psych/tree_builder.rb#52 + # source://psych//lib/psych/tree_builder.rb#52 def end_mapping; end - # source://psych//psych/tree_builder.rb#52 + # source://psych//lib/psych/tree_builder.rb#52 def end_sequence; end - # source://psych//psych/tree_builder.rb#90 + # source://psych//lib/psych/tree_builder.rb#90 def end_stream; end - # source://psych//psych/tree_builder.rb#33 + # source://psych//lib/psych/tree_builder.rb#33 def event_location(start_line, start_column, end_line, end_column); end # Returns the root node for the built tree # - # source://psych//psych/tree_builder.rb#19 + # source://psych//lib/psych/tree_builder.rb#19 def root; end - # source://psych//psych/tree_builder.rb#96 + # source://psych//lib/psych/tree_builder.rb#96 def scalar(value, anchor, tag, plain, quoted, style); end # Handles start_document events with +version+, +tag_directives+, @@ -1339,176 +1368,181 @@ class Psych::TreeBuilder < ::Psych::Handler # # See Psych::Handler#start_document # - # source://psych//psych/tree_builder.rb#65 + # source://psych//lib/psych/tree_builder.rb#65 def start_document(version, tag_directives, implicit); end - # source://psych//psych/tree_builder.rb#45 + # source://psych//lib/psych/tree_builder.rb#45 def start_mapping(anchor, tag, implicit, style); end - # source://psych//psych/tree_builder.rb#45 + # source://psych//lib/psych/tree_builder.rb#45 def start_sequence(anchor, tag, implicit, style); end - # source://psych//psych/tree_builder.rb#84 + # source://psych//lib/psych/tree_builder.rb#84 def start_stream(encoding); end private - # source://psych//psych/tree_builder.rb#116 + # source://psych//lib/psych/tree_builder.rb#116 def pop; end - # source://psych//psych/tree_builder.rb#111 + # source://psych//lib/psych/tree_builder.rb#111 def push(value); end - # source://psych//psych/tree_builder.rb#132 + # source://psych//lib/psych/tree_builder.rb#132 def set_end_location(node); end - # source://psych//psych/tree_builder.rb#122 + # source://psych//lib/psych/tree_builder.rb#122 def set_location(node); end - # source://psych//psych/tree_builder.rb#127 + # source://psych//lib/psych/tree_builder.rb#127 def set_start_location(node); end end # The version of Psych you are using # -# source://psych//psych/versions.rb#5 +# source://psych//lib/psych/versions.rb#5 Psych::VERSION = T.let(T.unsafe(nil), String) +# source://psych//lib/psych/visitors/depth_first.rb#4 class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor # @return [DepthFirst] a new instance of DepthFirst # - # source://psych//psych/visitors/depth_first.rb#5 + # source://psych//lib/psych/visitors/depth_first.rb#5 def initialize(block); end private - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def nary(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#20 def terminal(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#20 def visit_Psych_Nodes_Alias(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Document(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Mapping(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#20 def visit_Psych_Nodes_Scalar(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Sequence(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Stream(o); end end +# source://psych//lib/psych/visitors/yaml_tree.rb#540 class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree # @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree # - # source://psych//psych/visitors/yaml_tree.rb#552 + # source://psych//lib/psych/visitors/yaml_tree.rb#552 def initialize(emitter, ss, options); end - # source://psych//psych/visitors/yaml_tree.rb#565 + # source://psych//lib/psych/visitors/yaml_tree.rb#565 def accept(target); end - # source://psych//psych/visitors/yaml_tree.rb#577 + # source://psych//lib/psych/visitors/yaml_tree.rb#577 def visit_Symbol(sym); end end -# source://psych//psych/visitors/yaml_tree.rb#541 +# source://psych//lib/psych/visitors/yaml_tree.rb#541 Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash) # This class walks a YAML AST, converting each node to Ruby +# +# source://psych//lib/psych/visitors/to_ruby.rb#14 class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor # @return [ToRuby] a new instance of ToRuby # - # source://psych//psych/visitors/to_ruby.rb#23 + # source://psych//lib/psych/visitors/to_ruby.rb#23 def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end - # source://psych//psych/visitors/to_ruby.rb#34 + # source://psych//lib/psych/visitors/to_ruby.rb#34 def accept(target); end # Returns the value of attribute class_loader. # - # source://psych//psych/visitors/to_ruby.rb#21 + # source://psych//lib/psych/visitors/to_ruby.rb#21 def class_loader; end - # source://psych//psych/visitors/to_ruby.rb#327 + # source://psych//lib/psych/visitors/to_ruby.rb#327 def visit_Psych_Nodes_Alias(o); end - # source://psych//psych/visitors/to_ruby.rb#319 + # source://psych//lib/psych/visitors/to_ruby.rb#319 def visit_Psych_Nodes_Document(o); end - # source://psych//psych/visitors/to_ruby.rb#165 + # source://psych//lib/psych/visitors/to_ruby.rb#165 def visit_Psych_Nodes_Mapping(o); end - # source://psych//psych/visitors/to_ruby.rb#129 + # source://psych//lib/psych/visitors/to_ruby.rb#129 def visit_Psych_Nodes_Scalar(o); end - # source://psych//psych/visitors/to_ruby.rb#133 + # source://psych//lib/psych/visitors/to_ruby.rb#133 def visit_Psych_Nodes_Sequence(o); end - # source://psych//psych/visitors/to_ruby.rb#323 + # source://psych//lib/psych/visitors/to_ruby.rb#323 def visit_Psych_Nodes_Stream(o); end private - # source://psych//psych/visitors/to_ruby.rb#395 + # source://psych//lib/psych/visitors/to_ruby.rb#395 def deduplicate(key); end - # source://psych//psych/visitors/to_ruby.rb#51 + # source://psych//lib/psych/visitors/to_ruby.rb#51 def deserialize(o); end - # source://psych//psych/visitors/to_ruby.rb#412 + # source://psych//lib/psych/visitors/to_ruby.rb#412 def init_with(o, h, node); end - # source://psych//psych/visitors/to_ruby.rb#404 + # source://psych//lib/psych/visitors/to_ruby.rb#404 def merge_key(hash, key, val); end - # source://psych//psych/visitors/to_ruby.rb#333 + # source://psych//lib/psych/visitors/to_ruby.rb#333 def register(node, object); end - # source://psych//psych/visitors/to_ruby.rb#338 + # source://psych//lib/psych/visitors/to_ruby.rb#338 def register_empty(object); end # Convert +klassname+ to a Class # - # source://psych//psych/visitors/to_ruby.rb#425 + # source://psych//lib/psych/visitors/to_ruby.rb#425 def resolve_class(klassname); end - # source://psych//psych/visitors/to_ruby.rb#407 + # source://psych//lib/psych/visitors/to_ruby.rb#407 def revive(klass, node); end - # source://psych//psych/visitors/to_ruby.rb#344 + # source://psych//lib/psych/visitors/to_ruby.rb#344 def revive_hash(hash, o, tagged = T.unsafe(nil)); end class << self - # source://psych//psych/visitors/to_ruby.rb#15 + # source://psych//lib/psych/visitors/to_ruby.rb#15 def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end end end +# source://psych//lib/psych/visitors/visitor.rb#4 class Psych::Visitors::Visitor - # source://psych//psych/visitors/visitor.rb#5 + # source://psych//lib/psych/visitors/visitor.rb#5 def accept(target); end private - # source://psych//psych/visitors/visitor.rb#19 + # source://psych//lib/psych/visitors/visitor.rb#19 def dispatch; end - # source://psych//psych/visitors/visitor.rb#29 + # source://psych//lib/psych/visitors/visitor.rb#29 def visit(target); end class << self # @api private # - # source://psych//psych/visitors/visitor.rb#12 + # source://psych//lib/psych/visitors/visitor.rb#12 def dispatch_cache; end end end @@ -1518,198 +1552,201 @@ end # builder = Psych::Visitors::YAMLTree.new # builder << { :foo => 'bar' } # builder.tree # => # 'expires'}, ["Hello", "World"]] -# # error raised -# -# body = ["Hello", "World"] -# def body.trailers -# { 'expires' => Time.now.to_s } -# end -# [200, { 'trailer' => 'expires'}, body] -# # No exception raised -# -# source://rack//lib/rack/chunked.rb#25 -class Rack::Chunked - include ::Rack::Utils - - # @return [Chunked] a new instance of Chunked - # - # source://rack//lib/rack/chunked.rb#82 - def initialize(app); end - - # If the rack app returns a response that should have a body, - # but does not have content-length or transfer-encoding headers, - # modify the response to use chunked transfer-encoding. - # - # source://rack//lib/rack/chunked.rb#101 - def call(env); end - - # Whether the HTTP version supports chunked encoding (HTTP 1.1 does). - # - # @return [Boolean] - # - # source://rack//lib/rack/chunked.rb#87 - def chunkable_version?(ver); end -end - -# A body wrapper that emits chunked responses. -# -# source://rack//lib/rack/chunked.rb#29 -class Rack::Chunked::Body - # Store the response body to be chunked. - # - # @return [Body] a new instance of Body - # - # source://rack//lib/rack/chunked.rb#34 - def initialize(body); end - - # Close the response body if the response body supports it. - # - # source://rack//lib/rack/chunked.rb#54 - def close; end - - # For each element yielded by the response body, yield - # the element in chunked encoding. - # - # @yield [TAIL] - # - # source://rack//lib/rack/chunked.rb#40 - def each(&block); end - - private - - # Do nothing as this class does not support trailer headers. - # - # source://rack//lib/rack/chunked.rb#61 - def yield_trailers; end -end - -# source://rack//lib/rack/chunked.rb#31 -Rack::Chunked::Body::TAIL = T.let(T.unsafe(nil), String) - -# source://rack//lib/rack/chunked.rb#30 -Rack::Chunked::Body::TERM = T.let(T.unsafe(nil), String) - -# A body wrapper that emits chunked responses and also supports -# sending Trailer headers. Note that the response body provided to -# initialize must have a +trailers+ method that returns a hash -# of trailer headers, and the rack response itself should have a -# Trailer header listing the headers that the +trailers+ method -# will return. -# -# source://rack//lib/rack/chunked.rb#71 -class Rack::Chunked::TrailerBody < ::Rack::Chunked::Body - private - - # Yield strings for each trailer header. - # - # source://rack//lib/rack/chunked.rb#75 - def yield_trailers; end -end - # Rack::CommonLogger forwards every request to the given +app+, and # logs a line in the # {Apache common log format}[http://httpd.apache.org/docs/1.3/logs.html#common] @@ -1362,9 +1039,6 @@ class Rack::Events::EventedBodyProxy < ::Rack::BodyProxy def response; end end -# source://rack//lib/rack/file.rb#8 -Rack::File = Rack::Files - # Rack::Files serves files below the +root+ directory given, according to the # path info of the Rack request. # e.g. when Rack::Files.new("/etc") is used, you can access 'passwd' file @@ -1532,125 +1206,128 @@ end # (by using non-lowercase response header keys), automatically handling # the downcasing of keys. # -# source://rack//lib/rack/headers.rb#6 +# source://rack//lib/rack/headers.rb#8 class Rack::Headers < ::Hash - # source://rack//lib/rack/headers.rb#26 + # source://rack//lib/rack/headers.rb#110 def [](key); end - # source://rack//lib/rack/headers.rb#30 + # source://rack//lib/rack/headers.rb#114 def []=(key, value); end - # source://rack//lib/rack/headers.rb#35 + # source://rack//lib/rack/headers.rb#119 def assoc(key); end # @raise [TypeError] # - # source://rack//lib/rack/headers.rb#39 + # source://rack//lib/rack/headers.rb#123 def compare_by_identity; end - # source://rack//lib/rack/headers.rb#43 + # source://rack//lib/rack/headers.rb#127 def delete(key); end - # source://rack//lib/rack/headers.rb#47 + # source://rack//lib/rack/headers.rb#131 def dig(key, *a); end # :nocov: # - # source://rack//lib/rack/headers.rb#143 + # source://rack//lib/rack/headers.rb#227 def except(*a); end - # source://rack//lib/rack/headers.rb#51 + # source://rack//lib/rack/headers.rb#135 def fetch(key, *default, &block); end - # source://rack//lib/rack/headers.rb#56 + # source://rack//lib/rack/headers.rb#140 def fetch_values(*a); end # @return [Boolean] # - # source://rack//lib/rack/headers.rb#60 + # source://rack//lib/rack/headers.rb#144 def has_key?(key); end # @return [Boolean] # - # source://rack//lib/rack/headers.rb#60 + # source://rack//lib/rack/headers.rb#144 def include?(key); end - # source://rack//lib/rack/headers.rb#67 + # source://rack//lib/rack/headers.rb#151 def invert; end # @return [Boolean] # - # source://rack//lib/rack/headers.rb#60 + # source://rack//lib/rack/headers.rb#144 def key?(key); end # @return [Boolean] # - # source://rack//lib/rack/headers.rb#60 + # source://rack//lib/rack/headers.rb#144 def member?(key); end - # source://rack//lib/rack/headers.rb#73 + # source://rack//lib/rack/headers.rb#157 def merge(hash, &block); end - # source://rack//lib/rack/headers.rb#102 + # source://rack//lib/rack/headers.rb#186 def merge!(hash, &block); end - # source://rack//lib/rack/headers.rb#77 + # source://rack//lib/rack/headers.rb#161 def reject(&block); end - # source://rack//lib/rack/headers.rb#83 + # source://rack//lib/rack/headers.rb#167 def replace(hash); end - # source://rack//lib/rack/headers.rb#88 + # source://rack//lib/rack/headers.rb#172 def select(&block); end # :nocov: # - # source://rack//lib/rack/headers.rb#121 + # source://rack//lib/rack/headers.rb#205 def slice(*a); end - # source://rack//lib/rack/headers.rb#30 + # source://rack//lib/rack/headers.rb#114 def store(key, value); end - # source://rack//lib/rack/headers.rb#94 + # source://rack//lib/rack/headers.rb#178 def to_proc; end - # source://rack//lib/rack/headers.rb#127 + # source://rack//lib/rack/headers.rb#211 def transform_keys(&block); end - # source://rack//lib/rack/headers.rb#131 + # source://rack//lib/rack/headers.rb#215 def transform_keys!; end - # source://rack//lib/rack/headers.rb#98 + # source://rack//lib/rack/headers.rb#182 def transform_values(&block); end - # source://rack//lib/rack/headers.rb#102 + # source://rack//lib/rack/headers.rb#186 def update(hash, &block); end - # source://rack//lib/rack/headers.rb#114 + # source://rack//lib/rack/headers.rb#198 def values_at(*keys); end private - # source://rack//lib/rack/headers.rb#150 + # source://rack//lib/rack/headers.rb#234 def downcase_key(key); end class << self - # source://rack//lib/rack/headers.rb#7 + # source://rack//lib/rack/headers.rb#91 def [](*items); end end end -# source://rack//lib/rack/constants.rb#35 +# source://rack//lib/rack/headers.rb#9 +Rack::Headers::KNOWN_HEADERS = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/constants.rb#36 Rack::LINK = T.let(T.unsafe(nil), String) # Rack::Lint validates your application and the requests and # responses according to the Rack spec. # -# source://rack//lib/rack/lint.rb#12 +# source://rack//lib/rack/lint.rb#13 class Rack::Lint # @return [Lint] a new instance of Lint # - # source://rack//lib/rack/lint.rb#13 + # source://rack//lib/rack/lint.rb#19 def initialize(app); end # AUTHORS: n.b. The trailing whitespace between paragraphs is important and @@ -1668,57 +1345,77 @@ class Rack::Lint # A Rack application is a Ruby object (not a class) that # responds to +call+. # - # source://rack//lib/rack/lint.rb#34 + # source://rack//lib/rack/lint.rb#40 def call(env = T.unsafe(nil)); end end # :stopdoc: # -# source://rack//lib/rack/lint.rb#19 +# source://rack//lib/rack/lint.rb#25 class Rack::Lint::LintError < ::RuntimeError; end -# source://rack//lib/rack/lint.rb#38 +# source://rack//lib/rack/lint.rb#15 +Rack::Lint::REQUEST_PATH_ABSOLUTE_FORM = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/lint.rb#17 +Rack::Lint::REQUEST_PATH_ASTERISK_FORM = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/lint.rb#16 +Rack::Lint::REQUEST_PATH_AUTHORITY_FORM = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/lint.rb#14 +Rack::Lint::REQUEST_PATH_ORIGIN_FORM = T.let(T.unsafe(nil), Regexp) + +# source://rack//lib/rack/lint.rb#44 class Rack::Lint::Wrapper # @return [Wrapper] a new instance of Wrapper # - # source://rack//lib/rack/lint.rb#39 + # source://rack//lib/rack/lint.rb#45 def initialize(app, env); end # ==== Streaming Body # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#855 + # source://rack//lib/rack/lint.rb#939 def call(stream); end - # === The content-length + # ==== The +content-length+ Header # - # source://rack//lib/rack/lint.rb#693 - def check_content_length(status, headers); end + # source://rack//lib/rack/lint.rb#757 + def check_content_length_header(status, headers); end - # === The content-type + # ==== The +content-type+ Header # - # source://rack//lib/rack/lint.rb#677 - def check_content_type(status, headers); end + # source://rack//lib/rack/lint.rb#741 + def check_content_type_header(status, headers); end + + # === Early Hints + # + # The application or any middleware may call the rack.early_hints + # with an object which would be valid as the headers of a Rack response. + # + # source://rack//lib/rack/lint.rb#657 + def check_early_hints(env); end # == The Environment # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#97 + # source://rack//lib/rack/lint.rb#101 def check_environment(env); end # === The Error Stream # - # source://rack//lib/rack/lint.rb#491 - def check_error(error); end + # source://rack//lib/rack/lint.rb#531 + def check_error_stream(error); end - # source://rack//lib/rack/lint.rb#667 + # source://rack//lib/rack/lint.rb#731 def check_header_value(key, value); end # === The Headers # - # source://rack//lib/rack/lint.rb#627 + # source://rack//lib/rack/lint.rb#691 def check_headers(headers); end # === Hijacking @@ -1743,7 +1440,7 @@ class Rack::Lint::Wrapper # It is intended to be used when applications need access to raw HTTP/1 # connection. # - # source://rack//lib/rack/lint.rb#551 + # source://rack//lib/rack/lint.rb#591 def check_hijack(env); end # ==== Partial Hijack @@ -1755,7 +1452,7 @@ class Rack::Lint::Wrapper # It is intended to be used when applications need bi-directional # streaming. # - # source://rack//lib/rack/lint.rb#579 + # source://rack//lib/rack/lint.rb#619 def check_hijack_response(headers, env); end # === The Input Stream @@ -1763,16 +1460,25 @@ class Rack::Lint::Wrapper # The input stream is an IO-like object which contains the raw HTTP # POST data. # - # source://rack//lib/rack/lint.rb#387 - def check_input(input); end + # source://rack//lib/rack/lint.rb#427 + def check_input_stream(input); end + + # ==== The +rack.protocol+ Header + # + # source://rack//lib/rack/lint.rb#785 + def check_rack_protocol_header(status, headers); end # == The Response # # === The Status # - # source://rack//lib/rack/lint.rb#616 + # source://rack//lib/rack/lint.rb#680 def check_status(status); end + # Setting this value informs the server that it should perform a + # connection upgrade. In HTTP/1, this is done using the +upgrade+ + # header. In HTTP/2, this is done by accepting the request. + # # === The Body # # The Body is typically an +Array+ of +String+ instances, an enumerable @@ -1798,24 +1504,24 @@ class Rack::Lint::Wrapper # cases where the Rack application makes internal/virtual requests and # discards the response. # - # source://rack//lib/rack/lint.rb#744 + # source://rack//lib/rack/lint.rb#831 def close; end # ==== Enumerable Body # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#778 + # source://rack//lib/rack/lint.rb#865 def each; end # @return [Boolean] # - # source://rack//lib/rack/lint.rb#826 + # source://rack//lib/rack/lint.rb#910 def respond_to?(name, *_arg1); end # @raise [LintError] # - # source://rack//lib/rack/lint.rb#54 + # source://rack//lib/rack/lint.rb#60 def response; end # If the Body responds to +to_ary+, it must return an +Array+ whose @@ -1826,73 +1532,73 @@ class Rack::Lint::Wrapper # +to_ary+ and +close+, its implementation of +to_ary+ must call # +close+. # - # source://rack//lib/rack/lint.rb#842 + # source://rack//lib/rack/lint.rb#926 def to_ary; end - # source://rack//lib/rack/lint.rb#822 + # source://rack//lib/rack/lint.rb#906 def to_path; end - # source://rack//lib/rack/lint.rb#706 + # source://rack//lib/rack/lint.rb#770 def verify_content_length(size); end - # source://rack//lib/rack/lint.rb#760 + # source://rack//lib/rack/lint.rb#847 def verify_to_path; end end -# source://rack//lib/rack/lint.rb#820 +# source://rack//lib/rack/lint.rb#904 Rack::Lint::Wrapper::BODY_METHODS = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/lint.rb#500 +# source://rack//lib/rack/lint.rb#540 class Rack::Lint::Wrapper::ErrorWrapper # @return [ErrorWrapper] a new instance of ErrorWrapper # - # source://rack//lib/rack/lint.rb#501 + # source://rack//lib/rack/lint.rb#541 def initialize(error); end # * +close+ must never be called on the error stream. # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#523 + # source://rack//lib/rack/lint.rb#563 def close(*args); end # * +flush+ must be called without arguments and must be called # in order to make the error appear for sure. # - # source://rack//lib/rack/lint.rb#518 + # source://rack//lib/rack/lint.rb#558 def flush; end # * +puts+ must be called with a single argument that responds to +to_s+. # - # source://rack//lib/rack/lint.rb#506 + # source://rack//lib/rack/lint.rb#546 def puts(str); end # * +write+ must be called with a single argument that is a String. # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#511 + # source://rack//lib/rack/lint.rb#551 def write(str); end end -# source://rack//lib/rack/lint.rb#405 +# source://rack//lib/rack/lint.rb#445 class Rack::Lint::Wrapper::InputWrapper # @return [InputWrapper] a new instance of InputWrapper # - # source://rack//lib/rack/lint.rb#406 + # source://rack//lib/rack/lint.rb#446 def initialize(input); end - # * +close+ can be called on the input stream to indicate that the - # any remaining input is not needed. + # * +close+ can be called on the input stream to indicate that + # any remaining input is not needed. # - # source://rack//lib/rack/lint.rb#483 + # source://rack//lib/rack/lint.rb#523 def close(*args); end # * +each+ must be called without arguments and only yield Strings. # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#471 + # source://rack//lib/rack/lint.rb#511 def each(*args); end # * +gets+ must be called without arguments and return a string, @@ -1900,10 +1606,10 @@ class Rack::Lint::Wrapper::InputWrapper # # @raise [LintError] # - # source://rack//lib/rack/lint.rb#412 + # source://rack//lib/rack/lint.rb#452 def gets(*args); end - # * +read+ behaves like IO#read. + # * +read+ behaves like IO#read. # Its signature is read([length, [buffer]]). # # If given, +length+ must be a non-negative Integer (>= 0) or +nil+, @@ -1921,17 +1627,17 @@ class Rack::Lint::Wrapper::InputWrapper # If +buffer+ is given, then the read data will be placed # into +buffer+ instead of a newly created String object. # - # source://rack//lib/rack/lint.rb#438 + # source://rack//lib/rack/lint.rb#478 def read(*args); end end -# source://rack//lib/rack/lint.rb#875 +# source://rack//lib/rack/lint.rb#959 class Rack::Lint::Wrapper::StreamWrapper extend ::Forwardable # @return [StreamWrapper] a new instance of StreamWrapper # - # source://rack//lib/rack/lint.rb#890 + # source://rack//lib/rack/lint.rb#974 def initialize(stream); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -1965,7 +1671,7 @@ end # pass on real IO objects, although it is recognized that this approach # is not directly compatible with HTTP/2. # -# source://rack//lib/rack/lint.rb#883 +# source://rack//lib/rack/lint.rb#967 Rack::Lint::Wrapper::StreamWrapper::REQUIRED_METHODS = T.let(T.unsafe(nil), Array) # Rack::Lock locks every request inside a mutex, so that every request @@ -1989,14 +1695,14 @@ end # Sets up rack.logger to write to rack.errors stream # -# source://rack//lib/rack/logger.rb#9 +# source://rack//lib/rack/logger.rb#10 class Rack::Logger # @return [Logger] a new instance of Logger # - # source://rack//lib/rack/logger.rb#10 + # source://rack//lib/rack/logger.rb#11 def initialize(app, level = T.unsafe(nil)); end - # source://rack//lib/rack/logger.rb#14 + # source://rack//lib/rack/logger.rb#15 def call(env); end end @@ -2164,49 +1870,49 @@ Rack::Mime::MIME_TYPES = T.let(T.unsafe(nil), Hash) class Rack::MockRequest # @return [MockRequest] a new instance of MockRequest # - # source://rack//lib/rack/mock_request.rb#49 + # source://rack//lib/rack/mock_request.rb#44 def initialize(app); end # Make a DELETE request and return a MockResponse. See #request. # - # source://rack//lib/rack/mock_request.rb#62 + # source://rack//lib/rack/mock_request.rb#57 def delete(uri, opts = T.unsafe(nil)); end # Make a GET request and return a MockResponse. See #request. # - # source://rack//lib/rack/mock_request.rb#54 + # source://rack//lib/rack/mock_request.rb#49 def get(uri, opts = T.unsafe(nil)); end # Make a HEAD request and return a MockResponse. See #request. # - # source://rack//lib/rack/mock_request.rb#64 + # source://rack//lib/rack/mock_request.rb#59 def head(uri, opts = T.unsafe(nil)); end # Make an OPTIONS request and return a MockResponse. See #request. # - # source://rack//lib/rack/mock_request.rb#66 + # source://rack//lib/rack/mock_request.rb#61 def options(uri, opts = T.unsafe(nil)); end # Make a PATCH request and return a MockResponse. See #request. # - # source://rack//lib/rack/mock_request.rb#60 + # source://rack//lib/rack/mock_request.rb#55 def patch(uri, opts = T.unsafe(nil)); end # Make a POST request and return a MockResponse. See #request. # - # source://rack//lib/rack/mock_request.rb#56 + # source://rack//lib/rack/mock_request.rb#51 def post(uri, opts = T.unsafe(nil)); end # Make a PUT request and return a MockResponse. See #request. # - # source://rack//lib/rack/mock_request.rb#58 + # source://rack//lib/rack/mock_request.rb#53 def put(uri, opts = T.unsafe(nil)); end # Make a request using the given request method for the given # uri to the rack application and return a MockResponse. # Options given are passed to MockRequest.env_for. # - # source://rack//lib/rack/mock_request.rb#71 + # source://rack//lib/rack/mock_request.rb#66 def request(method = T.unsafe(nil), uri = T.unsafe(nil), opts = T.unsafe(nil)); end class << self @@ -2220,20 +1926,17 @@ class Rack::MockRequest # :params :: The params to use # :script_name :: The SCRIPT_NAME to set # - # source://rack//lib/rack/mock_request.rb#103 + # source://rack//lib/rack/mock_request.rb#98 def env_for(uri = T.unsafe(nil), opts = T.unsafe(nil)); end # For historical reasons, we're pinning to RFC 2396. # URI::Parser = URI::RFC2396_Parser # - # source://rack//lib/rack/mock_request.rb#89 + # source://rack//lib/rack/mock_request.rb#84 def parse_uri_rfc2396(uri); end end end -# source://rack//lib/rack/mock_request.rb#44 -Rack::MockRequest::DEFAULT_ENV = T.let(T.unsafe(nil), Hash) - # source://rack//lib/rack/mock_request.rb#27 class Rack::MockRequest::FatalWarner # source://rack//lib/rack/mock_request.rb#36 @@ -2306,7 +2009,7 @@ class Rack::MockResponse < ::Rack::Response private - # source://rack//lib/rack/mock_response.rb#102 + # source://rack//lib/rack/mock_response.rb#100 def identify_cookie_attributes(cookie_filling); end # source://rack//lib/rack/mock_response.rb#79 @@ -2321,72 +2024,43 @@ end # # Usually, Rack::Request#POST takes care of calling this. # -# source://rack//lib/rack/multipart/parser.rb#8 +# source://rack//lib/rack/multipart/parser.rb#9 module Rack::Multipart class << self - # source://rack//lib/rack/multipart.rb#39 + # source://rack//lib/rack/multipart.rb#72 def build_multipart(params, first = T.unsafe(nil)); end - # source://rack//lib/rack/multipart.rb#35 + # source://rack//lib/rack/multipart.rb#68 def extract_multipart(request, params = T.unsafe(nil)); end - # source://rack//lib/rack/multipart.rb#17 + # source://rack//lib/rack/multipart.rb#48 def parse_multipart(env, params = T.unsafe(nil)); end end end -# source://rack//lib/rack/multipart/parser.rb#32 -Rack::Multipart::ATTRIBUTE = T.let(T.unsafe(nil), Regexp) - -# Updated definitions from RFC 2231 +# Base class for multipart exceptions that do not subclass from +# other exception classes for backwards compatibility. # -# source://rack//lib/rack/multipart/parser.rb#31 -Rack::Multipart::ATTRIBUTE_CHAR = T.let(T.unsafe(nil), Regexp) - # source://rack//lib/rack/multipart/parser.rb#26 -Rack::Multipart::BROKEN = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#24 -Rack::Multipart::CONDISP = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#43 -Rack::Multipart::DISPPARM = T.let(T.unsafe(nil), Regexp) +class Rack::Multipart::BoundaryTooLongError < ::StandardError + include ::Rack::BadRequest +end -# source://rack//lib/rack/multipart/parser.rb#21 +# source://rack//lib/rack/multipart/parser.rb#33 Rack::Multipart::EOL = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/multipart/parser.rb#39 -Rack::Multipart::EXTENDED_INITIAL_NAME = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#41 -Rack::Multipart::EXTENDED_INITIAL_PARAMETER = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#40 -Rack::Multipart::EXTENDED_INITIAL_VALUE = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#36 -Rack::Multipart::EXTENDED_OTHER_NAME = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#38 -Rack::Multipart::EXTENDED_OTHER_PARAMETER = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#37 -Rack::Multipart::EXTENDED_OTHER_VALUE = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#42 -Rack::Multipart::EXTENDED_PARAMETER = T.let(T.unsafe(nil), Regexp) - # Use specific error class when parsing multipart request # that ends early. # -# source://rack//lib/rack/multipart/parser.rb#15 -class Rack::Multipart::EmptyContentError < ::EOFError; end +# source://rack//lib/rack/multipart/parser.rb#20 +class Rack::Multipart::EmptyContentError < ::EOFError + include ::Rack::BadRequest +end -# Base class for multipart exceptions that do not subclass from -# other exception classes for backwards compatibility. +# Prefer to use the BoundaryTooLongError class or Rack::BadRequest. # -# source://rack//lib/rack/multipart/parser.rb#19 -class Rack::Multipart::Error < ::StandardError; end +# source://rack//lib/rack/multipart/parser.rb#31 +Rack::Multipart::Error = Rack::Multipart::BoundaryTooLongError # source://rack//lib/rack/multipart/generator.rb#7 class Rack::Multipart::Generator @@ -2415,43 +2089,78 @@ class Rack::Multipart::Generator def multipart?; end end -# source://rack//lib/rack/multipart/parser.rb#22 +# source://rack//lib/rack/multipart/parser.rb#34 Rack::Multipart::MULTIPART = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/multipart.rb#14 +# source://rack//lib/rack/multipart.rb#16 Rack::Multipart::MULTIPART_BOUNDARY = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/multipart/parser.rb#28 +# source://rack//lib/rack/multipart/parser.rb#36 Rack::Multipart::MULTIPART_CONTENT_DISPOSITION = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/multipart/parser.rb#29 +# source://rack//lib/rack/multipart/parser.rb#37 Rack::Multipart::MULTIPART_CONTENT_ID = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/multipart/parser.rb#27 +# source://rack//lib/rack/multipart/parser.rb#35 Rack::Multipart::MULTIPART_CONTENT_TYPE = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/multipart/parser.rb#9 -class Rack::Multipart::MultipartPartLimitError < ::Errno::EMFILE; end +# source://rack//lib/rack/multipart.rb#18 +class Rack::Multipart::MissingInputError < ::StandardError + include ::Rack::BadRequest +end + +# source://rack//lib/rack/multipart/parser.rb#10 +class Rack::Multipart::MultipartPartLimitError < ::Errno::EMFILE + include ::Rack::BadRequest +end + +# source://rack//lib/rack/multipart/parser.rb#14 +class Rack::Multipart::MultipartTotalPartLimitError < ::StandardError + include ::Rack::BadRequest +end + +# Accumulator for multipart form data, conforming to the QueryParser API. +# In future, the Parser could return the pair list directly, but that would +# change its API. +# +# source://rack//lib/rack/multipart.rb#25 +class Rack::Multipart::ParamList + # @return [ParamList] a new instance of ParamList + # + # source://rack//lib/rack/multipart.rb#34 + def initialize; end + + # source://rack//lib/rack/multipart.rb#38 + def <<(pair); end + + # source://rack//lib/rack/multipart.rb#42 + def to_params_hash; end + + class << self + # source://rack//lib/rack/multipart.rb#26 + def make_params; end -# source://rack//lib/rack/multipart/parser.rb#11 -class Rack::Multipart::MultipartTotalPartLimitError < ::StandardError; end + # source://rack//lib/rack/multipart.rb#30 + def normalize_params(params, key, value); end + end +end -# source://rack//lib/rack/multipart/parser.rb#46 +# source://rack//lib/rack/multipart/parser.rb#39 class Rack::Multipart::Parser # @return [Parser] a new instance of Parser # - # source://rack//lib/rack/multipart/parser.rb#205 + # source://rack//lib/rack/multipart/parser.rb#200 def initialize(boundary, tempfile, bufsize, query_parser); end - # source://rack//lib/rack/multipart/parser.rb#221 + # source://rack//lib/rack/multipart/parser.rb#217 def parse(io); end - # source://rack//lib/rack/multipart/parser.rb#244 + # source://rack//lib/rack/multipart/parser.rb#240 def result; end # Returns the value of attribute state. # - # source://rack//lib/rack/multipart/parser.rb#203 + # source://rack//lib/rack/multipart/parser.rb#198 def state; end private @@ -2461,21 +2170,25 @@ class Rack::Multipart::Parser # end of the boundary. If we don't find the start or end of the # boundary, clear the buffer and return nil. # - # source://rack//lib/rack/multipart/parser.rb#354 + # source://rack//lib/rack/multipart/parser.rb#434 def consume_boundary; end # From WEBrick::HTTPUtils # - # source://rack//lib/rack/multipart/parser.rb#256 + # source://rack//lib/rack/multipart/parser.rb#252 def dequote(str); end - # source://rack//lib/rack/multipart/parser.rb#363 - def get_filename(head); end + # Return the related Encoding object. However, because + # enc is submitted by the user, it may be invalid, so + # use a binary encoding in that case. + # + # source://rack//lib/rack/multipart/parser.rb#489 + def find_encoding(enc); end - # source://rack//lib/rack/multipart/parser.rb#298 + # source://rack//lib/rack/multipart/parser.rb#294 def handle_consume_token; end - # source://rack//lib/rack/multipart/parser.rb#435 + # source://rack//lib/rack/multipart/parser.rb#495 def handle_empty_content!(content); end # This handles the initial parser state. We read until we find the starting @@ -2486,108 +2199,117 @@ class Rack::Multipart::Parser # boundary. The client would have to deliberately craft a response # with the opening boundary beyond the buffer size for that to happen. # - # source://rack//lib/rack/multipart/parser.rb#275 + # source://rack//lib/rack/multipart/parser.rb#271 def handle_fast_forward; end - # source://rack//lib/rack/multipart/parser.rb#331 + # source://rack//lib/rack/multipart/parser.rb#411 def handle_mime_body; end - # source://rack//lib/rack/multipart/parser.rb#308 + # source://rack//lib/rack/multipart/parser.rb#306 def handle_mime_head; end - # source://rack//lib/rack/multipart/parser.rb#262 + # source://rack//lib/rack/multipart/parser.rb#443 + def normalize_filename(filename); end + + # source://rack//lib/rack/multipart/parser.rb#258 def read_data(io, outbuf); end - # source://rack//lib/rack/multipart/parser.rb#401 + # source://rack//lib/rack/multipart/parser.rb#456 def tag_multipart_encoding(filename, content_type, name, body); end class << self - # source://rack//lib/rack/multipart/parser.rb#92 + # source://rack//lib/rack/multipart/parser.rb#87 def parse(io, content_length, content_type, tmpfile, bufsize, qp); end - # source://rack//lib/rack/multipart/parser.rb#85 + # source://rack//lib/rack/multipart/parser.rb#80 def parse_boundary(content_type); end end end -# source://rack//lib/rack/multipart/parser.rb#47 +# source://rack//lib/rack/multipart/parser.rb#40 Rack::Multipart::Parser::BUFSIZE = T.let(T.unsafe(nil), Integer) -# source://rack//lib/rack/multipart/parser.rb#53 +# source://rack//lib/rack/multipart/parser.rb#48 class Rack::Multipart::Parser::BoundedIO # @return [BoundedIO] a new instance of BoundedIO # - # source://rack//lib/rack/multipart/parser.rb#54 + # source://rack//lib/rack/multipart/parser.rb#49 def initialize(io, content_length); end - # source://rack//lib/rack/multipart/parser.rb#60 + # source://rack//lib/rack/multipart/parser.rb#55 def read(size, outbuf = T.unsafe(nil)); end end -# source://rack//lib/rack/multipart/parser.rb#398 +# source://rack//lib/rack/multipart/parser.rb#453 Rack::Multipart::Parser::CHARSET = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/multipart/parser.rb#112 +# source://rack//lib/rack/multipart/parser.rb#305 +Rack::Multipart::Parser::CONTENT_DISPOSITION_MAX_BYTES = T.let(T.unsafe(nil), Integer) + +# source://rack//lib/rack/multipart/parser.rb#304 +Rack::Multipart::Parser::CONTENT_DISPOSITION_MAX_PARAMS = T.let(T.unsafe(nil), Integer) + +# source://rack//lib/rack/multipart/parser.rb#107 class Rack::Multipart::Parser::Collector include ::Enumerable # @return [Collector] a new instance of Collector # - # source://rack//lib/rack/multipart/parser.rb#148 + # source://rack//lib/rack/multipart/parser.rb#143 def initialize(tempfile); end - # source://rack//lib/rack/multipart/parser.rb#154 + # source://rack//lib/rack/multipart/parser.rb#149 def each; end - # source://rack//lib/rack/multipart/parser.rb#174 + # source://rack//lib/rack/multipart/parser.rb#169 def on_mime_body(mime_index, content); end - # source://rack//lib/rack/multipart/parser.rb#178 + # source://rack//lib/rack/multipart/parser.rb#173 def on_mime_finish(mime_index); end - # source://rack//lib/rack/multipart/parser.rb#158 + # source://rack//lib/rack/multipart/parser.rb#153 def on_mime_head(mime_index, head, filename, content_type, name); end private - # source://rack//lib/rack/multipart/parser.rb#183 + # source://rack//lib/rack/multipart/parser.rb#178 def check_part_limits; end end -# source://rack//lib/rack/multipart/parser.rb#136 +# source://rack//lib/rack/multipart/parser.rb#131 class Rack::Multipart::Parser::Collector::BufferPart < ::Rack::Multipart::Parser::Collector::MimePart - # source://rack//lib/rack/multipart/parser.rb#138 + # source://rack//lib/rack/multipart/parser.rb#133 def close; end # @return [Boolean] # - # source://rack//lib/rack/multipart/parser.rb#137 + # source://rack//lib/rack/multipart/parser.rb#132 def file?; end end -# source://rack//lib/rack/multipart/parser.rb#113 +# source://rack//lib/rack/multipart/parser.rb#108 class Rack::Multipart::Parser::Collector::MimePart < ::Struct # @yield [data] # - # source://rack//lib/rack/multipart/parser.rb#114 + # source://rack//lib/rack/multipart/parser.rb#109 def get_data; end end -# source://rack//lib/rack/multipart/parser.rb#141 +# source://rack//lib/rack/multipart/parser.rb#136 class Rack::Multipart::Parser::Collector::TempfilePart < ::Rack::Multipart::Parser::Collector::MimePart - # source://rack//lib/rack/multipart/parser.rb#143 + # source://rack//lib/rack/multipart/parser.rb#138 def close; end # @return [Boolean] # - # source://rack//lib/rack/multipart/parser.rb#142 + # source://rack//lib/rack/multipart/parser.rb#137 def file?; end end -# source://rack//lib/rack/multipart/parser.rb#83 +# source://rack//lib/rack/multipart/parser.rb#78 Rack::Multipart::Parser::EMPTY = T.let(T.unsafe(nil), Rack::Multipart::Parser::MultipartInfo) -# source://rack//lib/rack/multipart/parser.rb#82 +# source://rack//lib/rack/multipart/parser.rb#77 class Rack::Multipart::Parser::MultipartInfo < ::Struct # Returns the value of attribute params # @@ -2620,27 +2342,12 @@ class Rack::Multipart::Parser::MultipartInfo < ::Struct end end -# source://rack//lib/rack/multipart/parser.rb#49 +# source://rack//lib/rack/multipart/parser.rb#42 Rack::Multipart::Parser::TEMPFILE_FACTORY = T.let(T.unsafe(nil), Proc) -# source://rack//lib/rack/multipart/parser.rb#48 +# source://rack//lib/rack/multipart/parser.rb#41 Rack::Multipart::Parser::TEXT_PLAIN = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/multipart/parser.rb#35 -Rack::Multipart::REGULAR_PARAMETER = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#34 -Rack::Multipart::REGULAR_PARAMETER_NAME = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#44 -Rack::Multipart::RFC2183 = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#33 -Rack::Multipart::SECTION = T.let(T.unsafe(nil), Regexp) - -# source://rack//lib/rack/multipart/parser.rb#23 -Rack::Multipart::TOKEN = T.let(T.unsafe(nil), Regexp) - # source://rack//lib/rack/multipart/uploaded_file.rb#8 class Rack::Multipart::UploadedFile # @return [UploadedFile] a new instance of UploadedFile @@ -2678,9 +2385,6 @@ class Rack::Multipart::UploadedFile def respond_to?(*args); end end -# source://rack//lib/rack/multipart/parser.rb#25 -Rack::Multipart::VALUE = T.let(T.unsafe(nil), Regexp) - # source://rack//lib/rack/null_logger.rb#6 class Rack::NullLogger # @return [NullLogger] a new instance of NullLogger @@ -2813,17 +2517,17 @@ Rack::PUT = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#12 Rack::QUERY_STRING = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/query_parser.rb#6 +# source://rack//lib/rack/query_parser.rb#7 class Rack::QueryParser # @return [QueryParser] a new instance of QueryParser # - # source://rack//lib/rack/query_parser.rb#33 - def initialize(params_class, _key_space_limit = T.unsafe(nil), param_depth_limit); end + # source://rack//lib/rack/query_parser.rb#36 + def initialize(params_class, param_depth_limit); end - # source://rack//lib/rack/query_parser.rb#167 + # source://rack//lib/rack/query_parser.rb#166 def make_params; end - # source://rack//lib/rack/query_parser.rb#171 + # source://rack//lib/rack/query_parser.rb#170 def new_depth_limit(param_depth_limit); end # normalize_params recursively expands parameters into structural types. If @@ -2832,12 +2536,12 @@ class Rack::QueryParser # and should no longer be used, it is kept for backwards compatibility with # earlier versions of rack. # - # source://rack//lib/rack/query_parser.rb#95 + # source://rack//lib/rack/query_parser.rb#94 def normalize_params(params, name, v, _depth = T.unsafe(nil)); end # Returns the value of attribute param_depth_limit. # - # source://rack//lib/rack/query_parser.rb#31 + # source://rack//lib/rack/query_parser.rb#34 def param_depth_limit; end # parse_nested_query expands a query string into structural types. Supported @@ -2846,7 +2550,7 @@ class Rack::QueryParser # ParameterTypeError is raised. Users are encouraged to return a 400 in this # case. # - # source://rack//lib/rack/query_parser.rb#74 + # source://rack//lib/rack/query_parser.rb#73 def parse_nested_query(qs, separator = T.unsafe(nil)); end # Stolen from Mongrel, with some small modifications: @@ -2854,196 +2558,152 @@ class Rack::QueryParser # to parse cookies by changing the characters used in the second parameter # (which defaults to '&'). # - # source://rack//lib/rack/query_parser.rb#46 + # source://rack//lib/rack/query_parser.rb#45 def parse_query(qs, separator = T.unsafe(nil), &unescaper); end private # @raise [ParamsTooDeepError] # - # source://rack//lib/rack/query_parser.rb#99 + # source://rack//lib/rack/query_parser.rb#98 def _normalize_params(params, name, v, depth); end # @return [Boolean] # - # source://rack//lib/rack/query_parser.rb#181 + # source://rack//lib/rack/query_parser.rb#180 def params_hash_has_key?(hash, key); end # @return [Boolean] # - # source://rack//lib/rack/query_parser.rb#177 + # source://rack//lib/rack/query_parser.rb#176 def params_hash_type?(obj); end - # source://rack//lib/rack/query_parser.rb#193 + # source://rack//lib/rack/query_parser.rb#192 def unescape(string, encoding = T.unsafe(nil)); end class << self - # source://rack//lib/rack/query_parser.rb#23 - def make_default(_key_space_limit = T.unsafe(nil), param_depth_limit); end + # source://rack//lib/rack/query_parser.rb#30 + def make_default(param_depth_limit); end end end -# source://rack//lib/rack/query_parser.rb#8 +# source://rack//lib/rack/query_parser.rb#9 Rack::QueryParser::COMMON_SEP = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/query_parser.rb#7 +# source://rack//lib/rack/query_parser.rb#8 Rack::QueryParser::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) # InvalidParameterError is the error that is raised when incoming structural # parameters (parsed by parse_nested_query) contain invalid format or byte # sequence. # -# source://rack//lib/rack/query_parser.rb#17 -class Rack::QueryParser::InvalidParameterError < ::ArgumentError; end +# source://rack//lib/rack/query_parser.rb#20 +class Rack::QueryParser::InvalidParameterError < ::ArgumentError + include ::Rack::BadRequest +end # ParameterTypeError is the error that is raised when incoming structural # parameters (parsed by parse_nested_query) contain conflicting types. # -# source://rack//lib/rack/query_parser.rb#12 -class Rack::QueryParser::ParameterTypeError < ::TypeError; end - -# source://rack//lib/rack/query_parser.rb#197 -class Rack::QueryParser::Params - # @return [Params] a new instance of Params - # - # source://rack//lib/rack/query_parser.rb#198 - def initialize; end - - # source://rack//lib/rack/query_parser.rb#203 - def [](key); end - - # source://rack//lib/rack/query_parser.rb#207 - def []=(key, value); end - - # @return [Boolean] - # - # source://rack//lib/rack/query_parser.rb#211 - def key?(key); end - - # Recursively unwraps nested `Params` objects and constructs an object - # of the same shape, but using the objects' internal representations - # (Ruby hashes) in place of the objects. The result is a hash consisting - # purely of Ruby primitives. - # - # Mutation warning! - # - # 1. This method mutates the internal representation of the `Params` - # objects in order to save object allocations. - # - # 2. The value you get back is a reference to the internal hash - # representation, not a copy. - # - # 3. Because the `Params` object's internal representation is mutable - # through the `#[]=` method, it is not thread safe. The result of - # getting the hash representation while another thread is adding a - # key to it is non-deterministic. - # - # source://rack//lib/rack/query_parser.rb#233 - def to_h; end +# source://rack//lib/rack/query_parser.rb#13 +class Rack::QueryParser::ParameterTypeError < ::TypeError + include ::Rack::BadRequest +end - # Recursively unwraps nested `Params` objects and constructs an object - # of the same shape, but using the objects' internal representations - # (Ruby hashes) in place of the objects. The result is a hash consisting - # purely of Ruby primitives. - # - # Mutation warning! - # - # 1. This method mutates the internal representation of the `Params` - # objects in order to save object allocations. - # - # 2. The value you get back is a reference to the internal hash - # representation, not a copy. - # - # 3. Because the `Params` object's internal representation is mutable - # through the `#[]=` method, it is not thread safe. The result of - # getting the hash representation while another thread is adding a - # key to it is non-deterministic. - # - # source://rack//lib/rack/query_parser.rb#233 +# source://rack//lib/rack/query_parser.rb#196 +class Rack::QueryParser::Params < ::Hash def to_params_hash; end end # ParamsTooDeepError is the error that is raised when params are recursively # nested over the specified limit. # -# source://rack//lib/rack/query_parser.rb#21 -class Rack::QueryParser::ParamsTooDeepError < ::RangeError; end +# source://rack//lib/rack/query_parser.rb#26 +class Rack::QueryParser::ParamsTooDeepError < ::RangeError + include ::Rack::BadRequest +end -# source://rack//lib/rack/constants.rb#42 +# source://rack//lib/rack/constants.rb#43 +Rack::RACK_EARLY_HINTS = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#44 Rack::RACK_ERRORS = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#49 +# source://rack//lib/rack/constants.rb#51 Rack::RACK_HIJACK = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#44 +# source://rack//lib/rack/constants.rb#46 Rack::RACK_INPUT = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#50 +# source://rack//lib/rack/constants.rb#52 Rack::RACK_IS_HIJACK = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#43 +# source://rack//lib/rack/constants.rb#45 Rack::RACK_LOGGER = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#63 +# source://rack//lib/rack/constants.rb#66 Rack::RACK_METHODOVERRIDE_ORIGINAL_METHOD = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#52 +# source://rack//lib/rack/constants.rb#54 Rack::RACK_MULTIPART_BUFFER_SIZE = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#53 +# source://rack//lib/rack/constants.rb#55 Rack::RACK_MULTIPART_TEMPFILE_FACTORY = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#51 +# source://rack//lib/rack/constants.rb#53 Rack::RACK_RECURSIVE_INCLUDE = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#59 +# source://rack//lib/rack/constants.rb#62 Rack::RACK_REQUEST_COOKIE_HASH = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#60 +# source://rack//lib/rack/constants.rb#63 Rack::RACK_REQUEST_COOKIE_STRING = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#58 +# source://rack//lib/rack/constants.rb#61 Rack::RACK_REQUEST_FORM_ERROR = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#56 +# source://rack//lib/rack/constants.rb#58 Rack::RACK_REQUEST_FORM_HASH = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#55 +# source://rack//lib/rack/constants.rb#57 Rack::RACK_REQUEST_FORM_INPUT = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#57 +# source://rack//lib/rack/constants.rb#59 +Rack::RACK_REQUEST_FORM_PAIRS = T.let(T.unsafe(nil), String) + +# source://rack//lib/rack/constants.rb#60 Rack::RACK_REQUEST_FORM_VARS = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#61 +# source://rack//lib/rack/constants.rb#64 Rack::RACK_REQUEST_QUERY_HASH = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#62 +# source://rack//lib/rack/constants.rb#65 Rack::RACK_REQUEST_QUERY_STRING = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#54 +# source://rack//lib/rack/constants.rb#56 Rack::RACK_RESPONSE_FINISHED = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#45 +# source://rack//lib/rack/constants.rb#47 Rack::RACK_SESSION = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#46 +# source://rack//lib/rack/constants.rb#48 Rack::RACK_SESSION_OPTIONS = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#47 +# source://rack//lib/rack/constants.rb#49 Rack::RACK_SHOWSTATUS_DETAIL = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#41 +# source://rack//lib/rack/constants.rb#42 Rack::RACK_TEMPFILES = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/constants.rb#48 +# source://rack//lib/rack/constants.rb#50 Rack::RACK_URL_SCHEME = T.let(T.unsafe(nil), String) # Rack environment variables # -# source://rack//lib/rack/constants.rb#40 +# source://rack//lib/rack/constants.rb#41 Rack::RACK_VERSION = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/version.rb#28 +# source://rack//lib/rack/version.rb#15 Rack::RELEASE = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#9 @@ -3307,25 +2967,13 @@ module Rack::Request::Helpers # This method support both application/x-www-form-urlencoded and # multipart/form-data. # - # source://rack//lib/rack/request.rb#498 + # source://rack//lib/rack/request.rb#503 def POST; end - # shortcut for request.params[key] - # - # source://rack//lib/rack/request.rb#609 - def [](key); end - - # shortcut for request.params[key] = value - # - # Note that modifications will not be persisted in the env. Use update_param or delete_param if you want to destructively modify params. - # - # source://rack//lib/rack/request.rb#618 - def []=(key, value); end - - # source://rack//lib/rack/request.rb#596 + # source://rack//lib/rack/request.rb#607 def accept_encoding; end - # source://rack//lib/rack/request.rb#600 + # source://rack//lib/rack/request.rb#611 def accept_language; end # The authority of the incoming request as defined by RFC3976. @@ -3337,7 +2985,7 @@ module Rack::Request::Helpers # source://rack//lib/rack/request.rb#266 def authority; end - # source://rack//lib/rack/request.rb#579 + # source://rack//lib/rack/request.rb#590 def base_url; end # source://rack//lib/rack/request.rb#190 @@ -3373,7 +3021,7 @@ module Rack::Request::Helpers # # env['rack.input'] is not touched. # - # source://rack//lib/rack/request.rb#574 + # source://rack//lib/rack/request.rb#585 def delete_param(k); end # Determine whether the request body contains form-data by checking @@ -3399,7 +3047,7 @@ module Rack::Request::Helpers # source://rack//lib/rack/request.rb#374 def forwarded_port; end - # source://rack//lib/rack/request.rb#592 + # source://rack//lib/rack/request.rb#603 def fullpath; end # Checks the HTTP request method (or verb) to see if it was of type GET @@ -3480,7 +3128,7 @@ module Rack::Request::Helpers # # Note that modifications will not be persisted in the env. Use update_param or delete_param if you want to destructively modify params. # - # source://rack//lib/rack/request.rb#545 + # source://rack//lib/rack/request.rb#556 def params; end # Determine whether the request body contains data by checking @@ -3498,7 +3146,7 @@ module Rack::Request::Helpers # source://rack//lib/rack/request.rb#235 def patch?; end - # source://rack//lib/rack/request.rb#588 + # source://rack//lib/rack/request.rb#599 def path; end # source://rack//lib/rack/request.rb#194 @@ -3581,7 +3229,7 @@ module Rack::Request::Helpers # @return [Boolean] # - # source://rack//lib/rack/request.rb#604 + # source://rack//lib/rack/request.rb#615 def trusted_proxy?(ip); end # Checks the HTTP request method (or verb) to see if it was of type UNLINK @@ -3597,12 +3245,12 @@ module Rack::Request::Helpers # # env['rack.input'] is not touched. # - # source://rack//lib/rack/request.rb#554 + # source://rack//lib/rack/request.rb#565 def update_param(k, v); end # Tries to return a remake of the original request URL as a string. # - # source://rack//lib/rack/request.rb#584 + # source://rack//lib/rack/request.rb#595 def url; end # source://rack//lib/rack/request.rb#201 @@ -3610,7 +3258,7 @@ module Rack::Request::Helpers # like Hash#values_at # - # source://rack//lib/rack/request.rb#625 + # source://rack//lib/rack/request.rb#620 def values_at(*keys); end # @return [Boolean] @@ -3620,54 +3268,57 @@ module Rack::Request::Helpers private - # source://rack//lib/rack/request.rb#757 + # source://rack//lib/rack/request.rb#776 def allowed_scheme(header); end - # source://rack//lib/rack/request.rb#631 + # source://rack//lib/rack/request.rb#628 def default_session; end - # source://rack//lib/rack/request.rb#761 + # source://rack//lib/rack/request.rb#684 + def expand_param_pairs(pairs, query_parser = T.unsafe(nil)); end + + # source://rack//lib/rack/request.rb#780 def forwarded_priority; end - # source://rack//lib/rack/request.rb#733 + # source://rack//lib/rack/request.rb#752 def forwarded_scheme; end # Get an array of values set in the RFC 7239 `Forwarded` request header. # - # source://rack//lib/rack/request.rb#659 + # source://rack//lib/rack/request.rb#668 def get_http_forwarded(token); end - # source://rack//lib/rack/request.rb#647 + # source://rack//lib/rack/request.rb#644 def parse_http_accept_header(header); end - # source://rack//lib/rack/request.rb#671 + # source://rack//lib/rack/request.rb#680 def parse_multipart; end - # source://rack//lib/rack/request.rb#667 + # source://rack//lib/rack/request.rb#676 def parse_query(qs, d = T.unsafe(nil)); end - # source://rack//lib/rack/request.rb#663 + # source://rack//lib/rack/request.rb#672 def query_parser; end - # source://rack//lib/rack/request.rb#724 + # source://rack//lib/rack/request.rb#743 def reject_trusted_ip_addresses(ip_addresses); end - # source://rack//lib/rack/request.rb#718 + # source://rack//lib/rack/request.rb#737 def split_authority(authority); end - # source://rack//lib/rack/request.rb#675 + # source://rack//lib/rack/request.rb#694 def split_header(value); end # Assist with compatibility when processing `X-Forwarded-For`. # - # source://rack//lib/rack/request.rb#634 + # source://rack//lib/rack/request.rb#631 def wrap_ipv6(host); end - # source://rack//lib/rack/request.rb#765 + # source://rack//lib/rack/request.rb#784 def x_forwarded_proto_priority; end end -# source://rack//lib/rack/request.rb#703 +# source://rack//lib/rack/request.rb#722 Rack::Request::Helpers::AUTHORITY = T.let(T.unsafe(nil), Regexp) # Default ports depending on scheme. Used to decide whether or not @@ -3683,7 +3334,7 @@ Rack::Request::Helpers::DEFAULT_PORTS = T.let(T.unsafe(nil), Hash) # source://rack//lib/rack/request.rb#153 Rack::Request::Helpers::FORM_DATA_MEDIA_TYPES = T.let(T.unsafe(nil), Array) -# source://rack//lib/rack/request.rb#728 +# source://rack//lib/rack/request.rb#747 Rack::Request::Helpers::FORWARDED_SCHEME_HEADERS = T.let(T.unsafe(nil), Hash) # source://rack//lib/rack/request.rb#176 @@ -3768,17 +3419,17 @@ class Rack::Response # @yield [_self] # @yieldparam _self [Rack::Response] the object that the method was called on # - # source://rack//lib/rack/response.rb#61 + # source://rack//lib/rack/response.rb#54 def initialize(body = T.unsafe(nil), status = T.unsafe(nil), headers = T.unsafe(nil)); end # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#163 + # source://rack//lib/rack/response.rb#164 def [](key); end # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#167 + # source://rack//lib/rack/response.rb#168 def []=(key, value); end # Returns the value of attribute body. @@ -3795,23 +3446,23 @@ class Rack::Response # @return [Boolean] # - # source://rack//lib/rack/response.rb#101 + # source://rack//lib/rack/response.rb#95 def chunked?; end - # source://rack//lib/rack/response.rb#151 + # source://rack//lib/rack/response.rb#152 def close; end # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#171 + # source://rack//lib/rack/response.rb#172 def delete_header(key); end - # source://rack//lib/rack/response.rb#131 + # source://rack//lib/rack/response.rb#130 def each(&callback); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#155 + # source://rack//lib/rack/response.rb#156 def empty?; end # Generate a response array consistent with the requirements of the SPEC. @@ -3819,25 +3470,20 @@ class Rack::Response # # @return [Array] a 3-tuple suitable of `[status, headers, body]` # - # source://rack//lib/rack/response.rb#113 + # source://rack//lib/rack/response.rb#107 def finish(&block); end # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#163 + # source://rack//lib/rack/response.rb#164 def get_header(key); end # @raise [ArgumentError] # @return [Boolean] # - # source://rack//lib/rack/response.rb#159 + # source://rack//lib/rack/response.rb#160 def has_header?(key); end - # Deprecated, use headers instead. - # - # source://rack//lib/rack/response.rb#35 - def header; end - # Returns the value of attribute headers. # # source://rack//lib/rack/response.rb#32 @@ -3857,15 +3503,15 @@ class Rack::Response # @return [Boolean] # - # source://rack//lib/rack/response.rb#105 + # source://rack//lib/rack/response.rb#99 def no_entity_body?; end - # source://rack//lib/rack/response.rb#96 + # source://rack//lib/rack/response.rb#90 def redirect(target, status = T.unsafe(nil)); end # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#167 + # source://rack//lib/rack/response.rb#168 def set_header(key, value); end # Returns the value of attribute status. @@ -3886,14 +3532,16 @@ class Rack::Response # # @return [Array] a 3-tuple suitable of `[status, headers, body]` # - # source://rack//lib/rack/response.rb#113 + # source://rack//lib/rack/response.rb#107 def to_a(&block); end - # Append to body and update content-length. + # Append a chunk to the response body. + # + # Converts the response into a buffered response if it wasn't already. # # NOTE: Do not mix #write and direct #body access! # - # source://rack//lib/rack/response.rb#145 + # source://rack//lib/rack/response.rb#146 def write(chunk); end class << self @@ -3905,11 +3553,11 @@ end # source://rack//lib/rack/response.rb#28 Rack::Response::CHUNKED = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/response.rb#179 +# source://rack//lib/rack/response.rb#180 module Rack::Response::Helpers # @return [Boolean] # - # source://rack//lib/rack/response.rb#190 + # source://rack//lib/rack/response.rb#191 def accepted?; end # Add a header that may have multiple values. @@ -3924,12 +3572,12 @@ module Rack::Response::Helpers # # @raise [ArgumentError] # - # source://rack//lib/rack/response.rb#218 + # source://rack//lib/rack/response.rb#219 def add_header(key, value); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#193 + # source://rack//lib/rack/response.rb#194 def bad_request?; end # Specify that the content should be cached. @@ -3938,210 +3586,219 @@ module Rack::Response::Helpers # @param duration [Integer] The number of seconds until the cache expires. # @param directive [Hash] a customizable set of options # - # source://rack//lib/rack/response.rb#306 + # source://rack//lib/rack/response.rb#307 def cache!(duration = T.unsafe(nil), directive: T.unsafe(nil)); end - # source://rack//lib/rack/response.rb#289 + # source://rack//lib/rack/response.rb#290 def cache_control; end - # source://rack//lib/rack/response.rb#293 + # source://rack//lib/rack/response.rb#294 def cache_control=(value); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#185 + # source://rack//lib/rack/response.rb#186 def client_error?; end - # source://rack//lib/rack/response.rb#256 + # source://rack//lib/rack/response.rb#257 def content_length; end # Get the content type of the response. # - # source://rack//lib/rack/response.rb#239 + # source://rack//lib/rack/response.rb#240 def content_type; end # Set the content type of the response. # - # source://rack//lib/rack/response.rb#244 + # source://rack//lib/rack/response.rb#245 def content_type=(content_type); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#189 + # source://rack//lib/rack/response.rb#190 def created?; end - # source://rack//lib/rack/response.rb#273 + # source://rack//lib/rack/response.rb#274 def delete_cookie(key, value = T.unsafe(nil)); end # Specifies that the content shouldn't be cached. Overrides `cache!` if already called. # - # source://rack//lib/rack/response.rb#298 + # source://rack//lib/rack/response.rb#299 def do_not_cache!; end - # source://rack//lib/rack/response.rb#313 + # source://rack//lib/rack/response.rb#314 def etag; end - # source://rack//lib/rack/response.rb#317 + # source://rack//lib/rack/response.rb#318 def etag=(value); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#195 + # source://rack//lib/rack/response.rb#196 def forbidden?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#205 + # source://rack//lib/rack/response.rb#206 def include?(header); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#182 + # source://rack//lib/rack/response.rb#183 def informational?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#180 + # source://rack//lib/rack/response.rb#181 def invalid?; end - # source://rack//lib/rack/response.rb#261 + # source://rack//lib/rack/response.rb#262 def location; end - # source://rack//lib/rack/response.rb#265 + # source://rack//lib/rack/response.rb#266 def location=(location); end - # source://rack//lib/rack/response.rb#248 + # source://rack//lib/rack/response.rb#249 def media_type; end - # source://rack//lib/rack/response.rb#252 + # source://rack//lib/rack/response.rb#253 def media_type_params; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#197 + # source://rack//lib/rack/response.rb#198 def method_not_allowed?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#192 + # source://rack//lib/rack/response.rb#193 def moved_permanently?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#191 + # source://rack//lib/rack/response.rb#192 def no_content?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#198 + # source://rack//lib/rack/response.rb#199 def not_acceptable?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#196 + # source://rack//lib/rack/response.rb#197 def not_found?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#188 + # source://rack//lib/rack/response.rb#189 def ok?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#200 + # source://rack//lib/rack/response.rb#201 def precondition_failed?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#203 + # source://rack//lib/rack/response.rb#204 def redirect?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#184 + # source://rack//lib/rack/response.rb#185 def redirection?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#199 + # source://rack//lib/rack/response.rb#200 def request_timeout?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#186 + # source://rack//lib/rack/response.rb#187 def server_error?; end - # source://rack//lib/rack/response.rb#269 + # source://rack//lib/rack/response.rb#270 def set_cookie(key, value); end - # source://rack//lib/rack/response.rb#281 + # source://rack//lib/rack/response.rb#282 def set_cookie_header; end - # source://rack//lib/rack/response.rb#285 + # source://rack//lib/rack/response.rb#286 def set_cookie_header=(value); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#183 + # source://rack//lib/rack/response.rb#184 def successful?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#194 + # source://rack//lib/rack/response.rb#195 def unauthorized?; end # @return [Boolean] # - # source://rack//lib/rack/response.rb#201 + # source://rack//lib/rack/response.rb#202 def unprocessable?; end protected - # source://rack//lib/rack/response.rb#353 + # source://rack//lib/rack/response.rb#359 def append(chunk); end - # source://rack//lib/rack/response.rb#323 + # Convert the body of this response into an internally buffered Array if possible. + # + # `@buffered` is a ternary value which indicates whether the body is buffered. It can be: + # * `nil` - The body has not been buffered yet. + # * `true` - The body is buffered as an Array instance. + # * `false` - The body is not buffered and cannot be buffered. + # + # @return [Boolean] whether the body is buffered as an Array instance. + # + # source://rack//lib/rack/response.rb#332 def buffered_body!; end end -# source://rack//lib/rack/response.rb#367 +# source://rack//lib/rack/response.rb#375 class Rack::Response::Raw include ::Rack::Response::Helpers # @return [Raw] a new instance of Raw # - # source://rack//lib/rack/response.rb#373 + # source://rack//lib/rack/response.rb#381 def initialize(status, headers); end - # source://rack//lib/rack/response.rb#390 + # source://rack//lib/rack/response.rb#398 def delete_header(key); end - # source://rack//lib/rack/response.rb#382 + # source://rack//lib/rack/response.rb#390 def get_header(key); end # @return [Boolean] # - # source://rack//lib/rack/response.rb#378 + # source://rack//lib/rack/response.rb#386 def has_header?(key); end # Returns the value of attribute headers. # - # source://rack//lib/rack/response.rb#370 + # source://rack//lib/rack/response.rb#378 def headers; end - # source://rack//lib/rack/response.rb#386 + # source://rack//lib/rack/response.rb#394 def set_header(key, value); end # Returns the value of attribute status. # - # source://rack//lib/rack/response.rb#371 + # source://rack//lib/rack/response.rb#379 def status; end # Sets the attribute status # # @param value the value to set the attribute status to. # - # source://rack//lib/rack/response.rb#371 + # source://rack//lib/rack/response.rb#379 def status=(_arg0); end end @@ -4372,45 +4029,144 @@ end # Be careful when you use this on public-facing sites as it could # reveal information helpful to attackers. # -# source://rack//lib/rack/show_exceptions.rb#19 +# source://rack//lib/rack/show_exceptions.rb#18 class Rack::ShowExceptions # @return [ShowExceptions] a new instance of ShowExceptions # - # source://rack//lib/rack/show_exceptions.rb#22 + # source://rack//lib/rack/show_exceptions.rb#26 def initialize(app); end - # source://rack//lib/rack/show_exceptions.rb#26 + # source://rack//lib/rack/show_exceptions.rb#30 def call(env); end - # source://rack//lib/rack/show_exceptions.rb#61 + # source://rack//lib/rack/show_exceptions.rb#65 def dump_exception(exception); end - # source://rack//lib/rack/show_exceptions.rb#112 + # source://rack//lib/rack/show_exceptions.rb#116 def h(obj); end # @return [Boolean] # - # source://rack//lib/rack/show_exceptions.rb#52 + # source://rack//lib/rack/show_exceptions.rb#56 def prefers_plaintext?(env); end - # source://rack//lib/rack/show_exceptions.rb#72 + # source://rack//lib/rack/show_exceptions.rb#76 def pretty(env, exception); end - # source://rack//lib/rack/show_exceptions.rb#108 + # source://rack//lib/rack/show_exceptions.rb#112 def template; end private # @return [Boolean] # - # source://rack//lib/rack/show_exceptions.rb#56 + # source://rack//lib/rack/show_exceptions.rb#60 def accepts_html?(env); end end -# source://rack//lib/rack/show_exceptions.rb#20 +# source://rack//lib/rack/show_exceptions.rb#19 Rack::ShowExceptions::CONTEXT = T.let(T.unsafe(nil), Integer) -# source://rack//lib/rack/show_exceptions.rb#127 +# source://rack//lib/rack/show_exceptions.rb#21 +class Rack::ShowExceptions::Frame < ::Struct + # Returns the value of attribute context_line + # + # @return [Object] the current value of context_line + def context_line; end + + # Sets the attribute context_line + # + # @param value [Object] the value to set the attribute context_line to. + # @return [Object] the newly set value + def context_line=(_); end + + # Returns the value of attribute filename + # + # @return [Object] the current value of filename + def filename; end + + # Sets the attribute filename + # + # @param value [Object] the value to set the attribute filename to. + # @return [Object] the newly set value + def filename=(_); end + + # Returns the value of attribute function + # + # @return [Object] the current value of function + def function; end + + # Sets the attribute function + # + # @param value [Object] the value to set the attribute function to. + # @return [Object] the newly set value + def function=(_); end + + # Returns the value of attribute lineno + # + # @return [Object] the current value of lineno + def lineno; end + + # Sets the attribute lineno + # + # @param value [Object] the value to set the attribute lineno to. + # @return [Object] the newly set value + def lineno=(_); end + + # Returns the value of attribute post_context + # + # @return [Object] the current value of post_context + def post_context; end + + # Sets the attribute post_context + # + # @param value [Object] the value to set the attribute post_context to. + # @return [Object] the newly set value + def post_context=(_); end + + # Returns the value of attribute post_context_lineno + # + # @return [Object] the current value of post_context_lineno + def post_context_lineno; end + + # Sets the attribute post_context_lineno + # + # @param value [Object] the value to set the attribute post_context_lineno to. + # @return [Object] the newly set value + def post_context_lineno=(_); end + + # Returns the value of attribute pre_context + # + # @return [Object] the current value of pre_context + def pre_context; end + + # Sets the attribute pre_context + # + # @param value [Object] the value to set the attribute pre_context to. + # @return [Object] the newly set value + def pre_context=(_); end + + # Returns the value of attribute pre_context_lineno + # + # @return [Object] the current value of pre_context_lineno + def pre_context_lineno; end + + # Sets the attribute pre_context_lineno + # + # @param value [Object] the value to set the attribute pre_context_lineno to. + # @return [Object] the newly set value + def pre_context_lineno=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rack//lib/rack/show_exceptions.rb#131 Rack::ShowExceptions::TEMPLATE = T.let(T.unsafe(nil), ERB) # Rack::ShowStatus catches all empty responses and replaces them @@ -4550,7 +4306,7 @@ class Rack::Static def route_file(path); end end -# source://rack//lib/rack/constants.rb#37 +# source://rack//lib/rack/constants.rb#38 Rack::TRACE = T.let(T.unsafe(nil), String) # source://rack//lib/rack/constants.rb#25 @@ -4571,7 +4327,7 @@ class Rack::TempfileReaper def call(env); end end -# source://rack//lib/rack/constants.rb#36 +# source://rack//lib/rack/constants.rb#37 Rack::UNLINK = T.let(T.unsafe(nil), String) # Rack::URLMap takes a hash mapping urls or paths to apps, and @@ -4610,46 +4366,40 @@ end # Rack::Utils contains a grab-bag of useful methods for writing web # applications adopted from all kinds of Ruby libraries. # -# source://rack//lib/rack/utils.rb#19 +# source://rack//lib/rack/utils.rb#20 module Rack::Utils private - # source://rack//lib/rack/utils.rb#255 - def add_cookie_to_header(header, key, value); end - - # source://rack//lib/rack/utils.rb#390 - def add_remove_cookie_to_header(header, key, value = T.unsafe(nil)); end - # Return best accept value to use, based on the algorithm # in RFC 2616 Section 14. If there are multiple best # matches (same specificity and quality), the value returned # is arbitrary. # - # source://rack//lib/rack/utils.rb#174 + # source://rack//lib/rack/utils.rb#166 def best_q_match(q_value_header, available_mimes); end - # source://rack//lib/rack/utils.rb#127 + # source://rack//lib/rack/utils.rb#119 def build_nested_query(value, prefix = T.unsafe(nil)); end - # source://rack//lib/rack/utils.rb#117 + # source://rack//lib/rack/utils.rb#109 def build_query(params); end # Parses the "Range:" header, if present, into an array of Range objects. # Returns nil if the header is missing or syntactically invalid. # Returns an empty array if none of the ranges are satisfiable. # - # source://rack//lib/rack/utils.rb#432 + # source://rack//lib/rack/utils.rb#408 def byte_ranges(env, size); end - # source://rack//lib/rack/utils.rb#636 + # source://rack//lib/rack/utils.rb#608 def clean_path_info(path_info); end # :nocov: # - # source://rack//lib/rack/utils.rb#98 + # source://rack//lib/rack/utils.rb#90 def clock_time; end - # source://rack//lib/rack/utils.rb#384 + # source://rack//lib/rack/utils.rb#366 def delete_cookie_header!(headers, key, value = T.unsafe(nil)); end # :call-seq: @@ -4666,7 +4416,7 @@ module Rack::Utils # delete_set_cookie_header("myname") # # => "myname=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" # - # source://rack//lib/rack/utils.rb#374 + # source://rack//lib/rack/utils.rb#362 def delete_set_cookie_header(key, value = T.unsafe(nil)); end # :call-seq: @@ -4687,34 +4437,32 @@ module Rack::Utils # header # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] # - # source://rack//lib/rack/utils.rb#414 + # source://rack//lib/rack/utils.rb#390 def delete_set_cookie_header!(header, key, value = T.unsafe(nil)); end # URI escapes. (CGI style space to +) # - # source://rack//lib/rack/utils.rb#38 + # source://rack//lib/rack/utils.rb#39 def escape(s); end + # source://rack//lib/rack/utils.rb#261 + def escape_cookie_key(key); end + # Escape ampersands, brackets and quotes to their HTML/XML entities. - # - # source://rack//lib/rack/utils.rb#199 - def escape_html(string); end + def escape_html(_arg0); end # Like URI escaping, but with %20 instead of +. Strictly speaking this is # true URI escaping. # - # source://rack//lib/rack/utils.rb#44 + # source://rack//lib/rack/utils.rb#45 def escape_path(s); end - # source://rack//lib/rack/utils.rb#156 + # source://rack//lib/rack/utils.rb#148 def forwarded_values(forwarded_header); end - # source://rack//lib/rack/utils.rb#436 + # source://rack//lib/rack/utils.rb#412 def get_byte_ranges(http_range, size); end - # source://rack//lib/rack/utils.rb#378 - def make_delete_cookie_header(header, key, value); end - # :call-seq: # parse_cookies(env) -> hash # @@ -4724,7 +4472,7 @@ module Rack::Utils # parse_cookies({'HTTP_COOKIE' => 'myname=myvalue'}) # # => {'myname' => 'myvalue'} # - # source://rack//lib/rack/utils.rb#279 + # source://rack//lib/rack/utils.rb#252 def parse_cookies(env); end # :call-seq: @@ -4737,27 +4485,27 @@ module Rack::Utils # parse_cookies_header('myname=myvalue; max-age=0') # # => {"myname"=>"myvalue", "max-age"=>"0"} # - # source://rack//lib/rack/utils.rb#245 + # source://rack//lib/rack/utils.rb#233 def parse_cookies_header(value); end - # source://rack//lib/rack/utils.rb#113 + # source://rack//lib/rack/utils.rb#105 def parse_nested_query(qs, d = T.unsafe(nil)); end - # source://rack//lib/rack/utils.rb#109 + # source://rack//lib/rack/utils.rb#101 def parse_query(qs, d = T.unsafe(nil), &unescaper); end - # source://rack//lib/rack/utils.rb#145 + # source://rack//lib/rack/utils.rb#137 def q_values(q_value_header); end - # source://rack//lib/rack/utils.rb#425 + # source://rack//lib/rack/utils.rb#401 def rfc2822(time); end # :nocov: # - # source://rack//lib/rack/utils.rb#476 + # source://rack//lib/rack/utils.rb#454 def secure_compare(a, b); end - # source://rack//lib/rack/utils.rb#203 + # source://rack//lib/rack/utils.rb#191 def select_best_encoding(available_encodings, accept_encoding); end # :call-seq: @@ -4783,7 +4531,7 @@ module Rack::Utils # set_cookie_header("myname", {value: "myvalue", max_age: 10}) # # => "myname=myvalue; max-age=10" # - # source://rack//lib/rack/utils.rb#306 + # source://rack//lib/rack/utils.rb#293 def set_cookie_header(key, value); end # :call-seq: @@ -4795,74 +4543,68 @@ module Rack::Utils # If the headers already contains a +set-cookie+ key, it will be converted # to an +Array+ if not already, and appended to. # - # source://rack//lib/rack/utils.rb#348 + # source://rack//lib/rack/utils.rb#336 def set_cookie_header!(headers, key, value); end - # source://rack//lib/rack/utils.rb#626 + # source://rack//lib/rack/utils.rb#588 def status_code(status); end # Unescapes a URI escaped string with +encoding+. +encoding+ will be the # target encoding of the string returned, and it defaults to UTF-8 # - # source://rack//lib/rack/utils.rb#56 + # source://rack//lib/rack/utils.rb#57 def unescape(s, encoding = T.unsafe(nil)); end # Unescapes the **path** component of a URI. See Rack::Utils.unescape for # unescaping query parameters or form components. # - # source://rack//lib/rack/utils.rb#50 + # source://rack//lib/rack/utils.rb#51 def unescape_path(s); end - # source://rack//lib/rack/utils.rb#653 + # source://rack//lib/rack/utils.rb#625 def valid_path?(path); end class << self - # source://rack//lib/rack/utils.rb#255 - def add_cookie_to_header(header, key, value); end - - # source://rack//lib/rack/utils.rb#390 - def add_remove_cookie_to_header(header, key, value = T.unsafe(nil)); end - # Return best accept value to use, based on the algorithm # in RFC 2616 Section 14. If there are multiple best # matches (same specificity and quality), the value returned # is arbitrary. # - # source://rack//lib/rack/utils.rb#174 + # source://rack//lib/rack/utils.rb#166 def best_q_match(q_value_header, available_mimes); end - # source://rack//lib/rack/utils.rb#127 + # source://rack//lib/rack/utils.rb#119 def build_nested_query(value, prefix = T.unsafe(nil)); end - # source://rack//lib/rack/utils.rb#117 + # source://rack//lib/rack/utils.rb#109 def build_query(params); end # Parses the "Range:" header, if present, into an array of Range objects. # Returns nil if the header is missing or syntactically invalid. # Returns an empty array if none of the ranges are satisfiable. # - # source://rack//lib/rack/utils.rb#432 + # source://rack//lib/rack/utils.rb#408 def byte_ranges(env, size); end - # source://rack//lib/rack/utils.rb#636 + # source://rack//lib/rack/utils.rb#608 def clean_path_info(path_info); end - # source://rack//lib/rack/utils.rb#98 + # source://rack//lib/rack/utils.rb#90 def clock_time; end # Returns the value of attribute default_query_parser. # - # source://rack//lib/rack/utils.rb#28 + # source://rack//lib/rack/utils.rb#29 def default_query_parser; end # Sets the attribute default_query_parser # # @param value the value to set the attribute default_query_parser to. # - # source://rack//lib/rack/utils.rb#28 + # source://rack//lib/rack/utils.rb#29 def default_query_parser=(_arg0); end - # source://rack//lib/rack/utils.rb#384 + # source://rack//lib/rack/utils.rb#366 def delete_cookie_header!(headers, key, value = T.unsafe(nil)); end # :call-seq: @@ -4879,7 +4621,7 @@ module Rack::Utils # delete_set_cookie_header("myname") # # => "myname=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT" # - # source://rack//lib/rack/utils.rb#374 + # source://rack//lib/rack/utils.rb#362 def delete_set_cookie_header(key, value = T.unsafe(nil)); end # :call-seq: @@ -4900,82 +4642,73 @@ module Rack::Utils # header # # => ["mycookie=; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"] # - # source://rack//lib/rack/utils.rb#414 + # source://rack//lib/rack/utils.rb#390 def delete_set_cookie_header!(header, key, value = T.unsafe(nil)); end # URI escapes. (CGI style space to +) # - # source://rack//lib/rack/utils.rb#38 + # source://rack//lib/rack/utils.rb#39 def escape(s); end - # Escape ampersands, brackets and quotes to their HTML/XML entities. - # - # source://rack//lib/rack/utils.rb#199 - def escape_html(string); end + # source://rack//lib/rack/utils.rb#261 + def escape_cookie_key(key); end + + def escape_html(_arg0); end # Like URI escaping, but with %20 instead of +. Strictly speaking this is # true URI escaping. # - # source://rack//lib/rack/utils.rb#44 + # source://rack//lib/rack/utils.rb#45 def escape_path(s); end - # source://rack//lib/rack/utils.rb#156 + # source://rack//lib/rack/utils.rb#148 def forwarded_values(forwarded_header); end - # source://rack//lib/rack/utils.rb#436 + # source://rack//lib/rack/utils.rb#412 def get_byte_ranges(http_range, size); end - # source://rack//lib/rack/utils.rb#88 - def key_space_limit; end - - # source://rack//lib/rack/utils.rb#93 - def key_space_limit=(v); end - - # source://rack//lib/rack/utils.rb#378 - def make_delete_cookie_header(header, key, value); end - # Returns the value of attribute multipart_file_limit. # - # source://rack//lib/rack/utils.rb#63 + # source://rack//lib/rack/utils.rb#64 def multipart_file_limit; end # Sets the attribute multipart_file_limit # # @param value the value to set the attribute multipart_file_limit to. # - # source://rack//lib/rack/utils.rb#63 + # source://rack//lib/rack/utils.rb#64 def multipart_file_limit=(_arg0); end # Returns the value of attribute multipart_file_limit. # multipart_part_limit is the original name of multipart_file_limit, but # the limit only counts parts with filenames. # - # source://rack//lib/rack/utils.rb#63 + # source://rack//lib/rack/utils.rb#64 def multipart_part_limit; end # Sets the attribute multipart_file_limit # # @param value the value to set the attribute multipart_file_limit to. # - # source://rack//lib/rack/utils.rb#63 + # source://rack//lib/rack/utils.rb#64 def multipart_part_limit=(_arg0); end # Returns the value of attribute multipart_total_part_limit. # - # source://rack//lib/rack/utils.rb#61 + # source://rack//lib/rack/utils.rb#62 def multipart_total_part_limit; end # Sets the attribute multipart_total_part_limit # # @param value the value to set the attribute multipart_total_part_limit to. # - # source://rack//lib/rack/utils.rb#61 + # source://rack//lib/rack/utils.rb#62 def multipart_total_part_limit=(_arg0); end - # source://rack//lib/rack/utils.rb#80 + # source://rack//lib/rack/utils.rb#81 def param_depth_limit; end - # source://rack//lib/rack/utils.rb#84 + # source://rack//lib/rack/utils.rb#85 def param_depth_limit=(v); end # :call-seq: @@ -4987,7 +4720,7 @@ module Rack::Utils # parse_cookies({'HTTP_COOKIE' => 'myname=myvalue'}) # # => {'myname' => 'myvalue'} # - # source://rack//lib/rack/utils.rb#279 + # source://rack//lib/rack/utils.rb#252 def parse_cookies(env); end # :call-seq: @@ -5000,25 +4733,25 @@ module Rack::Utils # parse_cookies_header('myname=myvalue; max-age=0') # # => {"myname"=>"myvalue", "max-age"=>"0"} # - # source://rack//lib/rack/utils.rb#245 + # source://rack//lib/rack/utils.rb#233 def parse_cookies_header(value); end - # source://rack//lib/rack/utils.rb#113 + # source://rack//lib/rack/utils.rb#105 def parse_nested_query(qs, d = T.unsafe(nil)); end - # source://rack//lib/rack/utils.rb#109 + # source://rack//lib/rack/utils.rb#101 def parse_query(qs, d = T.unsafe(nil), &unescaper); end - # source://rack//lib/rack/utils.rb#145 + # source://rack//lib/rack/utils.rb#137 def q_values(q_value_header); end - # source://rack//lib/rack/utils.rb#425 + # source://rack//lib/rack/utils.rb#401 def rfc2822(time); end - # source://rack//lib/rack/utils.rb#476 + # source://rack//lib/rack/utils.rb#454 def secure_compare(a, b); end - # source://rack//lib/rack/utils.rb#203 + # source://rack//lib/rack/utils.rb#191 def select_best_encoding(available_encodings, accept_encoding); end # :call-seq: @@ -5044,7 +4777,7 @@ module Rack::Utils # set_cookie_header("myname", {value: "myvalue", max_age: 10}) # # => "myname=myvalue; max-age=10" # - # source://rack//lib/rack/utils.rb#306 + # source://rack//lib/rack/utils.rb#293 def set_cookie_header(key, value); end # :call-seq: @@ -5056,32 +4789,32 @@ module Rack::Utils # If the headers already contains a +set-cookie+ key, it will be converted # to an +Array+ if not already, and appended to. # - # source://rack//lib/rack/utils.rb#348 + # source://rack//lib/rack/utils.rb#336 def set_cookie_header!(headers, key, value); end - # source://rack//lib/rack/utils.rb#626 + # source://rack//lib/rack/utils.rb#588 def status_code(status); end # Unescapes a URI escaped string with +encoding+. +encoding+ will be the # target encoding of the string returned, and it defaults to UTF-8 # - # source://rack//lib/rack/utils.rb#56 + # source://rack//lib/rack/utils.rb#57 def unescape(s, encoding = T.unsafe(nil)); end # Unescapes the **path** component of a URI. See Rack::Utils.unescape for # unescaping query parameters or form components. # - # source://rack//lib/rack/utils.rb#50 + # source://rack//lib/rack/utils.rb#51 def unescape_path(s); end # @return [Boolean] # - # source://rack//lib/rack/utils.rb#653 + # source://rack//lib/rack/utils.rb#625 def valid_path?(path); end end end -# source://rack//lib/rack/utils.rb#24 +# source://rack//lib/rack/utils.rb#25 Rack::Utils::COMMON_SEP = T.let(T.unsafe(nil), Hash) # Context allows the use of a compatible middleware at different points @@ -5090,107 +4823,80 @@ Rack::Utils::COMMON_SEP = T.let(T.unsafe(nil), Hash) # would be the request environment. The second of which would be the rack # application that the request would be forwarded to. # -# source://rack//lib/rack/utils.rb#499 +# source://rack//lib/rack/utils.rb#477 class Rack::Utils::Context # @return [Context] a new instance of Context # - # source://rack//lib/rack/utils.rb#502 + # source://rack//lib/rack/utils.rb#480 def initialize(app_f, app_r); end # Returns the value of attribute app. # - # source://rack//lib/rack/utils.rb#500 + # source://rack//lib/rack/utils.rb#478 def app; end - # source://rack//lib/rack/utils.rb#507 + # source://rack//lib/rack/utils.rb#485 def call(env); end - # source://rack//lib/rack/utils.rb#515 + # source://rack//lib/rack/utils.rb#493 def context(env, app = T.unsafe(nil)); end # Returns the value of attribute for. # - # source://rack//lib/rack/utils.rb#500 + # source://rack//lib/rack/utils.rb#478 def for; end - # source://rack//lib/rack/utils.rb#511 + # source://rack//lib/rack/utils.rb#489 def recontext(app); end end -# source://rack//lib/rack/utils.rb#23 +# source://rack//lib/rack/utils.rb#24 Rack::Utils::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/utils.rb#187 -Rack::Utils::ESCAPE_HTML = T.let(T.unsafe(nil), Hash) - -# source://rack//lib/rack/utils.rb#196 -Rack::Utils::ESCAPE_HTML_PATTERN = T.let(T.unsafe(nil), Regexp) - # Every standard HTTP code mapped to the appropriate message. # Generated with: -# curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv | \ -# ruby -ne 'm = /^(\d{3}),(?!Unassigned|\(Unused\))([^,]+)/.match($_) and \ -# puts "#{m[1]} => \x27#{m[2].strip}\x27,"' +# curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv \ +# | ruby -rcsv -e "puts CSV.parse(STDIN, headers: true) \ +# .reject {|v| v['Description'] == 'Unassigned' or v['Description'].include? '(' } \ +# .map {|v| %Q/#{v['Value']} => '#{v['Description']}'/ }.join(','+?\n)" # -# source://rack//lib/rack/utils.rb#553 +# source://rack//lib/rack/utils.rb#504 Rack::Utils::HTTP_STATUS_CODES = T.let(T.unsafe(nil), Hash) -# A wrapper around Headers -# header when set. -# -# @api private -# -# source://rack//lib/rack/utils.rb#524 -class Rack::Utils::HeaderHash < ::Hash - class << self - # @api private - # - # source://rack//lib/rack/utils.rb#525 - def [](headers); end - - # @api private - # @raise [TypeError] - # - # source://rack//lib/rack/utils.rb#543 - def allocate; end - - # @api private - # - # source://rack//lib/rack/utils.rb#536 - def new(hash = T.unsafe(nil)); end - end -end - -# source://rack//lib/rack/utils.rb#21 +# source://rack//lib/rack/utils.rb#22 Rack::Utils::InvalidParameterError = Rack::QueryParser::InvalidParameterError -# source://rack//lib/rack/utils.rb#25 +# source://rack//lib/rack/utils.rb#26 Rack::Utils::KeySpaceConstrainedParams = Rack::QueryParser::Params -# source://rack//lib/rack/utils.rb#651 +# source://rack//lib/rack/utils.rb#623 Rack::Utils::NULL_BYTE = T.let(T.unsafe(nil), String) -# source://rack//lib/rack/utils.rb#634 +# source://rack//lib/rack/utils.rb#574 +Rack::Utils::OBSOLETE_SYMBOLS_TO_STATUS_CODES = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/utils.rb#582 +Rack::Utils::OBSOLETE_SYMBOL_MAPPINGS = T.let(T.unsafe(nil), Hash) + +# source://rack//lib/rack/utils.rb#606 Rack::Utils::PATH_SEPS = T.let(T.unsafe(nil), Regexp) -# source://rack//lib/rack/utils.rb#20 +# source://rack//lib/rack/utils.rb#21 Rack::Utils::ParameterTypeError = Rack::QueryParser::ParameterTypeError -# source://rack//lib/rack/utils.rb#22 +# source://rack//lib/rack/utils.rb#23 Rack::Utils::ParamsTooDeepError = Rack::QueryParser::ParamsTooDeepError # Responses with HTTP status codes that should not have an entity body # -# source://rack//lib/rack/utils.rb#620 +# source://rack//lib/rack/utils.rb#568 Rack::Utils::STATUS_WITH_NO_ENTITY_BODY = T.let(T.unsafe(nil), Hash) -# source://rack//lib/rack/utils.rb#622 +# source://rack//lib/rack/utils.rb#570 Rack::Utils::SYMBOL_TO_STATUS_CODE = T.let(T.unsafe(nil), Hash) -# The Rack protocol version number implemented. +# A valid cookie key according to RFC2616. +# A can be any US-ASCII characters, except control characters, spaces, or tabs. It also must not contain a separator character like the following: ( ) < > @ , ; : \ " / [ ] ? = { }. # -# source://rack//lib/rack/version.rb#16 -Rack::VERSION = T.let(T.unsafe(nil), Array) - -# source://rack//lib/rack/version.rb#19 -Rack::VERSION_STRING = T.let(T.unsafe(nil), String) +# source://rack//lib/rack/utils.rb#258 +Rack::Utils::VALID_COOKIE_KEY = T.let(T.unsafe(nil), Regexp) diff --git a/sorbet/rbi/gems/rackup@2.1.0.rbi b/sorbet/rbi/gems/rackup@2.1.0.rbi index b294042e..6195ce7a 100644 --- a/sorbet/rbi/gems/rackup@2.1.0.rbi +++ b/sorbet/rbi/gems/rackup@2.1.0.rbi @@ -5,23 +5,6 @@ # 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.11/lib/rack/version.rb#31 - def release; end - - # source://rack/3.0.11/lib/rack/version.rb#23 - def version; end - end -end - -# source://rackup//lib/rack/handler.rb#9 -Rack::Handler = Rackup::Handler - -# source://rackup//lib/rack/server.rb#9 -Rack::Server = Rackup::Server - # source://rackup//lib/rackup/handler.rb#6 module Rackup; 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 a2007d72..248884d2 100644 --- a/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi +++ b/sorbet/rbi/gems/rails-controller-testing@1.0.5.rbi @@ -8,70 +8,70 @@ # source://rails-controller-testing//lib/rails/controller/testing/test_process.rb#3 module Rails class << self - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#43 + # source://railties/7.1.4/lib/rails.rb#43 def application; end - # source://railties/7.1.3.3/lib/rails.rb#41 + # source://railties/7.1.4/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#123 + # source://railties/7.1.4/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.3/lib/rails.rb#54 + # source://railties/7.1.4/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#50 + # source://railties/7.1.4/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 + # source://railties/7.1.4/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.3/lib/rails.rb#72 + # source://railties/7.1.4/lib/rails.rb#72 def env; end - # source://railties/7.1.3.3/lib/rails.rb#79 + # source://railties/7.1.4/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.3/lib/rails.rb#90 + # source://railties/7.1.4/lib/rails.rb#90 def error; end - # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 + # source://railties/7.1.4/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.3/lib/rails.rb#103 + # source://railties/7.1.4/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.3/lib/rails.rb#47 + # source://railties/7.1.4/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.3/lib/rails.rb#47 + # source://railties/7.1.4/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#119 + # source://railties/7.1.4/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.3/lib/rails.rb#63 + # source://railties/7.1.4/lib/rails.rb#63 def root; end - # source://railties/7.1.3.3/lib/rails/version.rb#7 + # source://railties/7.1.4/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 257d101f..820396e0 100644 --- a/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +++ b/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi @@ -8,70 +8,70 @@ # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#3 module Rails class << self - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#43 + # source://railties/7.1.4/lib/rails.rb#43 def application; end - # source://railties/7.1.3.3/lib/rails.rb#41 + # source://railties/7.1.4/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#123 + # source://railties/7.1.4/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.3/lib/rails.rb#54 + # source://railties/7.1.4/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#50 + # source://railties/7.1.4/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 + # source://railties/7.1.4/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.3/lib/rails.rb#72 + # source://railties/7.1.4/lib/rails.rb#72 def env; end - # source://railties/7.1.3.3/lib/rails.rb#79 + # source://railties/7.1.4/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.3/lib/rails.rb#90 + # source://railties/7.1.4/lib/rails.rb#90 def error; end - # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 + # source://railties/7.1.4/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.3/lib/rails.rb#103 + # source://railties/7.1.4/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.3/lib/rails.rb#47 + # source://railties/7.1.4/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.3/lib/rails.rb#47 + # source://railties/7.1.4/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#119 + # source://railties/7.1.4/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.3/lib/rails.rb#63 + # source://railties/7.1.4/lib/rails.rb#63 def root; end - # source://railties/7.1.3.3/lib/rails/version.rb#7 + # source://railties/7.1.4/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 1f669ed0..78c9e0a0 100644 --- a/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +++ b/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi @@ -8,16 +8,16 @@ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#14 module ActionView class << self - # source://actionview/7.1.3.3/lib/action_view/deprecator.rb#4 + # source://actionview/7.1.4/lib/action_view/deprecator.rb#4 def deprecator; end - # source://actionview/7.1.3.3/lib/action_view.rb#93 + # source://actionview/7.1.4/lib/action_view.rb#93 def eager_load!; end - # source://actionview/7.1.3.3/lib/action_view/gem_version.rb#5 + # source://actionview/7.1.4/lib/action_view/gem_version.rb#5 def gem_version; end - # source://actionview/7.1.3.3/lib/action_view/version.rb#7 + # source://actionview/7.1.4/lib/action_view/version.rb#7 def version; end end end @@ -37,7 +37,7 @@ module ActionView::Helpers mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods class << self - # source://actionview/7.1.3.3/lib/action_view/helpers.rb#35 + # source://actionview/7.1.4/lib/action_view/helpers.rb#35 def eager_load!; end end end @@ -46,54 +46,54 @@ end module ActionView::Helpers::SanitizeHelper mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#111 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#111 def sanitize(html, options = T.unsafe(nil)); end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#116 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#116 def sanitize_css(style); end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#12 def sanitizer_vendor; end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#12 def sanitizer_vendor=(val); end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#150 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#150 def strip_links(html); end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#133 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#133 def strip_tags(html); end class << self - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#12 def sanitizer_vendor; end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#12 + # source://actionview/7.1.4/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.3/lib/action_view/helpers/sanitize_helper.rb#175 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#175 def full_sanitizer; end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#155 def full_sanitizer=(_arg0); end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#185 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#185 def link_sanitizer; end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#155 def link_sanitizer=(_arg0); end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#195 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#195 def safe_list_sanitizer; end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#155 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#155 def safe_list_sanitizer=(_arg0); end - # source://actionview/7.1.3.3/lib/action_view/helpers/sanitize_helper.rb#165 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#165 def sanitized_allowed_attributes; end # Replaces the allowed HTML attributes for the +sanitize+ helper. @@ -123,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.3/lib/action_view/helpers/sanitize_helper.rb#161 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#161 def sanitized_allowed_tags; end # Replaces the allowed tags for the +sanitize+ helper. @@ -159,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.3/lib/action_view/helpers/sanitize_helper.rb#157 + # source://actionview/7.1.4/lib/action_view/helpers/sanitize_helper.rb#157 def sanitizer_vendor; end private @@ -171,70 +171,70 @@ end # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#3 module Rails class << self - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#43 + # source://railties/7.1.4/lib/rails.rb#43 def application; end - # source://railties/7.1.3.3/lib/rails.rb#41 + # source://railties/7.1.4/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#123 + # source://railties/7.1.4/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.3/lib/rails.rb#54 + # source://railties/7.1.4/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#50 + # source://railties/7.1.4/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 + # source://railties/7.1.4/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.3/lib/rails.rb#72 + # source://railties/7.1.4/lib/rails.rb#72 def env; end - # source://railties/7.1.3.3/lib/rails.rb#79 + # source://railties/7.1.4/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.3/lib/rails.rb#90 + # source://railties/7.1.4/lib/rails.rb#90 def error; end - # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 + # source://railties/7.1.4/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.3/lib/rails.rb#103 + # source://railties/7.1.4/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.3/lib/rails.rb#47 + # source://railties/7.1.4/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.3/lib/rails.rb#47 + # source://railties/7.1.4/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.3/lib/rails.rb#42 + # source://railties/7.1.4/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.3/lib/rails.rb#119 + # source://railties/7.1.4/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.3/lib/rails.rb#63 + # source://railties/7.1.4/lib/rails.rb#63 def root; end - # source://railties/7.1.3.3/lib/rails/version.rb#7 + # source://railties/7.1.4/lib/rails/version.rb#7 def version; end end end diff --git a/sorbet/rbi/gems/rails@7.1.3.3.rbi b/sorbet/rbi/gems/rails@7.1.4.rbi similarity index 100% rename from sorbet/rbi/gems/rails@7.1.3.3.rbi rename to sorbet/rbi/gems/rails@7.1.4.rbi diff --git a/sorbet/rbi/gems/railties@7.1.3.3.rbi b/sorbet/rbi/gems/railties@7.1.4.rbi similarity index 96% rename from sorbet/rbi/gems/railties@7.1.3.3.rbi rename to sorbet/rbi/gems/railties@7.1.4.rbi index f388be3d..59ec18f5 100644 --- a/sorbet/rbi/gems/railties@7.1.3.3.rbi +++ b/sorbet/rbi/gems/railties@7.1.4.rbi @@ -5,7 +5,7 @@ # Please instead update this file by running `bin/tapioca gem railties`. -# :include: railties/README.rdoc +# :include: ../README.rdoc # # source://railties//lib/rails/gem_version.rb#3 module Rails @@ -202,25 +202,25 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#109 def initialize(initial_variable_values = T.unsafe(nil), &block); end - # source://sprockets-rails/3.4.2/lib/sprockets/railtie.rb#37 + # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#38 def asset_precompiled?(logical_path); end # Returns the value of attribute assets. # - # source://sprockets-rails/3.4.2/lib/sprockets/railtie.rb#30 + # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#31 def assets; end # Sets the attribute assets # # @param value the value to set the attribute assets to. # - # source://sprockets-rails/3.4.2/lib/sprockets/railtie.rb#30 + # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#31 def assets=(_arg0); end - # source://sprockets-rails/3.4.2/lib/sprockets/railtie.rb#33 + # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#34 def assets_manifest; end - # source://sprockets-rails/3.4.2/lib/sprockets/railtie.rb#33 + # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#34 def assets_manifest=(_arg0); end # Returns the value of attribute autoloaders. @@ -304,7 +304,7 @@ class Rails::Application < ::Rails::Engine # config/credentials/#{environment}.key for the current # environment, or +config/master.key+ if that file does not exist. # - # source://railties//lib/rails/application.rb#516 + # source://railties//lib/rails/application.rb#519 def credentials; end # Sets the attribute credentials @@ -330,7 +330,7 @@ class Rails::Application < ::Rails::Engine # Eager loads the application code. # - # source://railties//lib/rails/application.rb#574 + # source://railties//lib/rails/application.rb#577 def eager_load!; end # Returns an ActiveSupport::EncryptedConfiguration instance for an encrypted @@ -349,7 +349,7 @@ class Rails::Application < ::Rails::Engine # command. (See the output of bin/rails encrypted:edit --help for # more information.) # - # source://railties//lib/rails/application.rb#535 + # source://railties//lib/rails/application.rb#538 def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end # Stores some of the \Rails initial environment parameters which @@ -369,7 +369,7 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#363 def generators(&blk); end - # source://railties//lib/rails/application.rb#548 + # source://railties//lib/rails/application.rb#551 def helpers_paths; end # Initialize the application passing the given group. By default, the @@ -408,7 +408,7 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#161 def key_generator(secret_key_base = T.unsafe(nil)); end - # source://railties//lib/rails/application.rb#568 + # source://railties//lib/rails/application.rb#571 def load_generators(app = T.unsafe(nil)); end # Returns a message verifier object. @@ -471,10 +471,10 @@ class Rails::Application < ::Rails::Engine # copying migrations from railties ; we need them in the order given by # +railties_order+. # - # source://railties//lib/rails/application.rb#564 + # source://railties//lib/rails/application.rb#567 def migration_railties; end - # source://sprockets-rails/3.4.2/lib/sprockets/railtie.rb#51 + # source://sprockets-rails/3.5.2/lib/sprockets/railtie.rb#52 def precompiled_assets(clear_cache = T.unsafe(nil)); end # If you try to define a set of Rake tasks on the instance, these will get @@ -566,7 +566,7 @@ class Rails::Application < ::Rails::Engine # source://railties//lib/rails/application.rb#369 def server(&blk); end - # source://railties//lib/rails/application.rb#544 + # source://railties//lib/rails/application.rb#547 def to_app; end # Returns an array of file paths appended with a hash of @@ -578,56 +578,56 @@ class Rails::Application < ::Rails::Engine protected - # source://railties//lib/rails/application.rb#647 + # source://railties//lib/rails/application.rb#650 def default_middleware_stack; end - # source://railties//lib/rails/application.rb#662 + # source://railties//lib/rails/application.rb#665 def ensure_generator_templates_added; end # Returns the ordered railties for this application considering railties_order. # - # source://railties//lib/rails/application.rb#613 + # source://railties//lib/rails/application.rb#616 def ordered_railties; end - # source://railties//lib/rails/application.rb#635 + # source://railties//lib/rails/application.rb#638 def railties_initializers(current); end - # source://railties//lib/rails/application.rb#602 + # source://railties//lib/rails/application.rb#605 def run_console_blocks(app); end - # source://railties//lib/rails/application.rb#592 + # source://railties//lib/rails/application.rb#595 def run_generators_blocks(app); end - # source://railties//lib/rails/application.rb#597 + # source://railties//lib/rails/application.rb#600 def run_runner_blocks(app); end - # source://railties//lib/rails/application.rb#607 + # source://railties//lib/rails/application.rb#610 def run_server_blocks(app); end - # source://railties//lib/rails/application.rb#581 + # source://railties//lib/rails/application.rb#584 def run_tasks_blocks(app); end - # source://railties//lib/rails/application.rb#652 + # source://railties//lib/rails/application.rb#655 def validate_secret_key_base(secret_key_base); end private - # source://railties//lib/rails/application.rb#700 + # source://railties//lib/rails/application.rb#703 def build_middleware; end - # source://railties//lib/rails/application.rb#693 + # source://railties//lib/rails/application.rb#696 def build_request(env); end - # source://railties//lib/rails/application.rb#704 + # source://railties//lib/rails/application.rb#707 def coerce_same_site_protection(protection); end - # source://railties//lib/rails/application.rb#708 + # source://railties//lib/rails/application.rb#711 def filter_parameters; end - # source://railties//lib/rails/application.rb#668 + # source://railties//lib/rails/application.rb#671 def generate_local_secret; end - # source://railties//lib/rails/application.rb#687 + # source://railties//lib/rails/application.rb#690 def secrets_secret_key_base; end class << self @@ -1453,10 +1453,10 @@ class Rails::Application::RoutesReloader # source://railties//lib/rails/application/routes_reloader.rb#15 def initialize; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end # Returns the value of attribute eager_load. @@ -1522,13 +1522,13 @@ class Rails::Application::RoutesReloader def updater; end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end end end @@ -1537,7 +1537,7 @@ end class Rails::ApplicationController < ::ActionController::Base private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://railties//lib/rails/application_controller.rb#25 @@ -1552,16 +1552,16 @@ class Rails::ApplicationController < ::ActionController::Base def require_local!; end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 + # source://actionview/7.1.4/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 + # source://actionview/7.1.4/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2175,16 +2175,16 @@ class Rails::Engine < ::Rails::Railtie # source://railties//lib/rails/engine.rb#439 def initialize; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 def _load_seed_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 def _run_load_seed_callbacks(&block); end # Returns the underlying Rack application for this engine. @@ -2332,19 +2332,19 @@ class Rails::Engine < ::Rails::Railtie def load_config_initializer(initializer); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 def _load_seed_callbacks; end - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 def _load_seed_callbacks=(value); end # Returns the value of attribute called_from. @@ -2600,7 +2600,7 @@ class Rails::HealthController < ::ActionController::Base private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://railties//lib/rails/health_controller.rb#51 @@ -2613,10 +2613,10 @@ class Rails::HealthController < ::ActionController::Base def render_up; end class << self - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end - # source://activesupport/7.1.3.3/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4/lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2667,7 +2667,7 @@ class Rails::InfoController < ::Rails::ApplicationController private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://railties//lib/rails/info_controller.rb#8 @@ -2677,16 +2677,16 @@ class Rails::InfoController < ::Rails::ApplicationController def matching_routes(query:, exact_match:); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 + # source://actionview/7.1.4/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 + # source://actionview/7.1.4/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2794,7 +2794,7 @@ class Rails::MailersController < ::Rails::ApplicationController private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://railties//lib/rails/mailers_controller.rb#90 @@ -2821,23 +2821,19 @@ class Rails::MailersController < ::Rails::ApplicationController def show_previews?; end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.3/lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.4/lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end # source://railties//lib/rails/mailers_controller.rb#0 module Rails::MailersController::HelperMethods - include ::ActionText::ContentHelper - include ::ActionText::TagHelper - include ::InertiaRails::Helper - include ::Hotwire::Livereload::LivereloadTagsHelper include ::ViteRails::TagHelpers include ::ActionController::Base::HelperMethods @@ -3900,7 +3896,7 @@ Rails::VERSION::MAJOR = T.let(T.unsafe(nil), Integer) Rails::VERSION::MINOR = T.let(T.unsafe(nil), Integer) # source://railties//lib/rails/gem_version.rb#13 -Rails::VERSION::PRE = T.let(T.unsafe(nil), String) +Rails::VERSION::PRE = T.let(T.unsafe(nil), T.untyped) # source://railties//lib/rails/gem_version.rb#15 Rails::VERSION::STRING = T.let(T.unsafe(nil), String) @@ -3915,20 +3911,20 @@ class Rails::WelcomeController < ::Rails::ApplicationController private - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#330 + # source://actionview/7.1.4/lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#211 + # source://actionview/7.1.4/lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.3/lib/action_view/layouts.rb#212 + # source://actionview/7.1.4/lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.3/lib/action_controller/metal.rb#262 + # source://actionpack/7.1.4/lib/action_controller/metal.rb#262 def middleware_stack; end end end diff --git a/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi b/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi deleted file mode 100644 index 529b1b2f..00000000 --- a/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +++ /dev/null @@ -1,9 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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.11.1.rbi b/sorbet/rbi/gems/rb-inotify@0.11.1.rbi deleted file mode 100644 index 18f3c2f6..00000000 --- a/sorbet/rbi/gems/rb-inotify@0.11.1.rbi +++ /dev/null @@ -1,9 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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.13.rbi b/sorbet/rbi/gems/rbi@0.1.14.rbi similarity index 69% rename from sorbet/rbi/gems/rbi@0.1.13.rbi rename to sorbet/rbi/gems/rbi@0.1.14.rbi index 78d161be..68b07267 100644 --- a/sorbet/rbi/gems/rbi@0.1.13.rbi +++ b/sorbet/rbi/gems/rbi@0.1.14.rbi @@ -5,28 +5,24 @@ # Please instead update this file by running `bin/tapioca gem rbi`. -# source://rbi//lib/rbi/loc.rb#4 +# source://rbi//lib/rbi.rb#7 module RBI; end -# source://rbi//lib/rbi/model.rb#1041 +# source://rbi//lib/rbi/model.rb#1043 class RBI::Arg < ::RBI::Node - # source://rbi//lib/rbi/model.rb#1053 + # source://rbi//lib/rbi/model.rb#1055 sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(value, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#1059 + # source://rbi//lib/rbi/model.rb#1061 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#613 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1064 + # source://rbi//lib/rbi/model.rb#1066 sig { returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#1045 + # source://rbi//lib/rbi/model.rb#1047 sig { returns(::String) } def value; end end @@ -35,13 +31,13 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#349 +# source://rbi//lib/rbi/model.rb#351 class RBI::Attr < ::RBI::NodeWithComments include ::RBI::Indexable abstract! - # source://rbi//lib/rbi/model.rb#374 + # source://rbi//lib/rbi/model.rb#376 sig do params( name: ::Symbol, @@ -54,17 +50,19 @@ class RBI::Attr < ::RBI::NodeWithComments end def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#348 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#412 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#414 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @abstract # - # source://rbi//lib/rbi/model.rb#382 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#61 + sig { abstract.returns(T::Array[::RBI::Method]) } + def convert_to_methods; end + + # @abstract + # + # source://rbi//lib/rbi/model.rb#384 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end @@ -72,35 +70,64 @@ class RBI::Attr < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#420 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#422 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/model.rb#356 + # source://rbi//lib/rbi/model.rb#358 sig { returns(T::Array[::Symbol]) } def names; end - # source://rbi//lib/rbi/printer.rb#375 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/model.rb#362 + # source://rbi//lib/rbi/model.rb#364 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # source://rbi//lib/rbi/model.rb#359 + # source://rbi//lib/rbi/model.rb#361 sig { returns(::RBI::Visibility) } def visibility; end # @return [Visibility] # - # source://rbi//lib/rbi/model.rb#359 + # source://rbi//lib/rbi/model.rb#361 def visibility=(_arg0); end + + private + + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#89 + sig do + params( + name: ::String, + sig: T.nilable(::RBI::Sig), + visibility: ::RBI::Visibility, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment] + ).returns(::RBI::Method) + end + def create_getter_method(name, sig, visibility, loc, comments); end + + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#110 + sig do + params( + name: ::String, + sig: T.nilable(::RBI::Sig), + attribute_type: T.nilable(::String), + visibility: ::RBI::Visibility, + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment] + ).returns(::RBI::Method) + end + def create_setter_method(name, sig, attribute_type, visibility, loc, comments); end + + # @raise [UnexpectedMultipleSigsError] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#66 + sig(:final) { returns([T.nilable(::RBI::Sig), T.nilable(::String)]) } + def parse_sig; end end -# source://rbi//lib/rbi/model.rb#385 +# source://rbi//lib/rbi/model.rb#387 class RBI::AttrAccessor < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#399 + # source://rbi//lib/rbi/model.rb#401 sig do params( name: ::Symbol, @@ -114,22 +141,26 @@ class RBI::AttrAccessor < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#452 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#454 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#405 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#140 + sig { override.returns(T::Array[::RBI::Method]) } + def convert_to_methods; end + + # source://rbi//lib/rbi/model.rb#407 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#411 + # source://rbi//lib/rbi/model.rb#413 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#417 +# source://rbi//lib/rbi/model.rb#419 class RBI::AttrReader < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#431 + # source://rbi//lib/rbi/model.rb#433 sig do params( name: ::Symbol, @@ -143,22 +174,26 @@ class RBI::AttrReader < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#434 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#436 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#437 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#154 + sig { override.returns(T::Array[::RBI::Method]) } + def convert_to_methods; end + + # source://rbi//lib/rbi/model.rb#439 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#443 + # source://rbi//lib/rbi/model.rb#445 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#449 +# source://rbi//lib/rbi/model.rb#451 class RBI::AttrWriter < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#463 + # source://rbi//lib/rbi/model.rb#465 sig do params( name: ::Symbol, @@ -172,35 +207,35 @@ class RBI::AttrWriter < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#443 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#445 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#469 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#163 + sig { override.returns(T::Array[::RBI::Method]) } + def convert_to_methods; end + + # source://rbi//lib/rbi/model.rb#471 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#475 + # source://rbi//lib/rbi/model.rb#477 sig { override.returns(::String) } def to_s; end end # An arbitrary blank line that can be added both in trees and comments # -# source://rbi//lib/rbi/model.rb#74 +# source://rbi//lib/rbi/model.rb#76 class RBI::BlankLine < ::RBI::Comment - # source://rbi//lib/rbi/model.rb#78 + # source://rbi//lib/rbi/model.rb#80 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#217 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end end -# source://rbi//lib/rbi/model.rb#814 +# source://rbi//lib/rbi/model.rb#816 class RBI::BlockParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#825 + # source://rbi//lib/rbi/model.rb#827 sig do params( name: ::String, @@ -211,26 +246,18 @@ class RBI::BlockParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#836 + # source://rbi//lib/rbi/model.rb#838 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#543 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#548 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#831 + # source://rbi//lib/rbi/model.rb#833 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#218 +# source://rbi//lib/rbi/model.rb#220 class RBI::Class < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#236 + # source://rbi//lib/rbi/model.rb#238 sig do params( name: ::String, @@ -242,58 +269,50 @@ class RBI::Class < ::RBI::Scope end def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#376 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#378 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#244 + # source://rbi//lib/rbi/model.rb#246 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#222 + # source://rbi//lib/rbi/model.rb#224 sig { returns(::String) } def name; end # @return [String] # - # source://rbi//lib/rbi/model.rb#222 + # source://rbi//lib/rbi/model.rb#224 def name=(_arg0); end - # source://rbi//lib/rbi/printer.rb#284 - sig { override.params(v: ::RBI::Printer).void } - def print_header(v); end - - # source://rbi//lib/rbi/model.rb#225 + # source://rbi//lib/rbi/model.rb#227 sig { returns(T.nilable(::String)) } def superclass_name; end # @return [String, nil] # - # source://rbi//lib/rbi/model.rb#225 + # source://rbi//lib/rbi/model.rb#227 def superclass_name=(_arg0); end end -# source://rbi//lib/rbi/model.rb#53 +# source://rbi//lib/rbi/model.rb#55 class RBI::Comment < ::RBI::Node - # source://rbi//lib/rbi/model.rb#60 + # source://rbi//lib/rbi/model.rb#62 sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(text, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#66 + # source://rbi//lib/rbi/model.rb#68 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#197 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#57 + # source://rbi//lib/rbi/model.rb#59 sig { returns(::String) } def text; end # @return [String] # - # source://rbi//lib/rbi/model.rb#57 + # source://rbi//lib/rbi/model.rb#59 def text=(_arg0); end end @@ -312,33 +331,38 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#589 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#591 class RBI::ConflictTree < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#596 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#601 sig { params(left_name: ::String, right_name: ::String).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#607 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#595 sig { returns(::RBI::Tree) } def left; end + # source://rbi//lib/rbi/rewriters/merge_trees.rb#598 + sig { returns(::String) } + def left_name; end + # @return [Tree] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#595 def right; end + + # @return [String] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#598 + def right_name; end end # Consts # -# source://rbi//lib/rbi/model.rb#312 +# source://rbi//lib/rbi/model.rb#314 class RBI::Const < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#327 + # source://rbi//lib/rbi/model.rb#329 sig do params( name: ::String, @@ -350,15 +374,11 @@ class RBI::Const < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/printer.rb#335 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#405 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#335 + # source://rbi//lib/rbi/model.rb#337 sig { returns(::String) } def fully_qualified_name; end @@ -366,25 +386,31 @@ class RBI::Const < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#316 + # source://rbi//lib/rbi/model.rb#318 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#342 + # source://rbi//lib/rbi/model.rb#344 sig { override.returns(::String) } def to_s; end # @return [String] # - # source://rbi//lib/rbi/model.rb#316 + # source://rbi//lib/rbi/model.rb#318 def value; end end -# source://rbi//lib/rbi/model.rb#889 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#351 +class RBI::DuplicateNodeError < ::RBI::Error; end + +# source://rbi//lib/rbi.rb#8 +class RBI::Error < ::StandardError; end + +# source://rbi//lib/rbi/model.rb#891 class RBI::Extend < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#901 + # source://rbi//lib/rbi/model.rb#903 sig do params( name: ::String, @@ -396,7 +422,7 @@ class RBI::Extend < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#502 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#504 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -404,14 +430,14 @@ class RBI::Extend < ::RBI::Mixin sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#907 + # source://rbi//lib/rbi/model.rb#909 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#137 +# source://rbi//lib/rbi/model.rb#139 class RBI::File - # source://rbi//lib/rbi/model.rb#156 + # source://rbi//lib/rbi/model.rb#158 sig do params( strictness: T.nilable(::String), @@ -421,28 +447,24 @@ class RBI::File end def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#164 + # source://rbi//lib/rbi/model.rb#166 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi//lib/rbi/printer.rb#105 - sig { params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#147 + # source://rbi//lib/rbi/model.rb#149 sig { returns(T::Array[::RBI::Comment]) } def comments; end # @return [Array] # - # source://rbi//lib/rbi/model.rb#147 + # source://rbi//lib/rbi/model.rb#149 def comments=(_arg0); end - # source://rbi//lib/rbi/model.rb#169 + # source://rbi//lib/rbi/model.rb#171 sig { returns(T::Boolean) } def empty?; end - # source://rbi//lib/rbi/printer.rb#129 + # source://rbi//lib/rbi/printer.rb#744 sig do params( out: T.any(::IO, ::StringIO), @@ -453,32 +475,32 @@ class RBI::File end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#141 + # source://rbi//lib/rbi/model.rb#143 sig { returns(::RBI::Tree) } def root; end # @return [Tree] # - # source://rbi//lib/rbi/model.rb#141 + # source://rbi//lib/rbi/model.rb#143 def root=(_arg0); end - # source://rbi//lib/rbi/model.rb#144 + # source://rbi//lib/rbi/model.rb#146 sig { returns(T.nilable(::String)) } def strictness; end # @return [String, nil] # - # source://rbi//lib/rbi/model.rb#144 + # source://rbi//lib/rbi/model.rb#146 def strictness=(_arg0); end - # source://rbi//lib/rbi/printer.rb#135 + # source://rbi//lib/rbi/printer.rb#750 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end # source://rbi//lib/rbi/formatter.rb#5 class RBI::Formatter - # source://rbi//lib/rbi/formatter.rb#36 + # source://rbi//lib/rbi/formatter.rb#24 sig do params( add_sig_templates: T::Boolean, @@ -491,40 +513,24 @@ class RBI::Formatter end def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_methods: T.unsafe(nil), sort_nodes: T.unsafe(nil)); end - # source://rbi//lib/rbi/formatter.rb#15 - sig { params(add_sig_templates: T::Boolean).returns(T::Boolean) } - def add_sig_templates=(add_sig_templates); end - - # source://rbi//lib/rbi/formatter.rb#59 + # source://rbi//lib/rbi/formatter.rb#47 sig { params(file: ::RBI::File).void } def format_file(file); end - # source://rbi//lib/rbi/formatter.rb#64 + # source://rbi//lib/rbi/formatter.rb#52 sig { params(tree: ::RBI::Tree).void } def format_tree(tree); end - # source://rbi//lib/rbi/formatter.rb#18 - sig { params(group_nodes: T::Boolean).returns(T::Boolean) } - def group_nodes=(group_nodes); end - - # source://rbi//lib/rbi/formatter.rb#24 + # source://rbi//lib/rbi/formatter.rb#12 sig { returns(T.nilable(::Integer)) } def max_line_length; end # @return [Integer, nil] # - # source://rbi//lib/rbi/formatter.rb#24 - def max_line_length=(_arg0); end - - # source://rbi//lib/rbi/formatter.rb#21 - sig { params(nest_non_public_methods: T::Boolean).returns(T::Boolean) } - def nest_non_public_methods=(nest_non_public_methods); end - # source://rbi//lib/rbi/formatter.rb#12 - sig { params(nest_singleton_methods: T::Boolean).returns(T::Boolean) } - def nest_singleton_methods=(nest_singleton_methods); end + def max_line_length=(_arg0); end - # source://rbi//lib/rbi/formatter.rb#53 + # source://rbi//lib/rbi/formatter.rb#41 sig { params(file: ::RBI::File).returns(::String) } def print_file(file); end @@ -533,22 +539,18 @@ class RBI::Formatter def sort_nodes=(sort_nodes); end end -# source://rbi//lib/rbi/rewriters/group_nodes.rb#88 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#87 class RBI::Group < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/group_nodes.rb#95 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#94 sig { params(kind: ::RBI::Group::Kind).void } def initialize(kind); end - # source://rbi//lib/rbi/printer.rb#838 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/group_nodes.rb#92 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#91 sig { returns(::RBI::Group::Kind) } def kind; end end -# source://rbi//lib/rbi/rewriters/group_nodes.rb#100 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#99 class RBI::Group::Kind < ::T::Enum enums do Mixins = new @@ -567,13 +569,16 @@ class RBI::Group::Kind < ::T::Enum end end +# source://rbi//lib/rbi/rewriters/group_nodes.rb#5 +class RBI::GroupNodesError < ::RBI::Error; end + # Sorbet's misc. # -# source://rbi//lib/rbi/model.rb#1372 +# source://rbi//lib/rbi/model.rb#1374 class RBI::Helper < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1386 + # source://rbi//lib/rbi/model.rb#1388 sig do params( name: ::String, @@ -584,11 +589,7 @@ class RBI::Helper < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/printer.rb#825 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#520 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#522 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -596,20 +597,20 @@ class RBI::Helper < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1376 + # source://rbi//lib/rbi/model.rb#1378 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1393 + # source://rbi//lib/rbi/model.rb#1395 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#866 +# source://rbi//lib/rbi/model.rb#868 class RBI::Include < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#878 + # source://rbi//lib/rbi/model.rb#880 sig do params( name: ::String, @@ -621,7 +622,7 @@ class RBI::Include < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#493 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#495 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -629,7 +630,7 @@ class RBI::Include < ::RBI::Mixin sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#884 + # source://rbi//lib/rbi/model.rb#886 sig { override.returns(::String) } def to_s; end end @@ -689,32 +690,28 @@ module RBI::Indexable def index_ids; end end -# source://rbi//lib/rbi/model.rb#1069 +# source://rbi//lib/rbi/model.rb#1071 class RBI::KwArg < ::RBI::Arg - # source://rbi//lib/rbi/model.rb#1082 + # source://rbi//lib/rbi/model.rb#1084 sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(keyword, value, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#1088 + # source://rbi//lib/rbi/model.rb#1090 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#622 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1073 + # source://rbi//lib/rbi/model.rb#1075 sig { returns(::String) } def keyword; end - # source://rbi//lib/rbi/model.rb#1093 + # source://rbi//lib/rbi/model.rb#1095 sig { returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#755 +# source://rbi//lib/rbi/model.rb#757 class RBI::KwOptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#770 + # source://rbi//lib/rbi/model.rb#772 sig do params( name: ::String, @@ -726,30 +723,22 @@ class RBI::KwOptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#782 + # source://rbi//lib/rbi/model.rb#784 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#513 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#518 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#777 + # source://rbi//lib/rbi/model.rb#779 sig { override.returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#759 + # source://rbi//lib/rbi/model.rb#761 sig { returns(::String) } def value; end end -# source://rbi//lib/rbi/model.rb#728 +# source://rbi//lib/rbi/model.rb#730 class RBI::KwParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#739 + # source://rbi//lib/rbi/model.rb#741 sig do params( name: ::String, @@ -760,26 +749,18 @@ class RBI::KwParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#750 + # source://rbi//lib/rbi/model.rb#752 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#498 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#503 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#745 + # source://rbi//lib/rbi/model.rb#747 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#787 +# source://rbi//lib/rbi/model.rb#789 class RBI::KwRestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#798 + # source://rbi//lib/rbi/model.rb#800 sig do params( name: ::String, @@ -790,19 +771,11 @@ class RBI::KwRestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#809 + # source://rbi//lib/rbi/model.rb#811 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#528 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#533 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#804 + # source://rbi//lib/rbi/model.rb#806 sig { override.returns(::String) } def to_s; end end @@ -881,11 +854,11 @@ end # Methods and args # -# source://rbi//lib/rbi/model.rb#483 +# source://rbi//lib/rbi/model.rb#485 class RBI::Method < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#513 + # source://rbi//lib/rbi/model.rb#515 sig do params( name: ::String, @@ -900,43 +873,39 @@ class RBI::Method < ::RBI::NodeWithComments end def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#533 + # source://rbi//lib/rbi/model.rb#535 sig { params(param: ::RBI::Param).void } def <<(param); end - # source://rbi//lib/rbi/printer.rb#384 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#568 + # source://rbi//lib/rbi/model.rb#570 sig { params(name: ::String).void } def add_block_param(name); end - # source://rbi//lib/rbi/model.rb#558 + # source://rbi//lib/rbi/model.rb#560 sig { params(name: ::String, default_value: ::String).void } def add_kw_opt_param(name, default_value); end - # source://rbi//lib/rbi/model.rb#553 + # source://rbi//lib/rbi/model.rb#555 sig { params(name: ::String).void } def add_kw_param(name); end - # source://rbi//lib/rbi/model.rb#563 + # source://rbi//lib/rbi/model.rb#565 sig { params(name: ::String).void } def add_kw_rest_param(name); end - # source://rbi//lib/rbi/model.rb#543 + # source://rbi//lib/rbi/model.rb#545 sig { params(name: ::String, default_value: ::String).void } def add_opt_param(name, default_value); end - # source://rbi//lib/rbi/model.rb#538 + # source://rbi//lib/rbi/model.rb#540 sig { params(name: ::String).void } def add_param(name); end - # source://rbi//lib/rbi/model.rb#548 + # source://rbi//lib/rbi/model.rb#550 sig { params(name: ::String).void } def add_rest_param(name); end - # source://rbi//lib/rbi/model.rb#585 + # source://rbi//lib/rbi/model.rb#587 sig do params( params: T::Array[::RBI::SigParam], @@ -952,11 +921,11 @@ class RBI::Method < ::RBI::NodeWithComments end def add_sig(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#461 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#463 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#611 + # source://rbi//lib/rbi/model.rb#613 sig { returns(::String) } def fully_qualified_name; end @@ -964,68 +933,60 @@ class RBI::Method < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/printer.rb#437 - sig { returns(T::Boolean) } - def inline_params?; end - - # source://rbi//lib/rbi/model.rb#493 + # source://rbi//lib/rbi/model.rb#495 sig { returns(T::Boolean) } def is_singleton; end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#493 + # source://rbi//lib/rbi/model.rb#495 def is_singleton=(_arg0); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#470 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#472 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/model.rb#487 + # source://rbi//lib/rbi/model.rb#489 sig { returns(::String) } def name; end # @return [String] # - # source://rbi//lib/rbi/model.rb#487 + # source://rbi//lib/rbi/model.rb#489 def name=(_arg0); end - # source://rbi//lib/rbi/printer.rb#432 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/model.rb#490 + # source://rbi//lib/rbi/model.rb#492 sig { returns(T::Array[::RBI::Param]) } def params; end - # source://rbi//lib/rbi/model.rb#499 + # source://rbi//lib/rbi/model.rb#501 sig { returns(T::Array[::RBI::Sig]) } def sigs; end # @return [Array] # - # source://rbi//lib/rbi/model.rb#499 + # source://rbi//lib/rbi/model.rb#501 def sigs=(_arg0); end - # source://rbi//lib/rbi/model.rb#620 + # source://rbi//lib/rbi/model.rb#622 sig { override.returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#496 + # source://rbi//lib/rbi/model.rb#498 sig { returns(::RBI::Visibility) } def visibility; end # @return [Visibility] # - # source://rbi//lib/rbi/model.rb#496 + # source://rbi//lib/rbi/model.rb#498 def visibility=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1433 +# source://rbi//lib/rbi/model.rb#1435 class RBI::MixesInClassMethods < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1445 + # source://rbi//lib/rbi/model.rb#1447 sig do params( name: ::String, @@ -1037,7 +998,7 @@ class RBI::MixesInClassMethods < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#511 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#513 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -1045,7 +1006,7 @@ class RBI::MixesInClassMethods < ::RBI::Mixin sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1451 + # source://rbi//lib/rbi/model.rb#1453 sig { override.returns(::String) } def to_s; end end @@ -1054,11 +1015,11 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#843 +# source://rbi//lib/rbi/model.rb#845 class RBI::Mixin < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#860 + # source://rbi//lib/rbi/model.rb#862 sig do params( name: ::String, @@ -1069,22 +1030,18 @@ class RBI::Mixin < ::RBI::NodeWithComments end def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#558 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#484 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#486 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#850 + # source://rbi//lib/rbi/model.rb#852 sig { returns(T::Array[::String]) } def names; end end -# source://rbi//lib/rbi/model.rb#190 +# source://rbi//lib/rbi/model.rb#192 class RBI::Module < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#204 + # source://rbi//lib/rbi/model.rb#206 sig do params( name: ::String, @@ -1095,65 +1052,51 @@ class RBI::Module < ::RBI::Scope end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#385 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#387 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#211 + # source://rbi//lib/rbi/model.rb#213 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#194 + # source://rbi//lib/rbi/model.rb#196 sig { returns(::String) } def name; end # @return [String] # - # source://rbi//lib/rbi/model.rb#194 + # source://rbi//lib/rbi/model.rb#196 def name=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#270 - sig { override.params(v: ::RBI::Printer).void } - def print_header(v); end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#5 +# source://rbi//lib/rbi/model.rb#7 class RBI::Node abstract! - # source://rbi//lib/rbi/model.rb#18 + # source://rbi//lib/rbi/model.rb#20 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end - # @abstract - # - # source://rbi//lib/rbi/printer.rb#146 - sig { abstract.params(v: ::RBI::Printer).void } - def accept_printer(v); end - # Can `self` and `_other` be merged into a single definition? # # source://rbi//lib/rbi/rewriters/merge_trees.rb#287 sig { params(_other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(_other); end - # source://rbi//lib/rbi/model.rb#24 + # source://rbi//lib/rbi/model.rb#26 sig { void } def detach; end - # source://rbi//lib/rbi/rewriters/group_nodes.rb#48 - sig { returns(::RBI::Group::Kind) } - def group_kind; end - - # source://rbi//lib/rbi/model.rb#15 + # source://rbi//lib/rbi/model.rb#17 sig { returns(T.nilable(::RBI::Loc)) } def loc; end # @return [Loc, nil] # - # source://rbi//lib/rbi/model.rb#15 + # source://rbi//lib/rbi/model.rb#17 def loc=(_arg0); end # Merge `self` and `other` into a single definition @@ -1162,28 +1105,24 @@ class RBI::Node sig { params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/printer.rb#179 - sig { returns(T::Boolean) } - def oneline?; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#296 sig { returns(T.nilable(::RBI::ConflictTree)) } def parent_conflict_tree; end - # source://rbi//lib/rbi/model.rb#46 + # source://rbi//lib/rbi/model.rb#48 sig { returns(T.nilable(::RBI::Scope)) } def parent_scope; end - # source://rbi//lib/rbi/model.rb#12 + # source://rbi//lib/rbi/model.rb#14 sig { returns(T.nilable(::RBI::Tree)) } def parent_tree; end # @return [Tree, nil] # - # source://rbi//lib/rbi/model.rb#12 + # source://rbi//lib/rbi/model.rb#14 def parent_tree=(_arg0); end - # source://rbi//lib/rbi/printer.rb#156 + # source://rbi//lib/rbi/printer.rb#768 sig do params( out: T.any(::IO, ::StringIO), @@ -1194,11 +1133,9 @@ class RBI::Node end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#169 - sig { params(v: ::RBI::Printer).void } - def print_blank_line_before(v); end - - # source://rbi//lib/rbi/model.rb#33 + # @raise [ReplaceNodeError] + # + # source://rbi//lib/rbi/model.rb#35 sig { params(node: ::RBI::Node).void } def replace(node); end @@ -1206,50 +1143,46 @@ class RBI::Node sig { params(version: ::Gem::Version).returns(T::Boolean) } def satisfies_version?(version); end - # source://rbi//lib/rbi/printer.rb#162 + # source://rbi//lib/rbi/printer.rb#774 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#83 +# source://rbi//lib/rbi/model.rb#85 class RBI::NodeWithComments < ::RBI::Node abstract! - # source://rbi//lib/rbi/model.rb#93 + # source://rbi//lib/rbi/model.rb#95 sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#99 + # source://rbi//lib/rbi/model.rb#101 sig { returns(T::Array[::String]) } def annotations; end - # source://rbi//lib/rbi/model.rb#90 + # source://rbi//lib/rbi/model.rb#92 sig { returns(T::Array[::RBI::Comment]) } def comments; end # @return [Array] # - # source://rbi//lib/rbi/model.rb#90 + # source://rbi//lib/rbi/model.rb#92 def comments=(_arg0); end # source://rbi//lib/rbi/rewriters/merge_trees.rb#311 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/printer.rb#188 - sig { override.returns(T::Boolean) } - def oneline?; end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#104 sig { returns(T::Array[::Gem::Requirement]) } def version_requirements; end end -# source://rbi//lib/rbi/model.rb#674 +# source://rbi//lib/rbi/model.rb#676 class RBI::OptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#689 + # source://rbi//lib/rbi/model.rb#691 sig do params( name: ::String, @@ -1261,56 +1194,36 @@ class RBI::OptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#696 + # source://rbi//lib/rbi/model.rb#698 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#468 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#473 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#678 + # source://rbi//lib/rbi/model.rb#680 sig { returns(::String) } def value; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#625 +# source://rbi//lib/rbi/model.rb#627 class RBI::Param < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#641 + # source://rbi//lib/rbi/model.rb#643 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#446 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#459 - sig { returns(T::Array[::String]) } - def comments_lines; end - - # source://rbi//lib/rbi/model.rb#632 + # source://rbi//lib/rbi/model.rb#634 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/printer.rb#451 - sig { params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#647 + # source://rbi//lib/rbi/model.rb#649 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/parser.rb#7 -class RBI::ParseError < ::StandardError +class RBI::ParseError < ::RBI::Error # source://rbi//lib/rbi/parser.rb#14 sig { params(message: ::String, location: ::RBI::Loc).void } def initialize(message, location); end @@ -1520,9 +1433,9 @@ class RBI::Parser::Visitor < ::Prism::Visitor def node_string!(node); end end -# source://rbi//lib/rbi/printer.rb#5 +# source://rbi//lib/rbi/printer.rb#7 class RBI::Printer < ::RBI::Visitor - # source://rbi//lib/rbi/printer.rb#28 + # source://rbi//lib/rbi/printer.rb#30 sig do params( out: T.any(::IO, ::StringIO), @@ -1533,87 +1446,316 @@ class RBI::Printer < ::RBI::Visitor end def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#15 + # source://rbi//lib/rbi/printer.rb#17 sig { returns(::Integer) } def current_indent; end - # source://rbi//lib/rbi/printer.rb#46 + # source://rbi//lib/rbi/printer.rb#48 sig { void } def dedent; end # @return [Boolean] # - # source://rbi//lib/rbi/printer.rb#9 + # source://rbi//lib/rbi/printer.rb#11 def in_visibility_group; end # @return [Boolean] # - # source://rbi//lib/rbi/printer.rb#9 + # source://rbi//lib/rbi/printer.rb#11 def in_visibility_group=(_arg0); end # Printing # - # source://rbi//lib/rbi/printer.rb#41 + # source://rbi//lib/rbi/printer.rb#43 sig { void } def indent; end - # source://rbi//lib/rbi/printer.rb#18 + # source://rbi//lib/rbi/printer.rb#20 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # source://rbi//lib/rbi/printer.rb#12 + # source://rbi//lib/rbi/printer.rb#14 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. # - # source://rbi//lib/rbi/printer.rb#52 + # source://rbi//lib/rbi/printer.rb#54 sig { params(string: ::String).void } def print(string); end - # source://rbi//lib/rbi/printer.rb#9 + # source://rbi//lib/rbi/printer.rb#11 sig { returns(T::Boolean) } def print_locs; end # @return [Boolean] # - # source://rbi//lib/rbi/printer.rb#9 + # source://rbi//lib/rbi/printer.rb#11 def print_locs=(_arg0); end # Print a string with indentation and `\n` at the end. # - # source://rbi//lib/rbi/printer.rb#72 + # source://rbi//lib/rbi/printer.rb#74 sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. # - # source://rbi//lib/rbi/printer.rb#58 + # source://rbi//lib/rbi/printer.rb#60 sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. # - # source://rbi//lib/rbi/printer.rb#65 + # source://rbi//lib/rbi/printer.rb#67 sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#83 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - # source://rbi//lib/rbi/printer.rb#90 + # source://rbi//lib/rbi/printer.rb#80 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # source://rbi//lib/rbi/printer.rb#78 - sig { params(file: ::RBI::File).void } + # source://rbi//lib/rbi/printer.rb#91 + sig { override.params(file: ::RBI::File).void } def visit_file(file); end + + private + + # source://rbi//lib/rbi/printer.rb#619 + sig { params(node: ::RBI::Node).returns(T::Boolean) } + def oneline?(node); end + + # source://rbi//lib/rbi/printer.rb#577 + sig { params(node: ::RBI::Node).void } + def print_blank_line_before(node); end + + # source://rbi//lib/rbi/printer.rb#587 + sig { params(node: ::RBI::Node).void } + def print_loc(node); end + + # source://rbi//lib/rbi/printer.rb#593 + sig { params(node: ::RBI::Param, last: T::Boolean).void } + def print_param_comment_leading_space(node, last:); end + + # source://rbi//lib/rbi/printer.rb#666 + sig { params(node: ::RBI::Sig).void } + def print_sig_as_block(node); end + + # source://rbi//lib/rbi/printer.rb#641 + sig { params(node: ::RBI::Sig).void } + def print_sig_as_line(node); end + + # source://rbi//lib/rbi/printer.rb#611 + sig { params(node: ::RBI::SigParam, last: T::Boolean).void } + def print_sig_param_comment_leading_space(node, last:); end + + # source://rbi//lib/rbi/printer.rb#722 + sig { params(node: ::RBI::Sig).returns(T::Array[::String]) } + def sig_modifiers(node); end + + # source://rbi//lib/rbi/printer.rb#417 + sig { override.params(node: ::RBI::Arg).void } + def visit_arg(node); end + + # source://rbi//lib/rbi/printer.rb#237 + sig { params(node: ::RBI::Attr).void } + def visit_attr(node); end + + # source://rbi//lib/rbi/printer.rb#222 + sig { override.params(node: ::RBI::AttrAccessor).void } + def visit_attr_accessor(node); end + + # source://rbi//lib/rbi/printer.rb#227 + sig { override.params(node: ::RBI::AttrReader).void } + def visit_attr_reader(node); end + + # source://rbi//lib/rbi/printer.rb#232 + sig { override.params(node: ::RBI::AttrWriter).void } + def visit_attr_writer(node); end + + # source://rbi//lib/rbi/printer.rb#126 + sig { override.params(node: ::RBI::BlankLine).void } + def visit_blank_line(node); end + + # source://rbi//lib/rbi/printer.rb#344 + sig { override.params(node: ::RBI::BlockParam).void } + def visit_block_param(node); end + + # source://rbi//lib/rbi/printer.rb#143 + sig { override.params(node: ::RBI::Class).void } + def visit_class(node); end + + # source://rbi//lib/rbi/printer.rb#110 + sig { override.params(node: ::RBI::Comment).void } + def visit_comment(node); end + + # source://rbi//lib/rbi/printer.rb#554 + sig { override.params(node: ::RBI::ConflictTree).void } + def visit_conflict_tree(node); end + + # source://rbi//lib/rbi/printer.rb#213 + sig { override.params(node: ::RBI::Const).void } + def visit_const(node); end + + # source://rbi//lib/rbi/printer.rb#354 + sig { override.params(node: ::RBI::Extend).void } + def visit_extend(node); end + + # source://rbi//lib/rbi/printer.rb#526 + sig { override.params(node: ::RBI::Group).void } + def visit_group(node); end + + # source://rbi//lib/rbi/printer.rb#512 + sig { override.params(node: ::RBI::Helper).void } + def visit_helper(node); end + + # source://rbi//lib/rbi/printer.rb#349 + sig { override.params(node: ::RBI::Include).void } + def visit_include(node); end + + # source://rbi//lib/rbi/printer.rb#422 + sig { override.params(node: ::RBI::KwArg).void } + def visit_kw_arg(node); end + + # source://rbi//lib/rbi/printer.rb#334 + sig { override.params(node: ::RBI::KwOptParam).void } + def visit_kw_opt_param(node); end + + # source://rbi//lib/rbi/printer.rb#329 + sig { override.params(node: ::RBI::KwParam).void } + def visit_kw_param(node); end + + # source://rbi//lib/rbi/printer.rb#339 + sig { override.params(node: ::RBI::KwRestParam).void } + def visit_kw_rest_param(node); end + + # source://rbi//lib/rbi/printer.rb#265 + sig { override.params(node: ::RBI::Method).void } + def visit_method(node); end + + # source://rbi//lib/rbi/printer.rb#521 + sig { override.params(node: ::RBI::MixesInClassMethods).void } + def visit_mixes_in_class_methods(node); end + + # source://rbi//lib/rbi/printer.rb#359 + sig { params(node: ::RBI::Mixin).void } + def visit_mixin(node); end + + # source://rbi//lib/rbi/printer.rb#138 + sig { override.params(node: ::RBI::Module).void } + def visit_module(node); end + + # source://rbi//lib/rbi/printer.rb#319 + sig { override.params(node: ::RBI::OptParam).void } + def visit_opt_param(node); end + + # source://rbi//lib/rbi/printer.rb#386 + sig { override.params(node: ::RBI::Private).void } + def visit_private(node); end + + # source://rbi//lib/rbi/printer.rb#381 + sig { override.params(node: ::RBI::Protected).void } + def visit_protected(node); end + + # source://rbi//lib/rbi/printer.rb#376 + sig { override.params(node: ::RBI::Public).void } + def visit_public(node); end + + # source://rbi//lib/rbi/printer.rb#314 + sig { override.params(node: ::RBI::ReqParam).void } + def visit_req_param(node); end + + # source://rbi//lib/rbi/printer.rb#545 + sig { override.params(node: ::RBI::RequiresAncestor).void } + def visit_requires_ancestor(node); end + + # source://rbi//lib/rbi/printer.rb#324 + sig { override.params(node: ::RBI::RestParam).void } + def visit_rest_param(node); end + + # source://rbi//lib/rbi/printer.rb#158 + sig { params(node: ::RBI::Scope).void } + def visit_scope(node); end + + # source://rbi//lib/rbi/printer.rb#203 + sig { params(node: ::RBI::Scope).void } + def visit_scope_body(node); end + + # source://rbi//lib/rbi/printer.rb#563 + sig { override.params(node: ::RBI::ScopeConflict).void } + def visit_scope_conflict(node); end + + # source://rbi//lib/rbi/printer.rb#168 + sig { params(node: ::RBI::Scope).void } + def visit_scope_header(node); end + + # source://rbi//lib/rbi/printer.rb#400 + sig { override.params(node: ::RBI::Send).void } + def visit_send(node); end + + # source://rbi//lib/rbi/printer.rb#427 + sig { override.params(node: ::RBI::Sig).void } + def visit_sig(node); end + + # source://rbi//lib/rbi/printer.rb#446 + sig { override.params(node: ::RBI::SigParam).void } + def visit_sig_param(node); end + + # source://rbi//lib/rbi/printer.rb#153 + sig { override.params(node: ::RBI::SingletonClass).void } + def visit_singleton_class(node); end + + # source://rbi//lib/rbi/printer.rb#148 + sig { override.params(node: ::RBI::Struct).void } + def visit_struct(node); end + + # source://rbi//lib/rbi/printer.rb#466 + sig { params(node: ::RBI::TStructField).void } + def visit_t_struct_field(node); end + + # source://rbi//lib/rbi/printer.rb#484 + sig { override.params(node: ::RBI::TEnum).void } + def visit_tenum(node); end + + # source://rbi//lib/rbi/printer.rb#489 + sig { override.params(node: ::RBI::TEnumBlock).void } + def visit_tenum_block(node); end + + # source://rbi//lib/rbi/printer.rb#131 + sig { override.params(node: ::RBI::Tree).void } + def visit_tree(node); end + + # source://rbi//lib/rbi/printer.rb#451 + sig { override.params(node: ::RBI::TStruct).void } + def visit_tstruct(node); end + + # source://rbi//lib/rbi/printer.rb#456 + sig { override.params(node: ::RBI::TStructConst).void } + def visit_tstruct_const(node); end + + # source://rbi//lib/rbi/printer.rb#461 + sig { override.params(node: ::RBI::TStructProp).void } + def visit_tstruct_prop(node); end + + # source://rbi//lib/rbi/printer.rb#503 + sig { override.params(node: ::RBI::TypeMember).void } + def visit_type_member(node); end + + # source://rbi//lib/rbi/printer.rb#391 + sig { params(node: ::RBI::Visibility).void } + def visit_visibility(node); end + + # source://rbi//lib/rbi/printer.rb#532 + sig { override.params(node: ::RBI::VisibilityGroup).void } + def visit_visibility_group(node); end end -# source://rbi//lib/rbi/model.rb#982 +# source://rbi//lib/rbi/printer.rb#5 +class RBI::PrinterError < ::RBI::Error; end + +# source://rbi//lib/rbi/model.rb#984 class RBI::Private < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#992 + # source://rbi//lib/rbi/model.rb#994 sig do params( loc: T.nilable(::RBI::Loc), @@ -1624,9 +1766,9 @@ class RBI::Private < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#966 +# source://rbi//lib/rbi/model.rb#968 class RBI::Protected < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#976 + # source://rbi//lib/rbi/model.rb#978 sig do params( loc: T.nilable(::RBI::Loc), @@ -1637,9 +1779,9 @@ class RBI::Protected < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#950 +# source://rbi//lib/rbi/model.rb#952 class RBI::Public < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#960 + # source://rbi//lib/rbi/model.rb#962 sig do params( loc: T.nilable(::RBI::Loc), @@ -1650,9 +1792,12 @@ class RBI::Public < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#652 +# source://rbi//lib/rbi/model.rb#5 +class RBI::ReplaceNodeError < ::RBI::Error; end + +# source://rbi//lib/rbi/model.rb#654 class RBI::ReqParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#663 + # source://rbi//lib/rbi/model.rb#665 sig do params( name: ::String, @@ -1663,39 +1808,35 @@ class RBI::ReqParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#669 + # source://rbi//lib/rbi/model.rb#671 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end end -# source://rbi//lib/rbi/model.rb#1456 +# source://rbi//lib/rbi/model.rb#1458 class RBI::RequiresAncestor < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1469 + # source://rbi//lib/rbi/model.rb#1471 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#870 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - # source://rbi//lib/rbi/index.rb#163 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1460 + # source://rbi//lib/rbi/model.rb#1462 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1475 + # source://rbi//lib/rbi/model.rb#1477 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#701 +# source://rbi//lib/rbi/model.rb#703 class RBI::RestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#712 + # source://rbi//lib/rbi/model.rb#714 sig do params( name: ::String, @@ -1706,19 +1847,11 @@ class RBI::RestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#723 + # source://rbi//lib/rbi/model.rb#725 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#483 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#488 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#718 + # source://rbi//lib/rbi/model.rb#720 sig { override.returns(::String) } def to_s; end end @@ -1772,6 +1905,21 @@ class RBI::Rewriters::Annotate < ::RBI::Visitor def root?(node); end end +# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#22 +class RBI::Rewriters::AttrToMethods < ::RBI::Visitor + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#26 + sig { override.params(node: T.nilable(::RBI::Node)).void } + def visit(node); end + + private + + # @raise [ReplaceNodeError] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#39 + sig { params(node: ::RBI::Node, with: T::Array[::RBI::Node]).void } + def replace(node, with:); end +end + # source://rbi//lib/rbi/rewriters/deannotate.rb#6 class RBI::Rewriters::Deannotate < ::RBI::Visitor # source://rbi//lib/rbi/rewriters/deannotate.rb#10 @@ -1861,11 +2009,17 @@ end # source://rbi//lib/rbi/rewriters/filter_versions.rb#60 RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String) -# source://rbi//lib/rbi/rewriters/group_nodes.rb#6 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#8 class RBI::Rewriters::GroupNodes < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/group_nodes.rb#10 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#12 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end + + private + + # source://rbi//lib/rbi/rewriters/group_nodes.rb#36 + sig { params(node: ::RBI::Node).returns(::RBI::Group::Kind) } + def group_kind(node); end end # Merge two RBI trees together @@ -1945,7 +2099,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 def inherited(s); end end end @@ -2162,7 +2316,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 def inherited(s); end end end @@ -2196,25 +2350,21 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#176 +# source://rbi//lib/rbi/model.rb#178 class RBI::Scope < ::RBI::Tree include ::RBI::Indexable abstract! - # source://rbi//lib/rbi/printer.rb#242 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - # Duplicate `self` scope without its body # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#356 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#358 sig { returns(T.self_type) } def dup_empty; end # @abstract # - # source://rbi//lib/rbi/model.rb#182 + # source://rbi//lib/rbi/model.rb#184 sig { abstract.returns(::String) } def fully_qualified_name; end @@ -2222,17 +2372,7 @@ class RBI::Scope < ::RBI::Tree sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/printer.rb#256 - sig { params(v: ::RBI::Printer).void } - def print_body(v); end - - # @abstract - # - # source://rbi//lib/rbi/printer.rb#253 - sig { abstract.params(v: ::RBI::Printer).void } - def print_header(v); end - - # source://rbi//lib/rbi/model.rb#185 + # source://rbi//lib/rbi/model.rb#187 sig { override.returns(::String) } def to_s; end end @@ -2250,37 +2390,38 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#628 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#624 class RBI::ScopeConflict < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#642 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#641 sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void } def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#651 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#632 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#628 sig { returns(::RBI::Scope) } def left; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#667 - sig { override.returns(T::Boolean) } - def oneline?; end + # source://rbi//lib/rbi/rewriters/merge_trees.rb#631 + sig { returns(::String) } + def left_name; end # @return [Scope] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#632 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#628 def right; end + + # @return [String] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#631 + def right_name; end end # Sends # -# source://rbi//lib/rbi/model.rb#1000 +# source://rbi//lib/rbi/model.rb#1002 class RBI::Send < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1018 + # source://rbi//lib/rbi/model.rb#1020 sig do params( method: ::String, @@ -2292,23 +2433,19 @@ class RBI::Send < ::RBI::NodeWithComments end def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1026 + # source://rbi//lib/rbi/model.rb#1028 sig { params(arg: ::RBI::Arg).void } def <<(arg); end - # source://rbi//lib/rbi/model.rb#1031 + # source://rbi//lib/rbi/model.rb#1033 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#592 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1007 + # source://rbi//lib/rbi/model.rb#1009 sig { returns(T::Array[::RBI::Arg]) } def args; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#529 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#531 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -2316,20 +2453,20 @@ class RBI::Send < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1004 + # source://rbi//lib/rbi/model.rb#1006 sig { returns(::String) } def method; end - # source://rbi//lib/rbi/model.rb#1036 + # source://rbi//lib/rbi/model.rb#1038 sig { returns(::String) } def to_s; end end # Sorbet's sigs # -# source://rbi//lib/rbi/model.rb#1100 +# source://rbi//lib/rbi/model.rb#1102 class RBI::Sig < ::RBI::Node - # source://rbi//lib/rbi/model.rb#1132 + # source://rbi//lib/rbi/model.rb#1134 sig do params( params: T::Array[::RBI::SigParam], @@ -2346,113 +2483,87 @@ class RBI::Sig < ::RBI::Node end def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1157 + # source://rbi//lib/rbi/model.rb#1159 sig { params(param: ::RBI::SigParam).void } def <<(param); end - # source://rbi//lib/rbi/model.rb#1167 + # source://rbi//lib/rbi/model.rb#1169 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#633 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1162 + # source://rbi//lib/rbi/model.rb#1164 sig { params(name: ::String, type: ::String).void } def add_param(name, type); end - # source://rbi//lib/rbi/model.rb#1116 + # source://rbi//lib/rbi/model.rb#1118 sig { returns(T.nilable(::Symbol)) } def checked; end # @return [Symbol, nil] # - # source://rbi//lib/rbi/model.rb#1116 + # source://rbi//lib/rbi/model.rb#1118 def checked=(_arg0); end - # source://rbi//lib/rbi/printer.rb#656 - sig { returns(T::Boolean) } - def inline_params?; end - - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 sig { returns(T::Boolean) } def is_abstract; end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 def is_abstract=(_arg0); end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 def is_final; end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 def is_final=(_arg0); end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 def is_overridable; end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 def is_overridable=(_arg0); end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 def is_override; end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#1110 + # source://rbi//lib/rbi/model.rb#1112 def is_override=(_arg0); end - # source://rbi//lib/rbi/printer.rb#651 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/model.rb#1104 + # source://rbi//lib/rbi/model.rb#1106 sig { returns(T::Array[::RBI::SigParam]) } def params; end - # source://rbi//lib/rbi/model.rb#1107 + # source://rbi//lib/rbi/model.rb#1109 sig { returns(T.nilable(::String)) } def return_type; end # @return [String, nil] # - # source://rbi//lib/rbi/model.rb#1107 + # source://rbi//lib/rbi/model.rb#1109 def return_type=(_arg0); end - # source://rbi//lib/rbi/model.rb#1113 + # source://rbi//lib/rbi/model.rb#1115 sig { returns(T::Array[::String]) } def type_params; end - - private - - # source://rbi//lib/rbi/printer.rb#698 - sig { params(v: ::RBI::Printer).void } - def print_as_block(v); end - - # source://rbi//lib/rbi/printer.rb#674 - sig { params(v: ::RBI::Printer).void } - def print_as_line(v); end - - # source://rbi//lib/rbi/printer.rb#663 - sig { returns(T::Array[::String]) } - def sig_modifiers; end end -# source://rbi//lib/rbi/model.rb#1176 +# source://rbi//lib/rbi/model.rb#1178 class RBI::SigParam < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#1191 + # source://rbi//lib/rbi/model.rb#1193 sig do params( name: ::String, @@ -2464,35 +2575,23 @@ class RBI::SigParam < ::RBI::NodeWithComments end def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1199 + # source://rbi//lib/rbi/model.rb#1201 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#751 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#764 - sig { returns(T::Array[::String]) } - def comments_lines; end - - # source://rbi//lib/rbi/model.rb#1180 + # source://rbi//lib/rbi/model.rb#1182 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/printer.rb#756 - sig { params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - # @return [String] # - # source://rbi//lib/rbi/model.rb#1180 + # source://rbi//lib/rbi/model.rb#1182 def type; end end -# source://rbi//lib/rbi/model.rb#251 +# source://rbi//lib/rbi/model.rb#253 class RBI::SingletonClass < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#261 + # source://rbi//lib/rbi/model.rb#263 sig do params( loc: T.nilable(::RBI::Loc), @@ -2502,18 +2601,14 @@ class RBI::SingletonClass < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#267 + # source://rbi//lib/rbi/model.rb#269 sig { override.returns(::String) } def fully_qualified_name; end - - # source://rbi//lib/rbi/printer.rb#321 - sig { override.params(v: ::RBI::Printer).void } - def print_header(v); end end -# source://rbi//lib/rbi/model.rb#272 +# source://rbi//lib/rbi/model.rb#274 class RBI::Struct < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#294 + # source://rbi//lib/rbi/model.rb#296 sig do params( name: ::String, @@ -2526,51 +2621,47 @@ class RBI::Struct < ::RBI::Scope end def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#394 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#396 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#303 + # source://rbi//lib/rbi/model.rb#305 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#282 + # source://rbi//lib/rbi/model.rb#284 sig { returns(T::Boolean) } def keyword_init; end # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#282 + # source://rbi//lib/rbi/model.rb#284 def keyword_init=(_arg0); end - # source://rbi//lib/rbi/model.rb#279 + # source://rbi//lib/rbi/model.rb#281 sig { returns(T::Array[::Symbol]) } def members; end # @return [Array] # - # source://rbi//lib/rbi/model.rb#279 + # source://rbi//lib/rbi/model.rb#281 def members=(_arg0); end - # source://rbi//lib/rbi/model.rb#276 + # source://rbi//lib/rbi/model.rb#278 sig { returns(::String) } def name; end # @return [String] # - # source://rbi//lib/rbi/model.rb#276 + # source://rbi//lib/rbi/model.rb#278 def name=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#300 - sig { override.params(v: ::RBI::Printer).void } - def print_header(v); end end # Sorbet's T::Enum # -# source://rbi//lib/rbi/model.rb#1317 +# source://rbi//lib/rbi/model.rb#1319 class RBI::TEnum < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1328 + # source://rbi//lib/rbi/model.rb#1330 sig do params( name: ::String, @@ -2582,11 +2673,11 @@ class RBI::TEnum < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#1334 +# source://rbi//lib/rbi/model.rb#1336 class RBI::TEnumBlock < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1348 + # source://rbi//lib/rbi/model.rb#1350 sig do params( names: T::Array[::String], @@ -2597,15 +2688,11 @@ class RBI::TEnumBlock < ::RBI::NodeWithComments end def initialize(names = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1360 + # source://rbi//lib/rbi/model.rb#1362 sig { params(name: ::String).void } def <<(name); end - # source://rbi//lib/rbi/printer.rb#795 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1355 + # source://rbi//lib/rbi/model.rb#1357 sig { returns(T::Boolean) } def empty?; end @@ -2613,24 +2700,24 @@ class RBI::TEnumBlock < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#556 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#558 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/model.rb#1338 + # source://rbi//lib/rbi/model.rb#1340 sig { returns(T::Array[::String]) } def names; end - # source://rbi//lib/rbi/model.rb#1365 + # source://rbi//lib/rbi/model.rb#1367 sig { override.returns(::String) } def to_s; end end # Sorbet's T::Struct # -# source://rbi//lib/rbi/model.rb#1206 +# source://rbi//lib/rbi/model.rb#1208 class RBI::TStruct < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1217 + # source://rbi//lib/rbi/model.rb#1219 sig do params( name: ::String, @@ -2642,11 +2729,11 @@ class RBI::TStruct < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#1255 +# source://rbi//lib/rbi/model.rb#1257 class RBI::TStructConst < ::RBI::TStructField include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1268 + # source://rbi//lib/rbi/model.rb#1270 sig do params( name: ::String, @@ -2659,11 +2746,11 @@ class RBI::TStructConst < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#547 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#549 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1274 + # source://rbi//lib/rbi/model.rb#1276 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end @@ -2671,18 +2758,18 @@ class RBI::TStructConst < ::RBI::TStructField sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1280 + # source://rbi//lib/rbi/model.rb#1282 sig { override.returns(::String) } def to_s; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#1223 +# source://rbi//lib/rbi/model.rb#1225 class RBI::TStructField < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#1244 + # source://rbi//lib/rbi/model.rb#1246 sig do params( name: ::String, @@ -2694,54 +2781,50 @@ class RBI::TStructField < ::RBI::NodeWithComments end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/printer.rb#773 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#538 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#540 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1233 + # source://rbi//lib/rbi/model.rb#1235 sig { returns(T.nilable(::String)) } def default; end # @return [String, nil] # - # source://rbi//lib/rbi/model.rb#1233 + # source://rbi//lib/rbi/model.rb#1235 def default=(_arg0); end # @abstract # - # source://rbi//lib/rbi/model.rb#1252 + # source://rbi//lib/rbi/model.rb#1254 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#1230 + # source://rbi//lib/rbi/model.rb#1232 sig { returns(::String) } def name; end # @return [String] # - # source://rbi//lib/rbi/model.rb#1230 + # source://rbi//lib/rbi/model.rb#1232 def name=(_arg0); end # @return [String] # - # source://rbi//lib/rbi/model.rb#1230 + # source://rbi//lib/rbi/model.rb#1232 def type; end # @return [String] # - # source://rbi//lib/rbi/model.rb#1230 + # source://rbi//lib/rbi/model.rb#1232 def type=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1285 +# source://rbi//lib/rbi/model.rb#1287 class RBI::TStructProp < ::RBI::TStructField include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1298 + # source://rbi//lib/rbi/model.rb#1300 sig do params( name: ::String, @@ -2754,11 +2837,11 @@ class RBI::TStructProp < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#570 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#572 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1304 + # source://rbi//lib/rbi/model.rb#1306 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end @@ -2766,14 +2849,14 @@ class RBI::TStructProp < ::RBI::TStructField sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1310 + # source://rbi//lib/rbi/model.rb#1312 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#106 +# source://rbi//lib/rbi/model.rb#108 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#119 + # source://rbi//lib/rbi/model.rb#121 sig do params( loc: T.nilable(::RBI::Loc), @@ -2783,14 +2866,10 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#126 + # source://rbi//lib/rbi/model.rb#128 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi//lib/rbi/printer.rb#226 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - # source://rbi//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 @@ -2799,7 +2878,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.14.2/lib/tapioca/rbi_ext/model.rb#38 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -2809,67 +2888,45 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#45 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#55 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#50 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#89 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#90 sig do params( name: ::String, parameters: T::Array[::RBI::TypedParam], - return_type: ::String, - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - 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.14.2/lib/tapioca/rbi_ext/model.rb#113 - sig do - params( - name: ::String, - sigs: T::Array[::RBI::Sig], - parameters: T::Array[::RBI::Param], + return_type: T.nilable(::String), class_method: T::Boolean, visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Method).void) ).void 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 + 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), &block); end - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#60 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#25 + # source://tapioca/0.16.1/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.14.2/lib/tapioca/rbi_ext/model.rb#9 + # source://tapioca/0.16.1/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.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.14.2/lib/tapioca/rbi_ext/model.rb#74 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -2886,7 +2943,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi//lib/rbi/model.rb#132 + # source://rbi//lib/rbi/model.rb#134 sig { returns(T::Boolean) } def empty?; end @@ -2894,7 +2951,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # source://rbi//lib/rbi/rewriters/group_nodes.rb#38 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#81 sig { void } def group_nodes!; end @@ -2921,13 +2978,13 @@ class RBI::Tree < ::RBI::NodeWithComments sig { void } def nest_singleton_methods!; end - # source://rbi//lib/rbi/model.rb#110 + # source://rbi//lib/rbi/model.rb#112 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi//lib/rbi/printer.rb#233 - sig { override.returns(T::Boolean) } - def oneline?; end + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#53 + sig { void } + def replace_attributes_with_methods!; end # source://rbi//lib/rbi/rewriters/sort_nodes.rb#119 sig { void } @@ -2935,20 +2992,20 @@ class RBI::Tree < ::RBI::NodeWithComments private - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#150 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#123 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#145 + # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#118 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://rbi//lib/rbi/model.rb#1398 +# source://rbi//lib/rbi/model.rb#1400 class RBI::TypeMember < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1413 + # source://rbi//lib/rbi/model.rb#1415 sig do params( name: ::String, @@ -2960,11 +3017,7 @@ class RBI::TypeMember < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/printer.rb#812 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1421 + # source://rbi//lib/rbi/model.rb#1423 sig { returns(::String) } def fully_qualified_name; end @@ -2972,22 +3025,33 @@ class RBI::TypeMember < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1402 + # source://rbi//lib/rbi/model.rb#1404 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1428 + # source://rbi//lib/rbi/model.rb#1430 sig { override.returns(::String) } def to_s; end # @return [String] # - # source://rbi//lib/rbi/model.rb#1402 + # source://rbi//lib/rbi/model.rb#1404 def value; end end +# source://rbi//lib/rbi/rewriters/attr_to_methods.rb#5 +class RBI::UnexpectedMultipleSigsError < ::RBI::Error + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#10 + sig { params(node: ::RBI::Node).void } + def initialize(node); end + + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#7 + sig { returns(::RBI::Node) } + def node; end +end + # source://rbi//lib/rbi/parser.rb#20 -class RBI::UnexpectedParserError < ::StandardError +class RBI::UnexpectedParserError < ::RBI::Error # source://rbi//lib/rbi/parser.rb#27 sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void } def initialize(parent_exception, last_location); end @@ -3008,35 +3072,31 @@ RBI::VERSION = T.let(T.unsafe(nil), String) # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#914 +# source://rbi//lib/rbi/model.rb#916 class RBI::Visibility < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#924 + # source://rbi//lib/rbi/model.rb#926 sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#930 + # source://rbi//lib/rbi/model.rb#932 sig { params(other: ::RBI::Visibility).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/printer.rb#579 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#945 + # source://rbi//lib/rbi/model.rb#947 sig { returns(T::Boolean) } def private?; end - # source://rbi//lib/rbi/model.rb#940 + # source://rbi//lib/rbi/model.rb#942 sig { returns(T::Boolean) } def protected?; end - # source://rbi//lib/rbi/model.rb#935 + # source://rbi//lib/rbi/model.rb#937 sig { returns(T::Boolean) } def public?; end - # source://rbi//lib/rbi/model.rb#921 + # source://rbi//lib/rbi/model.rb#923 sig { returns(::Symbol) } def visibility; end end @@ -3047,14 +3107,6 @@ class RBI::VisibilityGroup < ::RBI::Tree sig { params(visibility: ::RBI::Visibility).void } def initialize(visibility); end - # source://rbi//lib/rbi/printer.rb#848 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#861 - sig { override.returns(T::Boolean) } - def oneline?; end - # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#56 sig { returns(::RBI::Visibility) } def visibility; end @@ -3062,17 +3114,192 @@ end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/visitor.rb#5 +# source://rbi//lib/rbi/visitor.rb#7 class RBI::Visitor abstract! - # @abstract - # - # source://rbi//lib/rbi/visitor.rb#12 - sig { abstract.params(node: T.nilable(::RBI::Node)).void } + # source://rbi//lib/rbi/visitor.rb#14 + sig { params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi//lib/rbi/visitor.rb#15 + # source://rbi//lib/rbi/visitor.rb#108 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end + + # source://rbi//lib/rbi/visitor.rb#113 + sig { params(file: ::RBI::File).void } + def visit_file(file); end + + private + + # source://rbi//lib/rbi/visitor.rb#195 + sig { params(node: ::RBI::Arg).void } + def visit_arg(node); end + + # source://rbi//lib/rbi/visitor.rb#144 + sig { params(node: ::RBI::AttrAccessor).void } + def visit_attr_accessor(node); end + + # source://rbi//lib/rbi/visitor.rb#147 + sig { params(node: ::RBI::AttrReader).void } + def visit_attr_reader(node); end + + # source://rbi//lib/rbi/visitor.rb#150 + sig { params(node: ::RBI::AttrWriter).void } + def visit_attr_writer(node); end + + # source://rbi//lib/rbi/visitor.rb#123 + sig { params(node: ::RBI::BlankLine).void } + def visit_blank_line(node); end + + # source://rbi//lib/rbi/visitor.rb#174 + sig { params(node: ::RBI::BlockParam).void } + def visit_block_param(node); end + + # source://rbi//lib/rbi/visitor.rb#129 + sig { params(node: ::RBI::Class).void } + def visit_class(node); end + + # source://rbi//lib/rbi/visitor.rb#120 + sig { params(node: ::RBI::Comment).void } + def visit_comment(node); end + + # source://rbi//lib/rbi/visitor.rb#240 + sig { params(node: ::RBI::ConflictTree).void } + def visit_conflict_tree(node); end + + # source://rbi//lib/rbi/visitor.rb#141 + sig { params(node: ::RBI::Const).void } + def visit_const(node); end + + # source://rbi//lib/rbi/visitor.rb#180 + sig { params(node: ::RBI::Extend).void } + def visit_extend(node); end + + # source://rbi//lib/rbi/visitor.rb#234 + sig { params(node: ::RBI::Group).void } + def visit_group(node); end + + # source://rbi//lib/rbi/visitor.rb#222 + sig { params(node: ::RBI::Helper).void } + def visit_helper(node); end + + # source://rbi//lib/rbi/visitor.rb#177 + sig { params(node: ::RBI::Include).void } + def visit_include(node); end + + # source://rbi//lib/rbi/visitor.rb#198 + sig { params(node: ::RBI::KwArg).void } + def visit_kw_arg(node); end + + # source://rbi//lib/rbi/visitor.rb#168 + sig { params(node: ::RBI::KwOptParam).void } + def visit_kw_opt_param(node); end + + # source://rbi//lib/rbi/visitor.rb#165 + sig { params(node: ::RBI::KwParam).void } + def visit_kw_param(node); end + + # source://rbi//lib/rbi/visitor.rb#171 + sig { params(node: ::RBI::KwRestParam).void } + def visit_kw_rest_param(node); end + + # source://rbi//lib/rbi/visitor.rb#153 + sig { params(node: ::RBI::Method).void } + def visit_method(node); end + + # source://rbi//lib/rbi/visitor.rb#228 + sig { params(node: ::RBI::MixesInClassMethods).void } + def visit_mixes_in_class_methods(node); end + + # source://rbi//lib/rbi/visitor.rb#126 + sig { params(node: ::RBI::Module).void } + def visit_module(node); end + + # source://rbi//lib/rbi/visitor.rb#159 + sig { params(node: ::RBI::OptParam).void } + def visit_opt_param(node); end + + # source://rbi//lib/rbi/visitor.rb#189 + sig { params(node: ::RBI::Private).void } + def visit_private(node); end + + # source://rbi//lib/rbi/visitor.rb#186 + sig { params(node: ::RBI::Protected).void } + def visit_protected(node); end + + # source://rbi//lib/rbi/visitor.rb#183 + sig { params(node: ::RBI::Public).void } + def visit_public(node); end + + # source://rbi//lib/rbi/visitor.rb#156 + sig { params(node: ::RBI::ReqParam).void } + def visit_req_param(node); end + + # source://rbi//lib/rbi/visitor.rb#231 + sig { params(node: ::RBI::RequiresAncestor).void } + def visit_requires_ancestor(node); end + + # source://rbi//lib/rbi/visitor.rb#162 + sig { params(node: ::RBI::RestParam).void } + def visit_rest_param(node); end + + # source://rbi//lib/rbi/visitor.rb#243 + sig { params(node: ::RBI::ScopeConflict).void } + def visit_scope_conflict(node); end + + # source://rbi//lib/rbi/visitor.rb#192 + sig { params(node: ::RBI::Send).void } + def visit_send(node); end + + # source://rbi//lib/rbi/visitor.rb#201 + sig { params(node: ::RBI::Sig).void } + def visit_sig(node); end + + # source://rbi//lib/rbi/visitor.rb#204 + sig { params(node: ::RBI::SigParam).void } + def visit_sig_param(node); end + + # source://rbi//lib/rbi/visitor.rb#132 + sig { params(node: ::RBI::SingletonClass).void } + def visit_singleton_class(node); end + + # source://rbi//lib/rbi/visitor.rb#135 + sig { params(node: ::RBI::Struct).void } + def visit_struct(node); end + + # source://rbi//lib/rbi/visitor.rb#216 + sig { params(node: ::RBI::TEnum).void } + def visit_tenum(node); end + + # source://rbi//lib/rbi/visitor.rb#219 + sig { params(node: ::RBI::TEnumBlock).void } + def visit_tenum_block(node); end + + # source://rbi//lib/rbi/visitor.rb#138 + sig { params(node: ::RBI::Tree).void } + def visit_tree(node); end + + # source://rbi//lib/rbi/visitor.rb#207 + sig { params(node: ::RBI::TStruct).void } + def visit_tstruct(node); end + + # source://rbi//lib/rbi/visitor.rb#210 + sig { params(node: ::RBI::TStructConst).void } + def visit_tstruct_const(node); end + + # source://rbi//lib/rbi/visitor.rb#213 + sig { params(node: ::RBI::TStructProp).void } + def visit_tstruct_prop(node); end + + # source://rbi//lib/rbi/visitor.rb#225 + sig { params(node: ::RBI::TypeMember).void } + def visit_type_member(node); end + + # source://rbi//lib/rbi/visitor.rb#237 + sig { params(node: ::RBI::VisibilityGroup).void } + def visit_visibility_group(node); end end + +# source://rbi//lib/rbi/visitor.rb#5 +class RBI::VisitorError < ::RBI::Error; end diff --git a/sorbet/rbi/gems/rdoc@6.6.3.1.rbi b/sorbet/rbi/gems/rdoc@6.7.0.rbi similarity index 71% rename from sorbet/rbi/gems/rdoc@6.6.3.1.rbi rename to sorbet/rbi/gems/rdoc@6.7.0.rbi index a9abe898..ad2e9bf7 100644 --- a/sorbet/rbi/gems/rdoc@6.6.3.1.rbi +++ b/sorbet/rbi/gems/rdoc@6.7.0.rbi @@ -65,9 +65,11 @@ 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. + # Searches and returns the directory for settings. # # 1. $HOME/.rdoc directory, if it exists. # 2. The +rdoc+ directory under the path specified by the @@ -77,12 +79,12 @@ module RDoc # Other than the home directory, the containing directory will be # created automatically. # - # source://rdoc//rdoc.rb#134 + # source://rdoc//lib/rdoc.rb#134 def home; end # Loads the best available YAML library. # - # source://rdoc//rdoc.rb#107 + # source://rdoc//lib/rdoc.rb#107 def load_yaml; end end end @@ -92,93 +94,97 @@ 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//rdoc/alias.rb#37 + # source://rdoc//lib/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//rdoc/alias.rb#50 + # source://rdoc//lib/rdoc/alias.rb#50 def <=>(other); end # HTML fragment reference for this alias # - # source://rdoc//rdoc/alias.rb#57 + # source://rdoc//lib/rdoc/alias.rb#57 def aref; end # Full old name including namespace # - # source://rdoc//rdoc/alias.rb#65 + # source://rdoc//lib/rdoc/alias.rb#65 def full_old_name; end # HTML id-friendly version of +#new_name+. # - # source://rdoc//rdoc/alias.rb#72 + # source://rdoc//lib/rdoc/alias.rb#72 def html_name; end - # source://rdoc//rdoc/alias.rb#76 + # source://rdoc//lib/rdoc/alias.rb#76 def inspect; end # Aliased method's name # - # source://rdoc//rdoc/alias.rb#14 + # source://rdoc//lib/rdoc/alias.rb#14 def name; end # '::' for the alias of a singleton method/attribute, '#' for instance-level. # - # source://rdoc//rdoc/alias.rb#87 + # source://rdoc//lib/rdoc/alias.rb#87 def name_prefix; end # Aliased method's name # - # source://rdoc//rdoc/alias.rb#14 + # source://rdoc//lib/rdoc/alias.rb#14 def new_name; end # Aliasee method's name # - # source://rdoc//rdoc/alias.rb#21 + # source://rdoc//lib/rdoc/alias.rb#21 def old_name; end # New name with prefix '::' or '#'. # - # source://rdoc//rdoc/alias.rb#101 + # source://rdoc//lib/rdoc/alias.rb#101 def pretty_name; end # New name with prefix '::' or '#'. # - # source://rdoc//rdoc/alias.rb#101 + # source://rdoc//lib/rdoc/alias.rb#101 def pretty_new_name; end # Old name with prefix '::' or '#'. # - # source://rdoc//rdoc/alias.rb#94 + # source://rdoc//lib/rdoc/alias.rb#94 def pretty_old_name; end # Is this an alias declared in a singleton context? # - # source://rdoc//rdoc/alias.rb#26 + # source://rdoc//lib/rdoc/alias.rb#26 def singleton; end # Is this an alias declared in a singleton context? # - # source://rdoc//rdoc/alias.rb#26 + # source://rdoc//lib/rdoc/alias.rb#26 def singleton=(_arg0); end # Source file token stream # - # source://rdoc//rdoc/alias.rb#31 + # source://rdoc//lib/rdoc/alias.rb#31 def text; end - # source://rdoc//rdoc/alias.rb#107 + # source://rdoc//lib/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 @@ -186,39 +192,39 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # @return [AnyMethod] a new instance of AnyMethod # - # source://rdoc//rdoc/any_method.rb#46 + # source://rdoc//lib/rdoc/any_method.rb#46 def initialize(text, name); end # Adds +an_alias+ as an alias for this method in +context+. # - # source://rdoc//rdoc/any_method.rb#59 + # source://rdoc//lib/rdoc/any_method.rb#59 def add_alias(an_alias, context = T.unsafe(nil)); end # Prefix for +aref+ is 'method'. # - # source://rdoc//rdoc/any_method.rb#76 + # source://rdoc//lib/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//rdoc/any_method.rb#85 + # source://rdoc//lib/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//rdoc/any_method.rb#27 + # source://rdoc//lib/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//rdoc/any_method.rb#27 + # source://rdoc//lib/rdoc/any_method.rb#27 def c_function=(_arg0); end # Different ways to call this method # - # source://rdoc//rdoc/any_method.rb#96 + # source://rdoc//lib/rdoc/any_method.rb#96 def call_seq; end # Sets the different ways you can call this method. If an empty +call_seq+ @@ -226,45 +232,45 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # See also #param_seq # - # source://rdoc//rdoc/any_method.rb#112 + # source://rdoc//lib/rdoc/any_method.rb#112 def call_seq=(call_seq); end # If true this method uses +super+ to call a superclass version # - # source://rdoc//rdoc/any_method.rb#39 + # source://rdoc//lib/rdoc/any_method.rb#39 def calls_super; end # If true this method uses +super+ to call a superclass version # - # source://rdoc//rdoc/any_method.rb#39 + # source://rdoc//lib/rdoc/any_method.rb#39 def calls_super=(_arg0); end # Don't rename \#initialize to \::new # - # source://rdoc//rdoc/any_method.rb#22 + # source://rdoc//lib/rdoc/any_method.rb#22 def dont_rename_initialize; end # Don't rename \#initialize to \::new # - # source://rdoc//rdoc/any_method.rb#22 + # source://rdoc//lib/rdoc/any_method.rb#22 def dont_rename_initialize=(_arg0); end # Whether the method has a call-seq. # # @return [Boolean] # - # source://rdoc//rdoc/any_method.rb#121 + # source://rdoc//lib/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//rdoc/any_method.rb#129 + # source://rdoc//lib/rdoc/any_method.rb#129 def is_alias_for; end # Dumps this AnyMethod for use by ri. See also #marshal_load # - # source://rdoc//rdoc/any_method.rb#147 + # source://rdoc//lib/rdoc/any_method.rb#147 def marshal_dump; end # Loads this AnyMethod from +array+. For a loaded AnyMethod the following @@ -273,46 +279,46 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # * #full_name # * #parent_name # - # source://rdoc//rdoc/any_method.rb#184 + # source://rdoc//lib/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//rdoc/any_method.rb#233 + # source://rdoc//lib/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//rdoc/any_method.rb#246 + # source://rdoc//lib/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//rdoc/any_method.rb#278 + # source://rdoc//lib/rdoc/any_method.rb#278 def param_seq; end # Parameters for this method # - # source://rdoc//rdoc/any_method.rb#34 + # source://rdoc//lib/rdoc/any_method.rb#34 def params; end # Parameters for this method # - # source://rdoc//rdoc/any_method.rb#34 + # source://rdoc//lib/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//rdoc/any_method.rb#30 + # source://rdoc//lib/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//rdoc/any_method.rb#30 + # source://rdoc//lib/rdoc/any_method.rb#30 def section_title=(_arg0); end # Whether to skip the method description, true for methods that have @@ -320,24 +326,24 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # @return [Boolean] # - # source://rdoc//rdoc/any_method.rb#310 + # source://rdoc//lib/rdoc/any_method.rb#310 def skip_description?; end # Sets the store for this method and its referenced code objects. # - # source://rdoc//rdoc/any_method.rb#317 + # source://rdoc//lib/rdoc/any_method.rb#317 def store=(store); end # For methods that +super+, find the superclass method that would be called. # - # source://rdoc//rdoc/any_method.rb#326 + # source://rdoc//lib/rdoc/any_method.rb#326 def superclass_method; end protected # call_seq without deduplication and alias lookup. # - # source://rdoc//rdoc/any_method.rb#345 + # source://rdoc//lib/rdoc/any_method.rb#345 def _call_seq; end private @@ -345,34 +351,36 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # call_seq with alias examples information removed, if this # method is an alias method. # - # source://rdoc//rdoc/any_method.rb#355 + # source://rdoc//lib/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//rdoc/attr.rb#25 + # source://rdoc//lib/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//rdoc/attr.rb#36 + # source://rdoc//lib/rdoc/attr.rb#36 def ==(other); end # Add +an_alias+ as an attribute in +context+. # - # source://rdoc//rdoc/attr.rb#46 + # source://rdoc//lib/rdoc/attr.rb#46 def add_alias(an_alias, context); end # The #aref prefix for attributes # - # source://rdoc//rdoc/attr.rb#61 + # source://rdoc//lib/rdoc/attr.rb#61 def aref_prefix; end # Attributes never call super. See RDoc::AnyMethod#calls_super @@ -380,20 +388,20 @@ class RDoc::Attr < ::RDoc::MethodAttr # An RDoc::Attr can show up in the method list in some situations (see # Gem::ConfigFile) # - # source://rdoc//rdoc/attr.rb#71 + # source://rdoc//lib/rdoc/attr.rb#71 def calls_super; end # Returns attr_reader, attr_writer or attr_accessor as appropriate. # - # source://rdoc//rdoc/attr.rb#78 + # source://rdoc//lib/rdoc/attr.rb#78 def definition; end - # source://rdoc//rdoc/attr.rb#86 + # source://rdoc//lib/rdoc/attr.rb#86 def inspect; end # Dumps this Attr for use by ri. See also #marshal_load # - # source://rdoc//rdoc/attr.rb#102 + # source://rdoc//lib/rdoc/attr.rb#102 def marshal_dump; end # Loads this Attr from +array+. For a loaded Attr the following @@ -402,23 +410,23 @@ class RDoc::Attr < ::RDoc::MethodAttr # * #full_name # * #parent_name # - # source://rdoc//rdoc/attr.rb#124 + # source://rdoc//lib/rdoc/attr.rb#124 def marshal_load(array); end - # source://rdoc//rdoc/attr.rb#151 + # source://rdoc//lib/rdoc/attr.rb#151 def pretty_print(q); end # Is the attribute readable ('R'), writable ('W') or both ('RW')? # - # source://rdoc//rdoc/attr.rb#19 + # source://rdoc//lib/rdoc/attr.rb#19 def rw; end # Is the attribute readable ('R'), writable ('W') or both ('RW')? # - # source://rdoc//rdoc/attr.rb#19 + # source://rdoc//lib/rdoc/attr.rb#19 def rw=(_arg0); end - # source://rdoc//rdoc/attr.rb#162 + # source://rdoc//lib/rdoc/attr.rb#162 def to_s; end # Attributes do not have token streams. @@ -426,12 +434,14 @@ class RDoc::Attr < ::RDoc::MethodAttr # An RDoc::Attr can show up in the method list in some situations (see # Gem::ConfigFile) # - # source://rdoc//rdoc/attr.rb#172 + # source://rdoc//lib/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+ # @@ -439,17 +449,17 @@ class RDoc::ClassModule < ::RDoc::Context # # @return [ClassModule] a new instance of ClassModule # - # source://rdoc//rdoc/class_module.rb#111 + # source://rdoc//lib/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//rdoc/class_module.rb#127 + # source://rdoc//lib/rdoc/class_module.rb#127 def add_comment(comment, location); end - # source://rdoc//rdoc/class_module.rb#148 + # source://rdoc//lib/rdoc/class_module.rb#148 def add_things(my_things, other_things); end # Ancestors list for this ClassModule: the list of included modules @@ -463,23 +473,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//rdoc/class_module.rb#171 + # source://rdoc//lib/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//rdoc/class_module.rb#183 + # source://rdoc//lib/rdoc/class_module.rb#183 def aref; end # @raise [NotImplementedError] # - # source://rdoc//rdoc/class_module.rb#175 + # source://rdoc//lib/rdoc/class_module.rb#175 def aref_prefix; end # Clears the comment. Used by the Ruby parser. # - # source://rdoc//rdoc/class_module.rb#195 + # source://rdoc//lib/rdoc/class_module.rb#195 def clear_comment; end # This method is deprecated, use #add_comment instead. @@ -487,45 +497,45 @@ class RDoc::ClassModule < ::RDoc::Context # Appends +comment+ to the current comment, but separated by a rule. Works # more like +=. # - # source://rdoc//rdoc/class_module.rb#205 + # source://rdoc//lib/rdoc/class_module.rb#205 def comment=(comment); end # Comment and the location it came from. Use #add_comment to add comments # - # source://rdoc//rdoc/class_module.rb#35 + # source://rdoc//lib/rdoc/class_module.rb#35 def comment_location; end # Comment and the location it came from. Use #add_comment to add comments # - # source://rdoc//rdoc/class_module.rb#35 + # source://rdoc//lib/rdoc/class_module.rb#35 def comment_location=(_arg0); end # Prepares this ClassModule for use by a generator. # # See RDoc::Store#complete # - # source://rdoc//rdoc/class_module.rb#223 + # source://rdoc//lib/rdoc/class_module.rb#223 def complete(min_visibility); end # Constants that are aliases for this class or module # - # source://rdoc//rdoc/class_module.rb#30 + # source://rdoc//lib/rdoc/class_module.rb#30 def constant_aliases; end # Constants that are aliases for this class or module # - # source://rdoc//rdoc/class_module.rb#30 + # source://rdoc//lib/rdoc/class_module.rb#30 def constant_aliases=(_arg0); end # Handy wrapper for marking up this class or module's comment # - # source://rdoc//rdoc/generator/markup.rb#131 + # source://rdoc//lib/rdoc/generator/markup.rb#131 def description; end - # source://rdoc//rdoc/class_module.rb#37 + # source://rdoc//lib/rdoc/class_module.rb#37 def diagram; end - # source://rdoc//rdoc/class_module.rb#37 + # source://rdoc//lib/rdoc/class_module.rb#37 def diagram=(_arg0); end # Ancestors list for this ClassModule: the list of included modules @@ -541,12 +551,12 @@ class RDoc::ClassModule < ::RDoc::Context # # Ancestors of this class or module only # - # source://rdoc//rdoc/class_module.rb#171 + # source://rdoc//lib/rdoc/class_module.rb#171 def direct_ancestors; end # Does this ClassModule or any of its methods have document_self set? # - # source://rdoc//rdoc/class_module.rb#233 + # source://rdoc//lib/rdoc/class_module.rb#233 def document_self_or_methods; end # Does this class or module have a comment with content or is @@ -554,53 +564,53 @@ class RDoc::ClassModule < ::RDoc::Context # # @return [Boolean] # - # source://rdoc//rdoc/class_module.rb#241 + # source://rdoc//lib/rdoc/class_module.rb#241 def documented?; end # Iterates the ancestors of this class or module for which an # RDoc::ClassModule exists. # - # source://rdoc//rdoc/class_module.rb#251 + # source://rdoc//lib/rdoc/class_module.rb#251 def each_ancestor; end # Looks for a symbol in the #ancestors. See Context#find_local_symbol. # - # source://rdoc//rdoc/class_module.rb#264 + # source://rdoc//lib/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//rdoc/class_module.rb#276 + # source://rdoc//lib/rdoc/class_module.rb#276 def find_class_named(name); end # Return the fully qualified name of this class or module # - # source://rdoc//rdoc/class_module.rb#289 + # source://rdoc//lib/rdoc/class_module.rb#289 def full_name; end # Class or module this constant is an alias for # - # source://rdoc//rdoc/class_module.rb#42 + # source://rdoc//lib/rdoc/class_module.rb#42 def is_alias_for; end # Class or module this constant is an alias for # - # source://rdoc//rdoc/class_module.rb#42 + # source://rdoc//lib/rdoc/class_module.rb#42 def is_alias_for=(_arg0); end # TODO: filter included items by #display? # - # source://rdoc//rdoc/class_module.rb#300 + # source://rdoc//lib/rdoc/class_module.rb#300 def marshal_dump; end - # source://rdoc//rdoc/class_module.rb#346 + # source://rdoc//lib/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//rdoc/class_module.rb#435 + # source://rdoc//lib/rdoc/class_module.rb#435 def merge(class_module); end # Merges collection +mine+ with +other+ preferring other. +other_files+ is @@ -617,52 +627,52 @@ class RDoc::ClassModule < ::RDoc::Context # end # end # - # source://rdoc//rdoc/class_module.rb#519 + # source://rdoc//lib/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//rdoc/class_module.rb#531 + # source://rdoc//lib/rdoc/class_module.rb#531 def merge_sections(cm); end # Does this object represent a module? # # @return [Boolean] # - # source://rdoc//rdoc/class_module.rb#570 + # source://rdoc//lib/rdoc/class_module.rb#570 def module?; end # Allows overriding the initial name. # # Used for modules and classes that are constant aliases. # - # source://rdoc//rdoc/class_module.rb#579 + # source://rdoc//lib/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//rdoc/class_module.rb#622 + # source://rdoc//lib/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//rdoc/class_module.rb#631 + # source://rdoc//lib/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//rdoc/class_module.rb#587 + # source://rdoc//lib/rdoc/class_module.rb#587 def parse(comment_location); end # Path to this class or module for use with HTML generator output. # - # source://rdoc//rdoc/class_module.rb#613 + # source://rdoc//lib/rdoc/class_module.rb#613 def path; end # Updates the child modules or classes of class/module +parent+ by @@ -672,41 +682,41 @@ class RDoc::ClassModule < ::RDoc::Context # parent.classes_hash and +all_hash+ is ::all_modules_hash or # ::all_classes_hash. # - # source://rdoc//rdoc/class_module.rb#643 + # source://rdoc//lib/rdoc/class_module.rb#643 def remove_nodoc_children; end - # source://rdoc//rdoc/class_module.rb#657 + # source://rdoc//lib/rdoc/class_module.rb#657 def remove_things(my_things, other_files); end # Search record used by RDoc::Generator::JsonIndex # - # source://rdoc//rdoc/class_module.rb#672 + # source://rdoc//lib/rdoc/class_module.rb#672 def search_record; end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//rdoc/class_module.rb#687 + # source://rdoc//lib/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//rdoc/class_module.rb#701 + # source://rdoc//lib/rdoc/class_module.rb#701 def superclass; end # Set the superclass of this class to +superclass+ # # @raise [NoMethodError] # - # source://rdoc//rdoc/class_module.rb#708 + # source://rdoc//lib/rdoc/class_module.rb#708 def superclass=(superclass); end - # source://rdoc//rdoc/class_module.rb#713 + # source://rdoc//lib/rdoc/class_module.rb#713 def to_s; end # 'module' or 'class' # - # source://rdoc//rdoc/class_module.rb#724 + # source://rdoc//lib/rdoc/class_module.rb#724 def type; end # Updates the child modules & classes by replacing the ones that are @@ -723,7 +733,7 @@ class RDoc::ClassModule < ::RDoc::Context # the aliased modules are included in the constants of the class/module, # that are listed separately. # - # source://rdoc//rdoc/class_module.rb#743 + # source://rdoc//lib/rdoc/class_module.rb#743 def update_aliases; end # Deletes from #extends those whose module has been removed from the @@ -731,7 +741,7 @@ class RDoc::ClassModule < ::RDoc::Context # -- # FIXME: like update_includes, extends are not reliably removed # - # source://rdoc//rdoc/class_module.rb#791 + # source://rdoc//lib/rdoc/class_module.rb#791 def update_extends; end # Deletes from #includes those whose module has been removed from the @@ -739,7 +749,7 @@ class RDoc::ClassModule < ::RDoc::Context # -- # FIXME: includes are not reliably removed, see _possible_bug test case # - # source://rdoc//rdoc/class_module.rb#776 + # source://rdoc//lib/rdoc/class_module.rb#776 def update_includes; end class << self @@ -748,7 +758,7 @@ class RDoc::ClassModule < ::RDoc::Context # -- # TODO move to RDoc::NormalClass (I think) # - # source://rdoc//rdoc/class_module.rb#50 + # source://rdoc//lib/rdoc/class_module.rb#50 def from_module(class_type, mod); end end end @@ -777,6 +787,8 @@ 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 @@ -785,17 +797,17 @@ class RDoc::CodeObject # # @return [CodeObject] a new instance of CodeObject # - # source://rdoc//rdoc/code_object.rb#102 + # source://rdoc//lib/rdoc/code_object.rb#102 def initialize; end # Our comment # - # source://rdoc//rdoc/code_object.rb#35 + # source://rdoc//lib/rdoc/code_object.rb#35 def comment; end # Replaces our comment with +comment+, unless it is empty. # - # source://rdoc//rdoc/code_object.rb#135 + # source://rdoc//lib/rdoc/code_object.rb#135 def comment=(comment); end # Should this CodeObject be displayed in output? @@ -808,41 +820,41 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//rdoc/code_object.rb#163 + # source://rdoc//lib/rdoc/code_object.rb#163 def display?; end # Do we document our children? # - # source://rdoc//rdoc/code_object.rb#40 + # source://rdoc//lib/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//rdoc/code_object.rb#172 + # source://rdoc//lib/rdoc/code_object.rb#172 def document_children=(document_children); end # Do we document ourselves? # - # source://rdoc//rdoc/code_object.rb#45 + # source://rdoc//lib/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//rdoc/code_object.rb#183 + # source://rdoc//lib/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//rdoc/code_object.rb#194 + # source://rdoc//lib/rdoc/code_object.rb#194 def documented?; end # Are we done documenting (ie, did we come across a :enddoc:)? # - # source://rdoc//rdoc/code_object.rb#50 + # source://rdoc//lib/rdoc/code_object.rb#50 def done_documenting; end # Turns documentation on/off, and turns on/off #document_self @@ -852,30 +864,30 @@ class RDoc::CodeObject # the object will refuse to turn #document_self or # will have no effect in the current file. # - # source://rdoc//rdoc/code_object.rb#207 + # source://rdoc//lib/rdoc/code_object.rb#207 def done_documenting=(value); end # Yields each parent of this CodeObject. See also # RDoc::ClassModule#each_ancestor # - # source://rdoc//rdoc/code_object.rb#218 + # source://rdoc//lib/rdoc/code_object.rb#218 def each_parent; end # Which file this code object was defined in # - # source://rdoc//rdoc/code_object.rb#55 + # source://rdoc//lib/rdoc/code_object.rb#55 def file; end # File name where this CodeObject was found. # # See also RDoc::Context#in_files # - # source://rdoc//rdoc/code_object.rb#233 + # source://rdoc//lib/rdoc/code_object.rb#233 def file_name; end # Force documentation of this CodeObject # - # source://rdoc//rdoc/code_object.rb#60 + # source://rdoc//lib/rdoc/code_object.rb#60 def force_documentation; end # Force the documentation of this object unless documentation @@ -883,14 +895,14 @@ class RDoc::CodeObject # -- # HACK untested, was assigning to an ivar # - # source://rdoc//rdoc/code_object.rb#245 + # source://rdoc//lib/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//rdoc/code_object.rb#254 + # source://rdoc//lib/rdoc/code_object.rb#254 def full_name=(full_name); end # Use this to ignore a CodeObject and all its children until found again @@ -908,7 +920,7 @@ class RDoc::CodeObject # reopened it should not be displayed. The ignore flag allows this to # occur. # - # source://rdoc//rdoc/code_object.rb#274 + # source://rdoc//lib/rdoc/code_object.rb#274 def ignore; end # Has this class been ignored? @@ -917,27 +929,27 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//rdoc/code_object.rb#287 + # source://rdoc//lib/rdoc/code_object.rb#287 def ignored?; end # Initializes state for visibility of this CodeObject and its children. # - # source://rdoc//rdoc/code_object.rb#121 + # source://rdoc//lib/rdoc/code_object.rb#121 def initialize_visibility; end # Line in #file where this CodeObject was defined # - # source://rdoc//rdoc/code_object.rb#65 + # source://rdoc//lib/rdoc/code_object.rb#65 def line; end # Line in #file where this CodeObject was defined # - # source://rdoc//rdoc/code_object.rb#65 + # source://rdoc//lib/rdoc/code_object.rb#65 def line=(_arg0); end # Hash of arbitrary metadata for this CodeObject # - # source://rdoc//rdoc/code_object.rb#70 + # source://rdoc//lib/rdoc/code_object.rb#70 def metadata; end # The options instance from the store this CodeObject is attached to, or a @@ -945,68 +957,68 @@ class RDoc::CodeObject # # This is used by Text#snippet # - # source://rdoc//rdoc/code_object.rb#297 + # source://rdoc//lib/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//rdoc/code_object.rb#309 + # source://rdoc//lib/rdoc/code_object.rb#309 def parent; end # Sets the parent CodeObject # - # source://rdoc//rdoc/code_object.rb#75 + # source://rdoc//lib/rdoc/code_object.rb#75 def parent=(_arg0); end # File name of our parent # - # source://rdoc//rdoc/code_object.rb#331 + # source://rdoc//lib/rdoc/code_object.rb#331 def parent_file_name; end # Name of our parent # - # source://rdoc//rdoc/code_object.rb#338 + # source://rdoc//lib/rdoc/code_object.rb#338 def parent_name; end - # source://rdoc//rdoc/code_object.rb#80 + # source://rdoc//lib/rdoc/code_object.rb#80 def received_nodoc; end # Records the RDoc::TopLevel (file) where this code object was defined # - # source://rdoc//rdoc/code_object.rb#345 + # source://rdoc//lib/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//rdoc/code_object.rb#355 + # source://rdoc//lib/rdoc/code_object.rb#355 def section; end # Set the section this CodeObject is in # - # source://rdoc//rdoc/code_object.rb#85 + # source://rdoc//lib/rdoc/code_object.rb#85 def section=(_arg0); end # Enable capture of documentation unless documentation has been # turned off by :enddoc: # - # source://rdoc//rdoc/code_object.rb#365 + # source://rdoc//lib/rdoc/code_object.rb#365 def start_doc; end # Disable capture of documentation # - # source://rdoc//rdoc/code_object.rb#377 + # source://rdoc//lib/rdoc/code_object.rb#377 def stop_doc; end # The RDoc::Store for this object. # - # source://rdoc//rdoc/code_object.rb#90 + # source://rdoc//lib/rdoc/code_object.rb#90 def store; end # Sets the +store+ that contains this CodeObject # - # source://rdoc//rdoc/code_object.rb#387 + # source://rdoc//lib/rdoc/code_object.rb#387 def store=(store); end # Use this to suppress a CodeObject and all its children until the next file @@ -1014,7 +1026,7 @@ class RDoc::CodeObject # documentation will be displayed while an ignored item with documentation # may not be displayed. # - # source://rdoc//rdoc/code_object.rb#404 + # source://rdoc//lib/rdoc/code_object.rb#404 def suppress; end # Has this class been suppressed? @@ -1023,24 +1035,25 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//rdoc/code_object.rb#417 + # source://rdoc//lib/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//rdoc/code_object.rb#97 + # source://rdoc//lib/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//rdoc/code_object.rb#97 + # source://rdoc//lib/rdoc/code_object.rb#97 def viewer=(_arg0); end end +# source://rdoc//lib/rdoc/comment.rb#12 class RDoc::Comment include ::RDoc::Text @@ -1049,28 +1062,28 @@ class RDoc::Comment # # @return [Comment] a new instance of Comment # - # source://rdoc//rdoc/comment.rb#56 + # source://rdoc//lib/rdoc/comment.rb#56 def initialize(text = T.unsafe(nil), location = T.unsafe(nil), language = T.unsafe(nil)); end - # source://rdoc//rdoc/comment.rb#74 + # source://rdoc//lib/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//rdoc/comment.rb#50 + # source://rdoc//lib/rdoc/comment.rb#50 def document=(_arg0); end # A comment is empty if its text String is empty. # # @return [Boolean] # - # source://rdoc//rdoc/comment.rb#128 + # source://rdoc//lib/rdoc/comment.rb#128 def empty?; end # HACK dubious # - # source://rdoc//rdoc/comment.rb#135 + # source://rdoc//lib/rdoc/comment.rb#135 def encode!(encoding); end # Look for a 'call-seq' in the comment to override the normal parameter @@ -1088,65 +1101,65 @@ class RDoc::Comment # # ARGF.to_a(limit) -> array # # ARGF.to_a(sep, limit) -> array # - # source://rdoc//rdoc/comment.rb#95 + # source://rdoc//lib/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//rdoc/comment.rb#24 + # source://rdoc//lib/rdoc/comment.rb#24 def file; end # The format of this comment. Defaults to RDoc::Markup # - # source://rdoc//rdoc/comment.rb#19 + # source://rdoc//lib/rdoc/comment.rb#19 def format; end # Sets the format of this comment and resets any parsed document # - # source://rdoc//rdoc/comment.rb#143 + # source://rdoc//lib/rdoc/comment.rb#143 def format=(format); end - # source://rdoc//rdoc/comment.rb#148 + # source://rdoc//lib/rdoc/comment.rb#148 def inspect; end # Line where this Comment was written # - # source://rdoc//rdoc/comment.rb#29 + # source://rdoc//lib/rdoc/comment.rb#29 def line; end # Line where this Comment was written # - # source://rdoc//rdoc/comment.rb#29 + # source://rdoc//lib/rdoc/comment.rb#29 def line=(_arg0); end # The RDoc::TopLevel this comment was found in # - # source://rdoc//rdoc/comment.rb#24 + # source://rdoc//lib/rdoc/comment.rb#24 def location; end # The RDoc::TopLevel this comment was found in # - # source://rdoc//rdoc/comment.rb#24 + # source://rdoc//lib/rdoc/comment.rb#24 def location=(_arg0); end # Normalizes the text. See RDoc::Text#normalize_comment for details # - # source://rdoc//rdoc/comment.rb#157 + # source://rdoc//lib/rdoc/comment.rb#157 def normalize; end # Was this text normalized? # # @return [Boolean] # - # source://rdoc//rdoc/comment.rb#171 + # source://rdoc//lib/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//rdoc/comment.rb#179 + # source://rdoc//lib/rdoc/comment.rb#179 def parse; end # Removes private sections from this comment. Private sections are flush to @@ -1161,12 +1174,12 @@ class RDoc::Comment # * public # */ # - # source://rdoc//rdoc/comment.rb#200 + # source://rdoc//lib/rdoc/comment.rb#200 def remove_private; end # The text for this comment # - # source://rdoc//rdoc/comment.rb#39 + # source://rdoc//lib/rdoc/comment.rb#39 def text; end # Replaces this comment's text with +text+ and resets the parsed document. @@ -1175,21 +1188,21 @@ class RDoc::Comment # # @raise [RDoc::Error] # - # source://rdoc//rdoc/comment.rb#214 + # source://rdoc//lib/rdoc/comment.rb#214 def text=(text); end # The text for this comment # # Alias for text # - # source://rdoc//rdoc/comment.rb#39 + # source://rdoc//lib/rdoc/comment.rb#39 def to_s; end # Returns true if this comment is in TomDoc format. # # @return [Boolean] # - # source://rdoc//rdoc/comment.rb#225 + # source://rdoc//lib/rdoc/comment.rb#225 def tomdoc?; end private @@ -1197,27 +1210,29 @@ class RDoc::Comment # -- # TODO deep copy @document # - # source://rdoc//rdoc/comment.rb#70 + # source://rdoc//lib/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//rdoc/constant.rb#32 + # source://rdoc//lib/rdoc/constant.rb#32 def initialize(name, value, comment); end # Constants are ordered by name # - # source://rdoc//rdoc/constant.rb#47 + # source://rdoc//lib/rdoc/constant.rb#47 def <=>(other); end # Constants are equal when their #parent and #name is the same # - # source://rdoc//rdoc/constant.rb#56 + # source://rdoc//lib/rdoc/constant.rb#56 def ==(other); end # A constant is documented if it has a comment, or is an alias @@ -1225,30 +1240,30 @@ class RDoc::Constant < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//rdoc/constant.rb#66 + # source://rdoc//lib/rdoc/constant.rb#66 def documented?; end # Full constant name including namespace # - # source://rdoc//rdoc/constant.rb#81 + # source://rdoc//lib/rdoc/constant.rb#81 def full_name; end - # source://rdoc//rdoc/constant.rb#99 + # source://rdoc//lib/rdoc/constant.rb#99 def inspect; end # The module or class this constant is an alias for # - # source://rdoc//rdoc/constant.rb#88 + # source://rdoc//lib/rdoc/constant.rb#88 def is_alias_for; end # Sets the module or class this is constant is an alias for. # - # source://rdoc//rdoc/constant.rb#12 + # source://rdoc//lib/rdoc/constant.rb#12 def is_alias_for=(_arg0); end # Dumps this Constant for use by ri. See also #marshal_load # - # source://rdoc//rdoc/constant.rb#109 + # source://rdoc//lib/rdoc/constant.rb#109 def marshal_dump; end # Loads this Constant from +array+. For a loaded Constant the following @@ -1257,59 +1272,61 @@ class RDoc::Constant < ::RDoc::CodeObject # * #full_name # * #parent_name # - # source://rdoc//rdoc/constant.rb#135 + # source://rdoc//lib/rdoc/constant.rb#135 def marshal_load(array); end # The constant's name # - # source://rdoc//rdoc/constant.rb#17 + # source://rdoc//lib/rdoc/constant.rb#17 def name; end # The constant's name # - # source://rdoc//rdoc/constant.rb#17 + # source://rdoc//lib/rdoc/constant.rb#17 def name=(_arg0); end # Path to this constant for use with HTML generator output. # - # source://rdoc//rdoc/constant.rb#153 + # source://rdoc//lib/rdoc/constant.rb#153 def path; end - # source://rdoc//rdoc/constant.rb#157 + # source://rdoc//lib/rdoc/constant.rb#157 def pretty_print(q); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//rdoc/constant.rb#171 + # source://rdoc//lib/rdoc/constant.rb#171 def store=(store); end - # source://rdoc//rdoc/constant.rb#177 + # source://rdoc//lib/rdoc/constant.rb#177 def to_s; end # The constant's value # - # source://rdoc//rdoc/constant.rb#22 + # source://rdoc//lib/rdoc/constant.rb#22 def value; end # The constant's value # - # source://rdoc//rdoc/constant.rb#22 + # source://rdoc//lib/rdoc/constant.rb#22 def value=(_arg0); end # The constant's visibility # - # source://rdoc//rdoc/constant.rb#27 + # source://rdoc//lib/rdoc/constant.rb#27 def visibility; end # The constant's visibility # - # source://rdoc//rdoc/constant.rb#27 + # source://rdoc//lib/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 @@ -1317,12 +1334,12 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Context] a new instance of Context # - # source://rdoc//rdoc/context.rb#123 + # source://rdoc//lib/rdoc/context.rb#123 def initialize; end # Contexts are sorted by full_name # - # source://rdoc//rdoc/context.rb#171 + # source://rdoc//lib/rdoc/context.rb#171 def <=>(other); end # Adds an item of type +klass+ with the given +name+ and +comment+ to the @@ -1330,12 +1347,12 @@ class RDoc::Context < ::RDoc::CodeObject # # Currently only RDoc::Extend and RDoc::Include are supported. # - # source://rdoc//rdoc/context.rb#183 + # source://rdoc//lib/rdoc/context.rb#183 def add(klass, name, comment); end # Adds +an_alias+ that is automatically resolved # - # source://rdoc//rdoc/context.rb#198 + # source://rdoc//lib/rdoc/context.rb#198 def add_alias(an_alias); end # Adds +attribute+ if not already there. If it is (as method(s) or attribute), @@ -1346,7 +1363,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//rdoc/context.rb#225 + # source://rdoc//lib/rdoc/context.rb#225 def add_attribute(attribute); end # Adds a class named +given_name+ with +superclass+. @@ -1363,7 +1380,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//rdoc/context.rb#288 + # source://rdoc//lib/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 @@ -1372,51 +1389,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//rdoc/context.rb#404 + # source://rdoc//lib/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//rdoc/context.rb#429 + # source://rdoc//lib/rdoc/context.rb#429 def add_constant(constant); end # Adds extension module +ext+ which should be an RDoc::Extend # - # source://rdoc//rdoc/context.rb#463 + # source://rdoc//lib/rdoc/context.rb#463 def add_extend(ext); end # Adds included module +include+ which should be an RDoc::Include # - # source://rdoc//rdoc/context.rb#454 + # source://rdoc//lib/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//rdoc/context.rb#473 + # source://rdoc//lib/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//rdoc/context.rb#506 + # source://rdoc//lib/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//rdoc/context.rb#527 + # source://rdoc//lib/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//rdoc/context.rb#519 + # source://rdoc//lib/rdoc/context.rb#519 def add_module_by_normal_module(mod); end # Adds +require+ to this context's top level # - # source://rdoc//rdoc/context.rb#568 + # source://rdoc//lib/rdoc/context.rb#568 def add_require(require); end # Returns a section with +title+, creating it if it doesn't already exist. @@ -1426,17 +1443,17 @@ class RDoc::Context < ::RDoc::CodeObject # # See also RDoc::Context::Section # - # source://rdoc//rdoc/context.rb#586 + # source://rdoc//lib/rdoc/context.rb#586 def add_section(title, comment = T.unsafe(nil)); end # Adds +thing+ to the collection +array+ # - # source://rdoc//rdoc/context.rb#600 + # source://rdoc//lib/rdoc/context.rb#600 def add_to(array, thing); end # Class/module aliases # - # source://rdoc//rdoc/context.rb#25 + # source://rdoc//lib/rdoc/context.rb#25 def aliases; end # Is there any content? @@ -1446,88 +1463,88 @@ class RDoc::Context < ::RDoc::CodeObject # # Includes and extends are also checked unless includes == false. # - # source://rdoc//rdoc/context.rb#616 + # source://rdoc//lib/rdoc/context.rb#616 def any_content(includes = T.unsafe(nil)); end # All attr* methods # - # source://rdoc//rdoc/context.rb#30 + # source://rdoc//lib/rdoc/context.rb#30 def attributes; end # Block params to be used in the next MethodAttr parsed under this context # - # source://rdoc//rdoc/context.rb#35 + # source://rdoc//lib/rdoc/context.rb#35 def block_params; end # Block params to be used in the next MethodAttr parsed under this context # - # source://rdoc//rdoc/context.rb#35 + # source://rdoc//lib/rdoc/context.rb#35 def block_params=(_arg0); end # Creates the full name for a child with +name+ # - # source://rdoc//rdoc/context.rb#632 + # source://rdoc//lib/rdoc/context.rb#632 def child_name(name); end # Class attributes # - # source://rdoc//rdoc/context.rb#645 + # source://rdoc//lib/rdoc/context.rb#645 def class_attributes; end # Class methods # - # source://rdoc//rdoc/context.rb#652 + # source://rdoc//lib/rdoc/context.rb#652 def class_method_list; end # Array of classes in this context # - # source://rdoc//rdoc/context.rb#659 + # source://rdoc//lib/rdoc/context.rb#659 def classes; end # All classes and modules in this namespace # - # source://rdoc//rdoc/context.rb#666 + # source://rdoc//lib/rdoc/context.rb#666 def classes_and_modules; end # Hash of classes keyed by class name # - # source://rdoc//rdoc/context.rb#673 + # source://rdoc//lib/rdoc/context.rb#673 def classes_hash; end # Constants defined # - # source://rdoc//rdoc/context.rb#40 + # source://rdoc//lib/rdoc/context.rb#40 def constants; end # Hash of registered constants. # - # source://rdoc//rdoc/context.rb#118 + # source://rdoc//lib/rdoc/context.rb#118 def constants_hash; end # Current visibility of this line # - # source://rdoc//rdoc/context.rb#102 + # source://rdoc//lib/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//rdoc/context.rb#681 + # source://rdoc//lib/rdoc/context.rb#681 def current_section; end # Sets the current documentation section of documentation # - # source://rdoc//rdoc/context.rb#45 + # source://rdoc//lib/rdoc/context.rb#45 def current_section=(_arg0); end # Is part of this thing was defined in +file+? # # @return [Boolean] # - # source://rdoc//rdoc/context.rb#694 + # source://rdoc//lib/rdoc/context.rb#694 def defined_in?(file); end - # source://rdoc//rdoc/context.rb#698 + # source://rdoc//lib/rdoc/context.rb#698 def display(method_attr); end # Iterator for ancestors for duck-typing. Does nothing. See @@ -1536,37 +1553,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//rdoc/context.rb#713 - def each_ancestor; end + # source://rdoc//lib/rdoc/context.rb#713 + def each_ancestor(&_); end # Iterator for attributes # - # source://rdoc//rdoc/context.rb#719 + # source://rdoc//lib/rdoc/context.rb#719 def each_attribute; end # Iterator for classes and modules # - # source://rdoc//rdoc/context.rb#726 + # source://rdoc//lib/rdoc/context.rb#726 def each_classmodule(&block); end # Iterator for constants # - # source://rdoc//rdoc/context.rb#733 + # source://rdoc//lib/rdoc/context.rb#733 def each_constant; end # Iterator for extension modules # - # source://rdoc//rdoc/context.rb#747 + # source://rdoc//lib/rdoc/context.rb#747 def each_extend; end # Iterator for included modules # - # source://rdoc//rdoc/context.rb#740 + # source://rdoc//lib/rdoc/context.rb#740 def each_include; end # Iterator for methods # - # source://rdoc//rdoc/context.rb#754 + # source://rdoc//lib/rdoc/context.rb#754 def each_method; end # Iterator for each section's contents sorted by title. The +section+, the @@ -1578,98 +1595,98 @@ class RDoc::Context < ::RDoc::CodeObject # # NOTE: Do not edit collections yielded by this method # - # source://rdoc//rdoc/context.rb#770 + # source://rdoc//lib/rdoc/context.rb#770 def each_section; end # Modules this context is extended with # - # source://rdoc//rdoc/context.rb#60 + # source://rdoc//lib/rdoc/context.rb#60 def extends; end # Aliases that could not be resolved. # - # source://rdoc//rdoc/context.rb#92 + # source://rdoc//lib/rdoc/context.rb#92 def external_aliases; end # Finds an attribute +name+ with singleton value +singleton+. # - # source://rdoc//rdoc/context.rb#787 + # source://rdoc//lib/rdoc/context.rb#787 def find_attribute(name, singleton); end # Finds an attribute with +name+ in this context # - # source://rdoc//rdoc/context.rb#795 + # source://rdoc//lib/rdoc/context.rb#795 def find_attribute_named(name); end # Finds a class method with +name+ in this context # - # source://rdoc//rdoc/context.rb#809 + # source://rdoc//lib/rdoc/context.rb#809 def find_class_method_named(name); end # Finds a constant with +name+ in this context # - # source://rdoc//rdoc/context.rb#816 + # source://rdoc//lib/rdoc/context.rb#816 def find_constant_named(name); end # Find a module at a higher scope # - # source://rdoc//rdoc/context.rb#825 + # source://rdoc//lib/rdoc/context.rb#825 def find_enclosing_module_named(name); end # Finds an external alias +name+ with singleton value +singleton+. # - # source://rdoc//rdoc/context.rb#832 + # source://rdoc//lib/rdoc/context.rb#832 def find_external_alias(name, singleton); end # Finds an external alias with +name+ in this context # - # source://rdoc//rdoc/context.rb#839 + # source://rdoc//lib/rdoc/context.rb#839 def find_external_alias_named(name); end # Finds a file with +name+ in this context # - # source://rdoc//rdoc/context.rb#853 + # source://rdoc//lib/rdoc/context.rb#853 def find_file_named(name); end # Finds an instance method with +name+ in this context # - # source://rdoc//rdoc/context.rb#860 + # source://rdoc//lib/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//rdoc/context.rb#868 + # source://rdoc//lib/rdoc/context.rb#868 def find_local_symbol(symbol); end # Finds a method named +name+ with singleton value +singleton+. # - # source://rdoc//rdoc/context.rb#880 + # source://rdoc//lib/rdoc/context.rb#880 def find_method(name, singleton); end # Finds a instance or module method with +name+ in this context # - # source://rdoc//rdoc/context.rb#893 + # source://rdoc//lib/rdoc/context.rb#893 def find_method_named(name); end # Find a module with +name+ using ruby's scoping rules # - # source://rdoc//rdoc/context.rb#907 + # source://rdoc//lib/rdoc/context.rb#907 def find_module_named(name); end # Look up +symbol+, first as a module, then as a local symbol. # - # source://rdoc//rdoc/context.rb#917 + # source://rdoc//lib/rdoc/context.rb#917 def find_symbol(symbol); end # Look up a module named +symbol+. # - # source://rdoc//rdoc/context.rb#924 + # source://rdoc//lib/rdoc/context.rb#924 def find_symbol_module(symbol); end # The full name for this context. This method is overridden by subclasses. # - # source://rdoc//rdoc/context.rb#957 + # source://rdoc//lib/rdoc/context.rb#957 def full_name; end # Does this context and its methods and constants all have documentation? @@ -1678,49 +1695,49 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//rdoc/context.rb#966 + # source://rdoc//lib/rdoc/context.rb#966 def fully_documented?; end # URL for this with a +prefix+ # - # source://rdoc//rdoc/context.rb#976 + # source://rdoc//lib/rdoc/context.rb#976 def http_url(prefix); end # Files this context is found in # - # source://rdoc//rdoc/context.rb#50 + # source://rdoc//lib/rdoc/context.rb#50 def in_files; end # Modules this context includes # - # source://rdoc//rdoc/context.rb#55 + # source://rdoc//lib/rdoc/context.rb#55 def includes; end # Sets the defaults for methods and so-forth # - # source://rdoc//rdoc/context.rb#145 + # source://rdoc//lib/rdoc/context.rb#145 def initialize_methods_etc; end # Instance attributes # - # source://rdoc//rdoc/context.rb#987 + # source://rdoc//lib/rdoc/context.rb#987 def instance_attributes; end # Instance methods # -- # TODO remove this later # - # source://rdoc//rdoc/context.rb#1003 + # source://rdoc//lib/rdoc/context.rb#1003 def instance_method_list; end # Instance methods # - # source://rdoc//rdoc/context.rb#994 + # source://rdoc//lib/rdoc/context.rb#994 def instance_methods; end # Methods defined in this context # - # source://rdoc//rdoc/context.rb#65 + # source://rdoc//lib/rdoc/context.rb#65 def method_list; end # Breaks method_list into a nested hash by type ('class' or @@ -1729,59 +1746,59 @@ class RDoc::Context < ::RDoc::CodeObject # If +section+ is provided only methods in that RDoc::Context::Section will # be returned. # - # source://rdoc//rdoc/context.rb#1015 + # source://rdoc//lib/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//rdoc/context.rb#108 + # source://rdoc//lib/rdoc/context.rb#108 def methods_hash; end # Yields AnyMethod and Attr entries matching the list of names in +methods+. # - # source://rdoc//rdoc/context.rb#1038 + # source://rdoc//lib/rdoc/context.rb#1038 def methods_matching(methods, singleton = T.unsafe(nil), &block); end # Array of modules in this context # - # source://rdoc//rdoc/context.rb#1051 + # source://rdoc//lib/rdoc/context.rb#1051 def modules; end # Hash of modules keyed by module name # - # source://rdoc//rdoc/context.rb#1058 + # source://rdoc//lib/rdoc/context.rb#1058 def modules_hash; end # Name of this class excluding namespace. See also full_name # - # source://rdoc//rdoc/context.rb#70 + # source://rdoc//lib/rdoc/context.rb#70 def name; end # Name to use to generate the url. # #full_name by default. # - # source://rdoc//rdoc/context.rb#1066 + # source://rdoc//lib/rdoc/context.rb#1066 def name_for_path; end # Changes the visibility for new methods to +visibility+ # - # source://rdoc//rdoc/context.rb#1073 + # source://rdoc//lib/rdoc/context.rb#1073 def ongoing_visibility=(visibility); end # Params to be used in the next MethodAttr parsed under this context # - # source://rdoc//rdoc/context.rb#113 + # source://rdoc//lib/rdoc/context.rb#113 def params; end # Params to be used in the next MethodAttr parsed under this context # - # source://rdoc//rdoc/context.rb#113 + # source://rdoc//lib/rdoc/context.rb#113 def params=(_arg0); end # Record +top_level+ as a file +self+ is in. # - # source://rdoc//rdoc/context.rb#1080 + # source://rdoc//lib/rdoc/context.rb#1080 def record_location(top_level); end # Should we remove this context from the documentation? @@ -1795,80 +1812,80 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//rdoc/context.rb#1094 + # source://rdoc//lib/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//rdoc/context.rb#1107 + # source://rdoc//lib/rdoc/context.rb#1107 def remove_invisible(min_visibility); end # Only called when min_visibility == :public or :private # - # source://rdoc//rdoc/context.rb#1117 + # source://rdoc//lib/rdoc/context.rb#1117 def remove_invisible_in(array, min_visibility); end # Files this context requires # - # source://rdoc//rdoc/context.rb#75 + # source://rdoc//lib/rdoc/context.rb#75 def requires; end # Tries to resolve unmatched aliases when a method or attribute has just # been added. # - # source://rdoc//rdoc/context.rb#1133 + # source://rdoc//lib/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//rdoc/context.rb#1149 + # source://rdoc//lib/rdoc/context.rb#1149 def section_contents; end # Sections in this context # - # source://rdoc//rdoc/context.rb#1173 + # source://rdoc//lib/rdoc/context.rb#1173 def sections; end - # source://rdoc//rdoc/context.rb#1177 + # source://rdoc//lib/rdoc/context.rb#1177 def sections_hash; end # Given an array +names+ of constants, set the visibility of each constant to # +visibility+ # - # source://rdoc//rdoc/context.rb#1202 + # source://rdoc//lib/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//rdoc/context.rb#1184 + # source://rdoc//lib/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//rdoc/context.rb#1192 + # source://rdoc//lib/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//rdoc/context.rb#1213 + # source://rdoc//lib/rdoc/context.rb#1213 def sort_sections; end # Use this section for the next method, attribute or constant added. # - # source://rdoc//rdoc/context.rb#80 + # source://rdoc//lib/rdoc/context.rb#80 def temporary_section; end # Use this section for the next method, attribute or constant added. # - # source://rdoc//rdoc/context.rb#80 + # source://rdoc//lib/rdoc/context.rb#80 def temporary_section=(_arg0); end - # source://rdoc//rdoc/context.rb#1229 + # source://rdoc//lib/rdoc/context.rb#1229 def to_s; end # Return the TopLevel that owns us @@ -1876,36 +1893,36 @@ class RDoc::Context < ::RDoc::CodeObject # FIXME we can be 'owned' by several TopLevel (see #record_location & # #in_files) # - # source://rdoc//rdoc/context.rb#1239 + # source://rdoc//lib/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//rdoc/context.rb#87 + # source://rdoc//lib/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//rdoc/context.rb#87 + # source://rdoc//lib/rdoc/context.rb#87 def unmatched_alias_lists=(_arg0); end # Upgrades NormalModule +mod+ in +enclosing+ to a +class_type+ # - # source://rdoc//rdoc/context.rb#1249 + # source://rdoc//lib/rdoc/context.rb#1249 def upgrade_to_class(mod, class_type, enclosing); end # Current visibility of this context # - # source://rdoc//rdoc/context.rb#97 + # source://rdoc//lib/rdoc/context.rb#97 def visibility; end # Current visibility of this context # - # source://rdoc//rdoc/context.rb#97 + # source://rdoc//lib/rdoc/context.rb#97 def visibility=(_arg0); end end @@ -1916,6 +1933,8 @@ 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 @@ -1924,37 +1943,37 @@ class RDoc::Context::Section # # @return [Section] a new instance of Section # - # source://rdoc//rdoc/context/section.rb#42 + # source://rdoc//lib/rdoc/context/section.rb#42 def initialize(parent, title, comment); end # Sections are equal when they have the same #title # - # source://rdoc//rdoc/context/section.rb#54 + # source://rdoc//lib/rdoc/context/section.rb#54 def ==(other); end # Adds +comment+ to this section # - # source://rdoc//rdoc/context/section.rb#63 + # source://rdoc//lib/rdoc/context/section.rb#63 def add_comment(comment); end # Anchor reference for linking to this section # - # source://rdoc//rdoc/context/section.rb#83 + # source://rdoc//lib/rdoc/context/section.rb#83 def aref; end # Section comment # - # source://rdoc//rdoc/context/section.rb#22 + # source://rdoc//lib/rdoc/context/section.rb#22 def comment; end # Section comments # - # source://rdoc//rdoc/context/section.rb#27 + # source://rdoc//lib/rdoc/context/section.rb#27 def comments; end # Sections are equal when they have the same #title # - # source://rdoc//rdoc/context/section.rb#54 + # source://rdoc//lib/rdoc/context/section.rb#54 def eql?(other); end # Extracts the comment for this section from the original comment block. @@ -1965,69 +1984,71 @@ class RDoc::Context::Section # # :section: The title # # The body # - # source://rdoc//rdoc/context/section.rb#98 + # source://rdoc//lib/rdoc/context/section.rb#98 def extract_comment(comment); end - # source://rdoc//rdoc/context/section.rb#130 + # source://rdoc//lib/rdoc/context/section.rb#130 def hash; end # The files comments in this section come from # - # source://rdoc//rdoc/context/section.rb#137 + # source://rdoc//lib/rdoc/context/section.rb#137 def in_files; end - # source://rdoc//rdoc/context/section.rb#126 + # source://rdoc//lib/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//rdoc/context/section.rb#158 + # source://rdoc//lib/rdoc/context/section.rb#158 def marshal_dump; end # De-serializes this Section. The section parent must be restored manually. # - # source://rdoc//rdoc/context/section.rb#169 + # source://rdoc//lib/rdoc/context/section.rb#169 def marshal_load(array); end # Context this Section lives in # - # source://rdoc//rdoc/context/section.rb#32 + # source://rdoc//lib/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//rdoc/context/section.rb#180 + # source://rdoc//lib/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//rdoc/context/section.rb#208 + # source://rdoc//lib/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//rdoc/context/section.rb#216 + # source://rdoc//lib/rdoc/context/section.rb#216 def remove_comment(comment); end # Section title # - # source://rdoc//rdoc/context/section.rb#37 + # source://rdoc//lib/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//rdoc/cross_reference.rb#127 + # source://rdoc//lib/rdoc/cross_reference.rb#127 def initialize(context); end # Returns a reference to +name+. @@ -2036,33 +2057,33 @@ class RDoc::CrossReference # returned. If +name+ is escaped +name+ is returned. If +name+ is not # found +text+ is returned. # - # source://rdoc//rdoc/cross_reference.rb#190 + # source://rdoc//lib/rdoc/cross_reference.rb#190 def resolve(name, text); end # Returns a method reference to +name+. # - # source://rdoc//rdoc/cross_reference.rb#137 + # source://rdoc//lib/rdoc/cross_reference.rb#137 def resolve_method(name); end # Hash of references that have been looked-up to their replacements # - # source://rdoc//rdoc/cross_reference.rb#121 + # source://rdoc//lib/rdoc/cross_reference.rb#121 def seen; end # Hash of references that have been looked-up to their replacements # - # source://rdoc//rdoc/cross_reference.rb#121 + # source://rdoc//lib/rdoc/cross_reference.rb#121 def seen=(_arg0); end end # Regular expression to match method arguments. # -# source://rdoc//rdoc/cross_reference.rb#28 +# source://rdoc//lib/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//rdoc/cross_reference.rb#23 +# source://rdoc//lib/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 @@ -2077,43 +2098,49 @@ 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//rdoc/erbio.rb#23 + # source://rdoc//lib/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//rdoc/erbio.rb#30 + # source://rdoc//lib/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//rdoc/erb_partial.rb#12 + # source://rdoc//lib/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//rdoc/encoding.rb#112 + # source://rdoc//lib/rdoc/encoding.rb#112 def change_encoding(text, encoding); end # Detects the encoding of +string+ based on the magic comment # - # source://rdoc//rdoc/encoding.rb#92 + # source://rdoc//lib/rdoc/encoding.rb#92 def detect_encoding(string); end # Reads the contents of +filename+ and handles any encoding directives in @@ -2125,19 +2152,20 @@ 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//rdoc/encoding.rb#32 + # source://rdoc//lib/rdoc/encoding.rb#32 def read_file(filename, encoding, force_transcode = T.unsafe(nil)); end # Removes magic comments and shebang # - # source://rdoc//rdoc/encoding.rb#102 + # source://rdoc//lib/rdoc/encoding.rb#102 def remove_magic_comment(string); end end end -# source://rdoc//rdoc/encoding.rb#10 +# source://rdoc//lib/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 @@ -2148,7 +2176,7 @@ class RDoc::Generator::Darkfish # # @return [Darkfish] a new instance of Darkfish # - # source://rdoc//rdoc/generator/darkfish.rb#159 + # source://rdoc//lib/rdoc/generator/darkfish.rb#159 def initialize(store, options); end # Creates a template from its components and the +body_file+. @@ -2156,174 +2184,174 @@ class RDoc::Generator::Darkfish # For backwards compatibility, if +body_file+ contains "--op from the # options for a full path. # - # source://rdoc//rdoc/generator/darkfish.rb#102 + # source://rdoc//lib/rdoc/generator/darkfish.rb#102 def base_dir; end # Directory where generated class HTML files live relative to the output # dir. # - # source://rdoc//rdoc/generator/darkfish.rb#191 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#108 + # source://rdoc//lib/rdoc/generator/darkfish.rb#108 def classes; end # Copies static files from the static_path into the output directory # - # source://rdoc//rdoc/generator/darkfish.rb#265 + # source://rdoc//lib/rdoc/generator/darkfish.rb#265 def copy_static; end # Output progress information if debugging is enabled # - # source://rdoc//rdoc/generator/darkfish.rb#182 + # source://rdoc//lib/rdoc/generator/darkfish.rb#182 def debug_msg(*msg); end # No files will be written when dry_run is true. # - # source://rdoc//rdoc/generator/darkfish.rb#113 + # source://rdoc//lib/rdoc/generator/darkfish.rb#113 def dry_run; end # No files will be written when dry_run is true. # - # source://rdoc//rdoc/generator/darkfish.rb#113 + # source://rdoc//lib/rdoc/generator/darkfish.rb#113 def dry_run=(_arg0); end # Directory where generated class HTML files live relative to the output # dir. # - # source://rdoc//rdoc/generator/darkfish.rb#199 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#119 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#119 + # source://rdoc//lib/rdoc/generator/darkfish.rb#119 def file_output=(_arg0); end # Files to be displayed by this generator # - # source://rdoc//rdoc/generator/darkfish.rb#124 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#207 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#241 + # source://rdoc//lib/rdoc/generator/darkfish.rb#241 def generate; end # Generates a class file for +klass+ # - # source://rdoc//rdoc/generator/darkfish.rb#337 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#368 + # source://rdoc//lib/rdoc/generator/darkfish.rb#368 def generate_class_files; end # Generate a documentation file for each file # - # source://rdoc//rdoc/generator/darkfish.rb#395 + # source://rdoc//lib/rdoc/generator/darkfish.rb#395 def generate_file_files; end # Generate an index page which lists all the classes which are documented. # - # source://rdoc//rdoc/generator/darkfish.rb#303 + # source://rdoc//lib/rdoc/generator/darkfish.rb#303 def generate_index; end # Generate a page file for +file+ # - # source://rdoc//rdoc/generator/darkfish.rb#464 + # source://rdoc//lib/rdoc/generator/darkfish.rb#464 def generate_page(file); end # Generates the 404 page for the RDoc servlet # - # source://rdoc//rdoc/generator/darkfish.rb#493 + # source://rdoc//lib/rdoc/generator/darkfish.rb#493 def generate_servlet_not_found(message); end # Generates the servlet root page for the RDoc servlet # - # source://rdoc//rdoc/generator/darkfish.rb#526 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#553 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#294 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#652 + # source://rdoc//lib/rdoc/generator/darkfish.rb#652 def get_svninfo(klass); end - # source://rdoc//rdoc/generator/darkfish.rb#584 + # source://rdoc//lib/rdoc/generator/darkfish.rb#584 def install_rdoc_static_file(source, destination, options); end # The JSON index generator for this Darkfish generator # - # source://rdoc//rdoc/generator/darkfish.rb#129 + # source://rdoc//lib/rdoc/generator/darkfish.rb#129 def json_index; end # Methods to be displayed by this generator # - # source://rdoc//rdoc/generator/darkfish.rb#134 + # source://rdoc//lib/rdoc/generator/darkfish.rb#134 def methods; end # Sorted list of classes and modules to be displayed by this generator # - # source://rdoc//rdoc/generator/darkfish.rb#139 + # source://rdoc//lib/rdoc/generator/darkfish.rb#139 def modsort; end # The output directory # - # source://rdoc//rdoc/generator/darkfish.rb#154 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#699 + # source://rdoc//lib/rdoc/generator/darkfish.rb#699 def render(file_name); end # Load and render the erb template in the given +template_file+ and write @@ -2333,48 +2361,49 @@ class RDoc::Generator::Darkfish # # An io will be yielded which must be captured by binding in the caller. # - # source://rdoc//rdoc/generator/darkfish.rb#717 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#604 + # source://rdoc//lib/rdoc/generator/darkfish.rb#604 def setup; end # The RDoc::Store that is the source of the generated content # - # source://rdoc//rdoc/generator/darkfish.rb#144 + # source://rdoc//lib/rdoc/generator/darkfish.rb#144 def store; end # The directory where the template files live # - # source://rdoc//rdoc/generator/darkfish.rb#149 + # source://rdoc//lib/rdoc/generator/darkfish.rb#149 def template_dir; end # Retrieves a cache template for +file+, if present, or fills the cache. # - # source://rdoc//rdoc/generator/darkfish.rb#764 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#751 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#621 + # source://rdoc//lib/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//rdoc/generator/darkfish.rb#215 + # source://rdoc//lib/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 @@ -2385,63 +2414,63 @@ class RDoc::Generator::JsonIndex # # @return [JsonIndex] a new instance of JsonIndex # - # source://rdoc//rdoc/generator/json_index.rb#94 + # source://rdoc//lib/rdoc/generator/json_index.rb#94 def initialize(parent_generator, options); end # Builds the JSON index as a Hash. # - # source://rdoc//rdoc/generator/json_index.rb#110 + # source://rdoc//lib/rdoc/generator/json_index.rb#110 def build_index; end # The directory classes are written to # - # source://rdoc//rdoc/generator/json_index.rb#271 + # source://rdoc//lib/rdoc/generator/json_index.rb#271 def class_dir; end # Output progress information if debugging is enabled # - # source://rdoc//rdoc/generator/json_index.rb#123 + # source://rdoc//lib/rdoc/generator/json_index.rb#123 def debug_msg(*msg); end # The directory files are written to # - # source://rdoc//rdoc/generator/json_index.rb#278 + # source://rdoc//lib/rdoc/generator/json_index.rb#278 def file_dir; end # Writes the JSON index to disk # - # source://rdoc//rdoc/generator/json_index.rb#131 + # source://rdoc//lib/rdoc/generator/json_index.rb#131 def generate; end # Compress the search_index.js file using gzip # - # source://rdoc//rdoc/generator/json_index.rb#166 + # source://rdoc//lib/rdoc/generator/json_index.rb#166 def generate_gzipped; end - # source://rdoc//rdoc/generator/json_index.rb#86 + # source://rdoc//lib/rdoc/generator/json_index.rb#86 def index; end # Adds classes and modules to the index # - # source://rdoc//rdoc/generator/json_index.rb#211 + # source://rdoc//lib/rdoc/generator/json_index.rb#211 def index_classes; end # Adds methods to the index # - # source://rdoc//rdoc/generator/json_index.rb#230 + # source://rdoc//lib/rdoc/generator/json_index.rb#230 def index_methods; end # Adds pages to the index # - # source://rdoc//rdoc/generator/json_index.rb#251 + # source://rdoc//lib/rdoc/generator/json_index.rb#251 def index_pages; end - # source://rdoc//rdoc/generator/json_index.rb#282 + # source://rdoc//lib/rdoc/generator/json_index.rb#282 def reset(files, classes); end # Removes whitespace and downcases +string+ # - # source://rdoc//rdoc/generator/json_index.rb#296 + # source://rdoc//lib/rdoc/generator/json_index.rb#296 def search_string(string); end end @@ -2497,178 +2526,188 @@ 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//rdoc/generator/pot.rb#68 + # source://rdoc//lib/rdoc/generator/pot.rb#68 def initialize(store, options); end - # source://rdoc//rdoc/generator/pot.rb#85 + # source://rdoc//lib/rdoc/generator/pot.rb#85 def class_dir; end # Writes .pot to disk. # - # source://rdoc//rdoc/generator/pot.rb#76 + # source://rdoc//lib/rdoc/generator/pot.rb#76 def generate; end private - # source://rdoc//rdoc/generator/pot.rb#90 + # source://rdoc//lib/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//rdoc/generator/pot/message_extractor.rb#10 + # source://rdoc//lib/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//rdoc/generator/pot/message_extractor.rb#19 + # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#19 def extract; end private - # source://rdoc//rdoc/generator/pot/message_extractor.rb#64 + # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#64 def entry(msgid, options); end - # source://rdoc//rdoc/generator/pot/message_extractor.rb#28 + # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#28 def extract_from_klass(klass); end - # source://rdoc//rdoc/generator/pot/message_extractor.rb#51 + # source://rdoc//lib/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//rdoc/generator/pot/po.rb#10 + # source://rdoc//lib/rdoc/generator/pot/po.rb#10 def initialize; end # Adds a PO entry to the PO. # - # source://rdoc//rdoc/generator/pot/po.rb#18 + # source://rdoc//lib/rdoc/generator/pot/po.rb#18 def add(entry); end # Returns PO format text for the PO. # - # source://rdoc//rdoc/generator/pot/po.rb#29 + # source://rdoc//lib/rdoc/generator/pot/po.rb#29 def to_s; end private - # source://rdoc//rdoc/generator/pot/po.rb#40 + # source://rdoc//lib/rdoc/generator/pot/po.rb#40 def add_header; end - # source://rdoc//rdoc/generator/pot/po.rb#44 + # source://rdoc//lib/rdoc/generator/pot/po.rb#44 def header_entry; end - # source://rdoc//rdoc/generator/pot/po.rb#73 + # source://rdoc//lib/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//rdoc/generator/pot/po_entry.rb#29 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#29 def initialize(msgid, options = T.unsafe(nil)); end # The comment content extracted from source file # - # source://rdoc//rdoc/generator/pot/po_entry.rb#17 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#17 def extracted_comment; end # The flags of the PO entry # - # source://rdoc//rdoc/generator/pot/po_entry.rb#23 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#23 def flags; end # Merges the PO entry with +other_entry+. # - # source://rdoc//rdoc/generator/pot/po_entry.rb#56 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#56 def merge(other_entry); end # The msgid content # - # source://rdoc//rdoc/generator/pot/po_entry.rb#8 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#8 def msgid; end # The msgstr content # - # source://rdoc//rdoc/generator/pot/po_entry.rb#11 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#11 def msgstr; end # The locations where the PO entry is extracted # - # source://rdoc//rdoc/generator/pot/po_entry.rb#20 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#20 def references; end # Returns the PO entry in PO format. # - # source://rdoc//rdoc/generator/pot/po_entry.rb#41 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#41 def to_s; end # The comment content created by translator (PO editor) # - # source://rdoc//rdoc/generator/pot/po_entry.rb#14 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#14 def translator_comment; end private - # source://rdoc//rdoc/generator/pot/po_entry.rb#120 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#120 def escape(string); end - # source://rdoc//rdoc/generator/pot/po_entry.rb#72 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#72 def format_comment(mark, comment); end - # source://rdoc//rdoc/generator/pot/po_entry.rb#88 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#88 def format_extracted_comment; end - # source://rdoc//rdoc/generator/pot/po_entry.rb#102 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#102 def format_flags; end - # source://rdoc//rdoc/generator/pot/po_entry.rb#109 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#109 def format_message(message); end - # source://rdoc//rdoc/generator/pot/po_entry.rb#92 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#92 def format_references; end - # source://rdoc//rdoc/generator/pot/po_entry.rb#84 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#84 def format_translator_comment; end - # source://rdoc//rdoc/generator/pot/po_entry.rb#137 + # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#137 def merge_array(array1, array2); end - # source://rdoc//rdoc/generator/pot/po_entry.rb#133 + # source://rdoc//lib/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//rdoc/generator/ri.rb#17 + # source://rdoc//lib/rdoc/generator/ri.rb#17 def initialize(store, options); end # Writes the parsed data store to disk for use by ri. # - # source://rdoc//rdoc/generator/ri.rb#26 + # source://rdoc//lib/rdoc/generator/ri.rb#26 def generate; end end @@ -2678,13 +2717,15 @@ 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//rdoc/i18n/locale.rb#48 + # source://rdoc//lib/rdoc/i18n/locale.rb#48 def initialize(name); end # Loads translation messages from +locale_directory+/+@name+/rdoc.po @@ -2696,7 +2737,7 @@ class RDoc::I18n::Locale # # Returns +true+ if succeeded, +false+ otherwise. # - # source://rdoc//rdoc/i18n/locale.rb#63 + # source://rdoc//lib/rdoc/i18n/locale.rb#63 def load(locale_directory); end # The name of the locale. It uses IETF language tag format @@ -2705,19 +2746,19 @@ class RDoc::I18n::Locale # See also {BCP 47 - Tags for Identifying # Languages}[http://tools.ietf.org/rfc/bcp/bcp47.txt]. # - # source://rdoc//rdoc/i18n/locale.rb#42 + # source://rdoc//lib/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//rdoc/i18n/locale.rb#98 + # source://rdoc//lib/rdoc/i18n/locale.rb#98 def translate(message); end class << self # Returns the locale object for +locale_name+. # - # source://rdoc//rdoc/i18n/locale.rb#19 + # source://rdoc//lib/rdoc/i18n/locale.rb#19 def [](locale_name); end # Sets the locale object for +locale_name+. @@ -2725,7 +2766,7 @@ class RDoc::I18n::Locale # Normally, this method is not used. This method is useful for # testing. # - # source://rdoc//rdoc/i18n/locale.rb#29 + # source://rdoc//lib/rdoc/i18n/locale.rb#29 def []=(locale_name, locale); end end end @@ -2738,12 +2779,14 @@ 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//rdoc/i18n/text.rb#17 + # source://rdoc//lib/rdoc/i18n/text.rb#17 def initialize(raw); end # Extracts translation target messages and yields each message. @@ -2756,1320 +2799,1321 @@ class RDoc::I18n::Text # # The above content may be added in the future. # - # source://rdoc//rdoc/i18n/text.rb#32 + # source://rdoc//lib/rdoc/i18n/text.rb#32 def extract_messages; end # Translates raw text into +locale+. # - # source://rdoc//rdoc/i18n/text.rb#44 + # source://rdoc//lib/rdoc/i18n/text.rb#44 def translate(locale); end private - # source://rdoc//rdoc/i18n/text.rb#88 + # source://rdoc//lib/rdoc/i18n/text.rb#88 def each_line(raw, &block); end # @yield [part] # - # source://rdoc//rdoc/i18n/text.rb#101 + # source://rdoc//lib/rdoc/i18n/text.rb#101 def emit_empty_line_event(line, line_no); end - # source://rdoc//rdoc/i18n/text.rb#110 + # source://rdoc//lib/rdoc/i18n/text.rb#110 def emit_paragraph_event(paragraph, paragraph_start_line, line_no, &block); end - # source://rdoc//rdoc/i18n/text.rb#60 + # source://rdoc//lib/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//rdoc/markdown.rb#668 + # source://rdoc//lib/rdoc/markdown.rb#668 def initialize(extensions = T.unsafe(nil), debug = T.unsafe(nil)); end # Alphanumeric = %literals.Alphanumeric # - # source://rdoc//rdoc/markdown.rb#14705 + # source://rdoc//lib/rdoc/markdown.rb#14705 def _Alphanumeric; end # AlphanumericAscii = %literals.AlphanumericAscii # - # source://rdoc//rdoc/markdown.rb#14712 + # source://rdoc//lib/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//rdoc/markdown.rb#1162 + # source://rdoc//lib/rdoc/markdown.rb#1162 def _AtxHeading; end # AtxInline = !@Newline !(@Sp /#*/ @Sp @Newline) Inline # - # source://rdoc//rdoc/markdown.rb#1080 + # source://rdoc//lib/rdoc/markdown.rb#1080 def _AtxInline; end # AtxStart = < /\#{1,6}/ > { text.length } # - # source://rdoc//rdoc/markdown.rb#1136 + # source://rdoc//lib/rdoc/markdown.rb#1136 def _AtxStart; end # AutoLink = (AutoLinkUrl | AutoLinkEmail) # - # source://rdoc//rdoc/markdown.rb#11574 + # source://rdoc//lib/rdoc/markdown.rb#11574 def _AutoLink; end # AutoLinkEmail = "<" "mailto:"? < /[\w+.\/!%~$-]+/i "@" (!@Newline !">" .)+ > ">" { "mailto:#{text}" } # - # source://rdoc//rdoc/markdown.rb#11707 + # source://rdoc//lib/rdoc/markdown.rb#11707 def _AutoLinkEmail; end # AutoLinkUrl = "<" < /[A-Za-z]+/ "://" (!@Newline !">" .)+ > ">" { text } # - # source://rdoc//rdoc/markdown.rb#11592 + # source://rdoc//lib/rdoc/markdown.rb#11592 def _AutoLinkUrl; end # BOM = %literals.BOM # - # source://rdoc//rdoc/markdown.rb#14719 + # source://rdoc//lib/rdoc/markdown.rb#14719 def _BOM; end # BlankLine = @Sp @Newline { "\n" } # - # source://rdoc//rdoc/markdown.rb#14148 + # source://rdoc//lib/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//rdoc/markdown.rb#939 + # source://rdoc//lib/rdoc/markdown.rb#939 def _Block; end # BlockQuote = BlockQuoteRaw:a { RDoc::Markup::BlockQuote.new(*a) } # - # source://rdoc//rdoc/markdown.rb#1566 + # source://rdoc//lib/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//rdoc/markdown.rb#1589 + # source://rdoc//lib/rdoc/markdown.rb#1589 def _BlockQuoteRaw; end # Bullet = !HorizontalRule @NonindentSpace /[+*-]/ @Spacechar+ # - # source://rdoc//rdoc/markdown.rb#2154 + # source://rdoc//lib/rdoc/markdown.rb#2154 def _Bullet; end # BulletList = &Bullet (ListTight | ListLoose):a { RDoc::Markup::List.new(:BULLET, *a) } # - # source://rdoc//rdoc/markdown.rb#2198 + # source://rdoc//lib/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//rdoc/markdown.rb#14812 + # source://rdoc//lib/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//rdoc/markdown.rb#12511 + # source://rdoc//lib/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//rdoc/markdown.rb#15681 + # source://rdoc//lib/rdoc/markdown.rb#15681 def _CodeFence; end # DecEntity = "&#" < /[0-9]+/ > ";" { [text.to_i].pack 'U' } # - # source://rdoc//rdoc/markdown.rb#14776 + # source://rdoc//lib/rdoc/markdown.rb#14776 def _DecEntity; end # DefinitionList = &{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten } # - # source://rdoc//rdoc/markdown.rb#16339 + # source://rdoc//lib/rdoc/markdown.rb#16339 def _DefinitionList; end # DefinitionListDefinition = @NonindentSpace ":" @Space Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//rdoc/markdown.rb#16482 + # source://rdoc//lib/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//rdoc/markdown.rb#16383 + # source://rdoc//lib/rdoc/markdown.rb#16383 def _DefinitionListItem; end - # DefinitionListLabel = StrChunk:label @Sp @Newline { label } + # DefinitionListLabel = Inline:label @Sp @Newline { label } # - # source://rdoc//rdoc/markdown.rb#16449 + # source://rdoc//lib/rdoc/markdown.rb#16449 def _DefinitionListLabel; end # Digit = [0-9] # - # source://rdoc//rdoc/markdown.rb#14691 + # source://rdoc//lib/rdoc/markdown.rb#14691 def _Digit; end # Doc = BOM? Block*:a { RDoc::Markup::Document.new(*a.compact) } # - # source://rdoc//rdoc/markdown.rb#899 + # source://rdoc//lib/rdoc/markdown.rb#899 def _Doc; end # Emph = (EmphStar | EmphUl) # - # source://rdoc//rdoc/markdown.rb#10283 + # source://rdoc//lib/rdoc/markdown.rb#10283 def _Emph; end # EmphStar = "*" !@Whitespace @StartList:a (!"*" Inline:b { a << b } | StrongStar:b { a << b })+ "*" { emphasis a.join } # - # source://rdoc//rdoc/markdown.rb#10319 + # source://rdoc//lib/rdoc/markdown.rb#10319 def _EmphStar; end # EmphUl = "_" !@Whitespace @StartList:a (!"_" Inline:b { a << b } | StrongUl:b { a << b })+ "_" { emphasis a.join } # - # source://rdoc//rdoc/markdown.rb#10477 + # source://rdoc//lib/rdoc/markdown.rb#10477 def _EmphUl; end # EmptyTitle = "" # - # source://rdoc//rdoc/markdown.rb#12086 + # source://rdoc//lib/rdoc/markdown.rb#12086 def _EmptyTitle; end # Endline = (@LineBreak | @TerminalEndline | @NormalEndline) # - # source://rdoc//rdoc/markdown.rb#9917 + # source://rdoc//lib/rdoc/markdown.rb#9917 def _Endline; end # Entity = (HexEntity | DecEntity | CharEntity):a { a } # - # source://rdoc//rdoc/markdown.rb#9880 + # source://rdoc//lib/rdoc/markdown.rb#9880 def _Entity; end # Enumerator = @NonindentSpace [0-9]+ "." @Spacechar+ # - # source://rdoc//rdoc/markdown.rb#2687 + # source://rdoc//lib/rdoc/markdown.rb#2687 def _Enumerator; end # Eof = !. # - # source://rdoc//rdoc/markdown.rb#14542 + # source://rdoc//lib/rdoc/markdown.rb#14542 def _Eof; end # EscapedChar = "\\" !@Newline < /[:\\`|*_{}\[\]()#+.!><-]/ > { text } # - # source://rdoc//rdoc/markdown.rb#9841 + # source://rdoc//lib/rdoc/markdown.rb#9841 def _EscapedChar; end # ExplicitLink = Label:l "(" @Sp Source:s Spnl Title @Sp ")" { "{#{l}}[#{s}]" } # - # source://rdoc//rdoc/markdown.rb#11147 + # source://rdoc//lib/rdoc/markdown.rb#11147 def _ExplicitLink; end # ExtendedSpecialChar = &{ notes? } "^" # - # source://rdoc//rdoc/markdown.rb#15184 + # source://rdoc//lib/rdoc/markdown.rb#15184 def _ExtendedSpecialChar; end # Heading = (SetextHeading | AtxHeading) # - # source://rdoc//rdoc/markdown.rb#1548 + # source://rdoc//lib/rdoc/markdown.rb#1548 def _Heading; end # HexEntity = /&#x/i < /[0-9a-fA-F]+/ > ";" { [text.to_i(16)].pack 'U' } # - # source://rdoc//rdoc/markdown.rb#14740 + # source://rdoc//lib/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//rdoc/markdown.rb#1932 + # source://rdoc//lib/rdoc/markdown.rb#1932 def _HorizontalRule; end # HtmlAnchor = HtmlOpenAnchor (HtmlAnchor | !HtmlCloseAnchor .)* HtmlCloseAnchor # - # source://rdoc//rdoc/markdown.rb#2971 + # source://rdoc//lib/rdoc/markdown.rb#2971 def _HtmlAnchor; end # HtmlAttribute = (AlphanumericAscii | "-")+ Spnl ("=" Spnl (Quoted | (!">" Nonspacechar)+))? Spnl # - # source://rdoc//rdoc/markdown.rb#14273 + # source://rdoc//lib/rdoc/markdown.rb#14273 def _HtmlAttribute; end # HtmlBlock = < (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > @BlankLine+ { if html? then RDoc::Markup::Raw.new text end } # - # source://rdoc//rdoc/markdown.rb#8768 + # source://rdoc//lib/rdoc/markdown.rb#8768 def _HtmlBlock; end # HtmlBlockAddress = HtmlBlockOpenAddress (HtmlBlockAddress | !HtmlBlockCloseAddress .)* HtmlBlockCloseAddress # - # source://rdoc//rdoc/markdown.rb#3137 + # source://rdoc//lib/rdoc/markdown.rb#3137 def _HtmlBlockAddress; end # HtmlBlockBlockquote = HtmlBlockOpenBlockquote (HtmlBlockBlockquote | !HtmlBlockCloseBlockquote .)* HtmlBlockCloseBlockquote # - # source://rdoc//rdoc/markdown.rb#3303 + # source://rdoc//lib/rdoc/markdown.rb#3303 def _HtmlBlockBlockquote; end # HtmlBlockCenter = HtmlBlockOpenCenter (HtmlBlockCenter | !HtmlBlockCloseCenter .)* HtmlBlockCloseCenter # - # source://rdoc//rdoc/markdown.rb#3469 + # source://rdoc//lib/rdoc/markdown.rb#3469 def _HtmlBlockCenter; end # HtmlBlockCloseAddress = "<" Spnl "/" ("address" | "ADDRESS") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#3085 + # source://rdoc//lib/rdoc/markdown.rb#3085 def _HtmlBlockCloseAddress; end # HtmlBlockCloseBlockquote = "<" Spnl "/" ("blockquote" | "BLOCKQUOTE") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#3251 + # source://rdoc//lib/rdoc/markdown.rb#3251 def _HtmlBlockCloseBlockquote; end # HtmlBlockCloseCenter = "<" Spnl "/" ("center" | "CENTER") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#3417 + # source://rdoc//lib/rdoc/markdown.rb#3417 def _HtmlBlockCloseCenter; end # HtmlBlockCloseDd = "<" Spnl "/" ("dd" | "DD") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#6737 + # source://rdoc//lib/rdoc/markdown.rb#6737 def _HtmlBlockCloseDd; end # HtmlBlockCloseDir = "<" Spnl "/" ("dir" | "DIR") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#3583 + # source://rdoc//lib/rdoc/markdown.rb#3583 def _HtmlBlockCloseDir; end # HtmlBlockCloseDiv = "<" Spnl "/" ("div" | "DIV") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#3749 + # source://rdoc//lib/rdoc/markdown.rb#3749 def _HtmlBlockCloseDiv; end # HtmlBlockCloseDl = "<" Spnl "/" ("dl" | "DL") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#3915 + # source://rdoc//lib/rdoc/markdown.rb#3915 def _HtmlBlockCloseDl; end # HtmlBlockCloseDt = "<" Spnl "/" ("dt" | "DT") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#6903 + # source://rdoc//lib/rdoc/markdown.rb#6903 def _HtmlBlockCloseDt; end # HtmlBlockCloseFieldset = "<" Spnl "/" ("fieldset" | "FIELDSET") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#4081 + # source://rdoc//lib/rdoc/markdown.rb#4081 def _HtmlBlockCloseFieldset; end # HtmlBlockCloseForm = "<" Spnl "/" ("form" | "FORM") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#4247 + # source://rdoc//lib/rdoc/markdown.rb#4247 def _HtmlBlockCloseForm; end # HtmlBlockCloseFrameset = "<" Spnl "/" ("frameset" | "FRAMESET") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#7069 + # source://rdoc//lib/rdoc/markdown.rb#7069 def _HtmlBlockCloseFrameset; end # HtmlBlockCloseH1 = "<" Spnl "/" ("h1" | "H1") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#4413 + # source://rdoc//lib/rdoc/markdown.rb#4413 def _HtmlBlockCloseH1; end # HtmlBlockCloseH2 = "<" Spnl "/" ("h2" | "H2") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#4579 + # source://rdoc//lib/rdoc/markdown.rb#4579 def _HtmlBlockCloseH2; end # HtmlBlockCloseH3 = "<" Spnl "/" ("h3" | "H3") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#4745 + # source://rdoc//lib/rdoc/markdown.rb#4745 def _HtmlBlockCloseH3; end # HtmlBlockCloseH4 = "<" Spnl "/" ("h4" | "H4") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#4911 + # source://rdoc//lib/rdoc/markdown.rb#4911 def _HtmlBlockCloseH4; end # HtmlBlockCloseH5 = "<" Spnl "/" ("h5" | "H5") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#5077 + # source://rdoc//lib/rdoc/markdown.rb#5077 def _HtmlBlockCloseH5; end # HtmlBlockCloseH6 = "<" Spnl "/" ("h6" | "H6") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#5243 + # source://rdoc//lib/rdoc/markdown.rb#5243 def _HtmlBlockCloseH6; end # HtmlBlockCloseHead = "<" Spnl "/" ("head" | "HEAD") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#8552 + # source://rdoc//lib/rdoc/markdown.rb#8552 def _HtmlBlockCloseHead; end # HtmlBlockCloseLi = "<" Spnl "/" ("li" | "LI") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#7235 + # source://rdoc//lib/rdoc/markdown.rb#7235 def _HtmlBlockCloseLi; end # HtmlBlockCloseMenu = "<" Spnl "/" ("menu" | "MENU") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#5409 + # source://rdoc//lib/rdoc/markdown.rb#5409 def _HtmlBlockCloseMenu; end # HtmlBlockCloseNoframes = "<" Spnl "/" ("noframes" | "NOFRAMES") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#5575 + # source://rdoc//lib/rdoc/markdown.rb#5575 def _HtmlBlockCloseNoframes; end # HtmlBlockCloseNoscript = "<" Spnl "/" ("noscript" | "NOSCRIPT") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#5741 + # source://rdoc//lib/rdoc/markdown.rb#5741 def _HtmlBlockCloseNoscript; end # HtmlBlockCloseOl = "<" Spnl "/" ("ol" | "OL") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#5907 + # source://rdoc//lib/rdoc/markdown.rb#5907 def _HtmlBlockCloseOl; end # HtmlBlockCloseP = "<" Spnl "/" ("p" | "P") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#6073 + # source://rdoc//lib/rdoc/markdown.rb#6073 def _HtmlBlockCloseP; end # HtmlBlockClosePre = "<" Spnl "/" ("pre" | "PRE") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#6239 + # source://rdoc//lib/rdoc/markdown.rb#6239 def _HtmlBlockClosePre; end # HtmlBlockCloseScript = "<" Spnl "/" ("script" | "SCRIPT") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#8397 + # source://rdoc//lib/rdoc/markdown.rb#8397 def _HtmlBlockCloseScript; end # HtmlBlockCloseTable = "<" Spnl "/" ("table" | "TABLE") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#6405 + # source://rdoc//lib/rdoc/markdown.rb#6405 def _HtmlBlockCloseTable; end # HtmlBlockCloseTbody = "<" Spnl "/" ("tbody" | "TBODY") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#7401 + # source://rdoc//lib/rdoc/markdown.rb#7401 def _HtmlBlockCloseTbody; end # HtmlBlockCloseTd = "<" Spnl "/" ("td" | "TD") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#7567 + # source://rdoc//lib/rdoc/markdown.rb#7567 def _HtmlBlockCloseTd; end # HtmlBlockCloseTfoot = "<" Spnl "/" ("tfoot" | "TFOOT") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#7733 + # source://rdoc//lib/rdoc/markdown.rb#7733 def _HtmlBlockCloseTfoot; end # HtmlBlockCloseTh = "<" Spnl "/" ("th" | "TH") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#7899 + # source://rdoc//lib/rdoc/markdown.rb#7899 def _HtmlBlockCloseTh; end # HtmlBlockCloseThead = "<" Spnl "/" ("thead" | "THEAD") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#8065 + # source://rdoc//lib/rdoc/markdown.rb#8065 def _HtmlBlockCloseThead; end # HtmlBlockCloseTr = "<" Spnl "/" ("tr" | "TR") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#8231 + # source://rdoc//lib/rdoc/markdown.rb#8231 def _HtmlBlockCloseTr; end # HtmlBlockCloseUl = "<" Spnl "/" ("ul" | "UL") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#6571 + # source://rdoc//lib/rdoc/markdown.rb#6571 def _HtmlBlockCloseUl; end # HtmlBlockDd = HtmlBlockOpenDd (HtmlBlockDd | !HtmlBlockCloseDd .)* HtmlBlockCloseDd # - # source://rdoc//rdoc/markdown.rb#6789 + # source://rdoc//lib/rdoc/markdown.rb#6789 def _HtmlBlockDd; end # HtmlBlockDir = HtmlBlockOpenDir (HtmlBlockDir | !HtmlBlockCloseDir .)* HtmlBlockCloseDir # - # source://rdoc//rdoc/markdown.rb#3635 + # source://rdoc//lib/rdoc/markdown.rb#3635 def _HtmlBlockDir; end # HtmlBlockDiv = HtmlBlockOpenDiv (HtmlBlockDiv | !HtmlBlockCloseDiv .)* HtmlBlockCloseDiv # - # source://rdoc//rdoc/markdown.rb#3801 + # source://rdoc//lib/rdoc/markdown.rb#3801 def _HtmlBlockDiv; end # HtmlBlockDl = HtmlBlockOpenDl (HtmlBlockDl | !HtmlBlockCloseDl .)* HtmlBlockCloseDl # - # source://rdoc//rdoc/markdown.rb#3967 + # source://rdoc//lib/rdoc/markdown.rb#3967 def _HtmlBlockDl; end # HtmlBlockDt = HtmlBlockOpenDt (HtmlBlockDt | !HtmlBlockCloseDt .)* HtmlBlockCloseDt # - # source://rdoc//rdoc/markdown.rb#6955 + # source://rdoc//lib/rdoc/markdown.rb#6955 def _HtmlBlockDt; end # HtmlBlockFieldset = HtmlBlockOpenFieldset (HtmlBlockFieldset | !HtmlBlockCloseFieldset .)* HtmlBlockCloseFieldset # - # source://rdoc//rdoc/markdown.rb#4133 + # source://rdoc//lib/rdoc/markdown.rb#4133 def _HtmlBlockFieldset; end # HtmlBlockForm = HtmlBlockOpenForm (HtmlBlockForm | !HtmlBlockCloseForm .)* HtmlBlockCloseForm # - # source://rdoc//rdoc/markdown.rb#4299 + # source://rdoc//lib/rdoc/markdown.rb#4299 def _HtmlBlockForm; end # HtmlBlockFrameset = HtmlBlockOpenFrameset (HtmlBlockFrameset | !HtmlBlockCloseFrameset .)* HtmlBlockCloseFrameset # - # source://rdoc//rdoc/markdown.rb#7121 + # source://rdoc//lib/rdoc/markdown.rb#7121 def _HtmlBlockFrameset; end # HtmlBlockH1 = HtmlBlockOpenH1 (HtmlBlockH1 | !HtmlBlockCloseH1 .)* HtmlBlockCloseH1 # - # source://rdoc//rdoc/markdown.rb#4465 + # source://rdoc//lib/rdoc/markdown.rb#4465 def _HtmlBlockH1; end # HtmlBlockH2 = HtmlBlockOpenH2 (HtmlBlockH2 | !HtmlBlockCloseH2 .)* HtmlBlockCloseH2 # - # source://rdoc//rdoc/markdown.rb#4631 + # source://rdoc//lib/rdoc/markdown.rb#4631 def _HtmlBlockH2; end # HtmlBlockH3 = HtmlBlockOpenH3 (HtmlBlockH3 | !HtmlBlockCloseH3 .)* HtmlBlockCloseH3 # - # source://rdoc//rdoc/markdown.rb#4797 + # source://rdoc//lib/rdoc/markdown.rb#4797 def _HtmlBlockH3; end # HtmlBlockH4 = HtmlBlockOpenH4 (HtmlBlockH4 | !HtmlBlockCloseH4 .)* HtmlBlockCloseH4 # - # source://rdoc//rdoc/markdown.rb#4963 + # source://rdoc//lib/rdoc/markdown.rb#4963 def _HtmlBlockH4; end # HtmlBlockH5 = HtmlBlockOpenH5 (HtmlBlockH5 | !HtmlBlockCloseH5 .)* HtmlBlockCloseH5 # - # source://rdoc//rdoc/markdown.rb#5129 + # source://rdoc//lib/rdoc/markdown.rb#5129 def _HtmlBlockH5; end # HtmlBlockH6 = HtmlBlockOpenH6 (HtmlBlockH6 | !HtmlBlockCloseH6 .)* HtmlBlockCloseH6 # - # source://rdoc//rdoc/markdown.rb#5295 + # source://rdoc//lib/rdoc/markdown.rb#5295 def _HtmlBlockH6; end # HtmlBlockHead = HtmlBlockOpenHead (!HtmlBlockCloseHead .)* HtmlBlockCloseHead # - # source://rdoc//rdoc/markdown.rb#8604 + # source://rdoc//lib/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//rdoc/markdown.rb#8651 + # source://rdoc//lib/rdoc/markdown.rb#8651 def _HtmlBlockInTags; end # HtmlBlockLi = HtmlBlockOpenLi (HtmlBlockLi | !HtmlBlockCloseLi .)* HtmlBlockCloseLi # - # source://rdoc//rdoc/markdown.rb#7287 + # source://rdoc//lib/rdoc/markdown.rb#7287 def _HtmlBlockLi; end # HtmlBlockMenu = HtmlBlockOpenMenu (HtmlBlockMenu | !HtmlBlockCloseMenu .)* HtmlBlockCloseMenu # - # source://rdoc//rdoc/markdown.rb#5461 + # source://rdoc//lib/rdoc/markdown.rb#5461 def _HtmlBlockMenu; end # HtmlBlockNoframes = HtmlBlockOpenNoframes (HtmlBlockNoframes | !HtmlBlockCloseNoframes .)* HtmlBlockCloseNoframes # - # source://rdoc//rdoc/markdown.rb#5627 + # source://rdoc//lib/rdoc/markdown.rb#5627 def _HtmlBlockNoframes; end # HtmlBlockNoscript = HtmlBlockOpenNoscript (HtmlBlockNoscript | !HtmlBlockCloseNoscript .)* HtmlBlockCloseNoscript # - # source://rdoc//rdoc/markdown.rb#5793 + # source://rdoc//lib/rdoc/markdown.rb#5793 def _HtmlBlockNoscript; end # HtmlBlockOl = HtmlBlockOpenOl (HtmlBlockOl | !HtmlBlockCloseOl .)* HtmlBlockCloseOl # - # source://rdoc//rdoc/markdown.rb#5959 + # source://rdoc//lib/rdoc/markdown.rb#5959 def _HtmlBlockOl; end # HtmlBlockOpenAddress = "<" Spnl ("address" | "ADDRESS") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#3029 + # source://rdoc//lib/rdoc/markdown.rb#3029 def _HtmlBlockOpenAddress; end # HtmlBlockOpenBlockquote = "<" Spnl ("blockquote" | "BLOCKQUOTE") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#3195 + # source://rdoc//lib/rdoc/markdown.rb#3195 def _HtmlBlockOpenBlockquote; end # HtmlBlockOpenCenter = "<" Spnl ("center" | "CENTER") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#3361 + # source://rdoc//lib/rdoc/markdown.rb#3361 def _HtmlBlockOpenCenter; end # HtmlBlockOpenDd = "<" Spnl ("dd" | "DD") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#6681 + # source://rdoc//lib/rdoc/markdown.rb#6681 def _HtmlBlockOpenDd; end # HtmlBlockOpenDir = "<" Spnl ("dir" | "DIR") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#3527 + # source://rdoc//lib/rdoc/markdown.rb#3527 def _HtmlBlockOpenDir; end # HtmlBlockOpenDiv = "<" Spnl ("div" | "DIV") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#3693 + # source://rdoc//lib/rdoc/markdown.rb#3693 def _HtmlBlockOpenDiv; end # HtmlBlockOpenDl = "<" Spnl ("dl" | "DL") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#3859 + # source://rdoc//lib/rdoc/markdown.rb#3859 def _HtmlBlockOpenDl; end # HtmlBlockOpenDt = "<" Spnl ("dt" | "DT") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#6847 + # source://rdoc//lib/rdoc/markdown.rb#6847 def _HtmlBlockOpenDt; end # HtmlBlockOpenFieldset = "<" Spnl ("fieldset" | "FIELDSET") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#4025 + # source://rdoc//lib/rdoc/markdown.rb#4025 def _HtmlBlockOpenFieldset; end # HtmlBlockOpenForm = "<" Spnl ("form" | "FORM") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#4191 + # source://rdoc//lib/rdoc/markdown.rb#4191 def _HtmlBlockOpenForm; end # HtmlBlockOpenFrameset = "<" Spnl ("frameset" | "FRAMESET") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#7013 + # source://rdoc//lib/rdoc/markdown.rb#7013 def _HtmlBlockOpenFrameset; end # HtmlBlockOpenH1 = "<" Spnl ("h1" | "H1") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#4357 + # source://rdoc//lib/rdoc/markdown.rb#4357 def _HtmlBlockOpenH1; end # HtmlBlockOpenH2 = "<" Spnl ("h2" | "H2") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#4523 + # source://rdoc//lib/rdoc/markdown.rb#4523 def _HtmlBlockOpenH2; end # HtmlBlockOpenH3 = "<" Spnl ("h3" | "H3") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#4689 + # source://rdoc//lib/rdoc/markdown.rb#4689 def _HtmlBlockOpenH3; end # HtmlBlockOpenH4 = "<" Spnl ("h4" | "H4") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#4855 + # source://rdoc//lib/rdoc/markdown.rb#4855 def _HtmlBlockOpenH4; end # HtmlBlockOpenH5 = "<" Spnl ("h5" | "H5") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#5021 + # source://rdoc//lib/rdoc/markdown.rb#5021 def _HtmlBlockOpenH5; end # HtmlBlockOpenH6 = "<" Spnl ("h6" | "H6") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#5187 + # source://rdoc//lib/rdoc/markdown.rb#5187 def _HtmlBlockOpenH6; end # HtmlBlockOpenHead = "<" Spnl ("head" | "HEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#8496 + # source://rdoc//lib/rdoc/markdown.rb#8496 def _HtmlBlockOpenHead; end # HtmlBlockOpenLi = "<" Spnl ("li" | "LI") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#7179 + # source://rdoc//lib/rdoc/markdown.rb#7179 def _HtmlBlockOpenLi; end # HtmlBlockOpenMenu = "<" Spnl ("menu" | "MENU") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#5353 + # source://rdoc//lib/rdoc/markdown.rb#5353 def _HtmlBlockOpenMenu; end # HtmlBlockOpenNoframes = "<" Spnl ("noframes" | "NOFRAMES") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#5519 + # source://rdoc//lib/rdoc/markdown.rb#5519 def _HtmlBlockOpenNoframes; end # HtmlBlockOpenNoscript = "<" Spnl ("noscript" | "NOSCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#5685 + # source://rdoc//lib/rdoc/markdown.rb#5685 def _HtmlBlockOpenNoscript; end # HtmlBlockOpenOl = "<" Spnl ("ol" | "OL") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#5851 + # source://rdoc//lib/rdoc/markdown.rb#5851 def _HtmlBlockOpenOl; end # HtmlBlockOpenP = "<" Spnl ("p" | "P") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#6017 + # source://rdoc//lib/rdoc/markdown.rb#6017 def _HtmlBlockOpenP; end # HtmlBlockOpenPre = "<" Spnl ("pre" | "PRE") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#6183 + # source://rdoc//lib/rdoc/markdown.rb#6183 def _HtmlBlockOpenPre; end # HtmlBlockOpenScript = "<" Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#8341 + # source://rdoc//lib/rdoc/markdown.rb#8341 def _HtmlBlockOpenScript; end # HtmlBlockOpenTable = "<" Spnl ("table" | "TABLE") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#6349 + # source://rdoc//lib/rdoc/markdown.rb#6349 def _HtmlBlockOpenTable; end # HtmlBlockOpenTbody = "<" Spnl ("tbody" | "TBODY") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#7345 + # source://rdoc//lib/rdoc/markdown.rb#7345 def _HtmlBlockOpenTbody; end # HtmlBlockOpenTd = "<" Spnl ("td" | "TD") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#7511 + # source://rdoc//lib/rdoc/markdown.rb#7511 def _HtmlBlockOpenTd; end # HtmlBlockOpenTfoot = "<" Spnl ("tfoot" | "TFOOT") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#7677 + # source://rdoc//lib/rdoc/markdown.rb#7677 def _HtmlBlockOpenTfoot; end # HtmlBlockOpenTh = "<" Spnl ("th" | "TH") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#7843 + # source://rdoc//lib/rdoc/markdown.rb#7843 def _HtmlBlockOpenTh; end # HtmlBlockOpenThead = "<" Spnl ("thead" | "THEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#8009 + # source://rdoc//lib/rdoc/markdown.rb#8009 def _HtmlBlockOpenThead; end # HtmlBlockOpenTr = "<" Spnl ("tr" | "TR") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#8175 + # source://rdoc//lib/rdoc/markdown.rb#8175 def _HtmlBlockOpenTr; end # HtmlBlockOpenUl = "<" Spnl ("ul" | "UL") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#6515 + # source://rdoc//lib/rdoc/markdown.rb#6515 def _HtmlBlockOpenUl; end # HtmlBlockP = HtmlBlockOpenP (HtmlBlockP | !HtmlBlockCloseP .)* HtmlBlockCloseP # - # source://rdoc//rdoc/markdown.rb#6125 + # source://rdoc//lib/rdoc/markdown.rb#6125 def _HtmlBlockP; end # HtmlBlockPre = HtmlBlockOpenPre (HtmlBlockPre | !HtmlBlockClosePre .)* HtmlBlockClosePre # - # source://rdoc//rdoc/markdown.rb#6291 + # source://rdoc//lib/rdoc/markdown.rb#6291 def _HtmlBlockPre; end # HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript # - # source://rdoc//rdoc/markdown.rb#8449 + # source://rdoc//lib/rdoc/markdown.rb#8449 def _HtmlBlockScript; end # HtmlBlockSelfClosing = "<" Spnl HtmlBlockType Spnl HtmlAttribute* "/" Spnl ">" # - # source://rdoc//rdoc/markdown.rb#8896 + # source://rdoc//lib/rdoc/markdown.rb#8896 def _HtmlBlockSelfClosing; end # HtmlBlockTable = HtmlBlockOpenTable (HtmlBlockTable | !HtmlBlockCloseTable .)* HtmlBlockCloseTable # - # source://rdoc//rdoc/markdown.rb#6457 + # source://rdoc//lib/rdoc/markdown.rb#6457 def _HtmlBlockTable; end # HtmlBlockTbody = HtmlBlockOpenTbody (HtmlBlockTbody | !HtmlBlockCloseTbody .)* HtmlBlockCloseTbody # - # source://rdoc//rdoc/markdown.rb#7453 + # source://rdoc//lib/rdoc/markdown.rb#7453 def _HtmlBlockTbody; end # HtmlBlockTd = HtmlBlockOpenTd (HtmlBlockTd | !HtmlBlockCloseTd .)* HtmlBlockCloseTd # - # source://rdoc//rdoc/markdown.rb#7619 + # source://rdoc//lib/rdoc/markdown.rb#7619 def _HtmlBlockTd; end # HtmlBlockTfoot = HtmlBlockOpenTfoot (HtmlBlockTfoot | !HtmlBlockCloseTfoot .)* HtmlBlockCloseTfoot # - # source://rdoc//rdoc/markdown.rb#7785 + # source://rdoc//lib/rdoc/markdown.rb#7785 def _HtmlBlockTfoot; end # HtmlBlockTh = HtmlBlockOpenTh (HtmlBlockTh | !HtmlBlockCloseTh .)* HtmlBlockCloseTh # - # source://rdoc//rdoc/markdown.rb#7951 + # source://rdoc//lib/rdoc/markdown.rb#7951 def _HtmlBlockTh; end # HtmlBlockThead = HtmlBlockOpenThead (HtmlBlockThead | !HtmlBlockCloseThead .)* HtmlBlockCloseThead # - # source://rdoc//rdoc/markdown.rb#8117 + # source://rdoc//lib/rdoc/markdown.rb#8117 def _HtmlBlockThead; end # HtmlBlockTr = HtmlBlockOpenTr (HtmlBlockTr | !HtmlBlockCloseTr .)* HtmlBlockCloseTr # - # source://rdoc//rdoc/markdown.rb#8283 + # source://rdoc//lib/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//rdoc/markdown.rb#8951 + # source://rdoc//lib/rdoc/markdown.rb#8951 def _HtmlBlockType; end # HtmlBlockUl = HtmlBlockOpenUl (HtmlBlockUl | !HtmlBlockCloseUl .)* HtmlBlockCloseUl # - # source://rdoc//rdoc/markdown.rb#6623 + # source://rdoc//lib/rdoc/markdown.rb#6623 def _HtmlBlockUl; end # HtmlCloseAnchor = "<" Spnl "/" ("a" | "A") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#2919 + # source://rdoc//lib/rdoc/markdown.rb#2919 def _HtmlCloseAnchor; end # HtmlComment = "" .)* "-->" # - # source://rdoc//rdoc/markdown.rb#14415 + # source://rdoc//lib/rdoc/markdown.rb#14415 def _HtmlComment; end # HtmlOpenAnchor = "<" Spnl ("a" | "A") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#2863 + # source://rdoc//lib/rdoc/markdown.rb#2863 def _HtmlOpenAnchor; end # HtmlTag = "<" Spnl "/"? AlphanumericAscii+ Spnl HtmlAttribute* "/"? Spnl ">" # - # source://rdoc//rdoc/markdown.rb#14462 + # source://rdoc//lib/rdoc/markdown.rb#14462 def _HtmlTag; end # HtmlUnclosed = "<" Spnl HtmlUnclosedType Spnl HtmlAttribute* Spnl ">" # - # source://rdoc//rdoc/markdown.rb#8828 + # source://rdoc//lib/rdoc/markdown.rb#8828 def _HtmlUnclosed; end # HtmlUnclosedType = ("HR" | "hr") # - # source://rdoc//rdoc/markdown.rb#8878 + # source://rdoc//lib/rdoc/markdown.rb#8878 def _HtmlUnclosedType; end # Image = "!" (ExplicitLink | ReferenceLink):a { "rdoc-image:#{a[/\[(.*)\]/, 1]}" } # - # source://rdoc//rdoc/markdown.rb#10972 + # source://rdoc//lib/rdoc/markdown.rb#10972 def _Image; end # InStyleTags = StyleOpen (!StyleClose .)* StyleClose # - # source://rdoc//rdoc/markdown.rb#9281 + # source://rdoc//lib/rdoc/markdown.rb#9281 def _InStyleTags; end # Indent = /\t| / # - # source://rdoc//rdoc/markdown.rb#14860 + # source://rdoc//lib/rdoc/markdown.rb#14860 def _Indent; end # IndentedLine = Indent Line # - # source://rdoc//rdoc/markdown.rb#14867 + # source://rdoc//lib/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//rdoc/markdown.rb#9586 + # source://rdoc//lib/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//rdoc/markdown.rb#15431 + # source://rdoc//lib/rdoc/markdown.rb#15431 def _InlineNote; end # Inlines = (!@Endline Inline:i { i } | @Endline:c !(&{ github? } Ticks3 /[^`\n]*$/) &Inline { c })+:chunks @Endline? { chunks } # - # source://rdoc//rdoc/markdown.rb#9365 + # source://rdoc//lib/rdoc/markdown.rb#9365 def _Inlines; end # Label = "[" (!"^" &{ notes? } | &. &{ !notes? }) @StartList:a (!"]" Inline:l { a << l })* "]" { a.join.gsub(/\s+/, ' ') } # - # source://rdoc//rdoc/markdown.rb#11907 + # source://rdoc//lib/rdoc/markdown.rb#11907 def _Label; end # Line = @RawLine:a { a } # - # source://rdoc//rdoc/markdown.rb#14938 + # source://rdoc//lib/rdoc/markdown.rb#14938 def _Line; end # LineBreak = " " @NormalEndline { RDoc::Markup::HardBreak.new } # - # source://rdoc//rdoc/markdown.rb#10042 + # source://rdoc//lib/rdoc/markdown.rb#10042 def _LineBreak; end # Link = (ExplicitLink | ReferenceLink | AutoLink) # - # source://rdoc//rdoc/markdown.rb#11011 + # source://rdoc//lib/rdoc/markdown.rb#11011 def _Link; end # ListBlock = !@BlankLine Line:a ListBlockLine*:c { [a, *c] } # - # source://rdoc//rdoc/markdown.rb#2548 + # source://rdoc//lib/rdoc/markdown.rb#2548 def _ListBlock; end # ListBlockLine = !@BlankLine !(Indent? (Bullet | Enumerator)) !HorizontalRule OptionallyIndentedLine # - # source://rdoc//rdoc/markdown.rb#2793 + # source://rdoc//lib/rdoc/markdown.rb#2793 def _ListBlockLine; end # ListContinuationBlock = @StartList:a @BlankLine* { a << "\n" } (Indent ListBlock:b { a.concat b })+ { a } # - # source://rdoc//rdoc/markdown.rb#2592 + # source://rdoc//lib/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//rdoc/markdown.rb#2392 + # source://rdoc//lib/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//rdoc/markdown.rb#2468 + # source://rdoc//lib/rdoc/markdown.rb#2468 def _ListItemTight; end # ListLoose = @StartList:a (ListItem:b @BlankLine* { a << b })+ { a } # - # source://rdoc//rdoc/markdown.rb#2304 + # source://rdoc//lib/rdoc/markdown.rb#2304 def _ListLoose; end # ListTight = ListItemTight+:a @BlankLine* !(Bullet | Enumerator) { a } # - # source://rdoc//rdoc/markdown.rb#2239 + # source://rdoc//lib/rdoc/markdown.rb#2239 def _ListTight; end # Newline = %literals.Newline # - # source://rdoc//rdoc/markdown.rb#14726 + # source://rdoc//lib/rdoc/markdown.rb#14726 def _Newline; end # NonblankIndentedLine = !@BlankLine IndentedLine # - # source://rdoc//rdoc/markdown.rb#1821 + # source://rdoc//lib/rdoc/markdown.rb#1821 def _NonblankIndentedLine; end # NonindentSpace = / {0,3}/ # - # source://rdoc//rdoc/markdown.rb#14853 + # source://rdoc//lib/rdoc/markdown.rb#14853 def _NonindentSpace; end # Nonspacechar = !@Spacechar !@Newline . # - # source://rdoc//rdoc/markdown.rb#14552 + # source://rdoc//lib/rdoc/markdown.rb#14552 def _Nonspacechar; end # NormalChar = !(@SpecialChar | @Spacechar | @Newline) . # - # source://rdoc//rdoc/markdown.rb#14653 + # source://rdoc//lib/rdoc/markdown.rb#14653 def _NormalChar; end # NormalEndline = @Sp @Newline !@BlankLine !">" !AtxStart !(Line /={1,}|-{1,}/ @Newline) { "\n" } # - # source://rdoc//rdoc/markdown.rb#9938 + # source://rdoc//lib/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//rdoc/markdown.rb#15333 + # source://rdoc//lib/rdoc/markdown.rb#15333 def _Note; end # NoteReference = &{ notes? } RawNoteReference:ref { note_for ref } # - # source://rdoc//rdoc/markdown.rb#15207 + # source://rdoc//lib/rdoc/markdown.rb#15207 def _NoteReference; end # Notes = (Note | SkipBlock)* # - # source://rdoc//rdoc/markdown.rb#15538 + # source://rdoc//lib/rdoc/markdown.rb#15538 def _Notes; end # OptionallyIndentedLine = Indent? Line # - # source://rdoc//rdoc/markdown.rb#14888 + # source://rdoc//lib/rdoc/markdown.rb#14888 def _OptionallyIndentedLine; end # OrderedList = &Enumerator (ListTight | ListLoose):a { RDoc::Markup::List.new(:NUMBER, *a) } # - # source://rdoc//rdoc/markdown.rb#2752 + # source://rdoc//lib/rdoc/markdown.rb#2752 def _OrderedList; end # Para = @NonindentSpace Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//rdoc/markdown.rb#1014 + # source://rdoc//lib/rdoc/markdown.rb#1014 def _Para; end # Plain = Inlines:a { paragraph a } # - # source://rdoc//rdoc/markdown.rb#1057 + # source://rdoc//lib/rdoc/markdown.rb#1057 def _Plain; end # Quoted = ("\"" (!"\"" .)* "\"" | "'" (!"'" .)* "'") # - # source://rdoc//rdoc/markdown.rb#14175 + # source://rdoc//lib/rdoc/markdown.rb#14175 def _Quoted; end # RawHtml = < (HtmlComment | HtmlBlockScript | HtmlTag) > { if html? then text else '' end } # - # source://rdoc//rdoc/markdown.rb#14108 + # source://rdoc//lib/rdoc/markdown.rb#14108 def _RawHtml; end # RawLine = (< /[^\r\n]*/ @Newline > | < .+ > @Eof) { text } # - # source://rdoc//rdoc/markdown.rb#14961 + # source://rdoc//lib/rdoc/markdown.rb#14961 def _RawLine; end # RawNoteBlock = @StartList:a (!@BlankLine !RawNoteReference OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a } # - # source://rdoc//rdoc/markdown.rb#15560 + # source://rdoc//lib/rdoc/markdown.rb#15560 def _RawNoteBlock; end # RawNoteReference = "[^" < (!@Newline !"]" .)+ > "]" { text } # - # source://rdoc//rdoc/markdown.rb#15237 + # source://rdoc//lib/rdoc/markdown.rb#15237 def _RawNoteReference; end # RefSrc = < Nonspacechar+ > { text } # - # source://rdoc//rdoc/markdown.rb#12026 + # source://rdoc//lib/rdoc/markdown.rb#12026 def _RefSrc; end # RefTitle = (RefTitleSingle | RefTitleDouble | RefTitleParens | EmptyTitle) # - # source://rdoc//rdoc/markdown.rb#12062 + # source://rdoc//lib/rdoc/markdown.rb#12062 def _RefTitle; end # RefTitleDouble = Spnl "\"" < (!("\"" @Sp @Newline | @Newline) .)* > "\"" { text } # - # source://rdoc//rdoc/markdown.rb#12185 + # source://rdoc//lib/rdoc/markdown.rb#12185 def _RefTitleDouble; end # RefTitleParens = Spnl "(" < (!(")" @Sp @Newline | @Newline) .)* > ")" { text } # - # source://rdoc//rdoc/markdown.rb#12277 + # source://rdoc//lib/rdoc/markdown.rb#12277 def _RefTitleParens; end # RefTitleSingle = Spnl "'" < (!("'" @Sp @Newline | @Newline) .)* > "'" { text } # - # source://rdoc//rdoc/markdown.rb#12093 + # source://rdoc//lib/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//rdoc/markdown.rb#11832 + # source://rdoc//lib/rdoc/markdown.rb#11832 def _Reference; end # ReferenceLink = (ReferenceLinkDouble | ReferenceLinkSingle) # - # source://rdoc//rdoc/markdown.rb#11032 + # source://rdoc//lib/rdoc/markdown.rb#11032 def _ReferenceLink; end # ReferenceLinkDouble = Label:content < Spnl > !"[]" Label:label { link_to content, label, text } # - # source://rdoc//rdoc/markdown.rb#11050 + # source://rdoc//lib/rdoc/markdown.rb#11050 def _ReferenceLinkDouble; end # ReferenceLinkSingle = Label:content < (Spnl "[]")? > { link_to content, content, text } # - # source://rdoc//rdoc/markdown.rb#11096 + # source://rdoc//lib/rdoc/markdown.rb#11096 def _ReferenceLinkSingle; end # References = (Reference | SkipBlock)* # - # source://rdoc//rdoc/markdown.rb#12369 + # source://rdoc//lib/rdoc/markdown.rb#12369 def _References; end # SetextBottom1 = /={1,}/ @Newline # - # source://rdoc//rdoc/markdown.rb#1262 + # source://rdoc//lib/rdoc/markdown.rb#1262 def _SetextBottom1; end # SetextBottom2 = /-{1,}/ @Newline # - # source://rdoc//rdoc/markdown.rb#1283 + # source://rdoc//lib/rdoc/markdown.rb#1283 def _SetextBottom2; end # SetextHeading = (SetextHeading1 | SetextHeading2) # - # source://rdoc//rdoc/markdown.rb#1244 + # source://rdoc//lib/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//rdoc/markdown.rb#1304 + # source://rdoc//lib/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//rdoc/markdown.rb#1426 + # source://rdoc//lib/rdoc/markdown.rb#1426 def _SetextHeading2; end # SkipBlock = (HtmlBlock | (!"#" !SetextBottom1 !SetextBottom2 !@BlankLine @RawLine)+ @BlankLine* | @BlankLine+ | @RawLine) # - # source://rdoc//rdoc/markdown.rb#15040 + # source://rdoc//lib/rdoc/markdown.rb#15040 def _SkipBlock; end # Source = ("<" < SourceContents > ">" | < SourceContents >) { text } # - # source://rdoc//rdoc/markdown.rb#11206 + # source://rdoc//lib/rdoc/markdown.rb#11206 def _Source; end # SourceContents = ((!"(" !")" !">" Nonspacechar)+ | "(" SourceContents ")")* # - # source://rdoc//rdoc/markdown.rb#11266 + # source://rdoc//lib/rdoc/markdown.rb#11266 def _SourceContents; end # Sp = @Spacechar* # - # source://rdoc//rdoc/markdown.rb#14584 + # source://rdoc//lib/rdoc/markdown.rb#14584 def _Sp; end # Space = @Spacechar+ { " " } # - # source://rdoc//rdoc/markdown.rb#9646 + # source://rdoc//lib/rdoc/markdown.rb#9646 def _Space; end # Spacechar = %literals.Spacechar # - # source://rdoc//rdoc/markdown.rb#14733 + # source://rdoc//lib/rdoc/markdown.rb#14733 def _Spacechar; end # SpecialChar = (/[~*_`&\[\]() { text } | < @Spacechar /\*+/ &@Spacechar > { text }) # - # source://rdoc//rdoc/markdown.rb#10129 + # source://rdoc//lib/rdoc/markdown.rb#10129 def _StarLine; end # StartList = &. { [] } # - # source://rdoc//rdoc/markdown.rb#14914 + # source://rdoc//lib/rdoc/markdown.rb#14914 def _StartList; end # Str = @StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a } # - # source://rdoc//rdoc/markdown.rb#9678 + # source://rdoc//lib/rdoc/markdown.rb#9678 def _Str; end # StrChunk = < (@NormalChar | /_+/ &Alphanumeric)+ > { text } # - # source://rdoc//rdoc/markdown.rb#9751 + # source://rdoc//lib/rdoc/markdown.rb#9751 def _StrChunk; end # Strike = &{ strike? } "~~" !@Whitespace @StartList:a (!"~~" Inline:b { a << b })+ "~~" { strike a.join } # - # source://rdoc//rdoc/markdown.rb#10861 + # source://rdoc//lib/rdoc/markdown.rb#10861 def _Strike; end # Strong = (StrongStar | StrongUl) # - # source://rdoc//rdoc/markdown.rb#10635 + # source://rdoc//lib/rdoc/markdown.rb#10635 def _Strong; end # StrongStar = "**" !@Whitespace @StartList:a (!"**" Inline:b { a << b })+ "**" { strong a.join } # - # source://rdoc//rdoc/markdown.rb#10653 + # source://rdoc//lib/rdoc/markdown.rb#10653 def _StrongStar; end # StrongUl = "__" !@Whitespace @StartList:a (!"__" Inline:b { a << b })+ "__" { strong a.join } # - # source://rdoc//rdoc/markdown.rb#10757 + # source://rdoc//lib/rdoc/markdown.rb#10757 def _StrongUl; end # StyleBlock = < InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end } # - # source://rdoc//rdoc/markdown.rb#9328 + # source://rdoc//lib/rdoc/markdown.rb#9328 def _StyleBlock; end # StyleClose = "<" Spnl "/" ("style" | "STYLE") Spnl ">" # - # source://rdoc//rdoc/markdown.rb#9229 + # source://rdoc//lib/rdoc/markdown.rb#9229 def _StyleClose; end # StyleOpen = "<" Spnl ("style" | "STYLE") Spnl HtmlAttribute* ">" # - # source://rdoc//rdoc/markdown.rb#9173 + # source://rdoc//lib/rdoc/markdown.rb#9173 def _StyleOpen; end # Symbol = < @SpecialChar > { text } # - # source://rdoc//rdoc/markdown.rb#10069 + # source://rdoc//lib/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//rdoc/markdown.rb#15937 + # source://rdoc//lib/rdoc/markdown.rb#15937 def _Table; end # TableAlign = < /:?-+:?/ > @Sp { text.start_with?(":") ? (text.end_with?(":") ? :center : :left) : (text.end_with?(":") ? :right : nil) } # - # source://rdoc//rdoc/markdown.rb#16304 + # source://rdoc//lib/rdoc/markdown.rb#16304 def _TableAlign; end # TableAlign2 = "|" @Sp TableAlign # - # source://rdoc//rdoc/markdown.rb#16278 + # source://rdoc//lib/rdoc/markdown.rb#16278 def _TableAlign2; end # TableHead = TableItem2+:items "|"? @Newline { items } # - # source://rdoc//rdoc/markdown.rb#15993 + # source://rdoc//lib/rdoc/markdown.rb#15993 def _TableHead; end # TableItem = < /(?:\\.|[^|\n])+/ > { text.strip.gsub(/\\(.)/, '\1') } # - # source://rdoc//rdoc/markdown.rb#16159 + # source://rdoc//lib/rdoc/markdown.rb#16159 def _TableItem; end # TableItem2 = "|" TableItem # - # source://rdoc//rdoc/markdown.rb#16138 + # source://rdoc//lib/rdoc/markdown.rb#16138 def _TableItem2; end # TableLine = ((TableAlign:align1 TableAlign2*:aligns {[align1, *aligns] }):line | TableAlign2+:line) "|"? @Newline { line } # - # source://rdoc//rdoc/markdown.rb#16185 + # source://rdoc//lib/rdoc/markdown.rb#16185 def _TableLine; end # TableRow = ((TableItem:item1 TableItem2*:items { [item1, *items] }):row | TableItem2+:row) "|"? @Newline { row } # - # source://rdoc//rdoc/markdown.rb#16045 + # source://rdoc//lib/rdoc/markdown.rb#16045 def _TableRow; end # TerminalEndline = @Sp @Newline @Eof # - # source://rdoc//rdoc/markdown.rb#10016 + # source://rdoc//lib/rdoc/markdown.rb#10016 def _TerminalEndline; end # Ticks1 = "`" !"`" # - # source://rdoc//rdoc/markdown.rb#12391 + # source://rdoc//lib/rdoc/markdown.rb#12391 def _Ticks1; end # Ticks2 = "``" !"`" # - # source://rdoc//rdoc/markdown.rb#12415 + # source://rdoc//lib/rdoc/markdown.rb#12415 def _Ticks2; end # Ticks3 = "```" !"`" # - # source://rdoc//rdoc/markdown.rb#12439 + # source://rdoc//lib/rdoc/markdown.rb#12439 def _Ticks3; end # Ticks4 = "````" !"`" # - # source://rdoc//rdoc/markdown.rb#12463 + # source://rdoc//lib/rdoc/markdown.rb#12463 def _Ticks4; end # Ticks5 = "`````" !"`" # - # source://rdoc//rdoc/markdown.rb#12487 + # source://rdoc//lib/rdoc/markdown.rb#12487 def _Ticks5; end # Title = (TitleSingle | TitleDouble | ""):a { a } # - # source://rdoc//rdoc/markdown.rb#11383 + # source://rdoc//lib/rdoc/markdown.rb#11383 def _Title; end # TitleDouble = "\"" (!("\"" @Sp (")" | @Newline)) .)* "\"" # - # source://rdoc//rdoc/markdown.rb#11497 + # source://rdoc//lib/rdoc/markdown.rb#11497 def _TitleDouble; end # TitleSingle = "'" (!("'" @Sp (")" | @Newline)) .)* "'" # - # source://rdoc//rdoc/markdown.rb#11420 + # source://rdoc//lib/rdoc/markdown.rb#11420 def _TitleSingle; end # UlLine = (< /_{4,}/ > { text } | < @Spacechar /_+/ &@Spacechar > { text }) # - # source://rdoc//rdoc/markdown.rb#10206 + # source://rdoc//lib/rdoc/markdown.rb#10206 def _UlLine; end # UlOrStarLine = (UlLine | StarLine):a { a } # - # source://rdoc//rdoc/markdown.rb#10095 + # source://rdoc//lib/rdoc/markdown.rb#10095 def _UlOrStarLine; end # Verbatim = VerbatimChunk+:a { RDoc::Markup::Verbatim.new(*a.flatten) } # - # source://rdoc//rdoc/markdown.rb#1895 + # source://rdoc//lib/rdoc/markdown.rb#1895 def _Verbatim; end # VerbatimChunk = @BlankLine*:a NonblankIndentedLine+:b { a.concat b } # - # source://rdoc//rdoc/markdown.rb#1845 + # source://rdoc//lib/rdoc/markdown.rb#1845 def _VerbatimChunk; end # Whitespace = (@Spacechar | @Newline) # - # source://rdoc//rdoc/markdown.rb#10301 + # source://rdoc//lib/rdoc/markdown.rb#10301 def _Whitespace; end # root = Doc # - # source://rdoc//rdoc/markdown.rb#892 + # source://rdoc//lib/rdoc/markdown.rb#892 def _root; end - # source://rdoc//rdoc/markdown.rb#502 + # source://rdoc//lib/rdoc/markdown.rb#502 def apply(rule); end - # source://rdoc//rdoc/markdown.rb#468 + # source://rdoc//lib/rdoc/markdown.rb#468 def apply_with_args(rule, *args); end - # source://rdoc//rdoc/markdown.rb#610 + # source://rdoc//lib/rdoc/markdown.rb#610 def break_on_newline=(enable); end - # source://rdoc//rdoc/markdown.rb#606 + # source://rdoc//lib/rdoc/markdown.rb#606 def break_on_newline?; end - # source://rdoc//rdoc/markdown.rb#610 + # source://rdoc//lib/rdoc/markdown.rb#610 def css=(enable); end - # source://rdoc//rdoc/markdown.rb#606 + # source://rdoc//lib/rdoc/markdown.rb#606 def css?; end - # source://rdoc//rdoc/markdown.rb#250 + # source://rdoc//lib/rdoc/markdown.rb#250 def current_character(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown.rb#211 + # source://rdoc//lib/rdoc/markdown.rb#211 def current_column(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown.rb#234 + # source://rdoc//lib/rdoc/markdown.rb#234 def current_line(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown.rb#259 + # source://rdoc//lib/rdoc/markdown.rb#259 def current_pos_info(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown.rb#610 + # source://rdoc//lib/rdoc/markdown.rb#610 def definition_lists=(enable); end - # source://rdoc//rdoc/markdown.rb#606 + # source://rdoc//lib/rdoc/markdown.rb#606 def definition_lists?; end # Wraps `text` in emphasis for rdoc inline formatting # - # source://rdoc//rdoc/markdown.rb#683 + # source://rdoc//lib/rdoc/markdown.rb#683 def emphasis(text); end # :category: Extensions # # Enables or disables the extension with `name` # - # source://rdoc//rdoc/markdown.rb#705 + # source://rdoc//lib/rdoc/markdown.rb#705 def extension(name, enable); end # :category: Extensions @@ -4078,65 +4122,65 @@ class RDoc::Markdown # # @return [Boolean] # - # source://rdoc//rdoc/markdown.rb#696 + # source://rdoc//lib/rdoc/markdown.rb#696 def extension?(name); end - # source://rdoc//rdoc/markdown.rb#449 + # source://rdoc//lib/rdoc/markdown.rb#449 def external_invoke(other, rule, *args); end # Returns the value of attribute failed_rule. # - # source://rdoc//rdoc/markdown.rb#371 + # source://rdoc//lib/rdoc/markdown.rb#371 def failed_rule; end # Returns the value of attribute failing_rule_offset. # - # source://rdoc//rdoc/markdown.rb#208 + # source://rdoc//lib/rdoc/markdown.rb#208 def failing_rule_offset; end - # source://rdoc//rdoc/markdown.rb#318 + # source://rdoc//lib/rdoc/markdown.rb#318 def failure_caret; end - # source://rdoc//rdoc/markdown.rb#323 + # source://rdoc//lib/rdoc/markdown.rb#323 def failure_character; end - # source://rdoc//rdoc/markdown.rb#306 + # source://rdoc//lib/rdoc/markdown.rb#306 def failure_info; end - # source://rdoc//rdoc/markdown.rb#327 + # source://rdoc//lib/rdoc/markdown.rb#327 def failure_oneline; end - # source://rdoc//rdoc/markdown.rb#393 + # source://rdoc//lib/rdoc/markdown.rb#393 def get_byte; end - # source://rdoc//rdoc/markdown.rb#271 + # source://rdoc//lib/rdoc/markdown.rb#271 def get_line(no); end - # source://rdoc//rdoc/markdown.rb#285 + # source://rdoc//lib/rdoc/markdown.rb#285 def get_text(start); end - # source://rdoc//rdoc/markdown.rb#610 + # source://rdoc//lib/rdoc/markdown.rb#610 def github=(enable); end - # source://rdoc//rdoc/markdown.rb#606 + # source://rdoc//lib/rdoc/markdown.rb#606 def github?; end - # source://rdoc//rdoc/markdown.rb#535 + # source://rdoc//lib/rdoc/markdown.rb#535 def grow_lr(rule, args, start_pos, m); end - # source://rdoc//rdoc/markdown.rb#610 + # source://rdoc//lib/rdoc/markdown.rb#610 def html=(enable); end - # source://rdoc//rdoc/markdown.rb#606 + # source://rdoc//lib/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//rdoc/markdown.rb#717 + # source://rdoc//lib/rdoc/markdown.rb#717 def inner_parse(text); end - # source://rdoc//rdoc/markdown.rb#267 + # source://rdoc//lib/rdoc/markdown.rb#267 def lines; end # Finds a link reference for `label` and creates a new link to it with @@ -4146,136 +4190,136 @@ class RDoc::Markdown # # @raise [ParseError] # - # source://rdoc//rdoc/markdown.rb#737 + # source://rdoc//lib/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//rdoc/markdown.rb#754 + # source://rdoc//lib/rdoc/markdown.rb#754 def list_item_from(unparsed); end - # source://rdoc//rdoc/markdown.rb#373 + # source://rdoc//lib/rdoc/markdown.rb#373 def match_string(str); end # Stores `label` as a note and fills in previously unknown note references. # - # source://rdoc//rdoc/markdown.rb#762 + # source://rdoc//lib/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//rdoc/markdown.rb#776 + # source://rdoc//lib/rdoc/markdown.rb#776 def note_for(ref); end - # source://rdoc//rdoc/markdown.rb#610 + # source://rdoc//lib/rdoc/markdown.rb#610 def notes=(enable); end - # source://rdoc//rdoc/markdown.rb#606 + # source://rdoc//lib/rdoc/markdown.rb#606 def notes?; end # Creates an RDoc::Markup::Paragraph from `parts` and including # extension-specific behavior # - # source://rdoc//rdoc/markdown.rb#793 + # source://rdoc//lib/rdoc/markdown.rb#793 def paragraph(parts); end # Parses `markdown` into an RDoc::Document # - # source://rdoc//rdoc/markdown.rb#808 + # source://rdoc//lib/rdoc/markdown.rb#808 def parse(markdown); end # The internal kpeg parse method # - # source://rdoc//rdoc/markdown.rb#414 + # source://rdoc//lib/rdoc/markdown.rb#414 def peg_parse(rule = T.unsafe(nil)); end # Returns the value of attribute pos. # - # source://rdoc//rdoc/markdown.rb#209 + # source://rdoc//lib/rdoc/markdown.rb#209 def pos; end # Sets the attribute pos # # @param value the value to set the attribute pos to. # - # source://rdoc//rdoc/markdown.rb#209 + # source://rdoc//lib/rdoc/markdown.rb#209 def pos=(_arg0); end - # source://rdoc//rdoc/markdown.rb#221 + # source://rdoc//lib/rdoc/markdown.rb#221 def position_line_offsets; end # @raise [ParseError] # - # source://rdoc//rdoc/markdown.rb#341 + # source://rdoc//lib/rdoc/markdown.rb#341 def raise_error; end # Stores `label` as a reference to `link` and fills in previously unknown # link references. # - # source://rdoc//rdoc/markdown.rb#855 + # source://rdoc//lib/rdoc/markdown.rb#855 def reference(label, link); end # Returns the value of attribute result. # - # source://rdoc//rdoc/markdown.rb#209 + # source://rdoc//lib/rdoc/markdown.rb#209 def result; end # Sets the attribute result # # @param value the value to set the attribute result to. # - # source://rdoc//rdoc/markdown.rb#209 + # source://rdoc//lib/rdoc/markdown.rb#209 def result=(_arg0); end - # source://rdoc//rdoc/markdown.rb#383 + # source://rdoc//lib/rdoc/markdown.rb#383 def scan(reg); end - # source://rdoc//rdoc/markdown.rb#364 + # source://rdoc//lib/rdoc/markdown.rb#364 def set_failed_rule(name); end # Sets the string and current parsing position for the parser. # - # source://rdoc//rdoc/markdown.rb#290 + # source://rdoc//lib/rdoc/markdown.rb#290 def set_string(string, pos); end # :stopdoc: # - # source://rdoc//rdoc/markdown.rb#887 + # source://rdoc//lib/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//rdoc/markdown.rb#196 + # source://rdoc//lib/rdoc/markdown.rb#196 def setup_parser(str, debug = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown.rb#345 + # source://rdoc//lib/rdoc/markdown.rb#345 def show_error(io = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown.rb#297 + # source://rdoc//lib/rdoc/markdown.rb#297 def show_pos; end # Wraps `text` in strike markup for rdoc inline formatting # - # source://rdoc//rdoc/markdown.rb#877 + # source://rdoc//lib/rdoc/markdown.rb#877 def strike(text); end - # source://rdoc//rdoc/markdown.rb#610 + # source://rdoc//lib/rdoc/markdown.rb#610 def strike=(enable); end - # source://rdoc//rdoc/markdown.rb#606 + # source://rdoc//lib/rdoc/markdown.rb#606 def strike?; end # Returns the value of attribute string. # - # source://rdoc//rdoc/markdown.rb#207 + # source://rdoc//lib/rdoc/markdown.rb#207 def string; end # Wraps `text` in strong markup for rdoc inline formatting # - # source://rdoc//rdoc/markdown.rb#866 + # source://rdoc//lib/rdoc/markdown.rb#866 def strong(text); end private @@ -4287,27 +4331,28 @@ class RDoc::Markdown # # @return [Markdown] a new instance of Markdown # - # source://rdoc//rdoc/markdown.rb#188 + # source://rdoc//lib/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//rdoc/markdown.rb#603 + # source://rdoc//lib/rdoc/markdown.rb#603 def extension(name); end # Parses the `markdown` document into an RDoc::Document using the default # extensions. # - # source://rdoc//rdoc/markdown.rb#656 + # source://rdoc//lib/rdoc/markdown.rb#656 def parse(markdown); end - # source://rdoc//rdoc/markdown.rb#566 + # source://rdoc//lib/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 # @@ -4378,6 +4423,8 @@ 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 @@ -4385,175 +4432,176 @@ class RDoc::Markdown::Literals # # @return [Literals] a new instance of Literals # - # source://rdoc//rdoc/markdown/literals.rb#17 + # source://rdoc//lib/rdoc/markdown/literals.rb#17 def initialize(str, debug = T.unsafe(nil)); end # Alphanumeric = /\p{Word}/ # - # source://rdoc//rdoc/markdown/literals.rb#405 + # source://rdoc//lib/rdoc/markdown/literals.rb#405 def _Alphanumeric; end # AlphanumericAscii = /[A-Za-z0-9]/ # - # source://rdoc//rdoc/markdown/literals.rb#412 + # source://rdoc//lib/rdoc/markdown/literals.rb#412 def _AlphanumericAscii; end # BOM = "uFEFF" # - # source://rdoc//rdoc/markdown/literals.rb#419 + # source://rdoc//lib/rdoc/markdown/literals.rb#419 def _BOM; end # Newline = /\n|\r\n?|\p{Zl}|\p{Zp}/ # - # source://rdoc//rdoc/markdown/literals.rb#426 + # source://rdoc//lib/rdoc/markdown/literals.rb#426 def _Newline; end # NonAlphanumeric = /\p{^Word}/ # - # source://rdoc//rdoc/markdown/literals.rb#433 + # source://rdoc//lib/rdoc/markdown/literals.rb#433 def _NonAlphanumeric; end # Spacechar = /\t|\p{Zs}/ # - # source://rdoc//rdoc/markdown/literals.rb#440 + # source://rdoc//lib/rdoc/markdown/literals.rb#440 def _Spacechar; end - # source://rdoc//rdoc/markdown/literals.rb#331 + # source://rdoc//lib/rdoc/markdown/literals.rb#331 def apply(rule); end - # source://rdoc//rdoc/markdown/literals.rb#297 + # source://rdoc//lib/rdoc/markdown/literals.rb#297 def apply_with_args(rule, *args); end - # source://rdoc//rdoc/markdown/literals.rb#79 + # source://rdoc//lib/rdoc/markdown/literals.rb#79 def current_character(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown/literals.rb#40 + # source://rdoc//lib/rdoc/markdown/literals.rb#40 def current_column(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown/literals.rb#63 + # source://rdoc//lib/rdoc/markdown/literals.rb#63 def current_line(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown/literals.rb#88 + # source://rdoc//lib/rdoc/markdown/literals.rb#88 def current_pos_info(target = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown/literals.rb#278 + # source://rdoc//lib/rdoc/markdown/literals.rb#278 def external_invoke(other, rule, *args); end # Returns the value of attribute failed_rule. # - # source://rdoc//rdoc/markdown/literals.rb#200 + # source://rdoc//lib/rdoc/markdown/literals.rb#200 def failed_rule; end # Returns the value of attribute failing_rule_offset. # - # source://rdoc//rdoc/markdown/literals.rb#37 + # source://rdoc//lib/rdoc/markdown/literals.rb#37 def failing_rule_offset; end - # source://rdoc//rdoc/markdown/literals.rb#147 + # source://rdoc//lib/rdoc/markdown/literals.rb#147 def failure_caret; end - # source://rdoc//rdoc/markdown/literals.rb#152 + # source://rdoc//lib/rdoc/markdown/literals.rb#152 def failure_character; end - # source://rdoc//rdoc/markdown/literals.rb#135 + # source://rdoc//lib/rdoc/markdown/literals.rb#135 def failure_info; end - # source://rdoc//rdoc/markdown/literals.rb#156 + # source://rdoc//lib/rdoc/markdown/literals.rb#156 def failure_oneline; end - # source://rdoc//rdoc/markdown/literals.rb#222 + # source://rdoc//lib/rdoc/markdown/literals.rb#222 def get_byte; end - # source://rdoc//rdoc/markdown/literals.rb#100 + # source://rdoc//lib/rdoc/markdown/literals.rb#100 def get_line(no); end - # source://rdoc//rdoc/markdown/literals.rb#114 + # source://rdoc//lib/rdoc/markdown/literals.rb#114 def get_text(start); end - # source://rdoc//rdoc/markdown/literals.rb#364 + # source://rdoc//lib/rdoc/markdown/literals.rb#364 def grow_lr(rule, args, start_pos, m); end - # source://rdoc//rdoc/markdown/literals.rb#96 + # source://rdoc//lib/rdoc/markdown/literals.rb#96 def lines; end - # source://rdoc//rdoc/markdown/literals.rb#202 + # source://rdoc//lib/rdoc/markdown/literals.rb#202 def match_string(str); end - # source://rdoc//rdoc/markdown/literals.rb#243 + # source://rdoc//lib/rdoc/markdown/literals.rb#243 def parse(rule = T.unsafe(nil)); end # Returns the value of attribute pos. # - # source://rdoc//rdoc/markdown/literals.rb#38 + # source://rdoc//lib/rdoc/markdown/literals.rb#38 def pos; end # Sets the attribute pos # # @param value the value to set the attribute pos to. # - # source://rdoc//rdoc/markdown/literals.rb#38 + # source://rdoc//lib/rdoc/markdown/literals.rb#38 def pos=(_arg0); end - # source://rdoc//rdoc/markdown/literals.rb#50 + # source://rdoc//lib/rdoc/markdown/literals.rb#50 def position_line_offsets; end # @raise [ParseError] # - # source://rdoc//rdoc/markdown/literals.rb#170 + # source://rdoc//lib/rdoc/markdown/literals.rb#170 def raise_error; end # Returns the value of attribute result. # - # source://rdoc//rdoc/markdown/literals.rb#38 + # source://rdoc//lib/rdoc/markdown/literals.rb#38 def result; end # Sets the attribute result # # @param value the value to set the attribute result to. # - # source://rdoc//rdoc/markdown/literals.rb#38 + # source://rdoc//lib/rdoc/markdown/literals.rb#38 def result=(_arg0); end - # source://rdoc//rdoc/markdown/literals.rb#212 + # source://rdoc//lib/rdoc/markdown/literals.rb#212 def scan(reg); end - # source://rdoc//rdoc/markdown/literals.rb#193 + # source://rdoc//lib/rdoc/markdown/literals.rb#193 def set_failed_rule(name); end # Sets the string and current parsing position for the parser. # - # source://rdoc//rdoc/markdown/literals.rb#119 + # source://rdoc//lib/rdoc/markdown/literals.rb#119 def set_string(string, pos); end # :startdoc: # :stopdoc: # - # source://rdoc//rdoc/markdown/literals.rb#402 + # source://rdoc//lib/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//rdoc/markdown/literals.rb#25 + # source://rdoc//lib/rdoc/markdown/literals.rb#25 def setup_parser(str, debug = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown/literals.rb#174 + # source://rdoc//lib/rdoc/markdown/literals.rb#174 def show_error(io = T.unsafe(nil)); end - # source://rdoc//rdoc/markdown/literals.rb#126 + # source://rdoc//lib/rdoc/markdown/literals.rb#126 def show_pos; end # Returns the value of attribute string. # - # source://rdoc//rdoc/markdown/literals.rb#36 + # source://rdoc//lib/rdoc/markdown/literals.rb#36 def string; end class << self - # source://rdoc//rdoc/markdown/literals.rb#395 + # source://rdoc//lib/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 # @@ -4619,124 +4667,129 @@ 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//rdoc/markdown/literals.rb#258 + # source://rdoc//lib/rdoc/markdown/literals.rb#258 def initialize(ans, pos); end # Returns the value of attribute ans. # - # source://rdoc//rdoc/markdown/literals.rb#266 + # source://rdoc//lib/rdoc/markdown/literals.rb#266 def ans; end # Returns the value of attribute left_rec. # - # source://rdoc//rdoc/markdown/literals.rb#267 + # source://rdoc//lib/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//rdoc/markdown/literals.rb#267 + # source://rdoc//lib/rdoc/markdown/literals.rb#267 def left_rec=(_arg0); end - # source://rdoc//rdoc/markdown/literals.rb#269 + # source://rdoc//lib/rdoc/markdown/literals.rb#269 def move!(ans, pos, result); end # Returns the value of attribute pos. # - # source://rdoc//rdoc/markdown/literals.rb#266 + # source://rdoc//lib/rdoc/markdown/literals.rb#266 def pos; end # Returns the value of attribute result. # - # source://rdoc//rdoc/markdown/literals.rb#266 + # source://rdoc//lib/rdoc/markdown/literals.rb#266 def result; end # Returns the value of attribute set. # - # source://rdoc//rdoc/markdown/literals.rb#266 + # source://rdoc//lib/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//rdoc/markdown/literals.rb#387 + # source://rdoc//lib/rdoc/markdown/literals.rb#387 def initialize(name, rendered); end # Returns the value of attribute name. # - # source://rdoc//rdoc/markdown/literals.rb#392 + # source://rdoc//lib/rdoc/markdown/literals.rb#392 def name; end # Returns the value of attribute rendered. # - # source://rdoc//rdoc/markdown/literals.rb#392 + # source://rdoc//lib/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//rdoc/markdown.rb#429 + # source://rdoc//lib/rdoc/markdown.rb#429 def initialize(ans, pos); end # Returns the value of attribute ans. # - # source://rdoc//rdoc/markdown.rb#437 + # source://rdoc//lib/rdoc/markdown.rb#437 def ans; end # Returns the value of attribute left_rec. # - # source://rdoc//rdoc/markdown.rb#438 + # source://rdoc//lib/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//rdoc/markdown.rb#438 + # source://rdoc//lib/rdoc/markdown.rb#438 def left_rec=(_arg0); end - # source://rdoc//rdoc/markdown.rb#440 + # source://rdoc//lib/rdoc/markdown.rb#440 def move!(ans, pos, result); end # Returns the value of attribute pos. # - # source://rdoc//rdoc/markdown.rb#437 + # source://rdoc//lib/rdoc/markdown.rb#437 def pos; end # Returns the value of attribute result. # - # source://rdoc//rdoc/markdown.rb#437 + # source://rdoc//lib/rdoc/markdown.rb#437 def result; end # Returns the value of attribute set. # - # source://rdoc//rdoc/markdown.rb#437 + # source://rdoc//lib/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//rdoc/markdown.rb#558 + # source://rdoc//lib/rdoc/markdown.rb#558 def initialize(name, rendered); end # Returns the value of attribute name. # - # source://rdoc//rdoc/markdown.rb#563 + # source://rdoc//lib/rdoc/markdown.rb#563 def name; end # Returns the value of attribute rendered. # - # source://rdoc//rdoc/markdown.rb#563 + # source://rdoc//lib/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 @@ -4744,12 +4797,12 @@ class RDoc::Markup # # @return [Markup] a new instance of Markup # - # source://rdoc//rdoc/markup.rb#146 + # source://rdoc//lib/rdoc/markup.rb#146 def initialize(attribute_manager = T.unsafe(nil)); end # Add to the sequences recognized as general markup. # - # source://rdoc//rdoc/markup.rb#163 + # source://rdoc//lib/rdoc/markup.rb#163 def add_html(tag, name); end # Add to other inline sequences. For example, we could add WikiWords using @@ -4759,73 +4812,79 @@ class RDoc::Markup # # Each wiki word will be presented to the output formatter. # - # source://rdoc//rdoc/markup.rb#175 + # source://rdoc//lib/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//rdoc/markup.rb#156 + # source://rdoc//lib/rdoc/markup.rb#156 def add_word_pair(start, stop, name); end # An AttributeManager which handles inline markup. # - # source://rdoc//rdoc/markup.rb#111 + # source://rdoc//lib/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//rdoc/markup.rb#183 + # source://rdoc//lib/rdoc/markup.rb#183 def convert(input, formatter); end class << self # Parses +str+ into an RDoc::Markup::Document. # - # source://rdoc//rdoc/markup.rb#116 + # source://rdoc//lib/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//rdoc/markup/attr_changer.rb#18 + # source://rdoc//lib/rdoc/markup/attr_changer.rb#18 def inspect; end - # source://rdoc//rdoc/markup/attr_changer.rb#14 + # source://rdoc//lib/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//rdoc/markup/attr_span.rb#10 + # source://rdoc//lib/rdoc/markup/attr_span.rb#10 def initialize(length, exclusive); end # Accesses flags for character +n+ # - # source://rdoc//rdoc/markup/attr_span.rb#31 + # source://rdoc//lib/rdoc/markup/attr_span.rb#31 def [](n); end # Toggles +bits+ from +start+ to +length+ # - # source://rdoc//rdoc/markup/attr_span.rb#17 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#80 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#80 def initialize; end # Adds a markup class with +name+ for words surrounded by HTML tag +tag+. @@ -4833,7 +4892,7 @@ class RDoc::Markup::AttributeManager # # am.add_html 'em', :EM # - # source://rdoc//rdoc/markup/attribute_manager.rb#286 + # source://rdoc//lib/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 @@ -4841,7 +4900,7 @@ class RDoc::Markup::AttributeManager # # @am.add_regexp_handling(/((https?:)\S+\w)/, :HYPERLINK) # - # source://rdoc//rdoc/markup/attribute_manager.rb#298 + # source://rdoc//lib/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 @@ -4851,188 +4910,196 @@ class RDoc::Markup::AttributeManager # # @raise [ArgumentError] # - # source://rdoc//rdoc/markup/attribute_manager.rb#261 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#103 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#103 def attribute(turn_on, turn_off); end # The attributes enabled for this markup object. # - # source://rdoc//rdoc/markup/attribute_manager.rb#40 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#40 def attributes; end # Changes the current attribute from +current+ to +new+ # - # source://rdoc//rdoc/markup/attribute_manager.rb#110 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#119 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#154 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#154 def convert_attrs(str, attrs, exclusive = T.unsafe(nil)); end - # source://rdoc//rdoc/markup/attribute_manager.rb#160 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#160 def convert_attrs_matching_word_pairs(str, attrs, exclusive); end - # source://rdoc//rdoc/markup/attribute_manager.rb#185 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#185 def convert_attrs_word_pair_map(str, attrs, exclusive); end # Converts HTML tags to RDoc attributes # - # source://rdoc//rdoc/markup/attribute_manager.rb#206 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#223 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#135 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#329 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#329 def display_attributes; end # @return [Boolean] # - # source://rdoc//rdoc/markup/attribute_manager.rb#142 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#142 def exclusive?(attr); end # A bits of exclusive maps # - # source://rdoc//rdoc/markup/attribute_manager.rb#74 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#74 def exclusive_bitmap; end # Processes +str+ converting attributes, HTML and regexp handlings # - # source://rdoc//rdoc/markup/attribute_manager.rb#307 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#307 def flow(str); end # This maps HTML tags to the corresponding attribute char # - # source://rdoc//rdoc/markup/attribute_manager.rb#58 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#58 def html_tags; end # Escapes regexp handling sequences of text to prevent conversion to RDoc # - # source://rdoc//rdoc/markup/attribute_manager.rb#239 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#47 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#64 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#70 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#70 def regexp_handlings; end # Splits the string into chunks by attribute change # - # source://rdoc//rdoc/markup/attribute_manager.rb#354 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#354 def split_into_flow; end # Unescapes regexp handling sequences of text # - # source://rdoc//rdoc/markup/attribute_manager.rb#251 + # source://rdoc//lib/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//rdoc/markup/attribute_manager.rb#53 + # source://rdoc//lib/rdoc/markup/attribute_manager.rb#53 def word_pair_map; end end -# source://rdoc//rdoc/markup/attribute_manager.rb#147 +# source://rdoc//lib/rdoc/markup/attribute_manager.rb#147 RDoc::Markup::AttributeManager::NON_PRINTING_END = T.let(T.unsafe(nil), String) -# source://rdoc//rdoc/markup/attribute_manager.rb#146 +# source://rdoc//lib/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//rdoc/markup/attributes.rb#16 + # source://rdoc//lib/rdoc/markup/attributes.rb#16 def initialize; end # Returns a string representation of +bitmap+ # - # source://rdoc//rdoc/markup/attributes.rb#46 + # source://rdoc//lib/rdoc/markup/attributes.rb#46 def as_string(bitmap); end # Returns a unique bit for +name+ # - # source://rdoc//rdoc/markup/attributes.rb#29 + # source://rdoc//lib/rdoc/markup/attributes.rb#29 def bitmap_for(name); end # yields each attribute name in +bitmap+ # - # source://rdoc//rdoc/markup/attributes.rb#60 + # source://rdoc//lib/rdoc/markup/attributes.rb#60 def each_name_of(bitmap); end # The regexp handling attribute type. See RDoc::Markup#add_regexp_handling # - # source://rdoc//rdoc/markup/attributes.rb#11 + # source://rdoc//lib/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//rdoc/markup/blank_line.rb#19 + # source://rdoc//lib/rdoc/markup/blank_line.rb#19 def accept(visitor); end - # source://rdoc//rdoc/markup/blank_line.rb#23 + # source://rdoc//lib/rdoc/markup/blank_line.rb#23 def pretty_print(q); end class << self # RDoc::Markup::BlankLine is a singleton # - # source://rdoc//rdoc/markup/blank_line.rb#12 + # source://rdoc//lib/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//rdoc/markup/block_quote.rb#10 + # source://rdoc//lib/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 @@ -5040,48 +5107,48 @@ class RDoc::Markup::Document # # @return [Document] a new instance of Document # - # source://rdoc//rdoc/markup/document.rb#29 + # source://rdoc//lib/rdoc/markup/document.rb#29 def initialize(*parts); end # Appends +part+ to the document # - # source://rdoc//rdoc/markup/document.rb#40 + # source://rdoc//lib/rdoc/markup/document.rb#40 def <<(part); end - # source://rdoc//rdoc/markup/document.rb#56 + # source://rdoc//lib/rdoc/markup/document.rb#56 def ==(other); end # Runs this document and all its #items through +visitor+ # - # source://rdoc//rdoc/markup/document.rb#65 + # source://rdoc//lib/rdoc/markup/document.rb#65 def accept(visitor); end # Concatenates the given +parts+ onto the document # - # source://rdoc//rdoc/markup/document.rb#76 + # source://rdoc//lib/rdoc/markup/document.rb#76 def concat(parts); end # Enumerator for the parts of this document # - # source://rdoc//rdoc/markup/document.rb#83 + # source://rdoc//lib/rdoc/markup/document.rb#83 def each(&block); end # Does this document have no parts? # # @return [Boolean] # - # source://rdoc//rdoc/markup/document.rb#90 + # source://rdoc//lib/rdoc/markup/document.rb#90 def empty?; end # The file this document was created from. See also # RDoc::ClassModule#add_comment # - # source://rdoc//rdoc/markup/document.rb#13 + # source://rdoc//lib/rdoc/markup/document.rb#13 def file; end # The file this Document was created from. # - # source://rdoc//rdoc/markup/document.rb#97 + # source://rdoc//lib/rdoc/markup/document.rb#97 def file=(location); end # When this is a collection of documents (#file is not set and this document @@ -5091,46 +5158,46 @@ class RDoc::Markup::Document # # The information in +other+ is preferred over the receiver # - # source://rdoc//rdoc/markup/document.rb#114 + # source://rdoc//lib/rdoc/markup/document.rb#114 def merge(other); end # Does this Document contain other Documents? # # @return [Boolean] # - # source://rdoc//rdoc/markup/document.rb#134 + # source://rdoc//lib/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//rdoc/markup/document.rb#19 + # source://rdoc//lib/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//rdoc/markup/document.rb#19 + # source://rdoc//lib/rdoc/markup/document.rb#19 def omit_headings_below=(_arg0); end # The parts of the Document # - # source://rdoc//rdoc/markup/document.rb#24 + # source://rdoc//lib/rdoc/markup/document.rb#24 def parts; end - # source://rdoc//rdoc/markup/document.rb#138 + # source://rdoc//lib/rdoc/markup/document.rb#138 def pretty_print(q); end # Appends +parts+ to the document # - # source://rdoc//rdoc/markup/document.rb#151 + # source://rdoc//lib/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//rdoc/markup/document.rb#160 + # source://rdoc//lib/rdoc/markup/document.rb#160 def table_of_contents; end end @@ -5143,59 +5210,61 @@ 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//rdoc/markup/formatter.rb#48 + # source://rdoc//lib/rdoc/markup/formatter.rb#48 def initialize(options, markup = T.unsafe(nil)); end # Adds +document+ to the output # - # source://rdoc//rdoc/markup/formatter.rb#69 + # source://rdoc//lib/rdoc/markup/formatter.rb#69 def accept_document(document); end # Adds a regexp handling for links of the form rdoc-...: # - # source://rdoc//rdoc/markup/formatter.rb#83 + # source://rdoc//lib/rdoc/markup/formatter.rb#83 def add_regexp_handling_RDOCLINK; end # Adds a regexp handling for links of the form {}[] and # [] # - # source://rdoc//rdoc/markup/formatter.rb#91 + # source://rdoc//lib/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//rdoc/markup/formatter.rb#105 + # source://rdoc//lib/rdoc/markup/formatter.rb#105 def add_tag(name, start, stop); end # Allows +tag+ to be decorated with additional information. # - # source://rdoc//rdoc/markup/formatter.rb#113 + # source://rdoc//lib/rdoc/markup/formatter.rb#113 def annotate(tag); end # Marks up +content+ # - # source://rdoc//rdoc/markup/formatter.rb#120 + # source://rdoc//lib/rdoc/markup/formatter.rb#120 def convert(content); end # Converts flow items +flow+ # - # source://rdoc//rdoc/markup/formatter.rb#127 + # source://rdoc//lib/rdoc/markup/formatter.rb#127 def convert_flow(flow); end # Converts added regexp handlings. See RDoc::Markup#add_regexp_handling # - # source://rdoc//rdoc/markup/formatter.rb#150 + # source://rdoc//lib/rdoc/markup/formatter.rb#150 def convert_regexp_handling(target); end # Converts a string to be fancier if desired # - # source://rdoc//rdoc/markup/formatter.rb#176 + # source://rdoc//lib/rdoc/markup/formatter.rb#176 def convert_string(string); end # Use ignore in your subclass to ignore the content of a node. @@ -5205,88 +5274,91 @@ class RDoc::Markup::Formatter # # alias accept_raw ignore # - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def ignore(*node); end # Are we currently inside tt tags? # # @return [Boolean] # - # source://rdoc//rdoc/markup/formatter.rb#194 + # source://rdoc//lib/rdoc/markup/formatter.rb#194 def in_tt?; end # Turns off tags for +item+ on +res+ # - # source://rdoc//rdoc/markup/formatter.rb#216 + # source://rdoc//lib/rdoc/markup/formatter.rb#216 def off_tags(res, item); end # Turns on tags for +item+ on +res+ # - # source://rdoc//rdoc/markup/formatter.rb#201 + # source://rdoc//lib/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//rdoc/markup/formatter.rb#231 + # source://rdoc//lib/rdoc/markup/formatter.rb#231 def parse_url(url); end # Is +tag+ a tt tag? # # @return [Boolean] # - # source://rdoc//rdoc/markup/formatter.rb#261 + # source://rdoc//lib/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//rdoc/markup/formatter.rb#24 + # source://rdoc//lib/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//rdoc/markup/hard_break.rb#23 + # source://rdoc//lib/rdoc/markup/hard_break.rb#23 def ==(other); end # Calls #accept_hard_break on +visitor+ # - # source://rdoc//rdoc/markup/hard_break.rb#19 + # source://rdoc//lib/rdoc/markup/hard_break.rb#19 def accept(visitor); end - # source://rdoc//rdoc/markup/hard_break.rb#27 + # source://rdoc//lib/rdoc/markup/hard_break.rb#27 def pretty_print(q); end class << self # RDoc::Markup::HardBreak is a singleton # - # source://rdoc//rdoc/markup/hard_break.rb#12 + # source://rdoc//lib/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//rdoc/markup/heading.rb#40 + # source://rdoc//lib/rdoc/markup/heading.rb#40 def accept(visitor); end - # source://rdoc//rdoc/markup/heading.rb#47 + # source://rdoc//lib/rdoc/markup/heading.rb#47 def aref; end - # source://rdoc//rdoc/markup/heading.rb#55 + # source://rdoc//lib/rdoc/markup/heading.rb#55 def label(context = T.unsafe(nil)); end - # source://rdoc//rdoc/markup/heading.rb#68 + # source://rdoc//lib/rdoc/markup/heading.rb#68 def plain_html; end - # source://rdoc//rdoc/markup/heading.rb#72 + # source://rdoc//lib/rdoc/markup/heading.rb#72 def pretty_print(q); end class << self - # source://rdoc//rdoc/markup/heading.rb#22 + # source://rdoc//lib/rdoc/markup/heading.rb#22 def to_html; end - # source://rdoc//rdoc/markup/heading.rb#14 + # source://rdoc//lib/rdoc/markup/heading.rb#14 def to_label; end end end @@ -5295,58 +5367,62 @@ 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//rdoc/markup/include.rb#23 + # source://rdoc//lib/rdoc/markup/include.rb#23 def initialize(file, include_path); end - # source://rdoc//rdoc/markup/include.rb#28 + # source://rdoc//lib/rdoc/markup/include.rb#28 def ==(other); end # The filename to be included, without extension # - # source://rdoc//rdoc/markup/include.rb#13 + # source://rdoc//lib/rdoc/markup/include.rb#13 def file; end # Directories to search for #file # - # source://rdoc//rdoc/markup/include.rb#18 + # source://rdoc//lib/rdoc/markup/include.rb#18 def include_path; end - # source://rdoc//rdoc/markup/include.rb#33 + # source://rdoc//lib/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//rdoc/markup/indented_paragraph.rb#16 + # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#16 def initialize(indent, *parts); end - # source://rdoc//rdoc/markup/indented_paragraph.rb#22 + # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#22 def ==(other); end # Calls #accept_indented_paragraph on +visitor+ # - # source://rdoc//rdoc/markup/indented_paragraph.rb#29 + # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#29 def accept(visitor); end # The indent in number of spaces # - # source://rdoc//rdoc/markup/indented_paragraph.rb#10 + # source://rdoc//lib/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//rdoc/markup/indented_paragraph.rb#37 + # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#37 def text(hard_break = T.unsafe(nil)); end end @@ -5370,61 +5446,63 @@ 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//rdoc/markup/list.rb#40 + # source://rdoc//lib/rdoc/markup/list.rb#40 def initialize(type = T.unsafe(nil), *items); end # Appends +item+ to the list # - # source://rdoc//rdoc/markup/list.rb#49 + # source://rdoc//lib/rdoc/markup/list.rb#49 def <<(item); end - # source://rdoc//rdoc/markup/list.rb#53 + # source://rdoc//lib/rdoc/markup/list.rb#53 def ==(other); end # Runs this list and all its #items through +visitor+ # - # source://rdoc//rdoc/markup/list.rb#62 + # source://rdoc//lib/rdoc/markup/list.rb#62 def accept(visitor); end # Is the list empty? # # @return [Boolean] # - # source://rdoc//rdoc/markup/list.rb#75 + # source://rdoc//lib/rdoc/markup/list.rb#75 def empty?; end # Items in the list # - # source://rdoc//rdoc/markup/list.rb#34 + # source://rdoc//lib/rdoc/markup/list.rb#34 def items; end # Returns the last item in the list # - # source://rdoc//rdoc/markup/list.rb#82 + # source://rdoc//lib/rdoc/markup/list.rb#82 def last; end - # source://rdoc//rdoc/markup/list.rb#86 + # source://rdoc//lib/rdoc/markup/list.rb#86 def pretty_print(q); end # Appends +items+ to the list # - # source://rdoc//rdoc/markup/list.rb#97 + # source://rdoc//lib/rdoc/markup/list.rb#97 def push(*items); end # The list's type # - # source://rdoc//rdoc/markup/list.rb#29 + # source://rdoc//lib/rdoc/markup/list.rb#29 def type; end # The list's type # - # source://rdoc//rdoc/markup/list.rb#29 + # source://rdoc//lib/rdoc/markup/list.rb#29 def type=(_arg0); end end @@ -5436,74 +5514,78 @@ 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//rdoc/markup/list_item.rb#27 + # source://rdoc//lib/rdoc/markup/list_item.rb#27 def initialize(label = T.unsafe(nil), *parts); end # Appends +part+ to the ListItem # - # source://rdoc//rdoc/markup/list_item.rb#36 + # source://rdoc//lib/rdoc/markup/list_item.rb#36 def <<(part); end - # source://rdoc//rdoc/markup/list_item.rb#40 + # source://rdoc//lib/rdoc/markup/list_item.rb#40 def ==(other); end # Runs this list item and all its #parts through +visitor+ # - # source://rdoc//rdoc/markup/list_item.rb#49 + # source://rdoc//lib/rdoc/markup/list_item.rb#49 def accept(visitor); end # Is the ListItem empty? # # @return [Boolean] # - # source://rdoc//rdoc/markup/list_item.rb#62 + # source://rdoc//lib/rdoc/markup/list_item.rb#62 def empty?; end # The label for the ListItem # - # source://rdoc//rdoc/markup/list_item.rb#17 + # source://rdoc//lib/rdoc/markup/list_item.rb#17 def label; end # The label for the ListItem # - # source://rdoc//rdoc/markup/list_item.rb#17 + # source://rdoc//lib/rdoc/markup/list_item.rb#17 def label=(_arg0); end # Length of parts in the ListItem # - # source://rdoc//rdoc/markup/list_item.rb#69 + # source://rdoc//lib/rdoc/markup/list_item.rb#69 def length; end # Parts of the ListItem # - # source://rdoc//rdoc/markup/list_item.rb#22 + # source://rdoc//lib/rdoc/markup/list_item.rb#22 def parts; end - # source://rdoc//rdoc/markup/list_item.rb#73 + # source://rdoc//lib/rdoc/markup/list_item.rb#73 def pretty_print(q); end # Adds +parts+ to the ListItem # - # source://rdoc//rdoc/markup/list_item.rb#95 + # source://rdoc//lib/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//rdoc/markup/paragraph.rb#10 + # source://rdoc//lib/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//rdoc/markup/paragraph.rb#18 + # source://rdoc//lib/rdoc/markup/paragraph.rb#18 def text(hard_break = T.unsafe(nil)); end end @@ -5520,6 +5602,8 @@ 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 @@ -5527,22 +5611,22 @@ class RDoc::Markup::Parser # # @return [Parser] a new instance of Parser # - # source://rdoc//rdoc/markup/parser.rb#79 + # source://rdoc//lib/rdoc/markup/parser.rb#79 def initialize; end # Builds a Heading of +level+ # - # source://rdoc//rdoc/markup/parser.rb#90 + # source://rdoc//lib/rdoc/markup/parser.rb#90 def build_heading(level); end # Builds a List flush to +margin+ # - # source://rdoc//rdoc/markup/parser.rb#108 + # source://rdoc//lib/rdoc/markup/parser.rb#108 def build_list(margin); end # Builds a Paragraph that is flush to +margin+ # - # source://rdoc//rdoc/markup/parser.rb#208 + # source://rdoc//lib/rdoc/markup/parser.rb#208 def build_paragraph(margin); end # Builds a Verbatim that is indented from +margin+. @@ -5552,22 +5636,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//rdoc/markup/parser.rb#243 + # source://rdoc//lib/rdoc/markup/parser.rb#243 def build_verbatim(margin); end # Enables display of debugging information # - # source://rdoc//rdoc/markup/parser.rb#48 + # source://rdoc//lib/rdoc/markup/parser.rb#48 def debug; end # Enables display of debugging information # - # source://rdoc//rdoc/markup/parser.rb#48 + # source://rdoc//lib/rdoc/markup/parser.rb#48 def debug=(_arg0); end # Pulls the next token from the stream. # - # source://rdoc//rdoc/markup/parser.rb#327 + # source://rdoc//lib/rdoc/markup/parser.rb#327 def get; end # Parses the tokens into an array of RDoc::Markup::XXX objects, @@ -5578,22 +5662,22 @@ class RDoc::Markup::Parser # # Returns +parent+. # - # source://rdoc//rdoc/markup/parser.rb#342 + # source://rdoc//lib/rdoc/markup/parser.rb#342 def parse(parent, indent = T.unsafe(nil)); end # Small hook that is overridden by RDoc::TomDoc # - # source://rdoc//rdoc/markup/parser.rb#406 + # source://rdoc//lib/rdoc/markup/parser.rb#406 def parse_text(parent, indent); end # Returns the next token on the stream without modifying the stream # - # source://rdoc//rdoc/markup/parser.rb#413 + # source://rdoc//lib/rdoc/markup/parser.rb#413 def peek_token; end # Creates the StringScanner # - # source://rdoc//rdoc/markup/parser.rb#468 + # source://rdoc//lib/rdoc/markup/parser.rb#468 def setup_scanner(input); end # Skips the next token if its type is +token_type+. @@ -5602,24 +5686,24 @@ class RDoc::Markup::Parser # # @raise [ParseError] # - # source://rdoc//rdoc/markup/parser.rb#477 + # source://rdoc//lib/rdoc/markup/parser.rb#477 def skip(token_type, error = T.unsafe(nil)); end # Turns text +input+ into a stream of tokens # - # source://rdoc//rdoc/markup/parser.rb#488 + # source://rdoc//lib/rdoc/markup/parser.rb#488 def tokenize(input); end # Token accessor # - # source://rdoc//rdoc/markup/parser.rb#53 + # source://rdoc//lib/rdoc/markup/parser.rb#53 def tokens; end # Returns the current token to the token stream # # @raise [Error] # - # source://rdoc//rdoc/markup/parser.rb#578 + # source://rdoc//lib/rdoc/markup/parser.rb#578 def unget; end class << self @@ -5627,46 +5711,48 @@ class RDoc::Markup::Parser # # Use RDoc::Markup#parse instead of this method. # - # source://rdoc//rdoc/markup/parser.rb#60 + # source://rdoc//lib/rdoc/markup/parser.rb#60 def parse(str); end # Returns a token stream for +str+, for testing # - # source://rdoc//rdoc/markup/parser.rb#70 + # source://rdoc//lib/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//rdoc/markup/parser.rb#425 + # source://rdoc//lib/rdoc/markup/parser.rb#425 def initialize(input); end - # source://rdoc//rdoc/markup/parser.rb#458 + # source://rdoc//lib/rdoc/markup/parser.rb#458 def [](i); end # @return [Boolean] # - # source://rdoc//rdoc/markup/parser.rb#450 + # source://rdoc//lib/rdoc/markup/parser.rb#450 def eos?; end - # source://rdoc//rdoc/markup/parser.rb#454 + # source://rdoc//lib/rdoc/markup/parser.rb#454 def matched; end - # source://rdoc//rdoc/markup/parser.rb#445 + # source://rdoc//lib/rdoc/markup/parser.rb#445 def newline!; end - # source://rdoc//rdoc/markup/parser.rb#441 + # source://rdoc//lib/rdoc/markup/parser.rb#441 def pos; end - # source://rdoc//rdoc/markup/parser.rb#430 + # source://rdoc//lib/rdoc/markup/parser.rb#430 def scan(re); end - # source://rdoc//rdoc/markup/parser.rb#436 + # source://rdoc//lib/rdoc/markup/parser.rb#436 def unscan(s); end end @@ -5683,19 +5769,21 @@ 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//rdoc/markup/pre_process.rb#78 + # source://rdoc//lib/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//rdoc/markup/pre_process.rb#288 + # source://rdoc//lib/rdoc/markup/pre_process.rb#288 def find_include_file(name); end # Look for directives in the given +text+. @@ -5712,7 +5800,7 @@ class RDoc::Markup::PreProcess # directive's parameter is set as metadata on the +code_object+. See # RDoc::CodeObject#metadata for details. # - # source://rdoc//rdoc/markup/pre_process.rb#99 + # source://rdoc//lib/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+. @@ -5725,7 +5813,7 @@ class RDoc::Markup::PreProcess # -- # When 1.8.7 support is ditched prefix can be defaulted to '' # - # source://rdoc//rdoc/markup/pre_process.rb#150 + # source://rdoc//lib/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. @@ -5742,19 +5830,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//rdoc/markup/pre_process.rb#262 + # source://rdoc//lib/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//rdoc/markup/pre_process.rb#23 + # source://rdoc//lib/rdoc/markup/pre_process.rb#23 def options; end # An RDoc::Options instance that will be filled in with overrides from # directives # - # source://rdoc//rdoc/markup/pre_process.rb#23 + # source://rdoc//lib/rdoc/markup/pre_process.rb#23 def options=(_arg0); end class << self @@ -5762,12 +5850,12 @@ class RDoc::Markup::PreProcess # with the result RDoc::Comment (or text String) and the code object for the # comment (if any). # - # source://rdoc//rdoc/markup/pre_process.rb#30 + # source://rdoc//lib/rdoc/markup/pre_process.rb#30 def post_process(&block); end # Registered post-processors # - # source://rdoc//rdoc/markup/pre_process.rb#37 + # source://rdoc//lib/rdoc/markup/pre_process.rb#37 def post_processors; end # Registers +directive+ as one handled by RDoc. If a block is given the @@ -5781,192 +5869,202 @@ class RDoc::Markup::PreProcess # # replace text, etc. # end # - # source://rdoc//rdoc/markup/pre_process.rb#53 + # source://rdoc//lib/rdoc/markup/pre_process.rb#53 def register(directive, &block); end # Registered directives # - # source://rdoc//rdoc/markup/pre_process.rb#60 + # source://rdoc//lib/rdoc/markup/pre_process.rb#60 def registered; end # Clears all registered directives and post-processors # - # source://rdoc//rdoc/markup/pre_process.rb#67 + # source://rdoc//lib/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//rdoc/markup/raw.rb#15 + # source://rdoc//lib/rdoc/markup/raw.rb#15 def initialize(*parts); end # Appends +text+ # - # source://rdoc//rdoc/markup/raw.rb#23 + # source://rdoc//lib/rdoc/markup/raw.rb#23 def <<(text); end - # source://rdoc//rdoc/markup/raw.rb#27 + # source://rdoc//lib/rdoc/markup/raw.rb#27 def ==(other); end # Calls #accept_raw+ on +visitor+ # - # source://rdoc//rdoc/markup/raw.rb#34 + # source://rdoc//lib/rdoc/markup/raw.rb#34 def accept(visitor); end # Appends +other+'s parts # - # source://rdoc//rdoc/markup/raw.rb#41 + # source://rdoc//lib/rdoc/markup/raw.rb#41 def merge(other); end # The component parts of the list # - # source://rdoc//rdoc/markup/raw.rb#10 + # source://rdoc//lib/rdoc/markup/raw.rb#10 def parts; end - # source://rdoc//rdoc/markup/raw.rb#45 + # source://rdoc//lib/rdoc/markup/raw.rb#45 def pretty_print(q); end # Appends +texts+ onto this Paragraph # - # source://rdoc//rdoc/markup/raw.rb#58 + # source://rdoc//lib/rdoc/markup/raw.rb#58 def push(*texts); end # The raw text # - # source://rdoc//rdoc/markup/raw.rb#65 + # source://rdoc//lib/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//rdoc/markup/regexp_handling.rb#20 + # source://rdoc//lib/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//rdoc/markup/regexp_handling.rb#27 + # source://rdoc//lib/rdoc/markup/regexp_handling.rb#27 def ==(o); end - # source://rdoc//rdoc/markup/regexp_handling.rb#31 + # source://rdoc//lib/rdoc/markup/regexp_handling.rb#31 def inspect; end # Regexp handling text # - # source://rdoc//rdoc/markup/regexp_handling.rb#15 + # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15 def text; end # Regexp handling text # - # source://rdoc//rdoc/markup/regexp_handling.rb#15 + # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15 def text=(_arg0); end - # source://rdoc//rdoc/markup/regexp_handling.rb#36 + # source://rdoc//lib/rdoc/markup/regexp_handling.rb#36 def to_s; end # Regexp handling type # - # source://rdoc//rdoc/markup/regexp_handling.rb#10 + # source://rdoc//lib/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//rdoc/markup/rule.rb#10 + # source://rdoc//lib/rdoc/markup/rule.rb#10 def accept(visitor); end - # source://rdoc//rdoc/markup/rule.rb#14 + # source://rdoc//lib/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//rdoc/markup/table.rb#16 + # source://rdoc//lib/rdoc/markup/table.rb#16 def initialize(header, align, body); end # :stopdoc: # - # source://rdoc//rdoc/markup/table.rb#21 + # source://rdoc//lib/rdoc/markup/table.rb#21 def ==(other); end - # source://rdoc//rdoc/markup/table.rb#28 + # source://rdoc//lib/rdoc/markup/table.rb#28 def accept(visitor); end # alignments of each column # - # source://rdoc//rdoc/markup/table.rb#10 + # source://rdoc//lib/rdoc/markup/table.rb#10 def align; end # alignments of each column # - # source://rdoc//rdoc/markup/table.rb#10 + # source://rdoc//lib/rdoc/markup/table.rb#10 def align=(_arg0); end # body texts of each column # - # source://rdoc//rdoc/markup/table.rb#13 + # source://rdoc//lib/rdoc/markup/table.rb#13 def body; end # body texts of each column # - # source://rdoc//rdoc/markup/table.rb#13 + # source://rdoc//lib/rdoc/markup/table.rb#13 def body=(_arg0); end # headers of each column # - # source://rdoc//rdoc/markup/table.rb#7 + # source://rdoc//lib/rdoc/markup/table.rb#7 def header; end # headers of each column # - # source://rdoc//rdoc/markup/table.rb#7 + # source://rdoc//lib/rdoc/markup/table.rb#7 def header=(_arg0); end - # source://rdoc//rdoc/markup/table.rb#32 + # source://rdoc//lib/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//rdoc/markup/to_ansi.rb#10 + # source://rdoc//lib/rdoc/markup/to_ansi.rb#10 def initialize(markup = T.unsafe(nil)); end # Overrides indent width to ensure output lines up correctly. # - # source://rdoc//rdoc/markup/to_ansi.rb#31 + # source://rdoc//lib/rdoc/markup/to_ansi.rb#31 def accept_list_item_end(list_item); end # Adds coloring to note and label list items # - # source://rdoc//rdoc/markup/to_ansi.rb#55 + # source://rdoc//lib/rdoc/markup/to_ansi.rb#55 def accept_list_item_start(list_item); end # Maps attributes to ANSI sequences # - # source://rdoc//rdoc/markup/to_ansi.rb#22 + # source://rdoc//lib/rdoc/markup/to_ansi.rb#22 def init_tags; end # Starts accepting with a reset screen # - # source://rdoc//rdoc/markup/to_ansi.rb#87 + # source://rdoc//lib/rdoc/markup/to_ansi.rb#87 def start_accepting; end end @@ -5974,42 +6072,51 @@ 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//rdoc/markup/to_bs.rb#13 + # source://rdoc//lib/rdoc/markup/to_bs.rb#13 def initialize(markup = T.unsafe(nil)); end # Makes heading text bold. # - # source://rdoc//rdoc/markup/to_bs.rb#33 + # source://rdoc//lib/rdoc/markup/to_bs.rb#33 def accept_heading(heading); end + # Prepares the visitor for consuming +list_item+ + # + # source://rdoc//lib/rdoc/markup/to_bs.rb#46 + def accept_list_item_start(list_item); end + # Turns on or off regexp handling for +convert_string+ # - # source://rdoc//rdoc/markup/to_bs.rb#46 + # source://rdoc//lib/rdoc/markup/to_bs.rb#71 def annotate(tag); end # Calls convert_string on the result of convert_regexp_handling # - # source://rdoc//rdoc/markup/to_bs.rb#59 + # source://rdoc//lib/rdoc/markup/to_bs.rb#84 def convert_regexp_handling(target); end # Adds bold or underline mixed with backspaces # - # source://rdoc//rdoc/markup/to_bs.rb#66 + # source://rdoc//lib/rdoc/markup/to_bs.rb#91 def convert_string(string); end # Sets a flag that is picked up by #annotate to do the right thing in # #convert_string # - # source://rdoc//rdoc/markup/to_bs.rb#24 + # source://rdoc//lib/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 @@ -6017,114 +6124,114 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # # @return [ToHtml] a new instance of ToHtml # - # source://rdoc//rdoc/markup/to_html.rb#45 + # source://rdoc//lib/rdoc/markup/to_html.rb#45 def initialize(options, markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//rdoc/markup/to_html.rb#291 + # source://rdoc//lib/rdoc/markup/to_html.rb#291 def accept_blank_line(blank_line); end # Adds +block_quote+ to the output # - # source://rdoc//rdoc/markup/to_html.rb#190 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#299 + # source://rdoc//lib/rdoc/markup/to_html.rb#299 def accept_heading(heading); end # Finishes consumption of +list+ # - # source://rdoc//rdoc/markup/to_html.rb#262 + # source://rdoc//lib/rdoc/markup/to_html.rb#262 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//rdoc/markup/to_html.rb#284 + # source://rdoc//lib/rdoc/markup/to_html.rb#284 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//rdoc/markup/to_html.rb#273 + # source://rdoc//lib/rdoc/markup/to_html.rb#273 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//rdoc/markup/to_html.rb#253 + # source://rdoc//lib/rdoc/markup/to_html.rb#253 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//rdoc/markup/to_html.rb#203 + # source://rdoc//lib/rdoc/markup/to_html.rb#203 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//rdoc/markup/to_html.rb#320 + # source://rdoc//lib/rdoc/markup/to_html.rb#320 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//rdoc/markup/to_html.rb#246 + # source://rdoc//lib/rdoc/markup/to_html.rb#246 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//rdoc/markup/to_html.rb#327 + # source://rdoc//lib/rdoc/markup/to_html.rb#327 def accept_table(header, body, aligns); end # Adds +verbatim+ to the output # - # source://rdoc//rdoc/markup/to_html.rb#216 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#33 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#33 + # source://rdoc//lib/rdoc/markup/to_html.rb#33 def code_object=(_arg0); end # CGI-escapes +text+ # - # source://rdoc//rdoc/markup/to_html.rb#352 + # source://rdoc//lib/rdoc/markup/to_html.rb#352 def convert_string(text); end # Returns the generated output # - # source://rdoc//rdoc/markup/to_html.rb#183 + # source://rdoc//lib/rdoc/markup/to_html.rb#183 def end_accepting; end # Path to this document for relative links # - # source://rdoc//rdoc/markup/to_html.rb#38 + # source://rdoc//lib/rdoc/markup/to_html.rb#38 def from_path; end # Path to this document for relative links # - # source://rdoc//rdoc/markup/to_html.rb#38 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#360 + # source://rdoc//lib/rdoc/markup/to_html.rb#360 def gen_url(url, text); end - # source://rdoc//rdoc/markup/to_html.rb#85 + # source://rdoc//lib/rdoc/markup/to_html.rb#85 def handle_RDOCLINK(url); end # +target+ is a
# - # source://rdoc//rdoc/markup/to_html.rb#110 + # source://rdoc//lib/rdoc/markup/to_html.rb#110 def handle_regexp_HARD_BREAK(target); end # +target+ is a potential link. The following schemes are handled: @@ -6138,7 +6245,7 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # link::: # Reference to a local file relative to the output directory. # - # source://rdoc//rdoc/markup/to_html.rb#126 + # source://rdoc//lib/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. @@ -6149,81 +6256,83 @@ 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//rdoc/markup/to_html.rb#141 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#149 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#385 + # source://rdoc//lib/rdoc/markup/to_html.rb#385 def html_list_name(list_type, open_tag); end - # source://rdoc//rdoc/markup/to_html.rb#26 + # source://rdoc//lib/rdoc/markup/to_html.rb#26 def in_list_entry; end # Adds regexp handlings about link notations. # - # source://rdoc//rdoc/markup/to_html.rb#80 + # source://rdoc//lib/rdoc/markup/to_html.rb#80 def init_link_notation_regexp_handlings; end # Adds regexp handlings. # - # source://rdoc//rdoc/markup/to_html.rb#70 + # source://rdoc//lib/rdoc/markup/to_html.rb#70 def init_regexp_handlings; end # Maps attributes to HTML tags # - # source://rdoc//rdoc/markup/to_html.rb#394 + # source://rdoc//lib/rdoc/markup/to_html.rb#394 def init_tags; end - # source://rdoc//rdoc/markup/to_html.rb#27 + # source://rdoc//lib/rdoc/markup/to_html.rb#27 def list; end # Returns the HTML end-tag for +list_type+ # - # source://rdoc//rdoc/markup/to_html.rb#420 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#404 + # source://rdoc//lib/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//rdoc/markup/to_html.rb#434 + # source://rdoc//lib/rdoc/markup/to_html.rb#434 def parseable?(text); end - # source://rdoc//rdoc/markup/to_html.rb#25 + # source://rdoc//lib/rdoc/markup/to_html.rb#25 def res; end # Prepares the visitor for HTML generation # - # source://rdoc//rdoc/markup/to_html.rb#174 + # source://rdoc//lib/rdoc/markup/to_html.rb#174 def start_accepting; end # Converts +item+ to HTML using RDoc::Text#to_html # - # source://rdoc//rdoc/markup/to_html.rb#448 + # source://rdoc//lib/rdoc/markup/to_html.rb#448 def to_html(item); end end -# source://rdoc//rdoc/markup/to_html.rb#65 +# source://rdoc//lib/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 @@ -6233,29 +6342,29 @@ class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # @raise [ArgumentError] # @return [ToHtmlCrossref] a new instance of ToHtmlCrossref # - # source://rdoc//rdoc/markup/to_html_crossref.rb#32 + # source://rdoc//lib/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//rdoc/markup/to_html_crossref.rb#19 + # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#19 def context; end # RDoc::CodeObject for generating references # - # source://rdoc//rdoc/markup/to_html_crossref.rb#19 + # source://rdoc//lib/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//rdoc/markup/to_html_crossref.rb#61 + # source://rdoc//lib/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//rdoc/markup/to_html_crossref.rb#131 + # source://rdoc//lib/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 @@ -6264,13 +6373,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//rdoc/markup/to_html_crossref.rb#83 + # source://rdoc//lib/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//rdoc/markup/to_html_crossref.rb#102 + # source://rdoc//lib/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. @@ -6280,29 +6389,31 @@ 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//rdoc/markup/to_html_crossref.rb#116 + # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#116 def handle_regexp_RDOCLINK(target); end - # source://rdoc//rdoc/markup/to_html_crossref.rb#46 + # source://rdoc//lib/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//rdoc/markup/to_html_crossref.rb#141 + # source://rdoc//lib/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//rdoc/markup/to_html_crossref.rb#24 + # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#24 def show_hash; end # Should we show '#' characters on method references? # - # source://rdoc//rdoc/markup/to_html_crossref.rb#24 + # source://rdoc//lib/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+ @@ -6310,135 +6421,135 @@ class RDoc::Markup::ToHtmlSnippet < ::RDoc::Markup::ToHtml # # @return [ToHtmlSnippet] a new instance of ToHtmlSnippet # - # source://rdoc//rdoc/markup/to_html_snippet.rb#37 + # source://rdoc//lib/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//rdoc/markup/to_html_snippet.rb#53 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#53 def accept_heading(heading); end # Finishes consumption of +list_item+ # - # source://rdoc//rdoc/markup/to_html_snippet.rb#85 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#85 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//rdoc/markup/to_html_snippet.rb#91 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#91 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//rdoc/markup/to_html_snippet.rb#98 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#98 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//rdoc/markup/to_html_snippet.rb#72 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#72 def accept_paragraph(paragraph); end # Raw sections are untrusted and ignored # - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end # Rules are ignored # - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end # Adds +verbatim+ to the output # - # source://rdoc//rdoc/markup/to_html_snippet.rb#107 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#107 def accept_verbatim(verbatim); end # Throws +:done+ when paragraph_limit paragraphs have been encountered # - # source://rdoc//rdoc/markup/to_html_snippet.rb#198 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#198 def add_paragraph; end # After this many characters the input will be cut off. # - # source://rdoc//rdoc/markup/to_html_snippet.rb#10 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#10 def character_limit; end # The number of characters seen so far. # - # source://rdoc//rdoc/markup/to_html_snippet.rb#15 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#15 def characters; end # Marks up +content+ # - # source://rdoc//rdoc/markup/to_html_snippet.rb#207 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#207 def convert(content); end # Converts flow items +flow+ # - # source://rdoc//rdoc/markup/to_html_snippet.rb#218 + # source://rdoc//lib/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//rdoc/markup/to_html_snippet.rb#171 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#171 def gen_url(url, text); end # Removes escaping from the cross-references in +target+ # - # source://rdoc//rdoc/markup/to_html_snippet.rb#131 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#131 def handle_regexp_CROSSREF(target); end # +target+ is a
# - # source://rdoc//rdoc/markup/to_html_snippet.rb#138 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#138 def handle_regexp_HARD_BREAK(target); end # In snippets, there are no lists # - # source://rdoc//rdoc/markup/to_html_snippet.rb#191 + # source://rdoc//lib/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//rdoc/markup/to_html_snippet.rb#146 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#146 def list_item_start(list_item, list_type); end # The attribute bitmask # - # source://rdoc//rdoc/markup/to_html_snippet.rb#20 + # source://rdoc//lib/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//rdoc/markup/to_html_snippet.rb#264 + # source://rdoc//lib/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//rdoc/markup/to_html_snippet.rb#254 + # source://rdoc//lib/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//rdoc/markup/to_html_snippet.rb#25 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#25 def paragraph_limit; end # Count of paragraphs found # - # source://rdoc//rdoc/markup/to_html_snippet.rb#30 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#30 def paragraphs; end # Prepares the visitor for HTML snippet generation # - # source://rdoc//rdoc/markup/to_html_snippet.rb#122 + # source://rdoc//lib/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//rdoc/markup/to_html_snippet.rb#273 + # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#273 def truncate(text); end end @@ -6448,645 +6559,663 @@ 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//rdoc/markup/to_joined_paragraph.rb#12 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#12 def initialize; end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_heading(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_start(*node); end # Converts the parts of +paragraph+ to a single entry. # - # source://rdoc//rdoc/markup/to_joined_paragraph.rb#25 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#25 def accept_paragraph(paragraph); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_table(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end - # source://rdoc//rdoc/markup/to_joined_paragraph.rb#19 + # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#19 def end_accepting; end - # source://rdoc//rdoc/markup/to_joined_paragraph.rb#16 + # source://rdoc//lib/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//rdoc/markup/to_label.rb#16 + # source://rdoc//lib/rdoc/markup/to_label.rb#16 def initialize(markup = T.unsafe(nil)); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_blank_line(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_heading(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_start(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_paragraph(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end # Converts +text+ to an HTML-safe label # - # source://rdoc//rdoc/markup/to_label.rb#32 + # source://rdoc//lib/rdoc/markup/to_label.rb#32 def convert(text); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/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//rdoc/markup/to_label.rb#42 + # source://rdoc//lib/rdoc/markup/to_label.rb#42 def handle_regexp_CROSSREF(target); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def handle_regexp_HARD_BREAK(*node); end # Converts the TIDYLINK +target+ to just the text part # - # source://rdoc//rdoc/markup/to_label.rb#51 + # source://rdoc//lib/rdoc/markup/to_label.rb#51 def handle_regexp_TIDYLINK(target); end - # source://rdoc//rdoc/markup/to_label.rb#11 + # source://rdoc//lib/rdoc/markup/to_label.rb#11 def res; end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/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//rdoc/markup/to_markdown.rb#12 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#12 def initialize(markup = T.unsafe(nil)); end # Finishes consumption of `list` # - # source://rdoc//rdoc/markup/to_markdown.rb#47 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#47 def accept_list_end(list); end # Finishes consumption of `list_item` # - # source://rdoc//rdoc/markup/to_markdown.rb#56 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#54 def accept_list_item_end(list_item); end # Prepares the visitor for consuming `list_item` # - # source://rdoc//rdoc/markup/to_markdown.rb#75 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#75 def accept_list_item_start(list_item); end # Prepares the visitor for consuming `list` # - # source://rdoc//rdoc/markup/to_markdown.rb#100 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#100 def accept_list_start(list); end # Adds `rule` to the output # - # source://rdoc//rdoc/markup/to_markdown.rb#117 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#117 def accept_rule(rule); end # Outputs `verbatim` indented 4 columns # - # source://rdoc//rdoc/markup/to_markdown.rb#126 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#126 def accept_verbatim(verbatim); end # Creates a Markdown-style URL from +url+ with +text+. # - # source://rdoc//rdoc/markup/to_markdown.rb#140 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#140 def gen_url(url, text); end # Handles rdoc- type links for footnotes. # - # source://rdoc//rdoc/markup/to_markdown.rb#149 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#149 def handle_rdoc_link(url); end # Adds a newline to the output # - # source://rdoc//rdoc/markup/to_markdown.rb#40 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#40 def handle_regexp_HARD_BREAK(target); end # Converts the rdoc-...: links into a Markdown.style links. # - # source://rdoc//rdoc/markup/to_markdown.rb#187 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#187 def handle_regexp_RDOCLINK(target); end # Converts the RDoc markup tidylink into a Markdown.style link. # - # source://rdoc//rdoc/markup/to_markdown.rb#169 + # source://rdoc//lib/rdoc/markup/to_markdown.rb#169 def handle_regexp_TIDYLINK(target); end # Maps attributes to HTML sequences # - # source://rdoc//rdoc/markup/to_markdown.rb#31 + # source://rdoc//lib/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//rdoc/markup/to_rdoc.rb#45 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#45 def initialize(markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#77 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#77 def accept_blank_line(blank_line); end # Adds +paragraph+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#84 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#84 def accept_block_quote(block_quote); end # Adds +heading+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#99 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#99 def accept_heading(heading); end # Adds +paragraph+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#203 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#211 def accept_indented_paragraph(paragraph); end # Finishes consumption of +list+ # - # source://rdoc//rdoc/markup/to_rdoc.rb#110 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#110 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//rdoc/markup/to_rdoc.rb#119 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#119 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//rdoc/markup/to_rdoc.rb#143 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#143 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//rdoc/markup/to_rdoc.rb#168 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#176 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#195 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#203 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#213 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#221 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#220 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#228 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#243 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#251 def accept_table(header, body, aligns); end # Outputs +verbatim+ indented 2 columns # - # source://rdoc//rdoc/markup/to_rdoc.rb#229 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#237 def accept_verbatim(verbatim); end # Applies attribute-specific markup to +text+ using RDoc::AttributeManager # - # source://rdoc//rdoc/markup/to_rdoc.rb#271 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#279 def attributes(text); end # Returns the generated output # - # source://rdoc//rdoc/markup/to_rdoc.rb#279 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#287 def end_accepting; end # Adds a newline to the output # - # source://rdoc//rdoc/markup/to_rdoc.rb#295 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#303 def handle_regexp_HARD_BREAK(target); end # Removes preceding \\ from the suppressed crossref +target+ # - # source://rdoc//rdoc/markup/to_rdoc.rb#286 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#294 def handle_regexp_SUPPRESSED_CROSSREF(target); end # Current indent amount for output in characters # - # source://rdoc//rdoc/markup/to_rdoc.rb#10 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 def indent; end # Current indent amount for output in characters # - # source://rdoc//rdoc/markup/to_rdoc.rb#10 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 def indent=(_arg0); end # Maps attributes to HTML sequences # - # source://rdoc//rdoc/markup/to_rdoc.rb#68 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#68 def init_tags; end # Stack of current list indexes for alphabetic and numeric lists # - # source://rdoc//rdoc/markup/to_rdoc.rb#20 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#20 def list_index; end # Stack of list types # - # source://rdoc//rdoc/markup/to_rdoc.rb#25 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#25 def list_type; end # Stack of list widths for indentation # - # source://rdoc//rdoc/markup/to_rdoc.rb#30 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#30 def list_width; end # Prefix for the next list item. See #use_prefix # - # source://rdoc//rdoc/markup/to_rdoc.rb#35 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#35 def prefix; end # Output accumulator # - # source://rdoc//rdoc/markup/to_rdoc.rb#40 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#40 def res; end # Prepares the visitor for text generation # - # source://rdoc//rdoc/markup/to_rdoc.rb#302 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#310 def start_accepting; end # Adds the stored #prefix to the output and clears it. Lists generate a # prefix for later consumption. # - # source://rdoc//rdoc/markup/to_rdoc.rb#316 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#324 def use_prefix; end # Output width in characters # - # source://rdoc//rdoc/markup/to_rdoc.rb#15 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 def width; end # Output width in characters # - # source://rdoc//rdoc/markup/to_rdoc.rb#15 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 def width=(_arg0); end # Wraps +text+ to #width # - # source://rdoc//rdoc/markup/to_rdoc.rb#326 + # source://rdoc//lib/rdoc/markup/to_rdoc.rb#334 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//rdoc/markup/to_table_of_contents.rb#27 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#27 def initialize; end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_blank_line(*node); end # :stopdoc: # - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end # Adds +document+ to the output, using its heading cutoff if present # - # source://rdoc//rdoc/markup/to_table_of_contents.rb#36 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#36 def accept_document(document); end # Adds +heading+ to the table of contents # - # source://rdoc//rdoc/markup/to_table_of_contents.rb#45 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#45 def accept_heading(heading); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_end_bullet(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_list_start(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_paragraph(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_table(*node); end - # source://rdoc//rdoc/markup/formatter.rb#188 + # source://rdoc//lib/rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end # Returns the table of contents # - # source://rdoc//rdoc/markup/to_table_of_contents.rb#52 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#52 def end_accepting; end # Omits headings with a level less than the given level. # - # source://rdoc//rdoc/markup/to_table_of_contents.rb#25 + # source://rdoc//lib/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//rdoc/markup/to_table_of_contents.rb#25 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#25 def omit_headings_below=(_arg0); end # Output accumulator # - # source://rdoc//rdoc/markup/to_table_of_contents.rb#20 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#20 def res; end # Prepares the visitor for text generation # - # source://rdoc//rdoc/markup/to_table_of_contents.rb#59 + # source://rdoc//lib/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//rdoc/markup/to_table_of_contents.rb#67 + # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#67 def suppressed?(heading); end class << self # Singleton for table-of-contents generation # - # source://rdoc//rdoc/markup/to_table_of_contents.rb#13 + # source://rdoc//lib/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//rdoc/markup/to_test.rb#55 + # source://rdoc//lib/rdoc/markup/to_test.rb#55 def accept_blank_line(blank_line); end - # source://rdoc//rdoc/markup/to_test.rb#59 + # source://rdoc//lib/rdoc/markup/to_test.rb#59 def accept_heading(heading); end - # source://rdoc//rdoc/markup/to_test.rb#44 + # source://rdoc//lib/rdoc/markup/to_test.rb#44 def accept_list_end(list); end - # source://rdoc//rdoc/markup/to_test.rb#52 + # source://rdoc//lib/rdoc/markup/to_test.rb#52 def accept_list_item_end(list_item); end - # source://rdoc//rdoc/markup/to_test.rb#48 + # source://rdoc//lib/rdoc/markup/to_test.rb#48 def accept_list_item_start(list_item); end - # source://rdoc//rdoc/markup/to_test.rb#33 + # source://rdoc//lib/rdoc/markup/to_test.rb#33 def accept_list_start(list); end - # source://rdoc//rdoc/markup/to_test.rb#21 + # source://rdoc//lib/rdoc/markup/to_test.rb#21 def accept_paragraph(paragraph); end - # source://rdoc//rdoc/markup/to_test.rb#25 + # source://rdoc//lib/rdoc/markup/to_test.rb#25 def accept_raw(raw); end - # source://rdoc//rdoc/markup/to_test.rb#63 + # source://rdoc//lib/rdoc/markup/to_test.rb#63 def accept_rule(rule); end - # source://rdoc//rdoc/markup/to_test.rb#29 + # source://rdoc//lib/rdoc/markup/to_test.rb#29 def accept_verbatim(verbatim); end - # source://rdoc//rdoc/markup/to_test.rb#17 + # source://rdoc//lib/rdoc/markup/to_test.rb#17 def end_accepting; end # :section: Visitor # - # source://rdoc//rdoc/markup/to_test.rb#12 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#21 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 def accept_blank_line(markup_item); end # Adds tts from +block_quote+ to the output # - # source://rdoc//rdoc/markup/to_tt_only.rb#30 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 def accept_heading(markup_item); end # Pops the list type for +list+ from #list_type # - # source://rdoc//rdoc/markup/to_tt_only.rb#37 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 def accept_list_item_end(markup_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//rdoc/markup/to_tt_only.rb#51 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#44 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#44 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//rdoc/markup/to_tt_only.rb#63 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#71 + # source://rdoc//lib/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//rdoc/markup/to_tt_only.rb#107 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#107 def end_accepting; end # Stack of list types # - # source://rdoc//rdoc/markup/to_tt_only.rb#11 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#11 def list_type; end # Output accumulator # - # source://rdoc//rdoc/markup/to_tt_only.rb#16 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#16 def res; end # Prepares the visitor for gathering tt sections # - # source://rdoc//rdoc/markup/to_tt_only.rb#114 + # source://rdoc//lib/rdoc/markup/to_tt_only.rb#114 def start_accepting; end # Extracts tt sections from +text+ # - # source://rdoc//rdoc/markup/to_tt_only.rb#84 + # source://rdoc//lib/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//rdoc/markup/verbatim.rb#12 + # source://rdoc//lib/rdoc/markup/verbatim.rb#12 def initialize(*parts); end - # source://rdoc//rdoc/markup/verbatim.rb#18 + # source://rdoc//lib/rdoc/markup/verbatim.rb#18 def ==(other); end # Calls #accept_verbatim on +visitor+ # - # source://rdoc//rdoc/markup/verbatim.rb#25 + # source://rdoc//lib/rdoc/markup/verbatim.rb#25 def accept(visitor); end # Format of this verbatim section # - # source://rdoc//rdoc/markup/verbatim.rb#10 + # source://rdoc//lib/rdoc/markup/verbatim.rb#10 def format; end # Format of this verbatim section # - # source://rdoc//rdoc/markup/verbatim.rb#10 + # source://rdoc//lib/rdoc/markup/verbatim.rb#10 def format=(_arg0); end # Collapses 3+ newlines into two newlines # - # source://rdoc//rdoc/markup/verbatim.rb#32 + # source://rdoc//lib/rdoc/markup/verbatim.rb#32 def normalize; end - # source://rdoc//rdoc/markup/verbatim.rb#53 + # source://rdoc//lib/rdoc/markup/verbatim.rb#53 def pretty_print(q); end # Is this verbatim section Ruby code? # # @return [Boolean] # - # source://rdoc//rdoc/markup/verbatim.rb#71 + # source://rdoc//lib/rdoc/markup/verbatim.rb#71 def ruby?; end # The text of the section # - # source://rdoc//rdoc/markup/verbatim.rb#79 + # source://rdoc//lib/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 @@ -7097,15 +7226,15 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @return [MethodAttr] a new instance of MethodAttr # - # source://rdoc//rdoc/method_attr.rb#78 + # source://rdoc//lib/rdoc/method_attr.rb#78 def initialize(text, name); end # Order by #singleton then #name # - # source://rdoc//rdoc/method_attr.rb#113 + # source://rdoc//lib/rdoc/method_attr.rb#113 def <=>(other); end - # source://rdoc//rdoc/method_attr.rb#121 + # source://rdoc//lib/rdoc/method_attr.rb#121 def ==(other); end # Abstract method. Contexts in their building phase call this @@ -7118,7 +7247,7 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @raise [NotImplementedError] # - # source://rdoc//rdoc/method_attr.rb#209 + # source://rdoc//lib/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 @@ -7129,50 +7258,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//rdoc/generator/markup.rb#77 + # source://rdoc//lib/rdoc/generator/markup.rb#77 def add_line_numbers(src); end # Array of other names for this method/attribute # - # source://rdoc//rdoc/method_attr.rb#32 + # source://rdoc//lib/rdoc/method_attr.rb#32 def aliases; end # HTML fragment reference for this method # - # source://rdoc//rdoc/method_attr.rb#216 + # source://rdoc//lib/rdoc/method_attr.rb#216 def aref; end # Prefix for +aref+, defined by subclasses. # # @raise [NotImplementedError] # - # source://rdoc//rdoc/method_attr.rb#225 + # source://rdoc//lib/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//rdoc/method_attr.rb#64 + # source://rdoc//lib/rdoc/method_attr.rb#64 def arglists; end # Parameters yielded by the called block # - # source://rdoc//rdoc/method_attr.rb#49 + # source://rdoc//lib/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//rdoc/method_attr.rb#233 + # source://rdoc//lib/rdoc/method_attr.rb#233 def block_params=(value); end # Different ways to call this method # - # source://rdoc//rdoc/method_attr.rb#59 + # source://rdoc//lib/rdoc/method_attr.rb#59 def call_seq; end # Different ways to call this method # - # source://rdoc//rdoc/method_attr.rb#59 + # source://rdoc//lib/rdoc/method_attr.rb#59 def call_seq=(_arg0); end # A method/attribute is documented if any of the following is true: @@ -7182,61 +7311,61 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//rdoc/method_attr.rb#132 + # source://rdoc//lib/rdoc/method_attr.rb#132 def documented?; end - # source://rdoc//rdoc/method_attr.rb#178 + # source://rdoc//lib/rdoc/method_attr.rb#178 def find_method_or_attribute(name); end - # source://rdoc//rdoc/method_attr.rb#166 + # source://rdoc//lib/rdoc/method_attr.rb#166 def find_see; end # Full method/attribute name including namespace # - # source://rdoc//rdoc/method_attr.rb#300 + # source://rdoc//lib/rdoc/method_attr.rb#300 def full_name; end # HTML id-friendly method/attribute name # - # source://rdoc//rdoc/method_attr.rb#291 + # source://rdoc//lib/rdoc/method_attr.rb#291 def html_name; end - # source://rdoc//rdoc/method_attr.rb#105 + # source://rdoc//lib/rdoc/method_attr.rb#105 def initialize_visibility; end - # source://rdoc//rdoc/method_attr.rb#304 + # source://rdoc//lib/rdoc/method_attr.rb#304 def inspect; end # The method/attribute we're aliasing # - # source://rdoc//rdoc/method_attr.rb#37 + # source://rdoc//lib/rdoc/method_attr.rb#37 def is_alias_for; end # The method/attribute we're aliasing # - # source://rdoc//rdoc/method_attr.rb#37 + # source://rdoc//lib/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//rdoc/generator/markup.rb#101 + # source://rdoc//lib/rdoc/generator/markup.rb#101 def markup_code; end # Name of this method/attribute. # - # source://rdoc//rdoc/method_attr.rb#12 + # source://rdoc//lib/rdoc/method_attr.rb#12 def name; end # Name of this method/attribute. # - # source://rdoc//rdoc/method_attr.rb#12 + # source://rdoc//lib/rdoc/method_attr.rb#12 def name=(_arg0); end # '::' for a class method/attribute, '#' for an instance method. # - # source://rdoc//rdoc/method_attr.rb#319 + # source://rdoc//lib/rdoc/method_attr.rb#319 def name_prefix; end # Name for output to HTML. For class methods the full name with a "." is @@ -7245,46 +7374,46 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # This is to help prevent people from using :: to call class methods. # - # source://rdoc//rdoc/method_attr.rb#330 + # source://rdoc//lib/rdoc/method_attr.rb#330 def output_name(context); end # Pretty parameter list for this method # - # source://rdoc//rdoc/method_attr.rb#69 + # source://rdoc//lib/rdoc/method_attr.rb#69 def param_seq; end # Parameters for this method # - # source://rdoc//rdoc/method_attr.rb#54 + # source://rdoc//lib/rdoc/method_attr.rb#54 def params; end # Parameters for this method # - # source://rdoc//rdoc/method_attr.rb#54 + # source://rdoc//lib/rdoc/method_attr.rb#54 def params=(_arg0); end # Name of our parent with special handling for un-marshaled methods # - # source://rdoc//rdoc/method_attr.rb#360 + # source://rdoc//lib/rdoc/method_attr.rb#360 def parent_name; end # Path to this method for use with HTML generator output. # - # source://rdoc//rdoc/method_attr.rb#353 + # source://rdoc//lib/rdoc/method_attr.rb#353 def path; end # Method/attribute name with class/instance indicator # - # source://rdoc//rdoc/method_attr.rb#339 + # source://rdoc//lib/rdoc/method_attr.rb#339 def pretty_name; end - # source://rdoc//rdoc/method_attr.rb#364 + # source://rdoc//lib/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//rdoc/method_attr.rb#398 + # source://rdoc//lib/rdoc/method_attr.rb#398 def search_record; end # A method/attribute to look at, @@ -7300,85 +7429,87 @@ 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//rdoc/method_attr.rb#152 + # source://rdoc//lib/rdoc/method_attr.rb#152 def see; end # Is this a singleton method/attribute? # - # source://rdoc//rdoc/method_attr.rb#22 + # source://rdoc//lib/rdoc/method_attr.rb#22 def singleton; end # Is this a singleton method/attribute? # - # source://rdoc//rdoc/method_attr.rb#22 + # source://rdoc//lib/rdoc/method_attr.rb#22 def singleton=(_arg0); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//rdoc/method_attr.rb#160 + # source://rdoc//lib/rdoc/method_attr.rb#160 def store=(store); end # Source file token stream # - # source://rdoc//rdoc/method_attr.rb#27 + # source://rdoc//lib/rdoc/method_attr.rb#27 def text; end - # source://rdoc//rdoc/method_attr.rb#410 + # source://rdoc//lib/rdoc/method_attr.rb#410 def to_s; end # Type of method/attribute (class or instance) # - # source://rdoc//rdoc/method_attr.rb#346 + # source://rdoc//lib/rdoc/method_attr.rb#346 def type; end # public, protected, private # - # source://rdoc//rdoc/method_attr.rb#17 + # source://rdoc//lib/rdoc/method_attr.rb#17 def visibility; end # public, protected, private # - # source://rdoc//rdoc/method_attr.rb#17 + # source://rdoc//lib/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//rdoc/method_attr.rb#101 + # source://rdoc//lib/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//rdoc/mixin.rb#16 + # source://rdoc//lib/rdoc/mixin.rb#16 def initialize(name, comment); end # Mixins are sorted by name # - # source://rdoc//rdoc/mixin.rb#26 + # source://rdoc//lib/rdoc/mixin.rb#26 def <=>(other); end - # source://rdoc//rdoc/mixin.rb#32 + # source://rdoc//lib/rdoc/mixin.rb#32 def ==(other); end - # source://rdoc//rdoc/mixin.rb#32 + # source://rdoc//lib/rdoc/mixin.rb#32 def eql?(other); end # Full name based on #module # - # source://rdoc//rdoc/mixin.rb#41 + # source://rdoc//lib/rdoc/mixin.rb#41 def full_name; end - # source://rdoc//rdoc/mixin.rb#46 + # source://rdoc//lib/rdoc/mixin.rb#46 def hash; end - # source://rdoc//rdoc/mixin.rb#50 + # source://rdoc//lib/rdoc/mixin.rb#50 def inspect; end # Attempts to locate the included module object. Returns the name if not @@ -7397,86 +7528,90 @@ class RDoc::Mixin < ::RDoc::CodeObject # # As of the beginning of October, 2011, no gem includes nonexistent modules. # - # source://rdoc//rdoc/mixin.rb#75 + # source://rdoc//lib/rdoc/mixin.rb#75 def module; end # Name of included module # - # source://rdoc//rdoc/mixin.rb#11 + # source://rdoc//lib/rdoc/mixin.rb#11 def name; end # Name of included module # - # source://rdoc//rdoc/mixin.rb#11 + # source://rdoc//lib/rdoc/mixin.rb#11 def name=(_arg0); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//rdoc/mixin.rb#110 + # source://rdoc//lib/rdoc/mixin.rb#110 def store=(store); end - # source://rdoc//rdoc/mixin.rb#116 + # source://rdoc//lib/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//rdoc/normal_class.rb#12 + # source://rdoc//lib/rdoc/normal_class.rb#12 def ancestors; end - # source://rdoc//rdoc/normal_class.rb#24 + # source://rdoc//lib/rdoc/normal_class.rb#24 def aref_prefix; end # The definition of this class, class MyClassName # - # source://rdoc//rdoc/normal_class.rb#31 + # source://rdoc//lib/rdoc/normal_class.rb#31 def definition; end - # source://rdoc//rdoc/normal_class.rb#35 + # source://rdoc//lib/rdoc/normal_class.rb#35 def direct_ancestors; end - # source://rdoc//rdoc/normal_class.rb#39 + # source://rdoc//lib/rdoc/normal_class.rb#39 def inspect; end - # source://rdoc//rdoc/normal_class.rb#56 + # source://rdoc//lib/rdoc/normal_class.rb#56 def pretty_print(q); end - # source://rdoc//rdoc/normal_class.rb#47 + # source://rdoc//lib/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//rdoc/normal_module.rb#7 + # source://rdoc//lib/rdoc/normal_module.rb#7 def aref_prefix; end # The definition of this module, module MyModuleName # - # source://rdoc//rdoc/normal_module.rb#21 + # source://rdoc//lib/rdoc/normal_module.rb#21 def definition; end - # source://rdoc//rdoc/normal_module.rb#11 + # source://rdoc//lib/rdoc/normal_module.rb#11 def inspect; end # This is a module, returns true # # @return [Boolean] # - # source://rdoc//rdoc/normal_module.rb#28 + # source://rdoc//lib/rdoc/normal_module.rb#28 def module?; end - # source://rdoc//rdoc/normal_module.rb#32 + # source://rdoc//lib/rdoc/normal_module.rb#32 def pretty_print(q); end # Modules don't have one, raises NoMethodError # # @raise [NoMethodError] # - # source://rdoc//rdoc/normal_module.rb#69 + # source://rdoc//lib/rdoc/normal_module.rb#69 def superclass; end end @@ -7548,342 +7683,344 @@ 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//rdoc/options.rb#346 + # source://rdoc//lib/rdoc/options.rb#347 def initialize(loaded_options = T.unsafe(nil)); end - # source://rdoc//rdoc/options.rb#459 + # source://rdoc//lib/rdoc/options.rb#460 def ==(other); end # Character-set for HTML output. #encoding is preferred over #charset # - # source://rdoc//rdoc/options.rb#151 + # source://rdoc//lib/rdoc/options.rb#152 def charset; end # Character-set for HTML output. #encoding is preferred over #charset # - # source://rdoc//rdoc/options.rb#151 + # source://rdoc//lib/rdoc/options.rb#152 def charset=(_arg0); end # Check that the files on the command line exist # - # source://rdoc//rdoc/options.rb#483 + # source://rdoc//lib/rdoc/options.rb#484 def check_files; end # Ensure only one generator is loaded # - # source://rdoc//rdoc/options.rb#504 + # source://rdoc//lib/rdoc/options.rb#505 def check_generator; end # If true, only report on undocumented files # - # source://rdoc//rdoc/options.rb#243 + # source://rdoc//lib/rdoc/options.rb#244 def coverage_report; end # If true, only report on undocumented files # - # source://rdoc//rdoc/options.rb#243 + # source://rdoc//lib/rdoc/options.rb#244 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//rdoc/options.rb#516 + # source://rdoc//lib/rdoc/options.rb#517 def default_title=(string); end # If true, RDoc will not write any files. # - # source://rdoc//rdoc/options.rb#156 + # source://rdoc//lib/rdoc/options.rb#157 def dry_run; end # If true, RDoc will not write any files. # - # source://rdoc//rdoc/options.rb#156 + # source://rdoc//lib/rdoc/options.rb#157 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//rdoc/options.rb#163 + # source://rdoc//lib/rdoc/options.rb#164 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//rdoc/options.rb#163 + # source://rdoc//lib/rdoc/options.rb#164 def encoding=(_arg0); end # Create a regexp for #exclude # - # source://rdoc//rdoc/options.rb#544 + # source://rdoc//lib/rdoc/options.rb#545 def exclude; end # Files matching this pattern will be excluded # - # source://rdoc//rdoc/options.rb#168 + # source://rdoc//lib/rdoc/options.rb#169 def exclude=(_arg0); end # The list of files to be processed # - # source://rdoc//rdoc/options.rb#173 + # source://rdoc//lib/rdoc/options.rb#174 def files; end # The list of files to be processed # - # source://rdoc//rdoc/options.rb#173 + # source://rdoc//lib/rdoc/options.rb#174 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//rdoc/options.rb#560 + # source://rdoc//lib/rdoc/options.rb#561 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//rdoc/options.rb#601 + # source://rdoc//lib/rdoc/options.rb#602 def finish_page_dir; end # Create the output even if the output directory does not look # like an rdoc output directory # - # source://rdoc//rdoc/options.rb#179 + # source://rdoc//lib/rdoc/options.rb#180 def force_output; end # Create the output even if the output directory does not look # like an rdoc output directory # - # source://rdoc//rdoc/options.rb#179 + # source://rdoc//lib/rdoc/options.rb#180 def force_output=(_arg0); end # Scan newer sources than the flag file if true. # - # source://rdoc//rdoc/options.rb#184 + # source://rdoc//lib/rdoc/options.rb#185 def force_update; end # Scan newer sources than the flag file if true. # - # source://rdoc//rdoc/options.rb#184 + # source://rdoc//lib/rdoc/options.rb#185 def force_update=(_arg0); end # Formatter to mark up text with # - # source://rdoc//rdoc/options.rb#189 + # source://rdoc//lib/rdoc/options.rb#190 def formatter; end # Formatter to mark up text with # - # source://rdoc//rdoc/options.rb#189 + # source://rdoc//lib/rdoc/options.rb#190 def formatter=(_arg0); end # Description of the output generator (set with the --format option) # - # source://rdoc//rdoc/options.rb#194 + # source://rdoc//lib/rdoc/options.rb#195 def generator; end # Description of the output generator (set with the --format option) # - # source://rdoc//rdoc/options.rb#194 + # source://rdoc//lib/rdoc/options.rb#195 def generator=(_arg0); end # Returns a properly-space list of generators and their descriptions. # - # source://rdoc//rdoc/options.rb#620 + # source://rdoc//lib/rdoc/options.rb#621 def generator_descriptions; end # For #== # - # source://rdoc//rdoc/options.rb#199 + # source://rdoc//lib/rdoc/options.rb#200 def generator_name; end # Loaded generator options. Used to prevent --help from loading the same # options multiple times. # - # source://rdoc//rdoc/options.rb#205 + # source://rdoc//lib/rdoc/options.rb#206 def generator_options; end # Loaded generator options. Used to prevent --help from loading the same # options multiple times. # - # source://rdoc//rdoc/options.rb#205 + # source://rdoc//lib/rdoc/options.rb#206 def generator_options=(_arg0); end # Old rdoc behavior: hyperlink all words that match a method name, # even if not preceded by '#' or '::' # - # source://rdoc//rdoc/options.rb#211 + # source://rdoc//lib/rdoc/options.rb#212 def hyperlink_all; end # Old rdoc behavior: hyperlink all words that match a method name, # even if not preceded by '#' or '::' # - # source://rdoc//rdoc/options.rb#211 + # source://rdoc//lib/rdoc/options.rb#212 def hyperlink_all=(_arg0); end - # source://rdoc//rdoc/options.rb#351 + # source://rdoc//lib/rdoc/options.rb#352 def init_ivars; end - # source://rdoc//rdoc/options.rb#396 + # source://rdoc//lib/rdoc/options.rb#397 def init_with(map); end # Include line numbers in the source code # - # source://rdoc//rdoc/options.rb#216 + # source://rdoc//lib/rdoc/options.rb#217 def line_numbers; end # Include line numbers in the source code # - # source://rdoc//rdoc/options.rb#216 + # source://rdoc//lib/rdoc/options.rb#217 def line_numbers=(_arg0); end # The output locale. # - # source://rdoc//rdoc/options.rb#221 + # source://rdoc//lib/rdoc/options.rb#222 def locale; end # The output locale. # - # source://rdoc//rdoc/options.rb#221 + # source://rdoc//lib/rdoc/options.rb#222 def locale=(_arg0); end # The directory where locale data live. # - # source://rdoc//rdoc/options.rb#226 + # source://rdoc//lib/rdoc/options.rb#227 def locale_dir; end # The directory where locale data live. # - # source://rdoc//rdoc/options.rb#226 + # source://rdoc//lib/rdoc/options.rb#227 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//rdoc/options.rb#232 + # source://rdoc//lib/rdoc/options.rb#233 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//rdoc/options.rb#232 + # source://rdoc//lib/rdoc/options.rb#233 def main_page=(_arg0); end # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc' # and 'rd' are also built-in. # - # source://rdoc//rdoc/options.rb#238 + # source://rdoc//lib/rdoc/options.rb#239 def markup; end # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc' # and 'rd' are also built-in. # - # source://rdoc//rdoc/options.rb#238 + # source://rdoc//lib/rdoc/options.rb#239 def markup=(_arg0); end # The name of the output directory # - # source://rdoc//rdoc/options.rb#248 + # source://rdoc//lib/rdoc/options.rb#249 def op_dir; end # The name of the output directory # - # source://rdoc//rdoc/options.rb#248 + # source://rdoc//lib/rdoc/options.rb#249 def op_dir=(_arg0); end # The OptionParser for this instance # - # source://rdoc//rdoc/options.rb#253 + # source://rdoc//lib/rdoc/options.rb#254 def option_parser; end # The OptionParser for this instance # - # source://rdoc//rdoc/options.rb#253 + # source://rdoc//lib/rdoc/options.rb#254 def option_parser=(_arg0); end # Output heading decorations? # - # source://rdoc//rdoc/options.rb#257 + # source://rdoc//lib/rdoc/options.rb#258 def output_decoration; end # Output heading decorations? # - # source://rdoc//rdoc/options.rb#257 + # source://rdoc//lib/rdoc/options.rb#258 def output_decoration=(_arg0); end - # source://rdoc//rdoc/options.rb#427 + # source://rdoc//lib/rdoc/options.rb#428 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//rdoc/options.rb#263 + # source://rdoc//lib/rdoc/options.rb#264 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//rdoc/options.rb#263 + # source://rdoc//lib/rdoc/options.rb#264 def page_dir=(_arg0); end # Parses command line options. # - # source://rdoc//rdoc/options.rb#646 + # source://rdoc//lib/rdoc/options.rb#647 def parse(argv); end # Is RDoc in pipe mode? # - # source://rdoc//rdoc/options.rb#268 + # source://rdoc//lib/rdoc/options.rb#269 def pipe; end # Is RDoc in pipe mode? # - # source://rdoc//rdoc/options.rb#268 + # source://rdoc//lib/rdoc/options.rb#269 def pipe=(_arg0); end # Don't display progress as we process the files # - # source://rdoc//rdoc/options.rb#1191 + # source://rdoc//lib/rdoc/options.rb#1192 def quiet; end # Set quietness to +bool+ # - # source://rdoc//rdoc/options.rb#1198 + # source://rdoc//lib/rdoc/options.rb#1199 def quiet=(bool); end # Array of directories to search for files to satisfy an :include: # - # source://rdoc//rdoc/options.rb#273 + # source://rdoc//lib/rdoc/options.rb#274 def rdoc_include; end # Array of directories to search for files to satisfy an :include: # - # source://rdoc//rdoc/options.rb#273 + # source://rdoc//lib/rdoc/options.rb#274 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//rdoc/options.rb#280 + # source://rdoc//lib/rdoc/options.rb#281 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//rdoc/options.rb#280 + # source://rdoc//lib/rdoc/options.rb#281 def root=(_arg0); end # Removes directories from +path+ that are outside the current directory # - # source://rdoc//rdoc/options.rb#1205 + # source://rdoc//lib/rdoc/options.rb#1206 def sanitize_path(path); end # Set up an output generator for the named +generator_name+. @@ -7892,117 +8029,117 @@ class RDoc::Options # the options instance. This allows generators to add custom options or set # default options. # - # source://rdoc//rdoc/options.rb#1232 + # source://rdoc//lib/rdoc/options.rb#1233 def setup_generator(generator_name = T.unsafe(nil)); end # Include the '#' at the front of hyperlinked instance method names # - # source://rdoc//rdoc/options.rb#285 + # source://rdoc//lib/rdoc/options.rb#286 def show_hash; end # Include the '#' at the front of hyperlinked instance method names # - # source://rdoc//rdoc/options.rb#285 + # source://rdoc//lib/rdoc/options.rb#286 def show_hash=(_arg0); end # Indicates if files of test suites should be skipped # - # source://rdoc//rdoc/options.rb#344 + # source://rdoc//lib/rdoc/options.rb#345 def skip_tests; end # Indicates if files of test suites should be skipped # - # source://rdoc//rdoc/options.rb#344 + # source://rdoc//lib/rdoc/options.rb#345 def skip_tests=(_arg0); end # Directory to copy static files from # - # source://rdoc//rdoc/options.rb#290 + # source://rdoc//lib/rdoc/options.rb#291 def static_path; end # Directory to copy static files from # - # source://rdoc//rdoc/options.rb#290 + # source://rdoc//lib/rdoc/options.rb#291 def static_path=(_arg0); end # The number of columns in a tab # - # source://rdoc//rdoc/options.rb#295 + # source://rdoc//lib/rdoc/options.rb#296 def tab_width; end # The number of columns in a tab # - # source://rdoc//rdoc/options.rb#295 + # source://rdoc//lib/rdoc/options.rb#296 def tab_width=(_arg0); end # Template to be used when generating output # - # source://rdoc//rdoc/options.rb#300 + # source://rdoc//lib/rdoc/options.rb#301 def template; end # Template to be used when generating output # - # source://rdoc//rdoc/options.rb#300 + # source://rdoc//lib/rdoc/options.rb#301 def template=(_arg0); end # Directory the template lives in # - # source://rdoc//rdoc/options.rb#305 + # source://rdoc//lib/rdoc/options.rb#306 def template_dir; end # Directory the template lives in # - # source://rdoc//rdoc/options.rb#305 + # source://rdoc//lib/rdoc/options.rb#306 def template_dir=(_arg0); end # Finds the template dir for +template+ # - # source://rdoc//rdoc/options.rb#1254 + # source://rdoc//lib/rdoc/options.rb#1255 def template_dir_for(template); end # Additional template stylesheets # - # source://rdoc//rdoc/options.rb#310 + # source://rdoc//lib/rdoc/options.rb#311 def template_stylesheets; end # Additional template stylesheets # - # source://rdoc//rdoc/options.rb#310 + # source://rdoc//lib/rdoc/options.rb#311 def template_stylesheets=(_arg0); end # Documentation title # - # source://rdoc//rdoc/options.rb#315 + # source://rdoc//lib/rdoc/options.rb#316 def title; end # Documentation title # - # source://rdoc//rdoc/options.rb#315 + # source://rdoc//lib/rdoc/options.rb#316 def title=(_arg0); end # For dumping YAML # - # source://rdoc//rdoc/options.rb#523 + # source://rdoc//lib/rdoc/options.rb#524 def to_yaml(*options); end # Should RDoc update the timestamps in the output dir? # - # source://rdoc//rdoc/options.rb#320 + # source://rdoc//lib/rdoc/options.rb#321 def update_output_dir; end # Should RDoc update the timestamps in the output dir? # - # source://rdoc//rdoc/options.rb#320 + # source://rdoc//lib/rdoc/options.rb#321 def update_output_dir=(_arg0); end # Verbosity, zero means quiet # - # source://rdoc//rdoc/options.rb#325 + # source://rdoc//lib/rdoc/options.rb#326 def verbosity; end # Verbosity, zero means quiet # - # source://rdoc//rdoc/options.rb#325 + # source://rdoc//lib/rdoc/options.rb#326 def verbosity=(_arg0); end # Minimum visibility of a documented method. One of +:public+, +:protected+, @@ -8011,7 +8148,7 @@ class RDoc::Options # The +:nodoc+ visibility ignores all directives related to visibility. The # directive. # - # source://rdoc//rdoc/options.rb#340 + # source://rdoc//lib/rdoc/options.rb#341 def visibility; end # Sets the minimum visibility of a documented method. @@ -8021,31 +8158,31 @@ class RDoc::Options # When +:all+ is passed, visibility is set to +:private+, similarly to # RDOCOPT="--all", see #visibility for more information. # - # source://rdoc//rdoc/options.rb#1271 + # source://rdoc//lib/rdoc/options.rb#1272 def visibility=(visibility); end # Displays a warning using Kernel#warn if we're being verbose # - # source://rdoc//rdoc/options.rb#1283 + # source://rdoc//lib/rdoc/options.rb#1284 def warn(message); end # URL of web cvs frontend # - # source://rdoc//rdoc/options.rb#330 + # source://rdoc//lib/rdoc/options.rb#331 def webcvs; end # URL of web cvs frontend # - # source://rdoc//rdoc/options.rb#330 + # source://rdoc//lib/rdoc/options.rb#331 def webcvs=(_arg0); end # Writes the YAML file .rdoc_options to the current directory containing the # parsed options. # - # source://rdoc//rdoc/options.rb#1291 + # source://rdoc//lib/rdoc/options.rb#1292 def write_options; end - # source://rdoc//rdoc/options.rb#423 + # source://rdoc//lib/rdoc/options.rb#424 def yaml_initialize(tag, map); end class << self @@ -8054,7 +8191,7 @@ class RDoc::Options # # @raise [RDoc::Error] # - # source://rdoc//rdoc/options.rb#1305 + # source://rdoc//lib/rdoc/options.rb#1306 def load_options; end end end @@ -8086,6 +8223,8 @@ 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 @@ -8094,24 +8233,24 @@ class RDoc::Parser # # @return [Parser] a new instance of Parser # - # source://rdoc//rdoc/parser.rb#252 + # source://rdoc//lib/rdoc/parser.rb#254 def initialize(top_level, file_name, content, options, stats); end # The name of the file being parsed # - # source://rdoc//rdoc/parser.rb#52 + # source://rdoc//lib/rdoc/parser.rb#52 def file_name; end # Normalizes tabs in +body+ # - # source://rdoc//rdoc/parser.rb#272 + # source://rdoc//lib/rdoc/parser.rb#274 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//rdoc/parser.rb#58 + # source://rdoc//lib/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 @@ -8119,36 +8258,36 @@ class RDoc::Parser # # @return [Boolean] # - # source://rdoc//rdoc/parser.rb#74 + # source://rdoc//lib/rdoc/parser.rb#74 def binary?(file); end # Return a parser that can handle a particular extension # - # source://rdoc//rdoc/parser.rb#107 + # source://rdoc//lib/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//rdoc/parser.rb#120 + # source://rdoc//lib/rdoc/parser.rb#120 def can_parse_by_name(file_name); end # Returns the file type from the modeline in +file_name+ # - # source://rdoc//rdoc/parser.rb#141 + # source://rdoc//lib/rdoc/parser.rb#143 def check_modeline(file_name); end # Finds and instantiates the correct parser for the given +file_name+ and # +content+. # - # source://rdoc//rdoc/parser.rb#167 + # source://rdoc//lib/rdoc/parser.rb#169 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//rdoc/parser.rb#201 + # source://rdoc//lib/rdoc/parser.rb#203 def parse_files_matching(regexp); end # An Array of arrays that maps file extension (or name) regular @@ -8156,12 +8295,12 @@ class RDoc::Parser # # Use parse_files_matching to register a parser's file extensions. # - # source://rdoc//rdoc/parser.rb#45 + # source://rdoc//lib/rdoc/parser.rb#45 def parsers; end # Removes an emacs-style modeline from the first line of the document # - # source://rdoc//rdoc/parser.rb#208 + # source://rdoc//lib/rdoc/parser.rb#210 def remove_modeline(content); end # If there is a markup: parser_name comment at the front of the @@ -8180,7 +8319,7 @@ class RDoc::Parser # # Any comment style may be used to hide the markup comment. # - # source://rdoc//rdoc/parser.rb#229 + # source://rdoc//lib/rdoc/parser.rb#231 def use_markup(content); end # Checks if +file+ is a zip file in disguise. Signatures from @@ -8188,7 +8327,7 @@ class RDoc::Parser # # @return [Boolean] # - # source://rdoc//rdoc/parser.rb#94 + # source://rdoc//lib/rdoc/parser.rb#94 def zip?(file); end end end @@ -8306,6 +8445,8 @@ 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 @@ -8314,85 +8455,85 @@ class RDoc::Parser::C < ::RDoc::Parser # # @return [C] a new instance of C # - # source://rdoc//rdoc/parser/c.rb#171 + # source://rdoc//lib/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//rdoc/parser/c.rb#250 + # source://rdoc//lib/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//rdoc/parser/c.rb#133 + # source://rdoc//lib/rdoc/parser/c.rb#133 def classes; end # C file the parser is parsing # - # source://rdoc//rdoc/parser/c.rb#138 + # source://rdoc//lib/rdoc/parser/c.rb#138 def content; end # C file the parser is parsing # - # source://rdoc//rdoc/parser/c.rb#138 + # source://rdoc//lib/rdoc/parser/c.rb#138 def content=(_arg0); end # Scans #content for rb_define_alias # - # source://rdoc//rdoc/parser/c.rb#222 + # source://rdoc//lib/rdoc/parser/c.rb#222 def do_aliases; end # Scans #content for rb_attr and rb_define_attr # - # source://rdoc//rdoc/parser/c.rb#263 + # source://rdoc//lib/rdoc/parser/c.rb#263 def do_attrs; end # Scans #content for boot_defclass # - # source://rdoc//rdoc/parser/c.rb#286 + # source://rdoc//lib/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//rdoc/parser/c.rb#298 + # source://rdoc//lib/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//rdoc/parser/c.rb#396 + # source://rdoc//lib/rdoc/parser/c.rb#396 def do_constants; end # Scans #content for rb_include_module # - # source://rdoc//rdoc/parser/c.rb#442 + # source://rdoc//lib/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//rdoc/parser/c.rb#458 + # source://rdoc//lib/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//rdoc/parser/c.rb#507 + # source://rdoc//lib/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//rdoc/parser/c.rb#144 + # source://rdoc//lib/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//rdoc/parser/c.rb#523 + # source://rdoc//lib/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. @@ -8403,17 +8544,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//rdoc/parser/c.rb#541 + # source://rdoc//lib/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//rdoc/parser/c.rb#598 + # source://rdoc//lib/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//rdoc/parser/c.rb#682 + # source://rdoc//lib/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), @@ -8441,45 +8582,45 @@ class RDoc::Parser::C < ::RDoc::Parser # */ # VALUE cFoo = rb_define_class("Foo", rb_cObject); # - # source://rdoc//rdoc/parser/c.rb#723 + # source://rdoc//lib/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//rdoc/parser/c.rb#779 + # source://rdoc//lib/rdoc/parser/c.rb#789 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//rdoc/parser/c.rb#796 + # source://rdoc//lib/rdoc/parser/c.rb#806 def find_modifiers(comment, meth_obj); end # Finds a Document-method override for +meth_obj+ on +class_name+ # - # source://rdoc//rdoc/parser/c.rb#806 + # source://rdoc//lib/rdoc/parser/c.rb#816 def find_override_comment(class_name, meth_obj); end # Generate a Ruby-method table # - # source://rdoc//rdoc/parser/c.rb#574 + # source://rdoc//lib/rdoc/parser/c.rb#574 def gen_body_table(file_content); end # Generate a const table # - # source://rdoc//rdoc/parser/c.rb#756 + # source://rdoc//lib/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//rdoc/parser/c.rb#828 + # source://rdoc//lib/rdoc/parser/c.rb#838 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//rdoc/parser/c.rb#857 + # source://rdoc//lib/rdoc/parser/c.rb#867 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 @@ -8491,35 +8632,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//rdoc/parser/c.rb#922 + # source://rdoc//lib/rdoc/parser/c.rb#932 def handle_constants(type, var_name, const_name, definition); end # Removes #ifdefs that would otherwise confuse us # - # source://rdoc//rdoc/parser/c.rb#972 + # source://rdoc//lib/rdoc/parser/c.rb#982 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//rdoc/parser/c.rb#981 + # source://rdoc//lib/rdoc/parser/c.rb#991 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//rdoc/parser/c.rb#1051 + # source://rdoc//lib/rdoc/parser/c.rb#1061 def handle_singleton(sclass_var, class_var); end # Maps C variable names to names of Ruby classes (and singleton classes) # - # source://rdoc//rdoc/parser/c.rb#149 + # source://rdoc//lib/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//rdoc/parser/c.rb#1062 + # source://rdoc//lib/rdoc/parser/c.rb#1072 def load_variable_map(map_name); end # Look for directives in a normal comment block: @@ -8530,55 +8671,55 @@ class RDoc::Parser::C < ::RDoc::Parser # # This method modifies the +comment+ # - # source://rdoc//rdoc/parser/c.rb#1091 + # source://rdoc//lib/rdoc/parser/c.rb#1101 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//rdoc/parser/c.rb#155 + # source://rdoc//lib/rdoc/parser/c.rb#155 def missing_dependencies; end # Creates a RDoc::Comment instance. # - # source://rdoc//rdoc/parser/c.rb#1221 + # source://rdoc//lib/rdoc/parser/c.rb#1231 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//rdoc/parser/c.rb#1110 + # source://rdoc//lib/rdoc/parser/c.rb#1120 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//rdoc/parser/c.rb#1193 + # source://rdoc//lib/rdoc/parser/c.rb#1203 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//rdoc/parser/c.rb#1201 + # source://rdoc//lib/rdoc/parser/c.rb#1211 def scan; end # Maps C variable names to names of Ruby singleton classes # - # source://rdoc//rdoc/parser/c.rb#160 + # source://rdoc//lib/rdoc/parser/c.rb#160 def singleton_classes; end # The TopLevel items in the parsed file belong to # - # source://rdoc//rdoc/parser/c.rb#165 + # source://rdoc//lib/rdoc/parser/c.rb#165 def top_level; end end # :stopdoc: # -# source://rdoc//rdoc/parser/c.rb#126 +# source://rdoc//lib/rdoc/parser/c.rb#126 RDoc::Parser::C::BOOL_ARG_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rdoc//rdoc/parser/c.rb#127 +# source://rdoc//lib/rdoc/parser/c.rb#127 RDoc::Parser::C::TRUE_VALUES = T.let(T.unsafe(nil), Array) # A ChangeLog file parser. @@ -8590,6 +8731,8 @@ 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 @@ -8598,34 +8741,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//rdoc/parser/changelog.rb#26 + # source://rdoc//lib/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//rdoc/parser/changelog.rb#44 + # source://rdoc//lib/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//rdoc/parser/changelog.rb#66 + # source://rdoc//lib/rdoc/parser/changelog.rb#66 def create_entries(entries); end # Returns an RDoc::Markup::List containing the given +items+ in the # ChangeLog # - # source://rdoc//rdoc/parser/changelog.rb#83 + # source://rdoc//lib/rdoc/parser/changelog.rb#83 def create_items(items); end # Groups +entries+ by date. # - # source://rdoc//rdoc/parser/changelog.rb#103 + # source://rdoc//lib/rdoc/parser/changelog.rb#103 def group_entries(entries); end # Parse date in ISO-8601, RFC-2822, or default of Git # - # source://rdoc//rdoc/parser/changelog.rb#119 + # source://rdoc//lib/rdoc/parser/changelog.rb#119 def parse_date(date); end # Parses the entries in the ChangeLog. @@ -8642,49 +8785,52 @@ class RDoc::Parser::ChangeLog < ::RDoc::Parser # [ 'README.EXT: Converted to RDoc format', # 'README.EXT.ja: ditto']] # - # source://rdoc//rdoc/parser/changelog.rb#149 + # source://rdoc//lib/rdoc/parser/changelog.rb#149 def parse_entries; end # Converts the ChangeLog into an RDoc::Markup::Document # - # source://rdoc//rdoc/parser/changelog.rb#206 + # source://rdoc//lib/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//rdoc/parser/changelog.rb#262 + # source://rdoc//lib/rdoc/parser/changelog.rb#262 def create_entries(entries); end # Parses the entries in the Git commit logs # - # source://rdoc//rdoc/parser/changelog.rb#235 + # source://rdoc//lib/rdoc/parser/changelog.rb#235 def parse_entries; end # Parses auxiliary info. Currentry `base-url` to expand # references is effective. # - # source://rdoc//rdoc/parser/changelog.rb#227 + # source://rdoc//lib/rdoc/parser/changelog.rb#227 def parse_info(info); end end -# source://rdoc//rdoc/parser/changelog.rb#271 +# source://rdoc//lib/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//rdoc/parser/changelog.rb#273 + # source://rdoc//lib/rdoc/parser/changelog.rb#273 def initialize(base, commit, author, email, date, contents); end - # source://rdoc//rdoc/parser/changelog.rb#313 + # source://rdoc//lib/rdoc/parser/changelog.rb#313 def accept(visitor); end - # source://rdoc//rdoc/parser/changelog.rb#294 + # source://rdoc//lib/rdoc/parser/changelog.rb#294 def aref; end # Returns the value of attribute author @@ -8753,16 +8899,16 @@ class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct # @return [Object] the newly set value def email=(_); end - # source://rdoc//rdoc/parser/changelog.rb#298 + # source://rdoc//lib/rdoc/parser/changelog.rb#298 def label(context = T.unsafe(nil)); end - # source://rdoc//rdoc/parser/changelog.rb#290 + # source://rdoc//lib/rdoc/parser/changelog.rb#290 def level; end - # source://rdoc//rdoc/parser/changelog.rb#330 + # source://rdoc//lib/rdoc/parser/changelog.rb#330 def pretty_print(q); end - # source://rdoc//rdoc/parser/changelog.rb#302 + # source://rdoc//lib/rdoc/parser/changelog.rb#302 def text; end class << self @@ -8776,67 +8922,73 @@ 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//rdoc/parser/markdown.rb#15 + # source://rdoc//lib/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//rdoc/parser/rd.rb#15 + # source://rdoc//lib/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//rdoc/parser/ripper_state_lex.rb#576 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#576 def initialize(code); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#322 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#322 def get_squashed_tk; end private - # source://rdoc//rdoc/parser/ripper_state_lex.rb#465 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#465 def get_embdoc_tk(tk); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#474 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#474 def get_heredoc_tk(heredoc_name, indent); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#549 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#549 def get_op_tk(tk); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#447 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#447 def get_regexp_tk(tk); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#420 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#420 def get_string_tk(tk); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#373 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#373 def get_symbol_tk(tk); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#511 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#511 def get_words_tk(tk); end # @return [Boolean] # - # source://rdoc//rdoc/parser/ripper_state_lex.rb#499 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#499 def heredoc_end?(name, indent, tk); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#493 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#493 def retrieve_heredoc_info(tk); end class << self @@ -8844,85 +8996,87 @@ class RDoc::Parser::RipperStateLex # # @return [Boolean] # - # source://rdoc//rdoc/parser/ripper_state_lex.rb#597 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#597 def end?(token); end # Returns tokens parsed from +code+. # - # source://rdoc//rdoc/parser/ripper_state_lex.rb#584 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#584 def parse(code); end end end -# source://rdoc//rdoc/parser/ripper_state_lex.rb#20 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#20 RDoc::Parser::RipperStateLex::EXPR_ARG = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#31 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#31 RDoc::Parser::RipperStateLex::EXPR_ARG_ANY = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#16 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#16 RDoc::Parser::RipperStateLex::EXPR_BEG = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#30 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#30 RDoc::Parser::RipperStateLex::EXPR_BEG_ANY = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#25 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#25 RDoc::Parser::RipperStateLex::EXPR_CLASS = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#21 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#21 RDoc::Parser::RipperStateLex::EXPR_CMDARG = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#24 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#24 RDoc::Parser::RipperStateLex::EXPR_DOT = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#17 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#17 RDoc::Parser::RipperStateLex::EXPR_END = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#18 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#18 RDoc::Parser::RipperStateLex::EXPR_ENDARG = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#19 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#19 RDoc::Parser::RipperStateLex::EXPR_ENDFN = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#32 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#32 RDoc::Parser::RipperStateLex::EXPR_END_ANY = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#28 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#28 RDoc::Parser::RipperStateLex::EXPR_FITEM = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#23 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#23 RDoc::Parser::RipperStateLex::EXPR_FNAME = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#26 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#26 RDoc::Parser::RipperStateLex::EXPR_LABEL = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#27 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#27 RDoc::Parser::RipperStateLex::EXPR_LABELED = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#22 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#22 RDoc::Parser::RipperStateLex::EXPR_MID = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#15 +# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#15 RDoc::Parser::RipperStateLex::EXPR_NONE = T.let(T.unsafe(nil), Integer) -# source://rdoc//rdoc/parser/ripper_state_lex.rb#29 +# source://rdoc//lib/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//rdoc/parser/ripper_state_lex.rb#313 + # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#313 def initialize(code); end - # source://rdoc//rdoc/parser/ripper_state_lex.rb#317 + # source://rdoc//lib/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//rdoc/parser/ripper_state_lex.rb#11 +# source://rdoc//lib/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 # @@ -9116,6 +9270,8 @@ 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 @@ -9124,56 +9280,56 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # @return [Ruby] a new instance of Ruby # - # source://rdoc//rdoc/parser/ruby.rb#164 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#236 + # source://rdoc//lib/rdoc/parser/ruby.rb#236 def collect_first_comment; end # Consumes trailing whitespace from the token stream # - # source://rdoc//rdoc/parser/ruby.rb#279 + # source://rdoc//lib/rdoc/parser/ruby.rb#279 def consume_trailing_spaces; end # Creates a new attribute in +container+ with +name+. # - # source://rdoc//rdoc/parser/ruby.rb#286 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#300 + # source://rdoc//lib/rdoc/parser/ruby.rb#300 def create_module_alias(container, constant, rhs_name); end # Aborts with +msg+ # - # source://rdoc//rdoc/parser/ruby.rb#313 + # source://rdoc//lib/rdoc/parser/ruby.rb#313 def error(msg); end # Looks for a true or false token. # - # source://rdoc//rdoc/parser/ruby.rb#322 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#340 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#423 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#456 + # source://rdoc//lib/rdoc/parser/ruby.rb#456 def get_constant; end # Little hack going on here. In the statement: @@ -9183,28 +9339,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//rdoc/parser/ruby.rb#558 + # source://rdoc//lib/rdoc/parser/ruby.rb#558 def get_end_token(tk); end # Get an included module that may be surrounded by parens # - # source://rdoc//rdoc/parser/ruby.rb#473 + # source://rdoc//lib/rdoc/parser/ruby.rb#473 def get_included_module_with_optional_parens; end # Retrieves the method container for a singleton method. # - # source://rdoc//rdoc/parser/ruby.rb#578 + # source://rdoc//lib/rdoc/parser/ruby.rb#578 def get_method_container(container, name_t); end # Extracts a name or symbol from the token stream. # - # source://rdoc//rdoc/parser/ruby.rb#621 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#194 + # source://rdoc//lib/rdoc/parser/ruby.rb#194 def get_tkread_clean(pattern, replacement); end # Extracts the visibility information for the visibility token +tk+ @@ -9214,7 +9370,7 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # +singleton+ if the methods following should be converted to singleton # methods. # - # source://rdoc//rdoc/parser/ruby.rb#208 + # source://rdoc//lib/rdoc/parser/ruby.rb#208 def get_visibility_information(tk, single); end # Look for directives in a normal comment block: @@ -9224,108 +9380,108 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # This routine modifies its +comment+ parameter. # - # source://rdoc//rdoc/parser/ruby.rb#661 + # source://rdoc//lib/rdoc/parser/ruby.rb#661 def look_for_directives_in(container, comment); end # Adds useful info about the parser to +message+ # - # source://rdoc//rdoc/parser/ruby.rb#681 + # source://rdoc//lib/rdoc/parser/ruby.rb#681 def make_message(message); end # Creates a comment with the correct format # - # source://rdoc//rdoc/parser/ruby.rb#693 + # source://rdoc//lib/rdoc/parser/ruby.rb#693 def new_comment(comment, line_no = T.unsafe(nil)); end # Parses an +alias+ in +context+ with +comment+ # - # source://rdoc//rdoc/parser/ruby.rb#762 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#704 + # source://rdoc//lib/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//rdoc/parser/ruby.rb#733 + # source://rdoc//lib/rdoc/parser/ruby.rb#733 def parse_attr_accessor(context, single, tk, comment); end # Extracts call parameters from the token stream. # - # source://rdoc//rdoc/parser/ruby.rb#801 + # source://rdoc//lib/rdoc/parser/ruby.rb#803 def parse_call_parameters(tk); end # Parses a class in +context+ with +comment+ # - # source://rdoc//rdoc/parser/ruby.rb#844 + # source://rdoc//lib/rdoc/parser/ruby.rb#846 def parse_class(container, single, tk, comment); end # Parses and creates a regular class # - # source://rdoc//rdoc/parser/ruby.rb#878 + # source://rdoc//lib/rdoc/parser/ruby.rb#880 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//rdoc/parser/ruby.rb#918 + # source://rdoc//lib/rdoc/parser/ruby.rb#920 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//rdoc/parser/ruby.rb#1083 + # source://rdoc//lib/rdoc/parser/ruby.rb#1085 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//rdoc/parser/ruby.rb#1111 + # source://rdoc//lib/rdoc/parser/ruby.rb#1113 def parse_comment_attr(container, type, name, comment); end - # source://rdoc//rdoc/parser/ruby.rb#1123 + # source://rdoc//lib/rdoc/parser/ruby.rb#1125 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//rdoc/parser/ruby.rb#1162 + # source://rdoc//lib/rdoc/parser/ruby.rb#1164 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//rdoc/parser/ruby.rb#957 + # source://rdoc//lib/rdoc/parser/ruby.rb#959 def parse_constant(container, tk, comment, ignore_constants = T.unsafe(nil)); end - # source://rdoc//rdoc/parser/ruby.rb#1024 + # source://rdoc//lib/rdoc/parser/ruby.rb#1026 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//rdoc/parser/ruby.rb#2094 + # source://rdoc//lib/rdoc/parser/ruby.rb#2103 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//rdoc/parser/ruby.rb#1197 + # source://rdoc//lib/rdoc/parser/ruby.rb#1199 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//rdoc/parser/ruby.rb#1235 + # source://rdoc//lib/rdoc/parser/ruby.rb#1237 def parse_identifier(container, single, tk, comment); end # Parses an +included+ with a block feature of ActiveSupport::Concern. # - # source://rdoc//rdoc/parser/ruby.rb#1217 + # source://rdoc//lib/rdoc/parser/ruby.rb#1219 def parse_included_with_activesupport_concern(container, comment); end # Parses a meta-programmed attribute and creates an RDoc::Attr. @@ -9356,34 +9512,34 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # end # - # source://rdoc//rdoc/parser/ruby.rb#1299 + # source://rdoc//lib/rdoc/parser/ruby.rb#1301 def parse_meta_attr(context, single, tk, comment); end # Parses a meta-programmed method # - # source://rdoc//rdoc/parser/ruby.rb#1333 + # source://rdoc//lib/rdoc/parser/ruby.rb#1335 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//rdoc/parser/ruby.rb#1379 + # source://rdoc//lib/rdoc/parser/ruby.rb#1381 def parse_meta_method_name(comment, tk); end # Parses the parameters and block for a meta-programmed method. # - # source://rdoc//rdoc/parser/ruby.rb#1403 + # source://rdoc//lib/rdoc/parser/ruby.rb#1405 def parse_meta_method_params(container, single, meth, tk, comment); end # Parses a normal method defined by +def+ # - # source://rdoc//rdoc/parser/ruby.rb#1435 + # source://rdoc//lib/rdoc/parser/ruby.rb#1437 def parse_method(container, single, tk, comment); end # Parses a method that needs to be ignored. # - # source://rdoc//rdoc/parser/ruby.rb#1514 + # source://rdoc//lib/rdoc/parser/ruby.rb#1522 def parse_method_dummy(container); end # Parses the name of a method in +container+. @@ -9391,25 +9547,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//rdoc/parser/ruby.rb#1527 + # source://rdoc//lib/rdoc/parser/ruby.rb#1535 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//rdoc/parser/ruby.rb#1554 + # source://rdoc//lib/rdoc/parser/ruby.rb#1562 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//rdoc/parser/ruby.rb#1572 + # source://rdoc//lib/rdoc/parser/ruby.rb#1580 def parse_method_name_singleton(container, name_t); end # Extracts +yield+ parameters from +method+ # - # source://rdoc//rdoc/parser/ruby.rb#1616 + # source://rdoc//lib/rdoc/parser/ruby.rb#1624 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 @@ -9419,69 +9575,69 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # and add this as the block_params for the method # - # source://rdoc//rdoc/parser/ruby.rb#1683 + # source://rdoc//lib/rdoc/parser/ruby.rb#1691 def parse_method_parameters(method); end # Parses the parameters and body of +meth+ # - # source://rdoc//rdoc/parser/ruby.rb#1484 + # source://rdoc//lib/rdoc/parser/ruby.rb#1492 def parse_method_params_and_body(container, single, meth, added_container); end # Parses an RDoc::NormalModule in +container+ with +comment+ # - # source://rdoc//rdoc/parser/ruby.rb#1698 + # source://rdoc//lib/rdoc/parser/ruby.rb#1706 def parse_module(container, single, tk, comment); end # Parses an RDoc::Require in +context+ containing +comment+ # - # source://rdoc//rdoc/parser/ruby.rb#1720 + # source://rdoc//lib/rdoc/parser/ruby.rb#1728 def parse_require(context, comment); end # Parses a rescue # - # source://rdoc//rdoc/parser/ruby.rb#1741 + # source://rdoc//lib/rdoc/parser/ruby.rb#1749 def parse_rescue; end # The core of the Ruby parser. # - # source://rdoc//rdoc/parser/ruby.rb#1772 + # source://rdoc//lib/rdoc/parser/ruby.rb#1780 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//rdoc/parser/ruby.rb#1962 + # source://rdoc//lib/rdoc/parser/ruby.rb#1971 def parse_symbol_arg(no = T.unsafe(nil)); end # Parses up to +no+ symbol arguments surrounded by () and places them in # +args+. # - # source://rdoc//rdoc/parser/ruby.rb#1977 + # source://rdoc//lib/rdoc/parser/ruby.rb#1986 def parse_symbol_arg_paren(no); end # Parses up to +no+ symbol arguments separated by spaces and places them in # +args+. # - # source://rdoc//rdoc/parser/ruby.rb#2005 + # source://rdoc//lib/rdoc/parser/ruby.rb#2014 def parse_symbol_arg_space(no, tk); end # Returns symbol text from the next token # - # source://rdoc//rdoc/parser/ruby.rb#2036 + # source://rdoc//lib/rdoc/parser/ruby.rb#2045 def parse_symbol_in_arg; end # Parses statements in the top-level +container+ # - # source://rdoc//rdoc/parser/ruby.rb#2053 + # source://rdoc//lib/rdoc/parser/ruby.rb#2062 def parse_top_level_statements(container); end # Determines the visibility in +container+ from +tk+ # - # source://rdoc//rdoc/parser/ruby.rb#2071 + # source://rdoc//lib/rdoc/parser/ruby.rb#2080 def parse_visibility(container, single, tk); end # Determines the block parameter for +context+ # - # source://rdoc//rdoc/parser/ruby.rb#2110 + # source://rdoc//lib/rdoc/parser/ruby.rb#2119 def parse_yield(context, single, tk, method); end # Directives are modifier comments that can appear after class, module, or @@ -9496,7 +9652,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//rdoc/parser/ruby.rb#2131 + # source://rdoc//lib/rdoc/parser/ruby.rb#2140 def read_directive(allowed); end # Handles directives following the definition for +context+ (any @@ -9504,140 +9660,144 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # See also RDoc::Markup::PreProcess#handle_directive # - # source://rdoc//rdoc/parser/ruby.rb#2163 + # source://rdoc//lib/rdoc/parser/ruby.rb#2172 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//rdoc/parser/ruby.rb#2182 + # source://rdoc//lib/rdoc/parser/ruby.rb#2191 def record_location(container); end # Retrieve comment body without =begin/=end # - # source://rdoc//rdoc/parser/ruby.rb#1761 + # source://rdoc//lib/rdoc/parser/ruby.rb#1769 def retrieve_comment_body(tk); end # Scans this Ruby file for Ruby constructs # - # source://rdoc//rdoc/parser/ruby.rb#2194 + # source://rdoc//lib/rdoc/parser/ruby.rb#2203 def scan; end # skip the var [in] part of a 'for' statement # - # source://rdoc//rdoc/parser/ruby.rb#2282 + # source://rdoc//lib/rdoc/parser/ruby.rb#2291 def skip_for_variable; end # Skips the next method in +container+ # - # source://rdoc//rdoc/parser/ruby.rb#2293 + # source://rdoc//lib/rdoc/parser/ruby.rb#2302 def skip_method(container); end # while, until, and for have an optional do # - # source://rdoc//rdoc/parser/ruby.rb#2241 + # source://rdoc//lib/rdoc/parser/ruby.rb#2250 def skip_optional_do_after_expression; end # Skip opening parentheses and yield the block. # Skip closing parentheses too when exists. # - # source://rdoc//rdoc/parser/ruby.rb#401 + # source://rdoc//lib/rdoc/parser/ruby.rb#401 def skip_parentheses(&block); end # Skip spaces until a comment is found # - # source://rdoc//rdoc/parser/ruby.rb#2302 + # source://rdoc//lib/rdoc/parser/ruby.rb#2311 def skip_tkspace_comment(skip_nl = T.unsafe(nil)); end # Marks containers between +container+ and +ancestor+ as ignored # - # source://rdoc//rdoc/parser/ruby.rb#646 + # source://rdoc//lib/rdoc/parser/ruby.rb#646 def suppress_parents(container, ancestor); end # Return +true+ if +tk+ is a newline. # # @return [Boolean] # - # source://rdoc//rdoc/parser/ruby.rb#186 + # source://rdoc//lib/rdoc/parser/ruby.rb#186 def tk_nl?(tk); end # Updates visibility in +container+ from +vis_type+ and +vis+. # - # source://rdoc//rdoc/parser/ruby.rb#2314 + # source://rdoc//lib/rdoc/parser/ruby.rb#2323 def update_visibility(container, vis_type, vis, singleton); end # Prints +message+ to +$stderr+ unless we're being quiet # - # source://rdoc//rdoc/parser/ruby.rb#2359 + # source://rdoc//lib/rdoc/parser/ruby.rb#2368 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//rdoc/parser/ruby_tools.rb#10 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#10 def add_token_listener(obj); end # Fetches the next token from the scanner # - # source://rdoc//rdoc/parser/ruby_tools.rb#18 + # source://rdoc//lib/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//rdoc/parser/ruby_tools.rb#52 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#52 def get_tk_until(*tokens); end # Retrieves a String representation of the read tokens # - # source://rdoc//rdoc/parser/ruby_tools.rb#73 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#73 def get_tkread; end # Peek equivalent for get_tkread # - # source://rdoc//rdoc/parser/ruby_tools.rb#82 + # source://rdoc//lib/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//rdoc/parser/ruby_tools.rb#89 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#89 def peek_tk; end # Removes the token listener +obj+ # - # source://rdoc//rdoc/parser/ruby_tools.rb#97 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#97 def remove_token_listener(obj); end # Resets the tools # - # source://rdoc//rdoc/parser/ruby_tools.rb#104 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#104 def reset; end # Skips whitespace tokens including newlines # - # source://rdoc//rdoc/parser/ruby_tools.rb#115 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#115 def skip_tkspace; end # Skips whitespace tokens excluding newlines # - # source://rdoc//rdoc/parser/ruby_tools.rb#129 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#129 def skip_tkspace_without_nl; end # Has +obj+ listen to tokens # - # source://rdoc//rdoc/parser/ruby_tools.rb#143 + # source://rdoc//lib/rdoc/parser/ruby_tools.rb#143 def token_listener(obj); end # Returns +tk+ to the scanner # - # source://rdoc//rdoc/parser/ruby_tools.rb#153 + # source://rdoc//lib/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 @@ -9645,15 +9805,15 @@ class RDoc::Parser::Simple < ::RDoc::Parser # # @return [Simple] a new instance of Simple # - # source://rdoc//rdoc/parser/simple.rb#17 + # source://rdoc//lib/rdoc/parser/simple.rb#17 def initialize(top_level, file_name, content, options, stats); end - # source://rdoc//rdoc/parser/simple.rb#12 + # source://rdoc//lib/rdoc/parser/simple.rb#12 def content; end # Removes the encoding magic comment from +text+ # - # source://rdoc//rdoc/parser/simple.rb#41 + # source://rdoc//lib/rdoc/parser/simple.rb#41 def remove_coding_comment(text); end # Removes private comments. @@ -9662,366 +9822,370 @@ 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//rdoc/parser/simple.rb#52 + # source://rdoc//lib/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//rdoc/parser/simple.rb#28 + # source://rdoc//lib/rdoc/parser/simple.rb#28 def scan; end end -# racc/parser.rb end +# source://rdoc//lib/rdoc/rd.rb#72 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//rdoc/rd.rb#78 + # source://rdoc//lib/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#660 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//rdoc/rd/block_parser.rb#699 + # source://rdoc//lib/rdoc/rd/block_parser.rb#695 def initialize; end # reduce 0 omitted # - # source://rdoc//rdoc/rd/block_parser.rb#1334 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1330 def _reduce_1(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1376 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1372 def _reduce_10(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1381 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1377 def _reduce_11(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1386 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1382 def _reduce_12(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1394 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1390 def _reduce_13(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1400 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1396 def _reduce_14(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1407 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1403 def _reduce_15(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1412 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1408 def _reduce_16(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1417 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1413 def _reduce_17(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1428 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1424 def _reduce_18(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1439 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1435 def _reduce_19(val, _values, result); end # @raise [ParseError] # - # source://rdoc//rdoc/rd/block_parser.rb#1339 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1335 def _reduce_2(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1445 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1441 def _reduce_20(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1451 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1447 def _reduce_21(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1457 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1453 def _reduce_22(val, _values, result); end # reduce 26 omitted # - # source://rdoc//rdoc/rd/block_parser.rb#1473 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1469 def _reduce_27(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1479 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1475 def _reduce_28(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1485 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1481 def _reduce_29(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1344 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1340 def _reduce_3(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1491 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1487 def _reduce_30(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1496 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1492 def _reduce_31(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1501 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1497 def _reduce_32(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1507 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1503 def _reduce_33(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1512 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1508 def _reduce_34(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1517 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1513 def _reduce_35(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1523 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1519 def _reduce_36(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1529 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1525 def _reduce_37(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1534 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1530 def _reduce_38(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1539 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1535 def _reduce_39(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1349 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1345 def _reduce_4(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1545 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1541 def _reduce_40(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1551 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1547 def _reduce_41(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1556 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1552 def _reduce_42(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1561 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1557 def _reduce_43(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1569 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1565 def _reduce_44(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1575 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1571 def _reduce_45(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1580 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1576 def _reduce_46(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1585 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1581 def _reduce_47(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1591 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1587 def _reduce_48(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1597 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1593 def _reduce_49(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1354 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1350 def _reduce_5(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1603 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1599 def _reduce_50(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1609 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1605 def _reduce_51(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1615 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1611 def _reduce_52(val, _values, result); end # reduce 53 omitted # - # source://rdoc//rdoc/rd/block_parser.rb#1622 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1618 def _reduce_54(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1627 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1623 def _reduce_55(val, _values, result); end # reduce 56 omitted # - # source://rdoc//rdoc/rd/block_parser.rb#1634 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1630 def _reduce_57(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1359 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1355 def _reduce_6(val, _values, result); end # reduce 61 omitted # - # source://rdoc//rdoc/rd/block_parser.rb#1647 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1643 def _reduce_62(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1653 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1649 def _reduce_63(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1659 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1655 def _reduce_64(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1665 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1661 def _reduce_65(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1671 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1667 def _reduce_66(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1677 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1673 def _reduce_67(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1682 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1678 def _reduce_68(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1687 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1683 def _reduce_69(val, _values, result); end # reduce 70 omitted # - # source://rdoc//rdoc/rd/block_parser.rb#1694 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1690 def _reduce_71(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1699 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1695 def _reduce_72(val, _values, result); end # reduce 7 omitted # - # source://rdoc//rdoc/rd/block_parser.rb#1366 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1362 def _reduce_8(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1371 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1367 def _reduce_9(val, _values, result); end - # source://rdoc//rdoc/rd/block_parser.rb#1704 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1700 def _reduce_none(val, _values, result); end # Adds footnote +content+ to the document # - # source://rdoc//rdoc/rd/block_parser.rb#1049 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1045 def add_footnote(content); end # Adds label +label+ to the document # - # source://rdoc//rdoc/rd/block_parser.rb#1063 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1059 def add_label(label); end # Retrieves the content of +values+ as a single String # - # source://rdoc//rdoc/rd/block_parser.rb#1032 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1028 def content(values); end # Footnotes for this document # - # source://rdoc//rdoc/rd/block_parser.rb#683 + # source://rdoc//lib/rdoc/rd/block_parser.rb#679 def footnotes; end # Path to find included files in # - # source://rdoc//rdoc/rd/block_parser.rb#693 + # source://rdoc//lib/rdoc/rd/block_parser.rb#689 def include_path; end # Path to find included files in # - # source://rdoc//rdoc/rd/block_parser.rb#693 + # source://rdoc//lib/rdoc/rd/block_parser.rb#689 def include_path=(_arg0); end # Labels for items in this document # - # source://rdoc//rdoc/rd/block_parser.rb#688 + # source://rdoc//lib/rdoc/rd/block_parser.rb#684 def labels; end # Current line number # - # source://rdoc//rdoc/rd/block_parser.rb#987 + # source://rdoc//lib/rdoc/rd/block_parser.rb#983 def line_index; end # Returns the next token from the document # - # source://rdoc//rdoc/rd/block_parser.rb#755 + # source://rdoc//lib/rdoc/rd/block_parser.rb#751 def next_token; end # Raises a ParseError when invalid formatting is found # # @raise [ParseError] # - # source://rdoc//rdoc/rd/block_parser.rb#971 + # source://rdoc//lib/rdoc/rd/block_parser.rb#967 def on_error(et, ev, _values); end # Creates a paragraph for +value+ # - # source://rdoc//rdoc/rd/block_parser.rb#1039 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1035 def paragraph(value); end # Parses +src+ and returns an RDoc::Markup::Document. # - # source://rdoc//rdoc/rd/block_parser.rb#711 + # source://rdoc//lib/rdoc/rd/block_parser.rb#707 def parse(src); end private # Cuts off excess whitespace in +src+ # - # source://rdoc//rdoc/rd/block_parser.rb#935 + # source://rdoc//lib/rdoc/rd/block_parser.rb#931 def cut_off(src); end # Formats line numbers +line_numbers+ prettily # - # source://rdoc//rdoc/rd/block_parser.rb#1023 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1019 def format_line_num(*line_numbers); end # Retrieves the content for +file+ from the include_path # - # source://rdoc//rdoc/rd/block_parser.rb#1004 + # source://rdoc//lib/rdoc/rd/block_parser.rb#1000 def get_included(file); end # Yields to the given block if +indent+ matches the current indent, otherwise # an indentation token is processed. # - # source://rdoc//rdoc/rd/block_parser.rb#917 + # source://rdoc//lib/rdoc/rd/block_parser.rb#913 def if_current_indent_equal(indent); end # Parses subtree +src+ # - # source://rdoc//rdoc/rd/block_parser.rb#994 + # source://rdoc//lib/rdoc/rd/block_parser.rb#990 def parse_subtree(src); end - # source://rdoc//rdoc/rd/block_parser.rb#962 + # source://rdoc//lib/rdoc/rd/block_parser.rb#958 def set_term_to_element(parent, term); end end -# source://rdoc//rdoc/rd/block_parser.rb#1328 +# source://rdoc//lib/rdoc/rd/block_parser.rb#1324 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//rdoc/rd/inline.rb#34 + # source://rdoc//lib/rdoc/rd/inline.rb#34 def initialize(rdoc, reference); end - # source://rdoc//rdoc/rd/inline.rb#42 + # source://rdoc//lib/rdoc/rd/inline.rb#42 def ==(other); end # Appends +more+ to this inline. +more+ may be a String or another Inline. # - # source://rdoc//rdoc/rd/inline.rb#50 + # source://rdoc//lib/rdoc/rd/inline.rb#50 def append(more); end - # source://rdoc//rdoc/rd/inline.rb#65 + # source://rdoc//lib/rdoc/rd/inline.rb#65 def inspect; end # The markup of this reference in RDoc format # - # source://rdoc//rdoc/rd/inline.rb#15 + # source://rdoc//lib/rdoc/rd/inline.rb#15 def rdoc; end # The text of the reference # - # source://rdoc//rdoc/rd/inline.rb#10 + # source://rdoc//lib/rdoc/rd/inline.rb#10 def reference; end # The markup of this reference in RDoc format # - # source://rdoc//rdoc/rd/inline.rb#15 + # source://rdoc//lib/rdoc/rd/inline.rb#15 def to_s; end class << self @@ -10030,239 +10194,241 @@ 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//rdoc/rd/inline.rb#23 + # source://rdoc//lib/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#661 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//rdoc/rd/inline_parser.rb#738 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#734 def initialize(block_parser); end # reduce 100 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1750 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1746 def _reduce_101(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1757 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1753 def _reduce_102(val, _values, result); end # reduce 108 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1775 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1771 def _reduce_109(val, _values, result); end # reduce 110 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1782 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1778 def _reduce_111(val, _values, result); end # reduce 112 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1790 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1786 def _reduce_113(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1795 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1791 def _reduce_114(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1800 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1796 def _reduce_115(val, _values, result); end # reduce 12 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1413 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1409 def _reduce_13(val, _values, result); end # reduce 135 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1845 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1841 def _reduce_136(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1420 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1416 def _reduce_14(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1427 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1423 def _reduce_15(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1434 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1430 def _reduce_16(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1441 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1437 def _reduce_17(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1449 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1445 def _reduce_18(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1455 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1451 def _reduce_19(val, _values, result); end # reduce 1 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1385 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1381 def _reduce_2(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1463 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1459 def _reduce_20(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1469 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1465 def _reduce_21(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1478 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1474 def _reduce_22(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1484 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1480 def _reduce_23(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1490 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1486 def _reduce_24(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1496 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1492 def _reduce_25(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1505 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1501 def _reduce_26(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1511 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1507 def _reduce_27(val, _values, result); end # reduce 28 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1520 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1516 def _reduce_29(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1390 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1386 def _reduce_3(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1525 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1521 def _reduce_30(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1530 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1526 def _reduce_31(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1536 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1532 def _reduce_32(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1542 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1538 def _reduce_33(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1548 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1544 def _reduce_34(val, _values, result); end # reduce 35 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1556 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1552 def _reduce_36(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1561 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1557 def _reduce_37(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1566 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1562 def _reduce_38(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1572 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1568 def _reduce_39(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1578 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1574 def _reduce_40(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1584 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1580 def _reduce_41(val, _values, result); end # reduce 42 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1592 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1588 def _reduce_43(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1598 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1594 def _reduce_44(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1604 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1600 def _reduce_45(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1610 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1606 def _reduce_46(val, _values, result); end # reduce 56 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1636 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1632 def _reduce_57(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1642 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1638 def _reduce_58(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1648 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1644 def _reduce_59(val, _values, result); end - # source://rdoc//rdoc/rd/inline_parser.rb#1654 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1650 def _reduce_60(val, _values, result); end # reduce 61 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1661 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1657 def _reduce_62(val, _values, result); end # reduce 63 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1669 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1665 def _reduce_64(val, _values, result); end # reduce 77 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1701 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1697 def _reduce_78(val, _values, result); end # reduce 137 omitted # - # source://rdoc//rdoc/rd/inline_parser.rb#1852 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#1848 def _reduce_none(val, _values, result); end # Creates a new RDoc::RD::Inline for the +rdoc+ markup and the raw +reference+ # - # source://rdoc//rdoc/rd/inline_parser.rb#887 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#883 def inline(rdoc, reference = T.unsafe(nil)); end # Returns the next token from the inline text # - # source://rdoc//rdoc/rd/inline_parser.rb#756 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#752 def next_token; end # Returns words following an error # - # source://rdoc//rdoc/rd/inline_parser.rb#876 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#872 def next_words_on_error; end # Raises a ParseError when invalid formatting is found # # @raise [ParseError] # - # source://rdoc//rdoc/rd/inline_parser.rb#836 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#832 def on_error(et, ev, values); end # Parses the +inline+ text from RD format into RDoc format. # - # source://rdoc//rdoc/rd/inline_parser.rb#745 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#741 def parse(inline); end # Returns words before the error # - # source://rdoc//rdoc/rd/inline_parser.rb#853 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#849 def prev_words_on_error(ev); end private # Returns the last line of +src+ # - # source://rdoc//rdoc/rd/inline_parser.rb#864 + # source://rdoc//lib/rdoc/rd/inline_parser.rb#860 def last_line(src); end end -# source://rdoc//rdoc/rd/inline_parser.rb#1377 +# source://rdoc//lib/rdoc/rd/inline_parser.rb#1373 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 @@ -10283,13 +10449,15 @@ 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//rdoc/rdoc.rb#100 + # source://rdoc//lib/rdoc/rdoc.rb#100 def initialize; end # Generates documentation or a coverage report depending upon the settings @@ -10305,52 +10473,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//rdoc/rdoc.rb#450 + # source://rdoc//lib/rdoc/rdoc.rb#450 def document(options); end # Report an error message and exit # # @raise [RDoc::Error] # - # source://rdoc//rdoc/rdoc.rb#113 + # source://rdoc//lib/rdoc/rdoc.rb#113 def error(msg); end # Gathers a set of parseable files from the files and directories listed in # +files+. # - # source://rdoc//rdoc/rdoc.rb#121 + # source://rdoc//lib/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//rdoc/rdoc.rb#515 + # source://rdoc//lib/rdoc/rdoc.rb#515 def generate; end # Generator instance used for creating output # - # source://rdoc//rdoc/rdoc.rb#52 + # source://rdoc//lib/rdoc/rdoc.rb#52 def generator; end # Generator instance used for creating output # - # source://rdoc//rdoc/rdoc.rb#52 + # source://rdoc//lib/rdoc/rdoc.rb#52 def generator=(_arg0); end # Turns RDoc from stdin into HTML # - # source://rdoc//rdoc/rdoc.rb#142 + # source://rdoc//lib/rdoc/rdoc.rb#142 def handle_pipe; end # Installs a siginfo handler that prints the current filename. # - # source://rdoc//rdoc/rdoc.rb#157 + # source://rdoc//lib/rdoc/rdoc.rb#157 def install_siginfo_handler; end # Hash of files and their last modified times. # - # source://rdoc//rdoc/rdoc.rb#57 + # source://rdoc//lib/rdoc/rdoc.rb#57 def last_modified; end # Return a list of the files to be processed in a directory. We know that @@ -10358,7 +10526,7 @@ class RDoc::RDoc # files. However we may well contain subdirectories which must be tested # for .document files. # - # source://rdoc//rdoc/rdoc.rb#323 + # source://rdoc//lib/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 @@ -10372,106 +10540,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//rdoc/rdoc.rb#275 + # source://rdoc//lib/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//rdoc/rdoc.rb#62 + # source://rdoc//lib/rdoc/rdoc.rb#62 def options; end # RDoc options # - # source://rdoc//rdoc/rdoc.rb#62 + # source://rdoc//lib/rdoc/rdoc.rb#62 def options=(_arg0); end # Return the path name of the flag file in an output directory. # - # source://rdoc//rdoc/rdoc.rb#240 + # source://rdoc//lib/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//rdoc/rdoc.rb#249 + # source://rdoc//lib/rdoc/rdoc.rb#249 def parse_dot_doc_file(in_dir, filename); end # Parses +filename+ and returns an RDoc::TopLevel # - # source://rdoc//rdoc/rdoc.rb#332 + # source://rdoc//lib/rdoc/rdoc.rb#332 def parse_file(filename); end # Parse each file on the command line, recursively entering directories. # - # source://rdoc//rdoc/rdoc.rb#404 + # source://rdoc//lib/rdoc/rdoc.rb#404 def parse_files(files); end # Removes a siginfo handler and replaces the previous # - # source://rdoc//rdoc/rdoc.rb#534 + # source://rdoc//lib/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//rdoc/rdoc.rb#428 + # source://rdoc//lib/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//rdoc/rdoc.rb#170 + # source://rdoc//lib/rdoc/rdoc.rb#170 def setup_output_dir(dir, force); end # Accessor for statistics. Available after each call to parse_files # - # source://rdoc//rdoc/rdoc.rb#67 + # source://rdoc//lib/rdoc/rdoc.rb#67 def stats; end # The current documentation store # - # source://rdoc//rdoc/rdoc.rb#72 + # source://rdoc//lib/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//rdoc/rdoc.rb#215 + # source://rdoc//lib/rdoc/rdoc.rb#215 def store=(store); end # Update the flag file in an output directory. # - # source://rdoc//rdoc/rdoc.rb#223 + # source://rdoc//lib/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//rdoc/rdoc.rb#77 + # source://rdoc//lib/rdoc/rdoc.rb#77 def add_generator(klass); end # Active RDoc::RDoc instance # - # source://rdoc//rdoc/rdoc.rb#85 + # source://rdoc//lib/rdoc/rdoc.rb#85 def current; end # Sets the active RDoc::RDoc instance # - # source://rdoc//rdoc/rdoc.rb#92 + # source://rdoc//lib/rdoc/rdoc.rb#92 def current=(rdoc); end end end # List of directory names skipped if test suites should be skipped # -# source://rdoc//rdoc/rdoc.rb#46 +# source://rdoc//lib/rdoc/rdoc.rb#46 RDoc::RDoc::TEST_SUITE_DIRECTORY_NAMES = T.let(T.unsafe(nil), Array) # List of directory names always skipped # -# source://rdoc//rdoc/rdoc.rb#41 +# source://rdoc//lib/rdoc/rdoc.rb#41 RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES = T.let(T.unsafe(nil), Array) # The RI driver implements the command-line ri tool. @@ -10488,134 +10656,136 @@ 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//rdoc/ri/driver.rb#391 + # source://rdoc//lib/rdoc/ri/driver.rb#391 def initialize(initial_options = T.unsafe(nil)); end # Adds paths for undocumented classes +also_in+ to +out+ # - # source://rdoc//rdoc/ri/driver.rb#429 + # source://rdoc//lib/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//rdoc/ri/driver.rb#446 + # source://rdoc//lib/rdoc/ri/driver.rb#446 def add_class(out, name, classes); end # Adds +extends+ to +out+ # - # source://rdoc//rdoc/ri/driver.rb#473 + # source://rdoc//lib/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//rdoc/ri/driver.rb#481 + # source://rdoc//lib/rdoc/ri/driver.rb#481 def add_extension_modules(out, type, extensions); end # Renders multiple included +modules+ from +store+ to +out+. # - # source://rdoc//rdoc/ri/driver.rb#499 + # source://rdoc//lib/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//rdoc/ri/driver.rb#526 + # source://rdoc//lib/rdoc/ri/driver.rb#526 def add_extension_modules_single(out, store, include); end # Adds "(from ...)" to +out+ for +store+ # - # source://rdoc//rdoc/ri/driver.rb#466 + # source://rdoc//lib/rdoc/ri/driver.rb#466 def add_from(out, store); end # Adds +includes+ to +out+ # - # source://rdoc//rdoc/ri/driver.rb#540 + # source://rdoc//lib/rdoc/ri/driver.rb#540 def add_includes(out, includes); end # Looks up the method +name+ and adds it to +out+ # - # source://rdoc//rdoc/ri/driver.rb#547 + # source://rdoc//lib/rdoc/ri/driver.rb#547 def add_method(out, name); end # Adds documentation for all methods in +klass+ to +out+ # - # source://rdoc//rdoc/ri/driver.rb#558 + # source://rdoc//lib/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//rdoc/ri/driver.rb#571 + # source://rdoc//lib/rdoc/ri/driver.rb#571 def add_method_list(out, methods, name); end # Returns ancestor classes of +klass+ # - # source://rdoc//rdoc/ri/driver.rb#591 + # source://rdoc//lib/rdoc/ri/driver.rb#591 def ancestors_of(klass); end - # source://rdoc//rdoc/ri/driver.rb#926 + # source://rdoc//lib/rdoc/ri/driver.rb#926 def check_did_you_mean; end # For RubyGems backwards compatibility # - # source://rdoc//rdoc/ri/driver.rb#622 + # source://rdoc//lib/rdoc/ri/driver.rb#622 def class_cache; end # Builds a RDoc::Markup::Document from +found+, +klasess+ and +includes+ # - # source://rdoc//rdoc/ri/driver.rb#628 + # source://rdoc//lib/rdoc/ri/driver.rb#628 def class_document(name, found, klasses, includes, extends); end # Adds the class +comment+ to +out+. # - # source://rdoc//rdoc/ri/driver.rb#650 + # source://rdoc//lib/rdoc/ri/driver.rb#650 def class_document_comment(out, comment); end # Adds the constants from +klass+ to the Document +out+. # - # source://rdoc//rdoc/ri/driver.rb#670 + # source://rdoc//lib/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//rdoc/ri/driver.rb#694 + # source://rdoc//lib/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//rdoc/ri/driver.rb#714 + # source://rdoc//lib/rdoc/ri/driver.rb#714 def classes_and_includes_and_extends_for(name); end # Completes +name+ based on the caches. For Readline # - # source://rdoc//rdoc/ri/driver.rb#739 + # source://rdoc//lib/rdoc/ri/driver.rb#739 def complete(name); end - # source://rdoc//rdoc/ri/driver.rb#750 + # source://rdoc//lib/rdoc/ri/driver.rb#750 def complete_klass(name, klass, selector, method, completions); end - # source://rdoc//rdoc/ri/driver.rb#769 + # source://rdoc//lib/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//rdoc/ri/driver.rb#789 + # source://rdoc//lib/rdoc/ri/driver.rb#789 def display(document); end # Outputs formatted RI data for class +name+. Groups undocumented classes # - # source://rdoc//rdoc/ri/driver.rb#802 + # source://rdoc//lib/rdoc/ri/driver.rb#802 def display_class(name); end # Outputs formatted RI data for method +name+ # - # source://rdoc//rdoc/ri/driver.rb#818 + # source://rdoc//lib/rdoc/ri/driver.rb#818 def display_method(name); end # Outputs formatted RI data for the class or method +name+. @@ -10623,39 +10793,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//rdoc/ri/driver.rb#832 + # source://rdoc//lib/rdoc/ri/driver.rb#832 def display_name(name); end # Displays each name in +name+ # - # source://rdoc//rdoc/ri/driver.rb#861 + # source://rdoc//lib/rdoc/ri/driver.rb#861 def display_names(names); end # Outputs formatted RI data for page +name+. # - # source://rdoc//rdoc/ri/driver.rb#872 + # source://rdoc//lib/rdoc/ri/driver.rb#872 def display_page(name); end # Outputs a formatted RI page list for the pages in +store+. # - # source://rdoc//rdoc/ri/driver.rb#903 + # source://rdoc//lib/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//rdoc/ri/driver.rb#947 + # source://rdoc//lib/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//rdoc/ri/driver.rb#965 + # source://rdoc//lib/rdoc/ri/driver.rb#965 def expand_name(name); end # Filters the methods in +found+ trying to find a match for +name+. # - # source://rdoc//rdoc/ri/driver.rb#981 + # source://rdoc//lib/rdoc/ri/driver.rb#981 def filter_methods(found, name); end # Yields items matching +name+ including the store they were found in, the @@ -10663,7 +10833,7 @@ class RDoc::RI::Driver # types of methods to look up (from #method_type), and the method name being # searched for # - # source://rdoc//rdoc/ri/driver.rb#999 + # source://rdoc//lib/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", @@ -10673,73 +10843,73 @@ class RDoc::RI::Driver # # @raise [RDoc::RI::Driver::NotFoundError] # - # source://rdoc//rdoc/ri/driver.rb#1045 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1062 + # source://rdoc//lib/rdoc/ri/driver.rb#1062 def formatter(io); end # Runs ri interactively using Readline if it is available. # - # source://rdoc//rdoc/ri/driver.rb#1075 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1114 + # source://rdoc//lib/rdoc/ri/driver.rb#1114 def list_known_classes(names = T.unsafe(nil)); end # Returns an Array of methods matching +name+ # - # source://rdoc//rdoc/ri/driver.rb#1146 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1185 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1208 + # source://rdoc//lib/rdoc/ri/driver.rb#1208 def load_methods_matching(name); end # Returns a filtered list of methods matching +name+ # - # source://rdoc//rdoc/ri/driver.rb#1229 + # source://rdoc//lib/rdoc/ri/driver.rb#1229 def lookup_method(name); end # Builds a RDoc::Markup::Document from +found+, +klasses+ and +includes+ # - # source://rdoc//rdoc/ri/driver.rb#1254 + # source://rdoc//lib/rdoc/ri/driver.rb#1254 def method_document(name, filtered); end # Returns the type of method (:both, :instance, :class) for +selector+ # - # source://rdoc//rdoc/ri/driver.rb#1272 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1284 + # source://rdoc//lib/rdoc/ri/driver.rb#1284 def name_regexp(name); end # Paginates output through a pager program. # - # source://rdoc//rdoc/ri/driver.rb#1298 + # source://rdoc//lib/rdoc/ri/driver.rb#1298 def page; end # Are we using a pager? # # @return [Boolean] # - # source://rdoc//rdoc/ri/driver.rb#1316 + # source://rdoc//lib/rdoc/ri/driver.rb#1316 def paging?; end # Extracts the class, selector and method name parts from +name+ like @@ -10748,146 +10918,152 @@ class RDoc::RI::Driver # NOTE: Given Foo::Bar, Bar is considered a class even though it may be a # method # - # source://rdoc//rdoc/ri/driver.rb#1327 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1359 + # source://rdoc//lib/rdoc/ri/driver.rb#1359 def render_class(out, store, klass, also_in); end - # source://rdoc//rdoc/ri/driver.rb#1389 + # source://rdoc//lib/rdoc/ri/driver.rb#1389 def render_method(out, store, method, name); end - # source://rdoc//rdoc/ri/driver.rb#1409 + # source://rdoc//lib/rdoc/ri/driver.rb#1409 def render_method_arguments(out, arglists); end - # source://rdoc//rdoc/ri/driver.rb#1418 + # source://rdoc//lib/rdoc/ri/driver.rb#1418 def render_method_comment(out, method, alias_for = T.unsafe(nil)); end - # source://rdoc//rdoc/ri/driver.rb#1436 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1448 + # source://rdoc//lib/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//rdoc/ri/driver.rb#1468 + # source://rdoc//lib/rdoc/ri/driver.rb#1468 def setup_pager; end # Show all method documentation following a class or module # - # source://rdoc//rdoc/ri/driver.rb#62 + # source://rdoc//lib/rdoc/ri/driver.rb#62 def show_all; end # Show all method documentation following a class or module # - # source://rdoc//rdoc/ri/driver.rb#62 + # source://rdoc//lib/rdoc/ri/driver.rb#62 def show_all=(_arg0); end # Starts a WEBrick server for ri. # - # source://rdoc//rdoc/ri/driver.rb#1494 + # source://rdoc//lib/rdoc/ri/driver.rb#1494 def start_server; end # An RDoc::RI::Store for each entry in the RI path # - # source://rdoc//rdoc/ri/driver.rb#67 + # source://rdoc//lib/rdoc/ri/driver.rb#67 def stores; end # An RDoc::RI::Store for each entry in the RI path # - # source://rdoc//rdoc/ri/driver.rb#67 + # source://rdoc//lib/rdoc/ri/driver.rb#67 def stores=(_arg0); end # Controls the user of the pager vs $stdout # - # source://rdoc//rdoc/ri/driver.rb#72 + # source://rdoc//lib/rdoc/ri/driver.rb#72 def use_stdout; end # Controls the user of the pager vs $stdout # - # source://rdoc//rdoc/ri/driver.rb#72 + # source://rdoc//lib/rdoc/ri/driver.rb#72 def use_stdout=(_arg0); end class << self # Default options for ri # - # source://rdoc//rdoc/ri/driver.rb#77 + # source://rdoc//lib/rdoc/ri/driver.rb#77 def default_options; end # Dump +data_path+ using pp # - # source://rdoc//rdoc/ri/driver.rb#98 + # source://rdoc//lib/rdoc/ri/driver.rb#98 def dump(data_path); end # Parses +argv+ and returns a Hash of options # - # source://rdoc//rdoc/ri/driver.rb#109 + # source://rdoc//lib/rdoc/ri/driver.rb#109 def process_args(argv); end # Runs the ri command line executable using +argv+ # - # source://rdoc//rdoc/ri/driver.rb#376 + # source://rdoc//lib/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//rdoc/ri/driver.rb#37 + # source://rdoc//lib/rdoc/ri/driver.rb#37 def initialize(klass, suggestion_proc = T.unsafe(nil)); end - # source://rdoc//rdoc/ri/driver.rb#49 + # source://rdoc//lib/rdoc/ri/driver.rb#49 def message; end # Name that wasn't found # - # source://rdoc//rdoc/ri/driver.rb#45 + # source://rdoc//lib/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//rdoc/ri/store.rb#4 +# source://rdoc//lib/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//rdoc/require.rb#15 + # source://rdoc//lib/rdoc/require.rb#15 def initialize(name, comment); end - # source://rdoc//rdoc/require.rb#22 + # source://rdoc//lib/rdoc/require.rb#22 def inspect; end # Name of the required file # - # source://rdoc//rdoc/require.rb#10 + # source://rdoc//lib/rdoc/require.rb#10 def name; end # Name of the required file # - # source://rdoc//rdoc/require.rb#10 + # source://rdoc//lib/rdoc/require.rb#10 def name=(_arg0); end - # source://rdoc//rdoc/require.rb#31 + # source://rdoc//lib/rdoc/require.rb#31 def to_s; end # The RDoc::TopLevel corresponding to this require, or +nil+ if not found. # - # source://rdoc//rdoc/require.rb#38 + # source://rdoc//lib/rdoc/require.rb#38 def top_level; end end @@ -10910,6 +11086,8 @@ 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. # @@ -10922,22 +11100,22 @@ class RDoc::Servlet < ::WEBrick::HTTPServlet::AbstractServlet # # @return [Servlet] a new instance of Servlet # - # source://rdoc//rdoc/servlet.rb#69 + # source://rdoc//lib/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//rdoc/servlet.rb#100 + # source://rdoc//lib/rdoc/servlet.rb#100 def asset(generator_name, req, res); end # Maps an asset type to its path on the filesystem # - # source://rdoc//rdoc/servlet.rb#42 + # source://rdoc//lib/rdoc/servlet.rb#42 def asset_dirs; end # GET request entry point. Fills in +res+ for the path, etc. in +req+. # - # source://rdoc//rdoc/servlet.rb#119 + # source://rdoc//lib/rdoc/servlet.rb#119 def do_GET(req, res); end # Fills in +res+ with the class, module or page for +req+ from +store+. @@ -10946,36 +11124,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//rdoc/servlet.rb#152 + # source://rdoc//lib/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//rdoc/servlet.rb#171 + # source://rdoc//lib/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//rdoc/servlet.rb#185 + # source://rdoc//lib/rdoc/servlet.rb#185 def documentation_source(path); end # Generates an error page for the +exception+ while handling +req+ on +res+. # - # source://rdoc//rdoc/servlet.rb#203 + # source://rdoc//lib/rdoc/servlet.rb#203 def error(exception, req, res); end # Instantiates a Darkfish generator for +store+ # - # source://rdoc//rdoc/servlet.rb#246 + # source://rdoc//lib/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//rdoc/servlet.rb#267 + # source://rdoc//lib/rdoc/servlet.rb#267 def if_modified_since(req, res, path = T.unsafe(nil)); end # Returns an Array of installed documentation. @@ -10985,75 +11163,79 @@ 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//rdoc/servlet.rb#290 + # source://rdoc//lib/rdoc/servlet.rb#290 def installed_docs; end # Returns a 404 page built by +generator+ for +req+ on +res+. # - # source://rdoc//rdoc/servlet.rb#318 + # source://rdoc//lib/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//rdoc/servlet.rb#47 + # source://rdoc//lib/rdoc/servlet.rb#47 def options; end # Enumerates the ri paths. See RDoc::RI::Paths#each # - # source://rdoc//rdoc/servlet.rb#327 + # source://rdoc//lib/rdoc/servlet.rb#327 def ri_paths(&block); end # Generates the root page on +res+. +req+ is ignored. # - # source://rdoc//rdoc/servlet.rb#334 + # source://rdoc//lib/rdoc/servlet.rb#334 def root(req, res); end # Generates a search index for the root page on +res+. +req+ is ignored. # - # source://rdoc//rdoc/servlet.rb#345 + # source://rdoc//lib/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//rdoc/servlet.rb#395 + # source://rdoc//lib/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//rdoc/servlet.rb#419 + # source://rdoc//lib/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//rdoc/servlet.rb#53 + # source://rdoc//lib/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//rdoc/single_class.rb#10 + # source://rdoc//lib/rdoc/single_class.rb#10 def ancestors; end - # source://rdoc//rdoc/single_class.rb#14 + # source://rdoc//lib/rdoc/single_class.rb#14 def aref_prefix; end # The definition of this singleton class, class << MyClassName # - # source://rdoc//rdoc/single_class.rb#21 + # source://rdoc//lib/rdoc/single_class.rb#21 def definition; end - # source://rdoc//rdoc/single_class.rb#25 + # source://rdoc//lib/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 @@ -11062,58 +11244,58 @@ class RDoc::Stats # # @return [Stats] a new instance of Stats # - # source://rdoc//rdoc/stats.rb#29 + # source://rdoc//lib/rdoc/stats.rb#29 def initialize(store, num_files, verbosity = T.unsafe(nil)); end # Records the parsing of an alias +as+. # - # source://rdoc//rdoc/stats.rb#52 + # source://rdoc//lib/rdoc/stats.rb#52 def add_alias(as); end # Records the parsing of an attribute +attribute+ # - # source://rdoc//rdoc/stats.rb#59 + # source://rdoc//lib/rdoc/stats.rb#59 def add_attribute(attribute); end # Records the parsing of a class +klass+ # - # source://rdoc//rdoc/stats.rb#66 + # source://rdoc//lib/rdoc/stats.rb#66 def add_class(klass); end # Records the parsing of +constant+ # - # source://rdoc//rdoc/stats.rb#73 + # source://rdoc//lib/rdoc/stats.rb#73 def add_constant(constant); end # Records the parsing of +file+ # - # source://rdoc//rdoc/stats.rb#80 + # source://rdoc//lib/rdoc/stats.rb#80 def add_file(file); end # Records the parsing of +method+ # - # source://rdoc//rdoc/stats.rb#88 + # source://rdoc//lib/rdoc/stats.rb#88 def add_method(method); end # Records the parsing of a module +mod+ # - # source://rdoc//rdoc/stats.rb#95 + # source://rdoc//lib/rdoc/stats.rb#95 def add_module(mod); end # Call this to mark the beginning of parsing for display purposes # - # source://rdoc//rdoc/stats.rb#102 + # source://rdoc//lib/rdoc/stats.rb#102 def begin_adding; end # Calculates documentation totals and percentages for classes, modules, # constants, attributes and methods. # - # source://rdoc//rdoc/stats.rb#110 + # source://rdoc//lib/rdoc/stats.rb#110 def calculate; end # Output level for the coverage report # - # source://rdoc//rdoc/stats.rb#13 + # source://rdoc//lib/rdoc/stats.rb#13 def coverage_level; end # Sets coverage report level. Accepted values are: @@ -11122,22 +11304,22 @@ class RDoc::Stats # 0:: Classes, modules, constants, attributes, methods # 1:: Level 0 + method parameters # - # source://rdoc//rdoc/stats.rb#158 + # source://rdoc//lib/rdoc/stats.rb#158 def coverage_level=(level); end # Returns the length and number of undocumented items in +collection+. # - # source://rdoc//rdoc/stats.rb#167 + # source://rdoc//lib/rdoc/stats.rb#167 def doc_stats(collection); end # Call this to mark the end of parsing for display purposes # - # source://rdoc//rdoc/stats.rb#175 + # source://rdoc//lib/rdoc/stats.rb#175 def done_adding; end # Count of files parsed during parsing # - # source://rdoc//rdoc/stats.rb#18 + # source://rdoc//lib/rdoc/stats.rb#18 def files_so_far; end # The documentation status of this project. +true+ when 100%, +false+ when @@ -11147,158 +11329,164 @@ class RDoc::Stats # # @return [Boolean] # - # source://rdoc//rdoc/stats.rb#185 + # source://rdoc//lib/rdoc/stats.rb#185 def fully_documented?; end # A report that says you did a great job! # - # source://rdoc//rdoc/stats.rb#192 + # source://rdoc//lib/rdoc/stats.rb#192 def great_job; end # Total number of files found # - # source://rdoc//rdoc/stats.rb#23 + # source://rdoc//lib/rdoc/stats.rb#23 def num_files; end # Calculates the percentage of items documented. # - # source://rdoc//rdoc/stats.rb#204 + # source://rdoc//lib/rdoc/stats.rb#204 def percent_doc; end # Returns a report on which items are not documented # - # source://rdoc//rdoc/stats.rb#218 + # source://rdoc//lib/rdoc/stats.rb#218 def report; end # Returns a report on undocumented attributes in ClassModule +cm+ # - # source://rdoc//rdoc/stats.rb#259 + # source://rdoc//lib/rdoc/stats.rb#259 def report_attributes(cm); end # Returns a report on undocumented items in ClassModule +cm+ # - # source://rdoc//rdoc/stats.rb#277 + # source://rdoc//lib/rdoc/stats.rb#277 def report_class_module(cm); end # Returns a report on undocumented constants in ClassModule +cm+ # - # source://rdoc//rdoc/stats.rb#329 + # source://rdoc//lib/rdoc/stats.rb#329 def report_constants(cm); end # Returns a report on undocumented methods in ClassModule +cm+ # - # source://rdoc//rdoc/stats.rb#351 + # source://rdoc//lib/rdoc/stats.rb#351 def report_methods(cm); end # Returns a summary of the collected statistics. # - # source://rdoc//rdoc/stats.rb#389 + # source://rdoc//lib/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//rdoc/stats.rb#439 + # source://rdoc//lib/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//rdoc/stats/normal.rb#15 + # source://rdoc//lib/rdoc/stats/normal.rb#15 def begin_adding; end - # source://rdoc//rdoc/stats/normal.rb#54 + # source://rdoc//lib/rdoc/stats/normal.rb#54 def done_adding; end # Prints a file with a progress bar # - # source://rdoc//rdoc/stats/normal.rb#23 + # source://rdoc//lib/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//rdoc/stats/quiet.rb#10 + # source://rdoc//lib/rdoc/stats/quiet.rb#10 def initialize(num_files); end # Prints a message at the beginning of parsing # - # source://rdoc//rdoc/stats/quiet.rb#17 + # source://rdoc//lib/rdoc/stats/quiet.rb#17 def begin_adding(*_arg0); end # Prints when RDoc is done # - # source://rdoc//rdoc/stats/quiet.rb#57 + # source://rdoc//lib/rdoc/stats/quiet.rb#57 def done_adding(*_arg0); end # Prints when an alias is added # - # source://rdoc//rdoc/stats/quiet.rb#22 + # source://rdoc//lib/rdoc/stats/quiet.rb#22 def print_alias(*_arg0); end # Prints when an attribute is added # - # source://rdoc//rdoc/stats/quiet.rb#27 + # source://rdoc//lib/rdoc/stats/quiet.rb#27 def print_attribute(*_arg0); end # Prints when a class is added # - # source://rdoc//rdoc/stats/quiet.rb#32 + # source://rdoc//lib/rdoc/stats/quiet.rb#32 def print_class(*_arg0); end # Prints when a constant is added # - # source://rdoc//rdoc/stats/quiet.rb#37 + # source://rdoc//lib/rdoc/stats/quiet.rb#37 def print_constant(*_arg0); end # Prints when a file is added # - # source://rdoc//rdoc/stats/quiet.rb#42 + # source://rdoc//lib/rdoc/stats/quiet.rb#42 def print_file(*_arg0); end # Prints when a method is added # - # source://rdoc//rdoc/stats/quiet.rb#47 + # source://rdoc//lib/rdoc/stats/quiet.rb#47 def print_method(*_arg0); end # Prints when a module is added # - # source://rdoc//rdoc/stats/quiet.rb#52 + # source://rdoc//lib/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//rdoc/stats/verbose.rb#11 + # source://rdoc//lib/rdoc/stats/verbose.rb#11 def nodoc(co); end - # source://rdoc//rdoc/stats/verbose.rb#15 + # source://rdoc//lib/rdoc/stats/verbose.rb#15 def print_alias(as); end - # source://rdoc//rdoc/stats/verbose.rb#19 + # source://rdoc//lib/rdoc/stats/verbose.rb#19 def print_attribute(attribute); end - # source://rdoc//rdoc/stats/verbose.rb#23 + # source://rdoc//lib/rdoc/stats/verbose.rb#23 def print_class(klass); end - # source://rdoc//rdoc/stats/verbose.rb#27 + # source://rdoc//lib/rdoc/stats/verbose.rb#27 def print_constant(constant); end - # source://rdoc//rdoc/stats/verbose.rb#31 + # source://rdoc//lib/rdoc/stats/verbose.rb#31 def print_file(files_so_far, file); end - # source://rdoc//rdoc/stats/verbose.rb#36 + # source://rdoc//lib/rdoc/stats/verbose.rb#36 def print_method(method); end - # source://rdoc//rdoc/stats/verbose.rb#40 + # source://rdoc//lib/rdoc/stats/verbose.rb#40 def print_module(mod); end end @@ -11321,117 +11509,119 @@ 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//rdoc/store.rb#127 + # source://rdoc//lib/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//rdoc/store.rb#169 + # source://rdoc//lib/rdoc/store.rb#169 def add_c_enclosure(variable, namespace); end # Adds C variables from an RDoc::Parser::C # - # source://rdoc//rdoc/store.rb#176 + # source://rdoc//lib/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//rdoc/store.rb#188 + # source://rdoc//lib/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//rdoc/store.rb#212 + # source://rdoc//lib/rdoc/store.rb#212 def all_classes; end # Returns all classes and modules discovered by RDoc # - # source://rdoc//rdoc/store.rb#219 + # source://rdoc//lib/rdoc/store.rb#219 def all_classes_and_modules; end # All TopLevels known to RDoc # - # source://rdoc//rdoc/store.rb#226 + # source://rdoc//lib/rdoc/store.rb#226 def all_files; end # Returns all modules discovered by RDoc # - # source://rdoc//rdoc/store.rb#233 + # source://rdoc//lib/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//rdoc/store.rb#242 + # source://rdoc//lib/rdoc/store.rb#242 def ancestors; end # Attributes cache accessor. Maps a class to an Array of its attributes. # - # source://rdoc//rdoc/store.rb#249 + # source://rdoc//lib/rdoc/store.rb#249 def attributes; end # Maps C variables to class or module names for each parsed C file. # - # source://rdoc//rdoc/store.rb#80 + # source://rdoc//lib/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//rdoc/store.rb#73 + # source://rdoc//lib/rdoc/store.rb#73 def c_enclosure_classes; end - # source://rdoc//rdoc/store.rb#75 + # source://rdoc//lib/rdoc/store.rb#75 def c_enclosure_names; end # Maps C variables to singleton class names for each parsed C file. # - # source://rdoc//rdoc/store.rb#85 + # source://rdoc//lib/rdoc/store.rb#85 def c_singleton_class_variables; end # The contents of the Store # - # source://rdoc//rdoc/store.rb#112 + # source://rdoc//lib/rdoc/store.rb#112 def cache; end # Path to the cache file # - # source://rdoc//rdoc/store.rb#256 + # source://rdoc//lib/rdoc/store.rb#256 def cache_path; end # Path to the ri data for +klass_name+ # - # source://rdoc//rdoc/store.rb#263 + # source://rdoc//lib/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//rdoc/store.rb#272 + # source://rdoc//lib/rdoc/store.rb#272 def class_methods; end # Path where data for +klass_name+ will be stored (methods or class data) # - # source://rdoc//rdoc/store.rb#279 + # source://rdoc//lib/rdoc/store.rb#279 def class_path(klass_name); end # Hash of all classes known to RDoc # - # source://rdoc//rdoc/store.rb#286 + # source://rdoc//lib/rdoc/store.rb#286 def classes_hash; end # Removes empty items and ensures item in each collection are unique and # sorted # - # source://rdoc//rdoc/store.rb#294 + # source://rdoc//lib/rdoc/store.rb#294 def clean_cache_collection(collection); end # Prepares the RDoc code object tree for use by a generator. @@ -11449,68 +11639,68 @@ class RDoc::Store # # See also RDoc::Context#remove_from_documentation? # - # source://rdoc//rdoc/store.rb#322 + # source://rdoc//lib/rdoc/store.rb#322 def complete(min_visibility); end # If true this Store will not write any files # - # source://rdoc//rdoc/store.rb#90 + # source://rdoc//lib/rdoc/store.rb#90 def dry_run; end # If true this Store will not write any files # - # source://rdoc//rdoc/store.rb#90 + # source://rdoc//lib/rdoc/store.rb#90 def dry_run=(_arg0); end # The encoding of the contents in the Store # - # source://rdoc//rdoc/store.rb#117 + # source://rdoc//lib/rdoc/store.rb#117 def encoding; end # The encoding of the contents in the Store # - # source://rdoc//rdoc/store.rb#117 + # source://rdoc//lib/rdoc/store.rb#117 def encoding=(_arg0); end # Hash of all files known to RDoc # - # source://rdoc//rdoc/store.rb#362 + # source://rdoc//lib/rdoc/store.rb#362 def files_hash; end # Finds the enclosure (namespace) for the given C +variable+. # - # source://rdoc//rdoc/store.rb#369 + # source://rdoc//lib/rdoc/store.rb#369 def find_c_enclosure(variable); end # Finds the class with +name+ in all discovered classes # - # source://rdoc//rdoc/store.rb#394 + # source://rdoc//lib/rdoc/store.rb#394 def find_class_named(name); end # Finds the class with +name+ starting in namespace +from+ # - # source://rdoc//rdoc/store.rb#401 + # source://rdoc//lib/rdoc/store.rb#401 def find_class_named_from(name, from); end # Finds the class or module with +name+ # - # source://rdoc//rdoc/store.rb#419 + # source://rdoc//lib/rdoc/store.rb#419 def find_class_or_module(name); end # Finds the file with +name+ in all discovered files # - # source://rdoc//rdoc/store.rb#427 + # source://rdoc//lib/rdoc/store.rb#427 def find_file_named(name); end # Finds the module with +name+ in all discovered modules # - # source://rdoc//rdoc/store.rb#434 + # source://rdoc//lib/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//rdoc/store.rb#442 + # source://rdoc//lib/rdoc/store.rb#442 def find_text_page(file_name); end # Finds unique classes/modules defined in +all_hash+, @@ -11519,7 +11709,7 @@ class RDoc::Store # -- # TODO aliases should be registered by Context#add_module_alias # - # source://rdoc//rdoc/store.rb#455 + # source://rdoc//lib/rdoc/store.rb#455 def find_unique(all_hash); end # Fixes the erroneous BasicObject < Object in 1.9. @@ -11530,149 +11720,149 @@ class RDoc::Store # We fix BasicObject right away if we are running in a Ruby # version >= 1.9. # - # source://rdoc//rdoc/store.rb#474 + # source://rdoc//lib/rdoc/store.rb#474 def fix_basic_object_inheritance; end # Friendly rendition of #path # - # source://rdoc//rdoc/store.rb#483 + # source://rdoc//lib/rdoc/store.rb#483 def friendly_path; end - # source://rdoc//rdoc/store.rb#495 + # source://rdoc//lib/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//rdoc/store.rb#503 + # source://rdoc//lib/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//rdoc/store.rb#511 + # source://rdoc//lib/rdoc/store.rb#511 def load_all; end # Loads cache file for this store # - # source://rdoc//rdoc/store.rb#559 + # source://rdoc//lib/rdoc/store.rb#559 def load_cache; end # Loads ri data for +klass_name+ and hooks it up to this store. # - # source://rdoc//rdoc/store.rb#598 + # source://rdoc//lib/rdoc/store.rb#598 def load_class(klass_name); end # Loads ri data for +klass_name+ # - # source://rdoc//rdoc/store.rb#616 + # source://rdoc//lib/rdoc/store.rb#616 def load_class_data(klass_name); end # Loads ri data for +method_name+ in +klass_name+ # - # source://rdoc//rdoc/store.rb#629 + # source://rdoc//lib/rdoc/store.rb#629 def load_method(klass_name, method_name); end # Loads ri data for +page_name+ # - # source://rdoc//rdoc/store.rb#645 + # source://rdoc//lib/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//rdoc/store.rb#661 + # source://rdoc//lib/rdoc/store.rb#661 def main; end # Sets the main page for this RDoc store. # - # source://rdoc//rdoc/store.rb#668 + # source://rdoc//lib/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//rdoc/store.rb#676 + # source://rdoc//lib/rdoc/store.rb#676 def make_variable_map(variables); end # Path to the ri data for +method_name+ in +klass_name+ # - # source://rdoc//rdoc/store.rb#689 + # source://rdoc//lib/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//rdoc/store.rb#703 + # source://rdoc//lib/rdoc/store.rb#703 def module_names; end # Hash of all modules known to RDoc # - # source://rdoc//rdoc/store.rb#710 + # source://rdoc//lib/rdoc/store.rb#710 def modules_hash; end # Returns the RDoc::TopLevel that is a text file and has the given +name+ # - # source://rdoc//rdoc/store.rb#717 + # source://rdoc//lib/rdoc/store.rb#717 def page(name); end # Path to the ri data for +page_name+ # - # source://rdoc//rdoc/store.rb#726 + # source://rdoc//lib/rdoc/store.rb#726 def page_file(page_name); end # Path this store reads or writes # - # source://rdoc//rdoc/store.rb#95 + # source://rdoc//lib/rdoc/store.rb#95 def path; end # Path this store reads or writes # - # source://rdoc//rdoc/store.rb#95 + # source://rdoc//lib/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//rdoc/store.rb#101 + # source://rdoc//lib/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//rdoc/store.rb#101 + # source://rdoc//lib/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//rdoc/store.rb#737 + # source://rdoc//lib/rdoc/store.rb#737 def remove_nodoc(all_hash); end # Saves all entries in the store # - # source://rdoc//rdoc/store.rb#747 + # source://rdoc//lib/rdoc/store.rb#747 def save; end # Writes the cache file for this store # - # source://rdoc//rdoc/store.rb#772 + # source://rdoc//lib/rdoc/store.rb#772 def save_cache; end # Writes the ri data for +klass+ (or module) # - # source://rdoc//rdoc/store.rb#799 + # source://rdoc//lib/rdoc/store.rb#799 def save_class(klass); end # Writes the ri data for +method+ on +klass+ # - # source://rdoc//rdoc/store.rb#873 + # source://rdoc//lib/rdoc/store.rb#873 def save_method(klass, method); end # Writes the ri data for +page+ # - # source://rdoc//rdoc/store.rb#896 + # source://rdoc//lib/rdoc/store.rb#896 def save_page(page); end # Source of the contents of this store. @@ -11683,96 +11873,98 @@ class RDoc::Store # ri directory the store is "site". For other stores the source is the # #path. # - # source://rdoc//rdoc/store.rb#922 + # source://rdoc//lib/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//rdoc/store.rb#936 + # source://rdoc//lib/rdoc/store.rb#936 def title; end # Sets the title page for this RDoc store. # - # source://rdoc//rdoc/store.rb#943 + # source://rdoc//lib/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//rdoc/store.rb#107 + # source://rdoc//lib/rdoc/store.rb#107 def type; end # Type of ri datastore this was loaded from. See RDoc::RI::Driver, # RDoc::RI::Paths. # - # source://rdoc//rdoc/store.rb#107 + # source://rdoc//lib/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//rdoc/store.rb#952 + # source://rdoc//lib/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//rdoc/store.rb#960 + # source://rdoc//lib/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//rdoc/store.rb#968 + # source://rdoc//lib/rdoc/store.rb#968 def unique_modules; end # The lazy constants alias will be discovered in passing # - # source://rdoc//rdoc/store.rb#122 + # source://rdoc//lib/rdoc/store.rb#122 def unmatched_constant_alias; end # Sets the parser of +absolute_name+, unless it from a source code file. # - # source://rdoc//rdoc/store.rb#203 + # source://rdoc//lib/rdoc/store.rb#203 def update_parser_of_file(absolute_name, parser); end private - # source://rdoc//rdoc/store.rb#973 + # source://rdoc//lib/rdoc/store.rb#973 def marshal_load(file); end end -# source://rdoc//rdoc/store.rb#977 +# source://rdoc//lib/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//rdoc/store.rb#57 + # source://rdoc//lib/rdoc/store.rb#57 def initialize(store, file, name); end # The file the #name should be saved as # - # source://rdoc//rdoc/store.rb#46 + # source://rdoc//lib/rdoc/store.rb#46 def file; end - # source://rdoc//rdoc/store.rb#63 + # source://rdoc//lib/rdoc/store.rb#63 def message; end # The name of the object the #file would be loaded from # - # source://rdoc//rdoc/store.rb#51 + # source://rdoc//lib/rdoc/store.rb#51 def name; end # The store the file should exist in # - # source://rdoc//rdoc/store.rb#41 + # source://rdoc//lib/rdoc/store.rb#41 def store; end end @@ -11834,6 +12026,8 @@ 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. @@ -11842,264 +12036,266 @@ class RDoc::Task < ::Rake::TaskLib # @yield [_self] # @yieldparam _self [RDoc::Task] the object that the method was called on # - # source://rdoc//rdoc/task.rb#158 + # source://rdoc//lib/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//rdoc/task.rb#288 + # source://rdoc//lib/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//rdoc/task.rb#174 + # source://rdoc//lib/rdoc/task.rb#174 def check_names(names); end # Task description for the clobber rdoc task or its renamed equivalent # - # source://rdoc//rdoc/task.rb#188 + # source://rdoc//lib/rdoc/task.rb#188 def clobber_task_description; end # Task description for the coverage task or its renamed description # - # source://rdoc//rdoc/task.rb#309 + # source://rdoc//lib/rdoc/task.rb#309 def coverage_task_description; end # Sets default task values # - # source://rdoc//rdoc/task.rb#195 + # source://rdoc//lib/rdoc/task.rb#195 def defaults; end # Create the tasks defined by this task lib. # - # source://rdoc//rdoc/task.rb#224 + # source://rdoc//lib/rdoc/task.rb#224 def define; end # Whether to run the rdoc process as an external shell (default is false) # - # source://rdoc//rdoc/task.rb#152 + # source://rdoc//lib/rdoc/task.rb#152 def external; end # Whether to run the rdoc process as an external shell (default is false) # - # source://rdoc//rdoc/task.rb#152 + # source://rdoc//lib/rdoc/task.rb#152 def external=(_arg0); end # Name of format generator (--format) used by rdoc. (defaults to # rdoc's default) # - # source://rdoc//rdoc/task.rb#137 + # source://rdoc//lib/rdoc/task.rb#137 def generator; end # Name of format generator (--format) used by rdoc. (defaults to # rdoc's default) # - # source://rdoc//rdoc/task.rb#137 + # source://rdoc//lib/rdoc/task.rb#137 def generator=(_arg0); end # All source is inline now. This method is deprecated # - # source://rdoc//rdoc/task.rb#209 + # source://rdoc//lib/rdoc/task.rb#209 def inline_source; end # All source is inline now. This method is deprecated # - # source://rdoc//rdoc/task.rb#217 + # source://rdoc//lib/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//rdoc/task.rb#126 + # source://rdoc//lib/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//rdoc/task.rb#126 + # source://rdoc//lib/rdoc/task.rb#126 def main=(_arg0); end # Comment markup format. rdoc, rd and tomdoc are supported. (default is # 'rdoc') # - # source://rdoc//rdoc/task.rb#110 + # source://rdoc//lib/rdoc/task.rb#110 def markup; end # Comment markup format. rdoc, rd and tomdoc are supported. (default is # 'rdoc') # - # source://rdoc//rdoc/task.rb#110 + # source://rdoc//lib/rdoc/task.rb#110 def markup=(_arg0); end # Name of the main, top level task. (default is :rdoc) # - # source://rdoc//rdoc/task.rb#104 + # source://rdoc//lib/rdoc/task.rb#104 def name; end # Name of the main, top level task. (default is :rdoc) # - # source://rdoc//rdoc/task.rb#104 + # source://rdoc//lib/rdoc/task.rb#104 def name=(_arg0); end # List of options that will be supplied to RDoc # - # source://rdoc//rdoc/task.rb#272 + # source://rdoc//lib/rdoc/task.rb#272 def option_list; end # Additional list of options to be passed rdoc. (default is []) # - # source://rdoc//rdoc/task.rb#147 + # source://rdoc//lib/rdoc/task.rb#147 def options; end # Additional list of options to be passed rdoc. (default is []) # - # source://rdoc//rdoc/task.rb#147 + # source://rdoc//lib/rdoc/task.rb#147 def options=(_arg0); end # Name of directory to receive the html output files. (default is "html") # - # source://rdoc//rdoc/task.rb#115 + # source://rdoc//lib/rdoc/task.rb#115 def rdoc_dir; end # Name of directory to receive the html output files. (default is "html") # - # source://rdoc//rdoc/task.rb#115 + # source://rdoc//lib/rdoc/task.rb#115 def rdoc_dir=(_arg0); end # List of files to be included in the rdoc generation. (default is []) # - # source://rdoc//rdoc/task.rb#142 + # source://rdoc//lib/rdoc/task.rb#142 def rdoc_files; end # List of files to be included in the rdoc generation. (default is []) # - # source://rdoc//rdoc/task.rb#142 + # source://rdoc//lib/rdoc/task.rb#142 def rdoc_files=(_arg0); end # Task description for the rdoc task or its renamed equivalent # - # source://rdoc//rdoc/task.rb#295 + # source://rdoc//lib/rdoc/task.rb#295 def rdoc_task_description; end # Task description for the rerdoc task or its renamed description # - # source://rdoc//rdoc/task.rb#302 + # source://rdoc//lib/rdoc/task.rb#302 def rerdoc_task_description; end # Name of template to be used by rdoc. (defaults to rdoc's default) # - # source://rdoc//rdoc/task.rb#131 + # source://rdoc//lib/rdoc/task.rb#131 def template; end # Name of template to be used by rdoc. (defaults to rdoc's default) # - # source://rdoc//rdoc/task.rb#131 + # source://rdoc//lib/rdoc/task.rb#131 def template=(_arg0); end # Title of RDoc documentation. (defaults to rdoc's default) # - # source://rdoc//rdoc/task.rb#120 + # source://rdoc//lib/rdoc/task.rb#120 def title; end # Title of RDoc documentation. (defaults to rdoc's default) # - # source://rdoc//rdoc/task.rb#120 + # source://rdoc//lib/rdoc/task.rb#120 def title=(_arg0); end private - # source://rdoc//rdoc/task.rb#326 + # source://rdoc//lib/rdoc/task.rb#326 def clobber_task_name; end - # source://rdoc//rdoc/task.rb#340 + # source://rdoc//lib/rdoc/task.rb#340 def coverage_task_name; end - # source://rdoc//rdoc/task.rb#315 + # source://rdoc//lib/rdoc/task.rb#315 def rdoc_target; end - # source://rdoc//rdoc/task.rb#319 + # source://rdoc//lib/rdoc/task.rb#319 def rdoc_task_name; end - # source://rdoc//rdoc/task.rb#333 + # source://rdoc//lib/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//rdoc/text.rb#63 + # source://rdoc//lib/rdoc/text.rb#63 def expand_tabs(text); end # Flush +text+ left based on the shortest line # - # source://rdoc//rdoc/text.rb#82 + # source://rdoc//lib/rdoc/text.rb#82 def flush_left(text); end # The language for this text. This affects stripping comments # markers. # - # source://rdoc//rdoc/text.rb#17 + # source://rdoc//lib/rdoc/text.rb#17 def language; end # The language for this text. This affects stripping comments # markers. # - # source://rdoc//rdoc/text.rb#17 + # source://rdoc//lib/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//rdoc/text.rb#101 + # source://rdoc//lib/rdoc/text.rb#101 def markup(text); end # Strips hashes, expands tabs then flushes +text+ to the left # - # source://rdoc//rdoc/text.rb#117 + # source://rdoc//lib/rdoc/text.rb#117 def normalize_comment(text); end # Normalizes +text+ then builds a RDoc::Markup::Document from it # - # source://rdoc//rdoc/text.rb#135 + # source://rdoc//lib/rdoc/text.rb#135 def parse(text, format = T.unsafe(nil)); end # The first +limit+ characters of +text+ as HTML # - # source://rdoc//rdoc/text.rb#149 + # source://rdoc//lib/rdoc/text.rb#149 def snippet(text, limit = T.unsafe(nil)); end # Strips leading # characters from +text+ # - # source://rdoc//rdoc/text.rb#158 + # source://rdoc//lib/rdoc/text.rb#158 def strip_hashes(text); end # Strips leading and trailing \n characters from +text+ # - # source://rdoc//rdoc/text.rb#170 + # source://rdoc//lib/rdoc/text.rb#170 def strip_newlines(text); end # Strips /* */ style comments # - # source://rdoc//rdoc/text.rb#177 + # source://rdoc//lib/rdoc/text.rb#177 def strip_stars(text); end - # source://rdoc//rdoc/text.rb#200 + # source://rdoc//lib/rdoc/text.rb#200 def to_html(text); end # Wraps +txt+ to +line_len+ # - # source://rdoc//rdoc/text.rb#287 + # source://rdoc//lib/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//rdoc/text.rb#55 + # source://rdoc//lib/rdoc/text.rb#55 def encode_fallback(character, encoding, fallback); end end end @@ -12107,7 +12303,7 @@ end # Character class to be separated by a space when concatenating # lines. # -# source://rdoc//rdoc/text.rb#320 +# source://rdoc//lib/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 @@ -12115,40 +12311,42 @@ 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//rdoc/token_stream.rb#84 + # source://rdoc//lib/rdoc/token_stream.rb#84 def add_token(token); end # Adds +tokens+ to the collected tokens # - # source://rdoc//rdoc/token_stream.rb#77 + # source://rdoc//lib/rdoc/token_stream.rb#77 def add_tokens(tokens); end # Starts collecting tokens # - # source://rdoc//rdoc/token_stream.rb#91 + # source://rdoc//lib/rdoc/token_stream.rb#91 def collect_tokens; end # Remove the last token from the collected tokens # - # source://rdoc//rdoc/token_stream.rb#100 + # source://rdoc//lib/rdoc/token_stream.rb#100 def pop_token; end # Starts collecting tokens # - # source://rdoc//rdoc/token_stream.rb#91 + # source://rdoc//lib/rdoc/token_stream.rb#91 def start_collecting_tokens; end # Current token stream # - # source://rdoc//rdoc/token_stream.rb#107 + # source://rdoc//lib/rdoc/token_stream.rb#107 def token_stream; end # Returns a string representation of the token stream # - # source://rdoc//rdoc/token_stream.rb#114 + # source://rdoc//lib/rdoc/token_stream.rb#114 def tokens_to_s; end class << self @@ -12156,7 +12354,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//rdoc/token_stream.rb#16 + # source://rdoc//lib/rdoc/token_stream.rb#16 def to_html(token_stream); end end end @@ -12198,12 +12396,14 @@ 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//rdoc/tom_doc.rb#130 + # source://rdoc//lib/rdoc/tom_doc.rb#130 def initialize; end # Internal: Builds a heading from the token stream @@ -12212,7 +12412,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Heading # - # source://rdoc//rdoc/tom_doc.rb#143 + # source://rdoc//lib/rdoc/tom_doc.rb#143 def build_heading(level); end # Internal: Builds a paragraph from the token stream @@ -12221,7 +12421,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Paragraph. # - # source://rdoc//rdoc/tom_doc.rb#173 + # source://rdoc//lib/rdoc/tom_doc.rb#173 def build_paragraph(margin); end # Internal: Builds a verbatim from the token stream. A verbatim in the @@ -12232,12 +12432,12 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Verbatim # - # source://rdoc//rdoc/tom_doc.rb#159 + # source://rdoc//lib/rdoc/tom_doc.rb#159 def build_verbatim(margin); end # Detects a section change to "Returns" and adds a heading # - # source://rdoc//rdoc/tom_doc.rb#213 + # source://rdoc//lib/rdoc/tom_doc.rb#213 def parse_text(parent, indent); end # Internal: Turns text into an Array of tokens @@ -12246,12 +12446,12 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns self. # - # source://rdoc//rdoc/tom_doc.rb#231 + # source://rdoc//lib/rdoc/tom_doc.rb#231 def tokenize(text); end # Internal: Token accessor # - # source://rdoc//rdoc/tom_doc.rb#46 + # source://rdoc//lib/rdoc/tom_doc.rb#46 def tokens; end class << self @@ -12260,7 +12460,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns nothing. # - # source://rdoc//rdoc/tom_doc.rb#53 + # source://rdoc//lib/rdoc/tom_doc.rb#53 def add_post_processor; end # Public: Parses TomDoc from text @@ -12278,7 +12478,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Document representing the TomDoc format. # - # source://rdoc//rdoc/tom_doc.rb#84 + # source://rdoc//lib/rdoc/tom_doc.rb#84 def parse(text); end # Internal: Extracts the Signature section's method signature @@ -12288,12 +12488,14 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns a String containing the signature and nil if not # - # source://rdoc//rdoc/tom_doc.rb#100 + # source://rdoc//lib/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 @@ -12301,72 +12503,72 @@ class RDoc::TopLevel < ::RDoc::Context # # @return [TopLevel] a new instance of TopLevel # - # source://rdoc//rdoc/top_level.rb#43 + # source://rdoc//lib/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//rdoc/top_level.rb#67 + # source://rdoc//lib/rdoc/top_level.rb#67 def ==(other); end # Absolute name of this file # - # source://rdoc//rdoc/top_level.rb#22 + # source://rdoc//lib/rdoc/top_level.rb#22 def absolute_name; end # Absolute name of this file # - # source://rdoc//rdoc/top_level.rb#22 + # source://rdoc//lib/rdoc/top_level.rb#22 def absolute_name=(_arg0); end # Adds +an_alias+ to +Object+ instead of +self+. # - # source://rdoc//rdoc/top_level.rb#76 + # source://rdoc//lib/rdoc/top_level.rb#76 def add_alias(an_alias); end # Adds +constant+ to +Object+ instead of +self+. # - # source://rdoc//rdoc/top_level.rb#85 + # source://rdoc//lib/rdoc/top_level.rb#85 def add_constant(constant); end # Adds +include+ to +Object+ instead of +self+. # - # source://rdoc//rdoc/top_level.rb#94 + # source://rdoc//lib/rdoc/top_level.rb#94 def add_include(include); end # Adds +method+ to +Object+ instead of +self+. # - # source://rdoc//rdoc/top_level.rb#103 + # source://rdoc//lib/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//rdoc/top_level.rb#113 + # source://rdoc//lib/rdoc/top_level.rb#113 def add_to_classes_or_modules(mod); end # Base name of this file # - # source://rdoc//rdoc/top_level.rb#120 + # source://rdoc//lib/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//rdoc/top_level.rb#29 + # source://rdoc//lib/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//rdoc/generator/markup.rb#149 + # source://rdoc//lib/rdoc/generator/markup.rb#149 def cvs_url; end - # source://rdoc//rdoc/top_level.rb#31 + # source://rdoc//lib/rdoc/top_level.rb#31 def diagram; end - # source://rdoc//rdoc/top_level.rb#31 + # source://rdoc//lib/rdoc/top_level.rb#31 def diagram=(_arg0); end # Only a TopLevel that contains text file) will be displayed. See also @@ -12374,22 +12576,22 @@ class RDoc::TopLevel < ::RDoc::Context # # @return [Boolean] # - # source://rdoc//rdoc/top_level.rb#130 + # source://rdoc//lib/rdoc/top_level.rb#130 def display?; end # An RDoc::TopLevel is equal to another with the same relative_name # - # source://rdoc//rdoc/top_level.rb#67 + # source://rdoc//lib/rdoc/top_level.rb#67 def eql?(other); end # This TopLevel's File::Stat struct # - # source://rdoc//rdoc/top_level.rb#12 + # source://rdoc//lib/rdoc/top_level.rb#12 def file_stat; end # This TopLevel's File::Stat struct # - # source://rdoc//rdoc/top_level.rb#12 + # source://rdoc//lib/rdoc/top_level.rb#12 def file_stat=(_arg0); end # See RDoc::TopLevel::find_class_or_module @@ -12397,115 +12599,117 @@ class RDoc::TopLevel < ::RDoc::Context # TODO Why do we search through all classes/modules found, not just the # ones of this instance? # - # source://rdoc//rdoc/top_level.rb#140 + # source://rdoc//lib/rdoc/top_level.rb#140 def find_class_or_module(name); end # Finds a class or module named +symbol+ # - # source://rdoc//rdoc/top_level.rb#147 + # source://rdoc//lib/rdoc/top_level.rb#147 def find_local_symbol(symbol); end # Finds a module or class with +name+ # - # source://rdoc//rdoc/top_level.rb#154 + # source://rdoc//lib/rdoc/top_level.rb#154 def find_module_named(name); end # Returns the relative name of this file # - # source://rdoc//rdoc/top_level.rb#161 + # source://rdoc//lib/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//rdoc/top_level.rb#169 + # source://rdoc//lib/rdoc/top_level.rb#169 def hash; end # URL for this with a +prefix+ # - # source://rdoc//rdoc/top_level.rb#176 + # source://rdoc//lib/rdoc/top_level.rb#176 def http_url(prefix); end - # source://rdoc//rdoc/top_level.rb#182 + # source://rdoc//lib/rdoc/top_level.rb#182 def inspect; end # Time this file was last modified, if known # - # source://rdoc//rdoc/top_level.rb#194 + # source://rdoc//lib/rdoc/top_level.rb#194 def last_modified; end # Dumps this TopLevel for use by ri. See also #marshal_load # - # source://rdoc//rdoc/top_level.rb#201 + # source://rdoc//lib/rdoc/top_level.rb#201 def marshal_dump; end # Loads this TopLevel from +array+. # - # source://rdoc//rdoc/top_level.rb#213 + # source://rdoc//lib/rdoc/top_level.rb#213 def marshal_load(array); end # Base name of this file # - # source://rdoc//rdoc/top_level.rb#120 + # source://rdoc//lib/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//rdoc/top_level.rb#227 + # source://rdoc//lib/rdoc/top_level.rb#227 def object_class; end # Base name of this file without the extension # - # source://rdoc//rdoc/top_level.rb#238 + # source://rdoc//lib/rdoc/top_level.rb#238 def page_name; end # The parser class that processed this file # - # source://rdoc//rdoc/top_level.rb#36 + # source://rdoc//lib/rdoc/top_level.rb#36 def parser; end # Sets the parser for this toplevel context, also the store. # - # source://rdoc//rdoc/top_level.rb#58 + # source://rdoc//lib/rdoc/top_level.rb#58 def parser=(val); end # Path to this file for use with HTML generator output. # - # source://rdoc//rdoc/top_level.rb#248 + # source://rdoc//lib/rdoc/top_level.rb#248 def path; end - # source://rdoc//rdoc/top_level.rb#252 + # source://rdoc//lib/rdoc/top_level.rb#252 def pretty_print(q); end # Relative name of this file # - # source://rdoc//rdoc/top_level.rb#17 + # source://rdoc//lib/rdoc/top_level.rb#17 def relative_name; end # Relative name of this file # - # source://rdoc//rdoc/top_level.rb#17 + # source://rdoc//lib/rdoc/top_level.rb#17 def relative_name=(_arg0); end # Search record used by RDoc::Generator::JsonIndex # - # source://rdoc//rdoc/top_level.rb#266 + # source://rdoc//lib/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//rdoc/top_level.rb#283 + # source://rdoc//lib/rdoc/top_level.rb#283 def text?; end - # source://rdoc//rdoc/top_level.rb#287 + # source://rdoc//lib/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 @@ -12513,5 +12717,5 @@ end # For backwards compatibility # -# source://rdoc//rdoc/task.rb#352 +# source://rdoc//lib/rdoc/task.rb#352 Rake::RDocTask = RDoc::Task diff --git a/sorbet/rbi/gems/redis-client@0.22.2.rbi b/sorbet/rbi/gems/redis-client@0.22.2.rbi deleted file mode 100644 index 345e2331f..00000000 --- a/sorbet/rbi/gems/redis-client@0.22.2.rbi +++ /dev/null @@ -1,1255 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 -end - -# source://redis-client//lib/redis_client/version.rb#3 -class RedisClient - include ::RedisClient::Common - - # @return [RedisClient] a new instance of RedisClient - # - # source://redis-client//lib/redis_client.rb#188 - def initialize(config, **_arg1); end - - # source://redis-client//lib/redis_client.rb#335 - def blocking_call(timeout, *command, **kwargs); end - - # source://redis-client//lib/redis_client.rb#355 - def blocking_call_v(timeout, command); end - - # source://redis-client//lib/redis_client.rb#275 - def call(*command, **kwargs); end - - # source://redis-client//lib/redis_client.rb#305 - def call_once(*command, **kwargs); end - - # source://redis-client//lib/redis_client.rb#320 - def call_once_v(command); end - - # source://redis-client//lib/redis_client.rb#290 - def call_v(command); end - - # source://redis-client//lib/redis_client.rb#415 - def close; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client.rb#411 - def connected?; end - - # source://redis-client//lib/redis_client.rb#212 - def db; end - - # source://redis-client//lib/redis_client.rb#420 - def disable_reconnection(&block); end - - # source://redis-client//lib/redis_client.rb#216 - def host; end - - # source://redis-client//lib/redis_client.rb#393 - def hscan(key, *args, **kwargs, &block); end - - # source://redis-client//lib/redis_client.rb#204 - def id; end - - # source://redis-client//lib/redis_client.rb#195 - def inspect; end - - # source://redis-client//lib/redis_client.rb#267 - def measure_round_trip_delay; end - - # source://redis-client//lib/redis_client.rb#442 - def multi(watch: T.unsafe(nil), &block); end - - # source://redis-client//lib/redis_client.rb#232 - def password; end - - # source://redis-client//lib/redis_client.rb#224 - def path; end - - # @yield [pipeline] - # - # source://redis-client//lib/redis_client.rb#424 - def pipelined(exception: T.unsafe(nil)); end - - # source://redis-client//lib/redis_client.rb#220 - def port; end - - # source://redis-client//lib/redis_client.rb#261 - def pubsub; end - - # source://redis-client//lib/redis_client.rb#251 - def read_timeout=(timeout); end - - # source://redis-client//lib/redis_client.rb#375 - def scan(*args, **kwargs, &block); end - - # source://redis-client//lib/redis_client.rb#200 - def server_url; end - - # source://redis-client//lib/redis_client.rb#236 - def size; end - - # source://redis-client//lib/redis_client.rb#384 - def sscan(key, *args, **kwargs, &block); end - - # @yield [_self] - # @yieldparam _self [RedisClient] the object that the method was called on - # - # source://redis-client//lib/redis_client.rb#240 - def then(_options = T.unsafe(nil)); end - - # source://redis-client//lib/redis_client.rb#208 - def timeout; end - - # source://redis-client//lib/redis_client.rb#245 - def timeout=(timeout); end - - # source://redis-client//lib/redis_client.rb#228 - def username; end - - # @yield [_self] - # @yieldparam _self [RedisClient] the object that the method was called on - # - # source://redis-client//lib/redis_client.rb#240 - def with(_options = T.unsafe(nil)); end - - # source://redis-client//lib/redis_client.rb#256 - def write_timeout=(timeout); end - - # source://redis-client//lib/redis_client.rb#402 - def zscan(key, *args, **kwargs, &block); end - - private - - # @yield [transaction] - # - # source://redis-client//lib/redis_client.rb#649 - def build_transaction; end - - # source://redis-client//lib/redis_client.rb#737 - def connect; end - - # source://redis-client//lib/redis_client.rb#683 - def ensure_connected(retryable: T.unsafe(nil)); end - - # source://redis-client//lib/redis_client.rb#730 - def raw_connection; end - - # source://redis-client//lib/redis_client.rb#657 - def scan_list(cursor_index, command, &block); end - - # source://redis-client//lib/redis_client.rb#667 - def scan_pairs(cursor_index, command); end - - class << self - # source://redis-client//lib/redis_client.rb#165 - def config(**kwargs); end - - # source://redis-client//lib/redis_client.rb#33 - def default_driver; end - - # source://redis-client//lib/redis_client.rb#45 - def default_driver=(name); end - - # source://redis-client//lib/redis_client.rb#22 - def driver(name); end - - # source://redis-client//lib/redis_client.rb#173 - def new(arg = T.unsafe(nil), **kwargs); end - - # source://redis-client//lib/redis_client.rb#181 - def register(middleware); end - - # source://redis-client//lib/redis_client.rb#18 - def register_driver(name, &block); end - - # source://redis-client//lib/redis_client.rb#169 - def sentinel(**kwargs); end - end -end - -# source://redis-client//lib/redis_client.rb#144 -class RedisClient::AuthenticationError < ::RedisClient::CommandError; end - -# source://redis-client//lib/redis_client/middlewares.rb#4 -class RedisClient::BasicMiddleware - # @return [BasicMiddleware] a new instance of BasicMiddleware - # - # source://redis-client//lib/redis_client/middlewares.rb#7 - def initialize(client); end - - # @yield [command] - # - # source://redis-client//lib/redis_client/middlewares.rb#15 - def call(command, _config); end - - # @yield [command] - # - # source://redis-client//lib/redis_client/middlewares.rb#15 - def call_pipelined(command, _config); end - - # Returns the value of attribute client. - # - # source://redis-client//lib/redis_client/middlewares.rb#5 - def client; end - - # source://redis-client//lib/redis_client/middlewares.rb#11 - def connect(_config); end -end - -# source://redis-client//lib/redis_client.rb#108 -class RedisClient::CannotConnectError < ::RedisClient::ConnectionError; end - -# source://redis-client//lib/redis_client.rb#115 -class RedisClient::CheckoutTimeoutError < ::RedisClient::TimeoutError; end - -# source://redis-client//lib/redis_client/circuit_breaker.rb#4 -class RedisClient::CircuitBreaker - # @return [CircuitBreaker] a new instance of CircuitBreaker - # - # source://redis-client//lib/redis_client/circuit_breaker.rb#23 - def initialize(error_threshold:, error_timeout:, error_threshold_timeout: T.unsafe(nil), success_threshold: T.unsafe(nil)); end - - # Returns the value of attribute error_threshold. - # - # source://redis-client//lib/redis_client/circuit_breaker.rb#21 - def error_threshold; end - - # Returns the value of attribute error_threshold_timeout. - # - # source://redis-client//lib/redis_client/circuit_breaker.rb#21 - def error_threshold_timeout; end - - # Returns the value of attribute error_timeout. - # - # source://redis-client//lib/redis_client/circuit_breaker.rb#21 - def error_timeout; end - - # source://redis-client//lib/redis_client/circuit_breaker.rb#34 - def protect; end - - # Returns the value of attribute success_threshold. - # - # source://redis-client//lib/redis_client/circuit_breaker.rb#21 - def success_threshold; end - - private - - # source://redis-client//lib/redis_client/circuit_breaker.rb#80 - def record_error; end - - # source://redis-client//lib/redis_client/circuit_breaker.rb#95 - def record_success; end - - # source://redis-client//lib/redis_client/circuit_breaker.rb#65 - def refresh_state; end -end - -# source://redis-client//lib/redis_client/circuit_breaker.rb#5 -module RedisClient::CircuitBreaker::Middleware - # source://redis-client//lib/redis_client/circuit_breaker.rb#10 - def call(_command, config); end - - # source://redis-client//lib/redis_client/circuit_breaker.rb#14 - def call_pipelined(_commands, config); end - - # source://redis-client//lib/redis_client/circuit_breaker.rb#6 - def connect(config); end -end - -# source://redis-client//lib/redis_client/circuit_breaker.rb#19 -class RedisClient::CircuitBreaker::OpenCircuitError < ::RedisClient::CannotConnectError; end - -# source://redis-client//lib/redis_client/command_builder.rb#4 -module RedisClient::CommandBuilder - extend ::RedisClient::CommandBuilder - - # source://redis-client//lib/redis_client/command_builder.rb#8 - def generate(args, kwargs = T.unsafe(nil)); end -end - -# source://redis-client//lib/redis_client.rb#125 -class RedisClient::CommandError < ::RedisClient::Error - include ::RedisClient::HasCommand - - class << self - # source://redis-client//lib/redis_client.rb#129 - def parse(error_message); end - end -end - -# source://redis-client//lib/redis_client.rb#155 -RedisClient::CommandError::ERRORS = T.let(T.unsafe(nil), Hash) - -# source://redis-client//lib/redis_client.rb#55 -module RedisClient::Common - # source://redis-client//lib/redis_client.rb#59 - def initialize(config, id: T.unsafe(nil), connect_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), write_timeout: T.unsafe(nil)); end - - # Returns the value of attribute config. - # - # source://redis-client//lib/redis_client.rb#56 - def config; end - - # Returns the value of attribute connect_timeout. - # - # source://redis-client//lib/redis_client.rb#57 - def connect_timeout; end - - # Sets the attribute connect_timeout - # - # @param value the value to set the attribute connect_timeout to. - # - # source://redis-client//lib/redis_client.rb#57 - def connect_timeout=(_arg0); end - - # Returns the value of attribute id. - # - # source://redis-client//lib/redis_client.rb#56 - def id; end - - # Returns the value of attribute read_timeout. - # - # source://redis-client//lib/redis_client.rb#57 - def read_timeout; end - - # Sets the attribute read_timeout - # - # @param value the value to set the attribute read_timeout to. - # - # source://redis-client//lib/redis_client.rb#57 - def read_timeout=(_arg0); end - - # source://redis-client//lib/redis_client.rb#75 - def timeout=(timeout); end - - # Returns the value of attribute write_timeout. - # - # source://redis-client//lib/redis_client.rb#57 - def write_timeout; end - - # Sets the attribute write_timeout - # - # @param value the value to set the attribute write_timeout to. - # - # source://redis-client//lib/redis_client.rb#57 - def write_timeout=(_arg0); end -end - -# source://redis-client//lib/redis_client/config.rb#7 -class RedisClient::Config - include ::RedisClient::Config::Common - - # @return [Config] a new instance of Config - # - # 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#183 - def host; end - - # Returns the value of attribute path. - # - # 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#183 - def port; end -end - -# source://redis-client//lib/redis_client/config.rb#14 -module RedisClient::Config::Common - # source://redis-client//lib/redis_client/config.rb#21 - def initialize(username: T.unsafe(nil), password: T.unsafe(nil), db: T.unsafe(nil), id: T.unsafe(nil), timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), write_timeout: T.unsafe(nil), connect_timeout: T.unsafe(nil), ssl: T.unsafe(nil), custom: T.unsafe(nil), ssl_params: T.unsafe(nil), driver: T.unsafe(nil), protocol: T.unsafe(nil), client_implementation: T.unsafe(nil), command_builder: T.unsafe(nil), inherit_socket: T.unsafe(nil), reconnect_attempts: T.unsafe(nil), middlewares: T.unsafe(nil), circuit_breaker: T.unsafe(nil)); end - - # Returns the value of attribute circuit_breaker. - # - # source://redis-client//lib/redis_client/config.rb#15 - def circuit_breaker; end - - # Returns the value of attribute command_builder. - # - # source://redis-client//lib/redis_client/config.rb#15 - def command_builder; end - - # Returns the value of attribute connect_timeout. - # - # source://redis-client//lib/redis_client/config.rb#15 - def connect_timeout; end - - # Returns the value of attribute connection_prelude. - # - # source://redis-client//lib/redis_client/config.rb#15 - def connection_prelude; end - - # Returns the value of attribute custom. - # - # source://redis-client//lib/redis_client/config.rb#15 - def custom; end - - # Returns the value of attribute db. - # - # source://redis-client//lib/redis_client/config.rb#15 - def db; end - - # Returns the value of attribute driver. - # - # source://redis-client//lib/redis_client/config.rb#15 - def driver; end - - # Returns the value of attribute id. - # - # source://redis-client//lib/redis_client/config.rb#15 - def id; end - - # Returns the value of attribute inherit_socket. - # - # source://redis-client//lib/redis_client/config.rb#15 - def inherit_socket; end - - # Returns the value of attribute middlewares_stack. - # - # source://redis-client//lib/redis_client/config.rb#15 - def middlewares_stack; end - - # source://redis-client//lib/redis_client/config.rb#107 - def new_client(**kwargs); end - - # source://redis-client//lib/redis_client/config.rb#102 - def new_pool(**kwargs); end - - # Returns the value of attribute password. - # - # source://redis-client//lib/redis_client/config.rb#15 - def password; end - - # Returns the value of attribute protocol. - # - # source://redis-client//lib/redis_client/config.rb#15 - def protocol; end - - # Returns the value of attribute read_timeout. - # - # source://redis-client//lib/redis_client/config.rb#15 - def read_timeout; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/config.rb#94 - def resolved?; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/config.rb#111 - def retry_connecting?(attempt, _error); end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/config.rb#98 - def sentinel?; end - - # source://redis-client//lib/redis_client/config.rb#129 - def server_url; end - - # Returns the value of attribute ssl. - # - # source://redis-client//lib/redis_client/config.rb#15 - def ssl; end - - # Returns the value of attribute ssl. - def ssl?; end - - # source://redis-client//lib/redis_client/config.rb#123 - def ssl_context; end - - # Returns the value of attribute ssl_params. - # - # source://redis-client//lib/redis_client/config.rb#15 - def ssl_params; end - - # source://redis-client//lib/redis_client/config.rb#90 - def username; end - - # Returns the value of attribute write_timeout. - # - # source://redis-client//lib/redis_client/config.rb#15 - def write_timeout; end - - private - - # source://redis-client//lib/redis_client/config.rb#152 - def build_connection_prelude; end -end - -# source://redis-client//lib/redis_client/config.rb#12 -RedisClient::Config::DEFAULT_DB = T.let(T.unsafe(nil), Integer) - -# source://redis-client//lib/redis_client/config.rb#9 -RedisClient::Config::DEFAULT_HOST = T.let(T.unsafe(nil), String) - -# source://redis-client//lib/redis_client/config.rb#10 -RedisClient::Config::DEFAULT_PORT = T.let(T.unsafe(nil), Integer) - -# source://redis-client//lib/redis_client/config.rb#8 -RedisClient::Config::DEFAULT_TIMEOUT = T.let(T.unsafe(nil), Float) - -# source://redis-client//lib/redis_client/config.rb#11 -RedisClient::Config::DEFAULT_USERNAME = T.let(T.unsafe(nil), String) - -# source://redis-client//lib/redis_client.rb#107 -class RedisClient::ConnectionError < ::RedisClient::Error; end - -# source://redis-client//lib/redis_client/connection_mixin.rb#4 -module RedisClient::ConnectionMixin - # source://redis-client//lib/redis_client/connection_mixin.rb#5 - def initialize; end - - # source://redis-client//lib/redis_client/connection_mixin.rb#28 - def call(command, timeout); end - - # source://redis-client//lib/redis_client/connection_mixin.rb#42 - def call_pipelined(commands, timeouts, exception: T.unsafe(nil)); end - - # 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 - - # source://redis-client//lib/redis_client/connection_mixin.rb#19 - def revalidate; end -end - -# source://redis-client//lib/redis_client.rb#94 -class RedisClient::Error < ::StandardError - include ::RedisClient::HasConfig - - class << self - # source://redis-client//lib/redis_client.rb#97 - def with_config(message, config = T.unsafe(nil)); end - end -end - -# source://redis-client//lib/redis_client.rb#110 -class RedisClient::FailoverError < ::RedisClient::ConnectionError; end - -# source://redis-client//lib/redis_client.rb#117 -module RedisClient::HasCommand - # source://redis-client//lib/redis_client.rb#120 - def _set_command(command); end - - # Returns the value of attribute command. - # - # source://redis-client//lib/redis_client.rb#118 - def command; end -end - -# source://redis-client//lib/redis_client.rb#80 -module RedisClient::HasConfig - # source://redis-client//lib/redis_client.rb#83 - def _set_config(config); end - - # Returns the value of attribute config. - # - # source://redis-client//lib/redis_client.rb#81 - def config; end - - # source://redis-client//lib/redis_client.rb#87 - def message; end -end - -# source://redis-client//lib/redis_client.rb#152 -class RedisClient::MasterDownError < ::RedisClient::ConnectionError - include ::RedisClient::HasCommand -end - -# source://redis-client//lib/redis_client/middlewares.rb#21 -class RedisClient::Middlewares < ::RedisClient::BasicMiddleware; end - -# source://redis-client//lib/redis_client.rb#523 -class RedisClient::Multi - # @return [Multi] a new instance of Multi - # - # source://redis-client//lib/redis_client.rb#524 - def initialize(command_builder); end - - # source://redis-client//lib/redis_client.rb#566 - def _blocks; end - - # source://redis-client//lib/redis_client.rb#586 - def _coerce!(results); end - - # source://redis-client//lib/redis_client.rb#562 - def _commands; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client.rb#574 - def _empty?; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client.rb#582 - def _retryable?; end - - # source://redis-client//lib/redis_client.rb#570 - def _size; end - - # source://redis-client//lib/redis_client.rb#578 - def _timeouts; end - - # source://redis-client//lib/redis_client.rb#532 - def call(*command, **kwargs, &block); end - - # source://redis-client//lib/redis_client.rb#546 - def call_once(*command, **kwargs, &block); end - - # source://redis-client//lib/redis_client.rb#554 - def call_once_v(command, &block); end - - # source://redis-client//lib/redis_client.rb#539 - def call_v(command, &block); end -end - -# source://redis-client//lib/redis_client.rb#147 -class RedisClient::OutOfMemoryError < ::RedisClient::CommandError; end - -# source://redis-client//lib/redis_client/pid_cache.rb#4 -module RedisClient::PIDCache - class << self - # Returns the value of attribute pid. - # - # source://redis-client//lib/redis_client/pid_cache.rb#10 - def pid; end - - # source://redis-client//lib/redis_client/pid_cache.rb#12 - def update!; end - end -end - -# source://redis-client//lib/redis_client/pid_cache.rb#18 -module RedisClient::PIDCache::CoreExt - # source://redis-client//lib/redis_client/pid_cache.rb#19 - def _fork; end -end - -# source://redis-client//lib/redis_client.rb#145 -class RedisClient::PermissionError < ::RedisClient::CommandError; end - -# source://redis-client//lib/redis_client.rb#602 -class RedisClient::Pipeline < ::RedisClient::Multi - # @return [Pipeline] a new instance of Pipeline - # - # source://redis-client//lib/redis_client.rb#603 - def initialize(_command_builder); end - - # source://redis-client//lib/redis_client.rb#634 - def _coerce!(results); end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client.rb#630 - def _empty?; end - - # source://redis-client//lib/redis_client.rb#626 - def _timeouts; end - - # source://redis-client//lib/redis_client.rb#608 - def blocking_call(timeout, *command, **kwargs, &block); end - - # source://redis-client//lib/redis_client.rb#617 - def blocking_call_v(timeout, command, &block); end -end - -# source://redis-client//lib/redis_client/pooled.rb#6 -class RedisClient::Pooled - include ::RedisClient::Common - - # @return [Pooled] a new instance of Pooled - # - # source://redis-client//lib/redis_client/pooled.rb#11 - def initialize(config, id: T.unsafe(nil), connect_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil), write_timeout: T.unsafe(nil), **kwargs); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def blocking_call(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def blocking_call_v(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def call(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def call_once(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def call_once_v(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def call_v(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#37 - def close; end - - # source://redis-client//lib/redis_client/pooled.rb#65 - def hscan(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def multi(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def pipelined(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#56 - def pubsub(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#65 - def scan(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#48 - def size; end - - # source://redis-client//lib/redis_client/pooled.rb#65 - def sscan(*args, **_arg1, &block); end - - # source://redis-client//lib/redis_client/pooled.rb#25 - def then(options = T.unsafe(nil)); end - - # source://redis-client//lib/redis_client/pooled.rb#25 - def with(options = T.unsafe(nil)); end - - # source://redis-client//lib/redis_client/pooled.rb#65 - def zscan(*args, **_arg1, &block); end - - private - - # source://redis-client//lib/redis_client/pooled.rb#82 - def new_pool; end - - # source://redis-client//lib/redis_client/pooled.rb#78 - def pool; end -end - -# source://redis-client//lib/redis_client/pooled.rb#7 -RedisClient::Pooled::EMPTY_HASH = T.let(T.unsafe(nil), Hash) - -# source://redis-client//lib/redis_client.rb#104 -class RedisClient::ProtocolError < ::RedisClient::Error; end - -# source://redis-client//lib/redis_client.rb#486 -class RedisClient::PubSub - # @return [PubSub] a new instance of PubSub - # - # source://redis-client//lib/redis_client.rb#487 - def initialize(raw_connection, command_builder); end - - # source://redis-client//lib/redis_client.rb#492 - def call(*command, **kwargs); end - - # source://redis-client//lib/redis_client.rb#497 - def call_v(command); end - - # source://redis-client//lib/redis_client.rb#502 - def close; end - - # source://redis-client//lib/redis_client.rb#508 - def next_event(timeout = T.unsafe(nil)); end - - private - - # Returns the value of attribute raw_connection. - # - # source://redis-client//lib/redis_client.rb#520 - def raw_connection; end -end - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#4 -module RedisClient::RESP3 - private - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#36 - def dump(command, buffer = T.unsafe(nil)); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#57 - def dump_any(object, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#68 - def dump_array(array, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#84 - def dump_hash(hash, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#93 - def dump_numeric(numeric, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#76 - def dump_set(set, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#97 - def dump_string(string, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#103 - def dump_symbol(symbol, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#49 - def load(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#53 - def new_buffer; end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#112 - def parse(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#166 - def parse_array(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#218 - def parse_blob(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#155 - def parse_boolean(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#200 - def parse_double(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#151 - def parse_error(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#196 - def parse_integer(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#174 - def parse_map(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#213 - def parse_null(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#182 - def parse_push(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#186 - def parse_sequence(io, size); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#170 - def parse_set(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#145 - def parse_string(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#227 - def parse_verbatim_string(io); end - - class << self - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#36 - def dump(command, buffer = T.unsafe(nil)); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#57 - def dump_any(object, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#68 - def dump_array(array, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#84 - def dump_hash(hash, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#93 - def dump_numeric(numeric, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#76 - def dump_set(set, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#97 - def dump_string(string, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#103 - def dump_symbol(symbol, buffer); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#49 - def load(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#53 - def new_buffer; end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#112 - def parse(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#166 - def parse_array(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#218 - def parse_blob(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#155 - def parse_boolean(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#200 - def parse_double(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#151 - def parse_error(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#196 - def parse_integer(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#174 - def parse_map(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#213 - def parse_null(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#182 - def parse_push(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#186 - def parse_sequence(io, size); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#170 - def parse_set(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#145 - def parse_string(io); end - - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#227 - def parse_verbatim_string(io); end - end -end - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#13 -RedisClient::RESP3::DUMP_TYPES = T.let(T.unsafe(nil), Hash) - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#11 -RedisClient::RESP3::EOL = T.let(T.unsafe(nil), String) - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#12 -RedisClient::RESP3::EOL_SIZE = T.let(T.unsafe(nil), Integer) - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#7 -class RedisClient::RESP3::Error < ::RedisClient::Error; end - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#34 -RedisClient::RESP3::INTEGER_RANGE = T.let(T.unsafe(nil), Range) - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#19 -RedisClient::RESP3::PARSER_TYPES = T.let(T.unsafe(nil), Hash) - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#9 -class RedisClient::RESP3::SyntaxError < ::RedisClient::RESP3::Error; end - -# source://redis-client//lib/redis_client/ruby_connection/resp3.rb#8 -class RedisClient::RESP3::UnknownType < ::RedisClient::RESP3::Error; end - -# source://redis-client//lib/redis_client.rb#149 -class RedisClient::ReadOnlyError < ::RedisClient::ConnectionError - include ::RedisClient::HasCommand -end - -# source://redis-client//lib/redis_client.rb#113 -class RedisClient::ReadTimeoutError < ::RedisClient::TimeoutError; end - -# source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#6 -class RedisClient::RubyConnection - include ::RedisClient::ConnectionMixin - - # @return [RubyConnection] a new instance of RubyConnection - # - # source://redis-client//lib/redis_client/ruby_connection.rb#45 - def initialize(config, connect_timeout:, read_timeout:, write_timeout:); end - - # source://redis-client//lib/redis_client/ruby_connection.rb#58 - def close; end - - # Returns the value of attribute config. - # - # source://redis-client//lib/redis_client/ruby_connection.rb#43 - def config; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/ruby_connection.rb#54 - def connected?; end - - # source://redis-client//lib/redis_client/ruby_connection.rb#106 - def measure_round_trip_delay; end - - # source://redis-client//lib/redis_client/ruby_connection.rb#94 - def read(timeout = T.unsafe(nil)); end - - # source://redis-client//lib/redis_client/ruby_connection.rb#63 - def read_timeout=(timeout); end - - # source://redis-client//lib/redis_client/ruby_connection.rb#73 - def write(command); end - - # source://redis-client//lib/redis_client/ruby_connection.rb#82 - def write_multi(commands); end - - # source://redis-client//lib/redis_client/ruby_connection.rb#68 - def write_timeout=(timeout); end - - private - - # source://redis-client//lib/redis_client/ruby_connection.rb#114 - def connect; end - - # unknown - # - # source://redis-client//lib/redis_client/ruby_connection.rb#172 - def enable_socket_keep_alive(socket); end - - class << self - # source://redis-client//lib/redis_client/ruby_connection.rb#14 - def ssl_context(ssl_params); end - end -end - -# source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#7 -class RedisClient::RubyConnection::BufferedIO - # @return [BufferedIO] a new instance of BufferedIO - # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#16 - def initialize(io, read_timeout:, write_timeout:, chunk_size: T.unsafe(nil)); end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#89 - def close; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#93 - def closed?; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#97 - def eof?; end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#150 - def getbyte; end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#26 - def gets_chomp; end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#159 - def gets_integer; end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#37 - def read_chomp(bytes); end - - # Returns the value of attribute read_timeout. - # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#11 - def read_timeout; end - - # Sets the attribute read_timeout - # - # @param value the value to set the attribute read_timeout to. - # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#11 - def read_timeout=(_arg0); end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#121 - def skip(offset); end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#101 - def with_timeout(new_timeout); end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#127 - def write(string); end - - # Returns the value of attribute write_timeout. - # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#11 - def write_timeout; end - - # Sets the attribute write_timeout - # - # @param value the value to set the attribute write_timeout to. - # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#11 - def write_timeout=(_arg0); end - - private - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#44 - def ensure_line; end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#184 - def ensure_remaining(bytes); end - - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#191 - def fill_buffer(strict, size = T.unsafe(nil)); end -end - -# source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#14 -RedisClient::RubyConnection::BufferedIO::ENCODING = T.let(T.unsafe(nil), Encoding) - -# source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#8 -RedisClient::RubyConnection::BufferedIO::EOL = T.let(T.unsafe(nil), String) - -# source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#9 -RedisClient::RubyConnection::BufferedIO::EOL_SIZE = T.let(T.unsafe(nil), Integer) - -# Same as hiredis defaults -# -# source://redis-client//lib/redis_client/ruby_connection.rb#157 -RedisClient::RubyConnection::KEEP_ALIVE_INTERVAL = T.let(T.unsafe(nil), Integer) - -# source://redis-client//lib/redis_client/ruby_connection.rb#159 -RedisClient::RubyConnection::KEEP_ALIVE_PROBES = T.let(T.unsafe(nil), Integer) - -# Longer than hiredis defaults -# -# source://redis-client//lib/redis_client/ruby_connection.rb#158 -RedisClient::RubyConnection::KEEP_ALIVE_TTL = T.let(T.unsafe(nil), Integer) - -# source://redis-client//lib/redis_client/ruby_connection.rb#41 -RedisClient::RubyConnection::SUPPORTS_RESOLV_TIMEOUT = T.let(T.unsafe(nil), TrueClass) - -# source://redis-client//lib/redis_client/sentinel_config.rb#4 -class RedisClient::SentinelConfig - include ::RedisClient::Config::Common - - # @return [SentinelConfig] a new instance of SentinelConfig - # - # source://redis-client//lib/redis_client/sentinel_config.rb#12 - def initialize(sentinels:, sentinel_password: T.unsafe(nil), sentinel_username: T.unsafe(nil), role: T.unsafe(nil), name: T.unsafe(nil), url: T.unsafe(nil), **client_config); end - - # source://redis-client//lib/redis_client/sentinel_config.rb#101 - def check_role!(role); end - - # source://redis-client//lib/redis_client/sentinel_config.rb#80 - def host; end - - # Returns the value of attribute name. - # - # source://redis-client//lib/redis_client/sentinel_config.rb#10 - def name; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#88 - def path; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#84 - def port; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#74 - def reset; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/sentinel_config.rb#115 - def resolved?; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/sentinel_config.rb#92 - def retry_connecting?(attempt, error); end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/sentinel_config.rb#97 - def sentinel?; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#68 - def sentinels; end - - private - - # source://redis-client//lib/redis_client/sentinel_config.rb#134 - def config; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#181 - def each_sentinel; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#207 - def refresh_sentinels(sentinel_client); end - - # source://redis-client//lib/redis_client/sentinel_config.rb#144 - def resolve_master; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#163 - def resolve_replica; end - - # source://redis-client//lib/redis_client/sentinel_config.rb#159 - def sentinel_client(sentinel_config); end - - # source://redis-client//lib/redis_client/sentinel_config.rb#123 - def sentinels_to_configs(sentinels); end -end - -# source://redis-client//lib/redis_client/sentinel_config.rb#8 -RedisClient::SentinelConfig::DEFAULT_RECONNECT_ATTEMPTS = T.let(T.unsafe(nil), Integer) - -# source://redis-client//lib/redis_client/sentinel_config.rb#7 -RedisClient::SentinelConfig::SENTINEL_DELAY = T.let(T.unsafe(nil), Float) - -# source://redis-client//lib/redis_client.rb#112 -class RedisClient::TimeoutError < ::RedisClient::ConnectionError; end - -# source://redis-client//lib/redis_client/url_config.rb#6 -class RedisClient::URLConfig - # @return [URLConfig] a new instance of URLConfig - # - # source://redis-client//lib/redis_client/url_config.rb#9 - def initialize(url); end - - # source://redis-client//lib/redis_client/url_config.rb#30 - def db; end - - # source://redis-client//lib/redis_client/url_config.rb#56 - def host; end - - # source://redis-client//lib/redis_client/url_config.rb#48 - def password; end - - # source://redis-client//lib/redis_client/url_config.rb#62 - def path; end - - # source://redis-client//lib/redis_client/url_config.rb#68 - def port; end - - # @return [Boolean] - # - # source://redis-client//lib/redis_client/url_config.rb#26 - def ssl?; end - - # Returns the value of attribute uri. - # - # source://redis-client//lib/redis_client/url_config.rb#7 - def uri; end - - # Returns the value of attribute url. - # - # source://redis-client//lib/redis_client/url_config.rb#7 - def url; end - - # source://redis-client//lib/redis_client/url_config.rb#44 - def username; end -end - -# source://redis-client//lib/redis_client.rb#105 -class RedisClient::UnsupportedServer < ::RedisClient::Error; end - -# source://redis-client//lib/redis_client/version.rb#4 -RedisClient::VERSION = T.let(T.unsafe(nil), String) - -# source://redis-client//lib/redis_client.rb#114 -class RedisClient::WriteTimeoutError < ::RedisClient::TimeoutError; end - -# source://redis-client//lib/redis_client.rb#146 -class RedisClient::WrongTypeError < ::RedisClient::CommandError; end diff --git a/sorbet/rbi/gems/redis@5.2.0.rbi b/sorbet/rbi/gems/redis@5.2.0.rbi deleted file mode 100644 index 3c7e0a75..00000000 --- a/sorbet/rbi/gems/redis@5.2.0.rbi +++ /dev/null @@ -1,4295 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - include ::Redis::Commands::Cluster - include ::Redis::Commands::Connection - include ::Redis::Commands::Geo - include ::Redis::Commands::Hashes - include ::Redis::Commands::HyperLogLog - include ::Redis::Commands::Keys - include ::Redis::Commands::Lists - include ::Redis::Commands::Pubsub - include ::Redis::Commands::Scripting - include ::Redis::Commands::Server - include ::Redis::Commands::Sets - include ::Redis::Commands::SortedSets - include ::Redis::Commands::Streams - include ::Redis::Commands::Strings - include ::Redis::Commands::Transactions - include ::Redis::Commands - - # Create a new client instance - # - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @param options [Hash] - # @return [Redis] a new client instance - # - # source://redis//lib/redis.rb#63 - def initialize(options = T.unsafe(nil)); end - - # source://redis//lib/redis.rb#98 - def _client; end - - # Disconnect the client as quickly and silently as possible. - # - # source://redis//lib/redis.rb#88 - def close; end - - # Test whether or not the client is connected - # - # @return [Boolean] - # - # source://redis//lib/redis.rb#83 - def connected?; end - - # source://redis//lib/redis.rb#122 - def connection; end - - # Disconnect the client as quickly and silently as possible. - # - # source://redis//lib/redis.rb#88 - def disconnect!; end - - # source://redis//lib/redis.rb#118 - def dup; end - - # source://redis//lib/redis.rb#110 - def id; end - - # source://redis//lib/redis.rb#114 - def inspect; end - - # source://redis//lib/redis.rb#102 - def pipelined(exception: T.unsafe(nil)); end - - # @yield [_self] - # @yieldparam _self [Redis] the object that the method was called on - # - # source://redis//lib/redis.rb#94 - def with; end - - # Run code without the client reconnecting - # - # source://redis//lib/redis.rb#78 - def without_reconnect(&block); end - - private - - # source://redis//lib/redis.rb#164 - def _subscription(method, timeout, channels, block); end - - # source://redis//lib/redis.rb#134 - def initialize_client(options); end - - # source://redis//lib/redis.rb#158 - def send_blocking_command(command, timeout, &block); end - - # source://redis//lib/redis.rb#150 - def send_command(command, &block); end - - # source://redis//lib/redis.rb#146 - def synchronize; end - - class << self - # source://redis//lib/redis.rb#14 - def deprecate!(message); end - - # Returns the value of attribute raise_deprecations. - # - # source://redis//lib/redis.rb#12 - def raise_deprecations; end - - # Sets the attribute raise_deprecations - # - # @param value the value to set the attribute raise_deprecations to. - # - # source://redis//lib/redis.rb#12 - def raise_deprecations=(_arg0); end - - # Returns the value of attribute silence_deprecations. - # - # source://redis//lib/redis.rb#12 - def silence_deprecations; end - - # Sets the attribute silence_deprecations - # - # @param value the value to set the attribute silence_deprecations to. - # - # source://redis//lib/redis.rb#12 - def silence_deprecations=(_arg0); end - end -end - -# source://redis//lib/redis.rb#8 -Redis::BASE_PATH = T.let(T.unsafe(nil), String) - -# Base error for connection related errors. -# -# source://redis//lib/redis/errors.rb#33 -class Redis::BaseConnectionError < ::Redis::BaseError; end - -# Base error for all redis-rb errors. -# -# source://redis//lib/redis/errors.rb#5 -class Redis::BaseError < ::StandardError; end - -# Raised when connection to a Redis server cannot be made. -# -# source://redis//lib/redis/errors.rb#37 -class Redis::CannotConnectError < ::Redis::BaseConnectionError; end - -# source://redis//lib/redis/client.rb#6 -class Redis::Client < ::RedisClient - # source://redis//lib/redis/client.rb#95 - def blocking_call_v(timeout, command, &block); end - - # source://redis//lib/redis/client.rb#89 - def call_v(command, &block); end - - # source://redis//lib/redis/client.rb#60 - def db; end - - # source://redis//lib/redis/client.rb#64 - def host; end - - # source://redis//lib/redis/client.rb#48 - def id; end - - # source://redis//lib/redis/client.rb#120 - def inherit_socket!; end - - # source://redis//lib/redis/client.rb#114 - def multi(watch: T.unsafe(nil)); end - - # source://redis//lib/redis/client.rb#80 - def password; end - - # source://redis//lib/redis/client.rb#72 - def path; end - - # source://redis//lib/redis/client.rb#108 - def pipelined(exception: T.unsafe(nil)); end - - # source://redis//lib/redis/client.rb#68 - def port; end - - # source://redis//lib/redis/client.rb#52 - def server_url; end - - # source://redis//lib/redis/client.rb#56 - def timeout; end - - # source://redis//lib/redis/client.rb#76 - def username; end - - class << self - # source://redis//lib/redis/client.rb#22 - def config(**kwargs); end - - # source://redis//lib/redis/client.rb#26 - def sentinel(**kwargs); end - - # @raise [redis_error] - # - # source://redis//lib/redis/client.rb#30 - def translate_error!(error, mapping: T.unsafe(nil)); end - - private - - # source://redis//lib/redis/client.rb#37 - def translate_error_class(error_class, mapping: T.unsafe(nil)); end - end -end - -# source://redis//lib/redis/client.rb#7 -Redis::Client::ERROR_MAPPING = T.let(T.unsafe(nil), Hash) - -# Raised by the client when command execution returns an error reply. -# -# source://redis//lib/redis/errors.rb#20 -class Redis::CommandError < ::Redis::BaseError; end - -# source://redis//lib/redis/commands/bitmaps.rb#4 -module Redis::Commands - include ::Redis::Commands::Bitmaps - include ::Redis::Commands::Cluster - include ::Redis::Commands::Connection - include ::Redis::Commands::Geo - include ::Redis::Commands::Hashes - include ::Redis::Commands::HyperLogLog - include ::Redis::Commands::Keys - include ::Redis::Commands::Lists - include ::Redis::Commands::Pubsub - include ::Redis::Commands::Scripting - include ::Redis::Commands::Server - include ::Redis::Commands::Sets - include ::Redis::Commands::SortedSets - include ::Redis::Commands::Streams - include ::Redis::Commands::Strings - include ::Redis::Commands::Transactions - - # Sends a command to Redis and returns its reply. - # - # Replies are converted to Ruby objects according to the RESP protocol, so - # you can expect a Ruby array, integer or nil when Redis sends one. Higher - # level transformations, such as converting an array of pairs into a Ruby - # hash, are up to consumers. - # - # Redis error replies are raised as Ruby exceptions. - # - # source://redis//lib/redis/commands.rb#202 - def call(*command); end - - # Interact with the sentinel command (masters, master, slaves, failover) - # - # @param subcommand [String] e.g. `masters`, `master`, `slaves` - # @param args [Array] depends on subcommand - # @return [Array, Hash, String] depends on subcommand - # - # source://redis//lib/redis/commands.rb#211 - def sentinel(subcommand, *args); end - - private - - # source://redis//lib/redis/commands.rb#233 - def method_missing(*command); end -end - -# source://redis//lib/redis/commands/bitmaps.rb#5 -module Redis::Commands::Bitmaps - # Count the number of set bits in a range of the string value stored at key. - # - # @param key [String] - # @param start [Integer] start index - # @param stop [Integer] stop index - # @param scale [String, Symbol] the scale of the offset range - # e.g. 'BYTE' - interpreted as a range of bytes, 'BIT' - interpreted as a range of bits - # @return [Integer] the number of bits set to 1 - # - # source://redis//lib/redis/commands/bitmaps.rb#33 - def bitcount(key, start = T.unsafe(nil), stop = T.unsafe(nil), scale: T.unsafe(nil)); end - - # Perform a bitwise operation between strings and store the resulting string in a key. - # - # @param operation [String] e.g. `and`, `or`, `xor`, `not` - # @param destkey [String] destination key - # @param keys [String, Array] one or more source keys to perform `operation` - # @return [Integer] the length of the string stored in `destkey` - # - # source://redis//lib/redis/commands/bitmaps.rb#45 - def bitop(operation, destkey, *keys); end - - # Return the position of the first bit set to 1 or 0 in a string. - # - # @param key [String] - # @param bit [Integer] whether to look for the first 1 or 0 bit - # @param start [Integer] start index - # @param stop [Integer] stop index - # @param scale [String, Symbol] the scale of the offset range - # e.g. 'BYTE' - interpreted as a range of bytes, 'BIT' - interpreted as a range of bits - # @raise [ArgumentError] - # @return [Integer] the position of the first 1/0 bit. - # -1 if looking for 1 and it is not found or start and stop are given. - # - # source://redis//lib/redis/commands/bitmaps.rb#62 - def bitpos(key, bit, start = T.unsafe(nil), stop = T.unsafe(nil), scale: T.unsafe(nil)); end - - # Returns the bit value at offset in the string value stored at key. - # - # @param key [String] - # @param offset [Integer] bit offset - # @return [Integer] `0` or `1` - # - # source://redis//lib/redis/commands/bitmaps.rb#21 - def getbit(key, offset); end - - # Sets or clears the bit at offset in the string value stored at key. - # - # @param key [String] - # @param offset [Integer] bit offset - # @param value [Integer] bit value `0` or `1` - # @return [Integer] the original bit value stored at `offset` - # - # source://redis//lib/redis/commands/bitmaps.rb#12 - def setbit(key, offset, value); end -end - -# Commands returning 1 for true and 0 for false may be executed in a pipeline -# where the method call will return nil. Propagate the nil instead of falsely -# returning false. -# -# source://redis//lib/redis/commands.rb#42 -Redis::Commands::Boolify = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#46 -Redis::Commands::BoolifySet = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands/cluster.rb#5 -module Redis::Commands::Cluster - # Sends `ASKING` command to random node and returns its reply. - # - # @return [String] `'OK'` - # @see https://redis.io/topics/cluster-spec#ask-redirection ASK redirection - # - # source://redis//lib/redis/commands/cluster.rb#23 - def asking; end - - # Sends `CLUSTER *` command to random node and returns its reply. - # - # @param subcommand [String, Symbol] the subcommand of cluster command - # e.g. `:slots`, `:nodes`, `:slaves`, `:info` - # @return [Object] depends on the subcommand - # @see https://redis.io/commands#cluster Reference of cluster command - # - # source://redis//lib/redis/commands/cluster.rb#14 - def cluster(subcommand, *args); end -end - -# source://redis//lib/redis/commands/connection.rb#5 -module Redis::Commands::Connection - # Authenticate to the server. - # - # @param args [Array] includes both username and password - # or only password - # @return [String] `OK` - # @see https://redis.io/commands/auth AUTH command - # - # source://redis//lib/redis/commands/connection.rb#12 - def auth(*args); end - - # Echo the given string. - # - # @param value [String] - # @return [String] - # - # source://redis//lib/redis/commands/connection.rb#28 - def echo(value); end - - # Ping the server. - # - # @param message [optional, String] - # @return [String] `PONG` - # - # source://redis//lib/redis/commands/connection.rb#20 - def ping(message = T.unsafe(nil)); end - - # Close the connection. - # - # @return [String] `OK` - # - # source://redis//lib/redis/commands/connection.rb#43 - def quit; end - - # Change the selected database for the current connection. - # - # @param db [Integer] zero-based index of the DB to use (0 to 15) - # @return [String] `OK` - # - # source://redis//lib/redis/commands/connection.rb#36 - def select(db); end -end - -# source://redis//lib/redis/commands.rb#110 -Redis::Commands::EMPTY_STREAM_RESPONSE = T.let(T.unsafe(nil), Array) - -# source://redis//lib/redis/commands.rb#73 -Redis::Commands::Floatify = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#86 -Redis::Commands::FloatifyPairs = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands/geo.rb#5 -module Redis::Commands::Geo - # Adds the specified geospatial items (latitude, longitude, name) to the specified key - # - # @param key [String] - # @param member [Array] arguemnts for member or members: longitude, latitude, name - # @return [Integer] number of elements added to the sorted set - # - # source://redis//lib/redis/commands/geo.rb#11 - def geoadd(key, *member); end - - # Returns the distance between two members of a geospatial index - # - # @param key [String] - # @param members [Array] - # @param unit ['m', 'km', 'mi', 'ft'] - # @return [String, nil] returns distance in spefied unit if both members present, nil otherwise. - # - # source://redis//lib/redis/commands/geo.rb#70 - def geodist(key, member1, member2, unit = T.unsafe(nil)); end - - # Returns geohash string representing position for specified members of the specified key. - # - # @param key [String] - # @param member [String, Array] one member or array of members - # @return [Array] returns array containg geohash string if member is present, nil otherwise - # - # source://redis//lib/redis/commands/geo.rb#20 - def geohash(key, member); end - - # Returns longitude and latitude of members of a geospatial index - # - # @param key [String] - # @param member [String, Array] one member or array of members - # @return [Array, nil>] returns array of elements, where each - # element is either array of longitude and latitude or nil - # - # source://redis//lib/redis/commands/geo.rb#60 - def geopos(key, member); end - - # Query a sorted set representing a geospatial index to fetch members matching a - # given maximum distance from a point - # - # @param args [Array] key, longitude, latitude, radius, unit(m|km|ft|mi) - # @param sort ['asc', 'desc'] sort returned items from the nearest to the farthest - # or the farthest to the nearest relative to the center - # @param count [Integer] limit the results to the first N matching items - # @param options ['WITHDIST', 'WITHCOORD', 'WITHHASH'] to return additional information - # @return [Array] may be changed with `options` - # - # source://redis//lib/redis/commands/geo.rb#33 - def georadius(*args, **geoptions); end - - # Query a sorted set representing a geospatial index to fetch members matching a - # given maximum distance from an already existing member - # - # @param args [Array] key, member, radius, unit(m|km|ft|mi) - # @param sort ['asc', 'desc'] sort returned items from the nearest to the farthest or the farthest - # to the nearest relative to the center - # @param count [Integer] limit the results to the first N matching items - # @param options ['WITHDIST', 'WITHCOORD', 'WITHHASH'] to return additional information - # @return [Array] may be changed with `options` - # - # source://redis//lib/redis/commands/geo.rb#48 - def georadiusbymember(*args, **geoptions); end - - private - - # source://redis//lib/redis/commands/geo.rb#76 - def _geoarguments(*args, options: T.unsafe(nil), sort: T.unsafe(nil), count: T.unsafe(nil)); end -end - -# source://redis//lib/redis/commands/hashes.rb#5 -module Redis::Commands::Hashes - # Delete one or more hash fields. - # - # @param key [String] - # @param field [String, Array] - # @return [Integer] the number of fields that were removed from the hash - # - # source://redis//lib/redis/commands/hashes.rb#156 - def hdel(key, *fields); end - - # Determine if a hash field exists. - # - # @param key [String] - # @param field [String] - # @return [Boolean] whether or not the field exists in the hash - # - # source://redis//lib/redis/commands/hashes.rb#166 - def hexists(key, field); end - - # Get the value of a hash field. - # - # @param key [String] - # @param field [String] - # @return [String] - # - # source://redis//lib/redis/commands/hashes.rb#74 - def hget(key, field); end - - # Get all the fields and values in a hash. - # - # @param key [String] - # @return [Hash] - # - # source://redis//lib/redis/commands/hashes.rb#210 - def hgetall(key); end - - # Increment the integer value of a hash field by the given integer number. - # - # @param key [String] - # @param field [String] - # @param increment [Integer] - # @return [Integer] value of the field after incrementing it - # - # source://redis//lib/redis/commands/hashes.rb#176 - def hincrby(key, field, increment); end - - # Increment the numeric value of a hash field by the given float number. - # - # @param key [String] - # @param field [String] - # @param increment [Float] - # @return [Float] value of the field after incrementing it - # - # source://redis//lib/redis/commands/hashes.rb#186 - def hincrbyfloat(key, field, increment); end - - # Get all the fields in a hash. - # - # @param key [String] - # @return [Array] - # - # source://redis//lib/redis/commands/hashes.rb#194 - def hkeys(key); end - - # Get the number of fields in a hash. - # - # @param key [String] - # @return [Integer] number of fields in the hash - # - # source://redis//lib/redis/commands/hashes.rb#10 - def hlen(key); end - - # Get the values of all the given hash fields. - # - # @example - # redis.hmget("hash", "f1", "f2") - # # => ["v1", "v2"] - # @param key [String] - # @param fields [Array] array of fields - # @return [Array] an array of values for the specified fields - # @see #mapped_hmget - # - # source://redis//lib/redis/commands/hashes.rb#89 - def hmget(key, *fields, &blk); end - - # Set one or more hash values. - # - # @example - # redis.hmset("hash", "f1", "v1", "f2", "v2") - # # => "OK" - # @param key [String] - # @param attrs [Array] array of fields and values - # @return [String] `"OK"` - # @see #mapped_hmset - # - # source://redis//lib/redis/commands/hashes.rb#50 - def hmset(key, *attrs); end - - # Get one or more random fields from a hash. - # - # @example Get one random field - # redis.hrandfield("hash") - # # => "f1" - # @example Get multiple random fields - # redis.hrandfield("hash", 2) - # # => ["f1, "f2"] - # @example Get multiple random fields with values - # redis.hrandfield("hash", 2, with_values: true) - # # => [["f1", "s1"], ["f2", "s2"]] - # @param key [String] - # @param count [Integer] - # @param options [Hash] - `:with_values => true`: include values in output - # @return [nil, String, Array, Array<[String, Float]>] - when `key` does not exist, `nil` - # - when `count` is not specified, a field name - # - when `count` is specified and `:with_values` is not specified, an array of field names - # - when `:with_values` is specified, an array with `[field, value]` pairs - # - # source://redis//lib/redis/commands/hashes.rb#138 - def hrandfield(key, count = T.unsafe(nil), withvalues: T.unsafe(nil), with_values: T.unsafe(nil)); end - - # Scan a hash - # - # @example Retrieve the first batch of key/value pairs in a hash - # redis.hscan("hash", 0) - # @param cursor [String, Integer] the cursor of the iteration - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # @return [String, Array<[String, String]>] the next cursor and all found keys - # - # source://redis//lib/redis/commands/hashes.rb#225 - def hscan(key, cursor, **options); end - - # Scan a hash - # - # @example Retrieve all of the key/value pairs in a hash - # redis.hscan_each("hash").to_a - # # => [["key70", "70"], ["key80", "80"]] - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # @return [Enumerator] an enumerator for all found keys - # - # source://redis//lib/redis/commands/hashes.rb#242 - def hscan_each(key, **options, &block); end - - # Set one or more hash values. - # - # @example - # redis.hset("hash", "f1", "v1", "f2", "v2") # => 2 - # redis.hset("hash", { "f1" => "v1", "f2" => "v2" }) # => 2 - # @param key [String] - # @param attrs [Array | Hash] array or hash of fields and values - # @return [Integer] The number of fields that were added to the hash - # - # source://redis//lib/redis/commands/hashes.rb#23 - def hset(key, *attrs); end - - # Set the value of a hash field, only if the field does not exist. - # - # @param key [String] - # @param field [String] - # @param value [String] - # @return [Boolean] whether or not the field was **added** to the hash - # - # source://redis//lib/redis/commands/hashes.rb#35 - def hsetnx(key, field, value); end - - # Get all the values in a hash. - # - # @param key [String] - # @return [Array] - # - # source://redis//lib/redis/commands/hashes.rb#202 - def hvals(key); end - - # Get the values of all the given hash fields. - # - # @example - # redis.mapped_hmget("hash", "f1", "f2") - # # => { "f1" => "v1", "f2" => "v2" } - # @param key [String] - # @param fields [Array] array of fields - # @return [Hash] a hash mapping the specified fields to their values - # @see #hmget - # - # source://redis//lib/redis/commands/hashes.rb#105 - def mapped_hmget(key, *fields); end - - # Set one or more hash values. - # - # @example - # redis.mapped_hmset("hash", { "f1" => "v1", "f2" => "v2" }) - # # => "OK" - # @param key [String] - # @param hash [Hash] a non-empty hash with fields mapping to values - # @return [String] `"OK"` - # @see #hmset - # - # source://redis//lib/redis/commands/hashes.rb#65 - def mapped_hmset(key, hash); end -end - -# source://redis//lib/redis/commands.rb#57 -Redis::Commands::Hashify = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#155 -Redis::Commands::HashifyClusterNodeInfo = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#184 -Redis::Commands::HashifyClusterNodes = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#188 -Redis::Commands::HashifyClusterSlaves = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#170 -Redis::Commands::HashifyClusterSlots = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#94 -Redis::Commands::HashifyInfo = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#119 -Redis::Commands::HashifyStreamAutoclaim = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#128 -Redis::Commands::HashifyStreamAutoclaimJustId = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#113 -Redis::Commands::HashifyStreamEntries = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#144 -Redis::Commands::HashifyStreamPendingDetails = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#135 -Redis::Commands::HashifyStreamPendings = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#101 -Redis::Commands::HashifyStreams = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands/hyper_log_log.rb#5 -module Redis::Commands::HyperLogLog - # Add one or more members to a HyperLogLog structure. - # - # @param key [String] - # @param member [String, Array] one member, or array of members - # @return [Boolean] true if at least 1 HyperLogLog internal register was altered. false otherwise. - # - # source://redis//lib/redis/commands/hyper_log_log.rb#11 - def pfadd(key, member); end - - # Get the approximate cardinality of members added to HyperLogLog structure. - # - # If called with multiple keys, returns the approximate cardinality of the - # union of the HyperLogLogs contained in the keys. - # - # @param keys [String, Array] - # @return [Integer] - # - # source://redis//lib/redis/commands/hyper_log_log.rb#22 - def pfcount(*keys); end - - # Merge multiple HyperLogLog values into an unique value that will approximate the cardinality of the union of - # the observed Sets of the source HyperLogLog structures. - # - # @param dest_key [String] destination key - # @param source_key [String, Array] source key, or array of keys - # @return [Boolean] - # - # source://redis//lib/redis/commands/hyper_log_log.rb#32 - def pfmerge(dest_key, *source_key); end -end - -# source://redis//lib/redis/commands/keys.rb#5 -module Redis::Commands::Keys - # Copy a value from one key to another. - # - # @example Copy a value to another key - # redis.set "foo", "value" - # # => "OK" - # redis.copy "foo", "bar" - # # => true - # redis.get "bar" - # # => "value" - # @example Copy a value to a key in another database - # redis.set "foo", "value" - # # => "OK" - # redis.copy "foo", "bar", db: 2 - # # => true - # redis.select 2 - # # => "OK" - # redis.get "bar" - # # => "value" - # @param source [String] - # @param destination [String] - # @param db [Integer] - # @param replace [Boolean] removes the `destination` key before copying value to it - # @return [Boolean] whether the key was copied or not - # - # source://redis//lib/redis/commands/keys.rb#343 - def copy(source, destination, db: T.unsafe(nil), replace: T.unsafe(nil)); end - - # Delete one or more keys. - # - # @param keys [String, Array] - # @return [Integer] number of keys that were deleted - # - # source://redis//lib/redis/commands/keys.rb#248 - def del(*keys); end - - # Return a serialized version of the value stored at a key. - # - # @param key [String] - # @return [String] serialized_value - # - # source://redis//lib/redis/commands/keys.rb#199 - def dump(key); end - - # Determine how many of the keys exists. - # - # @param keys [String, Array] - # @return [Integer] - # - # source://redis//lib/redis/commands/keys.rb#267 - def exists(*keys); end - - # Determine if any of the keys exists. - # - # @param keys [String, Array] - # @return [Boolean] - # - # source://redis//lib/redis/commands/keys.rb#275 - def exists?(*keys); end - - # Set a key's time to live in seconds. - # - # @param key [String] - # @param seconds [Integer] time to live - # @param options [Hash] - `:nx => true`: Set expiry only when the key has no expiry. - # - `:xx => true`: Set expiry only when the key has an existing expiry. - # - `:gt => true`: Set expiry only when the new expiry is greater than current one. - # - `:lt => true`: Set expiry only when the new expiry is less than current one. - # @return [Boolean] whether the timeout was set or not - # - # source://redis//lib/redis/commands/keys.rb#78 - def expire(key, seconds, nx: T.unsafe(nil), xx: T.unsafe(nil), gt: T.unsafe(nil), lt: T.unsafe(nil)); end - - # Set the expiration for a key as a UNIX timestamp. - # - # @param key [String] - # @param unix_time [Integer] expiry time specified as a UNIX timestamp - # @param options [Hash] - `:nx => true`: Set expiry only when the key has no expiry. - # - `:xx => true`: Set expiry only when the key has an existing expiry. - # - `:gt => true`: Set expiry only when the new expiry is greater than current one. - # - `:lt => true`: Set expiry only when the new expiry is less than current one. - # @return [Boolean] whether the timeout was set or not - # - # source://redis//lib/redis/commands/keys.rb#98 - def expireat(key, unix_time, nx: T.unsafe(nil), xx: T.unsafe(nil), gt: T.unsafe(nil), lt: T.unsafe(nil)); end - - # Get a key's expiry time specified as number of seconds from UNIX Epoch - # - # @param key [String] - # @return [Integer] expiry time specified as number of seconds from UNIX Epoch - # - # source://redis//lib/redis/commands/keys.rb#112 - def expiretime(key); end - - # Find all keys matching the given pattern. - # - # @param pattern [String] - # @return [Array] - # - # source://redis//lib/redis/commands/keys.rb#285 - def keys(pattern = T.unsafe(nil)); end - - # Transfer a key from the connected instance to another instance. - # - # @param key [String, Array] - # @param options [Hash] - `:host => String`: host of instance to migrate to - # - `:port => Integer`: port of instance to migrate to - # - `:db => Integer`: database to migrate to (default: same as source) - # - `:timeout => Integer`: timeout (default: same as connection timeout) - # - `:copy => Boolean`: Do not remove the key from the local instance. - # - `:replace => Boolean`: Replace existing key on the remote instance. - # @return [String] `"OK"` - # - # source://redis//lib/redis/commands/keys.rb#230 - def migrate(key, options); end - - # Move a key to another database. - # - # @example Move a key to another database - # redis.set "foo", "bar" - # # => "OK" - # redis.move "foo", 2 - # # => true - # redis.exists "foo" - # # => false - # redis.select 2 - # # => "OK" - # redis.exists "foo" - # # => true - # redis.get "foo" - # # => "bar" - # @param key [String] - # @param db [Integer] - # @return [Boolean] whether the key was moved or not - # - # source://redis//lib/redis/commands/keys.rb#314 - def move(key, db); end - - # source://redis//lib/redis/commands/keys.rb#351 - def object(*args); end - - # Remove the expiration from a key. - # - # @param key [String] - # @return [Boolean] whether the timeout was removed or not - # - # source://redis//lib/redis/commands/keys.rb#64 - def persist(key); end - - # Set a key's time to live in milliseconds. - # - # @param key [String] - # @param milliseconds [Integer] time to live - # @param options [Hash] - `:nx => true`: Set expiry only when the key has no expiry. - # - `:xx => true`: Set expiry only when the key has an existing expiry. - # - `:gt => true`: Set expiry only when the new expiry is greater than current one. - # - `:lt => true`: Set expiry only when the new expiry is less than current one. - # @return [Boolean] whether the timeout was set or not - # - # source://redis//lib/redis/commands/keys.rb#142 - def pexpire(key, milliseconds, nx: T.unsafe(nil), xx: T.unsafe(nil), gt: T.unsafe(nil), lt: T.unsafe(nil)); end - - # Set the expiration for a key as number of milliseconds from UNIX Epoch. - # - # @param key [String] - # @param ms_unix_time [Integer] expiry time specified as number of milliseconds from UNIX Epoch. - # @param options [Hash] - `:nx => true`: Set expiry only when the key has no expiry. - # - `:xx => true`: Set expiry only when the key has an existing expiry. - # - `:gt => true`: Set expiry only when the new expiry is greater than current one. - # - `:lt => true`: Set expiry only when the new expiry is less than current one. - # @return [Boolean] whether the timeout was set or not - # - # source://redis//lib/redis/commands/keys.rb#162 - def pexpireat(key, ms_unix_time, nx: T.unsafe(nil), xx: T.unsafe(nil), gt: T.unsafe(nil), lt: T.unsafe(nil)); end - - # Get a key's expiry time specified as number of milliseconds from UNIX Epoch - # - # @param key [String] - # @return [Integer] expiry time specified as number of milliseconds from UNIX Epoch - # - # source://redis//lib/redis/commands/keys.rb#176 - def pexpiretime(key); end - - # Get the time to live (in milliseconds) for a key. - # - # In Redis 2.6 or older the command returns -1 if the key does not exist or if - # the key exist but has no associated expire. - # - # Starting with Redis 2.8 the return value in case of error changed: - # - # - The command returns -2 if the key does not exist. - # - The command returns -1 if the key exists but has no associated expire. - # - # @param key [String] - # @return [Integer] remaining time to live in milliseconds - # - # source://redis//lib/redis/commands/keys.rb#191 - def pttl(key); end - - # Return a random key from the keyspace. - # - # @return [String] - # - # source://redis//lib/redis/commands/keys.rb#358 - def randomkey; end - - # Rename a key. If the new key already exists it is overwritten. - # - # @param old_name [String] - # @param new_name [String] - # @return [String] `OK` - # - # source://redis//lib/redis/commands/keys.rb#367 - def rename(old_name, new_name); end - - # Rename a key, only if the new key does not exist. - # - # @param old_name [String] - # @param new_name [String] - # @return [Boolean] whether the key was renamed or not - # - # source://redis//lib/redis/commands/keys.rb#376 - def renamenx(old_name, new_name); end - - # Create a key using the serialized value, previously obtained using DUMP. - # - # @param key [String] - # @param ttl [String] - # @param serialized_value [String] - # @param options [Hash] - `:replace => Boolean`: if false, raises an error if key already exists - # @raise [Redis::CommandError] - # @return [String] `"OK"` - # - # source://redis//lib/redis/commands/keys.rb#212 - def restore(key, ttl, serialized_value, replace: T.unsafe(nil)); end - - # Scan the keyspace - # - # @example Retrieve the first batch of keys - # redis.scan(0) - # # => ["4", ["key:21", "key:47", "key:42"]] - # @example Retrieve a batch of keys matching a pattern - # redis.scan(4, :match => "key:1?") - # # => ["92", ["key:13", "key:18"]] - # @example Retrieve a batch of keys of a certain type - # redis.scan(92, :type => "zset") - # # => ["173", ["sortedset:14", "sortedset:78"]] - # @param cursor [String, Integer] the cursor of the iteration - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # - `:type => String`: return keys only of the given type - # @return [String, Array] the next cursor and all found keys - # - # source://redis//lib/redis/commands/keys.rb#25 - def scan(cursor, **options); end - - # Scan the keyspace - # - # @example Retrieve all of the keys (with possible duplicates) - # redis.scan_each.to_a - # # => ["key:21", "key:47", "key:42"] - # @example Execute block for each key matching a pattern - # redis.scan_each(:match => "key:1?") {|key| puts key} - # # => key:13 - # # => key:18 - # @example Execute block for each key of a type - # redis.scan_each(:type => "hash") {|key| puts redis.type(key)} - # # => "hash" - # # => "hash" - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # - `:type => String`: return keys only of the given type - # @return [Enumerator] an enumerator for all found keys - # - # source://redis//lib/redis/commands/keys.rb#49 - def scan_each(**options, &block); end - - # Sort the elements in a list, set or sorted set. - # - # @example Retrieve the first 2 elements from an alphabetically sorted "list" - # redis.sort("list", :order => "alpha", :limit => [0, 2]) - # # => ["a", "b"] - # @example Store an alphabetically descending list in "target" - # redis.sort("list", :order => "desc alpha", :store => "target") - # # => 26 - # @param key [String] - # @param options [Hash] - `:by => String`: use external key to sort elements by - # - `:limit => [offset, count]`: skip `offset` elements, return a maximum - # of `count` elements - # - `:get => [String, Array]`: single key or array of keys to - # retrieve per element in the result - # - `:order => String`: combination of `ASC`, `DESC` and optionally `ALPHA` - # - `:store => String`: key to store the result at - # @return [Array, Array>, Integer] - when `:get` is not specified, or holds a single element, an array of elements - # - when `:get` is specified, and holds more than one element, an array of - # elements where every element is an array with the result for every - # element specified in `:get` - # - when `:store` is specified, the number of elements in the stored result - # - # source://redis//lib/redis/commands/keys.rb#405 - def sort(key, by: T.unsafe(nil), limit: T.unsafe(nil), get: T.unsafe(nil), order: T.unsafe(nil), store: T.unsafe(nil)); end - - # Get the time to live (in seconds) for a key. - # - # In Redis 2.6 or older the command returns -1 if the key does not exist or if - # the key exist but has no associated expire. - # - # Starting with Redis 2.8 the return value in case of error changed: - # - # - The command returns -2 if the key does not exist. - # - The command returns -1 if the key exists but has no associated expire. - # - # @param key [String] - # @return [Integer] remaining time to live in seconds. - # - # source://redis//lib/redis/commands/keys.rb#128 - def ttl(key); end - - # Determine the type stored at key. - # - # @param key [String] - # @return [String] `string`, `list`, `set`, `zset`, `hash` or `none` - # - # source://redis//lib/redis/commands/keys.rb#435 - def type(key); end - - # Unlink one or more keys. - # - # @param keys [String, Array] - # @return [Integer] number of keys that were unlinked - # - # source://redis//lib/redis/commands/keys.rb#259 - def unlink(*keys); end - - private - - # source://redis//lib/redis/commands/keys.rb#441 - def _scan(command, cursor, args, match: T.unsafe(nil), count: T.unsafe(nil), type: T.unsafe(nil), &block); end -end - -# source://redis//lib/redis/commands/lists.rb#5 -module Redis::Commands::Lists - # Remove the first/last element in a list and append/prepend it - # to another list and return it, or block until one is available. - # - # @example Without timeout - # element = redis.blmove("foo", "bar", "LEFT", "RIGHT") - # # => "element" - # @example With timeout - # element = redis.blmove("foo", "bar", "LEFT", "RIGHT", timeout: 5) - # # => nil on timeout - # # => "element" on success - # @param destination [String] destination key - # @param where_destination [String, Symbol] where to push the element to the source list - # e.g. 'LEFT' - to head, 'RIGHT' - to tail - # @param options [Hash] - `:timeout => [Float, Integer]`: timeout in seconds, defaults to no timeout - # @param where_source [String, Symbol] from where to remove the element from the source list - # e.g. 'LEFT' - from head, 'RIGHT' - from tail - # @param source [String] source key - # @return [nil, String] the element, or nil when the source key does not exist or the timeout expired - # - # source://redis//lib/redis/commands/lists.rb#55 - def blmove(source, destination, where_source, where_destination, timeout: T.unsafe(nil)); end - - # Pops one or more elements from the first non-empty list key from the list - # of provided key names. If lists are empty, blocks until timeout has passed. - # - # @example Popping a element - # redis.blmpop(1.0, 'list') - # #=> ['list', ['a']] - # @example With count option - # redis.blmpop(1.0, 'list', count: 2) - # #=> ['list', ['a', 'b']] - # @raise [ArgumentError] - # @return [Array>] list of popped elements or nil - # - # source://redis//lib/redis/commands/lists.rb#205 - def blmpop(timeout, *keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # Remove and get the first element in a list, or block until one is available. - # - # @example With timeout - # list, element = redis.blpop("list", :timeout => 5) - # # => nil on timeout - # # => ["list", "element"] on success - # @example Without timeout - # list, element = redis.blpop("list") - # # => ["list", "element"] - # @example Blocking pop on multiple lists - # list, element = redis.blpop(["list", "another_list"]) - # # => ["list", "element"] - # @param keys [String, Array] one or more keys to perform the - # blocking pop on - # @param options [Hash] - `:timeout => [Float, Integer]`: timeout in seconds, defaults to no timeout - # @return [nil, [String, String]] - `nil` when the operation timed out - # - tuple of the list that was popped from and element was popped otherwise - # - # source://redis//lib/redis/commands/lists.rb#150 - def blpop(*args); end - - # Remove and get the last element in a list, or block until one is available. - # - # @param keys [String, Array] one or more keys to perform the - # blocking pop on - # @param options [Hash] - `:timeout => [Float, Integer]`: timeout in seconds, defaults to no timeout - # @return [nil, [String, String]] - `nil` when the operation timed out - # - tuple of the list that was popped from and element was popped otherwise - # @see #blpop - # - # source://redis//lib/redis/commands/lists.rb#166 - def brpop(*args); end - - # Pop a value from a list, push it to another list and return it; or block - # until one is available. - # - # @param source [String] source key - # @param destination [String] destination key - # @param options [Hash] - `:timeout => [Float, Integer]`: timeout in seconds, defaults to no timeout - # @return [nil, String] - `nil` when the operation timed out - # - the element was popped and pushed otherwise - # - # source://redis//lib/redis/commands/lists.rb#181 - def brpoplpush(source, destination, timeout: T.unsafe(nil)); end - - # Get an element from a list by its index. - # - # @param key [String] - # @param index [Integer] - # @return [String] - # - # source://redis//lib/redis/commands/lists.rb#245 - def lindex(key, index); end - - # Insert an element before or after another element in a list. - # - # @param key [String] - # @param where [String, Symbol] `BEFORE` or `AFTER` - # @param pivot [String] reference element - # @param value [String] - # @return [Integer] length of the list after the insert operation, or `-1` - # when the element `pivot` was not found - # - # source://redis//lib/redis/commands/lists.rb#257 - def linsert(key, where, pivot, value); end - - # Get the length of a list. - # - # @param key [String] - # @return [Integer] - # - # source://redis//lib/redis/commands/lists.rb#10 - def llen(key); end - - # Remove the first/last element in a list, append/prepend it to another list and return it. - # - # @note This command comes in place of the now deprecated RPOPLPUSH. - # Doing LMOVE RIGHT LEFT is equivalent. - # @param source [String] source key - # @param destination [String] destination key - # @param where_source [String, Symbol] from where to remove the element from the source list - # e.g. 'LEFT' - from head, 'RIGHT' - from tail - # @param where_destination [String, Symbol] where to push the element to the source list - # e.g. 'LEFT' - to head, 'RIGHT' - to tail - # @return [nil, String] the element, or nil when the source key does not exist - # - # source://redis//lib/redis/commands/lists.rb#27 - def lmove(source, destination, where_source, where_destination); end - - # Pops one or more elements from the first non-empty list key from the list - # of provided key names. - # - # @example Popping a element - # redis.lmpop('list') - # #=> ['list', ['a']] - # @example With count option - # redis.lmpop('list', count: 2) - # #=> ['list', ['a', 'b']] - # @raise [ArgumentError] - # @return [Array>] list of popped elements or nil - # - # source://redis//lib/redis/commands/lists.rb#231 - def lmpop(*keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # Remove and get the first elements in a list. - # - # @param key [String] - # @param count [Integer] number of elements to remove - # @return [nil, String, Array] the values of the first elements - # - # source://redis//lib/redis/commands/lists.rb#103 - def lpop(key, count = T.unsafe(nil)); end - - # Prepend one or more values to a list, creating the list if it doesn't exist - # - # @param key [String] - # @param value [String, Array] string value, or array of string values to push - # @return [Integer] the length of the list after the push operation - # - # source://redis//lib/redis/commands/lists.rb#67 - def lpush(key, value); end - - # Prepend a value to a list, only if the list exists. - # - # @param key [String] - # @param value [String] - # @return [Integer] the length of the list after the push operation - # - # source://redis//lib/redis/commands/lists.rb#76 - def lpushx(key, value); end - - # Get a range of elements from a list. - # - # @param key [String] - # @param start [Integer] start index - # @param stop [Integer] stop index - # @return [Array] - # - # source://redis//lib/redis/commands/lists.rb#267 - def lrange(key, start, stop); end - - # Remove elements from a list. - # - # @param key [String] - # @param count [Integer] number of elements to remove. Use a positive - # value to remove the first `count` occurrences of `value`. A negative - # value to remove the last `count` occurrences of `value`. Or zero, to - # remove all occurrences of `value` from the list. - # @param value [String] - # @return [Integer] the number of removed elements - # - # source://redis//lib/redis/commands/lists.rb#280 - def lrem(key, count, value); end - - # Set the value of an element in a list by its index. - # - # @param key [String] - # @param index [Integer] - # @param value [String] - # @return [String] `OK` - # - # source://redis//lib/redis/commands/lists.rb#290 - def lset(key, index, value); end - - # Trim a list to the specified range. - # - # @param key [String] - # @param start [Integer] start index - # @param stop [Integer] stop index - # @return [String] `OK` - # - # source://redis//lib/redis/commands/lists.rb#300 - def ltrim(key, start, stop); end - - # Remove and get the last elements in a list. - # - # @param key [String] - # @param count [Integer] number of elements to remove - # @return [nil, String, Array] the values of the last elements - # - # source://redis//lib/redis/commands/lists.rb#114 - def rpop(key, count = T.unsafe(nil)); end - - # Remove the last element in a list, append it to another list and return it. - # - # @param source [String] source key - # @param destination [String] destination key - # @return [nil, String] the element, or nil when the source key does not exist - # - # source://redis//lib/redis/commands/lists.rb#125 - def rpoplpush(source, destination); end - - # Append one or more values to a list, creating the list if it doesn't exist - # - # @param key [String] - # @param value [String, Array] string value, or array of string values to push - # @return [Integer] the length of the list after the push operation - # - # source://redis//lib/redis/commands/lists.rb#85 - def rpush(key, value); end - - # Append a value to a list, only if the list exists. - # - # @param key [String] - # @param value [String] - # @return [Integer] the length of the list after the push operation - # - # source://redis//lib/redis/commands/lists.rb#94 - def rpushx(key, value); end - - private - - # source://redis//lib/redis/commands/lists.rb#306 - def _bpop(cmd, args, &blk); end - - # source://redis//lib/redis/commands/lists.rb#323 - def _normalize_move_wheres(where_source, where_destination); end -end - -# source://redis//lib/redis/commands.rb#192 -Redis::Commands::Noop = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands.rb#65 -Redis::Commands::Pairify = T.let(T.unsafe(nil), Proc) - -# source://redis//lib/redis/commands/pubsub.rb#5 -module Redis::Commands::Pubsub - # Listen for messages published to channels matching the given patterns. - # - # source://redis//lib/redis/commands/pubsub.rb#32 - def psubscribe(*channels, &block); end - - # Listen for messages published to channels matching the given patterns. - # Throw a timeout error if there is no messages for a timeout period. - # - # source://redis//lib/redis/commands/pubsub.rb#38 - def psubscribe_with_timeout(timeout, *channels, &block); end - - # Post a message to a channel. - # - # source://redis//lib/redis/commands/pubsub.rb#7 - def publish(channel, message); end - - # Inspect the state of the Pub/Sub subsystem. - # Possible subcommands: channels, numsub, numpat. - # - # source://redis//lib/redis/commands/pubsub.rb#49 - def pubsub(subcommand, *args); end - - # Stop listening for messages posted to channels matching the given patterns. - # - # source://redis//lib/redis/commands/pubsub.rb#43 - def punsubscribe(*channels); end - - # Post a message to a channel in a shard. - # - # source://redis//lib/redis/commands/pubsub.rb#54 - def spublish(channel, message); end - - # Listen for messages published to the given channels in a shard. - # - # source://redis//lib/redis/commands/pubsub.rb#59 - def ssubscribe(*channels, &block); end - - # Listen for messages published to the given channels in a shard. - # Throw a timeout error if there is no messages for a timeout period. - # - # source://redis//lib/redis/commands/pubsub.rb#65 - def ssubscribe_with_timeout(timeout, *channels, &block); end - - # Listen for messages published to the given channels. - # - # source://redis//lib/redis/commands/pubsub.rb#16 - def subscribe(*channels, &block); end - - # Listen for messages published to the given channels. Throw a timeout error - # if there is no messages for a timeout period. - # - # source://redis//lib/redis/commands/pubsub.rb#22 - def subscribe_with_timeout(timeout, *channels, &block); end - - # @return [Boolean] - # - # source://redis//lib/redis/commands/pubsub.rb#11 - def subscribed?; end - - # Stop listening for messages posted to the given channels in a shard. - # - # source://redis//lib/redis/commands/pubsub.rb#70 - def sunsubscribe(*channels); end - - # Stop listening for messages posted to the given channels. - # - # source://redis//lib/redis/commands/pubsub.rb#27 - def unsubscribe(*channels); end -end - -# source://redis//lib/redis/commands/scripting.rb#5 -module Redis::Commands::Scripting - # Evaluate Lua script. - # - # @example EVAL with KEYS and ARGV as array arguments - # redis.eval("return { KEYS, ARGV }", ["k1", "k2"], ["a1", "a2"]) - # # => [["k1", "k2"], ["a1", "a2"]] - # @example EVAL without KEYS nor ARGV - # redis.eval("return 1") - # # => 1 - # @example EVAL with KEYS and ARGV in a hash argument - # redis.eval("return { KEYS, ARGV }", :keys => ["k1", "k2"], :argv => ["a1", "a2"]) - # # => [["k1", "k2"], ["a1", "a2"]] - # @param argv [Array] optional array with arguments to pass to the script - # @param keys [Array] optional array with keys to pass to the script - # @param options [Hash] - `:keys => Array`: optional array with keys to pass to the script - # - `:argv => Array`: optional array with arguments to pass to the script - # @return depends on the script - # @see #script - # @see #evalsha - # - # source://redis//lib/redis/commands/scripting.rb#71 - def eval(*args); end - - # Evaluate Lua script by its SHA. - # - # @example EVALSHA with KEYS and ARGV as array arguments - # redis.evalsha(sha, ["k1", "k2"], ["a1", "a2"]) - # # => - # @example EVALSHA without KEYS nor ARGV - # redis.evalsha(sha) - # # => - # @example EVALSHA with KEYS and ARGV in a hash argument - # redis.evalsha(sha, :keys => ["k1", "k2"], :argv => ["a1", "a2"]) - # # => - # @param argv [Array] optional array with arguments to pass to the script - # @param keys [Array] optional array with keys to pass to the script - # @param options [Hash] - `:keys => Array`: optional array with keys to pass to the script - # - `:argv => Array`: optional array with arguments to pass to the script - # @return depends on the script - # @see #script - # @see #eval - # - # source://redis//lib/redis/commands/scripting.rb#96 - def evalsha(*args); end - - # Control remote script registry. - # - # @example Load a script - # sha = redis.script(:load, "return 1") - # # => - # @example Check if a script exists - # redis.script(:exists, sha) - # # => true - # @example Check if multiple scripts exist - # redis.script(:exists, [sha, other_sha]) - # # => [true, false] - # @example Flush the script registry - # redis.script(:flush) - # # => "OK" - # @example Kill a running script - # redis.script(:kill) - # # => "OK" - # @param subcommand [String] e.g. `exists`, `flush`, `load`, `kill` - # @param args [Array] depends on subcommand - # @return [String, Boolean, Array, ...] depends on subcommand - # @see #eval - # @see #evalsha - # - # source://redis//lib/redis/commands/scripting.rb#30 - def script(subcommand, *args); end - - private - - # source://redis//lib/redis/commands/scripting.rb#102 - def _eval(cmd, args); end -end - -# source://redis//lib/redis/commands/server.rb#5 -module Redis::Commands::Server - # Asynchronously rewrite the append-only file. - # - # @return [String] `OK` - # - # source://redis//lib/redis/commands/server.rb#9 - def bgrewriteaof; end - - # Asynchronously save the dataset to disk. - # - # @return [String] `OK` - # - # source://redis//lib/redis/commands/server.rb#16 - def bgsave; end - - # Manage client connections. - # - # @param subcommand [String, Symbol] e.g. `kill`, `list`, `getname`, `setname` - # @return [String, Hash] depends on subcommand - # - # source://redis//lib/redis/commands/server.rb#39 - def client(subcommand, *args); end - - # Get or set server configuration parameters. - # - # @param action [Symbol] e.g. `:get`, `:set`, `:resetstat` - # @return [String, Hash] string reply, or hash when retrieving more than one - # property with `CONFIG GET` - # - # source://redis//lib/redis/commands/server.rb#25 - def config(action, *args); end - - # Return the number of keys in the selected database. - # - # @return [Integer] - # - # source://redis//lib/redis/commands/server.rb#55 - def dbsize; end - - # source://redis//lib/redis/commands/server.rb#183 - def debug(*args); end - - # Remove all keys from all databases. - # - # @param options [Hash] - `:async => Boolean`: async flush (default: false) - # @return [String] `OK` - # - # source://redis//lib/redis/commands/server.rb#64 - def flushall(options = T.unsafe(nil)); end - - # Remove all keys from the current database. - # - # @param options [Hash] - `:async => Boolean`: async flush (default: false) - # @return [String] `OK` - # - # source://redis//lib/redis/commands/server.rb#77 - def flushdb(options = T.unsafe(nil)); end - - # Get information and statistics about the server. - # - # @param cmd [String, Symbol] e.g. "commandstats" - # @return [Hash] - # - # source://redis//lib/redis/commands/server.rb#89 - def info(cmd = T.unsafe(nil)); end - - # Get the UNIX time stamp of the last successful save to disk. - # - # @return [Integer] - # - # source://redis//lib/redis/commands/server.rb#110 - def lastsave; end - - # Listen for all requests received by the server in real time. - # - # There is no way to interrupt this command. - # - # @yield a block to be called for every line of output - # @yieldparam line [String] timestamp and command that was executed - # - # source://redis//lib/redis/commands/server.rb#120 - def monitor; end - - # Synchronously save the dataset to disk. - # - # @return [String] - # - # source://redis//lib/redis/commands/server.rb#133 - def save; end - - # Synchronously save the dataset to disk and then shut down the server. - # - # source://redis//lib/redis/commands/server.rb#138 - def shutdown; end - - # Make the server a slave of another instance, or promote it as master. - # - # source://redis//lib/redis/commands/server.rb#150 - def slaveof(host, port); end - - # Interact with the slowlog (get, len, reset) - # - # @param subcommand [String] e.g. `get`, `len`, `reset` - # @param length [Integer] maximum number of entries to return - # @return [Array, Integer, String] depends on subcommand - # - # source://redis//lib/redis/commands/server.rb#159 - def slowlog(subcommand, length = T.unsafe(nil)); end - - # Internal command used for replication. - # - # source://redis//lib/redis/commands/server.rb#166 - def sync; end - - # Return the server time. - # - # @example - # r.time # => [ 1333093196, 606806 ] - # @return [Array] tuple of seconds since UNIX epoch and - # microseconds in the current second - # - # source://redis//lib/redis/commands/server.rb#177 - def time; end -end - -# source://redis//lib/redis/commands/sets.rb#5 -module Redis::Commands::Sets - # Add one or more members to a set. - # - # @param key [String] - # @param member [String, Array] one member, or array of members - # @return [Integer] The number of members that were successfully added - # - # source://redis//lib/redis/commands/sets.rb#19 - def sadd(key, *members); end - - # Add one or more members to a set. - # - # @param key [String] - # @param member [String, Array] one member, or array of members - # @return [Boolean] Wether at least one member was successfully added. - # - # source://redis//lib/redis/commands/sets.rb#29 - def sadd?(key, *members); end - - # Get the number of members in a set. - # - # @param key [String] - # @return [Integer] - # - # source://redis//lib/redis/commands/sets.rb#10 - def scard(key); end - - # Subtract multiple sets. - # - # @param keys [String, Array] keys pointing to sets to subtract - # @return [Array] members in the difference - # - # source://redis//lib/redis/commands/sets.rb#123 - def sdiff(*keys); end - - # Subtract multiple sets and store the resulting set in a key. - # - # @param destination [String] destination key - # @param keys [String, Array] keys pointing to sets to subtract - # @return [Integer] number of elements in the resulting set - # - # source://redis//lib/redis/commands/sets.rb#133 - def sdiffstore(destination, *keys); end - - # Intersect multiple sets. - # - # @param keys [String, Array] keys pointing to sets to intersect - # @return [Array] members in the intersection - # - # source://redis//lib/redis/commands/sets.rb#142 - def sinter(*keys); end - - # Intersect multiple sets and store the resulting set in a key. - # - # @param destination [String] destination key - # @param keys [String, Array] keys pointing to sets to intersect - # @return [Integer] number of elements in the resulting set - # - # source://redis//lib/redis/commands/sets.rb#152 - def sinterstore(destination, *keys); end - - # Determine if a given value is a member of a set. - # - # @param key [String] - # @param member [String] - # @return [Boolean] - # - # source://redis//lib/redis/commands/sets.rb#95 - def sismember(key, member); end - - # Get all the members in a set. - # - # @param key [String] - # @return [Array] - # - # source://redis//lib/redis/commands/sets.rb#115 - def smembers(key); end - - # Determine if multiple values are members of a set. - # - # @param key [String] - # @param members [String, Array] - # @return [Array] - # - # source://redis//lib/redis/commands/sets.rb#104 - def smismember(key, *members); end - - # Move a member from one set to another. - # - # @param source [String] source key - # @param destination [String] destination key - # @param member [String] member to move from `source` to `destination` - # @return [Boolean] - # - # source://redis//lib/redis/commands/sets.rb#86 - def smove(source, destination, member); end - - # Remove and return one or more random member from a set. - # - # @param key [String] - # @param count [Integer] - # @return [String] - # - # source://redis//lib/redis/commands/sets.rb#59 - def spop(key, count = T.unsafe(nil)); end - - # Get one or more random members from a set. - # - # @param key [String] - # @param count [Integer] - # @return [String] - # - # source://redis//lib/redis/commands/sets.rb#72 - def srandmember(key, count = T.unsafe(nil)); end - - # Remove one or more members from a set. - # - # @param key [String] - # @param member [String, Array] one member, or array of members - # @return [Integer] The number of members that were successfully removed - # - # source://redis//lib/redis/commands/sets.rb#39 - def srem(key, *members); end - - # Remove one or more members from a set. - # - # @param key [String] - # @param member [String, Array] one member, or array of members - # @return [Boolean] Wether at least one member was successfully removed. - # - # source://redis//lib/redis/commands/sets.rb#49 - def srem?(key, *members); end - - # Scan a set - # - # @example Retrieve the first batch of keys in a set - # redis.sscan("set", 0) - # @param cursor [String, Integer] the cursor of the iteration - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # @return [String, Array] the next cursor and all found members - # - # source://redis//lib/redis/commands/sets.rb#187 - def sscan(key, cursor, **options); end - - # Scan a set - # - # @example Retrieve all of the keys in a set - # redis.sscan_each("set").to_a - # # => ["key1", "key2", "key3"] - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # @return [Enumerator] an enumerator for all keys in the set - # - # source://redis//lib/redis/commands/sets.rb#202 - def sscan_each(key, **options, &block); end - - # Add multiple sets. - # - # @param keys [String, Array] keys pointing to sets to unify - # @return [Array] members in the union - # - # source://redis//lib/redis/commands/sets.rb#161 - def sunion(*keys); end - - # Add multiple sets and store the resulting set in a key. - # - # @param destination [String] destination key - # @param keys [String, Array] keys pointing to sets to unify - # @return [Integer] number of elements in the resulting set - # - # source://redis//lib/redis/commands/sets.rb#171 - def sunionstore(destination, *keys); end -end - -# source://redis//lib/redis/commands/sorted_sets.rb#5 -module Redis::Commands::SortedSets - # Removes and returns up to count members with scores in the sorted set stored at key. - # - # @example Popping a member - # redis.bzmpop('zset') - # #=> ['zset', ['a', 1.0]] - # @example With count option - # redis.bzmpop('zset', count: 2) - # #=> ['zset', [['a', 1.0], ['b', 2.0]] - # @raise [ArgumentError] - # @return [Array>] list of popped elements and scores - # - # source://redis//lib/redis/commands/sorted_sets.rb#188 - def bzmpop(timeout, *keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # Removes and returns up to count members with the highest scores in the sorted set stored at keys, - # or block until one is available. - # - # @example Popping a member from a sorted set - # redis.bzpopmax('zset', 1) - # #=> ['zset', 'b', 2.0] - # @example Popping a member from multiple sorted sets - # redis.bzpopmax('zset1', 'zset2', 1) - # #=> ['zset1', 'b', 2.0] - # @return [Array] a touple of key, member and score - # @return [nil] when no element could be popped and the timeout expired - # - # source://redis//lib/redis/commands/sorted_sets.rb#251 - def bzpopmax(*args); end - - # Removes and returns up to count members with the lowest scores in the sorted set stored at keys, - # or block until one is available. - # - # @example Popping a member from a sorted set - # redis.bzpopmin('zset', 1) - # #=> ['zset', 'a', 1.0] - # @example Popping a member from multiple sorted sets - # redis.bzpopmin('zset1', 'zset2', 1) - # #=> ['zset1', 'a', 1.0] - # @return [Array] a touple of key, member and score - # @return [nil] when no element could be popped and the timeout expired - # - # source://redis//lib/redis/commands/sorted_sets.rb#272 - def bzpopmin(*args); end - - # Add one or more members to a sorted set, or update the score for members - # that already exist. - # - # @example Add a single `[score, member]` pair to a sorted set - # redis.zadd("zset", 32.0, "member") - # @example Add an array of `[score, member]` pairs to a sorted set - # redis.zadd("zset", [[32.0, "a"], [64.0, "b"]]) - # @param key [String] - # @param args [[Float, String], Array<[Float, String]>] - a single `[score, member]` pair - # - an array of `[score, member]` pairs - # @param options [Hash] - `:xx => true`: Only update elements that already exist (never - # add elements) - # - `:nx => true`: Don't update already existing elements (always - # add new elements) - # - `:lt => true`: Only update existing elements if the new score - # is less than the current score - # - `:gt => true`: Only update existing elements if the new score - # is greater than the current score - # - `:ch => true`: Modify the return value from the number of new - # elements added, to the total number of elements changed (CH is an - # abbreviation of changed); changed elements are new elements added - # and elements already existing for which the score was updated - # - `:incr => true`: When this option is specified ZADD acts like - # ZINCRBY; only one score-element pair can be specified in this mode - # @return [Boolean, Integer, Float] - `Boolean` when a single pair is specified, holding whether or not it was - # **added** to the sorted set. - # - `Integer` when an array of pairs is specified, holding the number of - # pairs that were **added** to the sorted set. - # - `Float` when option :incr is specified, holding the score of the member - # after incrementing it. - # - # source://redis//lib/redis/commands/sorted_sets.rb#53 - def zadd(key, *args, nx: T.unsafe(nil), xx: T.unsafe(nil), lt: T.unsafe(nil), gt: T.unsafe(nil), ch: T.unsafe(nil), incr: T.unsafe(nil)); end - - # Get the number of members in a sorted set. - # - # @example - # redis.zcard("zset") - # # => 4 - # @param key [String] - # @return [Integer] - # - # source://redis//lib/redis/commands/sorted_sets.rb#14 - def zcard(key); end - - # Count the members in a sorted set with scores within the given values. - # - # @example Count members with score `>= 5` and `< 100` - # redis.zcount("zset", "5", "(100") - # # => 2 - # @example Count members with scores `> 5` - # redis.zcount("zset", "(5", "+inf") - # # => 2 - # @param key [String] - # @param min [String] - inclusive minimum score is specified verbatim - # - exclusive minimum score is specified by prefixing `(` - # @param max [String] - inclusive maximum score is specified verbatim - # - exclusive maximum score is specified by prefixing `(` - # @return [Integer] number of members in within the specified range - # - # source://redis//lib/redis/commands/sorted_sets.rb#678 - def zcount(key, min, max); end - - # Return the difference between the first and all successive input sorted sets - # - # @example - # redis.zadd("zsetA", [[1.0, "v1"], [2.0, "v2"]]) - # redis.zadd("zsetB", [[3.0, "v2"], [2.0, "v3"]]) - # redis.zdiff("zsetA", "zsetB") - # => ["v1"] - # @example With scores - # redis.zadd("zsetA", [[1.0, "v1"], [2.0, "v2"]]) - # redis.zadd("zsetB", [[3.0, "v2"], [2.0, "v3"]]) - # redis.zdiff("zsetA", "zsetB", :with_scores => true) - # => [["v1", 1.0]] - # @param keys [String, Array] one or more keys to compute the difference - # @param options [Hash] - `:with_scores => true`: include scores in output - # @return [Array, Array<[String, Float]>] - when `:with_scores` is not specified, an array of members - # - when `:with_scores` is specified, an array with `[member, score]` pairs - # - # source://redis//lib/redis/commands/sorted_sets.rb#787 - def zdiff(*keys, with_scores: T.unsafe(nil)); end - - # Compute the difference between the first and all successive input sorted sets - # and store the resulting sorted set in a new key - # - # @example - # redis.zadd("zsetA", [[1.0, "v1"], [2.0, "v2"]]) - # redis.zadd("zsetB", [[3.0, "v2"], [2.0, "v3"]]) - # redis.zdiffstore("zsetA", "zsetB") - # # => 1 - # @param destination [String] destination key - # @param keys [Array] source keys - # @return [Integer] number of elements in the resulting sorted set - # - # source://redis//lib/redis/commands/sorted_sets.rb#803 - def zdiffstore(*args, **_arg1); end - - # Increment the score of a member in a sorted set. - # - # @example - # redis.zincrby("zset", 32.0, "a") - # # => 64.0 - # @param key [String] - # @param increment [Float] - # @param member [String] - # @return [Float] score of the member after incrementing it - # - # source://redis//lib/redis/commands/sorted_sets.rb#86 - def zincrby(key, increment, member); end - - # Return the intersection of multiple sorted sets - # - # @example Retrieve the intersection of `2*zsetA` and `1*zsetB` - # redis.zinter("zsetA", "zsetB", :weights => [2.0, 1.0]) - # # => ["v1", "v2"] - # @example Retrieve the intersection of `2*zsetA` and `1*zsetB`, and their scores - # redis.zinter("zsetA", "zsetB", :weights => [2.0, 1.0], :with_scores => true) - # # => [["v1", 3.0], ["v2", 6.0]] - # @param keys [String, Array] one or more keys to intersect - # @param options [Hash] - `:weights => [Float, Float, ...]`: weights to associate with source - # sorted sets - # - `:aggregate => String`: aggregate function to use (sum, min, max, ...) - # - `:with_scores => true`: include scores in output - # @return [Array, Array<[String, Float]>] - when `:with_scores` is not specified, an array of members - # - when `:with_scores` is specified, an array with `[member, score]` pairs - # - # source://redis//lib/redis/commands/sorted_sets.rb#701 - def zinter(*args, **_arg1); end - - # Intersect multiple sorted sets and store the resulting sorted set in a new - # key. - # - # @example Compute the intersection of `2*zsetA` with `1*zsetB`, summing their scores - # redis.zinterstore("zsetC", ["zsetA", "zsetB"], :weights => [2.0, 1.0], :aggregate => "sum") - # # => 4 - # @param destination [String] destination key - # @param keys [Array] source keys - # @param options [Hash] - `:weights => [Array]`: weights to associate with source - # sorted sets - # - `:aggregate => String`: aggregate function to use (sum, min, max) - # @return [Integer] number of elements in the resulting sorted set - # - # source://redis//lib/redis/commands/sorted_sets.rb#720 - def zinterstore(*args, **_arg1); end - - # Count the members, with the same score in a sorted set, within the given lexicographical range. - # - # @example Count members matching a - # redis.zlexcount("zset", "[a", "[a\xff") - # # => 1 - # @example Count members matching a-z - # redis.zlexcount("zset", "[a", "[z\xff") - # # => 26 - # @param key [String] - # @param min [String] - inclusive minimum is specified by prefixing `(` - # - exclusive minimum is specified by prefixing `[` - # @param max [String] - inclusive maximum is specified by prefixing `(` - # - exclusive maximum is specified by prefixing `[` - # @return [Integer] number of members within the specified lexicographical range - # - # source://redis//lib/redis/commands/sorted_sets.rb#509 - def zlexcount(key, min, max); end - - # Removes and returns up to count members with scores in the sorted set stored at key. - # - # @example Popping a member - # redis.zmpop('zset') - # #=> ['zset', ['a', 1.0]] - # @example With count option - # redis.zmpop('zset', count: 2) - # #=> ['zset', [['a', 1.0], ['b', 2.0]] - # @raise [ArgumentError] - # @return [Array>] list of popped elements and scores - # - # source://redis//lib/redis/commands/sorted_sets.rb#220 - def zmpop(*keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # Get the scores associated with the given members in a sorted set. - # - # @example Get the scores for members "a" and "b" - # redis.zmscore("zset", "a", "b") - # # => [32.0, 48.0] - # @param key [String] - # @param members [String, Array] - # @return [Array] scores of the members - # - # source://redis//lib/redis/commands/sorted_sets.rb#300 - def zmscore(key, *members); end - - # Removes and returns up to count members with the highest scores in the sorted set stored at key. - # - # @example Popping a member - # redis.zpopmax('zset') - # #=> ['b', 2.0] - # @example With count option - # redis.zpopmax('zset', 2) - # #=> [['b', 2.0], ['a', 1.0]] - # @return [Array] element and score pair if count is not specified - # @return [Array>] list of popped elements and scores - # - # source://redis//lib/redis/commands/sorted_sets.rb#138 - def zpopmax(key, count = T.unsafe(nil)); end - - # Removes and returns up to count members with the lowest scores in the sorted set stored at key. - # - # @example Popping a member - # redis.zpopmin('zset') - # #=> ['a', 1.0] - # @example With count option - # redis.zpopmin('zset', 2) - # #=> [['a', 1.0], ['b', 2.0]] - # @return [Array] element and score pair if count is not specified - # @return [Array>] list of popped elements and scores - # - # source://redis//lib/redis/commands/sorted_sets.rb#161 - def zpopmin(key, count = T.unsafe(nil)); end - - # Get one or more random members from a sorted set. - # - # @example Get one random member - # redis.zrandmember("zset") - # # => "a" - # @example Get multiple random members - # redis.zrandmember("zset", 2) - # # => ["a", "b"] - # @example Get multiple random members with scores - # redis.zrandmember("zset", 2, with_scores: true) - # # => [["a", 2.0], ["b", 3.0]] - # @param key [String] - # @param count [Integer] - # @param options [Hash] - `:with_scores => true`: include scores in output - # @return [nil, String, Array, Array<[String, Float]>] - when `key` does not exist or set is empty, `nil` - # - when `count` is not specified, a member - # - when `count` is specified and `:with_scores` is not specified, an array of members - # - when `:with_scores` is specified, an array with `[member, score]` pairs - # - # source://redis//lib/redis/commands/sorted_sets.rb#328 - def zrandmember(key, count = T.unsafe(nil), withscores: T.unsafe(nil), with_scores: T.unsafe(nil)); end - - # Return a range of members in a sorted set, by index, score or lexicographical ordering. - # - # @example Retrieve all members from a sorted set, by index - # redis.zrange("zset", 0, -1) - # # => ["a", "b"] - # @example Retrieve all members and their scores from a sorted set - # redis.zrange("zset", 0, -1, :with_scores => true) - # # => [["a", 32.0], ["b", 64.0]] - # @param key [String] - # @param start [Integer] start index - # @param stop [Integer] stop index - # @param options [Hash] - `:by_score => false`: return members by score - # - `:by_lex => false`: return members by lexicographical ordering - # - `:rev => false`: reverse the ordering, from highest to lowest - # - `:limit => [offset, count]`: skip `offset` members, return a maximum of - # `count` members - # - `:with_scores => true`: include scores in output - # @return [Array, Array<[String, Float]>] - when `:with_scores` is not specified, an array of members - # - when `:with_scores` is specified, an array with `[member, score]` pairs - # - # source://redis//lib/redis/commands/sorted_sets.rb#367 - def zrange(key, start, stop, byscore: T.unsafe(nil), by_score: T.unsafe(nil), bylex: T.unsafe(nil), by_lex: T.unsafe(nil), rev: T.unsafe(nil), limit: T.unsafe(nil), withscores: T.unsafe(nil), with_scores: T.unsafe(nil)); end - - # Return a range of members with the same score in a sorted set, by lexicographical ordering - # - # @example Retrieve members matching a - # redis.zrangebylex("zset", "[a", "[a\xff") - # # => ["aaren", "aarika", "abagael", "abby"] - # @example Retrieve the first 2 members matching a - # redis.zrangebylex("zset", "[a", "[a\xff", :limit => [0, 2]) - # # => ["aaren", "aarika"] - # @param key [String] - # @param min [String] - inclusive minimum is specified by prefixing `(` - # - exclusive minimum is specified by prefixing `[` - # @param max [String] - inclusive maximum is specified by prefixing `(` - # - exclusive maximum is specified by prefixing `[` - # @param options [Hash] - `:limit => [offset, count]`: skip `offset` members, return a maximum of - # `count` members - # @return [Array, Array<[String, Float]>] - # - # source://redis//lib/redis/commands/sorted_sets.rb#534 - def zrangebylex(key, min, max, limit: T.unsafe(nil)); end - - # Return a range of members in a sorted set, by score. - # - # @example Retrieve members with score `>= 5` and `< 100` - # redis.zrangebyscore("zset", "5", "(100") - # # => ["a", "b"] - # @example Retrieve members and their scores with scores `> 5` - # redis.zrangebyscore("zset", "(5", "+inf", :with_scores => true) - # # => [["a", 32.0], ["b", 64.0]] - # @example Retrieve the first 2 members with score `>= 0` - # redis.zrangebyscore("zset", "0", "+inf", :limit => [0, 2]) - # # => ["a", "b"] - # @param options [Hash] - `:with_scores => true`: include scores in output - # - `:limit => [offset, count]`: skip `offset` members, return a maximum of - # `count` members - # @param min [String] - inclusive minimum score is specified verbatim - # - exclusive minimum score is specified by prefixing `(` - # @param key [String] - # @param max [String] - inclusive maximum score is specified verbatim - # - exclusive maximum score is specified by prefixing `(` - # @return [Array, Array<[String, Float]>] - when `:with_scores` is not specified, an array of members - # - when `:with_scores` is specified, an array with `[member, score]` pairs - # - # source://redis//lib/redis/commands/sorted_sets.rb#594 - def zrangebyscore(key, min, max, withscores: T.unsafe(nil), with_scores: T.unsafe(nil), limit: T.unsafe(nil)); end - - # Select a range of members in a sorted set, by index, score or lexicographical ordering - # and store the resulting sorted set in a new key. - # - # @example - # redis.zadd("foo", [[1.0, "s1"], [2.0, "s2"], [3.0, "s3"]]) - # redis.zrangestore("bar", "foo", 0, 1) - # # => 2 - # redis.zrange("bar", 0, -1) - # # => ["s1", "s2"] - # @return [Integer] the number of elements in the resulting sorted set - # @see #zrange - # - # source://redis//lib/redis/commands/sorted_sets.rb#409 - def zrangestore(dest_key, src_key, start, stop, byscore: T.unsafe(nil), by_score: T.unsafe(nil), bylex: T.unsafe(nil), by_lex: T.unsafe(nil), rev: T.unsafe(nil), limit: T.unsafe(nil)); end - - # Determine the index of a member in a sorted set. - # - # @param key [String] - # @param member [String] - # @return [Integer] - # - # source://redis//lib/redis/commands/sorted_sets.rb#460 - def zrank(key, member); end - - # Remove one or more members from a sorted set. - # - # @example Remove a single member from a sorted set - # redis.zrem("zset", "a") - # @example Remove an array of members from a sorted set - # redis.zrem("zset", ["a", "b"]) - # @param key [String] - # @param member [String, Array] - a single member - # - an array of members - # @return [Boolean, Integer] - `Boolean` when a single member is specified, holding whether or not it - # was removed from the sorted set - # - `Integer` when an array of pairs is specified, holding the number of - # members that were removed to the sorted set - # - # source://redis//lib/redis/commands/sorted_sets.rb#107 - def zrem(key, member); end - - # Remove all members in a sorted set within the given indexes. - # - # @example Remove first 5 members - # redis.zremrangebyrank("zset", 0, 4) - # # => 5 - # @example Remove last 5 members - # redis.zremrangebyrank("zset", -5, -1) - # # => 5 - # @param key [String] - # @param start [Integer] start index - # @param stop [Integer] stop index - # @return [Integer] number of members that were removed - # - # source://redis//lib/redis/commands/sorted_sets.rb#487 - def zremrangebyrank(key, start, stop); end - - # Remove all members in a sorted set within the given scores. - # - # @example Remove members with score `>= 5` and `< 100` - # redis.zremrangebyscore("zset", "5", "(100") - # # => 2 - # @example Remove members with scores `> 5` - # redis.zremrangebyscore("zset", "(5", "+inf") - # # => 2 - # @param key [String] - # @param min [String] - inclusive minimum score is specified verbatim - # - exclusive minimum score is specified by prefixing `(` - # @param max [String] - inclusive maximum score is specified verbatim - # - exclusive maximum score is specified by prefixing `(` - # @return [Integer] number of members that were removed - # - # source://redis//lib/redis/commands/sorted_sets.rb#657 - def zremrangebyscore(key, min, max); end - - # Return a range of members in a sorted set, by index, with scores ordered - # from high to low. - # - # @example Retrieve all members from a sorted set - # redis.zrevrange("zset", 0, -1) - # # => ["b", "a"] - # @example Retrieve all members and their scores from a sorted set - # redis.zrevrange("zset", 0, -1, :with_scores => true) - # # => [["b", 64.0], ["a", 32.0]] - # @see #zrange - # - # source://redis//lib/redis/commands/sorted_sets.rb#444 - def zrevrange(key, start, stop, withscores: T.unsafe(nil), with_scores: T.unsafe(nil)); end - - # Return a range of members with the same score in a sorted set, by reversed lexicographical ordering. - # Apart from the reversed ordering, #zrevrangebylex is similar to #zrangebylex. - # - # @example Retrieve members matching a - # redis.zrevrangebylex("zset", "[a", "[a\xff") - # # => ["abbygail", "abby", "abagael", "aaren"] - # @example Retrieve the last 2 members matching a - # redis.zrevrangebylex("zset", "[a", "[a\xff", :limit => [0, 2]) - # # => ["abbygail", "abby"] - # @see #zrangebylex - # - # source://redis//lib/redis/commands/sorted_sets.rb#556 - def zrevrangebylex(key, max, min, limit: T.unsafe(nil)); end - - # Return a range of members in a sorted set, by score, with scores ordered - # from high to low. - # - # @example Retrieve members with score `< 100` and `>= 5` - # redis.zrevrangebyscore("zset", "(100", "5") - # # => ["b", "a"] - # @example Retrieve the first 2 members with score `<= 0` - # redis.zrevrangebyscore("zset", "0", "-inf", :limit => [0, 2]) - # # => ["b", "a"] - # @example Retrieve members and their scores with scores `> 5` - # redis.zrevrangebyscore("zset", "+inf", "(5", :with_scores => true) - # # => [["b", 64.0], ["a", 32.0]] - # @see #zrangebyscore - # - # source://redis//lib/redis/commands/sorted_sets.rb#624 - def zrevrangebyscore(key, max, min, withscores: T.unsafe(nil), with_scores: T.unsafe(nil), limit: T.unsafe(nil)); end - - # Determine the index of a member in a sorted set, with scores ordered from - # high to low. - # - # @param key [String] - # @param member [String] - # @return [Integer] - # - # source://redis//lib/redis/commands/sorted_sets.rb#470 - def zrevrank(key, member); end - - # Scan a sorted set - # - # @example Retrieve the first batch of key/value pairs in a hash - # redis.zscan("zset", 0) - # @param cursor [String, Integer] the cursor of the iteration - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # @return [String, Array<[String, Float]>] the next cursor and all found - # members and scores - # - # source://redis//lib/redis/commands/sorted_sets.rb#820 - def zscan(key, cursor, **options); end - - # Scan a sorted set - # - # @example Retrieve all of the members/scores in a sorted set - # redis.zscan_each("zset").to_a - # # => [["key70", "70"], ["key80", "80"]] - # @param options [Hash] - `:match => String`: only return keys matching the pattern - # - `:count => Integer`: return count keys at most per iteration - # @return [Enumerator] an enumerator for all found scores and members - # - # source://redis//lib/redis/commands/sorted_sets.rb#837 - def zscan_each(key, **options, &block); end - - # Get the score associated with the given member in a sorted set. - # - # @example Get the score for member "a" - # redis.zscore("zset", "a") - # # => 32.0 - # @param key [String] - # @param member [String] - # @return [Float] score of the member - # - # source://redis//lib/redis/commands/sorted_sets.rb#287 - def zscore(key, member); end - - # Return the union of multiple sorted sets - # - # @example Retrieve the union of `2*zsetA` and `1*zsetB` - # redis.zunion("zsetA", "zsetB", :weights => [2.0, 1.0]) - # # => ["v1", "v2"] - # @example Retrieve the union of `2*zsetA` and `1*zsetB`, and their scores - # redis.zunion("zsetA", "zsetB", :weights => [2.0, 1.0], :with_scores => true) - # # => [["v1", 3.0], ["v2", 6.0]] - # @param keys [String, Array] one or more keys to union - # @param options [Hash] - `:weights => [Array]`: weights to associate with source - # sorted sets - # - `:aggregate => String`: aggregate function to use (sum, min, max) - # - `:with_scores => true`: include scores in output - # @return [Array, Array<[String, Float]>] - when `:with_scores` is not specified, an array of members - # - when `:with_scores` is specified, an array with `[member, score]` pairs - # - # source://redis//lib/redis/commands/sorted_sets.rb#744 - def zunion(*args, **_arg1); end - - # Add multiple sorted sets and store the resulting sorted set in a new key. - # - # @example Compute the union of `2*zsetA` with `1*zsetB`, summing their scores - # redis.zunionstore("zsetC", ["zsetA", "zsetB"], :weights => [2.0, 1.0], :aggregate => "sum") - # # => 8 - # @param destination [String] destination key - # @param keys [Array] source keys - # @param options [Hash] - `:weights => [Float, Float, ...]`: weights to associate with source - # sorted sets - # - `:aggregate => String`: aggregate function to use (sum, min, max, ...) - # @return [Integer] number of elements in the resulting sorted set - # - # source://redis//lib/redis/commands/sorted_sets.rb#762 - def zunionstore(*args, **_arg1); end - - private - - # source://redis//lib/redis/commands/sorted_sets.rb#850 - def _zsets_operation(cmd, *keys, weights: T.unsafe(nil), aggregate: T.unsafe(nil), with_scores: T.unsafe(nil)); end - - # source://redis//lib/redis/commands/sorted_sets.rb#869 - def _zsets_operation_store(cmd, destination, keys, weights: T.unsafe(nil), aggregate: T.unsafe(nil)); end -end - -# source://redis//lib/redis/commands/streams.rb#5 -module Redis::Commands::Streams - # Removes one or multiple entries from the pending entries list of a stream consumer group. - # - # @example With a entry id - # redis.xack('mystream', 'mygroup', '1526569495631-0') - # @example With splatted entry ids - # redis.xack('mystream', 'mygroup', '0-1', '0-2') - # @example With arrayed entry ids - # redis.xack('mystream', 'mygroup', %w[0-1 0-2]) - # @param key [String] the stream key - # @param group [String] the consumer group name - # @param ids [Array] one or multiple entry ids - # @return [Integer] the number of entries successfully acknowledged - # - # source://redis//lib/redis/commands/streams.rb#266 - def xack(key, group, *ids); end - - # Add new entry to the stream. - # - # @example With options - # redis.xadd('mystream', { f1: 'v1', f2: 'v2' }, id: '0-0', maxlen: 1000, approximate: true, nomkstream: true) - # @example Without options - # redis.xadd('mystream', f1: 'v1', f2: 'v2') - # @option opts - # @option opts - # @option opts - # @option opts - # @param key [String] the stream key - # @param entry [Hash] one or multiple field-value pairs - # @param opts [Hash] several options for `XADD` command - # @return [String] the entry id - # - # source://redis//lib/redis/commands/streams.rb#49 - def xadd(key, entry, approximate: T.unsafe(nil), maxlen: T.unsafe(nil), nomkstream: T.unsafe(nil), id: T.unsafe(nil)); end - - # Transfers ownership of pending stream entries that match the specified criteria. - # - # @example Claim next pending message after this id stuck > 5 minutes and mark as retry - # redis.xautoclaim('mystream', 'mygroup', 'consumer1', 3600000, '1641321233-0') - # @example Claim 50 next pending messages stuck > 5 minutes and mark as retry - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, '0-0', count: 50) - # @example Claim next pending message stuck > 5 minutes and don't mark as retry - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, '0-0', justid: true) - # @example Claim next pending message stuck > 5 minutes and mark as retry - # redis.xautoclaim('mystream', 'mygroup', 'consumer1', 3600000, '0-0') - # @param start [String] entry id to start scanning from or 0-0 for everything - # @param count [Integer] number of messages to claim (default 1) - # @param justid [Boolean] whether to fetch just an array of entry ids or not. - # Does not increment retry count when true - # @param consumer [String] the consumer name - # @param key [String] the stream key - # @param group [String] the consumer group name - # @param min_idle_time [Integer] the number of milliseconds - # @return [Hash{String => Hash}] the entries successfully claimed - # @return [Array] the entry ids successfully claimed if justid option is `true` - # - # source://redis//lib/redis/commands/streams.rb#336 - def xautoclaim(key, group, consumer, min_idle_time, start, count: T.unsafe(nil), justid: T.unsafe(nil)); end - - # Changes the ownership of a pending entry - # - # @example With arrayed entry ids - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, %w[0-1 0-2]) - # @example With idle option - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, %w[0-1 0-2], idle: 1000) - # @example With time option - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, %w[0-1 0-2], time: 1542866959000) - # @example With splatted entry ids - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, '0-1', '0-2') - # @example With retrycount option - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, %w[0-1 0-2], retrycount: 10) - # @example With force option - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, %w[0-1 0-2], force: true) - # @example With justid option - # redis.xclaim('mystream', 'mygroup', 'consumer1', 3600000, %w[0-1 0-2], justid: true) - # @option opts - # @option opts - # @option opts - # @option opts - # @option opts - # @param key [String] the stream key - # @param group [String] the consumer group name - # @param consumer [String] the consumer name - # @param min_idle_time [Integer] the number of milliseconds - # @param ids [Array] one or multiple entry ids - # @param opts [Hash] several options for `XCLAIM` command - # @return [Hash{String => Hash}] the entries successfully claimed - # @return [Array] the entry ids successfully claimed if justid option is `true` - # - # source://redis//lib/redis/commands/streams.rb#303 - def xclaim(key, group, consumer, min_idle_time, *ids, **opts); end - - # Delete entries by entry ids. - # - # @example With splatted entry ids - # redis.xdel('mystream', '0-1', '0-2') - # @example With arrayed entry ids - # redis.xdel('mystream', ['0-1', '0-2']) - # @param key [String] the stream key - # @param ids [Array] one or multiple entry ids - # @return [Integer] the number of entries actually deleted - # - # source://redis//lib/redis/commands/streams.rb#106 - def xdel(key, *ids); end - - # Manages the consumer group of the stream. - # - # @example With `create` subcommand - # redis.xgroup(:create, 'mystream', 'mygroup', '$') - # @example With `destroy` subcommand - # redis.xgroup(:destroy, 'mystream', 'mygroup') - # @example With `delconsumer` subcommand - # redis.xgroup(:delconsumer, 'mystream', 'mygroup', 'consumer1') - # @example With `setid` subcommand - # redis.xgroup(:setid, 'mystream', 'mygroup', '$') - # @param mkstream [Boolean] whether to create an empty stream automatically or not - # @param key [String] the stream key - # @param subcommand [String] `create` `setid` `destroy` `delconsumer` - # @param group [String] the consumer group name - # @param id_or_consumer [String] * the entry id or `$`, required if subcommand is `create` or `setid` - # * the consumer name, required if subcommand is `delconsumer` - # @return [String] `OK` if subcommand is `create` or `setid` - # @return [Integer] effected count if subcommand is `destroy` or `delconsumer` - # - # source://redis//lib/redis/commands/streams.rb#214 - def xgroup(subcommand, key, group, id_or_consumer = T.unsafe(nil), mkstream: T.unsafe(nil)); end - - # Returns the stream information each subcommand. - # - # @example groups - # redis.xinfo(:groups, 'mystream') - # @example stream - # redis.xinfo(:stream, 'mystream') - # @example consumers - # redis.xinfo(:consumers, 'mystream', 'mygroup') - # @param key [String] the stream key - # @param subcommand [String] e.g. `stream` `groups` `consumers` - # @param group [String] the consumer group name, required if subcommand is `consumers` - # @return [Hash] information of the stream if subcommand is `stream` - # @return [Array] information of the consumer groups if subcommand is `groups` - # @return [Array] information of the consumers if subcommand is `consumers` - # - # source://redis//lib/redis/commands/streams.rb#22 - def xinfo(subcommand, key, group = T.unsafe(nil)); end - - # Returns the number of entries inside a stream. - # - # @example With key - # redis.xlen('mystream') - # @param key [String] the stream key - # @return [Integer] the number of entries - # - # source://redis//lib/redis/commands/streams.rb#165 - def xlen(key); end - - # Fetches not acknowledging pending entries - # - # @example With key and group - # redis.xpending('mystream', 'mygroup') - # @example With range and consumer options - # redis.xpending('mystream', 'mygroup', '-', '+', 10, 'consumer1') - # @example With range options - # redis.xpending('mystream', 'mygroup', '-', '+', 10) - # @example With range and idle time options - # redis.xpending('mystream', 'mygroup', '-', '+', 10, idle: 9000) - # @option opts - # @param consumer [String] the consumer name - # @param opts [Hash] a customizable set of options - # @param start [String] start first entry id of range - # @param key [String] the stream key - # @param group [String] the consumer group name - # @param end [String] end last entry id of range - # @param count [Integer] count the number of entries as limit - # @return [Hash] the summary of pending entries - # @return [Array] the pending entries details if options were specified - # - # source://redis//lib/redis/commands/streams.rb#368 - def xpending(key, group, *args, idle: T.unsafe(nil)); end - - # Fetches entries of the stream in ascending order. - # - # @example Without options - # redis.xrange('mystream') - # @example With a specific start - # redis.xrange('mystream', '0-1') - # @example With a specific start and end - # redis.xrange('mystream', '0-1', '0-3') - # @example With count options - # redis.xrange('mystream', count: 10) - # @param key [String] the stream key - # @param start [String] first entry id of range, default value is `-` - # @param end [String] last entry id of range, default value is `+` - # @param count [Integer] the number of entries as limit - # @return [Array>] the ids and entries pairs - # - # source://redis//lib/redis/commands/streams.rb#128 - def xrange(key, start = T.unsafe(nil), range_end = T.unsafe(nil), count: T.unsafe(nil)); end - - # Fetches entries from one or multiple streams. Optionally blocking. - # - # @example With a key - # redis.xread('mystream', '0-0') - # @example With multiple keys - # redis.xread(%w[mystream1 mystream2], %w[0-0 0-0]) - # @example With count option - # redis.xread('mystream', '0-0', count: 2) - # @example With block option - # redis.xread('mystream', '$', block: 1000) - # @param keys [Array] one or multiple stream keys - # @param ids [Array] one or multiple entry ids - # @param count [Integer] the number of entries as limit per stream - # @param block [Integer] the number of milliseconds as blocking timeout - # @return [Hash{String => Hash{String => Hash}}] the entries - # - # source://redis//lib/redis/commands/streams.rb#186 - def xread(keys, ids, count: T.unsafe(nil), block: T.unsafe(nil)); end - - # Fetches a subset of the entries from one or multiple streams related with the consumer group. - # Optionally blocking. - # - # @example With multiple keys - # redis.xreadgroup('mygroup', 'consumer1', %w[mystream1 mystream2], %w[> >]) - # @example With count option - # redis.xreadgroup('mygroup', 'consumer1', 'mystream', '>', count: 2) - # @example With a key - # redis.xreadgroup('mygroup', 'consumer1', 'mystream', '>') - # @example With block option - # redis.xreadgroup('mygroup', 'consumer1', 'mystream', '>', block: 1000) - # @example With noack option - # redis.xreadgroup('mygroup', 'consumer1', 'mystream', '>', noack: true) - # @option opts - # @option opts - # @option opts - # @param group [String] the consumer group name - # @param consumer [String] the consumer name - # @param keys [Array] one or multiple stream keys - # @param ids [Array] one or multiple entry ids - # @param opts [Hash] several options for `XREADGROUP` command - # @return [Hash{String => Hash{String => Hash}}] the entries - # - # source://redis//lib/redis/commands/streams.rb#244 - def xreadgroup(group, consumer, keys, ids, count: T.unsafe(nil), block: T.unsafe(nil), noack: T.unsafe(nil)); end - - # Fetches entries of the stream in descending order. - # - # @example Without options - # redis.xrevrange('mystream') - # @example With a specific end - # redis.xrevrange('mystream', '0-3') - # @example With a specific end and start - # redis.xrevrange('mystream', '0-3', '0-1') - # @example With count options - # redis.xrevrange('mystream', count: 10) - # @param key [String] the stream key - # @param end [String] first entry id of range, default value is `+` - # @param start [String] last entry id of range, default value is `-` - # @return [Array>] the ids and entries pairs - # - # source://redis//lib/redis/commands/streams.rb#151 - def xrevrange(key, range_end = T.unsafe(nil), start = T.unsafe(nil), count: T.unsafe(nil)); end - - # Trims older entries of the stream if needed. - # - # @example Without options - # redis.xtrim('mystream', 1000) - # @example With options - # redis.xtrim('mystream', 1000, approximate: true) - # @example With strategy - # redis.xtrim('mystream', '1-0', strategy: 'MINID') - # @overload xtrim - # @overload xtrim - # @return [Integer] the number of entries actually deleted - # - # source://redis//lib/redis/commands/streams.rb#85 - def xtrim(key, len_or_id, strategy: T.unsafe(nil), approximate: T.unsafe(nil), limit: T.unsafe(nil)); end - - private - - # source://redis//lib/redis/commands/streams.rb#385 - def _xread(args, keys, ids, blocking_timeout_msec); end -end - -# source://redis//lib/redis/commands/strings.rb#5 -module Redis::Commands::Strings - # Append a value to a key. - # - # @param key [String] - # @param value [String] value to append - # @return [Integer] length of the string after appending - # - # source://redis//lib/redis/commands/strings.rb#255 - def append(key, value); end - - # Decrement the integer value of a key by one. - # - # @example - # redis.decr("value") - # # => 4 - # @param key [String] - # @return [Integer] value after decrementing it - # - # source://redis//lib/redis/commands/strings.rb#14 - def decr(key); end - - # Decrement the integer value of a key by the given number. - # - # @example - # redis.decrby("value", 5) - # # => 0 - # @param key [String] - # @param decrement [Integer] - # @return [Integer] value after decrementing it - # - # source://redis//lib/redis/commands/strings.rb#27 - def decrby(key, decrement); end - - # Get the value of a key. - # - # @param key [String] - # @return [String] - # - # source://redis//lib/redis/commands/strings.rb#190 - def get(key); end - - # Get the value of key and delete the key. This command is similar to GET, - # except for the fact that it also deletes the key on success. - # - # @param key [String] - # @return [String] the old value stored in the key, or `nil` if the key - # did not exist - # - # source://redis//lib/redis/commands/strings.rb#275 - def getdel(key); end - - # Get the value of key and optionally set its expiration. GETEX is similar to - # GET, but is a write command with additional options. When no options are - # provided, GETEX behaves like GET. - # - # @param key [String] - # @param options [Hash] - `:ex => Integer`: Set the specified expire time, in seconds. - # - `:px => Integer`: Set the specified expire time, in milliseconds. - # - `:exat => true`: Set the specified Unix time at which the key will - # expire, in seconds. - # - `:pxat => true`: Set the specified Unix time at which the key will - # expire, in milliseconds. - # - `:persist => true`: Remove the time to live associated with the key. - # @return [String] The value of key, or nil when key does not exist. - # - # source://redis//lib/redis/commands/strings.rb#293 - def getex(key, ex: T.unsafe(nil), px: T.unsafe(nil), exat: T.unsafe(nil), pxat: T.unsafe(nil), persist: T.unsafe(nil)); end - - # Get a substring of the string stored at a key. - # - # @param key [String] - # @param start [Integer] zero-based start offset - # @param stop [Integer] zero-based end offset. Use -1 for representing - # the end of the string - # @return [Integer] `0` or `1` - # - # source://redis//lib/redis/commands/strings.rb#246 - def getrange(key, start, stop); end - - # Set the string value of a key and return its old value. - # - # @param key [String] - # @param value [String] value to replace the current value with - # @return [String] the old value stored in the key, or `nil` if the key - # did not exist - # - # source://redis//lib/redis/commands/strings.rb#265 - def getset(key, value); end - - # Increment the integer value of a key by one. - # - # @example - # redis.incr("value") - # # => 6 - # @param key [String] - # @return [Integer] value after incrementing it - # - # source://redis//lib/redis/commands/strings.rb#39 - def incr(key); end - - # Increment the integer value of a key by the given integer number. - # - # @example - # redis.incrby("value", 5) - # # => 10 - # @param key [String] - # @param increment [Integer] - # @return [Integer] value after incrementing it - # - # source://redis//lib/redis/commands/strings.rb#52 - def incrby(key, increment); end - - # Increment the numeric value of a key by the given float number. - # - # @example - # redis.incrbyfloat("value", 1.23) - # # => 1.23 - # @param key [String] - # @param increment [Float] - # @return [Float] value after incrementing it - # - # source://redis//lib/redis/commands/strings.rb#65 - def incrbyfloat(key, increment); end - - # Get the values of all the given keys. - # - # @example - # redis.mapped_mget("key1", "key2") - # # => { "key1" => "v1", "key2" => "v2" } - # @param keys [Array] array of keys - # @return [Hash] a hash mapping the specified keys to their values - # @see #mget - # - # source://redis//lib/redis/commands/strings.rb#219 - def mapped_mget(*keys); end - - # Set one or more values. - # - # @example - # redis.mapped_mset({ "f1" => "v1", "f2" => "v2" }) - # # => "OK" - # @param hash [Hash] keys mapping to values - # @return [String] `"OK"` - # @see #mset - # - # source://redis//lib/redis/commands/strings.rb#154 - def mapped_mset(hash); end - - # Set one or more values, only if none of the keys exist. - # - # @example - # redis.mapped_msetnx({ "key1" => "v1", "key2" => "v2" }) - # # => true - # @param hash [Hash] keys mapping to values - # @return [Boolean] whether or not all values were set - # @see #msetnx - # - # source://redis//lib/redis/commands/strings.rb#182 - def mapped_msetnx(hash); end - - # Get the values of all the given keys. - # - # @example - # redis.mget("key1", "key2") - # # => ["v1", "v2"] - # @param keys [Array] - # @return [Array] an array of values for the specified keys - # @see #mapped_mget - # - # source://redis//lib/redis/commands/strings.rb#204 - def mget(*keys, &blk); end - - # Set one or more values. - # - # @example - # redis.mset("key1", "v1", "key2", "v2") - # # => "OK" - # @param args [Array] array of keys and values - # @return [String] `"OK"` - # @see #mapped_mset - # - # source://redis//lib/redis/commands/strings.rb#140 - def mset(*args); end - - # Set one or more values, only if none of the keys exist. - # - # @example - # redis.msetnx("key1", "v1", "key2", "v2") - # # => true - # @param args [Array] array of keys and values - # @return [Boolean] whether or not all values were set - # @see #mapped_msetnx - # - # source://redis//lib/redis/commands/strings.rb#168 - def msetnx(*args); end - - # Set the time to live in milliseconds of a key. - # - # @param key [String] - # @param ttl [Integer] - # @param value [String] - # @return [String] `"OK"` - # - # source://redis//lib/redis/commands/strings.rb#117 - def psetex(key, ttl, value); end - - # Set the string value of a key. - # - # @param key [String] - # @param value [String] - # @param options [Hash] - `:ex => Integer`: Set the specified expire time, in seconds. - # - `:px => Integer`: Set the specified expire time, in milliseconds. - # - `:exat => Integer` : Set the specified Unix time at which the key will expire, in seconds. - # - `:pxat => Integer` : Set the specified Unix time at which the key will expire, in milliseconds. - # - `:nx => true`: Only set the key if it does not already exist. - # - `:xx => true`: Only set the key if it already exist. - # - `:keepttl => true`: Retain the time to live associated with the key. - # - `:get => true`: Return the old string stored at key, or nil if key did not exist. - # @return [String, Boolean] `"OK"` or true, false if `:nx => true` or `:xx => true` - # - # source://redis//lib/redis/commands/strings.rb#83 - def set(key, value, ex: T.unsafe(nil), px: T.unsafe(nil), exat: T.unsafe(nil), pxat: T.unsafe(nil), nx: T.unsafe(nil), xx: T.unsafe(nil), keepttl: T.unsafe(nil), get: T.unsafe(nil)); end - - # Set the time to live in seconds of a key. - # - # @param key [String] - # @param ttl [Integer] - # @param value [String] - # @return [String] `"OK"` - # - # source://redis//lib/redis/commands/strings.rb#107 - def setex(key, ttl, value); end - - # Set the value of a key, only if the key does not exist. - # - # @param key [String] - # @param value [String] - # @return [Boolean] whether the key was set or not - # - # source://redis//lib/redis/commands/strings.rb#126 - def setnx(key, value); end - - # Overwrite part of a string at key starting at the specified offset. - # - # @param key [String] - # @param offset [Integer] byte offset - # @param value [String] - # @return [Integer] length of the string after it was modified - # - # source://redis//lib/redis/commands/strings.rb#235 - def setrange(key, offset, value); end - - # Get the length of the value stored in a key. - # - # @param key [String] - # @return [Integer] the length of the value stored in the key, or 0 - # if the key does not exist - # - # source://redis//lib/redis/commands/strings.rb#309 - def strlen(key); end -end - -# source://redis//lib/redis/commands/transactions.rb#5 -module Redis::Commands::Transactions - # Discard all commands issued after MULTI. - # - # @return [String] `"OK"` - # @see #multi - # @see #exec - # - # source://redis//lib/redis/commands/transactions.rb#110 - def discard; end - - # Execute all commands issued after MULTI. - # - # Only call this method when `#multi` was called **without** a block. - # - # @return [nil, Array<...>] - when commands were not executed, `nil` - # - when commands were executed, an array with their replies - # @see #multi - # @see #discard - # - # source://redis//lib/redis/commands/transactions.rb#100 - def exec; end - - # Mark the start of a transaction block. - # - # @example With a block - # redis.multi do |multi| - # multi.set("key", "value") - # multi.incr("counter") - # end # => ["OK", 6] - # @return [Array<...>] - an array with replies - # @see #watch - # @see #unwatch - # @yield [multi] the commands that are called inside this block are cached - # and written to the server upon returning from it - # @yieldparam multi [Redis] `self` - # - # source://redis//lib/redis/commands/transactions.rb#23 - def multi; end - - # Forget about all watched keys. - # - # @return [String] `OK` - # @see #watch - # @see #multi - # - # source://redis//lib/redis/commands/transactions.rb#86 - def unwatch; end - - # Watch the given keys to determine execution of the MULTI/EXEC block. - # - # Using a block is optional, but is necessary for thread-safety. - # - # An `#unwatch` is automatically issued if an exception is raised within the - # block that is a subclass of StandardError and is not a ConnectionError. - # - # @example With a block - # redis.watch("key") do - # if redis.get("key") == "some value" - # redis.multi do |multi| - # multi.set("key", "other value") - # multi.incr("counter") - # end - # else - # redis.unwatch - # end - # end - # # => ["OK", 6] - # @example Without a block - # redis.watch("key") - # # => "OK" - # @param keys [String, Array] one or more keys to watch - # @return [Object] if using a block, returns the return value of the block - # @return [String] if not using a block, returns `OK` - # @see #unwatch - # @see #multi - # - # source://redis//lib/redis/commands/transactions.rb#61 - def watch(*keys); end -end - -# soft-deprecated -# We added this back for older sidekiq releases -# -# source://redis//lib/redis.rb#27 -module Redis::Connection - class << self - # source://redis//lib/redis.rb#29 - def drivers; end - end -end - -# Raised when connection to a Redis server is lost. -# -# source://redis//lib/redis/errors.rb#41 -class Redis::ConnectionError < ::Redis::BaseConnectionError; end - -# source://redis//lib/redis.rb#9 -class Redis::Deprecated < ::StandardError; end - -# source://redis//lib/redis/distributed.rb#6 -class Redis::Distributed - # @return [Distributed] a new instance of Distributed - # - # source://redis//lib/redis/distributed.rb#20 - def initialize(node_configs, options = T.unsafe(nil)); end - - # source://redis//lib/redis/distributed.rb#410 - def [](key); end - - # source://redis//lib/redis/distributed.rb#414 - def []=(key, value); end - - # source://redis//lib/redis/distributed.rb#476 - def _bpop(cmd, args); end - - # source://redis//lib/redis/distributed.rb#1038 - def _eval(cmd, args); end - - # source://redis//lib/redis/distributed.rb#41 - def add_node(options); end - - # Append a value to a key. - # - # source://redis//lib/redis/distributed.rb#378 - def append(key, value); end - - # Asynchronously save the dataset to disk. - # - # source://redis//lib/redis/distributed.rb#74 - def bgsave; end - - # Count the number of set bits in a range of the string value stored at key. - # - # source://redis//lib/redis/distributed.rb#383 - def bitcount(key, start = T.unsafe(nil), stop = T.unsafe(nil), scale: T.unsafe(nil)); end - - # Perform a bitwise operation between strings and store the resulting string in a key. - # - # source://redis//lib/redis/distributed.rb#388 - def bitop(operation, destkey, *keys); end - - # Return the position of the first bit set to 1 or 0 in a string. - # - # source://redis//lib/redis/distributed.rb#396 - def bitpos(key, bit, start = T.unsafe(nil), stop = T.unsafe(nil), scale: T.unsafe(nil)); end - - # Remove the first/last element in a list and append/prepend it - # to another list and return it, or block until one is available. - # - # source://redis//lib/redis/distributed.rb#432 - def blmove(source, destination, where_source, where_destination, timeout: T.unsafe(nil)); end - - # Iterate over keys, blocking and removing elements from the first non empty liist found. - # - # source://redis//lib/redis/distributed.rb#556 - def blmpop(timeout, *keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # Remove and get the first element in a list, or block until one is - # available. - # - # source://redis//lib/redis/distributed.rb#495 - def blpop(*args); end - - # Remove and get the last element in a list, or block until one is - # available. - # - # source://redis//lib/redis/distributed.rb#513 - def brpop(*args); end - - # Pop a value from a list, push it to another list and return it; or block - # until one is available. - # - # source://redis//lib/redis/distributed.rb#519 - def brpoplpush(source, destination, **options); end - - # Iterate over keys, blocking and removing members from the first non empty sorted set found. - # - # source://redis//lib/redis/distributed.rb#722 - def bzmpop(timeout, *keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # source://redis//lib/redis/distributed.rb#499 - def bzpopmax(*args); end - - # source://redis//lib/redis/distributed.rb#505 - def bzpopmin(*args); end - - # source://redis//lib/redis/distributed.rb#69 - def close; end - - # Copy a value from one key to another. - # - # source://redis//lib/redis/distributed.rb#226 - def copy(source, destination, **options); end - - # Return the number of keys in the selected database. - # - # source://redis//lib/redis/distributed.rb#79 - def dbsize; end - - # Decrement the integer value of a key by one. - # - # source://redis//lib/redis/distributed.rb#266 - def decr(key); end - - # Decrement the integer value of a key by the given number. - # - # source://redis//lib/redis/distributed.rb#271 - def decrby(key, decrement); end - - # Delete a key. - # - # source://redis//lib/redis/distributed.rb#179 - def del(*args); end - - # Discard all commands issued after MULTI. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#1005 - def discard; end - - # Return a serialized version of the value stored at a key. - # - # source://redis//lib/redis/distributed.rb#164 - def dump(key); end - - # source://redis//lib/redis/distributed.rb#1065 - def dup; end - - # Echo the given string. - # - # source://redis//lib/redis/distributed.rb#60 - def echo(value); end - - # Evaluate Lua script. - # - # source://redis//lib/redis/distributed.rb#1052 - def eval(*args); end - - # Evaluate Lua script by its SHA. - # - # source://redis//lib/redis/distributed.rb#1057 - def evalsha(*args); end - - # Execute all commands issued after MULTI. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#996 - def exec; end - - # Determine if a key exists. - # - # source://redis//lib/redis/distributed.rb#197 - def exists(*args); end - - # Determine if any of the keys exists. - # - # @return [Boolean] - # - # source://redis//lib/redis/distributed.rb#206 - def exists?(*args); end - - # Set a key's time to live in seconds. - # - # source://redis//lib/redis/distributed.rb#124 - def expire(key, seconds, **kwargs); end - - # Set the expiration for a key as a UNIX timestamp. - # - # source://redis//lib/redis/distributed.rb#129 - def expireat(key, unix_time, **kwargs); end - - # Get the expiration for a key as a UNIX timestamp. - # - # source://redis//lib/redis/distributed.rb#134 - def expiretime(key); end - - # Remove all keys from all databases. - # - # source://redis//lib/redis/distributed.rb#84 - def flushall; end - - # Remove all keys from the current database. - # - # source://redis//lib/redis/distributed.rb#89 - def flushdb; end - - # Get the value of a key. - # - # source://redis//lib/redis/distributed.rb#329 - def get(key); end - - # Returns the bit value at offset in the string value stored at key. - # - # source://redis//lib/redis/distributed.rb#373 - def getbit(key, offset); end - - # Get the value of a key and delete it. - # - # source://redis//lib/redis/distributed.rb#334 - def getdel(key); end - - # Get the value of a key and sets its time to live based on options. - # - # source://redis//lib/redis/distributed.rb#339 - def getex(key, **options); end - - # Get a substring of the string stored at a key. - # - # source://redis//lib/redis/distributed.rb#363 - def getrange(key, start, stop); end - - # Set the string value of a key and return its old value. - # - # source://redis//lib/redis/distributed.rb#401 - def getset(key, value); end - - # Delete one or more hash fields. - # - # source://redis//lib/redis/distributed.rb#886 - def hdel(key, *fields); end - - # Determine if a hash field exists. - # - # source://redis//lib/redis/distributed.rb#892 - def hexists(key, field); end - - # Get the value of a hash field. - # - # source://redis//lib/redis/distributed.rb#866 - def hget(key, field); end - - # Get all the fields and values in a hash. - # - # source://redis//lib/redis/distributed.rb#917 - def hgetall(key); end - - # Increment the integer value of a hash field by the given integer number. - # - # source://redis//lib/redis/distributed.rb#897 - def hincrby(key, field, increment); end - - # Increment the numeric value of a hash field by the given float number. - # - # source://redis//lib/redis/distributed.rb#902 - def hincrbyfloat(key, field, increment); end - - # Get all the fields in a hash. - # - # source://redis//lib/redis/distributed.rb#907 - def hkeys(key); end - - # Get the number of fields in a hash. - # - # source://redis//lib/redis/distributed.rb#842 - def hlen(key); end - - # Get the values of all the given hash fields. - # - # source://redis//lib/redis/distributed.rb#871 - def hmget(key, *fields); end - - # Set multiple hash fields to multiple values. - # - # source://redis//lib/redis/distributed.rb#857 - def hmset(key, *attrs); end - - # source://redis//lib/redis/distributed.rb#881 - def hrandfield(key, count = T.unsafe(nil), **options); end - - # Set multiple hash fields to multiple values. - # - # source://redis//lib/redis/distributed.rb#847 - def hset(key, *attrs); end - - # Set the value of a hash field, only if the field does not exist. - # - # source://redis//lib/redis/distributed.rb#852 - def hsetnx(key, field, value); end - - # Get all the values in a hash. - # - # source://redis//lib/redis/distributed.rb#912 - def hvals(key); end - - # Increment the integer value of a key by one. - # - # source://redis//lib/redis/distributed.rb#276 - def incr(key); end - - # Increment the integer value of a key by the given integer number. - # - # source://redis//lib/redis/distributed.rb#281 - def incrby(key, increment); end - - # Increment the numeric value of a key by the given float number. - # - # source://redis//lib/redis/distributed.rb#286 - def incrbyfloat(key, increment); end - - # Get information and statistics about the server. - # - # source://redis//lib/redis/distributed.rb#94 - def info(cmd = T.unsafe(nil)); end - - # source://redis//lib/redis/distributed.rb#1061 - def inspect; end - - # Find all keys matching the given pattern. - # - # source://redis//lib/redis/distributed.rb#216 - def keys(glob = T.unsafe(nil)); end - - # Get the UNIX time stamp of the last successful save to disk. - # - # source://redis//lib/redis/distributed.rb#99 - def lastsave; end - - # Get an element from a list by its index. - # - # source://redis//lib/redis/distributed.rb#526 - def lindex(key, index); end - - # Insert an element before or after another element in a list. - # - # source://redis//lib/redis/distributed.rb#531 - def linsert(key, where, pivot, value); end - - # Get the length of a list. - # - # source://redis//lib/redis/distributed.rb#419 - def llen(key); end - - # Remove the first/last element in a list, append/prepend it to another list and return it. - # - # source://redis//lib/redis/distributed.rb#424 - def lmove(source, destination, where_source, where_destination); end - - # Iterate over keys, removing elements from the first non list found. - # - # source://redis//lib/redis/distributed.rb#563 - def lmpop(*keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # Remove and get the first elements in a list. - # - # source://redis//lib/redis/distributed.rb#459 - def lpop(key, count = T.unsafe(nil)); end - - # Prepend one or more values to a list. - # - # source://redis//lib/redis/distributed.rb#439 - def lpush(key, value); end - - # Prepend a value to a list, only if the list exists. - # - # source://redis//lib/redis/distributed.rb#444 - def lpushx(key, value); end - - # Get a range of elements from a list. - # - # source://redis//lib/redis/distributed.rb#536 - def lrange(key, start, stop); end - - # Remove elements from a list. - # - # source://redis//lib/redis/distributed.rb#541 - def lrem(key, count, value); end - - # Set the value of an element in a list by its index. - # - # source://redis//lib/redis/distributed.rb#546 - def lset(key, index, value); end - - # Trim a list to the specified range. - # - # source://redis//lib/redis/distributed.rb#551 - def ltrim(key, start, stop); end - - # source://redis//lib/redis/distributed.rb#876 - def mapped_hmget(key, *fields); end - - # source://redis//lib/redis/distributed.rb#861 - def mapped_hmset(key, hash); end - - # Get the values of all the given keys as a Hash. - # - # source://redis//lib/redis/distributed.rb#350 - def mapped_mget(*keys); end - - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#315 - def mapped_mset(_hash); end - - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#324 - def mapped_msetnx(_hash); end - - # Get the values of all the given keys as an Array. - # - # source://redis//lib/redis/distributed.rb#344 - def mget(*keys); end - - # Transfer a key from the connected instance to another instance. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#174 - def migrate(_key, _options); end - - # Listen for all requests received by the server in real time. - # - # @raise [NotImplementedError] - # - # source://redis//lib/redis/distributed.rb#104 - def monitor; end - - # Move a key to another database. - # - # source://redis//lib/redis/distributed.rb#221 - def move(key, db); end - - # Set multiple keys to multiple values. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#311 - def mset(*_arg0); end - - # Set multiple keys to multiple values, only if none of the keys exist. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#320 - def msetnx(*_arg0); end - - # Mark the start of a transaction block. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#989 - def multi(&block); end - - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#30 - def node_for(key); end - - # source://redis//lib/redis/distributed.rb#37 - def nodes; end - - # Remove the expiration from a key. - # - # source://redis//lib/redis/distributed.rb#119 - def persist(key); end - - # Set a key's time to live in milliseconds. - # - # source://redis//lib/redis/distributed.rb#144 - def pexpire(key, milliseconds, **kwarg); end - - # Set the expiration for a key as number of milliseconds from UNIX Epoch. - # - # source://redis//lib/redis/distributed.rb#149 - def pexpireat(key, ms_unix_time, **kwarg); end - - # Get the expiration for a key as number of milliseconds from UNIX Epoch. - # - # source://redis//lib/redis/distributed.rb#154 - def pexpiretime(key); end - - # Add one or more members to a HyperLogLog structure. - # - # source://redis//lib/redis/distributed.rb#1019 - def pfadd(key, member); end - - # Get the approximate cardinality of members added to HyperLogLog structure. - # - # source://redis//lib/redis/distributed.rb#1024 - def pfcount(*keys); end - - # Merge multiple HyperLogLog values into an unique value that will approximate the cardinality of the union of - # the observed Sets of the source HyperLogLog structures. - # - # source://redis//lib/redis/distributed.rb#1032 - def pfmerge(dest_key, *source_key); end - - # Ping the server. - # - # source://redis//lib/redis/distributed.rb#55 - def ping; end - - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#984 - def pipelined; end - - # Set the time to live in milliseconds of a key. - # - # source://redis//lib/redis/distributed.rb#301 - def psetex(key, ttl, value); end - - # Listen for messages published to channels matching the given patterns. - # - # @raise [NotImplementedError] - # - # source://redis//lib/redis/distributed.rb#951 - def psubscribe(*channels, &block); end - - # Get the time to live (in milliseconds) for a key. - # - # source://redis//lib/redis/distributed.rb#159 - def pttl(key); end - - # Post a message to a channel. - # - # source://redis//lib/redis/distributed.rb#922 - def publish(channel, message); end - - # Stop listening for messages posted to channels matching the given - # patterns. - # - # @raise [NotImplementedError] - # - # source://redis//lib/redis/distributed.rb#957 - def punsubscribe(*channels); end - - # Close the connection. - # - # source://redis//lib/redis/distributed.rb#65 - def quit; end - - # Return a random key from the keyspace. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#233 - def randomkey; end - - # Rename a key. - # - # source://redis//lib/redis/distributed.rb#238 - def rename(old_name, new_name); end - - # Rename a key, only if the new key does not exist. - # - # source://redis//lib/redis/distributed.rb#245 - def renamenx(old_name, new_name); end - - # Create a key using the serialized value, previously obtained using DUMP. - # - # source://redis//lib/redis/distributed.rb#169 - def restore(key, ttl, serialized_value, **options); end - - # Returns the value of attribute ring. - # - # source://redis//lib/redis/distributed.rb#18 - def ring; end - - # Remove and get the last elements in a list. - # - # source://redis//lib/redis/distributed.rb#464 - def rpop(key, count = T.unsafe(nil)); end - - # Remove the last element in a list, append it to another list and return - # it. - # - # source://redis//lib/redis/distributed.rb#470 - def rpoplpush(source, destination); end - - # Append one or more values to a list. - # - # source://redis//lib/redis/distributed.rb#449 - def rpush(key, value); end - - # Append a value to a list, only if the list exists. - # - # source://redis//lib/redis/distributed.rb#454 - def rpushx(key, value); end - - # Add one or more members to a set. - # - # source://redis//lib/redis/distributed.rb#575 - def sadd(key, *members); end - - # Add one or more members to a set. - # - # @return [Boolean] - # - # source://redis//lib/redis/distributed.rb#580 - def sadd?(key, *members); end - - # Synchronously save the dataset to disk. - # - # source://redis//lib/redis/distributed.rb#109 - def save; end - - # Get the number of members in a set. - # - # source://redis//lib/redis/distributed.rb#570 - def scard(key); end - - # Control remote script registry. - # - # source://redis//lib/redis/distributed.rb#1014 - def script(subcommand, *args); end - - # Subtract multiple sets. - # - # source://redis//lib/redis/distributed.rb#637 - def sdiff(*keys); end - - # Subtract multiple sets and store the resulting set in a key. - # - # source://redis//lib/redis/distributed.rb#645 - def sdiffstore(destination, *keys); end - - # Change the selected database for the current connection. - # - # source://redis//lib/redis/distributed.rb#50 - def select(db); end - - # Set the string value of a key. - # - # source://redis//lib/redis/distributed.rb#291 - def set(key, value, **options); end - - # Sets or clears the bit at offset in the string value stored at key. - # - # source://redis//lib/redis/distributed.rb#368 - def setbit(key, offset, value); end - - # Set the time to live in seconds of a key. - # - # source://redis//lib/redis/distributed.rb#296 - def setex(key, ttl, value); end - - # Set the value of a key, only if the key does not exist. - # - # source://redis//lib/redis/distributed.rb#306 - def setnx(key, value); end - - # Overwrite part of a string at key starting at the specified offset. - # - # source://redis//lib/redis/distributed.rb#358 - def setrange(key, offset, value); end - - # Intersect multiple sets. - # - # source://redis//lib/redis/distributed.rb#653 - def sinter(*keys); end - - # Intersect multiple sets and store the resulting set in a key. - # - # source://redis//lib/redis/distributed.rb#661 - def sinterstore(destination, *keys); end - - # Determine if a given value is a member of a set. - # - # source://redis//lib/redis/distributed.rb#612 - def sismember(key, member); end - - # Get all the members in a set. - # - # source://redis//lib/redis/distributed.rb#622 - def smembers(key); end - - # Determine if multiple values are members of a set. - # - # source://redis//lib/redis/distributed.rb#617 - def smismember(key, *members); end - - # Move a member from one set to another. - # - # source://redis//lib/redis/distributed.rb#605 - def smove(source, destination, member); end - - # Sort the elements in a list, set or sorted set. - # - # source://redis//lib/redis/distributed.rb#252 - def sort(key, **options); end - - # Remove and return a random member from a set. - # - # source://redis//lib/redis/distributed.rb#595 - def spop(key, count = T.unsafe(nil)); end - - # Get a random member from a set. - # - # source://redis//lib/redis/distributed.rb#600 - def srandmember(key, count = T.unsafe(nil)); end - - # Remove one or more members from a set. - # - # source://redis//lib/redis/distributed.rb#585 - def srem(key, *members); end - - # Remove one or more members from a set. - # - # @return [Boolean] - # - # source://redis//lib/redis/distributed.rb#590 - def srem?(key, *members); end - - # Scan a set - # - # source://redis//lib/redis/distributed.rb#627 - def sscan(key, cursor, **options); end - - # Scan a set and return an enumerator - # - # source://redis//lib/redis/distributed.rb#632 - def sscan_each(key, **options, &block); end - - # Get the length of the value stored in a key. - # - # source://redis//lib/redis/distributed.rb#406 - def strlen(key); end - - # Listen for messages published to the given channels. - # - # source://redis//lib/redis/distributed.rb#931 - def subscribe(channel, *channels, &block); end - - # @return [Boolean] - # - # source://redis//lib/redis/distributed.rb#926 - def subscribed?; end - - # Add multiple sets. - # - # source://redis//lib/redis/distributed.rb#669 - def sunion(*keys); end - - # Add multiple sets and store the resulting set in a key. - # - # source://redis//lib/redis/distributed.rb#677 - def sunionstore(destination, *keys); end - - # Get server time: an UNIX timestamp and the elapsed microseconds in the current second. - # - # source://redis//lib/redis/distributed.rb#114 - def time; end - - # Get the time to live (in seconds) for a key. - # - # source://redis//lib/redis/distributed.rb#139 - def ttl(key); end - - # Determine the type stored at key. - # - # source://redis//lib/redis/distributed.rb#261 - def type(key); end - - # Unlink keys. - # - # source://redis//lib/redis/distributed.rb#188 - def unlink(*args); end - - # Stop listening for messages posted to the given channels. - # - # @raise [SubscriptionError] - # - # source://redis//lib/redis/distributed.rb#944 - def unsubscribe(*channels); end - - # Forget about all watched keys. - # - # @raise [CannotDistribute] - # - # source://redis//lib/redis/distributed.rb#976 - def unwatch; end - - # Watch the given keys to determine execution of the MULTI/EXEC block. - # - # source://redis//lib/redis/distributed.rb#962 - def watch(*keys, &block); end - - # Add one or more members to a sorted set, or update the score for members - # that already exist. - # - # source://redis//lib/redis/distributed.rb#691 - def zadd(key, *args, **_arg2); end - - # Get the number of members in a sorted set. - # - # source://redis//lib/redis/distributed.rb#685 - def zcard(key); end - - # Get the number of members in a particular score range. - # - # source://redis//lib/redis/distributed.rb#787 - def zcount(key, min, max); end - - # Return the difference between the first and all successive input sorted sets. - # - # source://redis//lib/redis/distributed.rb#825 - def zdiff(*keys, **options); end - - # Compute the difference between the first and all successive input sorted sets - # and store the resulting sorted set in a new key. - # - # source://redis//lib/redis/distributed.rb#834 - def zdiffstore(destination, *keys, **options); end - - # Increment the score of a member in a sorted set. - # - # source://redis//lib/redis/distributed.rb#697 - def zincrby(key, increment, member); end - - # Get the intersection of multiple sorted sets - # - # source://redis//lib/redis/distributed.rb#792 - def zinter(*keys, **options); end - - # Intersect multiple sorted sets and store the resulting sorted set in a new - # key. - # - # source://redis//lib/redis/distributed.rb#801 - def zinterstore(destination, *keys, **options); end - - # Iterate over keys, removing members from the first non empty sorted set found. - # - # source://redis//lib/redis/distributed.rb#729 - def zmpop(*keys, modifier: T.unsafe(nil), count: T.unsafe(nil)); end - - # Get the scores associated with the given members in a sorted set. - # - # source://redis//lib/redis/distributed.rb#717 - def zmscore(key, *members); end - - # Get one or more random members from a sorted set. - # - # source://redis//lib/redis/distributed.rb#712 - def zrandmember(key, count = T.unsafe(nil), **options); end - - # Return a range of members in a sorted set, by index, score or lexicographical ordering. - # - # source://redis//lib/redis/distributed.rb#736 - def zrange(key, start, stop, **options); end - - # Return a range of members in a sorted set, by score. - # - # source://redis//lib/redis/distributed.rb#771 - def zrangebyscore(key, min, max, **options); end - - # Select a range of members in a sorted set, by index, score or lexicographical ordering - # and store the resulting sorted set in a new key. - # - # source://redis//lib/redis/distributed.rb#742 - def zrangestore(dest_key, src_key, start, stop, **options); end - - # Determine the index of a member in a sorted set. - # - # source://redis//lib/redis/distributed.rb#755 - def zrank(key, member); end - - # Remove one or more members from a sorted set. - # - # source://redis//lib/redis/distributed.rb#702 - def zrem(key, member); end - - # Remove all members in a sorted set within the given indexes. - # - # source://redis//lib/redis/distributed.rb#766 - def zremrangebyrank(key, start, stop); end - - # Remove all members in a sorted set within the given scores. - # - # source://redis//lib/redis/distributed.rb#782 - def zremrangebyscore(key, min, max); end - - # Return a range of members in a sorted set, by index, with scores ordered - # from high to low. - # - # source://redis//lib/redis/distributed.rb#750 - def zrevrange(key, start, stop, **options); end - - # Return a range of members in a sorted set, by score, with scores ordered - # from high to low. - # - # source://redis//lib/redis/distributed.rb#777 - def zrevrangebyscore(key, max, min, **options); end - - # Determine the index of a member in a sorted set, with scores ordered from - # high to low. - # - # source://redis//lib/redis/distributed.rb#761 - def zrevrank(key, member); end - - # Get the score associated with the given member in a sorted set. - # - # source://redis//lib/redis/distributed.rb#707 - def zscore(key, member); end - - # Return the union of multiple sorted sets. - # - # source://redis//lib/redis/distributed.rb#809 - def zunion(*keys, **options); end - - # Add multiple sorted sets and store the resulting sorted set in a new key. - # - # source://redis//lib/redis/distributed.rb#817 - def zunionstore(destination, *keys, **options); end - - protected - - # @yield [node_for(keys.first)] - # - # source://redis//lib/redis/distributed.rb#1086 - def ensure_same_node(command, keys); end - - # source://redis//lib/redis/distributed.rb#1081 - def key_tag(key); end - - # source://redis//lib/redis/distributed.rb#1077 - def node_index_for(key); end - - # source://redis//lib/redis/distributed.rb#1071 - def on_each_node(command, *args); end -end - -# source://redis//lib/redis/distributed.rb#7 -class Redis::Distributed::CannotDistribute < ::RuntimeError - # @return [CannotDistribute] a new instance of CannotDistribute - # - # source://redis//lib/redis/distributed.rb#8 - def initialize(command); end - - # source://redis//lib/redis/distributed.rb#12 - def message; end -end - -# source://redis//lib/redis/pipeline.rb#80 -class Redis::Future < ::BasicObject - # @return [Future] a new instance of Future - # - # source://redis//lib/redis/pipeline.rb#83 - def initialize(command, coerce, exception); end - - # source://redis//lib/redis/pipeline.rb#94 - def _set(object); end - - # source://redis//lib/redis/pipeline.rb#108 - def class; end - - # source://redis//lib/redis/pipeline.rb#90 - def inspect; end - - # @return [Boolean] - # - # source://redis//lib/redis/pipeline.rb#104 - def is_a?(other); end - - # source://redis//lib/redis/pipeline.rb#99 - def value; end -end - -# source://redis//lib/redis/pipeline.rb#81 -Redis::Future::FutureNotReady = T.let(T.unsafe(nil), Redis::FutureNotReady) - -# source://redis//lib/redis/pipeline.rb#74 -class Redis::FutureNotReady < ::RuntimeError - # @return [FutureNotReady] a new instance of FutureNotReady - # - # source://redis//lib/redis/pipeline.rb#75 - def initialize; end -end - -# source://redis//lib/redis/hash_ring.rb#7 -class Redis::HashRing - # nodes is a list of objects that have a proper to_s representation. - # replicas indicates how many virtual points should be used pr. node, - # replicas are required to improve the distribution. - # - # @return [HashRing] a new instance of HashRing - # - # source://redis//lib/redis/hash_ring.rb#15 - def initialize(nodes = T.unsafe(nil), replicas = T.unsafe(nil)); end - - # Adds a `node` to the hash ring (including a number of replicas). - # - # source://redis//lib/redis/hash_ring.rb#26 - def add_node(node); end - - # get the node in the hash ring for this key - # - # source://redis//lib/redis/hash_ring.rb#46 - def get_node(key); end - - # source://redis//lib/redis/hash_ring.rb#52 - def iter_nodes(key); end - - # Returns the value of attribute nodes. - # - # source://redis//lib/redis/hash_ring.rb#10 - def nodes; end - - # source://redis//lib/redis/hash_ring.rb#36 - def remove_node(node); end - - # Returns the value of attribute replicas. - # - # source://redis//lib/redis/hash_ring.rb#10 - def replicas; end - - # Returns the value of attribute ring. - # - # source://redis//lib/redis/hash_ring.rb#10 - def ring; end - - # Returns the value of attribute sorted_keys. - # - # source://redis//lib/redis/hash_ring.rb#10 - def sorted_keys; end - - private - - # Find the closest index in HashRing with value <= the given value - # - # source://redis//lib/redis/hash_ring.rb#73 - def binary_search(ary, value); end - - # source://redis//lib/redis/hash_ring.rb#64 - def hash_for(key); end - - # source://redis//lib/redis/hash_ring.rb#68 - def server_hash_for(key); end -end - -# this is the default in libmemcached -# -# source://redis//lib/redis/hash_ring.rb#8 -Redis::HashRing::POINTS_PER_SERVER = T.let(T.unsafe(nil), Integer) - -# Raised when the connection was inherited by a child process. -# -# source://redis//lib/redis/errors.rb#49 -class Redis::InheritedError < ::Redis::BaseConnectionError; end - -# Raised when client options are invalid. -# -# source://redis//lib/redis/errors.rb#57 -class Redis::InvalidClientOptionError < ::Redis::BaseError; end - -# source://redis//lib/redis/pipeline.rb#59 -class Redis::MultiConnection < ::Redis::PipelinedConnection - # @raise [Redis::Error] - # - # source://redis//lib/redis/pipeline.rb#60 - def multi; end - - private - - # Blocking commands inside transaction behave like non-blocking. - # It shouldn't be done though. - # https://redis.io/commands/blpop/#blpop-inside-a-multi--exec-transaction - # - # source://redis//lib/redis/pipeline.rb#69 - def send_blocking_command(command, _timeout, &block); end -end - -# source://redis//lib/redis/pipeline.rb#113 -class Redis::MultiFuture < ::Redis::Future - # @return [MultiFuture] a new instance of MultiFuture - # - # source://redis//lib/redis/pipeline.rb#114 - def initialize(futures); end - - # source://redis//lib/redis/pipeline.rb#120 - def _set(replies); end -end - -# source://redis//lib/redis/errors.rb#29 -class Redis::OutOfMemoryError < ::Redis::CommandError; end - -# source://redis//lib/redis/errors.rb#23 -class Redis::PermissionError < ::Redis::CommandError; end - -# source://redis//lib/redis/pipeline.rb#6 -class Redis::PipelinedConnection - include ::Redis::Commands::Bitmaps - include ::Redis::Commands::Cluster - include ::Redis::Commands::Connection - include ::Redis::Commands::Geo - include ::Redis::Commands::Hashes - include ::Redis::Commands::HyperLogLog - include ::Redis::Commands::Keys - include ::Redis::Commands::Lists - include ::Redis::Commands::Pubsub - include ::Redis::Commands::Scripting - include ::Redis::Commands::Server - include ::Redis::Commands::Sets - include ::Redis::Commands::SortedSets - include ::Redis::Commands::Streams - include ::Redis::Commands::Strings - include ::Redis::Commands::Transactions - include ::Redis::Commands - - # @return [PipelinedConnection] a new instance of PipelinedConnection - # - # source://redis//lib/redis/pipeline.rb#9 - def initialize(pipeline, futures = T.unsafe(nil), exception: T.unsafe(nil)); end - - # Returns the value of attribute db. - # - # source://redis//lib/redis/pipeline.rb#7 - def db; end - - # Sets the attribute db - # - # @param value the value to set the attribute db to. - # - # source://redis//lib/redis/pipeline.rb#7 - def db=(_arg0); end - - # @yield [transaction] - # - # source://redis//lib/redis/pipeline.rb#21 - def multi; end - - # @yield [_self] - # @yieldparam _self [Redis::PipelinedConnection] the object that the method was called on - # - # source://redis//lib/redis/pipeline.rb#17 - def pipelined; end - - private - - # source://redis//lib/redis/pipeline.rb#49 - def send_blocking_command(command, timeout, &block); end - - # source://redis//lib/redis/pipeline.rb#40 - def send_command(command, &block); end - - # @yield [_self] - # @yieldparam _self [Redis::PipelinedConnection] the object that the method was called on - # - # source://redis//lib/redis/pipeline.rb#36 - def synchronize; end -end - -# Raised by the connection when a protocol error occurs. -# -# source://redis//lib/redis/errors.rb#9 -class Redis::ProtocolError < ::Redis::BaseError - # @return [ProtocolError] a new instance of ProtocolError - # - # source://redis//lib/redis/errors.rb#10 - def initialize(reply_type); end -end - -# Generally raised during Redis failover scenarios -# -# source://redis//lib/redis/errors.rb#53 -class Redis::ReadOnlyError < ::Redis::BaseConnectionError; end - -# source://redis//lib/redis.rb#37 -Redis::SERVER_URL_OPTIONS = T.let(T.unsafe(nil), Array) - -# source://redis//lib/redis/subscribe.rb#4 -class Redis::SubscribedClient - # @return [SubscribedClient] a new instance of SubscribedClient - # - # source://redis//lib/redis/subscribe.rb#5 - def initialize(client); end - - # source://redis//lib/redis/subscribe.rb#10 - def call_v(command); end - - # source://redis//lib/redis/subscribe.rb#52 - def close; end - - # source://redis//lib/redis/subscribe.rb#24 - def psubscribe(*channels, &block); end - - # source://redis//lib/redis/subscribe.rb#28 - def psubscribe_with_timeout(timeout, *channels, &block); end - - # source://redis//lib/redis/subscribe.rb#44 - def punsubscribe(*channels); end - - # source://redis//lib/redis/subscribe.rb#32 - def ssubscribe(*channels, &block); end - - # source://redis//lib/redis/subscribe.rb#36 - def ssubscribe_with_timeout(timeout, *channels, &block); end - - # source://redis//lib/redis/subscribe.rb#16 - def subscribe(*channels, &block); end - - # source://redis//lib/redis/subscribe.rb#20 - def subscribe_with_timeout(timeout, *channels, &block); end - - # source://redis//lib/redis/subscribe.rb#48 - def sunsubscribe(*channels); end - - # source://redis//lib/redis/subscribe.rb#40 - def unsubscribe(*channels); end - - protected - - # source://redis//lib/redis/subscribe.rb#58 - def subscription(start, stop, channels, block, timeout = T.unsafe(nil)); end -end - -# source://redis//lib/redis/subscribe.rb#82 -class Redis::Subscription - # @return [Subscription] a new instance of Subscription - # @yield [_self] - # @yieldparam _self [Redis::Subscription] the object that the method was called on - # - # source://redis//lib/redis/subscribe.rb#85 - def initialize; end - - # Returns the value of attribute callbacks. - # - # source://redis//lib/redis/subscribe.rb#83 - def callbacks; end - - # source://redis//lib/redis/subscribe.rb#98 - def message(&block); end - - # source://redis//lib/redis/subscribe.rb#110 - def pmessage(&block); end - - # source://redis//lib/redis/subscribe.rb#102 - def psubscribe(&block); end - - # source://redis//lib/redis/subscribe.rb#106 - def punsubscribe(&block); end - - # source://redis//lib/redis/subscribe.rb#122 - def smessage(&block); end - - # source://redis//lib/redis/subscribe.rb#114 - def ssubscribe(&block); end - - # source://redis//lib/redis/subscribe.rb#90 - def subscribe(&block); end - - # source://redis//lib/redis/subscribe.rb#118 - def sunsubscribe(&block); end - - # source://redis//lib/redis/subscribe.rb#94 - def unsubscribe(&block); end -end - -# source://redis//lib/redis/errors.rb#60 -class Redis::SubscriptionError < ::Redis::BaseError; end - -# Raised when performing I/O times out. -# -# source://redis//lib/redis/errors.rb#45 -class Redis::TimeoutError < ::Redis::BaseConnectionError; end - -# source://redis//lib/redis/version.rb#4 -Redis::VERSION = T.let(T.unsafe(nil), String) - -# source://redis//lib/redis/errors.rb#26 -class Redis::WrongTypeError < ::Redis::CommandError; end diff --git a/sorbet/rbi/gems/reline@0.5.7.rbi b/sorbet/rbi/gems/reline@0.5.9.rbi similarity index 100% rename from sorbet/rbi/gems/reline@0.5.7.rbi rename to sorbet/rbi/gems/reline@0.5.9.rbi diff --git a/sorbet/rbi/gems/rexml@3.2.8.rbi b/sorbet/rbi/gems/rexml@3.3.6.rbi similarity index 93% rename from sorbet/rbi/gems/rexml@3.2.8.rbi rename to sorbet/rbi/gems/rexml@3.3.6.rbi index 33f7acd7..ba7066b0 100644 --- a/sorbet/rbi/gems/rexml@3.2.8.rbi +++ b/sorbet/rbi/gems/rexml@3.3.6.rbi @@ -227,7 +227,7 @@ end # A class that defines the set of Attributes of an Element and provides # operations for accessing elements in that set. # -# source://rexml//lib/rexml/element.rb#2141 +# source://rexml//lib/rexml/element.rb#2137 class REXML::Attributes < ::Hash # :call-seq: # new(element) @@ -248,7 +248,7 @@ class REXML::Attributes < ::Hash # # @return [Attributes] a new instance of Attributes # - # source://rexml//lib/rexml/element.rb#2160 + # source://rexml//lib/rexml/element.rb#2156 def initialize(element); end # :call-seq: @@ -271,7 +271,7 @@ class REXML::Attributes < ::Hash # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' # attrs.include?('baz') # => true # - # source://rexml//lib/rexml/element.rb#2537 + # source://rexml//lib/rexml/element.rb#2522 def <<(attribute); end # :call-seq: @@ -295,7 +295,7 @@ class REXML::Attributes < ::Hash # # Related: get_attribute (returns an \Attribute object). # - # source://rexml//lib/rexml/element.rb#2185 + # source://rexml//lib/rexml/element.rb#2181 def [](name); end # :call-seq: @@ -321,7 +321,7 @@ class REXML::Attributes < ::Hash # attrs['baz:att'] = nil # attrs.include?('baz:att') # => false # - # source://rexml//lib/rexml/element.rb#2369 + # source://rexml//lib/rexml/element.rb#2365 def []=(name, value); end # :call-seq: @@ -344,7 +344,7 @@ class REXML::Attributes < ::Hash # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' # attrs.include?('baz') # => true # - # source://rexml//lib/rexml/element.rb#2537 + # source://rexml//lib/rexml/element.rb#2522 def add(attribute); end # :call-seq: @@ -375,7 +375,7 @@ class REXML::Attributes < ::Hash # attrs.delete(attr) # => # => # attrs.delete(attr) # => # => # - # source://rexml//lib/rexml/element.rb#2490 + # source://rexml//lib/rexml/element.rb#2475 def delete(attribute); end # :call-seq: @@ -394,7 +394,7 @@ class REXML::Attributes < ::Hash # attrs = ele.attributes # attrs.delete_all('att') # => [att='<'] # - # source://rexml//lib/rexml/element.rb#2559 + # source://rexml//lib/rexml/element.rb#2544 def delete_all(name); end # :call-seq: @@ -419,7 +419,7 @@ class REXML::Attributes < ::Hash # ["bar:att", "2"] # ["att", "<"] # - # source://rexml//lib/rexml/element.rb#2287 + # source://rexml//lib/rexml/element.rb#2283 def each; end # :call-seq: @@ -444,7 +444,7 @@ class REXML::Attributes < ::Hash # [REXML::Attribute, bar:att='2'] # [REXML::Attribute, att='<'] # - # source://rexml//lib/rexml/element.rb#2254 + # source://rexml//lib/rexml/element.rb#2250 def each_attribute; end # :call-seq: @@ -466,7 +466,7 @@ class REXML::Attributes < ::Hash # attrs.get_attribute('att') # => att='<' # attrs.get_attribute('nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#2313 + # source://rexml//lib/rexml/element.rb#2309 def get_attribute(name); end # :call-seq: @@ -486,7 +486,7 @@ class REXML::Attributes < ::Hash # attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1' # attrs.get_attribute_ns('http://foo', 'nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#2585 + # source://rexml//lib/rexml/element.rb#2570 def get_attribute_ns(namespace, name); end # :call-seq: @@ -503,7 +503,7 @@ class REXML::Attributes < ::Hash # ele = d.root.elements['//ele'] # => # ele.attributes.length # => 3 # - # source://rexml//lib/rexml/element.rb#2225 + # source://rexml//lib/rexml/element.rb#2221 def length; end # :call-seq: @@ -515,7 +515,7 @@ class REXML::Attributes < ::Hash # d = REXML::Document.new(xml_string) # d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"} # - # source://rexml//lib/rexml/element.rb#2446 + # source://rexml//lib/rexml/element.rb#2431 def namespaces; end # :call-seq: @@ -529,7 +529,7 @@ class REXML::Attributes < ::Hash # d = REXML::Document.new(xml_string) # d.root.attributes.prefixes # => ["x", "y"] # - # source://rexml//lib/rexml/element.rb#2421 + # source://rexml//lib/rexml/element.rb#2406 def prefixes; end # :call-seq: @@ -546,7 +546,7 @@ class REXML::Attributes < ::Hash # ele = d.root.elements['//ele'] # => # ele.attributes.length # => 3 # - # source://rexml//lib/rexml/element.rb#2225 + # source://rexml//lib/rexml/element.rb#2221 def size; end # :call-seq: @@ -565,7 +565,7 @@ class REXML::Attributes < ::Hash # attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<'] # attrs.first.class # => REXML::Attribute # - # source://rexml//lib/rexml/element.rb#2207 + # source://rexml//lib/rexml/element.rb#2203 def to_a; end end @@ -1578,7 +1578,7 @@ end # #attributes:: Returns the REXML::Attributes object for the element. # #context:: Returns or sets the context hash for the element. # -# source://rexml//lib/rexml/element.rb#279 +# source://rexml//lib/rexml/element.rb#271 class REXML::Element < ::REXML::Parent include ::REXML::XMLTokens include ::REXML::Namespace @@ -1621,7 +1621,7 @@ class REXML::Element < ::REXML::Parent # # @return [Element] a new instance of Element # - # source://rexml//lib/rexml/element.rb#327 + # source://rexml//lib/rexml/element.rb#319 def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end # :call-seq: @@ -1663,7 +1663,7 @@ class REXML::Element < ::REXML::Parent # root[:attr] # => "value" # root[:nosuch] # => nil # - # source://rexml//lib/rexml/element.rb#1245 + # source://rexml//lib/rexml/element.rb#1246 def [](name_or_index); end # :call-seq: @@ -1692,7 +1692,7 @@ class REXML::Element < ::REXML::Parent # e.add_attribute(a) # => attr='VALUE' # e['attr'] # => "VALUE" # - # source://rexml//lib/rexml/element.rb#1349 + # source://rexml//lib/rexml/element.rb#1345 def add_attribute(key, value = T.unsafe(nil)); end # :call-seq: @@ -1718,7 +1718,7 @@ class REXML::Element < ::REXML::Parent # a = [['foo' => 'bar'], ['baz' => 'bat']] # e.add_attributes(a) # - # source://rexml//lib/rexml/element.rb#1380 + # source://rexml//lib/rexml/element.rb#1376 def add_attributes(hash); end # :call-seq: @@ -1755,7 +1755,7 @@ class REXML::Element < ::REXML::Parent # e0.add_element(e1, {'bat' => '0', 'bam' => '1'}) # e0[1] # => # - # source://rexml//lib/rexml/element.rb#731 + # source://rexml//lib/rexml/element.rb#732 def add_element(element, attrs = T.unsafe(nil)); end # :call-seq: @@ -1776,7 +1776,7 @@ class REXML::Element < ::REXML::Parent # e.add_namespace('baz', 'bat') # e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"} # - # source://rexml//lib/rexml/element.rb#654 + # source://rexml//lib/rexml/element.rb#655 def add_namespace(prefix, uri = T.unsafe(nil)); end # :call-seq: @@ -1818,7 +1818,7 @@ class REXML::Element < ::REXML::Parent # a.add_text(REXML::Text.new('baz')) # a.to_a # => ["foo", , "bar", "baz", "baz"] # - # source://rexml//lib/rexml/element.rb#1146 + # source://rexml//lib/rexml/element.rb#1147 def add_text(text); end # :call-seq: @@ -1850,13 +1850,13 @@ class REXML::Element < ::REXML::Parent # document.root.attribute("x") # => x='x' # document.root.attribute("x", "a") # => a:x='a:x' # - # source://rexml//lib/rexml/element.rb#1286 + # source://rexml//lib/rexml/element.rb#1287 def attribute(name, namespace = T.unsafe(nil)); end # Mechanisms for accessing attributes and child elements of this # element. # - # source://rexml//lib/rexml/element.rb#286 + # source://rexml//lib/rexml/element.rb#278 def attributes; end # :call-seq: @@ -1875,7 +1875,7 @@ class REXML::Element < ::REXML::Parent # cds.frozen? # => true # cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData] # - # source://rexml//lib/rexml/element.rb#1424 + # source://rexml//lib/rexml/element.rb#1420 def cdatas; end # :call-seq: @@ -1888,7 +1888,7 @@ class REXML::Element < ::REXML::Parent # e.add_attributes({'bar' => 0, 'baz' => 1}) # e.clone # => # - # source://rexml//lib/rexml/element.rb#391 + # source://rexml//lib/rexml/element.rb#383 def clone; end # :call-seq: @@ -1908,19 +1908,19 @@ class REXML::Element < ::REXML::Parent # cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment] # cs.map {|c| c.to_s } # => ["foo", "bar"] # - # source://rexml//lib/rexml/element.rb#1445 + # source://rexml//lib/rexml/element.rb#1441 def comments; end # The context holds information about the processing environment, such as # whitespace handling. # - # source://rexml//lib/rexml/element.rb#289 + # source://rexml//lib/rexml/element.rb#281 def context; end # The context holds information about the processing environment, such as # whitespace handling. # - # source://rexml//lib/rexml/element.rb#289 + # source://rexml//lib/rexml/element.rb#281 def context=(_arg0); end # :call-seq: @@ -1934,7 +1934,7 @@ class REXML::Element < ::REXML::Parent # e.delete_attribute('bar') # => # e.delete_attribute('bar') # => nil # - # source://rexml//lib/rexml/element.rb#1399 + # source://rexml//lib/rexml/element.rb#1395 def delete_attribute(key); end # :call-seq: @@ -1974,7 +1974,7 @@ class REXML::Element < ::REXML::Parent # a.delete_element('//c') # => # a.delete_element('//c') # => nil # - # source://rexml//lib/rexml/element.rb#777 + # source://rexml//lib/rexml/element.rb#778 def delete_element(element); end # :call-seq: @@ -1999,7 +1999,7 @@ class REXML::Element < ::REXML::Parent # d.root.delete_namespace('nosuch') # d.to_s # => "" # - # source://rexml//lib/rexml/element.rb#686 + # source://rexml//lib/rexml/element.rb#687 def delete_namespace(namespace = T.unsafe(nil)); end # :call-seq: @@ -2023,7 +2023,7 @@ class REXML::Element < ::REXML::Parent # # Related: #root, #root_node. # - # source://rexml//lib/rexml/element.rb#478 + # source://rexml//lib/rexml/element.rb#475 def document; end # :call-seq: @@ -2042,7 +2042,7 @@ class REXML::Element < ::REXML::Parent # ... # # - # source://rexml//lib/rexml/element.rb#929 + # source://rexml//lib/rexml/element.rb#930 def each_element(xpath = T.unsafe(nil), &block); end # :call-seq: @@ -2094,7 +2094,7 @@ class REXML::Element < ::REXML::Parent # # # - # source://rexml//lib/rexml/element.rb#846 + # source://rexml//lib/rexml/element.rb#847 def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end # :call-seq: @@ -2144,13 +2144,13 @@ class REXML::Element < ::REXML::Parent # # ... # - # source://rexml//lib/rexml/element.rb#903 + # source://rexml//lib/rexml/element.rb#904 def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end # Mechanisms for accessing attributes and child elements of this # element. # - # source://rexml//lib/rexml/element.rb#286 + # source://rexml//lib/rexml/element.rb#278 def elements; end # :call-seq: @@ -2168,7 +2168,7 @@ class REXML::Element < ::REXML::Parent # d = REXML::Document.new(xml_string) # d.root.get_elements('//a') # => [ ... , ] # - # source://rexml//lib/rexml/element.rb#948 + # source://rexml//lib/rexml/element.rb#949 def get_elements(xpath); end # :call-seq: @@ -2188,7 +2188,7 @@ class REXML::Element < ::REXML::Parent # # d.root.get_text(1) # => "this is bold!" # - # source://rexml//lib/rexml/element.rb#1052 + # source://rexml//lib/rexml/element.rb#1053 def get_text(path = T.unsafe(nil)); end # :call-seq: @@ -2203,7 +2203,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1319 + # source://rexml//lib/rexml/element.rb#1315 def has_attributes?; end # :call-seq: @@ -2220,7 +2220,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#793 + # source://rexml//lib/rexml/element.rb#794 def has_elements?; end # :call-seq: @@ -2237,7 +2237,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1001 + # source://rexml//lib/rexml/element.rb#1002 def has_text?; end # :call-seq: @@ -2247,7 +2247,7 @@ class REXML::Element < ::REXML::Parent # # See {Element Context}[../doc/rexml/context_rdoc.html]. # - # source://rexml//lib/rexml/element.rb#516 + # source://rexml//lib/rexml/element.rb#513 def ignore_whitespace_nodes; end # :call-seq: @@ -2271,7 +2271,7 @@ class REXML::Element < ::REXML::Parent # e.add_element(REXML::Element.new('baz')) # e.inspect # => " ... " # - # source://rexml//lib/rexml/element.rb#366 + # source://rexml//lib/rexml/element.rb#358 def inspect; end # :call-seq: @@ -2291,7 +2291,7 @@ class REXML::Element < ::REXML::Parent # is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction] # is.map {|i| i.to_s } # => ["", ""] # - # source://rexml//lib/rexml/element.rb#1466 + # source://rexml//lib/rexml/element.rb#1462 def instructions; end # :call-seq: @@ -2314,7 +2314,7 @@ class REXML::Element < ::REXML::Parent # b.namespace('y') # => "2" # b.namespace('nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#621 + # source://rexml//lib/rexml/element.rb#618 def namespace(prefix = T.unsafe(nil)); end # :call-seq: @@ -2336,7 +2336,7 @@ class REXML::Element < ::REXML::Parent # d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"} # d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"} # - # source://rexml//lib/rexml/element.rb#594 + # source://rexml//lib/rexml/element.rb#591 def namespaces; end # :call-seq: @@ -2349,7 +2349,7 @@ class REXML::Element < ::REXML::Parent # d.root.elements['b'].next_element #-> # d.root.elements['c'].next_element #-> nil # - # source://rexml//lib/rexml/element.rb#962 + # source://rexml//lib/rexml/element.rb#963 def next_element; end # :call-seq: @@ -2361,7 +2361,7 @@ class REXML::Element < ::REXML::Parent # a = d.root # => # a.node_type # => :element # - # source://rexml//lib/rexml/element.rb#1167 + # source://rexml//lib/rexml/element.rb#1168 def node_type; end # :call-seq: @@ -2383,7 +2383,7 @@ class REXML::Element < ::REXML::Parent # d.elements['//b'].prefixes # => ["x", "y"] # d.elements['//c'].prefixes # => ["x", "y", "z"] # - # source://rexml//lib/rexml/element.rb#568 + # source://rexml//lib/rexml/element.rb#565 def prefixes; end # :call-seq: @@ -2396,7 +2396,7 @@ class REXML::Element < ::REXML::Parent # d.root.elements['c'].previous_element #-> # d.root.elements['b'].previous_element #-> nil # - # source://rexml//lib/rexml/element.rb#978 + # source://rexml//lib/rexml/element.rb#979 def previous_element; end # :call-seq: @@ -2409,7 +2409,7 @@ class REXML::Element < ::REXML::Parent # The evaluation is tested against +expanded_name+, and so is namespace # sensitive. # - # source://rexml//lib/rexml/element.rb#536 + # source://rexml//lib/rexml/element.rb#533 def raw; end # :call-seq: @@ -2429,7 +2429,7 @@ class REXML::Element < ::REXML::Parent # # Related: #root_node, #document. # - # source://rexml//lib/rexml/element.rb#451 + # source://rexml//lib/rexml/element.rb#443 def root; end # :call-seq: @@ -2467,7 +2467,7 @@ class REXML::Element < ::REXML::Parent # # Related: #root, #document. # - # source://rexml//lib/rexml/element.rb#430 + # source://rexml//lib/rexml/element.rb#422 def root_node; end # :call-seq: @@ -2494,7 +2494,7 @@ class REXML::Element < ::REXML::Parent # Note also that the text note is retrieved by method get_text, # and so is always normalized text. # - # source://rexml//lib/rexml/element.rb#1029 + # source://rexml//lib/rexml/element.rb#1030 def text(path = T.unsafe(nil)); end # :call-seq: @@ -2522,7 +2522,7 @@ class REXML::Element < ::REXML::Parent # # d.root.text = nil #-> '' # - # source://rexml//lib/rexml/element.rb#1088 + # source://rexml//lib/rexml/element.rb#1089 def text=(text); end # :call-seq: @@ -2537,7 +2537,7 @@ class REXML::Element < ::REXML::Parent # ts.map {|t| t.class } # => [REXML::Text, REXML::Text] # ts.map {|t| t.to_s } # => ["text", "more"] # - # source://rexml//lib/rexml/element.rb#1482 + # source://rexml//lib/rexml/element.rb#1478 def texts; end # :call-seq: @@ -2551,7 +2551,7 @@ class REXML::Element < ::REXML::Parent # The evaluation is tested against the element's +expanded_name+, # and so is namespace-sensitive. # - # source://rexml//lib/rexml/element.rb#493 + # source://rexml//lib/rexml/element.rb#490 def whitespace; end # == DEPRECATED @@ -2577,7 +2577,7 @@ class REXML::Element < ::REXML::Parent # doc.write( out ) #-> doc is written to the string 'out' # doc.write( $stdout ) #-> doc written to the console # - # source://rexml//lib/rexml/element.rb#1508 + # source://rexml//lib/rexml/element.rb#1504 def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end # :call-seq: @@ -2600,17 +2600,17 @@ class REXML::Element < ::REXML::Parent # e = REXML::Element.new('foo') # e.xpath # => "foo" # - # source://rexml//lib/rexml/element.rb#1191 + # source://rexml//lib/rexml/element.rb#1192 def xpath; end private - # source://rexml//lib/rexml/element.rb#1525 + # source://rexml//lib/rexml/element.rb#1521 def __to_xpath_helper(node); end # A private helper method # - # source://rexml//lib/rexml/element.rb#1540 + # source://rexml//lib/rexml/element.rb#1536 def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end end @@ -2664,7 +2664,7 @@ end # elements = d.root.elements # elements # => # ... > # -# source://rexml//lib/rexml/element.rb#1595 +# source://rexml//lib/rexml/element.rb#1591 class REXML::Elements include ::Enumerable @@ -2681,7 +2681,7 @@ class REXML::Elements # # @return [Elements] a new instance of Elements # - # source://rexml//lib/rexml/element.rb#1608 + # source://rexml//lib/rexml/element.rb#1604 def initialize(parent); end # :call-seq: @@ -2746,7 +2746,7 @@ class REXML::Elements # element.parent # => ... # element.context # => {:raw=>:all} # - # source://rexml//lib/rexml/element.rb#1925 + # source://rexml//lib/rexml/element.rb#1921 def <<(element = T.unsafe(nil)); end # :call-seq: @@ -2802,7 +2802,7 @@ class REXML::Elements # eles[4, 'book'] # => ... # eles[5, 'book'] # => nil # - # source://rexml//lib/rexml/element.rb#1680 + # source://rexml//lib/rexml/element.rb#1676 def [](index, name = T.unsafe(nil)); end # :call-seq: @@ -2841,7 +2841,7 @@ class REXML::Elements # eles[50] = REXML::Text.new('bar') # => "bar" # eles.size # => 5 # - # source://rexml//lib/rexml/element.rb#1735 + # source://rexml//lib/rexml/element.rb#1731 def []=(index, element); end # :call-seq: @@ -2906,7 +2906,7 @@ class REXML::Elements # element.parent # => ... # element.context # => {:raw=>:all} # - # source://rexml//lib/rexml/element.rb#1925 + # source://rexml//lib/rexml/element.rb#1921 def add(element = T.unsafe(nil)); end # :call-seq: @@ -2926,7 +2926,7 @@ class REXML::Elements # xpath = '//book [@category="web"]' # elements.collect(xpath) {|element| element.size } # => [17, 9] # - # source://rexml//lib/rexml/element.rb#1988 + # source://rexml//lib/rexml/element.rb#1984 def collect(xpath = T.unsafe(nil)); end # :call-seq: @@ -2970,7 +2970,7 @@ class REXML::Elements # elements.delete('//book [@category="children"]') # => ... # elements.delete('//nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#1825 + # source://rexml//lib/rexml/element.rb#1821 def delete(element); end # :call-seq: @@ -2990,7 +2990,7 @@ class REXML::Elements # elements.size # => 0 # elements.delete_all('//book') # => [] # - # source://rexml//lib/rexml/element.rb#1851 + # source://rexml//lib/rexml/element.rb#1847 def delete_all(xpath); end # :call-seq: @@ -3021,7 +3021,7 @@ class REXML::Elements # ... # ... # - # source://rexml//lib/rexml/element.rb#1967 + # source://rexml//lib/rexml/element.rb#1963 def each(xpath = T.unsafe(nil)); end # :call-seq: @@ -3036,7 +3036,7 @@ class REXML::Elements # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1755 + # source://rexml//lib/rexml/element.rb#1751 def empty?; end # :call-seq: @@ -3053,7 +3053,7 @@ class REXML::Elements # elements.index(ele_4) # => 3 # elements.index(ele_3) # => -1 # - # source://rexml//lib/rexml/element.rb#1773 + # source://rexml//lib/rexml/element.rb#1769 def index(element); end # :call-seq: @@ -3133,7 +3133,7 @@ class REXML::Elements # total += element.size # end # => 26 # - # source://rexml//lib/rexml/element.rb#2073 + # source://rexml//lib/rexml/element.rb#2069 def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end # :call-seq: @@ -3147,7 +3147,7 @@ class REXML::Elements # elements = REXML::Elements.new(d.root) # elements.parent == d.root # => true # - # source://rexml//lib/rexml/element.rb#1623 + # source://rexml//lib/rexml/element.rb#1619 def parent; end # :call-seq: @@ -3159,7 +3159,7 @@ class REXML::Elements # d.root.elements.size # => 3 # Three elements. # d.root.size # => 6 # Three elements plus three text nodes.. # - # source://rexml//lib/rexml/element.rb#2097 + # source://rexml//lib/rexml/element.rb#2093 def size; end # :call-seq: @@ -3180,14 +3180,14 @@ class REXML::Elements # # elements.to_a('//c') # => [] # - # source://rexml//lib/rexml/element.rb#2121 + # source://rexml//lib/rexml/element.rb#2117 def to_a(xpath = T.unsafe(nil)); end private # Private helper class. Removes quotes from quoted strings # - # source://rexml//lib/rexml/element.rb#2129 + # source://rexml//lib/rexml/element.rb#2125 def literalize(name); end end @@ -3229,65 +3229,54 @@ class REXML::Entity < ::REXML::Child # # @return [Entity] a new instance of Entity # - # source://rexml//lib/rexml/entity.rb#33 + # source://rexml//lib/rexml/entity.rb#34 def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end # Returns the value of attribute external. # - # source://rexml//lib/rexml/entity.rb#22 + # source://rexml//lib/rexml/entity.rb#23 def external; end # Returns the value of attribute name. # - # source://rexml//lib/rexml/entity.rb#22 + # source://rexml//lib/rexml/entity.rb#23 def name; end # Returns the value of attribute ndata. # - # source://rexml//lib/rexml/entity.rb#22 + # source://rexml//lib/rexml/entity.rb#23 def ndata; end # Returns the value of this entity unprocessed -- raw. This is the # normalized value; that is, with all %ent; and &ent; entities intact # - # source://rexml//lib/rexml/entity.rb#85 + # source://rexml//lib/rexml/entity.rb#83 def normalized; end - # source://rexml//lib/rexml/entity.rb#138 - def parent=(other); end - # Returns the value of attribute pubid. # - # source://rexml//lib/rexml/entity.rb#22 + # source://rexml//lib/rexml/entity.rb#23 def pubid; end # Returns the value of attribute ref. # - # source://rexml//lib/rexml/entity.rb#22 + # source://rexml//lib/rexml/entity.rb#23 def ref; end # Returns this entity as a string. See write(). # - # source://rexml//lib/rexml/entity.rb#119 + # source://rexml//lib/rexml/entity.rb#117 def to_s; end # Evaluates to the unnormalized value of this entity; that is, replacing - # all entities -- both %ent; and &ent; entities. This differs from - # +value()+ in that +value+ only replaces %ent; entities. + # &ent; entities. # # source://rexml//lib/rexml/entity.rb#73 def unnormalized; end - # Returns the value of this entity. At the moment, only internal entities - # are processed. If the value contains internal references (IE, - # %blah;), those are replaced with their values. IE, if the doctype - # contains: - # - # - # then: - # doctype.entity('yada').value #-> "nanoo bar nanoo" + # Returns the value of attribute value. # - # source://rexml//lib/rexml/entity.rb#134 + # source://rexml//lib/rexml/entity.rb#23 def value; end # Write out a fully formed, correct entity definition (assuming the Entity @@ -3299,21 +3288,16 @@ class REXML::Entity < ::REXML::Child # indent:: # *DEPRECATED* and ignored # - # source://rexml//lib/rexml/entity.rb#97 + # source://rexml//lib/rexml/entity.rb#95 def write(out, indent = T.unsafe(nil)); end - private - - # source://rexml//lib/rexml/entity.rb#144 - def resolve_value; end - class << self # Evaluates whether the given string matches an entity definition, # returning true if so, and false otherwise. # # @return [Boolean] # - # source://rexml//lib/rexml/entity.rb#66 + # source://rexml//lib/rexml/entity.rb#67 def matches?(string); end end end @@ -3454,47 +3438,43 @@ end # A Source that wraps an IO. See the Source class for method # documentation # -# source://rexml//lib/rexml/source.rb#140 +# source://rexml//lib/rexml/source.rb#182 class REXML::IOSource < ::REXML::Source # block_size has been deprecated # # @return [IOSource] a new instance of IOSource # - # source://rexml//lib/rexml/source.rb#144 + # source://rexml//lib/rexml/source.rb#186 def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#217 + # source://rexml//lib/rexml/source.rb#274 def current_line; end # @return [Boolean] # - # source://rexml//lib/rexml/source.rb#212 + # source://rexml//lib/rexml/source.rb#269 def empty?; end - # source://rexml//lib/rexml/source.rb#189 + # source://rexml//lib/rexml/source.rb#246 def ensure_buffer; 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 + # source://rexml//lib/rexml/source.rb#250 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#165 - def read(term = T.unsafe(nil)); end + # source://rexml//lib/rexml/source.rb#207 + def read(term = T.unsafe(nil), min_bytes = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#175 + # source://rexml//lib/rexml/source.rb#228 def read_until(term); end private - # source://rexml//lib/rexml/source.rb#259 + # source://rexml//lib/rexml/source.rb#316 def encoding_updated; end - # source://rexml//lib/rexml/source.rb#239 + # source://rexml//lib/rexml/source.rb#296 def readline(term = T.unsafe(nil)); end end @@ -3887,38 +3867,41 @@ end # # Nat Price gave me some good ideas for the API. # -# source://rexml//lib/rexml/parsers/baseparser.rb#29 +# source://rexml//lib/rexml/parsers/baseparser.rb#57 class REXML::Parsers::BaseParser - include ::REXML::Parsers::BaseParser::Private - # @return [BaseParser] a new instance of BaseParser # - # source://rexml//lib/rexml/parsers/baseparser.rb#128 + # source://rexml//lib/rexml/parsers/baseparser.rb#162 def initialize(source); end - # source://rexml//lib/rexml/parsers/baseparser.rb#133 + # source://rexml//lib/rexml/parsers/baseparser.rb#169 def add_listener(listener); end # Returns true if there are no more events # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#159 + # source://rexml//lib/rexml/parsers/baseparser.rb#198 def empty?; end - # source://rexml//lib/rexml/parsers/baseparser.rb#446 + # source://rexml//lib/rexml/parsers/baseparser.rb#530 def entity(reference, entities); end + # Returns the value of attribute entity_expansion_count. + # + # source://rexml//lib/rexml/parsers/baseparser.rb#174 + def entity_expansion_count; end + # Returns true if there are more events. Synonymous with !empty? # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#164 + # source://rexml//lib/rexml/parsers/baseparser.rb#203 def has_next?; end # Escapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#457 + # source://rexml//lib/rexml/parsers/baseparser.rb#541 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 @@ -3928,102 +3911,123 @@ 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#180 + # source://rexml//lib/rexml/parsers/baseparser.rb#219 def peek(depth = T.unsafe(nil)); end - # source://rexml//lib/rexml/parsers/baseparser.rb#149 + # source://rexml//lib/rexml/parsers/baseparser.rb#188 def position; end # Returns the next event. This is a +PullEvent+ object. # - # source://rexml//lib/rexml/parsers/baseparser.rb#195 + # source://rexml//lib/rexml/parsers/baseparser.rb#234 def pull; end # Returns the value of attribute source. # - # source://rexml//lib/rexml/parsers/baseparser.rb#137 + # source://rexml//lib/rexml/parsers/baseparser.rb#173 def source; end - # source://rexml//lib/rexml/parsers/baseparser.rb#139 + # source://rexml//lib/rexml/parsers/baseparser.rb#176 def stream=(source); end # Unescapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#473 + # source://rexml//lib/rexml/parsers/baseparser.rb#557 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#170 + # source://rexml//lib/rexml/parsers/baseparser.rb#209 def unshift(token); end private + # source://rexml//lib/rexml/parsers/baseparser.rb#602 + def add_namespace(prefix, uri); end + # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#502 + # source://rexml//lib/rexml/parsers/baseparser.rb#635 def need_source_encoding_update?(xml_declaration_encoding); end - # source://rexml//lib/rexml/parsers/baseparser.rb#613 - def parse_attributes(prefixes, curr_ns); end + # source://rexml//lib/rexml/parsers/baseparser.rb#755 + def parse_attributes(prefixes); end - # source://rexml//lib/rexml/parsers/baseparser.rb#521 + # source://rexml//lib/rexml/parsers/baseparser.rb#654 def parse_id(base_error_message, accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#549 + # source://rexml//lib/rexml/parsers/baseparser.rb#682 def parse_id_invalid_details(accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#508 + # source://rexml//lib/rexml/parsers/baseparser.rb#641 def parse_name(base_error_message); end - # source://rexml//lib/rexml/parsers/baseparser.rb#587 - def process_instruction(start_position); end + # source://rexml//lib/rexml/parsers/baseparser.rb#617 + def pop_namespaces_restore; end - # source://rexml//lib/rexml/parsers/baseparser.rb#203 + # source://rexml//lib/rexml/parsers/baseparser.rb#720 + def process_instruction; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#244 def pull_event; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#611 + def push_namespaces_restore; end + + # source://rexml//lib/rexml/parsers/baseparser.rb#628 + def record_entity_expansion(delta = T.unsafe(nil)); end end -# source://rexml//lib/rexml/parsers/baseparser.rb#102 +# source://rexml//lib/rexml/parsers/baseparser.rb#130 REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#103 +# source://rexml//lib/rexml/parsers/baseparser.rb#131 REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#104 +# source://rexml//lib/rexml/parsers/baseparser.rb#132 REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#115 +# source://rexml//lib/rexml/parsers/baseparser.rb#143 module REXML::Parsers::BaseParser::Private; end -# source://rexml//lib/rexml/parsers/baseparser.rb#119 +# source://rexml//lib/rexml/parsers/baseparser.rb#147 REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#118 +# source://rexml//lib/rexml/parsers/baseparser.rb#152 +REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#153 +REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#146 REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#123 +# source://rexml//lib/rexml/parsers/baseparser.rb#154 +REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash) + +# source://rexml//lib/rexml/parsers/baseparser.rb#151 REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#121 +# source://rexml//lib/rexml/parsers/baseparser.rb#149 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 +# source://rexml//lib/rexml/parsers/baseparser.rb#148 REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#122 +# source://rexml//lib/rexml/parsers/baseparser.rb#150 REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String) -# source://rexml//lib/rexml/parsers/baseparser.rb#117 +# source://rexml//lib/rexml/parsers/baseparser.rb#144 +REXML::Parsers::BaseParser::Private::PEREFERENCE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#145 REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#38 +# source://rexml//lib/rexml/parsers/baseparser.rb#66 REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp) -# source://rexml//lib/rexml/parsers/baseparser.rb#37 +# source://rexml//lib/rexml/parsers/baseparser.rb#65 REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String) # source://rexml//lib/rexml/parsers/streamparser.rb#6 @@ -4037,6 +4041,9 @@ class REXML::Parsers::StreamParser def add_listener(listener); end # source://rexml//lib/rexml/parsers/streamparser.rb#17 + def entity_expansion_count; end + + # source://rexml//lib/rexml/parsers/streamparser.rb#21 def parse; end end @@ -4218,7 +4225,7 @@ end # A Source can be searched for patterns, and wraps buffers and other # objects and provides consumption of text # -# source://rexml//lib/rexml/source.rb#31 +# source://rexml//lib/rexml/source.rb#51 class REXML::Source include ::REXML::Encoding @@ -4229,70 +4236,82 @@ 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#41 + # source://rexml//lib/rexml/source.rb#71 def initialize(arg, encoding = T.unsafe(nil)); end # The current buffer (what we're going to read next) # - # source://rexml//lib/rexml/source.rb#53 + # source://rexml//lib/rexml/source.rb#83 def buffer; end - # source://rexml//lib/rexml/source.rb#57 + # source://rexml//lib/rexml/source.rb#93 def buffer_encoding=(encoding); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#100 + # source://rexml//lib/rexml/source.rb#142 def current_line; end + # source://rexml//lib/rexml/source.rb#87 + def drop_parsed_content; end + # @return [Boolean] true if the Source is exhausted # - # source://rexml//lib/rexml/source.rb#95 + # source://rexml//lib/rexml/source.rb#137 def empty?; end # Returns the value of attribute encoding. # - # source://rexml//lib/rexml/source.rb#35 + # source://rexml//lib/rexml/source.rb#55 def encoding; end # Inherited from Encoding # Overridden to support optimized en/decoding # - # source://rexml//lib/rexml/source.rb#63 + # source://rexml//lib/rexml/source.rb#99 def encoding=(enc); end - # source://rexml//lib/rexml/source.rb#75 + # source://rexml//lib/rexml/source.rb#117 def ensure_buffer; end # The line number of the last consumed text # - # source://rexml//lib/rexml/source.rb#34 + # source://rexml//lib/rexml/source.rb#54 def line; end - # source://rexml//lib/rexml/source.rb#78 + # source://rexml//lib/rexml/source.rb#120 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#86 + # source://rexml//lib/rexml/source.rb#128 def position; end - # source://rexml//lib/rexml/source.rb#90 + # source://rexml//lib/rexml/source.rb#132 def position=(pos); end - # source://rexml//lib/rexml/source.rb#68 + # source://rexml//lib/rexml/source.rb#104 def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#71 + # source://rexml//lib/rexml/source.rb#107 def read_until(term); end private - # source://rexml//lib/rexml/source.rb#109 + # source://rexml//lib/rexml/source.rb#151 def detect_encoding; end - # source://rexml//lib/rexml/source.rb#127 + # source://rexml//lib/rexml/source.rb#169 def encoding_updated; end end +# source://rexml//lib/rexml/source.rb#57 +module REXML::Source::Private; end + +# source://rexml//lib/rexml/source.rb#59 +REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash) + +# source://rexml//lib/rexml/source.rb#58 +REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer) + # Represents text nodes in an XML document # # source://rexml//lib/rexml/text.rb#11 @@ -4347,33 +4366,33 @@ class REXML::Text < ::REXML::Child # +returns+ the text itself to enable method chain like # 'text << "XXX" << "YYY"'. # - # source://rexml//lib/rexml/text.rb#194 + # source://rexml//lib/rexml/text.rb#214 def <<(to_append); end # +other+ a String or a Text # +returns+ the result of (to_s <=> arg.to_s) # - # source://rexml//lib/rexml/text.rb#203 + # source://rexml//lib/rexml/text.rb#223 def <=>(other); end - # source://rexml//lib/rexml/text.rb#184 + # source://rexml//lib/rexml/text.rb#204 def clone; end - # source://rexml//lib/rexml/text.rb#207 + # source://rexml//lib/rexml/text.rb#227 def doctype; end # @return [Boolean] # - # source://rexml//lib/rexml/text.rb#179 + # source://rexml//lib/rexml/text.rb#199 def empty?; end - # source://rexml//lib/rexml/text.rb#278 + # source://rexml//lib/rexml/text.rb#298 def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end - # source://rexml//lib/rexml/text.rb#233 + # source://rexml//lib/rexml/text.rb#253 def inspect; end - # source://rexml//lib/rexml/text.rb#175 + # source://rexml//lib/rexml/text.rb#195 def node_type; end # source://rexml//lib/rexml/text.rb#125 @@ -4403,7 +4422,7 @@ class REXML::Text < ::REXML::Child # u = Text.new( "sean russell", false, nil, true ) # u.to_s #-> "sean russell" # - # source://rexml//lib/rexml/text.rb#228 + # source://rexml//lib/rexml/text.rb#248 def to_s; end # Returns the string value of this text. This is the text without @@ -4420,7 +4439,7 @@ class REXML::Text < ::REXML::Child # u = Text.new( "sean russell", false, nil, true ) # u.value #-> "sean russell" # - # source://rexml//lib/rexml/text.rb#250 + # source://rexml//lib/rexml/text.rb#270 def value; end # Sets the contents of this text node. This expects the text to be @@ -4431,16 +4450,16 @@ class REXML::Text < ::REXML::Child # e[0].value = "bar" # bar # e[0].value = "" # <a> # - # source://rexml//lib/rexml/text.rb#261 + # source://rexml//lib/rexml/text.rb#281 def value=(val); end - # source://rexml//lib/rexml/text.rb#267 + # source://rexml//lib/rexml/text.rb#287 def wrap(string, width, addnewline = T.unsafe(nil)); end # == DEPRECATED # See REXML::Formatters # - # source://rexml//lib/rexml/text.rb#293 + # source://rexml//lib/rexml/text.rb#313 def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end # Writes out text, substituting special characters beforehand. @@ -4458,18 +4477,18 @@ class REXML::Text < ::REXML::Child # } # puts ascOut # - # source://rexml//lib/rexml/text.rb#325 + # source://rexml//lib/rexml/text.rb#345 def write_with_substitution(out, input); end # FIXME # This probably won't work properly # - # source://rexml//lib/rexml/text.rb#305 + # source://rexml//lib/rexml/text.rb#325 def xpath; end private - # source://rexml//lib/rexml/text.rb#338 + # source://rexml//lib/rexml/text.rb#358 def clear_cache; end class << self @@ -4478,22 +4497,22 @@ class REXML::Text < ::REXML::Child # source://rexml//lib/rexml/text.rb#131 def check(string, pattern, doctype); end - # source://rexml//lib/rexml/text.rb#407 + # source://rexml//lib/rexml/text.rb#427 def expand(ref, doctype, filter); end # Escapes all possible entities # - # source://rexml//lib/rexml/text.rb#370 + # source://rexml//lib/rexml/text.rb#390 def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end # Reads text, substituting entities # - # source://rexml//lib/rexml/text.rb#344 + # source://rexml//lib/rexml/text.rb#364 def read_with_substitution(input, illegal = T.unsafe(nil)); end # Unescapes all possible entities # - # source://rexml//lib/rexml/text.rb#394 + # source://rexml//lib/rexml/text.rb#414 def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end end end diff --git a/sorbet/rbi/gems/rgeo-geojson@2.1.1.rbi b/sorbet/rbi/gems/rgeo-geojson@2.2.0.rbi similarity index 60% rename from sorbet/rbi/gems/rgeo-geojson@2.1.1.rbi rename to sorbet/rbi/gems/rgeo-geojson@2.2.0.rbi index f06fb36f..6f46b6c0 100644 --- a/sorbet/rbi/gems/rgeo-geojson@2.1.1.rbi +++ b/sorbet/rbi/gems/rgeo-geojson@2.2.0.rbi @@ -8,6 +8,62 @@ # source://rgeo-geojson//lib/rgeo/geo_json/version.rb#3 module RGeo; end +# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#7 +module RGeo::CastOverlay + class << self + # @private + # + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#8 + def included(base); end + end +end + +# These convenience methods are added directly into the module rather than +# including the module above into the Feature::Instance module which is in +# every geometry implementation. This is due to a behavior in ruby versions +# <3.0.2 where dynamically included modules will not be included automatically +# in the ancestor tree. +# See https://bugs.ruby-lang.org/issues/9573 for more information. +# +# source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#26 +module RGeo::Feature + include ::RGeo::CastOverlay + + class << self + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#12 + def cast(obj, *params); end + end +end + +# source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#41 +module RGeo::Feature::Factory::Instance + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#45 + def parse_geojson(input); end +end + +# source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#27 +module RGeo::Feature::Instance + # Convert a geometry to a GeoJSON Hash + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#29 + def as_geojson; end + + # Convert a geometry to a GeoJSON Hash + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#29 + def as_json; end + + # Convert a geometry to a GeoJSON String + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#35 + def to_geojson; end + + # Convert a geometry to a GeoJSON String + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#35 + def to_json; end +end + # source://rgeo-geojson//lib/rgeo/geo_json/version.rb#4 module RGeo::GeoJSON class << self @@ -28,7 +84,7 @@ module RGeo::GeoJSON # RGeo::GeoJSON::Feature or RGeo::GeoJSON::FeatureCollection. # See RGeo::GeoJSON::EntityFactory for more information. # - # source://rgeo-geojson//lib/rgeo/geo_json/interface.rb#56 + # source://rgeo-geojson//lib/rgeo/geo_json/interface.rb#55 def coder(opts = T.unsafe(nil)); end # High-level convenience routine for decoding an object from GeoJSON. @@ -47,8 +103,8 @@ module RGeo::GeoJSON # RGeo::GeoJSON::Feature or RGeo::GeoJSON::FeatureCollection. # See RGeo::GeoJSON::EntityFactory for more information. # - # source://rgeo-geojson//lib/rgeo/geo_json/interface.rb#36 - def decode(input_, opts = T.unsafe(nil)); end + # source://rgeo-geojson//lib/rgeo/geo_json/interface.rb#35 + def decode(input, opts = T.unsafe(nil)); end # High-level convenience routine for encoding an object as GeoJSON. # Pass the object, which may one of the geometry objects specified @@ -61,7 +117,7 @@ module RGeo::GeoJSON # encode supports objects of type RGeo::GeoJSON::Feature and # RGeo::GeoJSON::FeatureCollection. # - # source://rgeo-geojson//lib/rgeo/geo_json/interface.rb#17 + # source://rgeo-geojson//lib/rgeo/geo_json/interface.rb#16 def encode(object, opts = T.unsafe(nil)); end end end @@ -71,7 +127,7 @@ end # be used) so that you can encode and decode without specifying those # settings every time. # -# source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#10 +# source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#9 class RGeo::GeoJSON::Coder # Create a new coder settings object. The geo factory is passed as # a required argument. @@ -90,14 +146,14 @@ class RGeo::GeoJSON::Coder # # @return [Coder] a new instance of Coder # - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#25 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#24 def initialize(opts = T.unsafe(nil)); end # Decode an object from GeoJSON. The input may be a JSON hash, a # String, or an IO object from which to read the JSON string. # If an error occurs, nil is returned. # - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#64 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#61 def decode(input); end # Encode the given object as GeoJSON. The object may be one of the @@ -112,89 +168,171 @@ class RGeo::GeoJSON::Coder # # Returns nil if nil is passed in as the object. # - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#45 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#43 def encode(object); end # Returns the RGeo::GeoJSON::EntityFactory used to generate GeoJSON # wrapper entities. # - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#98 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#95 def entity_factory; end # Returns the RGeo::Feature::Factory used to generate geometry objects. # - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#93 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#90 def geo_factory; end private - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#155 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#152 def decode_feature(input); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#164 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#161 def decode_geometry(input); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#185 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#182 def decode_geometry_collection(input); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#201 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#198 def decode_line_string_coords(line_coords); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#241 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#238 def decode_multi_line_string_coords(multi_line_coords); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#231 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#228 def decode_multi_point_coords(multi_point_coords); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#251 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#248 def decode_multi_polygon_coords(multi_polygon_coords); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#196 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#193 def decode_point_coords(point_coords); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#211 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#208 def decode_polygon_coords(poly_coords); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#102 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#99 def encode_feature(object); end - # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#113 + # source://rgeo-geojson//lib/rgeo/geo_json/coder.rb#110 def encode_geometry(object); end end +# This module is here to fill the gap between what is a GeometryCollection (GIS) +# and a FeatureCollection (GeoJSON). +# +# Note for contributors, you can rely on `@features` to be defined and +# you can consider working with an Enumerable wrapping `@features`. See +# GeoJSON::FeatureCollection. +# +# source://rgeo-geojson//lib/rgeo/geo_json/collection_methods.rb#10 +module RGeo::GeoJSON::CollectionMethods + # @return [Boolean] + # + # source://rgeo-geojson//lib/rgeo/geo_json/collection_methods.rb#27 + def contains?(geometry); end + + # @return [Boolean] + # + # source://rgeo-geojson//lib/rgeo/geo_json/collection_methods.rb#31 + def intersects?(geometry); end + + private + + # @raise [Error::UnsupportedOperation] + # + # source://rgeo-geojson//lib/rgeo/geo_json/collection_methods.rb#19 + def method_missing(symbol, *args); end + + class << self + private + + # There is tight coupling between {FeatureCollection} and this, hence the + # guard. + # + # @private + # @raise [Error::RGeoError] + # + # source://rgeo-geojson//lib/rgeo/geo_json/collection_methods.rb#13 + def included(base); end + end +end + +# This module serves to provide handy methods when using GeoJSON. The methods +# provided eases the passage between entities and GeoJSON String/Hash. +# +# source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#6 +module RGeo::GeoJSON::ConversionMethods + # Convert a geometry to a GeoJSON Hash + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#8 + def as_geojson; end + + # Convert a geometry to a GeoJSON Hash + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#8 + def as_json; end + + # Convert a geometry to a GeoJSON String + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#14 + def to_geojson; end + + # Convert a geometry to a GeoJSON String + # + # source://rgeo-geojson//lib/rgeo/geo_json/conversion_methods.rb#14 + def to_json; end +end + +# Simplify usage of inner geometries for Feature and FeatureCollection +# objets. Including class must contain a `#geometry` method. +# +# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#26 +module RGeo::GeoJSON::DelegateToGeometry + private + + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#27 + def method_missing(symbol, *args); end + + # @return [Boolean] + # + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#33 + def respond_to_missing?(symbol, *_arg1); end +end + # This is the default entity factory. It creates objects of type # RGeo::GeoJSON::Feature and RGeo::GeoJSON::FeatureCollection. # You may create your own entity factory by duck-typing this class. # -# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#163 +# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#186 class RGeo::GeoJSON::EntityFactory # Create and return a new feature, given geometry, ID, and # properties hash. Note that, per the GeoJSON spec, geometry and/or # properties may be nil. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#168 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#190 def feature(geometry, id = T.unsafe(nil), properties = T.unsafe(nil)); end # Create and return a new feature collection, given an enumerable # of feature objects. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#175 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#196 def feature_collection(features = T.unsafe(nil)); end # Returns the geometry associated with the given feature. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#202 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#219 def get_feature_geometry(object); end # Returns the ID of the given feature, or nil for no ID. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#208 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#224 def get_feature_id(object); end # Returns the properties of the given feature as a hash. Editing # this hash does not change the state of the feature. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#215 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#230 def get_feature_properties(object); end # Returns true if the given object is a feature created by this @@ -202,7 +340,7 @@ class RGeo::GeoJSON::EntityFactory # # @return [Boolean] # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#182 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#202 def is_feature?(object); end # Returns true if the given object is a feature collection created @@ -210,19 +348,19 @@ class RGeo::GeoJSON::EntityFactory # # @return [Boolean] # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#189 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#208 def is_feature_collection?(object); end # Run Enumerable#map on the features contained in the given feature # collection. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#196 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#214 def map_feature_collection(object, &block); end class << self # Return the singleton instance of EntityFactory. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#221 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#235 def instance; end end end @@ -237,14 +375,17 @@ end # the entity factory mediates all interaction between the GeoJSON # engine and features. # -# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#15 +# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#47 class RGeo::GeoJSON::Feature + include ::RGeo::GeoJSON::DelegateToGeometry + include ::RGeo::GeoJSON::ConversionMethods + # Create a feature wrapping the given geometry, with the given ID # and properties. # # @return [Feature] a new instance of Feature # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#19 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#53 def initialize(geometry, id = T.unsafe(nil), properties = T.unsafe(nil)); end # Two features are equal if their geometries, IDs, and properties @@ -252,13 +393,13 @@ class RGeo::GeoJSON::Feature # This method uses the == operator to test geometry equality, which # may behave differently than the eql? method. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#54 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#86 def ==(other); end # Gets the value of the given named property. # Returns nil if the given property is not found. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#77 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#105 def [](key); end # Two features are equal if their geometries, IDs, and properties @@ -268,42 +409,42 @@ class RGeo::GeoJSON::Feature # # @return [Boolean] # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#45 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#78 def eql?(other); end # Returns the ID for this feature, which may be nil. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#64 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#94 def feature_id; end # Returns the geometry contained in this feature, which may be nil. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#60 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#91 def geometry; end - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#36 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#70 def hash; end - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#28 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#62 def inspect; end # Gets an array of the known property keys in this feature. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#84 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#111 def keys; end # Returns a copy of the properties for this feature. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#70 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#99 def properties; end # Gets the value of the given named property. # Returns nil if the given property is not found. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#77 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#105 def property(key); end - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#32 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#66 def to_s; end end @@ -317,16 +458,18 @@ end # duck-type this class. The entity factory mediates all interaction # between the GeoJSON engine and feature collections. # -# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#99 +# source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#125 class RGeo::GeoJSON::FeatureCollection include ::Enumerable + include ::RGeo::GeoJSON::CollectionMethods + include ::RGeo::GeoJSON::ConversionMethods # Create a new FeatureCollection with the given features, which must # be provided as an Enumerable. # # @return [FeatureCollection] a new instance of FeatureCollection # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#105 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#132 def initialize(features = T.unsafe(nil)); end # Two feature collections are equal if they contain the same @@ -334,17 +477,17 @@ class RGeo::GeoJSON::FeatureCollection # This methods uses the == operator to test geometry equality, which # may behave differently than the eql? method. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#136 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#162 def ==(other); end # Access a feature by index. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#154 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#177 def [](index); end # Iterates or returns an iterator for the features. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#142 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#167 def each(&block); end # Two feature collections are equal if they contain the same @@ -354,21 +497,21 @@ class RGeo::GeoJSON::FeatureCollection # # @return [Boolean] # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#127 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#154 def eql?(other); end - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#118 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#146 def hash; end - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#110 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#138 def inspect; end # Returns the number of features contained in this collection. # - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#148 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#172 def size; end - # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#114 + # source://rgeo-geojson//lib/rgeo/geo_json/entities.rb#142 def to_s; end end diff --git a/sorbet/rbi/gems/rgeo@3.0.1.rbi b/sorbet/rbi/gems/rgeo@3.0.1.rbi index 7198cf7a..90332c5b 100644 --- a/sorbet/rbi/gems/rgeo@3.0.1.rbi +++ b/sorbet/rbi/gems/rgeo@3.0.1.rbi @@ -4708,7 +4708,7 @@ module RGeo::Feature # casting behavior by defining the override_cast method. See # RGeo::Feature::Factory#override_cast for more details. # - # source://rgeo//lib/rgeo/feature/types.rb#158 + # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/entities.rb#12 def cast(obj, *params); end end end @@ -5093,7 +5093,10 @@ end # factory-ness. # # source://rgeo//lib/rgeo/feature/factory.rb#37 -module RGeo::Feature::Factory::Instance; end +module RGeo::Feature::Factory::Instance + # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#45 + def parse_geojson(input); end +end # A FactoryGenerator is a callable object (usually a Proc) that # takes a configuration as a hash and returns a factory. These are @@ -6032,7 +6035,19 @@ end # feature-ness. # # source://rgeo//lib/rgeo/feature/types.rb#14 -module RGeo::Feature::Instance; end +module RGeo::Feature::Instance + # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#29 + def as_geojson; end + + # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#29 + def as_json; end + + # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#35 + def to_geojson; end + + # source://rgeo-geojson/2.2.0/lib/rgeo/geo_json/conversion_methods.rb#35 + def to_json; end +end # == SFS 1.1 Description # diff --git a/sorbet/rbi/gems/rouge@4.2.1.rbi b/sorbet/rbi/gems/rouge@4.3.0.rbi similarity index 99% rename from sorbet/rbi/gems/rouge@4.2.1.rbi rename to sorbet/rbi/gems/rouge@4.3.0.rbi index a0eba236..a015986f 100644 --- a/sorbet/rbi/gems/rouge@4.2.1.rbi +++ b/sorbet/rbi/gems/rouge@4.3.0.rbi @@ -2434,19 +2434,19 @@ end # source://rouge//lib/rouge/lexers/hcl.rb#6 class Rouge::Lexers::Hcl < ::Rouge::RegexLexer class << self - # source://rouge//lib/rouge/lexers/hcl.rb#55 + # source://rouge//lib/rouge/lexers/hcl.rb#56 def builtins; end - # source://rouge//lib/rouge/lexers/hcl.rb#51 + # source://rouge//lib/rouge/lexers/hcl.rb#52 def constants; end - # source://rouge//lib/rouge/lexers/hcl.rb#43 + # source://rouge//lib/rouge/lexers/hcl.rb#44 def declarations; end - # source://rouge//lib/rouge/lexers/hcl.rb#39 + # source://rouge//lib/rouge/lexers/hcl.rb#40 def keywords; end - # source://rouge//lib/rouge/lexers/hcl.rb#47 + # source://rouge//lib/rouge/lexers/hcl.rb#48 def reserved; end end end @@ -2564,6 +2564,23 @@ class Rouge::Lexers::Idris < ::Rouge::RegexLexer end end +# source://rouge//lib/rouge/lexers/iecst.rb#6 +class Rouge::Lexers::IecST < ::Rouge::RegexLexer + class << self + # source://rouge//lib/rouge/lexers/iecst.rb#14 + def keywords; end + + # source://rouge//lib/rouge/lexers/iecst.rb#39 + def literals; end + + # source://rouge//lib/rouge/lexers/iecst.rb#43 + def operators; end + + # source://rouge//lib/rouge/lexers/iecst.rb#29 + def types; end + end +end + # source://rouge//lib/rouge/lexers/igorpro.rb#6 class Rouge::Lexers::IgorPro < ::Rouge::RegexLexer class << self @@ -5068,32 +5085,33 @@ end # source://rouge//lib/rouge/themes/thankful_eyes.rb#5 module Rouge::Themes; end -# default base16 theme -# by Chris Kempson (http://chriskempson.com) +# author Chris Kempson +# base16 default dark +# https://github.com/chriskempson/base16-default-schemes # -# source://rouge//lib/rouge/themes/base16.rb#8 +# source://rouge//lib/rouge/themes/base16.rb#9 class Rouge::Themes::Base16 < ::Rouge::CSSTheme extend ::Rouge::HasModes class << self - # source://rouge//lib/rouge/themes/base16.rb#35 + # source://rouge//lib/rouge/themes/base16.rb#36 def dark!; end - # source://rouge//lib/rouge/themes/base16.rb#30 + # source://rouge//lib/rouge/themes/base16.rb#31 def light!; end - # source://rouge//lib/rouge/themes/base16.rb#40 + # source://rouge//lib/rouge/themes/base16.rb#41 def make_dark!; end - # source://rouge//lib/rouge/themes/base16.rb#44 + # source://rouge//lib/rouge/themes/base16.rb#45 def make_light!; end end end -# source://rouge//lib/rouge/themes/base16.rb#108 +# source://rouge//lib/rouge/themes/base16.rb#113 class Rouge::Themes::Base16::Monokai < ::Rouge::Themes::Base16; end -# source://rouge//lib/rouge/themes/base16.rb#85 +# source://rouge//lib/rouge/themes/base16.rb#90 class Rouge::Themes::Base16::Solarized < ::Rouge::Themes::Base16; end # A port of the bw style from Pygments. @@ -5471,6 +5489,9 @@ class Rouge::Token::Tokens::Generic::Deleted < ::Rouge::Token::Tokens::Generic; # source://rouge//lib/rouge/token.rb#48 class Rouge::Token::Tokens::Generic::Emph < ::Rouge::Token::Tokens::Generic; end +# source://rouge//lib/rouge/token.rb#48 +class Rouge::Token::Tokens::Generic::EmphStrong < ::Rouge::Token::Tokens::Generic; end + # source://rouge//lib/rouge/token.rb#48 class Rouge::Token::Tokens::Generic::Error < ::Rouge::Token::Tokens::Generic; end @@ -5659,7 +5680,7 @@ class Rouge::Token::Tokens::Name::Variable::Magic < ::Rouge::Token::Tokens::Name # convenience # -# source://rouge//lib/rouge/token.rb#187 +# source://rouge//lib/rouge/token.rb#188 Rouge::Token::Tokens::Num = Rouge::Token::Tokens::Literal::Number # source://rouge//lib/rouge/token.rb#48 @@ -5677,7 +5698,7 @@ class Rouge::Token::Tokens::Punctuation < ::Rouge::Token; end # source://rouge//lib/rouge/token.rb#48 class Rouge::Token::Tokens::Punctuation::Indicator < ::Rouge::Token::Tokens::Punctuation; end -# source://rouge//lib/rouge/token.rb#188 +# source://rouge//lib/rouge/token.rb#189 Rouge::Token::Tokens::Str = Rouge::Token::Tokens::Literal::String # source://rouge//lib/rouge/token.rb#48 diff --git a/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi b/sorbet/rbi/gems/rspec-expectations@3.13.2.rbi similarity index 100% rename from sorbet/rbi/gems/rspec-expectations@3.13.0.rbi rename to sorbet/rbi/gems/rspec-expectations@3.13.2.rbi diff --git a/sorbet/rbi/gems/rspec-rails@6.1.2.rbi b/sorbet/rbi/gems/rspec-rails@6.1.4.rbi similarity index 100% rename from sorbet/rbi/gems/rspec-rails@6.1.2.rbi rename to sorbet/rbi/gems/rspec-rails@6.1.4.rbi diff --git a/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi b/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi index fd33963b..87e090e7 100644 --- a/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +++ b/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi @@ -23,7 +23,7 @@ module RSpec::Sorbet::Doubles # @return [void] # - # source://sorbet-runtime/0.5.11386/lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11545/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/rubocop-ast@1.31.3.rbi b/sorbet/rbi/gems/rubocop-ast@1.32.1.rbi similarity index 88% rename from sorbet/rbi/gems/rubocop-ast@1.31.3.rbi rename to sorbet/rbi/gems/rubocop-ast@1.32.1.rbi index 3d978e25..04f2061b 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.32.1.rbi @@ -160,12 +160,16 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # # @return [Boolean] whether the array is enclosed in percent or square # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#60 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#64 def bracketed?; end - # @deprecated Use `values.each` (a.k.a. `children.each`) + # Calls the given block for each `value` node in the `array` literal. + # If no block is given, an `Enumerator` is returned. + # + # @return [self] if a block is given + # @return [Enumerator] if no block is given # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#25 def each_value(&block); end # Checks whether the `array` literal is delimited by percent brackets. @@ -174,14 +178,14 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # @overload percent_literal? # @return [Boolean] whether the array is enclosed in percent brackets # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#47 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#51 def percent_literal?(type = T.unsafe(nil)); end # Checks whether the `array` literal is delimited by square brackets. # # @return [Boolean] whether the array is enclosed in square brackets # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#32 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#36 def square_brackets?; end # Returns an array of all value nodes in the `array` literal. @@ -217,7 +221,7 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node end # Common functionality for primitive literal nodes: `sym`, `str`, -# `int`, `float`, ... +# `int`, `float`, `rational`... # # source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7 module RuboCop::AST::BasicLiteralNode @@ -439,18 +443,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default # # @return [Node] the generated node # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#98 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#99 def n(type, children, source_map); end # TODO: Figure out what to do about literal encoding handling... # More details here https://github.com/whitequark/parser/issues/283 # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#104 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#105 def string_value(token); end private - # source://rubocop-ast//lib/rubocop/ast/builder.rb#110 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#111 def node_klass(type); end end @@ -1428,6 +1432,14 @@ class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node # # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#12 def body; end + + # Checks whether this node body is a void context. + # Always `true` for `ensure`. + # + # @return [true] whether the `ensure` node body is a void context + # + # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#20 + def void_context?; end end # source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5 @@ -1455,11 +1467,6 @@ module RuboCop::AST::Ext::Range def line_span(exclude_end: T.unsafe(nil)); end end -# Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6- -# -# source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7 -module RuboCop::AST::Ext::RangeMinMax; end - # A node extension for `float` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available to # all `float` nodes within RuboCop. @@ -2658,19 +2665,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Node] a new instance of Node # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize # - # source://rubocop-ast//lib/rubocop/ast/node.rb#92 + # source://rubocop-ast//lib/rubocop/ast/node.rb#113 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def __ENCODING___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def __FILE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def __LINE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def alias_type?; end # Returns an array of ancestor nodes. @@ -2678,173 +2685,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] an array of ancestor nodes # - # source://rubocop-ast//lib/rubocop/ast/node.rb#247 + # source://rubocop-ast//lib/rubocop/ast/node.rb#268 def ancestors; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def and_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def and_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def arg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def args_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#464 + # source://rubocop-ast//lib/rubocop/ast/node.rb#474 def argument?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#468 + # source://rubocop-ast//lib/rubocop/ast/node.rb#478 def argument_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def array_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def array_pattern_with_tail_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def array_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#416 + # source://rubocop-ast//lib/rubocop/ast/node.rb#426 def assignment?; end # Some cops treat the shovel operator as a kind of assignment. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#355 + # source://rubocop-ast//lib/rubocop/ast/node.rb#376 def assignment_or_similar?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def back_ref_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#420 + # source://rubocop-ast//lib/rubocop/ast/node.rb#430 def basic_conditional?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#363 + # source://rubocop-ast//lib/rubocop/ast/node.rb#384 def basic_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def begin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def block_pass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def block_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def blockarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def blockarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#472 + # source://rubocop-ast//lib/rubocop/ast/node.rb#482 def boolean_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def break_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#456 + # source://rubocop-ast//lib/rubocop/ast/node.rb#466 def call_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def case_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def case_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def casgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def cbase_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#460 + # source://rubocop-ast//lib/rubocop/ast/node.rb#470 def chained?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#512 + # source://rubocop-ast//lib/rubocop/ast/node.rb#522 def class_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#530 + # source://rubocop-ast//lib/rubocop/ast/node.rb#540 def class_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def class_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#144 + # source://rubocop-ast//lib/rubocop/ast/node.rb#165 def complete!; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#149 + # source://rubocop-ast//lib/rubocop/ast/node.rb#170 def complete?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def complex_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#424 + # source://rubocop-ast//lib/rubocop/ast/node.rb#434 def conditional?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#293 + # source://rubocop-ast//lib/rubocop/ast/node.rb#314 def const_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def const_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def const_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def csend_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def cvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def cvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def def_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#314 + # source://rubocop-ast//lib/rubocop/ast/node.rb#335 def defined_module; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#319 + # source://rubocop-ast//lib/rubocop/ast/node.rb#340 def defined_module_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def defined_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def defs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def dstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def dsym_type?; end # Calls the given block for each ancestor node from parent to root. @@ -2857,163 +2864,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Enumerator] if no block is given # @yieldparam node [Node] each ancestor node # - # source://rubocop-ast//lib/rubocop/ast/node.rb#235 + # source://rubocop-ast//lib/rubocop/ast/node.rb#256 def each_ancestor(*types, &block); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def eflipflop_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def empty_else_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#349 + # source://rubocop-ast//lib/rubocop/ast/node.rb#370 def empty_source?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def ensure_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#408 + # source://rubocop-ast//lib/rubocop/ast/node.rb#418 def equals_asgn?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def erange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def false_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#371 + # source://rubocop-ast//lib/rubocop/ast/node.rb#392 def falsey_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def find_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#261 + # source://rubocop-ast//lib/rubocop/ast/node.rb#282 def first_line; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def float_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def for_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def forward_arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def forward_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def forwarded_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def forwarded_kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def forwarded_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#509 + # source://rubocop-ast//lib/rubocop/ast/node.rb#519 def global_const?(param0 = T.unsafe(nil), param1); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#484 + # source://rubocop-ast//lib/rubocop/ast/node.rb#494 def guard_clause?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def gvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def gvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def hash_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def hash_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def ident_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def if_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def if_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def iflipflop_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#379 + # source://rubocop-ast//lib/rubocop/ast/node.rb#400 def immutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def in_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def in_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def index_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def indexasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def int_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def irange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def ivar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def ivasgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#437 + # source://rubocop-ast//lib/rubocop/ast/node.rb#447 def keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def kwargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def kwbegin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def kwnilarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def kwoptarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def kwsplat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#503 + # source://rubocop-ast//lib/rubocop/ast/node.rb#513 def lambda?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#506 + # source://rubocop-ast//lib/rubocop/ast/node.rb#516 def lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def lambda_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#265 + # source://rubocop-ast//lib/rubocop/ast/node.rb#286 def last_line; end # Use is discouraged, this is a potentially slow method and can lead @@ -3021,7 +3028,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the left (aka previous) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#187 + # source://rubocop-ast//lib/rubocop/ast/node.rb#208 def left_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3029,94 +3036,94 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the left (aka previous) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#197 + # source://rubocop-ast//lib/rubocop/ast/node.rb#218 def left_siblings; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#269 + # source://rubocop-ast//lib/rubocop/ast/node.rb#290 def line_count; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#359 + # source://rubocop-ast//lib/rubocop/ast/node.rb#380 def literal?; end # NOTE: `loop { }` is a normal method call and thus not a loop keyword. # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#433 + # source://rubocop-ast//lib/rubocop/ast/node.rb#443 def loop_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def lvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def masgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_alt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_as_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_current_line_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#491 + # source://rubocop-ast//lib/rubocop/ast/node.rb#501 def match_guard_clause?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_nil_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_pattern_p_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_rest_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_var_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_with_lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def match_with_trailing_comma_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def mlhs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#537 + # source://rubocop-ast//lib/rubocop/ast/node.rb#547 def module_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def module_type?; end # Predicates # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#341 + # source://rubocop-ast//lib/rubocop/ast/node.rb#362 def multiline?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#375 + # source://rubocop-ast//lib/rubocop/ast/node.rb#396 def mutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#671 + # source://rubocop-ast//lib/rubocop/ast/node.rb#679 def new_class_or_module_block?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def next_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def nil_type?; end # Common destructuring method. This can be used to normalize @@ -3129,95 +3136,95 @@ class RuboCop::AST::Node < ::Parser::AST::Node # source://ast/2.4.2/lib/ast/node.rb#56 def node_parts; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#275 + # source://rubocop-ast//lib/rubocop/ast/node.rb#296 def nonempty_line_count; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def not_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def nth_ref_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def numargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def numblock_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#476 + # source://rubocop-ast//lib/rubocop/ast/node.rb#486 def numeric_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def objc_kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def objc_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def objc_varargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def op_asgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#448 + # source://rubocop-ast//lib/rubocop/ast/node.rb#458 def operator_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def optarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def or_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def or_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def pair_type?; end # Returns the parent node, or `nil` if the receiver is a root node. # # @return [Node, nil] the parent node or `nil` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#126 + # source://rubocop-ast//lib/rubocop/ast/node.rb#147 def parent; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#135 + # source://rubocop-ast//lib/rubocop/ast/node.rb#156 def parent?; end # Searching the AST # - # source://rubocop-ast//lib/rubocop/ast/node.rb#325 + # source://rubocop-ast//lib/rubocop/ast/node.rb#346 def parent_module_name; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#452 + # source://rubocop-ast//lib/rubocop/ast/node.rb#462 def parenthesized_call?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def pin_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#428 + # source://rubocop-ast//lib/rubocop/ast/node.rb#438 def post_condition_loop?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def postexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def preexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#496 + # source://rubocop-ast//lib/rubocop/ast/node.rb#506 def proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def procarg0_type?; end # Some expressions are evaluated for their value, some for their side @@ -3230,56 +3237,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#582 + # source://rubocop-ast//lib/rubocop/ast/node.rb#590 def pure?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#480 + # source://rubocop-ast//lib/rubocop/ast/node.rb#490 def range_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def rational_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#286 + # source://rubocop-ast//lib/rubocop/ast/node.rb#307 def receiver(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#386 + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#97 def recursive_basic_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#386 + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#97 def recursive_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def redo_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#404 + # source://rubocop-ast//lib/rubocop/ast/node.rb#414 def reference?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def regexp_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def regopt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def resbody_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def rescue_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def restarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def retry_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def return_type?; end # Use is discouraged, this is a potentially slow method and can lead @@ -3287,7 +3298,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the right (aka next) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#178 + # source://rubocop-ast//lib/rubocop/ast/node.rb#199 def right_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3295,18 +3306,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the right (aka next) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#206 + # source://rubocop-ast//lib/rubocop/ast/node.rb#227 def right_siblings; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#140 + # source://rubocop-ast//lib/rubocop/ast/node.rb#161 def root?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def sclass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def self_type?; end # Most nodes are of 'send' type, so this method is defined @@ -3314,15 +3325,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#119 + # source://rubocop-ast//lib/rubocop/ast/node.rb#140 def send_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def shadowarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#412 + # source://rubocop-ast//lib/rubocop/ast/node.rb#422 def shorthand_asgn?; end # Returns the index of the receiver node in its siblings. (Sibling index @@ -3331,70 +3342,70 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Integer, nil] the index of the receiver node in its siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#171 + # source://rubocop-ast//lib/rubocop/ast/node.rb#192 def sibling_index; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#345 + # source://rubocop-ast//lib/rubocop/ast/node.rb#366 def single_line?; end # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}` # # @return [String, nil] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#253 + # source://rubocop-ast//lib/rubocop/ast/node.rb#274 def source; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#279 + # source://rubocop-ast//lib/rubocop/ast/node.rb#300 def source_length; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#257 + # source://rubocop-ast//lib/rubocop/ast/node.rb#278 def source_range; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#444 + # source://rubocop-ast//lib/rubocop/ast/node.rb#454 def special_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def splat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#291 + # source://rubocop-ast//lib/rubocop/ast/node.rb#312 def str_content(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def str_type?; end # @deprecated Use `:class_constructor?` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#525 + # source://rubocop-ast//lib/rubocop/ast/node.rb#535 def struct_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def super_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def sym_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def true_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#367 + # source://rubocop-ast//lib/rubocop/ast/node.rb#388 def truthy_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def undef_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def unless_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def until_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def until_type?; end # Override `AST::Node#updated` so that `AST::Processor` does not try to @@ -3403,7 +3414,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # identical subtrees. Rather, the entire AST must be copied any time any # part of it is changed. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#160 + # source://rubocop-ast//lib/rubocop/ast/node.rb#181 def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end # Some expressions are evaluated for their value, some for their side @@ -3414,76 +3425,82 @@ class RuboCop::AST::Node < ::Parser::AST::Node # So, does the return value of this node matter? If we changed it to # `(...; nil)`, might that affect anything? # - # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#551 + # source://rubocop-ast//lib/rubocop/ast/node.rb#560 def value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#400 + # source://rubocop-ast//lib/rubocop/ast/node.rb#410 def variable?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def when_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def while_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def while_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def xstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def yield_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node.rb#132 def zsuper_type?; end protected - # source://rubocop-ast//lib/rubocop/ast/node.rb#130 + # source://rubocop-ast//lib/rubocop/ast/node.rb#151 def parent=(node); end private # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#610 + # source://rubocop-ast//lib/rubocop/ast/node.rb#618 def begin_value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#621 + # source://rubocop-ast//lib/rubocop/ast/node.rb#629 def case_if_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#305 + # source://rubocop-ast//lib/rubocop/ast/node.rb#326 def defined_module0(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#615 + # source://rubocop-ast//lib/rubocop/ast/node.rb#623 def for_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#657 + # source://rubocop-ast//lib/rubocop/ast/node.rb#665 def parent_module_name_for_block(ancestor); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#645 + # source://rubocop-ast//lib/rubocop/ast/node.rb#653 def parent_module_name_for_sclass(sclass_node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#632 + # source://rubocop-ast//lib/rubocop/ast/node.rb#640 def parent_module_name_part(node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#600 + # source://rubocop-ast//lib/rubocop/ast/node.rb#608 def visit_ancestors(types); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#627 + # source://rubocop-ast//lib/rubocop/ast/node.rb#635 def while_until_value_used?; end + + class << self + private + + # source://rubocop-ast//lib/rubocop/ast/node.rb#92 + def def_recursive_literal_predicate(kind); end + end end # @api private @@ -3921,7 +3938,10 @@ class RuboCop::AST::NodePattern::Compiler::Binding # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#16 def bind(name); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#30 + # Yields for each branch of the given union, forbidding unification of + # bindings which only appear in a subset of the union. + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#31 def union_bind(enum); end private @@ -4269,7 +4289,6 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17 class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler # Calls `compile_sequence`; the actual `compile` method @@ -4423,6 +4442,8 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: def within_loop; end end +# Shift of 1 from standard Ruby indices +# # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18 RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer) @@ -4555,7 +4576,7 @@ class RuboCop::AST::NodePattern::LexerRex # The current location in the parse. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103 def location; end # The StringScanner for this lexer. @@ -4570,22 +4591,22 @@ class RuboCop::AST::NodePattern::LexerRex # Lex the next token. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112 def next_token; end # Parse the given string. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#83 def parse(str); end # Read in and parse the file at +path+. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#93 def parse_file(path); end # The current scanner class. Must be overridden in subclasses. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#76 def scanner_class; end # The StringScanner for this lexer. @@ -4735,212 +4756,212 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node # # @return [Integer, Range] An Integer for fixed length terms, otherwise a Range. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#29 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#28 def arity; end # @return [Range] arity as a Range # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#69 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#68 def arity_range; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#23 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#22 def capture?; end # @return [Node] most nodes have only one child # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#47 def child; end # @return [Array] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#43 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#42 def children_nodes; end # @return [Array, nil] replace node with result, or `nil` if no change requested. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#34 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#33 def in_sequence_head; end # that matches within a Set (e.g. `42`, `:sym` but not `/regexp/`) # # @return [Boolean] returns true for nodes having a Ruby literal equivalent # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#64 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#63 def matches_within_set?; end # @return [Integer] nb of captures of that node and its descendants # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#53 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#52 def nb_captures; end # To be overridden by subclasses # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#18 def rest?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#78 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#77 def source_range; end # @return [Boolean] returns whether it matches a variable number of elements # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#58 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#57 def variadic?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#73 def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end end # Node class for `` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#180 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#179 class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#198 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#197 def arity; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#190 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#189 def ends_with_rest?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#194 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#193 def rest_node; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#186 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#185 def term_nodes; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#183 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#182 RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash) # Node class for `$something` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96 class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node # source://forwardable/1.3.3/forwardable.rb#231 def arity(*args, **_arg1, &block); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#100 def capture?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#109 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#108 def in_sequence_head; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104 def nb_captures; end # source://forwardable/1.3.3/forwardable.rb#231 def rest?(*args, **_arg1, &block); end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#85 module RuboCop::AST::NodePattern::Node::ForbidInSeqHead # @raise [NodePattern::Invalid] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#87 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86 def in_sequence_head; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#140 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139 RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#81 RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash) # Registry # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#250 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#249 RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#12 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#11 RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set) # Node class for `predicate?(:arg, :list)` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#130 class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#136 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#135 def arg_list; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131 def method_name; end end # Node class for `int+` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#143 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#142 class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#156 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#155 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#146 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#145 def operator; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#150 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#149 RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash) # Node class for `...` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#161 class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#170 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#169 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#173 def in_sequence_head; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#165 def rest?; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#163 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162 RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range) # Node class for `(type first second ...)` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#118 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#117 class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead # @return [Sequence] a new instance of Sequence # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#121 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#120 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end end # A list (potentially empty) of nodes; part of a Union # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#206 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#205 class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#209 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#208 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#214 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#213 def in_sequence_head; end end # Node class for `{ ... }` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#223 class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#225 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#232 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#231 def in_sequence_head; end end @@ -5234,30 +5255,75 @@ RuboCop::AST::NodePattern::Sets::REGISTRY = T.let(T.unsafe(nil), Hash) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_0_1 = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_0_1_2 = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_1_2 = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_AFTER_ACTION_APPEND_AFTER_ACTION_APPEND_AROUND_ACTION_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ALL_CONTEXT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_AP_P_PP_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ATTR_ATTR_ACCESSOR_ATTR_WRITER = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ATTR_INTERNAL_ATTR_INTERNAL_ACCESSOR_ATTR_INTERNAL_WRITER = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_BELONGS_TO_HAS_ONE_HAS_MANY_HAS_AND_BELONGS_TO_MANY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_BE_TRUTHY_BE_FALSEY_BE_FALSY_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_BINWRITE_SYSWRITE_WRITE_WRITE_NONBLOCK = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BRANCH_REF_TAG = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CALLER_CALLER_LOCATIONS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CALL_RUN = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CHANGE_COLUMN_EXECUTE = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CIPHER_DIGEST = T.let(T.unsafe(nil), Set) @@ -5276,24 +5342,60 @@ RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CONTEXT_SHARED_CONTEXT = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT_2 = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_DESCRIBE_CONTEXT_FEATURE_ETC = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_DOUBLE_SPY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_DOWNCASE_UPCASE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_EACH_EXAMPLE = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_EQL_EQ_BE = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_EXACTLY_AT_LEAST_AT_MOST = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EXIST_EXISTS = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_EXPECT_ALLOW = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FACTORYGIRL_FACTORYBOT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FACTORY_TRAIT = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set) @@ -5315,27 +5417,69 @@ RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_FLATTEN_FLATTEN = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_GETHOSTBYADDR_GETHOSTBYNAME = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_GET_POST_PUT_ETC = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB_SUB_SUB = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_HASH_ARRAY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_HAS_MANY_HAS_ONE_BELONGS_TO = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_HEAD_ASSERT_RESPONSE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_HTML_HTML5 = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_IF_UNLESS = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_INCLUDE_MEMBER = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_INSERT_INSERT = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_IO_FILE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_IS_EXPECTED_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES_TO_H_TO_XML = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set) @@ -5351,6 +5495,30 @@ RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MAP_FILTER_MAP = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MATCH_MATCH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MATCH_MATCH_ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MATCH__MATCH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MATCH___MATCH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MATTR_WRITER_MATTR_ACCESSOR_CATTR_WRITER_CATTR_ACCESSOR = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MESSAGES_DETAILS = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MODULE_FUNCTION = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MODULE_FUNCTION_RUBY2_KEYWORDS = T.let(T.unsafe(nil), Set) @@ -5366,6 +5534,12 @@ RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_NOTICE_ALERT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ONLY_EXCEPT = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set) @@ -5378,6 +5552,9 @@ RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T. # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PROC_LAMBDA = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.unsafe(nil), Set) @@ -5393,39 +5570,99 @@ RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_READ_BINREAD = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RECEIVE_HAVE_RECEIVED = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RECEIVE_MESSAGE_CHAIN_STUB_CHAIN = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGES_RECEIVE_MESSAGE_CHAIN_HAVE_RECEIVED = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_REFERER_REFERRER = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RENDER_REDIRECT_TO = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_RETURNING_UNIQUE_BY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ROOT_PUBLIC_PATH = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SELECT_KEEP_IF = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SEND___SEND__ = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SKIP_AFTER_ACTION_SKIP_AROUND_ACTION_SKIP_BEFORE_ACTION_SKIP_ACTION_CALLBACK = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SKIP_PENDING = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SORT_SORT_MIN_ETC = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SPAWN_SYSTEM = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SPRINTF_FORMAT = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_START_WITH_END_WITH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_START_WITH_STARTS_WITH_END_WITH_ENDS_WITH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_STDOUT_STDERR = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TIME_DATETIME = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set) @@ -5435,9 +5672,24 @@ RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TRANSLATE_LOCALIZE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TRANSLATE_T = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TRY_TRY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_T_TRANSLATE_L_LOCALIZE = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_WHERE_NOT = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set) @@ -5447,6 +5699,9 @@ RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__AT_SLICE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET__EQL_ = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__EQUAL_EQL = T.let(T.unsafe(nil), Set) @@ -5483,6 +5738,9 @@ RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET___9 = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set) @@ -5516,7 +5774,7 @@ RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55 RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String) -# Common functionality for primitive numeric nodes: `int`, `float`, ... +# Common functionality for primitive numeric nodes: `int`, `float`, `rational`... # # source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6 module RuboCop::AST::NumericNode @@ -5853,42 +6111,42 @@ end # and other information such as disabled lines for cops. # It also provides a convenient way to access source lines. # -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#11 +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#10 class RuboCop::AST::ProcessedSource # @return [ProcessedSource] a new instance of ProcessedSource # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#29 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#28 def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#73 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#72 def [](*args); end # Returns the value of attribute ast. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def ast; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#51 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#50 def ast_with_comments; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#111 def blank?; end # Returns the value of attribute buffer. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def buffer; end # Raw source checksum for tracking infinite loops. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#83 def checksum; end # @return [Comment, nil] the comment at that line, if any. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#116 def comment_at_line(line); end # Consider using `each_comment_in_lines` instead @@ -5896,181 +6154,181 @@ class RuboCop::AST::ProcessedSource # @deprecated use contains_comment? # @return [Boolean] if any of the lines in the given `source_range` has a comment. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138 def commented?(source_range); end # Returns the value of attribute comments. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def comments; end # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use. # # @deprecated Use `each_comment_in_lines` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#146 def comments_before_line(line); end # Consider using `each_comment_in_lines` instead # # @return [Boolean] if any of the lines in the given `source_range` has a comment. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138 def contains_comment?(source_range); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#160 def current_line(token); end # Returns the value of attribute diagnostics. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def diagnostics; end # @deprecated Use `comments.each` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#88 def each_comment(&block); end # Enumerates on the comments contained with the given `line_range` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#127 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#126 def each_comment_in_lines(line_range); end # @deprecated Use `tokens.each` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#99 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98 def each_token(&block); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#108 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107 def file_path; end # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#93 def find_comment(&block); end # @deprecated Use `tokens.find` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#104 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#103 def find_token(&block); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#182 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#181 def first_token_of(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#165 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#164 def following_line(token); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#186 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#185 def last_token_of(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#169 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#168 def line_indentation(line_number); end # @return [Boolean] if the given line number has a comment. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#122 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#121 def line_with_comment?(line); end # Returns the source lines, line break characters removed, excluding a # possible __END__ and everything that comes after. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#59 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58 def lines; end # Returns the value of attribute parser_engine. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def parser_engine; end # Returns the value of attribute parser_error. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def parser_error; end # Returns the value of attribute path. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def path; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#156 def preceding_line(token); end # Returns the value of attribute raw_source. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def raw_source; end # Returns the value of attribute ruby_version. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def ruby_version; end # The tokens list is always sorted by token position, except for cases when heredoc # is passed as a method argument. In this case tokens are interleaved by # heredoc contents' tokens. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#193 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#192 def sorted_tokens; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#150 def start_with?(string); end # Returns the value of attribute tokens. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 def tokens; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#175 def tokens_within(range_or_node); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#76 def valid_syntax?; end private - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#200 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#199 def comment_index; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#312 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#309 def create_parser(ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#328 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#325 def first_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#333 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#330 def last_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#206 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#205 def parse(source, ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#240 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#238 def parser_class(ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#338 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#335 def source_range(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#223 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#222 def tokenize(parser); end class << self - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#24 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#23 def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end end end -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15 +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#14 RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array) -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#17 RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13 +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#12 RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String) # A node extension for `irange` and `erange` nodes. This will be used in @@ -6086,6 +6344,16 @@ class RuboCop::AST::RangeNode < ::RuboCop::AST::Node def end; end end +# A node extension for `rational` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available to +# all `rational` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/rational_node.rb#8 +class RuboCop::AST::RationalNode < ::RuboCop::AST::Node + include ::RuboCop::AST::BasicLiteralNode + include ::RuboCop::AST::NumericNode +end + # A node extension for `regexp` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `regexp` nodes within RuboCop. diff --git a/sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi b/sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi new file mode 100644 index 00000000..beb850ff --- /dev/null +++ b/sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi @@ -0,0 +1,928 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-factory_bot` gem. +# Please instead update this file by running `bin/tapioca gem rubocop-factory_bot`. + + +# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#3 +module RuboCop; end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#4 +module RuboCop::Cop; end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#5 +module RuboCop::Cop::FactoryBot; end + +# Use a consistent style to define associations. +# +# @example EnforcedStyle: implicit (default) +# # bad +# factory :post do +# association :user +# end +# +# # good +# factory :post do +# user +# end +# +# # bad +# factory :post do +# association :user, :author +# end +# +# # good +# factory :post do +# user factory: %i[user author] +# end +# @example EnforcedStyle: explicit +# # bad +# factory :post do +# user +# end +# +# # good +# factory :post do +# association :user +# end +# +# # bad +# factory :post do +# user factory: %i[user author] +# end +# +# # good +# factory :post do +# association :user, :author +# end +# +# # good (NonImplicitAssociationMethodNames: ['email']) +# sequence :email do |n| +# "person#{n}@example.com" +# end +# +# factory :user do +# email +# end +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#63 +class RuboCop::Cop::FactoryBot::AssociationStyle < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#140 + def association_names(param0); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#97 + def explicit_association?(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#114 + def factory_option_matcher(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#109 + def implicit_association?(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#83 + def on_send(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#145 + def trait_name(param0); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#135 + def trait_names_from_explicit(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#102 + def with_strategy_build_option?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#149 + def autocorrect(corrector, node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#157 + def autocorrect_to_explicit_style(corrector, node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#165 + def autocorrect_to_implicit_style(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#175 + def bad?(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#196 + def bad_associations_in(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#202 + def children_of_factory_block(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#214 + def factory_names_from_explicit(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#186 + def keyword?(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#224 + def non_implicit_association_method_name?(method_name); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#228 + def non_implicit_association_method_names; end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#241 + def options_for_autocorrect_to_implicit_style(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#233 + def options_from_explicit(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#250 + def trait_within_trait?(node); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#68 +RuboCop::Cop::FactoryBot::AssociationStyle::DEFAULT_NON_IMPLICIT_ASSOCIATION_METHOD_NAMES = T.let(T.unsafe(nil), Array) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#77 +RuboCop::Cop::FactoryBot::AssociationStyle::KEYWORDS = T.let(T.unsafe(nil), Array) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#76 +RuboCop::Cop::FactoryBot::AssociationStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Always declare attribute values as blocks. +# +# @example +# # bad +# kind [:active, :rejected].sample +# +# # good +# kind { [:active, :rejected].sample } +# +# # bad +# closed_at 1.day.from_now +# +# # good +# closed_at { 1.day.from_now } +# +# # bad +# count 1 +# +# # good +# count { 1 } +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#27 +class RuboCop::Cop::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#85 + def association?(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#38 + def factory_attributes(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#42 + def on_block(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#33 + def value_matcher(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#119 + def attribute_defining_method?(method_name); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#58 + def autocorrect(corrector, node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#87 + def autocorrect_replacing_parens(corrector, node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#94 + def autocorrect_without_parens(corrector, node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#103 + def braces(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#66 + def offensive_receiver?(receiver, node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#80 + def proc?(attribute); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#72 + def receiver_matches_first_block_argument?(receiver, node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#115 + def reserved_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#111 + def value_hash_without_braces?(node); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#30 +RuboCop::Cop::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String) + +# Handles `ExplicitOnly` configuration parameters. +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#7 +module RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly + include ::RuboCop::FactoryBot::Language + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#16 + def explicit_only?; end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#10 + def factory_call?(node); end +end + +# Use a consistent style for parentheses in factory_bot calls. +# +# @example `EnforcedStyle: require_parentheses` (default) +# +# # bad +# create :user +# build :login +# +# # good +# create(:user) +# build(:login) +# @example `EnforcedStyle: omit_parentheses` +# +# # bad +# create(:user) +# build(:login) +# +# # good +# create :user +# build :login +# +# # also good +# # when method name and first argument are not on same line +# create( +# :user +# ) +# build( +# :user, +# name: 'foo' +# ) +# @example `ExplicitOnly: false` (default) +# +# # bad - with `EnforcedStyle: require_parentheses` +# FactoryBot.create :user +# build :user +# +# # good - with `EnforcedStyle: require_parentheses` +# FactoryBot.create(:user) +# build(:user) +# @example `ExplicitOnly: true` +# +# # bad - with `EnforcedStyle: require_parentheses` +# FactoryBot.create :user +# FactoryBot.build :user +# +# # good - with `EnforcedStyle: require_parentheses` +# FactoryBot.create(:user) +# FactoryBot.build(:user) +# create :user +# build :user +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#60 +class RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::FactoryBot::Language + include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#71 + def factory_call(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#79 + def omit_hash_value?(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#93 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#130 + def ambiguous_without_parentheses?(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#101 + def register_offense(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#108 + def register_offense_with_parentheses(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#119 + def register_offense_without_parentheses(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#134 + def remove_parentheses(corrector, node); end + + class << self + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#89 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#128 +RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::AMBIGUOUS_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#67 +RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#66 +RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::MSG_OMIT_PARENS = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#65 +RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::MSG_REQUIRE_PARENS = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#68 +RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Checks for create_list usage. +# +# This cop can be configured using the `EnforcedStyle` option +# +# @example `EnforcedStyle: create_list` (default) +# # bad +# 3.times { create :user } +# 3.times.map { create :user } +# [create(:user), create(:user), create(:user)] +# Array.new(3) { create :user } +# +# # good +# create_list :user, 3 +# +# # bad +# 3.times { create :user, age: 18 } +# +# # good - index is used to alter the created models attributes +# 3.times { |n| create :user, age: n } +# +# # good - contains a method call, may return different values +# 3.times { create :user, age: rand } +# @example `EnforcedStyle: n_times` +# # bad +# create_list :user, 3 +# [create(:user), create(:user), create(:user)] +# +# # good +# 3.times.map { create :user } +# @example `ExplicitOnly: false` (default) +# +# # bad - with `EnforcedStyle: create_list` +# 3.times { FactoryBot.create :user } +# 3.times { create :user } +# +# # good - with `EnforcedStyle: create_list` +# FactoryBot.create_list :user, 3 +# create_list :user, 3 +# @example `ExplicitOnly: true` +# +# # bad - with `EnforcedStyle: create_list` +# 3.times { FactoryBot.create :user } +# +# # good - with `EnforcedStyle: create_list` +# FactoryBot.create_list :user, 3 +# create_list :user, 3 +# 3.times { create :user } +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#61 +class RuboCop::Cop::FactoryBot::CreateList < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::FactoryBot::Language + include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#92 + def arguments_include_method_call?(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#83 + def block_with_arg_and_used?(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#97 + def factory_call(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#107 + def factory_calls_in_array?(param0); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#102 + def factory_list_call(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#111 + def on_array(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#123 + def on_block(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#136 + def on_send(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#72 + def repeat_count(param0 = T.unsafe(nil)); end + + private + + # For ease of modification, it is replaced with the `n_times` style, + # but if it is not appropriate for the configured style, + # it will be replaced in the subsequent autocorrection. + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#160 + def autocorrect_same_factory_calls_in_array(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#171 + def contains_only_factory?(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#179 + def preferred_message_for_array(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#151 + def repeat_multiple_time?(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#188 + def same_factory_calls_in_array?(node); end +end + +# :nodoc +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#194 +module RuboCop::Cop::FactoryBot::CreateList::Corrector + private + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#197 + def build_options_string(options); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#201 + def format_method_call(node, method, arguments); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#209 + def format_receiver(receiver); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#254 +class RuboCop::Cop::FactoryBot::CreateList::CreateListCorrector + include ::RuboCop::Cop::FactoryBot::CreateList::Corrector + + # @return [CreateListCorrector] a new instance of CreateListCorrector + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#257 + def initialize(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#261 + def call(corrector); end + + private + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#284 + def build_arguments(node, count); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#293 + def call_replacement(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#275 + def call_with_block_replacement(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#306 + def count_from(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#319 + def format_block(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#327 + def format_multiline_block(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#335 + def format_singleline_block(node); end + + # Returns the value of attribute node. + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#273 + def node; end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#67 +RuboCop::Cop::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#68 +RuboCop::Cop::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#69 +RuboCop::Cop::FactoryBot::CreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# :nodoc +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#217 +class RuboCop::Cop::FactoryBot::CreateList::TimesCorrector + include ::RuboCop::Cop::FactoryBot::CreateList::Corrector + + # @return [TimesCorrector] a new instance of TimesCorrector + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#220 + def initialize(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#224 + def call(corrector); end + + private + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#246 + def factory_call_block_source; end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#233 + def generate_n_times_block(node); end + + # Returns the value of attribute node. + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#231 + def node; end +end + +# Check for excessive model creation in a list. +# +# @example MaxAmount: 10 (default) +# # We do not allow more than 10 items to be created +# +# # bad +# create_list(:merge_request, 1000, state: :opened) +# +# # good +# create_list(:merge_request, 10, state: :opened) +# @example MaxAmount: 20 +# # We do not allow more than 20 items to be created +# +# # bad +# create_list(:merge_request, 1000, state: :opened) +# +# # good +# create_list(:merge_request, 15, state: :opened) +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#26 +class RuboCop::Cop::FactoryBot::ExcessiveCreateList < ::RuboCop::Cop::Base + include ::RuboCop::FactoryBot::Language + include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#33 + def create_list?(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#39 + def on_send(node); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#29 +RuboCop::Cop::FactoryBot::ExcessiveCreateList::MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#37 +RuboCop::Cop::FactoryBot::ExcessiveCreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Use definition in factory association instead of hard coding a strategy. +# +# @example +# # bad - only works for one strategy +# factory :foo do +# profile { create(:profile) } +# end +# +# # good - implicit +# factory :foo do +# profile +# end +# +# # good - explicit +# factory :foo do +# association :profile +# end +# +# # good - inline +# factory :foo do +# profile { association :profile } +# end +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#29 +class RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy < ::RuboCop::Cop::Base + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#36 + def factory_declaration(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#43 + def factory_strategy_association(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#51 + def on_block(node); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#33 +RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy::HARDCODED = T.let(T.unsafe(nil), Set) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#30 +RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy::MSG = T.let(T.unsafe(nil), String) + +# Use string value when setting the class attribute explicitly. +# +# This cop would promote faster tests by lazy-loading of +# application files. Also, this could help you suppress potential bugs +# in combination with external libraries by avoiding a preload of +# application files from the factory files. +# +# @example +# # bad +# factory :foo, class: Foo do +# end +# +# # good +# factory :foo, class: 'Foo' do +# end +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#22 +class RuboCop::Cop::FactoryBot::FactoryClassName < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#31 + def class_name(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#35 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#48 + def allowed?(const_name); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#27 +RuboCop::Cop::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.unsafe(nil), Array) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#25 +RuboCop::Cop::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#28 +RuboCop::Cop::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for name style for argument of FactoryBot::Syntax::Methods. +# +# @example EnforcedStyle: symbol (default) +# # bad +# create('user') +# build "user", username: "NAME" +# +# # good +# create(:user) +# build :user, username: "NAME" +# +# # good - namespaced models +# create('users/internal') +# @example EnforcedStyle: string +# # bad +# create(:user) +# build :user, username: "NAME" +# +# # good +# create('user') +# build "user", username: "NAME" +# @example `ExplicitOnly: false` (default) +# +# # bad - with `EnforcedStyle: symbol` +# FactoryBot.create('user') +# create('user') +# +# # good - with `EnforcedStyle: symbol` +# FactoryBot.create(:user) +# create(:user) +# @example `ExplicitOnly: true` +# +# # bad - with `EnforcedStyle: symbol` +# FactoryBot.create(:user) +# FactoryBot.build "user", username: "NAME" +# +# # good - with `EnforcedStyle: symbol` +# FactoryBot.create('user') +# FactoryBot.build "user", username: "NAME" +# FactoryBot.create(:user) +# create(:user) +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#51 +class RuboCop::Cop::FactoryBot::FactoryNameStyle < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::FactoryBot::Language + include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#62 + def factory_call(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#69 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#89 + def namespaced?(name); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#85 + def offense_for_string_style?(name); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#81 + def offense_for_symbol_style?(name); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#93 + def register_offense(name, prefer); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#58 +RuboCop::Cop::FactoryBot::FactoryNameStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#57 +RuboCop::Cop::FactoryBot::FactoryNameStyle::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#59 +RuboCop::Cop::FactoryBot::FactoryNameStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Do not create a FactoryBot sequence for an id column. +# +# @example +# # bad - can lead to conflicts between FactoryBot and DB sequences +# factory :foo do +# sequence :id +# end +# +# # good - a non-id column +# factory :foo do +# sequence :some_non_id_column +# end +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#19 +class RuboCop::Cop::FactoryBot::IdSequence < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::FactoryBot::Language + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#27 + def on_send(node); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#24 +RuboCop::Cop::FactoryBot::IdSequence::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#25 +RuboCop::Cop::FactoryBot::IdSequence::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant `factory` option. +# +# @example +# # bad +# association :user, factory: :user +# +# # good +# association :user +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#14 +class RuboCop::Cop::FactoryBot::RedundantFactoryOption < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#24 + def association_with_a_factory_option(param0 = T.unsafe(nil)); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#42 + def on_send(node); end + + private + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#55 + def autocorrect(corrector, node); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#19 +RuboCop::Cop::FactoryBot::RedundantFactoryOption::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#21 +RuboCop::Cop::FactoryBot::RedundantFactoryOption::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Use shorthands from `FactoryBot::Syntax::Methods` in your specs. +# +# @example +# # bad +# FactoryBot.create(:bar) +# FactoryBot.build(:bar) +# FactoryBot.attributes_for(:bar) +# +# # good +# create(:bar) +# build(:bar) +# attributes_for(:bar) +# +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#48 +class RuboCop::Cop::FactoryBot::SyntaxMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::FactoryBot::Language + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#73 + def on_send(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#58 + def spec_group?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#87 + def crime_scene(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#109 + def example_group_root?(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#113 + def example_group_root_with_siblings?(node); end + + # @return [Boolean] + # + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#101 + def inside_example_group?(node); end + + # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#94 + def offense(node); end +end + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#53 +RuboCop::Cop::FactoryBot::SyntaxMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#55 +RuboCop::Cop::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# RuboCop factory_bot project namespace +# +# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#5 +module RuboCop::FactoryBot + class << self + # source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#54 + def attribute_defining_methods; end + + # source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#58 + def reserved_methods; end + end +end + +# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#6 +RuboCop::FactoryBot::ATTRIBUTE_DEFINING_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#29 +RuboCop::FactoryBot::DEFINITION_PROXY_METHODS = T.let(T.unsafe(nil), Array) + +# Contains node matchers for common factory_bot DSL. +# +# source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#6 +module RuboCop::FactoryBot::Language + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#30 + def factory_bot?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#9 +RuboCop::FactoryBot::Language::METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#42 +RuboCop::FactoryBot::RESERVED_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#14 +RuboCop::FactoryBot::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array) diff --git a/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi b/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi new file mode 100644 index 00000000..b8a19bc9 --- /dev/null +++ b/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi @@ -0,0 +1,3270 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-performance` gem. +# Please instead update this file by running `bin/tapioca gem rubocop-performance`. + + +# source://rubocop-performance//lib/rubocop/performance.rb#3 +module RuboCop; end + +# source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#4 +module RuboCop::Cop; end + +module RuboCop::Cop::Lint; end + +class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base + # source://rubocop/1.65.1/lib/rubocop/cop/lint/unused_method_argument.rb#66 + def not_implemented?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/unused_method_argument.rb#81 + def autocorrect(corrector, node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/unused_method_argument.rb#85 + def check_argument(variable); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/unused_method_argument.rb#93 + def ignored_method?(body); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/unused_method_argument.rb#98 + def message(variable); end + + class << self + # source://rubocop-performance//lib/rubocop-performance.rb#15 + def autocorrect_incompatible_with; end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/unused_method_argument.rb#75 + def joining_forces; end + end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#5 +module RuboCop::Cop::Performance; end + +# Identifies usages of `ancestors.include?` and change them to use `<=` instead. +# +# @example +# # bad +# A.ancestors.include?(B) +# +# # good +# A <= B +# +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#19 +class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#26 + def ancestors_include_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#30 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#43 + def range(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#23 +RuboCop::Cop::Performance::AncestorsInclude::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#24 +RuboCop::Cop::Performance::AncestorsInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where slicing arrays with semi-infinite ranges +# can be replaced by `Array#take` and `Array#drop`. +# This cop was created due to a mistake in microbenchmark and hence is disabled by default. +# Refer https://github.com/rubocop/rubocop-performance/pull/175#issuecomment-731892717 +# +# @example +# # bad +# array[..2] +# array[...2] +# array[2..] +# array[2...] +# array.slice(..2) +# +# # good +# array.take(3) +# array.take(2) +# array.drop(2) +# array.drop(2) +# array.take(3) +# +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#29 +class RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#45 + def endless_range?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#41 + def endless_range_slice?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#52 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#52 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#66 + def correction(receiver, range_node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#36 +RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#39 +RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#38 +RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::SLICE_METHODS = T.let(T.unsafe(nil), Set) + +# Identifies places where numeric argument to BigDecimal should be +# converted to string. Initializing from String is faster +# than from Numeric for BigDecimal. +# +# @example +# # bad +# BigDecimal(1, 2) +# 4.to_d(6) +# BigDecimal(1.2, 3, exception: true) +# 4.5.to_d(6, exception: true) +# +# # good +# BigDecimal('1', 2) +# BigDecimal('4', 6) +# BigDecimal('1.2', 3, exception: true) +# BigDecimal('4.5', 6, exception: true) +# +# source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#23 +class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#29 + def big_decimal_with_numeric_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#37 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#33 + def to_d?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#26 +RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#27 +RuboCop::Cop::Performance::BigDecimalWithNumericArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# In Ruby 2.7, `UnboundMethod#bind_call` has been added. +# +# This cop identifies places where `bind(obj).call(args, ...)` +# can be replaced by `bind_call(obj, args, ...)`. +# +# The `bind_call(obj, args, ...)` method is faster than +# `bind(obj).call(args, ...)`. +# +# @example +# # bad +# umethod.bind(obj).call(foo, bar) +# umethod.bind(obj).(foo, bar) +# +# # good +# umethod.bind_call(obj, foo, bar) +# +# source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#22 +class RuboCop::Cop::Performance::BindCall < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#32 + def bind_with_call_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#40 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#71 + def build_call_args(call_args_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#64 + def correction_range(receiver, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#58 + def message(bind_arg, call_args); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#29 +RuboCop::Cop::Performance::BindCall::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#30 +RuboCop::Cop::Performance::BindCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies unnecessary use of a `block_given?` where explicit check +# of block argument would suffice. +# +# @example +# # bad +# def method(&block) +# do_something if block_given? +# end +# +# # good +# def method(&block) +# do_something if block +# end +# +# # good - block is reassigned +# def method(&block) +# block ||= -> { do_something } +# warn "Using default ..." unless block_given? +# # ... +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#27 +class RuboCop::Cop::Performance::BlockGivenWithExplicitBlock < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#35 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#33 + def reassigns_block_arg?(param0 = T.unsafe(nil), param1); end + + class << self + # source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#51 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#31 +RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#30 +RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `caller[n]` can be replaced by `caller(n..n).first`. +# +# @example +# # bad +# caller[1] +# caller.first +# caller_locations[1] +# caller_locations.first +# +# # good +# caller(2..2).first +# caller(1..1).first +# caller_locations(2..2).first +# caller_locations(1..1).first +# +# source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#20 +class RuboCop::Cop::Performance::Caller < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#33 + def caller_with_scope_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#40 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#26 + def slow_caller?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#61 + def int_value(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#23 +RuboCop::Cop::Performance::Caller::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#24 +RuboCop::Cop::Performance::Caller::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Reordering `when` conditions with a splat to the end +# of the `when` branches can improve performance. +# +# Ruby has to allocate memory for the splat expansion every time +# that the `case` `when` statement is run. Since Ruby does not support +# fall through inside of `case` `when`, like some other languages do, +# the order of the `when` branches should not matter. By placing any +# splat expansions at the end of the list of `when` branches we will +# reduce the number of times that memory has to be allocated for +# the expansion. The exception to this is if multiple of your `when` +# conditions can be true for any given condition. A likely scenario for +# this defining a higher level when condition to override a condition +# that is inside of the splat expansion. +# +# @example +# # bad +# case foo +# when *condition +# bar +# when baz +# foobar +# end +# +# case foo +# when *[1, 2, 3, 4] +# bar +# when 5 +# baz +# end +# +# # good +# case foo +# when baz +# foobar +# when *condition +# bar +# end +# +# case foo +# when 1, 2, 3, 4 +# bar +# when 5 +# baz +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#58 +class RuboCop::Cop::Performance::CaseWhenSplat < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#66 + def on_case(case_node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#83 + def autocorrect(corrector, when_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#140 + def indent_for(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#100 + def inline_fix_branch(corrector, when_node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#164 + def needs_reorder?(when_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#136 + def new_branch_without_then(node, new_condition); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#132 + def new_condition_with_then(node, new_condition); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#158 + def non_splat?(condition); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#91 + def range(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#107 + def reorder_condition(corrector, when_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#116 + def reordering_correction(when_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#95 + def replacement(conditions); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#144 + def splat_offenses(when_conditions); end + + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#126 + def when_branch_range(when_node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#64 +RuboCop::Cop::Performance::CaseWhenSplat::ARRAY_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#63 +RuboCop::Cop::Performance::CaseWhenSplat::MSG = T.let(T.unsafe(nil), String) + +# Identifies places where a case-insensitive string comparison +# can better be implemented using `casecmp`. +# +# This cop is disabled by default because `String#casecmp` only works with +# ASCII characters. See https://github.com/rubocop/rubocop/issues/9753. +# +# If you are working only with ASCII characters, then this cop can be +# safely enabled. +# +# @example +# # bad +# str.downcase == 'abc' +# str.upcase.eql? 'ABC' +# 'abc' == str.downcase +# 'ABC'.eql? str.upcase +# str.downcase == str.downcase +# +# # good +# str.casecmp('ABC').zero? +# 'abc'.casecmp(str).zero? +# +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#30 +class RuboCop::Cop::Performance::Casecmp < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#51 + def downcase_downcase(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#37 + def downcase_eq(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#44 + def eq_downcase(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#58 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#90 + def autocorrect(corrector, node, replacement); end + + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#94 + def build_good_method(method, arg, variable); end + + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#73 + def take_method_apart(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#35 +RuboCop::Cop::Performance::Casecmp::CASE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#33 +RuboCop::Cop::Performance::Casecmp::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#34 +RuboCop::Cop::Performance::Casecmp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies usages of `array.compact.flatten.map { |x| x.downcase }`. +# Each of these methods (`compact`, `flatten`, `map`) will generate a new intermediate array +# that is promptly thrown away. Instead it is faster to mutate when we know it's safe. +# +# @example +# # bad +# array = ["a", "b", "c"] +# array.compact.flatten.map { |x| x.downcase } +# +# # good +# array = ["a", "b", "c"] +# array.compact! +# array.flatten! +# array.map! { |x| x.downcase } +# array +# +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#21 +class RuboCop::Cop::Performance::ChainArrayAllocation < ::RuboCop::Cop::Base + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#52 + def chain_array_allocation?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#60 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#73 + def enumerable_select_method?(node); end +end + +# These methods ALWAYS return a new array +# after they're called it's safe to mutate the resulting array +# +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#35 +RuboCop::Cop::Performance::ChainArrayAllocation::ALWAYS_RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set) + +# These methods have a mutation alternative. For example :collect +# can be called as :collect! +# +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#43 +RuboCop::Cop::Performance::ChainArrayAllocation::HAS_MUTATION_ALTERNATIVE = T.let(T.unsafe(nil), Set) + +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#48 +RuboCop::Cop::Performance::ChainArrayAllocation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#46 +RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set) + +# These methods return a new array only when called without a block. +# +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#31 +RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY_WHEN_NO_BLOCK = T.let(T.unsafe(nil), Set) + +# These methods return a new array but only sometimes. They must be +# called with an argument. For example: +# +# [1,2].first # => 1 +# [1,2].first(1) # => [1] +# +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#28 +RuboCop::Cop::Performance::ChainArrayAllocation::RETURN_NEW_ARRAY_WHEN_ARGS = T.let(T.unsafe(nil), Set) + +# Identifies places where Array and Hash literals are used within loops. +# It is better to extract them into a local variable or constant +# to avoid unnecessary allocations on each iteration. +# +# You can set the minimum number of elements to consider +# an offense with `MinSize`. +# +# @example +# # bad +# users.select do |user| +# %i[superadmin admin].include?(user.role) +# end +# +# # good +# admin_roles = %i[superadmin admin] +# users.select do |user| +# admin_roles.include?(user.role) +# end +# +# # good +# ADMIN_ROLES = %i[superadmin admin] +# ... +# users.select do |user| +# ADMIN_ROLES.include?(user.role) +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#34 +class RuboCop::Cop::Performance::CollectionLiteralInLoop < ::RuboCop::Cop::Base + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#74 + def enumerable_loop?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#68 + def kernel_loop?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#80 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#90 + def check_literal?(node, method); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#128 + def enumerable_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#110 + def keyword_loop?(type); end + + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#120 + def literal_class(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#106 + def loop?(ancestor, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#132 + def min_size; end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#114 + def node_within_enumerable_loop?(node, ancestor); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#97 + def nonmutable_method_of_array_or_hash?(node, method); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#102 + def parent_is_loop?(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#56 +RuboCop::Cop::Performance::CollectionLiteralInLoop::ARRAY_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#41 +RuboCop::Cop::Performance::CollectionLiteralInLoop::ENUMERABLE_METHOD_NAMES = T.let(T.unsafe(nil), Set) + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#66 +RuboCop::Cop::Performance::CollectionLiteralInLoop::HASH_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#39 +RuboCop::Cop::Performance::CollectionLiteralInLoop::LOOP_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#35 +RuboCop::Cop::Performance::CollectionLiteralInLoop::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#42 +RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#58 +RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#38 +RuboCop::Cop::Performance::CollectionLiteralInLoop::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array) + +# Identifies places where `sort { |a, b| a.foo <=> b.foo }` +# can be replaced by `sort_by(&:foo)`. +# This cop also checks `sort!`, `min`, `max` and `minmax` methods. +# +# @example +# # bad +# array.sort { |a, b| a.foo <=> b.foo } +# array.sort! { |a, b| a.foo <=> b.foo } +# array.max { |a, b| a.foo <=> b.foo } +# array.min { |a, b| a.foo <=> b.foo } +# array.minmax { |a, b| a.foo <=> b.foo } +# array.sort { |a, b| a[:foo] <=> b[:foo] } +# +# # good +# array.sort_by(&:foo) +# array.sort_by!(&:foo) +# array.sort_by { |v| v.foo } +# array.sort_by do |var| +# var.foo +# end +# array.max_by(&:foo) +# array.min_by(&:foo) +# array.minmax_by(&:foo) +# array.sort_by { |a| a[:foo] } +# +# source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#30 +class RuboCop::Cop::Performance::CompareWithBlock < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#41 + def compare?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#55 + def on_block(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#48 + def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#114 + def compare_range(send, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#91 + def message(send, method, var_a, var_b, args); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#76 + def slow_compare?(method, args_a, args_b); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#34 +RuboCop::Cop::Performance::CompareWithBlock::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#38 +RuboCop::Cop::Performance::CompareWithBlock::REPLACEMENT = T.let(T.unsafe(nil), Hash) + +# Identifies places where `Concurrent.monotonic_time` +# can be replaced by `Process.clock_gettime(Process::CLOCK_MONOTONIC)`. +# +# @example +# +# # bad +# Concurrent.monotonic_time +# +# # good +# Process.clock_gettime(Process::CLOCK_MONOTONIC) +# +# source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#17 +class RuboCop::Cop::Performance::ConcurrentMonotonicTime < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#23 + def concurrent_monotonic_time?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#28 + def on_send(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#20 +RuboCop::Cop::Performance::ConcurrentMonotonicTime::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#21 +RuboCop::Cop::Performance::ConcurrentMonotonicTime::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Finds regular expressions with dynamic components that are all constants. +# +# Ruby allocates a new Regexp object every time it executes a code containing such +# a regular expression. It is more efficient to extract it into a constant, +# memoize it, or add an `/o` option to perform `#{}` interpolation only once and +# reuse that Regexp object. +# +# @example +# +# # bad +# def tokens(pattern) +# pattern.scan(TOKEN).reject { |token| token.match?(/\A#{SEPARATORS}\Z/) } +# end +# +# # good +# ALL_SEPARATORS = /\A#{SEPARATORS}\Z/ +# def tokens(pattern) +# pattern.scan(TOKEN).reject { |token| token.match?(ALL_SEPARATORS) } +# end +# +# # good +# def tokens(pattern) +# pattern.scan(TOKEN).reject { |token| token.match?(/\A#{SEPARATORS}\Z/o) } +# end +# +# # good +# def separators +# @separators ||= /\A#{SEPARATORS}\Z/ +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#36 +class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#45 + def on_regexp(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#59 + def regexp_escape?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#64 + def include_interpolated_const?(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#55 + def within_allowed_assignment?(node); end + + class << self + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#41 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#39 +RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String) + +# Identifies usages of `count` on an `Enumerable` that +# follow calls to `select`, `find_all`, `filter` or `reject`. Querying logic can instead be +# passed to the `count` call. +# +# @example +# # bad +# [1, 2, 3].select { |e| e > 2 }.size +# [1, 2, 3].reject { |e| e > 2 }.size +# [1, 2, 3].select { |e| e > 2 }.length +# [1, 2, 3].reject { |e| e > 2 }.length +# [1, 2, 3].select { |e| e > 2 }.count { |e| e.odd? } +# [1, 2, 3].reject { |e| e > 2 }.count { |e| e.even? } +# array.select(&:value).count +# +# # good +# [1, 2, 3].count { |e| e > 2 } +# [1, 2, 3].count { |e| e < 2 } +# [1, 2, 3].count { |e| e > 2 && e.odd? } +# [1, 2, 3].count { |e| e < 2 && e.even? } +# Model.select('field AS field_one').count +# Model.select(:value).count +# +# source://rubocop-performance//lib/rubocop/cop/performance/count.rb#48 +class RuboCop::Cop::Performance::Count < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#55 + def count_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#62 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#62 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#79 + def autocorrect(corrector, node, selector_node, selector); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#89 + def eligible_node?(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#132 + def negate_block_pass_as_inline_block(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#111 + def negate_block_pass_reject(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#118 + def negate_block_reject(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#128 + def negate_expression(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#103 + def negate_reject(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#93 + def source_starting_at(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/count.rb#52 +RuboCop::Cop::Performance::Count::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/count.rb#53 +RuboCop::Cop::Performance::Count::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# In Ruby 2.5, `String#delete_prefix` has been added. +# +# This cop identifies places where `gsub(/\Aprefix/, '')` and `sub(/\Aprefix/, '')` +# can be replaced by `delete_prefix('prefix')`. +# +# This cop has `SafeMultiline` configuration option that `true` by default because +# `^prefix` is unsafe as it will behave incompatible with `delete_prefix` +# for receiver is multiline string. +# +# The `delete_prefix('prefix')` method is faster than `gsub(/\Aprefix/, '')`. +# +# @example +# +# # bad +# str.gsub(/\Aprefix/, '') +# str.gsub!(/\Aprefix/, '') +# +# str.sub(/\Aprefix/, '') +# str.sub!(/\Aprefix/, '') +# +# # good +# str.delete_prefix('prefix') +# str.delete_prefix!('prefix') +# @example SafeMultiline: true (default) +# +# # good +# str.gsub(/^prefix/, '') +# str.gsub!(/^prefix/, '') +# str.sub(/^prefix/, '') +# str.sub!(/^prefix/, '') +# @example SafeMultiline: false +# +# # bad +# str.gsub(/^prefix/, '') +# str.gsub!(/^prefix/, '') +# str.sub(/^prefix/, '') +# str.sub!(/^prefix/, '') +# +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#49 +class RuboCop::Cop::Performance::DeletePrefix < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RegexpMetacharacter + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#66 + def delete_prefix_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#71 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#71 + def on_send(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#56 +RuboCop::Cop::Performance::DeletePrefix::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#59 +RuboCop::Cop::Performance::DeletePrefix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#57 +RuboCop::Cop::Performance::DeletePrefix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# In Ruby 2.5, `String#delete_suffix` has been added. +# +# This cop identifies places where `gsub(/suffix\z/, '')` and `sub(/suffix\z/, '')` +# can be replaced by `delete_suffix('suffix')`. +# +# This cop has `SafeMultiline` configuration option that `true` by default because +# `suffix$` is unsafe as it will behave incompatible with `delete_suffix?` +# for receiver is multiline string. +# +# The `delete_suffix('suffix')` method is faster than `gsub(/suffix\z/, '')`. +# +# @example +# +# # bad +# str.gsub(/suffix\z/, '') +# str.gsub!(/suffix\z/, '') +# +# str.sub(/suffix\z/, '') +# str.sub!(/suffix\z/, '') +# +# # good +# str.delete_suffix('suffix') +# str.delete_suffix!('suffix') +# @example SafeMultiline: true (default) +# +# # good +# str.gsub(/suffix$/, '') +# str.gsub!(/suffix$/, '') +# str.sub(/suffix$/, '') +# str.sub!(/suffix$/, '') +# @example SafeMultiline: false +# +# # bad +# str.gsub(/suffix$/, '') +# str.gsub!(/suffix$/, '') +# str.sub(/suffix$/, '') +# str.sub!(/suffix$/, '') +# +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#49 +class RuboCop::Cop::Performance::DeleteSuffix < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RegexpMetacharacter + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#66 + def delete_suffix_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#71 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#71 + def on_send(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#56 +RuboCop::Cop::Performance::DeleteSuffix::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#59 +RuboCop::Cop::Performance::DeleteSuffix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#57 +RuboCop::Cop::Performance::DeleteSuffix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies usages of `first`, `last`, `[0]` or `[-1]` +# chained to `select`, `find_all` or `filter` and change them to use +# `detect` instead. +# +# @example +# # bad +# [].select { |item| true }.first +# [].select { |item| true }.last +# [].find_all { |item| true }.first +# [].find_all { |item| true }.last +# [].filter { |item| true }.first +# [].filter { |item| true }.last +# [].filter { |item| true }[0] +# [].filter { |item| true }[-1] +# +# # good +# [].detect { |item| true } +# [].reverse.detect { |item| true } +# +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#30 +class RuboCop::Cop::Performance::Detect < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#41 + def detect_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#50 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#50 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#70 + def accept_first_call?(receiver, body); end + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#102 + def autocorrect(corrector, node, replacement); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#128 + def lazy?(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#113 + def message_for_method(method, index); end + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#124 + def preferred_method; end + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#79 + def register_offense(node, receiver, second_method, index); end + + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#94 + def replacement(method, index); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#33 +RuboCop::Cop::Performance::Detect::CANDIDATE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#37 +RuboCop::Cop::Performance::Detect::INDEX_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#38 +RuboCop::Cop::Performance::Detect::INDEX_REVERSE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#35 +RuboCop::Cop::Performance::Detect::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#39 +RuboCop::Cop::Performance::Detect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#36 +RuboCop::Cop::Performance::Detect::REVERSE_MSG = T.let(T.unsafe(nil), String) + +# Checks for double `#start_with?` or `#end_with?` calls +# separated by `||`. In some cases such calls can be replaced +# with an single `#start_with?`/`#end_with?` call. +# +# `IncludeActiveSupportAliases` configuration option is used to check for +# `starts_with?` and `ends_with?`. These methods are defined by Active Support. +# +# @example +# # bad +# str.start_with?("a") || str.start_with?(Some::CONST) +# str.start_with?("a", "b") || str.start_with?("c") +# str.end_with?(var1) || str.end_with?(var2) +# +# # good +# str.start_with?("a", Some::CONST) +# str.start_with?("a", "b", "c") +# str.end_with?(var1, var2) +# @example IncludeActiveSupportAliases: false (default) +# # good +# str.starts_with?("a", "b") || str.starts_with?("c") +# str.ends_with?(var1) || str.ends_with?(var2) +# +# str.starts_with?("a", "b", "c") +# str.ends_with?(var1, var2) +# @example IncludeActiveSupportAliases: true +# # bad +# str.starts_with?("a", "b") || str.starts_with?("c") +# str.ends_with?(var1) || str.ends_with?(var2) +# +# # good +# str.starts_with?("a", "b", "c") +# str.ends_with?(var1, var2) +# +# source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#41 +class RuboCop::Cop::Performance::DoubleStartEndWith < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#96 + def check_with_active_support_aliases(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#46 + def on_or(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#90 + def two_start_end_with_calls(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#60 + def autocorrect(corrector, first_call_args, second_call_args, combined_args); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#86 + def check_for_active_support_aliases?; end + + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#82 + def combine_args(first_call_args, second_call_args); end + + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#76 + def message(node, receiver, method, combined_args); end + + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#68 + def process_source(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#44 +RuboCop::Cop::Performance::DoubleStartEndWith::MSG = T.let(T.unsafe(nil), String) + +# Identifies unnecessary use of a regex where `String#end_with?` would suffice. +# +# This cop has `SafeMultiline` configuration option that `true` by default because +# `end$` is unsafe as it will behave incompatible with `end_with?` +# for receiver is multiline string. +# +# @example +# # bad +# 'abc'.match?(/bc\Z/) +# /bc\Z/.match?('abc') +# 'abc' =~ /bc\Z/ +# /bc\Z/ =~ 'abc' +# 'abc'.match(/bc\Z/) +# /bc\Z/.match('abc') +# +# # good +# 'abc'.end_with?('bc') +# @example SafeMultiline: true (default) +# +# # good +# 'abc'.match?(/bc$/) +# /bc$/.match?('abc') +# 'abc' =~ /bc$/ +# /bc$/ =~ 'abc' +# 'abc'.match(/bc$/) +# /bc$/.match('abc') +# @example SafeMultiline: false +# +# # bad +# 'abc'.match?(/bc$/) +# /bc$/.match?('abc') +# 'abc' =~ /bc$/ +# /bc$/ =~ 'abc' +# 'abc'.match(/bc$/) +# /bc$/.match('abc') +# +# source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#49 +class RuboCop::Cop::Performance::EndWith < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RegexpMetacharacter + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#63 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#63 + def on_match_with_lvasgn(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#63 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#56 + def redundant_regex?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#53 +RuboCop::Cop::Performance::EndWith::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#54 +RuboCop::Cop::Performance::EndWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Do not compute the size of statically sized objects. +# +# @example +# # String methods +# # bad +# 'foo'.size +# %q[bar].count +# %(qux).length +# +# # Symbol methods +# # bad +# :fred.size +# :'baz'.length +# +# # Array methods +# # bad +# [1, 2, thud].count +# %W(1, 2, bar).size +# +# # Hash methods +# # bad +# { a: corge, b: grault }.length +# +# # good +# foo.size +# bar.count +# qux.length +# +# # good +# :"#{fred}".size +# CONST = :baz.length +# +# # good +# [1, 2, *thud].count +# garply = [1, 2, 3] +# garply.size +# +# # good +# { a: corge, **grault }.length +# waldo = { a: corge, b: grault } +# waldo.size +# +# source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#48 +class RuboCop::Cop::Performance::FixedSize < ::RuboCop::Cop::Base + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#52 + def counter(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#56 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#56 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#73 + def allowed_argument?(arg); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#77 + def allowed_parent?(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#69 + def allowed_variable?(var); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#87 + def contains_double_splat?(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#81 + def contains_splat?(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#93 + def non_string_argument?(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#49 +RuboCop::Cop::Performance::FixedSize::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#50 +RuboCop::Cop::Performance::FixedSize::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies usages of `map { ... }.flatten` and +# change them to use `flat_map { ... }` instead. +# +# @example +# # bad +# [1, 2, 3, 4].map { |e| [e, e] }.flatten(1) +# [1, 2, 3, 4].collect { |e| [e, e] }.flatten(1) +# +# # good +# [1, 2, 3, 4].flat_map { |e| [e, e] } +# [1, 2, 3, 4].map { |e| [e, e] }.flatten +# [1, 2, 3, 4].collect { |e| [e, e] }.flatten +# +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#18 +class RuboCop::Cop::Performance::FlatMap < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#28 + def flat_map_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#39 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#39 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#73 + def autocorrect(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#53 + def offense_for_levels(node, map_node, first_method, flatten); end + + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#59 + def offense_for_method(node, map_node, first_method, flatten); end + + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#63 + def register_offense(node, map_node, first_method, flatten, message); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#24 +RuboCop::Cop::Performance::FlatMap::FLATTEN_MULTIPLE_LEVELS = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#22 +RuboCop::Cop::Performance::FlatMap::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#23 +RuboCop::Cop::Performance::FlatMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for inefficient searching of keys and values within +# hashes. +# +# `Hash#keys.include?` is less efficient than `Hash#key?` because +# the former allocates a new array and then performs an O(n) search +# through that array, while `Hash#key?` does not allocate any array and +# performs a faster O(1) search for the key. +# +# `Hash#values.include?` is less efficient than `Hash#value?`. While they +# both perform an O(n) search through all of the values, calling `values` +# allocates a new array while using `value?` does not. +# +# @example +# # bad +# { a: 1, b: 2 }.keys.include?(:a) +# { a: 1, b: 2 }.keys.include?(:z) +# h = { a: 1, b: 2 }; h.keys.include?(100) +# +# # good +# { a: 1, b: 2 }.key?(:a) +# { a: 1, b: 2 }.has_key?(:z) +# h = { a: 1, b: 2 }; h.key?(100) +# +# # bad +# { a: 1, b: 2 }.values.include?(2) +# { a: 1, b: 2 }.values.include?('garbage') +# h = { a: 1, b: 2 }; h.values.include?(nil) +# +# # good +# { a: 1, b: 2 }.value?(2) +# { a: 1, b: 2 }.has_value?('garbage') +# h = { a: 1, b: 2 }; h.value?(nil) +# +# source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#42 +class RuboCop::Cop::Performance::InefficientHashSearch < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#47 + def inefficient_include?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#51 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#51 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#91 + def correct_argument(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#99 + def correct_dot(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#95 + def correct_hash_expression(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#75 + def correct_method(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#82 + def current_method(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#67 + def message(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#71 + def replacement(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#86 + def use_long_method; end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#45 +RuboCop::Cop::Performance::InefficientHashSearch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where inefficient `readlines` method +# can be replaced by `each_line` to avoid fully loading file content into memory. +# +# @example +# +# # bad +# File.readlines('testfile').each { |l| puts l } +# IO.readlines('testfile', chomp: true).each { |l| puts l } +# +# conn.readlines(10).map { |l| l.size } +# file.readlines.find { |l| l.start_with?('#') } +# file.readlines.each { |l| puts l } +# +# # good +# File.open('testfile', 'r').each_line { |l| puts l } +# IO.open('testfile').each_line(chomp: true) { |l| puts l } +# +# conn.each_line(10).map { |l| l.size } +# file.each_line.find { |l| l.start_with?('#') } +# file.each_line { |l| puts l } +# +# source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#27 +class RuboCop::Cop::Performance::IoReadlines < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#42 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#34 + def readlines_on_class?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#38 + def readlines_on_instance?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#58 + def autocorrect(corrector, enumerable_call, readlines_call, receiver); end + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#90 + def build_bad_method(enumerable_call); end + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#106 + def build_call_args(call_args_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#82 + def build_good_method(enumerable_call); end + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#94 + def correction_range(enumerable_call, readlines_call); end + + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#76 + def offense_range(enumerable_call, readlines_call); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#31 +RuboCop::Cop::Performance::IoReadlines::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#32 +RuboCop::Cop::Performance::IoReadlines::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# In Ruby 2.7, `Enumerable#filter_map` has been added. +# +# This cop identifies places where `map { ... }.compact` can be replaced by `filter_map`. +# +# [source,ruby] +# ---- +# [true, false, nil].compact #=> [true, false] +# [true, false, nil].filter_map(&:itself) #=> [true] +# ---- +# +# @example +# # bad +# ary.map(&:foo).compact +# ary.collect(&:foo).compact +# +# # good +# ary.filter_map(&:foo) +# ary.map(&:foo).compact! +# ary.compact.map(&:foo) +# +# source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#31 +class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#41 + def map_compact(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#54 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#54 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#95 + def compact_method_with_final_newline_range(compact_method_range); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#91 + def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#87 + def map_method_and_compact_method_on_same_line?(map_node, compact_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#69 + def remove_compact_method(corrector, map_node, compact_node, chained_method); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#83 + def use_dot?(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#36 +RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#37 +RuboCop::Cop::Performance::MapCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks if the map method is used in a chain. +# +# Autocorrection is not supported because an appropriate block variable name cannot be determined automatically. +# +# [source,ruby] +# ---- +# class X +# def initialize +# @@num = 0 +# end +# +# def foo +# @@num += 1 +# self +# end +# +# def bar +# @@num * 2 +# end +# end +# +# [X.new, X.new].map(&:foo).map(&:bar) # => [4, 4] +# [X.new, X.new].map { |x| x.foo.bar } # => [2, 4] +# ---- +# +# @example +# +# # bad +# array.map(&:foo).map(&:bar) +# +# # good +# array.map { |item| item.foo.bar } +# +# source://rubocop-performance//lib/rubocop/cop/performance/map_method_chain.rb#43 +class RuboCop::Cop::Performance::MapMethodChain < ::RuboCop::Cop::Base + # source://rubocop-performance//lib/rubocop/cop/performance/map_method_chain.rb#49 + def block_pass_with_symbol_arg?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/map_method_chain.rb#53 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/map_method_chain.rb#72 + def find_begin_of_chained_map_method(node, map_args); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/map_method_chain.rb#46 +RuboCop::Cop::Performance::MapMethodChain::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/map_method_chain.rb#47 +RuboCop::Cop::Performance::MapMethodChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where methods are converted to blocks, with the +# use of `&method`, and passed as arguments to method calls. +# It is faster to replace those with explicit blocks, calling those methods inside. +# +# @example +# # bad +# array.map(&method(:do_something)) +# [1, 2, 3].each(&out.method(:puts)) +# +# # good +# array.map { |x| do_something(x) } +# [1, 2, 3].each { |x| out.puts(x) } +# +# source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#19 +class RuboCop::Cop::Performance::MethodObjectAsBlock < ::RuboCop::Cop::Base + # source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#22 + def method_object_as_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#26 + def on_block_pass(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#20 +RuboCop::Cop::Performance::MethodObjectAsBlock::MSG = T.let(T.unsafe(nil), String) + +# Checks for `OpenStruct.new` calls. +# Instantiation of an `OpenStruct` invalidates +# Ruby global method cache as it causes dynamic method +# definition during program runtime. +# This could have an effect on performance, +# especially in case of single-threaded +# applications with multiple `OpenStruct` instantiations. +# +# @example +# # bad +# class MyClass +# def my_method +# OpenStruct.new(my_key1: 'my_value1', my_key2: 'my_value2') +# end +# end +# +# # good +# class MyClass +# MyStruct = Struct.new(:my_key1, :my_key2) +# def my_method +# MyStruct.new('my_value1', 'my_value2') +# end +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#34 +class RuboCop::Cop::Performance::OpenStruct < ::RuboCop::Cop::Base + # source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#42 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#38 + def open_struct(param0 = T.unsafe(nil)); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#35 +RuboCop::Cop::Performance::OpenStruct::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#36 +RuboCop::Cop::Performance::OpenStruct::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies uses of `Range#include?` and `Range#member?`, which iterates over each +# item in a `Range` to see if a specified item is there. In contrast, +# `Range#cover?` simply compares the target item with the beginning and +# end points of the `Range`. In a great majority of cases, this is what +# is wanted. +# +# @example +# # bad +# ('a'..'z').include?('b') # => true +# ('a'..'z').member?('b') # => true +# +# # good +# ('a'..'z').cover?('b') # => true +# +# source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#29 +class RuboCop::Cop::Performance::RangeInclude < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#44 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#44 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#40 + def range_include(param0 = T.unsafe(nil)); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#32 +RuboCop::Cop::Performance::RangeInclude::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#33 +RuboCop::Cop::Performance::RangeInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies the use of a `&block` parameter and `block.call` +# where `yield` would do just as well. +# +# @example +# # bad +# def method(&block) +# block.call +# end +# def another(&func) +# func.call 1, 2, 3 +# end +# +# # good +# def method +# yield +# end +# def another +# yield 1, 2, 3 +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#25 +class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#43 + def blockarg_assigned?(param0, param1); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#39 + def blockarg_calls(param0, param1); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#34 + def blockarg_def(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#47 + def on_def(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#47 + def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#99 + def args_include_block_pass?(blockcall); end + + # offenses are registered on the `block.call` nodes + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#65 + def autocorrect(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#83 + def calls_to_report(argname, body); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#93 + def shadowed_block_argument?(body, block_argument_of_method_signature); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#31 +RuboCop::Cop::Performance::RedundantBlockCall::CLOSE_PAREN = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#28 +RuboCop::Cop::Performance::RedundantBlockCall::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#30 +RuboCop::Cop::Performance::RedundantBlockCall::OPEN_PAREN = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#32 +RuboCop::Cop::Performance::RedundantBlockCall::SPACE = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#29 +RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String) + +# Checks for uses `Enumerable#all?`, `Enumerable#any?`, `Enumerable#one?`, +# and `Enumerable#none?` are compared with `===` or similar methods in block. +# +# By default, `Object#===` behaves the same as `Object#==`, but this +# behavior is appropriately overridden in subclass. For example, +# `Range#===` returns `true` when argument is within the range. +# +# This cop has `AllowRegexpMatch` option and it is true by default because +# `regexp.match?('string')` often used in block changes to the opposite result: +# +# [source,ruby] +# ---- +# [/pattern/].all? { |regexp| regexp.match?('pattern') } # => true +# [/pattern/].all? { |regexp| regexp =~ 'pattern' } # => true +# [/pattern/].all?('pattern') # => false +# ---- +# +# @example +# # bad +# items.all? { |item| pattern === item } +# items.all? { |item| item == other } +# items.all? { |item| item.is_a?(Klass) } +# items.all? { |item| item.kind_of?(Klass) } +# +# # good +# items.all?(pattern) +# items.all?(Klass) +# @example AllowRegexpMatch: true (default) +# +# # good +# items.all? { |item| item =~ pattern } +# items.all? { |item| item.match?(pattern) } +# @example AllowRegexpMatch: false +# +# # bad +# items.all? { |item| item =~ pattern } +# items.all? { |item| item.match?(pattern) } +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#49 +class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#62 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#131 + def allow_regexp_match?; end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#104 + def new_argument(block_argument, block_body); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#127 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#82 + def one_block_argument?(block_arguments); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#94 + def same_block_argument_and_is_a_argument?(block_body, block_argument); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#118 + def use_block_argument_in_method_argument_of_operand?(block_argument, operand); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#86 + def use_equality_comparison_block?(block_body); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#58 +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::COMPARISON_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#60 +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::IS_A_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#55 +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#59 +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::REGEXP_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#57 +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T.let(T.unsafe(nil), Array) + +# Identifies the use of `Regexp#match` or `String#match`, which +# returns `#`/`nil`. The return value of `=~` is an integral +# index/`nil` and is more performant. +# +# @example +# # bad +# do_something if str.match(/regex/) +# while regex.match('str') +# do_something +# end +# +# # good +# method(str =~ /regex/) +# return value unless regex =~ 'str' +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#20 +class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#30 + def match_call?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#39 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#35 + def only_truthiness_matters?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#51 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#57 + def autocorrectable?(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#86 + def call_like?(arg); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#63 + def replacement(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#73 + def requires_parentheses?(arg); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#80 + def requires_parentheses_for_call_like?(arg); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#26 +RuboCop::Cop::Performance::RedundantMatch::HIGHER_PRECEDENCE_OPERATOR_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#23 +RuboCop::Cop::Performance::RedundantMatch::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#24 +RuboCop::Cop::Performance::RedundantMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `Hash#merge!` can be replaced by `Hash#[]=`. +# You can set the maximum number of key-value pairs to consider +# an offense with `MaxKeyValuePairs`. +# +# @example +# # bad +# hash.merge!(a: 1) +# hash.merge!({'key' => 'value'}) +# +# # good +# hash[:a] = 1 +# hash['key'] = 'value' +# @example MaxKeyValuePairs: 2 (default) +# # bad +# hash.merge!(a: 1, b: 2) +# +# # good +# hash[:a] = 1 +# hash[:b] = 2 +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#30 +class RuboCop::Cop::Performance::RedundantMerge < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Alignment + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#48 + def modifier_flow_control?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#52 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#44 + def redundant_merge_candidate(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#106 + def correct_multiple_elements(corrector, node, parent, new_source); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#118 + def correct_single_element(corrector, node, new_source); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#79 + def each_redundant_merge(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#98 + def kwsplat_used?(pairs); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#146 + def leading_spaces(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#150 + def max_key_value_pairs; end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#71 + def message(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#87 + def non_redundant_merge?(node, receiver, pairs); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#94 + def non_redundant_pairs?(receiver, pairs); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#102 + def non_redundant_value_used?(receiver, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#132 + def rewrite_with_modifier(node, parent, new_source); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#122 + def to_assignments(receiver, pairs); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#34 +RuboCop::Cop::Performance::RedundantMerge::AREF_ASGN = T.let(T.unsafe(nil), String) + +# A utility class for checking the use of values within an +# `each_with_object` call. +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#156 +class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector + extend ::RuboCop::AST::NodePattern::Macros + + # @return [EachWithObjectInspector] a new instance of EachWithObjectInspector + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#159 + def initialize(node, receiver); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#190 + def each_with_object_node(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#164 + def value_used?; end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#174 + def eligible_receiver?; end + + # Returns the value of attribute node. + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#172 + def node; end + + # Returns the value of attribute receiver. + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#172 + def receiver; end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#178 + def second_argument; end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#185 + def unwind(receiver); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#35 +RuboCop::Cop::Performance::RedundantMerge::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#36 +RuboCop::Cop::Performance::RedundantMerge::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#38 +RuboCop::Cop::Performance::RedundantMerge::WITH_MODIFIER_CORRECTION = T.let(T.unsafe(nil), String) + +# Identifies places where `sort { |a, b| a <=> b }` can be replaced with `sort`. +# +# @example +# # bad +# array.sort { |a, b| a <=> b } +# +# # good +# array.sort +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#15 +class RuboCop::Cop::Performance::RedundantSortBlock < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SortBlock + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#21 + def on_block(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#29 + def on_numblock(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#40 + def register_offense(send, node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#19 +RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String) + +# Identifies places where `split` argument can be replaced from +# a deterministic regexp to a string. +# +# @example +# # bad +# 'a,b,c'.split(/,/) +# +# # good +# 'a,b,c'.split(',') +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#15 +class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#27 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#27 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#23 + def split_call_with_regexp?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#42 + def determinist_regexp?(regexp_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#46 + def replacement(regexp_node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#20 +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#18 +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#19 +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#21 +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array) + +# Checks for redundant `String#chars`. +# +# @example +# # bad +# str.chars[0..2] +# str.chars.slice(0..2) +# str.chars.last +# +# # good +# str[0..2].chars +# +# # bad +# str.chars.first +# str.chars.first(2) +# +# # good +# str[0] +# str[0...2].chars +# str[-1] +# +# # bad +# str.chars.take(2) +# str.chars.length +# str.chars.size +# str.chars.empty? +# +# # good +# str[0...2].chars +# str.length +# str.size +# str.empty? +# +# # For example, if the receiver is an empty string, it will be incompatible. +# # If a negative value is specified for the receiver, `nil` is returned. +# str.chars.last(2) # Incompatible with `str[-2..-1].chars`. +# str.chars.drop(2) # Incompatible with `str[2..-1].chars`. +# +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#43 +class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#54 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#50 + def redundant_chars_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#112 + def build_bad_method(method, args); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#125 + def build_call_args(call_args_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#85 + def build_good_method(method, args); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#100 + def build_good_method_for_brackets_or_first_method(method, args); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#79 + def build_message(method, args); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#75 + def correction_range(receiver, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#71 + def offense_range(receiver, node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#47 +RuboCop::Cop::Performance::RedundantStringChars::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#48 +RuboCop::Cop::Performance::RedundantStringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# In Ruby 2.4, `String#match?`, `Regexp#match?`, and `Symbol#match?` +# have been added. The methods are faster than `match`. +# Because the methods avoid creating a `MatchData` object or saving +# backref. +# So, when `MatchData` is not used, use `match?` instead of `match`. +# +# @example +# # bad +# def foo +# if x =~ /re/ +# do_something +# end +# end +# +# # bad +# def foo +# if x !~ /re/ +# do_something +# end +# end +# +# # bad +# def foo +# if x.match(/re/) +# do_something +# end +# end +# +# # bad +# def foo +# if /re/ === x +# do_something +# end +# end +# +# # good +# def foo +# if x.match?(/re/) +# do_something +# end +# end +# +# # good +# def foo +# if !x.match?(/re/) +# do_something +# end +# end +# +# # good +# def foo +# if x =~ /re/ +# do_something(Regexp.last_match) +# end +# end +# +# # good +# def foo +# if x.match(/re/) +# do_something($~) +# end +# end +# +# # good +# def foo +# if /re/ === x +# do_something($~) +# end +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#75 +class RuboCop::Cop::Performance::RegexpMatch < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#125 + def last_matches(param0); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#86 + def match_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#122 + def match_node?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#97 + def match_operator?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#101 + def match_threequals?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#93 + def match_with_int_arg_method?(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#105 + def match_with_lvasgn?(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#142 + def on_case(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#138 + def on_if(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#123 + def search_match_nodes(param0); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#165 + def autocorrect(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#154 + def check_condition(cond); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#250 + def correct_operator(corrector, recv, arg, oper = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#221 + def find_last_match(body, range, scope_root); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#181 + def last_match_used?(match_node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#246 + def match_gvar?(sym); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#177 + def message(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#217 + def modifier_form?(match_node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#203 + def next_match_pos(body, match_node_pos, scope_root); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#190 + def range_to_search_for_last_matches(match_node, body, scope_root); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#259 + def replace_with_match_predicate_method(corrector, recv, arg, op_range); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#228 + def scope_body(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#240 + def scope_root(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#270 + def swap_receiver_and_arg(corrector, recv, arg); end + + class << self + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#134 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#112 +RuboCop::Cop::Performance::RegexpMatch::MATCH_NODE_PATTERN = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#84 +RuboCop::Cop::Performance::RegexpMatch::MSG = T.let(T.unsafe(nil), String) + +# Constants are included in this list because it is unlikely that +# someone will store `nil` as a constant and then use it for comparison +# +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#83 +RuboCop::Cop::Performance::RegexpMatch::TYPES_IMPLEMENTING_MATCH = T.let(T.unsafe(nil), Array) + +# Identifies usages of `reverse.each` and change them to use `reverse_each` instead. +# +# If the return value is used, it will not be detected because the result will be different. +# +# [source,ruby] +# ---- +# [1, 2, 3].reverse.each {} #=> [3, 2, 1] +# [1, 2, 3].reverse_each {} #=> [1, 2, 3] +# ---- +# +# @example +# # bad +# items.reverse.each +# +# # good +# items.reverse_each +# +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#22 +class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#33 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#33 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#29 + def reverse_each?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#54 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#48 + def use_return_value?(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#26 +RuboCop::Cop::Performance::ReverseEach::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#27 +RuboCop::Cop::Performance::ReverseEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `reverse.first(n)` and `reverse.first` +# can be replaced by `last(n).reverse` and `last`. +# +# @example +# +# # bad +# array.reverse.first(5) +# array.reverse.first +# +# # good +# array.last(5).reverse +# array.last +# +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#19 +class RuboCop::Cop::Performance::ReverseFirst < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#30 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#30 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#26 + def reverse_first_candidate?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#56 + def build_good_method(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#50 + def build_message(node, range); end + + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#46 + def correction_range(receiver, node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#23 +RuboCop::Cop::Performance::ReverseFirst::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#24 +RuboCop::Cop::Performance::ReverseFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# In Ruby 2.7, `Enumerable#filter_map` has been added. +# +# This cop identifies places where `select.map` can be replaced by `filter_map`. +# +# @example +# # bad +# ary.select(&:foo).map(&:bar) +# ary.filter(&:foo).map(&:bar) +# +# # good +# ary.filter_map { |o| o.bar if o.foo } +# +# source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#18 +class RuboCop::Cop::Performance::SelectMap < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#27 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#27 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#41 + def map_method_candidate(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#51 + def offense_range(node, map_method); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#24 +RuboCop::Cop::Performance::SelectMap::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#25 +RuboCop::Cop::Performance::SelectMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies usages of `count` on an `Array` and `Hash` and change them to `size`. +# +# TODO: Add advanced detection of variables that could +# have been assigned to an array or a hash. +# +# @example +# # bad +# [1, 2, 3].count +# (1..3).to_a.count +# Array[*1..3].count +# Array(1..3).count +# +# # bad +# {a: 1, b: 2, c: 3}.count +# [[:foo, :bar], [1, 2]].to_h.count +# Hash[*('a'..'z')].count +# Hash(key: :value).count +# +# # good +# [1, 2, 3].size +# (1..3).to_a.size +# Array[*1..3].size +# Array(1..3).size +# +# # good +# {a: 1, b: 2, c: 3}.size +# [[:foo, :bar], [1, 2]].to_h.size +# Hash[*('a'..'z')].size +# Hash(key: :value).size +# +# # good +# [1, 2, 3].count { |e| e > 2 } +# +# source://rubocop-performance//lib/rubocop/cop/performance/size.rb#37 +class RuboCop::Cop::Performance::Size < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#43 + def array?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#61 + def count?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#52 + def hash?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#65 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#65 + def on_send(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/size.rb#40 +RuboCop::Cop::Performance::Size::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/size.rb#41 +RuboCop::Cop::Performance::Size::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `sort { |a, b| b <=> a }` +# can be replaced by a faster `sort.reverse`. +# +# @example +# # bad +# array.sort { |a, b| b <=> a } +# +# # good +# array.sort.reverse +# +# source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#16 +class RuboCop::Cop::Performance::SortReverse < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::SortBlock + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#22 + def on_block(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#30 + def on_numblock(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#42 + def register_offense(send, node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#20 +RuboCop::Cop::Performance::SortReverse::MSG = T.let(T.unsafe(nil), String) + +# Identifies places where `gsub(/a+/, 'a')` and `gsub!(/a+/, 'a')` +# can be replaced by `squeeze('a')` and `squeeze!('a')`. +# +# The `squeeze('a')` method is faster than `gsub(/a+/, 'a')`. +# +# @example +# +# # bad +# str.gsub(/a+/, 'a') +# str.gsub!(/a+/, 'a') +# +# # good +# str.squeeze('a') +# str.squeeze!('a') +# +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#21 +class RuboCop::Cop::Performance::Squeeze < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#39 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#39 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#29 + def squeeze_candidate?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#61 + def repeating_literal?(regex_str); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#24 +RuboCop::Cop::Performance::Squeeze::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#27 +RuboCop::Cop::Performance::Squeeze::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#25 +RuboCop::Cop::Performance::Squeeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies unnecessary use of a regex where `String#start_with?` would suffice. +# +# This cop has `SafeMultiline` configuration option that `true` by default because +# `^start` is unsafe as it will behave incompatible with `start_with?` +# for receiver is multiline string. +# +# @example +# # bad +# 'abc'.match?(/\Aab/) +# /\Aab/.match?('abc') +# 'abc' =~ /\Aab/ +# /\Aab/ =~ 'abc' +# 'abc'.match(/\Aab/) +# /\Aab/.match('abc') +# +# # good +# 'abc'.start_with?('ab') +# @example SafeMultiline: true (default) +# +# # good +# 'abc'.match?(/^ab/) +# /^ab/.match?('abc') +# 'abc' =~ /^ab/ +# /^ab/ =~ 'abc' +# 'abc'.match(/^ab/) +# /^ab/.match('abc') +# @example SafeMultiline: false +# +# # bad +# 'abc'.match?(/^ab/) +# /^ab/.match?('abc') +# 'abc' =~ /^ab/ +# /^ab/ =~ 'abc' +# 'abc'.match(/^ab/) +# /^ab/.match('abc') +# +# source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#49 +class RuboCop::Cop::Performance::StartWith < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RegexpMetacharacter + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#63 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#63 + def on_match_with_lvasgn(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#63 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#56 + def redundant_regex?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#53 +RuboCop::Cop::Performance::StartWith::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#54 +RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where string identifier argument can be replaced +# by symbol identifier argument. +# It prevents the redundancy of the internal string-to-symbol conversion. +# +# This cop targets methods that take identifier (e.g. method name) argument +# and the following examples are parts of it. +# +# @example +# +# # bad +# send('do_something') +# attr_accessor 'do_something' +# instance_variable_get('@ivar') +# respond_to?("string_#{interpolation}") +# +# # good +# send(:do_something) +# attr_accessor :do_something +# instance_variable_get(:@ivar) +# respond_to?(:"string_#{interpolation}") +# +# # good - these methods don't support namespaced symbols +# const_get("#{module_path}::Base") +# const_source_location("#{module_path}::Base") +# const_defined?("#{module_path}::Base") +# +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#33 +class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#64 + def on_send(node); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#105 + def argument_replacement(node, value); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#95 + def register_offense(argument, argument_value); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#89 + def string_argument_compatible?(argument, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#77 + def string_arguments(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#38 +RuboCop::Cop::Performance::StringIdentifierArgument::COMMAND_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#43 +RuboCop::Cop::Performance::StringIdentifierArgument::INTERPOLATION_IGNORE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#36 +RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#46 +RuboCop::Cop::Performance::StringIdentifierArgument::MULTIPLE_ARGUMENTS_METHODS = T.let(T.unsafe(nil), Array) + +# NOTE: `attr` method is not included in this list as it can cause false positives in Nokogiri API. +# And `attr` may not be used because `Style/Attr` registers an offense. +# https://github.com/rubocop/rubocop-performance/issues/278 +# +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#54 +RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#45 +RuboCop::Cop::Performance::StringIdentifierArgument::TWO_ARGUMENTS_METHOD = T.let(T.unsafe(nil), Symbol) + +# Identifies unnecessary use of a regex where `String#include?` would suffice. +# +# @example +# # bad +# str.match?(/ab/) +# /ab/.match?(str) +# str =~ /ab/ +# /ab/ =~ str +# str.match(/ab/) +# /ab/.match(str) +# /ab/ === str +# +# # good +# str.include?('ab') +# +# source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#23 +class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#37 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#37 + def on_match_with_lvasgn(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#37 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#29 + def redundant_regex?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#59 + def literal?(regex_str); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#26 +RuboCop::Cop::Performance::StringInclude::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#27 +RuboCop::Cop::Performance::StringInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `gsub` can be replaced by `tr` or `delete`. +# +# @example +# # bad +# 'abc'.gsub('b', 'd') +# 'abc'.gsub('a', '') +# 'abc'.gsub(/a/, 'd') +# 'abc'.gsub!('a', 'd') +# +# # good +# 'abc'.gsub(/.*/, 'a') +# 'abc'.gsub(/a+/, 'd') +# 'abc'.tr('b', 'd') +# 'a b c'.delete(' ') +# +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#20 +class RuboCop::Cop::Performance::StringReplacement < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#37 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#37 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#31 + def string_replacement?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#84 + def accept_first_param?(first_param); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#79 + def accept_second_param?(second_param); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#60 + def autocorrect(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#100 + def first_source(first_param); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#143 + def message(node, first_source, second_source); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#149 + def method_suffix(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#49 + def offense(node, first_param, second_param); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#129 + def range(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#153 + def remove_second_param(corrector, node, first_param); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#70 + def replace_method(corrector, node, first_source, second_source, first_param); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#133 + def replacement_method(node, first_source, second_source); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#118 + def source_from_regex_constructor(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#111 + def source_from_regex_literal(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#29 +RuboCop::Cop::Performance::StringReplacement::BANG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#27 +RuboCop::Cop::Performance::StringReplacement::DELETE = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#26 +RuboCop::Cop::Performance::StringReplacement::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#24 +RuboCop::Cop::Performance::StringReplacement::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#25 +RuboCop::Cop::Performance::StringReplacement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#28 +RuboCop::Cop::Performance::StringReplacement::TR = T.let(T.unsafe(nil), String) + +# Identifies places where custom code finding the sum of elements +# in some Enumerable object can be replaced by `Enumerable#sum` method. +# +# @example OnlySumOrWithInitialValue: false (default) +# # bad +# [1, 2, 3].inject(:+) # Autocorrections for cases without initial value are unsafe +# [1, 2, 3].inject(&:+) # and will only be performed when using the `-A` option. +# [1, 2, 3].reduce { |acc, elem| acc + elem } # They can be prohibited completely using `SafeAutoCorrect: true`. +# [1, 2, 3].reduce(10, :+) +# [1, 2, 3].map { |elem| elem ** 2 }.sum +# [1, 2, 3].collect(&:count).sum(10) +# +# # good +# [1, 2, 3].sum +# [1, 2, 3].sum(10) +# [1, 2, 3].sum { |elem| elem ** 2 } +# [1, 2, 3].sum(10, &:count) +# @example OnlySumOrWithInitialValue: true +# # bad +# [1, 2, 3].reduce(10, :+) +# [1, 2, 3].map { |elem| elem ** 2 }.sum +# [1, 2, 3].collect(&:count).sum(10) +# +# # good +# [1, 2, 3].sum(10) +# [1, 2, 3].sum { |elem| elem ** 2 } +# [1, 2, 3].sum(10, &:count) +# +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#70 +class RuboCop::Cop::Performance::Sum < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#102 + def acc_plus_elem?(param0 = T.unsafe(nil), param1, param2); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#102 + def elem_plus_acc?(param0 = T.unsafe(nil), param1, param2); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#115 + def on_block(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#107 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#107 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#82 + def sum_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#86 + def sum_map_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#95 + def sum_with_block_candidate?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#160 + def array_literal?(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#165 + def autocorrect(corrector, init, range); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#173 + def autocorrect_sum_map(corrector, sum, map, init); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#250 + def build_block_bad_method(method, init, var_acc, var_elem, body); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#217 + def build_block_message(send, init, var_acc, var_elem, body); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#223 + def build_good_method(init, block_pass = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#236 + def build_method_bad_method(init, method, operation); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#198 + def build_method_message(node, method, init, operation); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#209 + def build_sum_map_message(send_node, init); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#155 + def empty_array_literal?(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#130 + def handle_sum_candidate(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#143 + def handle_sum_map_candidate(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#261 + def method_call_with_args_range(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#194 + def sum_block_range(send, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#190 + def sum_map_range(map, sum); end + + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#186 + def sum_method_range(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#77 +RuboCop::Cop::Performance::Sum::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#78 +RuboCop::Cop::Performance::Sum::MSG_IF_NO_INIT_VALUE = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#80 +RuboCop::Cop::Performance::Sum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for .times.map calls. +# In most cases such calls can be replaced +# with an explicit array creation. +# +# @example +# # bad +# 9.times.map do |i| +# i.to_s +# end +# +# # good +# Array.new(9) do |i| +# i.to_s +# end +# +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#32 +class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#44 + def on_block(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#39 + def on_csend(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#44 + def on_numblock(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#39 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#79 + def times_map_call(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#51 + def check(node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#63 + def handleable_receiver?(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#70 + def message(map_or_collect, count); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#35 +RuboCop::Cop::Performance::TimesMap::MESSAGE = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#36 +RuboCop::Cop::Performance::TimesMap::MESSAGE_ONLY_IF = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#37 +RuboCop::Cop::Performance::TimesMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# In Ruby 2.3 or later, use unary plus operator to unfreeze a string +# literal instead of `String#dup` and `String.new`. +# Unary plus operator is faster than `String#dup`. +# +# @example +# # bad +# ''.dup # when Ruby 3.2 or lower +# "something".dup # when Ruby 3.2 or lower +# String.new +# String.new('') +# String.new('something') +# +# # good +# +'something' +# +'' +# +# source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#27 +class RuboCop::Cop::Performance::UnfreezeString < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#36 + def dup_string?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#47 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#40 + def string_new?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#60 + def string_value(node); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#33 +RuboCop::Cop::Performance::UnfreezeString::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#34 +RuboCop::Cop::Performance::UnfreezeString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `URI::Parser.new` can be replaced by `URI::DEFAULT_PARSER`. +# +# @example +# # bad +# URI::Parser.new +# +# # good +# URI::DEFAULT_PARSER +# +# source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#15 +class RuboCop::Cop::Performance::UriDefaultParser < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#27 + def on_send(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#21 + def uri_parser_new?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#18 +RuboCop::Cop::Performance::UriDefaultParser::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#19 +RuboCop::Cop::Performance::UriDefaultParser::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Common functionality for handling regexp metacharacters. +# +# source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#6 +module RuboCop::Cop::RegexpMetacharacter + private + + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#63 + def drop_end_metacharacter(regexp_string); end + + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#55 + def drop_start_metacharacter(regexp_string); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#15 + def literal_at_end?(regexp); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#41 + def literal_at_end_with_backslash_z?(regex_str); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#48 + def literal_at_end_with_dollar?(regex_str); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#9 + def literal_at_start?(regexp); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#21 + def literal_at_start_with_backslash_a?(regex_str); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#31 + def literal_at_start_with_caret?(regex_str); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#71 + def safe_multiline?; end +end + +# Common functionality for cops checking `Enumerable#sort` blocks. +# +# source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#6 +module RuboCop::Cop::SortBlock + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#24 + def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end + + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#10 + def sort_with_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#17 + def sort_with_numblock?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#30 + def sort_range(send, node); end +end + +# RuboCop Performance project namespace +# +# source://rubocop-performance//lib/rubocop/performance.rb#5 +module RuboCop::Performance; end + +# source://rubocop-performance//lib/rubocop/performance.rb#8 +RuboCop::Performance::CONFIG = T.let(T.unsafe(nil), Hash) + +# source://rubocop-performance//lib/rubocop/performance.rb#7 +RuboCop::Performance::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) + +# Because RuboCop doesn't yet support plugins, we have to monkey patch in a +# bit of our configuration. +# +# source://rubocop-performance//lib/rubocop/performance/inject.rb#7 +module RuboCop::Performance::Inject + class << self + # source://rubocop-performance//lib/rubocop/performance/inject.rb#8 + def defaults!; end + end +end + +# source://rubocop-performance//lib/rubocop/performance.rb#6 +RuboCop::Performance::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) + +# This module holds the RuboCop Performance version information. +# +# source://rubocop-performance//lib/rubocop/performance/version.rb#6 +module RuboCop::Performance::Version + class << self + # source://rubocop-performance//lib/rubocop/performance/version.rb#9 + def document_version; end + end +end + +# source://rubocop-performance//lib/rubocop/performance/version.rb#7 +RuboCop::Performance::Version::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rubocop-rails@2.26.0.rbi b/sorbet/rbi/gems/rubocop-rails@2.26.0.rbi new file mode 100644 index 00000000..2e27246f --- /dev/null +++ b/sorbet/rbi/gems/rubocop-rails@2.26.0.rbi @@ -0,0 +1,9516 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-rails` gem. +# Please instead update this file by running `bin/tapioca gem rubocop-rails`. + + +# source://rubocop-rails//lib/rubocop/rails.rb#3 +module RuboCop; end + +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#4 +module RuboCop::Cop; end + +# A mixin to extend cops for Active Record features +# +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#6 +module RuboCop::Cop::ActiveRecordHelper + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#11 + def active_record?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#30 + def external_dependency_checksum; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#22 + def find_belongs_to(param0); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#18 + def find_set_table_name(param0); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#84 + def foreign_key_of(belongs_to); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#105 + def in_where?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#26 + def inherit_active_record_base?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#96 + def polymorphic?(belongs_to); end + + # Resolve relation into column name. + # It just returns column_name if the column exists. + # Or it tries to resolve column_name as a relation. + # Returns an array of column names if the relation is polymorphic. + # It returns `nil` if it can't resolve. + # + # @param name [String] + # @param class_node [RuboCop::AST::Node] + # @param table [RuboCop::Rails::SchemaLoader::Table] + # @return [Array, String, nil] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#69 + def resolve_relation_into_column(name:, class_node:, table:); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#41 + def schema; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#50 + def table_name(class_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_helper.rb#9 +RuboCop::Cop::ActiveRecordHelper::WHERE_METHODS = T.let(T.unsafe(nil), Array) + +# A mixin to extend cops for Active Record features +# +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_migrations_helper.rb#6 +module RuboCop::Cop::ActiveRecordMigrationsHelper + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rails//lib/rubocop/cop/mixin/active_record_migrations_helper.rb#24 + def create_table_with_block?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_migrations_helper.rb#19 +RuboCop::Cop::ActiveRecordMigrationsHelper::MYSQL_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_migrations_helper.rb#14 +RuboCop::Cop::ActiveRecordMigrationsHelper::POSTGRES_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_migrations_helper.rb#9 +RuboCop::Cop::ActiveRecordMigrationsHelper::RAILS_ABSTRACT_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/mixin/active_record_migrations_helper.rb#13 +RuboCop::Cop::ActiveRecordMigrationsHelper::RAILS_ABSTRACT_SCHEMA_DEFINITIONS_HELPERS = T.let(T.unsafe(nil), Array) + +# A mixin to return all of the class send nodes. +# +# source://rubocop-rails//lib/rubocop/cop/mixin/class_send_node_helper.rb#6 +module RuboCop::Cop::ClassSendNodeHelper + # source://rubocop-rails//lib/rubocop/cop/mixin/class_send_node_helper.rb#7 + def class_send_nodes(class_node); end +end + +# A mixin to extend cops in order to determine the database type. +# +# This module automatically detect an adapter from `development` environment +# in `config/database.yml` or the environment variable `DATABASE_URL` +# when the `Database` option is not set. +# +# source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#10 +module RuboCop::Cop::DatabaseTypeResolvable + # source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#14 + def database; end + + private + + # source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#61 + def database_adapter; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#31 + def database_from_env; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#20 + def database_from_yaml; end + + # source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#43 + def database_yaml; end +end + +# source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#11 +RuboCop::Cop::DatabaseTypeResolvable::MYSQL = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/mixin/database_type_resolvable.rb#12 +RuboCop::Cop::DatabaseTypeResolvable::POSTGRESQL = T.let(T.unsafe(nil), String) + +# Common functionality for enforcing a specific superclass. +# +# source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#6 +module RuboCop::Cop::EnforceSuperclass + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#19 + def on_class(node); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#25 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#33 + def register_offense(offense_node); end + + class << self + # @private + # + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#7 + def included(base); end + end +end + +# Common functionality for Rails/IndexBy and Rails/IndexWith +# +# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#6 +module RuboCop::Cop::IndexMethod + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#9 + def on_block(node); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#31 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#21 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#95 + def execute_correction(corrector, node, correction); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#72 + def extract_captures(match); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#59 + def handle_possible_offense(node, match, match_desc); end + + # @raise [NotImplementedError] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#77 + def new_method_name; end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#40 + def on_bad_each_with_object(_node); end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#55 + def on_bad_hash_brackets_map(_node); end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#50 + def on_bad_map_to_h(_node); end + + # @abstract Implemented with `def_node_matcher` + # @raise [NotImplementedError] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#45 + def on_bad_to_h(_node); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#81 + def prepare_correction(node); end +end + +# Internal helper class to hold autocorrect data +# +# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#115 +class RuboCop::Cop::IndexMethod::Autocorrection < ::Struct + # Returns the value of attribute block_node + # + # @return [Object] the current value of block_node + def block_node; end + + # Sets the attribute block_node + # + # @param value [Object] the value to set the attribute block_node to. + # @return [Object] the newly set value + def block_node=(_); end + + # Returns the value of attribute leading + # + # @return [Object] the current value of leading + def leading; end + + # Sets the attribute leading + # + # @param value [Object] the value to set the attribute leading to. + # @return [Object] the newly set value + def leading=(_); end + + # Returns the value of attribute match + # + # @return [Object] the current value of match + def match; end + + # Sets the attribute match + # + # @param value [Object] the value to set the attribute match to. + # @return [Object] the newly set value + def match=(_); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#155 + def set_new_arg_name(transformed_argname, corrector); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#159 + def set_new_body_expression(transforming_body_expr, corrector); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#146 + def set_new_method_name(new_method_name, corrector); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#140 + def strip_prefix_and_suffix(node, corrector); end + + # Returns the value of attribute trailing + # + # @return [Object] the current value of trailing + def trailing; end + + # Sets the attribute trailing + # + # @param value [Object] the value to set the attribute trailing to. + # @return [Object] the newly set value + def trailing=(_); end + + class << self + def [](*_arg0); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#116 + def from_each_with_object(node, match); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#136 + def from_hash_brackets_map(node, match); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#124 + def from_map_to_h(node, match); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#120 + def from_to_h(node, match); end + + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# Internal helper class to hold match data +# +# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#105 +class RuboCop::Cop::IndexMethod::Captures < ::Struct + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#109 + def noop_transformation?; end + + # Returns the value of attribute transformed_argname + # + # @return [Object] the current value of transformed_argname + def transformed_argname; end + + # Sets the attribute transformed_argname + # + # @param value [Object] the value to set the attribute transformed_argname to. + # @return [Object] the newly set value + def transformed_argname=(_); end + + # Returns the value of attribute transforming_body_expr + # + # @return [Object] the current value of transforming_body_expr + def transforming_body_expr; end + + # Sets the attribute transforming_body_expr + # + # @param value [Object] the value to set the attribute transforming_body_expr to. + # @return [Object] the newly set value + def transforming_body_expr=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop-rails//lib/rubocop/cop/mixin/index_method.rb#7 +RuboCop::Cop::IndexMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Common functionality for cops working with migrations +# +# source://rubocop-rails//lib/rubocop/cop/mixin/migrations_helper.rb#6 +module RuboCop::Cop::MigrationsHelper + extend ::RuboCop::AST::NodePattern::Macros + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/migrations_helper.rb#19 + def in_migration?(node); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/migrations_helper.rb#9 + def migration_class?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#5 +module RuboCop::Cop::Rails; end + +# Using `flash` assignment before `render` in Rails controllers will persist the message for too long. +# Check https://guides.rubyonrails.org/action_controller_overview.html#flash-now +# +# @example +# +# # bad +# class HomeController < ApplicationController +# def create +# flash[:alert] = "msg" +# render :index +# end +# end +# +# # good +# class HomeController < ApplicationController +# def create +# flash.now[:alert] = "msg" +# render :index +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#31 +class RuboCop::Cop::Rails::ActionControllerFlashBeforeRender < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#44 + def action_controller?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#36 + def flash_assignment?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#53 + def on_send(flash_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#40 + def render?(param0); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#108 + def find_ancestor(node, type:); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#69 + def followed_by_render?(flash_node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#86 + def inherit_action_controller_base?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#93 + def instance_method_or_block?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#100 + def use_redirect_to?(context); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#34 +RuboCop::Cop::Rails::ActionControllerFlashBeforeRender::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/action_controller_flash_before_render.rb#51 +RuboCop::Cop::Rails::ActionControllerFlashBeforeRender::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Using `ActionController::TestCase` is discouraged and should be replaced by +# `ActionDispatch::IntegrationTest`. Controller tests are too close to the +# internals of a controller whereas integration tests mimic the browser/user. +# +# @example +# # bad +# class MyControllerTest < ActionController::TestCase +# end +# +# # good +# class MyControllerTest < ActionDispatch::IntegrationTest +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/action_controller_test_case.rb#23 +class RuboCop::Cop::Rails::ActionControllerTestCase < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_test_case.rb#31 + def action_controller_test_case?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_controller_test_case.rb#37 + def on_class(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/action_controller_test_case.rb#27 +RuboCop::Cop::Rails::ActionControllerTestCase::MSG = T.let(T.unsafe(nil), String) + +# Enforces the consistent use of action filter methods. +# +# The cop is configurable and can enforce the use of the older +# something_filter methods or the newer something_action methods. +# +# IMPORTANT: This cop is deprecated. Because the `*_filter` methods were removed in Rails 4.2, +# and that Rails version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0. +# +# @example EnforcedStyle: action (default) +# # bad +# after_filter :do_stuff +# append_around_filter :do_stuff +# skip_after_filter :do_stuff +# +# # good +# after_action :do_stuff +# append_around_action :do_stuff +# skip_after_action :do_stuff +# @example EnforcedStyle: filter +# # bad +# after_action :do_stuff +# append_around_action :do_stuff +# skip_after_action :do_stuff +# +# # good +# after_filter :do_stuff +# append_around_filter :do_stuff +# skip_after_filter :do_stuff +# +# source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#35 +class RuboCop::Cop::Rails::ActionFilter < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#75 + def on_block(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#79 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#96 + def bad_methods; end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#85 + def check_method_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#100 + def good_methods; end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#104 + def preferred_method(method); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#57 +RuboCop::Cop::Rails::ActionFilter::ACTION_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#41 +RuboCop::Cop::Rails::ActionFilter::FILTER_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#39 +RuboCop::Cop::Rails::ActionFilter::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/action_filter.rb#73 +RuboCop::Cop::Rails::ActionFilter::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces consistent ordering of the standard Rails RESTful controller actions. +# +# The cop is configurable and can enforce any ordering of the standard actions. +# All other methods are ignored. So, the actions specified in `ExpectedOrder` should be +# defined before actions not specified. +# +# [source,yaml] +# ---- +# Rails/ActionOrder: +# ExpectedOrder: +# - index +# - show +# - new +# - edit +# - create +# - update +# - destroy +# ---- +# +# @example +# # bad +# def index; end +# def destroy; end +# def show; end +# +# # good +# def index; end +# def show; end +# def destroy; end +# +# source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#35 +class RuboCop::Cop::Rails::ActionOrder < ::RuboCop::Cop::Base + include ::RuboCop::Cop::VisibilityHelp + include ::RuboCop::Cop::DefNode + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#43 + def action_declarations(param0, param1); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#45 + def on_class(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#60 + def actions; end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#87 + def add_range(range1, range2); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#83 + def correction_target(def_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#56 + def expected_order; end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#64 + def find_index(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#94 + def range_with_comments(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#105 + def range_with_comments_and_lines(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#68 + def register_offense(previous, current); end + + # source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#109 + def swap_range(corrector, range1, range2); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/action_order.rb#41 +RuboCop::Cop::Rails::ActionOrder::MSG = T.let(T.unsafe(nil), String) + +# Checks that ActiveRecord aliases are not used. The direct method names +# are more clear and easier to read. +# +# @example +# # bad +# book.update_attributes!(author: 'Alice') +# +# # good +# book.update!(author: 'Alice') +# +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#19 +class RuboCop::Cop::Rails::ActiveRecordAliases < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#28 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#28 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#24 +RuboCop::Cop::Rails::ActiveRecordAliases::ALIASES = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#22 +RuboCop::Cop::Rails::ActiveRecordAliases::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_aliases.rb#26 +RuboCop::Cop::Rails::ActiveRecordAliases::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that Active Record callbacks are declared +# in the order in which they will be executed. +# +# @example +# # bad +# class Person < ApplicationRecord +# after_commit :after_commit_callback +# before_validation :before_validation_callback +# end +# +# # good +# class Person < ApplicationRecord +# before_validation :before_validation_callback +# after_commit :after_commit_callback +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#22 +class RuboCop::Cop::Rails::ActiveRecordCallbacksOrder < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#51 + def on_class(class_node); end + + private + + # Autocorrect by swapping between two nodes autocorrecting them + # + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#73 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#111 + def begin_pos_with_comment(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#137 + def buffer; end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#95 + def callback?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#85 + def defined_callbacks(class_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#106 + def end_position_for(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#125 + def inline_comment?(comment); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#99 + def source_range_with_comment(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#133 + def start_line_position(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#27 +RuboCop::Cop::Rails::ActiveRecordCallbacksOrder::CALLBACKS_IN_ORDER = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#49 +RuboCop::Cop::Rails::ActiveRecordCallbacksOrder::CALLBACKS_ORDER_MAP = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_callbacks_order.rb#25 +RuboCop::Cop::Rails::ActiveRecordCallbacksOrder::MSG = T.let(T.unsafe(nil), String) + +# Checks for overriding built-in Active Record methods instead of using +# callbacks. +# +# @example +# # bad +# class Book < ApplicationRecord +# def save +# self.title = title.upcase! +# super +# end +# end +# +# # good +# class Book < ApplicationRecord +# before_save :upcase_title +# +# def upcase_title +# self.title = title.upcase! +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#27 +class RuboCop::Cop::Rails::ActiveRecordOverride < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#32 + def on_def(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#45 + def active_model?(parent_class_name); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#49 + def callback_names(method_name); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#63 + def find_parent_class_name(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#59 + def message(method_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#30 +RuboCop::Cop::Rails::ActiveRecordOverride::ACTIVE_RECORD_CLASSES = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#29 +RuboCop::Cop::Rails::ActiveRecordOverride::BAD_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_record_override.rb#28 +RuboCop::Cop::Rails::ActiveRecordOverride::MSG = T.let(T.unsafe(nil), String) + +# Checks that ActiveSupport aliases to core ruby methods +# are not used. +# +# @example +# # good +# 'some_string'.start_with?('prefix') +# 'some_string'.end_with?('suffix') +# [1, 2, 'a'] << 'b' +# [1, 2, 'a'].unshift('b') +# +# # bad +# 'some_string'.starts_with?('prefix') +# 'some_string'.ends_with?('suffix') +# [1, 2, 'a'].append('b') +# [1, 2, 'a'].prepend('b') +# +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#22 +class RuboCop::Cop::Rails::ActiveSupportAliases < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#40 + def append(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#40 + def ends_with?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#43 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#43 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#40 + def prepend(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#40 + def starts_with?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#28 +RuboCop::Cop::Rails::ActiveSupportAliases::ALIASES = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#25 +RuboCop::Cop::Rails::ActiveSupportAliases::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_aliases.rb#26 +RuboCop::Cop::Rails::ActiveSupportAliases::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for Rails framework classes that are patched directly instead of using Active Support load hooks. Direct +# patching forcibly loads the framework referenced, using hooks defers loading until it's actually needed. +# +# @example +# +# # bad +# ActiveRecord::Base.include(MyClass) +# +# # good +# ActiveSupport.on_load(:active_record) { include MyClass } +# +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#20 +class RuboCop::Cop::Rails::ActiveSupportOnLoad < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#81 + def hook_for_const(const_name); end + + # source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#71 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#25 +RuboCop::Cop::Rails::ActiveSupportOnLoad::LOAD_HOOKS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#23 +RuboCop::Cop::Rails::ActiveSupportOnLoad::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#58 +RuboCop::Cop::Rails::ActiveSupportOnLoad::RAILS_5_2_LOAD_HOOKS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#62 +RuboCop::Cop::Rails::ActiveSupportOnLoad::RAILS_7_1_LOAD_HOOKS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/active_support_on_load.rb#24 +RuboCop::Cop::Rails::ActiveSupportOnLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for migrations using `add_column` that have an `index` +# key. `add_column` does not accept `index`, but also does not raise an +# error for extra keys, so it is possible to mistakenly add the key without +# realizing it will not actually add an index. +# +# @example +# # bad (will not add an index) +# add_column :table, :column, :integer, index: true +# +# # good +# add_column :table, :column, :integer +# add_index :table, :column +# +# source://rubocop-rails//lib/rubocop/cop/rails/add_column_index.rb#19 +class RuboCop::Cop::Rails::AddColumnIndex < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/add_column_index.rb#27 + def add_column_with_index(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/add_column_index.rb#34 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/add_column_index.rb#55 + def index_range(pair_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/add_column_index.rb#23 +RuboCop::Cop::Rails::AddColumnIndex::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/add_column_index.rb#24 +RuboCop::Cop::Rails::AddColumnIndex::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces that there is only one call to `after_commit` +# (and its aliases - `after_create_commit`, `after_update_commit`, +# and `after_destroy_commit`) with the same callback name per model. +# +# @example +# # bad +# # This won't be triggered. +# after_create_commit :log_action +# +# # This will override the callback added by +# # after_create_commit. +# after_update_commit :log_action +# +# # bad +# # This won't be triggered. +# after_commit :log_action, on: :create +# # This won't be triggered. +# after_update_commit :log_action +# # This will override both previous callbacks. +# after_commit :log_action, on: :destroy +# +# # good +# after_save_commit :log_action +# +# # good +# after_create_commit :log_create_action +# after_update_commit :log_update_action +# +# source://rubocop-rails//lib/rubocop/cop/rails/after_commit_override.rb#34 +class RuboCop::Cop::Rails::AfterCommitOverride < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ClassSendNodeHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/after_commit_override.rb#47 + def on_class(class_node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/after_commit_override.rb#68 + def after_commit_callback?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/after_commit_override.rb#62 + def each_after_commit_callback(class_node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/after_commit_override.rb#72 + def named_callback?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/after_commit_override.rb#39 +RuboCop::Cop::Rails::AfterCommitOverride::AFTER_COMMIT_CALLBACKS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/after_commit_override.rb#37 +RuboCop::Cop::Rails::AfterCommitOverride::MSG = T.let(T.unsafe(nil), String) + +# TODO: In the future, please support only RuboCop 1.52+ and use `RuboCop::Cop::AllowedReceivers`: +# https://github.com/rubocop/rubocop/blob/v1.52.0/lib/rubocop/cop/mixin/allowed_receivers.rb +# At that time, this duplicated module implementation can be removed. +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#9 +module RuboCop::Cop::Rails::AllowedReceivers + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#10 + def allowed_receiver?(receiver); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#30 + def allowed_receivers; end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#16 + def receiver_name(receiver); end +end + +# Checks that controllers subclass `ApplicationController`. +# +# @example +# +# # good +# class MyController < ApplicationController +# # ... +# end +# +# # bad +# class MyController < ActionController::Base +# # ... +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/application_controller.rb#23 +class RuboCop::Cop::Rails::ApplicationController < ::RuboCop::Cop::Base + include ::RuboCop::Cop::EnforceSuperclass + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#8 + def class_definition(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#12 + def class_new_definition(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/application_controller.rb#28 +RuboCop::Cop::Rails::ApplicationController::BASE_PATTERN = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_controller.rb#26 +RuboCop::Cop::Rails::ApplicationController::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_controller.rb#27 +RuboCop::Cop::Rails::ApplicationController::SUPERCLASS = T.let(T.unsafe(nil), String) + +# Checks that jobs subclass `ApplicationJob` with Rails 5.0. +# +# @example +# +# # good +# class Rails5Job < ApplicationJob +# # ... +# end +# +# # bad +# class Rails4Job < ActiveJob::Base +# # ... +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#23 +class RuboCop::Cop::Rails::ApplicationJob < ::RuboCop::Cop::Base + include ::RuboCop::Cop::EnforceSuperclass + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#37 + def autocorrect(node); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#8 + def class_definition(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#12 + def class_new_definition(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#31 +RuboCop::Cop::Rails::ApplicationJob::BASE_PATTERN = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#29 +RuboCop::Cop::Rails::ApplicationJob::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_job.rb#30 +RuboCop::Cop::Rails::ApplicationJob::SUPERCLASS = T.let(T.unsafe(nil), String) + +# Checks that mailers subclass `ApplicationMailer` with Rails 5.0. +# +# @example +# +# # good +# class MyMailer < ApplicationMailer +# # ... +# end +# +# # bad +# class MyMailer < ActionMailer::Base +# # ... +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/application_mailer.rb#23 +class RuboCop::Cop::Rails::ApplicationMailer < ::RuboCop::Cop::Base + include ::RuboCop::Cop::EnforceSuperclass + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#8 + def class_definition(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#12 + def class_new_definition(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/application_mailer.rb#31 +RuboCop::Cop::Rails::ApplicationMailer::BASE_PATTERN = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_mailer.rb#29 +RuboCop::Cop::Rails::ApplicationMailer::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_mailer.rb#30 +RuboCop::Cop::Rails::ApplicationMailer::SUPERCLASS = T.let(T.unsafe(nil), String) + +# Checks that models subclass `ApplicationRecord` with Rails 5.0. +# +# @example +# +# # good +# class Rails5Model < ApplicationRecord +# # ... +# end +# +# # bad +# class Rails4Model < ActiveRecord::Base +# # ... +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/application_record.rb#24 +class RuboCop::Cop::Rails::ApplicationRecord < ::RuboCop::Cop::Base + include ::RuboCop::Cop::EnforceSuperclass + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#8 + def class_definition(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/mixin/enforce_superclass.rb#12 + def class_new_definition(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/application_record.rb#32 +RuboCop::Cop::Rails::ApplicationRecord::BASE_PATTERN = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_record.rb#30 +RuboCop::Cop::Rails::ApplicationRecord::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/application_record.rb#31 +RuboCop::Cop::Rails::ApplicationRecord::SUPERCLASS = T.let(T.unsafe(nil), String) + +# Prevents usage of `"*"` on an Arel::Table column reference. +# +# Using `arel_table["*"]` causes the outputted string to be a literal +# quoted asterisk (e.g. `my_model`.`*`). This causes the +# database to look for a column named `*` (or `"*"`) as opposed +# to expanding the column list as one would likely expect. +# +# @example +# # bad +# MyTable.arel_table["*"] +# +# # good +# MyTable.arel_table[Arel.star] +# +# source://rubocop-rails//lib/rubocop/cop/rails/arel_star.rb#26 +class RuboCop::Cop::Rails::ArelStar < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/arel_star.rb#37 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/arel_star.rb#33 + def star_bracket?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/arel_star.rb#29 +RuboCop::Cop::Rails::ArelStar::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/arel_star.rb#31 +RuboCop::Cop::Rails::ArelStar::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Use `assert_not` instead of `assert !`. +# +# @example +# # bad +# assert !x +# +# # good +# assert_not x +# +# source://rubocop-rails//lib/rubocop/cop/rails/assert_not.rb#15 +class RuboCop::Cop::Rails::AssertNot < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/assert_not.rb#21 + def offensive?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/assert_not.rb#23 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/assert_not.rb#35 + def corrected_source(source); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/assert_not.rb#18 +RuboCop::Cop::Rails::AssertNot::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/assert_not.rb#19 +RuboCop::Cop::Rails::AssertNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for `attribute` class methods that specify a `:default` option +# which value is an array, string literal or method call without a block. +# It will accept all other values, such as string, symbol, integer and float literals +# as well as constants. +# +# @example +# # bad +# class User < ApplicationRecord +# attribute :confirmed_at, :datetime, default: Time.zone.now +# end +# +# # good +# class User < ApplicationRecord +# attribute :confirmed_at, :datetime, default: -> { Time.zone.now } +# end +# +# # bad +# class User < ApplicationRecord +# attribute :roles, :string, array: true, default: [] +# end +# +# # good +# class User < ApplicationRecord +# attribute :roles, :string, array: true, default: -> { [] } +# end +# +# # bad +# class User < ApplicationRecord +# attribute :configuration, default: {} +# end +# +# # good +# class User < ApplicationRecord +# attribute :configuration, default: -> { {} } +# end +# +# # good +# class User < ApplicationRecord +# attribute :role, :string, default: :customer +# end +# +# # good +# class User < ApplicationRecord +# attribute :activated, :boolean, default: false +# end +# +# # good +# class User < ApplicationRecord +# attribute :login_count, :integer, default: 0 +# end +# +# # good +# class User < ApplicationRecord +# FOO = 123 +# attribute :custom_attribute, :integer, default: FOO +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/attribute_default_block_value.rb#62 +class RuboCop::Cop::Rails::AttributeDefaultBlockValue < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/attribute_default_block_value.rb#73 + def attribute(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/attribute_default_block_value.rb#69 + def default_attribute(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/attribute_default_block_value.rb#75 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/attribute_default_block_value.rb#65 +RuboCop::Cop::Rails::AttributeDefaultBlockValue::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/attribute_default_block_value.rb#66 +RuboCop::Cop::Rails::AttributeDefaultBlockValue::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/attribute_default_block_value.rb#67 +RuboCop::Cop::Rails::AttributeDefaultBlockValue::TYPE_OFFENDERS = T.let(T.unsafe(nil), Array) + +# Looks for belongs_to associations where we control whether the +# association is required via the deprecated `required` option instead. +# +# Since Rails 5, belongs_to associations are required by default and this +# can be controlled through the use of `optional: true`. +# +# From the release notes: +# +# belongs_to will now trigger a validation error by default if the +# association is not present. You can turn this off on a +# per-association basis with optional: true. Also deprecate required +# option in favor of optional for belongs_to. (Pull Request) +# +# In the case that the developer is doing `required: false`, we +# definitely want to autocorrect to `optional: true`. +# +# However, without knowing whether they've set overridden the default +# value of `config.active_record.belongs_to_required_by_default`, we +# can't say whether it's safe to remove `required: true` or whether we +# should replace it with `optional: false` (or, similarly, remove a +# superfluous `optional: false`). Therefore, in the cases we're using +# `required: true`, we'll simply invert it to `optional: false` and the +# user can remove depending on their defaults. +# +# @example +# # bad +# class Post < ApplicationRecord +# belongs_to :blog, required: false +# end +# +# # good +# class Post < ApplicationRecord +# belongs_to :blog, optional: true +# end +# +# # bad +# class Post < ApplicationRecord +# belongs_to :blog, required: true +# end +# +# # good +# class Post < ApplicationRecord +# belongs_to :blog, optional: false +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/belongs_to.rb#50 +class RuboCop::Cop::Rails::BelongsTo < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/belongs_to.rb#67 + def match_belongs_to_with_options(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/belongs_to.rb#73 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/belongs_to.rb#65 +RuboCop::Cop::Rails::BelongsTo::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/belongs_to.rb#56 +RuboCop::Cop::Rails::BelongsTo::SUPERFLOUS_REQUIRE_FALSE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/belongs_to.rb#60 +RuboCop::Cop::Rails::BelongsTo::SUPERFLOUS_REQUIRE_TRUE_MSG = T.let(T.unsafe(nil), String) + +# Checks for code that can be written with simpler conditionals +# using `Object#blank?` defined by Active Support. +# +# Interaction with `Style/UnlessElse`: +# The configuration of `NotPresent` will not produce an offense in the +# context of `unless else` if `Style/UnlessElse` is enabled. This is +# to prevent interference between the autocorrection of the two cops. +# +# @example NilOrEmpty: true (default) +# # Converts usages of `nil? || empty?` to `blank?` +# +# # bad +# foo.nil? || foo.empty? +# foo == nil || foo.empty? +# +# # good +# foo.blank? +# @example NotPresent: true (default) +# # Converts usages of `!present?` to `blank?` +# +# # bad +# !foo.present? +# +# # good +# foo.blank? +# @example UnlessPresent: true (default) +# # Converts usages of `unless present?` to `if blank?` +# +# # bad +# something unless foo.present? +# +# # good +# something if foo.blank? +# +# # bad +# unless foo.present? +# something +# end +# +# # good +# if foo.blank? +# something +# end +# +# # good +# def blank? +# !present? +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#61 +class RuboCop::Cop::Rails::Blank < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#90 + def defining_blank?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#73 + def nil_or_empty?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#88 + def not_present?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#123 + def on_if(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#110 + def on_or(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#96 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#92 + def unless_present?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#140 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#162 + def replacement(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#154 + def unless_condition(node, method_call); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#64 +RuboCop::Cop::Rails::Blank::MSG_NIL_OR_EMPTY = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#65 +RuboCop::Cop::Rails::Blank::MSG_NOT_PRESENT = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#66 +RuboCop::Cop::Rails::Blank::MSG_UNLESS_PRESENT = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/blank.rb#67 +RuboCop::Cop::Rails::Blank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks whether alter queries are combinable. +# If combinable queries are detected, it suggests to you +# to use `change_table` with `bulk: true` instead. +# This option causes the migration to generate a single +# ALTER TABLE statement combining multiple column alterations. +# +# The `bulk` option is only supported on the MySQL and +# the PostgreSQL (5.2 later) adapter; thus it will +# automatically detect an adapter from `development` environment +# in `config/database.yml` or the environment variable `DATABASE_URL` +# when the `Database` option is not set. +# If the adapter is not `mysql2`, `trilogy`, `postgresql`, or `postgis`, +# this Cop ignores offenses. +# +# @example +# # bad +# def change +# add_column :users, :name, :string, null: false +# add_column :users, :nickname, :string +# +# # ALTER TABLE `users` ADD `name` varchar(255) NOT NULL +# # ALTER TABLE `users` ADD `nickname` varchar(255) +# end +# +# # good +# def change +# change_table :users, bulk: true do |t| +# t.string :name, null: false +# t.string :nickname +# end +# +# # ALTER TABLE `users` ADD `name` varchar(255) NOT NULL, +# # ADD `nickname` varchar(255) +# end +# @example +# # bad +# def change +# change_table :users do |t| +# t.string :name, null: false +# t.string :nickname +# end +# end +# +# # good +# def change +# change_table :users, bulk: true do |t| +# t.string :name, null: false +# t.string :nickname +# end +# end +# +# # good +# # When you don't want to combine alter queries. +# def change +# change_table :users, bulk: false do |t| +# t.string :name, null: false +# t.string :nickname +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#66 +class RuboCop::Cop::Rails::BulkChangeTable < ::RuboCop::Cop::Base + include ::RuboCop::Cop::DatabaseTypeResolvable + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#121 + def on_def(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#139 + def on_send(node); end + + private + + # @param node [RuboCop::AST::SendNode] + # + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#219 + def add_offense_for_alter_methods(node); end + + # @param node [RuboCop::AST::SendNode] + # + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#229 + def add_offense_for_change_table(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#192 + def call_to_combinable_alter_method?(child_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#196 + def combinable_alter_methods; end + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#207 + def combinable_transformations; end + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#160 + def count_transformations(send_nodes); end + + # @param node [RuboCop::AST::SendNode] (send nil? :change_table ...) + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#171 + def include_bulk_options?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#152 + def send_nodes_from_change_table_block(body); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#179 + def support_bulk_alter?; end +end + +# Record combinable alter methods and register offensive nodes. +# +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#234 +class RuboCop::Cop::Rails::BulkChangeTable::AlterMethodsRecorder + # @return [AlterMethodsRecorder] a new instance of AlterMethodsRecorder + # + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#235 + def initialize; end + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#254 + def flush; end + + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#259 + def offensive_nodes; end + + # @param new_node [RuboCop::AST::SendNode] + # + # source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#241 + def process(new_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#102 +RuboCop::Cop::Rails::BulkChangeTable::COMBINABLE_ALTER_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#78 +RuboCop::Cop::Rails::BulkChangeTable::COMBINABLE_TRANSFORMATIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#76 +RuboCop::Cop::Rails::BulkChangeTable::MIGRATION_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#72 +RuboCop::Cop::Rails::BulkChangeTable::MSG_FOR_ALTER_METHODS = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#69 +RuboCop::Cop::Rails::BulkChangeTable::MSG_FOR_CHANGE_TABLE = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#113 +RuboCop::Cop::Rails::BulkChangeTable::MYSQL_COMBINABLE_ALTER_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#111 +RuboCop::Cop::Rails::BulkChangeTable::MYSQL_COMBINABLE_TRANSFORMATIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#118 +RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_ALTER_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#119 +RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_ALTER_METHODS_SINCE_6_1 = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#115 +RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_TRANSFORMATIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/bulk_change_table.rb#116 +RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_TRANSFORMATIONS_SINCE_6_1 = T.let(T.unsafe(nil), Array) + +# Checks if collection can be blank-compacted with `compact_blank`. +# +# @example +# +# # bad +# collection.reject(&:blank?) +# collection.reject { |_k, v| v.blank? } +# collection.select(&:present?) +# collection.select { |_k, v| v.present? } +# +# # good +# collection.compact_blank +# +# # bad +# collection.delete_if(&:blank?) # Same behavior as `Array#compact_blank!` and `Hash#compact_blank!` +# collection.delete_if { |_k, v| v.blank? } # Same behavior as `Array#compact_blank!` and `Hash#compact_blank!` +# collection.keep_if(&:present?) # Same behavior as `Array#compact_blank!` and `Hash#compact_blank!` +# collection.keep_if { |_k, v| v.present? } # Same behavior as `Array#compact_blank!` and `Hash#compact_blank!` +# +# # good +# collection.compact_blank! +# +# source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#41 +class RuboCop::Cop::Rails::CompactBlank < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#79 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#51 + def reject_with_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#59 + def reject_with_block_pass?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#65 + def select_with_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#73 + def select_with_block_pass?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#91 + def bad_method?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#112 + def offense_range(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#122 + def preferred_method(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#108 + def use_hash_value_block_argument?(arguments, receiver_in_block); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#104 + def use_single_value_block_argument?(arguments, receiver_in_block); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#46 +RuboCop::Cop::Rails::CompactBlank::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/compact_blank.rb#47 +RuboCop::Cop::Rails::CompactBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks legacy syntax usage of `tag` +# +# NOTE: Allow `tag` when the first argument is a variable because +# `tag(name)` is simpler rather than `tag.public_send(name)`. +# And this cop will be renamed to something like `LegacyTag` in the future. (e.g. RuboCop Rails 3.0) +# +# @example +# # bad +# tag(:p) +# tag(:br, class: 'classname') +# +# # good +# tag.p +# tag.br(class: 'classname') +# tag(name, class: 'classname') +# +# source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#21 +class RuboCop::Cop::Rails::ContentTag < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#31 + def on_new_investigation; end + + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#35 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#54 + def allowed_argument?(argument); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#81 + def allowed_name?(argument); end + + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#72 + def autocorrect(corrector, node, preferred_method); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#50 + def corrected_ancestor?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#87 + def correction_range(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#63 + def register_offense(node, message, preferred_method); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#28 +RuboCop::Cop::Rails::ContentTag::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/content_tag.rb#29 +RuboCop::Cop::Rails::ContentTag::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks the migration for which timestamps are not included when creating a new table. +# In many cases, timestamps are useful information and should be added. +# +# NOTE: Allow `timestamps` not written when `id: false` because this emphasizes respecting +# user's editing intentions. +# +# @example +# # bad +# create_table :users +# +# # bad +# create_table :users do |t| +# t.string :name +# t.string :email +# end +# +# # good +# create_table :users do |t| +# t.string :name +# t.string :email +# +# t.timestamps +# end +# +# # good +# create_table :users do |t| +# t.string :name +# t.string :email +# +# t.datetime :created_at, default: -> { 'CURRENT_TIMESTAMP' } +# end +# +# # good +# create_table :users do |t| +# t.string :name +# t.string :email +# +# t.datetime :updated_at, default: -> { 'CURRENT_TIMESTAMP' } +# end +# +# # good +# create_table :users, articles, id: false do |t| +# t.integer :user_id +# t.integer :article_id +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#52 +class RuboCop::Cop::Rails::CreateTableWithTimestamps < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordMigrationsHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#62 + def create_table_with_timestamps_proc?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#70 + def created_at_or_updated_at_included?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#76 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#66 + def timestamps_included?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#58 + def use_id_false_option?(param0); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#92 + def time_columns_included?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#55 +RuboCop::Cop::Rails::CreateTableWithTimestamps::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/create_table_with_timestamps.rb#56 +RuboCop::Cop::Rails::CreateTableWithTimestamps::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Avoid dangerous column names. +# +# Some column names are considered dangerous because they would overwrite methods already defined. +# +# @example +# # bad +# add_column :users, :save +# +# # good +# add_column :users, :saved +# +# source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#16 +class RuboCop::Cop::Rails::DangerousColumnNames < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#413 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#423 + def column_name_node_from(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#440 + def dangerous_column_name?(column_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#434 + def dangerous_column_name_node?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#17 +RuboCop::Cop::Rails::DangerousColumnNames::COLUMN_TYPE_METHOD_NAMES = T.let(T.unsafe(nil), Set) + +# Generated from `ActiveRecord::AttributeMethods.dangerous_attribute_methods` on activerecord 7.1.3. +# +# source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#36 +RuboCop::Cop::Rails::DangerousColumnNames::DANGEROUS_COLUMN_NAMES = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#409 +RuboCop::Cop::Rails::DangerousColumnNames::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/dangerous_column_names.rb#411 +RuboCop::Cop::Rails::DangerousColumnNames::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the correct use of Date methods, +# such as Date.today, Date.current etc. +# +# Using `Date.today` is dangerous, because it doesn't know anything about +# Rails time zone. You must use `Time.zone.today` instead. +# +# The cop also reports warnings when you are using `to_time` method, +# because it doesn't know about Rails time zone either. +# +# Two styles are supported for this cop. When `EnforcedStyle` is `strict` +# then the Date methods `today`, `current`, `yesterday`, and `tomorrow` +# are prohibited and the usage of both `to_time` +# and `to_time_in_current_zone` are reported as warning. +# +# When `EnforcedStyle` is `flexible` then only `Date.today` is prohibited. +# +# And you can set a warning for `to_time` with `AllowToTime: false`. +# `AllowToTime` is `true` by default to prevent false positive on `DateTime` object. +# +# @example EnforcedStyle: flexible (default) +# # bad +# Date.today +# +# # good +# Time.zone.today +# Time.zone.today - 1.day +# Date.current +# Date.yesterday +# date.in_time_zone +# @example EnforcedStyle: strict +# # bad +# Date.current +# Date.yesterday +# Date.today +# +# # good +# Time.zone.today +# Time.zone.today - 1.day +# @example AllowToTime: true (default) +# # good +# date.to_time +# @example AllowToTime: false +# # bad +# date.to_time +# +# source://rubocop-rails//lib/rubocop/cop/rails/date.rb#56 +class RuboCop::Cop::Rails::Date < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#73 + def on_const(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#81 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#81 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#153 + def allow_to_time?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#161 + def bad_days; end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#165 + def bad_methods; end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#106 + def check_date_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#94 + def check_deprecated_methods(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#123 + def extract_method_chain(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#157 + def good_days; end + + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#169 + def good_methods; end + + # checks that parent node of send_type + # and receiver is the given node + # + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#129 + def method_send?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#135 + def safe_chain?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/date.rb#141 + def safe_to_time?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/date.rb#67 +RuboCop::Cop::Rails::Date::BAD_DAYS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/date.rb#69 +RuboCop::Cop::Rails::Date::DEPRECATED_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/date.rb#71 +RuboCop::Cop::Rails::Date::DEPRECATED_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/date.rb#61 +RuboCop::Cop::Rails::Date::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/date.rb#63 +RuboCop::Cop::Rails::Date::MSG_SEND = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/date.rb#65 +RuboCop::Cop::Rails::Date::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for uses of `default_scope`. +# +# @example +# # bad +# default_scope -> { where(hidden: false) } +# +# # good +# scope :published, -> { where(hidden: false) } +# +# # bad +# def self.default_scope +# where(hidden: false) +# end +# +# # good +# def self.published +# where(hidden: false) +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#25 +class RuboCop::Cop::Rails::DefaultScope < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#33 + def class_method_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#37 + def eigenclass_method_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#29 + def method_call?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#47 + def on_defs(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#53 + def on_sclass(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#41 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#26 +RuboCop::Cop::Rails::DefaultScope::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/default_scope.rb#27 +RuboCop::Cop::Rails::DefaultScope::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for delegations that could have been created +# automatically with the `delegate` method. +# +# Safe navigation `&.` is ignored because Rails' `allow_nil` +# option checks not just for nil but also delegates if nil +# responds to the delegated method. +# +# The `EnforceForPrefixed` option (defaulted to `true`) means that +# using the target object as a prefix of the method name +# without using the `delegate` method will be a violation. +# When set to `false`, this case is legal. +# +# @example +# # bad +# def bar +# foo.bar +# end +# +# # good +# delegate :bar, to: :foo +# +# # bad +# def bar +# self.bar +# end +# +# # good +# delegate :bar, to: :self +# +# # good +# def bar +# foo&.bar +# end +# +# # good +# private +# def bar +# foo.bar +# end +# @example EnforceForPrefixed: true (default) +# # bad +# def foo_bar +# foo.bar +# end +# +# # good +# delegate :bar, to: :foo, prefix: true +# @example EnforceForPrefixed: false +# # good +# def foo_bar +# foo.bar +# end +# +# # good +# delegate :bar, to: :foo, prefix: true +# +# source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#63 +class RuboCop::Cop::Rails::Delegate < ::RuboCop::Cop::Base + include ::RuboCop::Cop::VisibilityHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#69 + def delegate?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#74 + def on_def(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#102 + def arguments_match?(arg_array, body); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#116 + def include_prefix_case?; end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#112 + def method_name_matches?(method_name, body); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#120 + def prefixed_method_name(body); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#126 + def private_or_protected_delegation(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#130 + def private_or_protected_inline(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#83 + def register_offense(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#96 + def trivial_delegate?(def_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/delegate.rb#67 +RuboCop::Cop::Rails::Delegate::MSG = T.let(T.unsafe(nil), String) + +# Looks for delegations that pass :allow_blank as an option +# instead of :allow_nil. :allow_blank is not a valid option to pass +# to ActiveSupport#delegate. +# +# @example +# # bad +# delegate :foo, to: :bar, allow_blank: true +# +# # good +# delegate :foo, to: :bar, allow_nil: true +# +# source://rubocop-rails//lib/rubocop/cop/rails/delegate_allow_blank.rb#16 +class RuboCop::Cop::Rails::DelegateAllowBlank < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate_allow_blank.rb#22 + def allow_blank_option(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/delegate_allow_blank.rb#26 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/delegate_allow_blank.rb#19 +RuboCop::Cop::Rails::DelegateAllowBlank::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/delegate_allow_blank.rb#20 +RuboCop::Cop::Rails::DelegateAllowBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks direct manipulation of ActiveModel#errors as hash. +# These operations are deprecated in Rails 6.1 and will not work in Rails 7. +# +# @example +# # bad +# user.errors[:name] << 'msg' +# user.errors.messages[:name] << 'msg' +# +# # good +# user.errors.add(:name, 'msg') +# +# # bad +# user.errors[:name].clear +# user.errors.messages[:name].clear +# +# # good +# user.errors.delete(:name) +# +# # bad +# user.errors.keys.include?(:attr) +# +# # good +# user.errors.attribute_names.include?(:attr) +# +# source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#35 +class RuboCop::Cop::Rails::DeprecatedActiveModelErrorsMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#55 + def any_manipulation?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#81 + def errors_deprecated?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#99 + def messages_details_assignment?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#87 + def messages_details_manipulation?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#108 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#53 + def receiver_matcher_inside_model(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#52 + def receiver_matcher_outside_model(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#74 + def root_assignment?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#65 + def root_manipulation?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#129 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#162 + def model_file?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#138 + def offense_range(node, receiver); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#158 + def receiver_matcher(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#143 + def replacement(node, receiver); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#122 + def skip_autocorrect?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#40 +RuboCop::Cop::Rails::DeprecatedActiveModelErrorsMethods::AUTOCORRECTABLE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#41 +RuboCop::Cop::Rails::DeprecatedActiveModelErrorsMethods::INCOMPATIBLE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#43 +RuboCop::Cop::Rails::DeprecatedActiveModelErrorsMethods::MANIPULATIVE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb#39 +RuboCop::Cop::Rails::DeprecatedActiveModelErrorsMethods::MSG = T.let(T.unsafe(nil), String) + +# Enforces the use of dot-separated locale keys instead of specifying the `:scope` option +# with an array or a single symbol in `I18n` translation methods. +# Dot-separated notation is easier to read and trace the hierarchy. +# +# @example +# # bad +# I18n.t :record_invalid, scope: [:activerecord, :errors, :messages] +# I18n.t :title, scope: :invitation +# +# # good +# I18n.t 'activerecord.errors.messages.record_invalid' +# I18n.t :record_invalid, scope: 'activerecord.errors.messages' +# +# source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#19 +class RuboCop::Cop::Rails::DotSeparatedKeys < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#32 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#26 + def translate_with_scope?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#55 + def new_key(key_node, scope_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#59 + def scopes(scope_node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#51 + def should_convert_scope?(scope_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#23 +RuboCop::Cop::Rails::DotSeparatedKeys::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/dot_separated_keys.rb#24 +RuboCop::Cop::Rails::DotSeparatedKeys::TRANSLATE_METHODS = T.let(T.unsafe(nil), Array) + +# Looks for associations that have been defined multiple times in the same file. +# +# When an association is defined multiple times on a model, Active Record overrides the +# previously defined association with the new one. Because of this, this cop's autocorrection +# simply keeps the last of any duplicates and discards the rest. +# +# @example +# +# # bad +# belongs_to :foo +# belongs_to :bar +# has_one :foo +# +# # good +# belongs_to :bar +# has_one :foo +# +# # bad +# has_many :foo, class_name: 'Foo' +# has_many :bar, class_name: 'Foo' +# has_one :baz +# +# # good +# has_many :bar, class_name: 'Foo' +# has_one :foo +# +# source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#32 +class RuboCop::Cop::Rails::DuplicateAssociation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::ClassSendNodeHelper + include ::RuboCop::Cop::ActiveRecordHelper + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#41 + def association(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#45 + def class_name(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#49 + def on_class(class_node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#75 + def association_nodes(class_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#81 + def duplicated_association_name_nodes(association_nodes); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#89 + def duplicated_class_name_nodes(association_nodes); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#105 + def leave_duplicated_association(grouped_associations); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#65 + def register_offense(name, nodes, message_template); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#38 +RuboCop::Cop::Rails::DuplicateAssociation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/duplicate_association.rb#39 +RuboCop::Cop::Rails::DuplicateAssociation::MSG_CLASS_NAME = T.let(T.unsafe(nil), String) + +# Checks for multiple scopes in a model that have the same `where` clause. This +# often means you copy/pasted a scope, updated the name, and forgot to change the condition. +# +# @example +# +# # bad +# scope :visible, -> { where(visible: true) } +# scope :hidden, -> { where(visible: true) } +# +# # good +# scope :visible, -> { where(visible: true) } +# scope :hidden, -> { where(visible: false) } +# +# source://rubocop-rails//lib/rubocop/cop/rails/duplicate_scope.rb#19 +class RuboCop::Cop::Rails::DuplicateScope < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ClassSendNodeHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_scope.rb#28 + def on_class(class_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_scope.rb#24 + def scope(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/duplicate_scope.rb#36 + def offenses(class_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/duplicate_scope.rb#22 +RuboCop::Cop::Rails::DuplicateScope::MSG = T.let(T.unsafe(nil), String) + +# Checks if a duration is added to or subtracted from `Time.current`. +# +# @example +# # bad +# Time.current - 1.minute +# Time.current + 2.days +# +# # good - using relative would make it harder to express and read +# Date.yesterday + 3.days +# created_at - 1.minute +# 3.days - 1.hour +# +# # good +# 1.minute.ago +# 2.days.from_now +# +# source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#21 +class RuboCop::Cop::Rails::DurationArithmetic < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # Match a literal Duration + # + # @example source that matches + # 1.hour + # @example source that matches + # 9.5.weeks + # @param node [RuboCop::AST::Node] + # @return [Boolean] true if matches + # + # source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#58 + def duration?(param0 = T.unsafe(nil)); end + + # Match duration subtraction or addition with current time. + # + # @example source that matches + # Time.current - 1.hour + # @example source that matches + # ::Time.zone.now + 1.hour + # @param node [RuboCop::AST::Node] + # @yield operator and duration + # + # source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#43 + def duration_arithmetic_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#78 + def on_send(node); end + + # Match Time.current + # + # @example source that matches + # Time.current + # @example source that matches + # ::Time.zone.now + # @param node [RuboCop::AST::Node] + # @return [Boolean] true if matches + # + # source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#71 + def time_current?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#88 + def corrected_source(operator, duration); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#28 +RuboCop::Cop::Rails::DurationArithmetic::DURATIONS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#24 +RuboCop::Cop::Rails::DurationArithmetic::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/duration_arithmetic.rb#26 +RuboCop::Cop::Rails::DurationArithmetic::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks dynamic `find_by_*` methods. +# Use `find_by` instead of dynamic method. +# See. https://rails.rubystyle.guide#find_by +# +# @example +# # bad +# User.find_by_name(name) +# User.find_by_name_and_email(name) +# User.find_by_email!(name) +# +# # good +# User.find_by(name: name) +# User.find_by(name: name, email: email) +# User.find_by!(email: email) +# @example AllowedMethods: ['find_by_sql', 'find_by_token_for'] (default) +# # bad +# User.find_by_query(users_query) +# User.find_by_token_for(:password_reset, token) +# +# # good +# User.find_by_sql(users_sql) +# User.find_by_token_for(:password_reset, token) +# @example AllowedReceivers: ['Gem::Specification', 'page'] (default) +# # bad +# Specification.find_by_name('backend').gem_dir +# page.find_by_id('a_dom_id').click +# +# # good +# Gem::Specification.find_by_name('backend').gem_dir +# page.find_by_id('a_dom_id').click +# +# source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#42 +class RuboCop::Cop::Rails::DynamicFindBy < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordHelper + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#50 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#50 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#72 + def allowed_invocation?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#76 + def allowed_method?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#82 + def allowed_receiver?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#67 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#100 + def autocorrect_argument_keywords(corrector, node, keywords); end + + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#96 + def autocorrect_method_name(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#106 + def column_keywords(method); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#120 + def dynamic_find_by_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#124 + def dynamic_find_by_arguments_count?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#128 + def dynamic_find_by_arguments_type?(node); end + + # Returns static method name. + # If code isn't wrong, returns nil + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#113 + def static_method_name(method_name); end + + # config option `WhiteList` will be deprecated soon + # + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#89 + def whitelisted?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#48 +RuboCop::Cop::Rails::DynamicFindBy::IGNORED_ARGUMENT_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#47 +RuboCop::Cop::Rails::DynamicFindBy::METHOD_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/dynamic_find_by.rb#46 +RuboCop::Cop::Rails::DynamicFindBy::MSG = T.let(T.unsafe(nil), String) + +# Checks that blocks are used for interpolated strings passed to +# `Rails.logger.debug`. +# +# By default, Rails production environments use the `:info` log level. +# At the `:info` log level, `Rails.logger.debug` statements do not result +# in log output. However, Ruby must eagerly evaluate interpolated string +# arguments passed as method arguments. Passing a block to +# `Rails.logger.debug` prevents costly evaluation of interpolated strings +# when no output would be produced anyway. +# +# @example +# # bad +# Rails.logger.debug "The time is #{Time.zone.now}." +# +# # good +# Rails.logger.debug { "The time is #{Time.zone.now}." } +# +# source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#23 +class RuboCop::Cop::Rails::EagerEvaluationLogMessage < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#29 + def interpolated_string_passed_to_debug(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#44 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#61 + def replacement_range(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#72 + def replacement_source(node, arguments); end + + class << self + # source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#40 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#26 +RuboCop::Cop::Rails::EagerEvaluationLogMessage::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/eager_evaluation_log_message.rb#27 +RuboCop::Cop::Rails::EagerEvaluationLogMessage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for enums written with array syntax. +# +# When using array syntax, adding an element in a +# position other than the last causes all previous +# definitions to shift. Explicitly specifying the +# value for each key prevents this from happening. +# +# @example +# # bad +# enum :status, [:active, :archived] +# +# # good +# enum :status, { active: 0, archived: 1 } +# +# # bad +# enum status: [:active, :archived] +# +# # good +# enum status: { active: 0, archived: 1 } +# +# source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#26 +class RuboCop::Cop::Rails::EnumHash < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#40 + def array_pair?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#32 + def enum_with_array?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#36 + def enum_with_old_syntax?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#44 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#89 + def build_hash(array); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#69 + def enum_name(key); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#65 + def message(key); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#78 + def source(elem); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#29 +RuboCop::Cop::Rails::EnumHash::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_hash.rb#30 +RuboCop::Cop::Rails::EnumHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for enums written with keyword arguments syntax. +# +# Defining enums with keyword arguments syntax is deprecated and will be removed in Rails 8.0. +# Positional arguments should be used instead: +# +# @example +# # bad +# enum status: { active: 0, archived: 1 }, _prefix: true +# +# # good +# enum :status, { active: 0, archived: 1 }, prefix: true +# +# source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#18 +class RuboCop::Cop::Rails::EnumSyntax < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#29 + def enum?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#41 + def enum_options(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#37 + def enum_values(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#33 + def enum_with_options?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#45 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#52 + def check_and_correct_keyword_args(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#63 + def check_enum_options(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#73 + def correct_keyword_args(node, key, values, options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#110 + def correct_options(options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#99 + def enum_name(elem); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#90 + def enum_name_value(key); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#84 + def multiple_enum_definitions?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#24 +RuboCop::Cop::Rails::EnumSyntax::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#25 +RuboCop::Cop::Rails::EnumSyntax::MSG_OPTIONS = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#27 +RuboCop::Cop::Rails::EnumSyntax::OPTION_NAMES = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_syntax.rb#26 +RuboCop::Cop::Rails::EnumSyntax::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for duplicate values in enum declarations. +# +# @example +# # bad +# enum :status, { active: 0, archived: 0 } +# +# # good +# enum :status, { active: 0, archived: 1 } +# +# # bad +# enum :status, [:active, :archived, :active] +# +# # good +# enum :status, [:active, :archived] +# +# # bad +# enum status: { active: 0, archived: 0 } +# +# # good +# enum status: { active: 0, archived: 1 } +# +# # bad +# enum status: [:active, :archived, :active] +# +# # good +# enum status: [:active, :archived] +# +# source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#32 +class RuboCop::Cop::Rails::EnumUniqueness < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Duplication + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#38 + def enum?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#46 + def enum_values(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#42 + def enum_with_old_syntax?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#50 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#70 + def enum_name(key); end + + # source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#79 + def message(key, item); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#35 +RuboCop::Cop::Rails::EnumUniqueness::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/enum_uniqueness.rb#36 +RuboCop::Cop::Rails::EnumUniqueness::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for usage of `Rails.env.development? || Rails.env.test?` which +# can be replaced with `Rails.env.local?`, introduced in Rails 7.1. +# +# @example +# +# # bad +# Rails.env.development? || Rails.env.test? +# +# # good +# Rails.env.local? +# +# source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#17 +class RuboCop::Cop::Rails::EnvLocal < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#34 + def on_or(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#27 + def rails_env_local_candidate?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#22 +RuboCop::Cop::Rails::EnvLocal::LOCAL_ENVIRONMENTS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/env_local.rb#21 +RuboCop::Cop::Rails::EnvLocal::MSG = T.let(T.unsafe(nil), String) + +# Checks that Rails.env is compared using `.production?`-like +# methods instead of equality against a string or symbol. +# +# @example +# # bad +# Rails.env == 'production' +# +# # bad, always returns false +# Rails.env == :test +# +# # good +# Rails.env.production? +# +# source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#18 +class RuboCop::Cop::Rails::EnvironmentComparison < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#27 + def comparing_str_env_with_rails_env_on_lhs?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#35 + def comparing_str_env_with_rails_env_on_rhs?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#43 + def comparing_sym_env_with_rails_env_on_lhs?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#51 + def comparing_sym_env_with_rails_env_on_rhs?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#59 + def content(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#63 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#84 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#90 + def build_predicate_method(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#102 + def build_predicate_method_for_rails_env_on_lhs(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#108 + def build_predicate_method_for_rails_env_on_rhs(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#98 + def rails_env_on_lhs?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#21 +RuboCop::Cop::Rails::EnvironmentComparison::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#25 +RuboCop::Cop::Rails::EnvironmentComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/environment_comparison.rb#23 +RuboCop::Cop::Rails::EnvironmentComparison::SYM_MSG = T.let(T.unsafe(nil), String) + +# Looks for direct access to environment variables through the +# `ENV` variable within the application code. This can lead to runtime +# errors due to misconfiguration that could have been discovered at boot +# time if the environment variables were loaded as part of initialization +# and copied into the application's configuration or secrets. The cop can +# be configured to allow either reads or writes if required. +# +# @example +# # good +# Rails.application.config.foo +# Rails.application.config.x.foo.bar +# Rails.application.secrets.foo +# Rails.application.config.foo = "bar" +# @example AllowReads: false (default) +# # bad +# ENV["FOO"] +# ENV.fetch("FOO") +# @example AllowReads: true +# # good +# ENV["FOO"] +# ENV.fetch("FOO") +# @example AllowWrites: false (default) +# # bad +# ENV["FOO"] = "bar" +# @example AllowWrites: true +# # good +# ENV["FOO"] = "bar" +# +# source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#37 +class RuboCop::Cop::Rails::EnvironmentVariableAccess < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#46 + def env_read?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#50 + def env_write?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#41 + def on_const(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#57 + def allow_reads?; end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#61 + def allow_writes?; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#38 +RuboCop::Cop::Rails::EnvironmentVariableAccess::READ_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/environment_variable_access.rb#39 +RuboCop::Cop::Rails::EnvironmentVariableAccess::WRITE_MSG = T.let(T.unsafe(nil), String) + +# Enforces that `exit` calls are not used within a rails app. +# Valid options are instead to raise an error, break, return, or some +# other form of stopping execution of current request. +# +# There are two obvious cases where `exit` is particularly harmful: +# +# * Usage in library code for your application. Even though Rails will +# rescue from a `SystemExit` and continue on, unit testing that library +# code will result in specs exiting (potentially silently if `exit(0)` +# is used.) +# * Usage in application code outside of the web process could result in +# the program exiting, which could result in the code failing to run and +# do its job. +# +# @example +# # bad +# exit(0) +# +# # good +# raise 'a bad error has happened' +# +# source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#26 +class RuboCop::Cop::Rails::Exit < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#33 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#39 + def offending_node?(node); end + + # More than 1 argument likely means it is a different + # `exit` implementation than the one we are preventing. + # + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#45 + def right_argument_count?(arg_nodes); end + + # Only register if exit is being called explicitly on `Kernel`, + # `Process`, or if receiver node is nil for plain `exit` calls. + # + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#51 + def right_receiver?(receiver_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#31 +RuboCop::Cop::Rails::Exit::EXPLICIT_RECEIVERS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#29 +RuboCop::Cop::Rails::Exit::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/exit.rb#30 +RuboCop::Cop::Rails::Exit::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for expanded date range. It only compatible `..` range is targeted. +# Incompatible `...` range is ignored. +# +# @example +# # bad +# date.beginning_of_day..date.end_of_day +# date.beginning_of_week..date.end_of_week +# date.beginning_of_month..date.end_of_month +# date.beginning_of_quarter..date.end_of_quarter +# date.beginning_of_year..date.end_of_year +# +# # good +# date.all_day +# date.all_week +# date.all_month +# date.all_quarter +# date.all_year +# +# source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#24 +class RuboCop::Cop::Rails::ExpandedDateRange < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#48 + def on_irange(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#67 + def allow?(begin_node, end_node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#88 + def any_arguments?(begin_node, end_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#84 + def preferred_method(begin_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#74 + def receiver_source(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#92 + def register_offense(node, preferred_method); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#80 + def same_argument?(begin_node, end_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#40 +RuboCop::Cop::Rails::ExpandedDateRange::MAPPED_DATE_RANGE_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#28 +RuboCop::Cop::Rails::ExpandedDateRange::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/expanded_date_range.rb#32 +RuboCop::Cop::Rails::ExpandedDateRange::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) + +# Identifies usages of file path joining process to use `Rails.root.join` clause. +# It is used to add uniformity when joining paths. +# +# @example EnforcedStyle: slashes (default) +# # bad +# Rails.root.join('app', 'models', 'goober') +# +# # good +# Rails.root.join('app/models/goober') +# +# # bad +# File.join(Rails.root, 'app/models/goober') +# "#{Rails.root}/app/models/goober" +# +# # good +# Rails.root.join('app/models/goober').to_s +# @example EnforcedStyle: arguments +# # bad +# Rails.root.join('app/models/goober') +# +# # good +# Rails.root.join('app', 'models', 'goober') +# +# # bad +# File.join(Rails.root, 'app/models/goober') +# "#{Rails.root}/app/models/goober" +# +# # good +# Rails.root.join('app', 'models', 'goober').to_s +# +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#37 +class RuboCop::Cop::Rails::FilePath < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#47 + def file_join_nodes?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#59 + def on_dstr(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#67 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#55 + def rails_root_join_nodes?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#51 + def rails_root_nodes?(param0); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#223 + def append_argument(corrector, node, argument_source); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#164 + def autocorrect_extension_after_rails_root_join_in_dstr(corrector, node, rails_root_index, extension_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#172 + def autocorrect_file_join(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#204 + def autocorrect_rails_root_join_with_slash_separated_path(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#189 + def autocorrect_rails_root_join_with_string_arguments(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#153 + def autocorrect_slash_after_rails_root_in_dstr(corrector, node, rails_root_index); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#140 + def build_message(require_to_s); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#85 + def check_for_extension_after_rails_root_join_in_dstr(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#95 + def check_for_file_join_with_rails_root(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#116 + def check_for_rails_root_join_with_slash_separated_path(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#104 + def check_for_rails_root_join_with_string_arguments(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#75 + def check_for_slash_after_rails_root_in_dstr(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#147 + def dstr_separated_by_colon?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#235 + def extension_node?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#231 + def extract_rails_root_join_argument_source(node, rails_root_index); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#219 + def find_rails_root_index(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#215 + def inner_range_of(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#131 + def register_offense(node, require_to_s:, &block); end + + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#227 + def replace_with_rails_root_join(corrector, node, argument_source); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#127 + def string_with_slash?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#44 +RuboCop::Cop::Rails::FilePath::MSG_ARGUMENTS = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#43 +RuboCop::Cop::Rails::FilePath::MSG_SLASHES = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/file_path.rb#45 +RuboCop::Cop::Rails::FilePath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies usages of `where.take` and change them to use `find_by` instead. +# +# And `where(...).first` can return different results from `find_by`. +# (They order records differently, so the "first" record can be different.) +# +# If you also want to detect `where.first`, you can set `IgnoreWhereFirst` to false. +# +# @example +# # bad +# User.where(name: 'Bruce').take +# +# # good +# User.find_by(name: 'Bruce') +# @example IgnoreWhereFirst: true (default) +# # good +# User.where(name: 'Bruce').first +# @example IgnoreWhereFirst: false +# # bad +# User.where(name: 'Bruce').first +# +# source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#27 +class RuboCop::Cop::Rails::FindBy < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#34 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#34 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#58 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#68 + def ignore_where_first?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#54 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#48 + def where_method?(receiver); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#31 +RuboCop::Cop::Rails::FindBy::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/find_by.rb#32 +RuboCop::Cop::Rails::FindBy::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces that `ActiveRecord#find` is used instead of +# `where.take!`, `find_by!`, and `find_by_id!` to retrieve a single record +# by primary key when you expect it to be found. +# +# @example +# # bad +# User.where(id: id).take! +# User.find_by_id!(id) +# User.find_by!(id: id) +# +# # good +# User.find(id) +# +# source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#19 +class RuboCop::Cop::Rails::FindById < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#33 + def find_by?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#40 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#40 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#26 + def where_take?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#74 + def build_good_method(id_value); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#70 + def find_by_offense_range(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#57 + def register_offense(range, id_value); end + + # source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#66 + def where_take_offense_range(node, where); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#23 +RuboCop::Cop::Rails::FindById::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/find_by_id.rb#24 +RuboCop::Cop::Rails::FindById::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies usages of `all.each` and change them to use `all.find_each` instead. +# +# @example +# # bad +# User.all.each +# +# # good +# User.all.find_each +# @example AllowedMethods: ['order'] +# # good +# User.order(:foo).each +# @example AllowedPattern: ['order'] +# # good +# User.order(:foo).each +# +# source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#27 +class RuboCop::Cop::Rails::FindEach < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordHelper + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#41 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#67 + def active_model_error?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#63 + def active_model_error_where?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#55 + def ignored?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#33 +RuboCop::Cop::Rails::FindEach::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#34 +RuboCop::Cop::Rails::FindEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/find_each.rb#36 +RuboCop::Cop::Rails::FindEach::SCOPE_METHODS = T.let(T.unsafe(nil), Array) + +# Identifies usages of `travel_to` with an argument of the current time and +# change them to use `freeze_time` instead. +# +# @example +# # bad +# travel_to(Time.now) +# travel_to(Time.new) +# travel_to(DateTime.now) +# travel_to(Time.current) +# travel_to(Time.zone.now) +# travel_to(Time.now.in_time_zone) +# travel_to(Time.current.to_time) +# +# # good +# freeze_time +# +# source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#27 +class RuboCop::Cop::Rails::FreezeTime < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#48 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#39 + def time_now?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#44 + def zoned_time_now?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#62 + def current_time?(node, method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#68 + def current_time_with_convert?(node, method_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#35 +RuboCop::Cop::Rails::FreezeTime::CONVERT_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#33 +RuboCop::Cop::Rails::FreezeTime::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#34 +RuboCop::Cop::Rails::FreezeTime::NOW_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/freeze_time.rb#36 +RuboCop::Cop::Rails::FreezeTime::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of the has_and_belongs_to_many macro. +# +# @example +# # bad +# # has_and_belongs_to_many :ingredients +# +# # good +# # has_many :ingredients, through: :recipe_ingredients +# +# source://rubocop-rails//lib/rubocop/cop/rails/has_and_belongs_to_many.rb#14 +class RuboCop::Cop::Rails::HasAndBelongsToMany < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/has_and_belongs_to_many.rb#18 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/has_and_belongs_to_many.rb#15 +RuboCop::Cop::Rails::HasAndBelongsToMany::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/has_and_belongs_to_many.rb#16 +RuboCop::Cop::Rails::HasAndBelongsToMany::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for `has_many` or `has_one` associations that don't +# specify a `:dependent` option. +# +# It doesn't register an offense if `:through` or `dependent: nil` +# is specified, or if the model is read-only. +# +# @example +# # bad +# class User < ActiveRecord::Base +# has_many :comments +# has_one :avatar +# end +# +# # good +# class User < ActiveRecord::Base +# has_many :comments, dependent: :restrict_with_exception +# has_one :avatar, dependent: :destroy +# has_many :articles, dependent: nil +# has_many :patients, through: :appointments +# end +# +# class User < ActiveRecord::Base +# has_many :comments +# has_one :avatar +# +# def readonly? +# true +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#35 +class RuboCop::Cop::Rails::HasManyOrHasOneDependent < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#39 + def active_resource_class?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#66 + def association_extension_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#47 + def association_with_options?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#43 + def association_without_options?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#51 + def dependent_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#78 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#55 + def present_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#72 + def readonly?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#59 + def with_options_block(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#135 + def active_resource?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#102 + def contain_valid_options_in_with_options_block?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#127 + def extract_option_if_kwsplat(options); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#88 + def readonly_model?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#114 + def valid_options?(options); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#94 + def valid_options_in_with_options_block?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#36 +RuboCop::Cop::Rails::HasManyOrHasOneDependent::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb#37 +RuboCop::Cop::Rails::HasManyOrHasOneDependent::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for use of the helper methods which reference +# instance variables. +# +# Relying on instance variables makes it difficult to reuse helper +# methods. +# +# If it seems awkward to explicitly pass in each dependent +# variable, consider moving the behavior elsewhere, for +# example to a model, decorator or presenter. +# +# Provided that a class inherits `ActionView::Helpers::FormBuilder`, +# an offense will not be registered. +# +# @example +# # bad +# def welcome_message +# "Hello #{@user.name}" +# end +# +# # good +# def welcome_message(user) +# "Hello #{user.name}" +# end +# +# # good +# class MyFormBuilder < ActionView::Helpers::FormBuilder +# @template.do_something +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/helper_instance_variable.rb#34 +class RuboCop::Cop::Rails::HelperInstanceVariable < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/helper_instance_variable.rb#37 + def form_builder_class?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/helper_instance_variable.rb#43 + def on_ivar(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/helper_instance_variable.rb#49 + def on_ivasgn(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/helper_instance_variable.rb#57 + def inherit_form_builder?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/helper_instance_variable.rb#35 +RuboCop::Cop::Rails::HelperInstanceVariable::MSG = T.let(T.unsafe(nil), String) + +# Identifies usages of http methods like `get`, `post`, +# `put`, `patch` without the usage of keyword arguments in your tests and +# change them to use keyword args. This cop only applies to Rails >= 5. +# If you are running Rails < 5 you should disable the +# Rails/HttpPositionalArguments cop or set your TargetRailsVersion in your +# .rubocop.yml file to 4.2. +# +# NOTE: It does not detect any cases where `include Rack::Test::Methods` is used +# which makes the http methods incompatible behavior. +# +# @example +# # bad +# get :new, { user_id: 1} +# +# # good +# get :new, params: { user_id: 1 } +# get :new, **options +# +# source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#23 +class RuboCop::Cop::Rails::HttpPositionalArguments < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#35 + def http_request?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#43 + def include_rack_test_methods?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#39 + def kwsplat_hash?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#50 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#109 + def convert_hash_data(data, type); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#123 + def correction(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#136 + def correction_template(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#99 + def format_arg?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#103 + def highlight_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#76 + def in_routing_block?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#86 + def needs_conversion?(data); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#95 + def special_keyword_arg?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#80 + def use_rack_test_methods?; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#29 +RuboCop::Cop::Rails::HttpPositionalArguments::KEYWORD_ARGS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#28 +RuboCop::Cop::Rails::HttpPositionalArguments::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#31 +RuboCop::Cop::Rails::HttpPositionalArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_positional_arguments.rb#30 +RuboCop::Cop::Rails::HttpPositionalArguments::ROUTING_METHODS = T.let(T.unsafe(nil), Array) + +# Enforces use of symbolic or numeric value to define HTTP status. +# +# @example EnforcedStyle: symbolic (default) +# # bad +# render :foo, status: 200 +# render :foo, status: '200' +# render json: { foo: 'bar' }, status: 200 +# render plain: 'foo/bar', status: 304 +# redirect_to root_url, status: 301 +# head 200 +# assert_response 200 +# assert_redirected_to '/some/path', status: 301 +# +# # good +# render :foo, status: :ok +# render json: { foo: 'bar' }, status: :ok +# render plain: 'foo/bar', status: :not_modified +# redirect_to root_url, status: :moved_permanently +# head :ok +# assert_response :ok +# assert_redirected_to '/some/path', status: :moved_permanently +# @example EnforcedStyle: numeric +# # bad +# render :foo, status: :ok +# render json: { foo: 'bar' }, status: :not_found +# render plain: 'foo/bar', status: :not_modified +# redirect_to root_url, status: :moved_permanently +# head :ok +# assert_response :ok +# assert_redirected_to '/some/path', status: :moved_permanently +# +# # good +# render :foo, status: 200 +# render json: { foo: 'bar' }, status: 404 +# render plain: 'foo/bar', status: 304 +# redirect_to root_url, status: 301 +# head 200 +# assert_response 200 +# assert_redirected_to '/some/path', status: 301 +# +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#47 +class RuboCop::Cop::Rails::HttpStatus < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#53 + def http_status(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#67 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#63 + def status_code(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#87 + def checker_class; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#135 +class RuboCop::Cop::Rails::HttpStatus::NumericStyleChecker + # @return [NumericStyleChecker] a new instance of NumericStyleChecker + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#142 + def initialize(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#150 + def message; end + + # Returns the value of attribute node. + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#140 + def node; end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#146 + def offensive?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#154 + def preferred_style; end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#160 + def number; end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#168 + def permitted_symbol?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#164 + def symbol; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#137 +RuboCop::Cop::Rails::HttpStatus::NumericStyleChecker::DEFAULT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#136 +RuboCop::Cop::Rails::HttpStatus::NumericStyleChecker::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#138 +RuboCop::Cop::Rails::HttpStatus::NumericStyleChecker::PERMITTED_STATUS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#51 +RuboCop::Cop::Rails::HttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#97 +class RuboCop::Cop::Rails::HttpStatus::SymbolicStyleChecker + # @return [SymbolicStyleChecker] a new instance of SymbolicStyleChecker + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#103 + def initialize(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#111 + def message; end + + # Returns the value of attribute node. + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#101 + def node; end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#107 + def offensive?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#115 + def preferred_style; end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#129 + def custom_http_status_code?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#125 + def number; end + + # source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#121 + def symbol; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#99 +RuboCop::Cop::Rails::HttpStatus::SymbolicStyleChecker::DEFAULT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/http_status.rb#98 +RuboCop::Cop::Rails::HttpStatus::SymbolicStyleChecker::MSG = T.let(T.unsafe(nil), String) + +# Checks for places where I18n "lazy" lookup can be used. +# +# This cop has two different enforcement modes. When the EnforcedStyle +# is `lazy` (the default), explicit lookups are added as offenses. +# +# When the EnforcedStyle is `explicit` then lazy lookups are added as +# offenses. +# +# @example EnforcedStyle: lazy (default) +# # en.yml +# # en: +# # books: +# # create: +# # success: Book created! +# +# # bad +# class BooksController < ApplicationController +# def create +# # ... +# redirect_to books_url, notice: t('books.create.success') +# end +# end +# +# # good +# class BooksController < ApplicationController +# def create +# # ... +# redirect_to books_url, notice: t('.success') +# end +# end +# @example EnforcedStyle: explicit +# # bad +# class BooksController < ApplicationController +# def create +# # ... +# redirect_to books_url, notice: t('.success') +# end +# end +# +# # good +# class BooksController < ApplicationController +# def create +# # ... +# redirect_to books_url, notice: t('books.create.success') +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#54 +class RuboCop::Cop::Rails::I18nLazyLookup < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::VisibilityHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#67 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#63 + def translate_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#109 + def controller_and_action(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#127 + def controller_path(controller); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#119 + def get_scoped_key(key_node, controller, action); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#96 + def handle_explicit_style(node, key_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#80 + def handle_lazy_style(node, key_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#140 + def message(_range); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#59 +RuboCop::Cop::Rails::I18nLazyLookup::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_lazy_lookup.rb#61 +RuboCop::Cop::Rails::I18nLazyLookup::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of `I18n.locale=` method. +# +# The `locale` attribute persists for the rest of the Ruby runtime, potentially causing +# unexpected behavior at a later time. +# Using `I18n.with_locale` ensures the code passed in the block is the only place `I18n.locale` is affected. +# It eliminates the possibility of a `locale` sticking around longer than intended. +# +# @example +# # bad +# I18n.locale = :fr +# +# # good +# I18n.with_locale(:fr) do +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_assignment.rb#21 +class RuboCop::Cop::Rails::I18nLocaleAssignment < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_assignment.rb#25 + def i18n_locale_assignment?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_assignment.rb#29 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_assignment.rb#22 +RuboCop::Cop::Rails::I18nLocaleAssignment::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_assignment.rb#23 +RuboCop::Cop::Rails::I18nLocaleAssignment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces use of I18n and locale files instead of locale specific strings. +# +# @example +# # bad +# class User < ApplicationRecord +# validates :email, presence: { message: "must be present" } +# end +# +# # good +# # config/locales/en.yml +# # en: +# # activerecord: +# # errors: +# # models: +# # user: +# # blank: "must be present" +# +# class User < ApplicationRecord +# validates :email, presence: true +# end +# +# # bad +# class PostsController < ApplicationController +# def create +# # ... +# redirect_to root_path, notice: "Post created!" +# end +# end +# +# # good +# # config/locales/en.yml +# # en: +# # posts: +# # create: +# # success: "Post created!" +# +# class PostsController < ApplicationController +# def create +# # ... +# redirect_to root_path, notice: t(".success") +# end +# end +# +# # bad +# class UserMailer < ApplicationMailer +# def welcome(user) +# mail(to: user.email, subject: "Welcome to My Awesome Site") +# end +# end +# +# # good +# # config/locales/en.yml +# # en: +# # user_mailer: +# # welcome: +# # subject: "Welcome to My Awesome Site" +# +# class UserMailer < ApplicationMailer +# def welcome(user) +# mail(to: user.email) +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#69 +class RuboCop::Cop::Rails::I18nLocaleTexts < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#82 + def flash_assignment?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#90 + def mail_subject(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#94 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#78 + def redirect_to_flash(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#74 + def validation_message(param0); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#70 +RuboCop::Cop::Rails::I18nLocaleTexts::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/i18n_locale_texts.rb#72 +RuboCop::Cop::Rails::I18nLocaleTexts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for assignments of `ignored_columns` that may override previous +# assignments. +# +# Overwriting previous assignments is usually a mistake, since it will +# un-ignore the first set of columns. Since duplicate column names is not +# a problem, it is better to simply append to the list. +# +# @example +# +# # bad +# class User < ActiveRecord::Base +# self.ignored_columns = [:one] +# end +# +# # bad +# class User < ActiveRecord::Base +# self.ignored_columns = [:one, :two] +# end +# +# # good +# class User < ActiveRecord::Base +# self.ignored_columns += [:one, :two] +# end +# +# # good +# class User < ActiveRecord::Base +# self.ignored_columns += [:one] +# self.ignored_columns += [:two] +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/ignored_columns_assignment.rb#36 +class RuboCop::Cop::Rails::IgnoredColumnsAssignment < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/ignored_columns_assignment.rb#42 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/ignored_columns_assignment.rb#39 +RuboCop::Cop::Rails::IgnoredColumnsAssignment::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/ignored_columns_assignment.rb#40 +RuboCop::Cop::Rails::IgnoredColumnsAssignment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that `if` and `only` (or `except`) are not used together +# as options of `skip_*` action filter. +# +# The `if` option will be ignored when `if` and `only` are used together. +# Similarly, the `except` option will be ignored when `if` and `except` +# are used together. +# +# @example +# # bad +# class MyPageController < ApplicationController +# skip_before_action :login_required, +# only: :show, if: :trusted_origin? +# end +# +# # good +# class MyPageController < ApplicationController +# skip_before_action :login_required, +# if: -> { trusted_origin? && action_name == "show" } +# end +# @example +# # bad +# class MyPageController < ApplicationController +# skip_before_action :login_required, +# except: :admin, if: :trusted_origin? +# end +# +# # good +# class MyPageController < ApplicationController +# skip_before_action :login_required, +# if: -> { trusted_origin? && action_name != "admin" } +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#38 +class RuboCop::Cop::Rails::IgnoredSkipActionFilterOption < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#51 + def filter_options(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#59 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#89 + def if_and_except?(options); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#85 + def if_and_only?(options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#79 + def options_hash(options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#93 + def remove_node_with_left_space_and_comma(corrector, node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#49 +RuboCop::Cop::Rails::IgnoredSkipActionFilterOption::FILTERS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#43 +RuboCop::Cop::Rails::IgnoredSkipActionFilterOption::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb#47 +RuboCop::Cop::Rails::IgnoredSkipActionFilterOption::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for uses of `each_with_object({}) { ... }`, +# `map { ... }.to_h`, and `Hash[map { ... }]` that are transforming +# an enumerable into a hash where the values are the original elements. +# Rails provides the `index_by` method for this purpose. +# +# @example +# # bad +# [1, 2, 3].each_with_object({}) { |el, h| h[foo(el)] = el } +# [1, 2, 3].to_h { |el| [foo(el), el] } +# [1, 2, 3].map { |el| [foo(el), el] }.to_h +# Hash[[1, 2, 3].collect { |el| [foo(el), el] }] +# +# # good +# [1, 2, 3].index_by { |el| foo(el) } +# +# source://rubocop-rails//lib/rubocop/cop/rails/index_by.rb#20 +class RuboCop::Cop::Rails::IndexBy < ::RuboCop::Cop::Base + include ::RuboCop::Cop::IndexMethod + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/index_by.rb#24 + def on_bad_each_with_object(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/index_by.rb#47 + def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/index_by.rb#38 + def on_bad_map_to_h(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/index_by.rb#31 + def on_bad_to_h(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/index_by.rb#59 + def new_method_name; end +end + +# Looks for uses of `each_with_object({}) { ... }`, +# `map { ... }.to_h`, and `Hash[map { ... }]` that are transforming +# an enumerable into a hash where the keys are the original elements. +# Rails provides the `index_with` method for this purpose. +# +# @example +# # bad +# [1, 2, 3].each_with_object({}) { |el, h| h[el] = foo(el) } +# [1, 2, 3].to_h { |el| [el, foo(el)] } +# [1, 2, 3].map { |el| [el, foo(el)] }.to_h +# Hash[[1, 2, 3].collect { |el| [el, foo(el)] }] +# +# # good +# [1, 2, 3].index_with { |el| foo(el) } +# +# source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#20 +class RuboCop::Cop::Rails::IndexWith < ::RuboCop::Cop::Base + include ::RuboCop::Cop::IndexMethod + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#27 + def on_bad_each_with_object(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#50 + def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#41 + def on_bad_map_to_h(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#34 + def on_bad_to_h(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/index_with.rb#62 + def new_method_name; end +end + +# Checks that Active Support's `inquiry` method is not used. +# +# @example +# # bad - String#inquiry +# ruby = 'two'.inquiry +# ruby.two? +# +# # good +# ruby = 'two' +# ruby == 'two' +# +# # bad - Array#inquiry +# pets = %w(cat dog).inquiry +# pets.gopher? +# +# # good +# pets = %w(cat dog) +# pets.include? 'cat' +# +# source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#25 +class RuboCop::Cop::Rails::Inquiry < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#29 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#29 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#26 +RuboCop::Cop::Rails::Inquiry::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/inquiry.rb#27 +RuboCop::Cop::Rails::Inquiry::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Looks for has_(one|many) and belongs_to associations where +# Active Record can't automatically determine the inverse association +# because of a scope or the options used. Using the blog with order scope +# example below, traversing the a Blog's association in both directions +# with `blog.posts.first.blog` would cause the `blog` to be loaded from +# the database twice. +# +# `:inverse_of` must be manually specified for Active Record to use the +# associated object in memory, or set to `false` to opt-out. Note that +# setting `nil` does not stop Active Record from trying to determine the +# inverse automatically, and is not considered a valid value for this. +# +# @example +# # good +# class Blog < ApplicationRecord +# has_many :posts +# end +# +# class Post < ApplicationRecord +# belongs_to :blog +# end +# @example +# # bad +# class Blog < ApplicationRecord +# has_many :posts, -> { order(published_at: :desc) } +# end +# +# class Post < ApplicationRecord +# belongs_to :blog +# end +# +# # good +# class Blog < ApplicationRecord +# has_many(:posts, +# -> { order(published_at: :desc) }, +# inverse_of: :blog) +# end +# +# class Post < ApplicationRecord +# belongs_to :blog +# end +# +# # good +# class Blog < ApplicationRecord +# with_options inverse_of: :blog do +# has_many :posts, -> { order(published_at: :desc) } +# end +# end +# +# class Post < ApplicationRecord +# belongs_to :blog +# end +# +# # good +# # When you don't want to use the inverse association. +# class Blog < ApplicationRecord +# has_many(:posts, +# -> { order(published_at: :desc) }, +# inverse_of: false) +# end +# @example +# # bad +# class Picture < ApplicationRecord +# belongs_to :imageable, polymorphic: true +# end +# +# class Employee < ApplicationRecord +# has_many :pictures, as: :imageable +# end +# +# class Product < ApplicationRecord +# has_many :pictures, as: :imageable +# end +# +# # good +# class Picture < ApplicationRecord +# belongs_to :imageable, polymorphic: true +# end +# +# class Employee < ApplicationRecord +# has_many :pictures, as: :imageable, inverse_of: :imageable +# end +# +# class Product < ApplicationRecord +# has_many :pictures, as: :imageable, inverse_of: :imageable +# end +# @example +# # bad +# # However, RuboCop can not detect this pattern... +# class Physician < ApplicationRecord +# has_many :appointments +# has_many :patients, through: :appointments +# end +# +# class Appointment < ApplicationRecord +# belongs_to :physician +# belongs_to :patient +# end +# +# class Patient < ApplicationRecord +# has_many :appointments +# has_many :physicians, through: :appointments +# end +# +# # good +# class Physician < ApplicationRecord +# has_many :appointments +# has_many :patients, through: :appointments +# end +# +# class Appointment < ApplicationRecord +# belongs_to :physician, inverse_of: :appointments +# belongs_to :patient, inverse_of: :appointments +# end +# +# class Patient < ApplicationRecord +# has_many :appointments +# has_many :physicians, through: :appointments +# end +# @example IgnoreScopes: false (default) +# # bad +# class Blog < ApplicationRecord +# has_many :posts, -> { order(published_at: :desc) } +# end +# @example IgnoreScopes: true +# # good +# class Blog < ApplicationRecord +# has_many :posts, -> { order(published_at: :desc) } +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#140 +class RuboCop::Cop::Rails::InverseOf < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#165 + def as_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#145 + def association_recv_arguments(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#153 + def conditions_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#169 + def foreign_key_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#177 + def inverse_of_nil_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#173 + def inverse_of_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#181 + def on_send(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#219 + def options_contain_inverse_of?(options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#149 + def options_from_argument(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#213 + def options_ignoring_inverse_of?(options); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#203 + def options_requiring_inverse_of?(options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#161 + def polymorphic_option?(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#230 + def same_context_in_with_options?(arg, recv); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#199 + def scope?(arguments); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#157 + def through_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#223 + def with_options_arguments(recv, node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#246 + def ignore_scopes?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#238 + def message(options); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#142 +RuboCop::Cop::Rails::InverseOf::NIL_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#143 +RuboCop::Cop::Rails::InverseOf::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/inverse_of.rb#141 +RuboCop::Cop::Rails::InverseOf::SPECIFY_MSG = T.let(T.unsafe(nil), String) + +# Checks that methods specified in the filter's `only` or +# `except` options are defined within the same class or module. +# +# @example +# # bad +# class LoginController < ApplicationController +# before_action :require_login, only: %i[index settings logout] +# +# def index +# end +# end +# +# # good +# class LoginController < ApplicationController +# before_action :require_login, only: %i[index settings logout] +# +# def index +# end +# +# def settings +# end +# +# def logout +# end +# end +# @example +# # bad +# module FooMixin +# extend ActiveSupport::Concern +# +# included do +# before_action proc { authenticate }, only: :foo +# end +# end +# +# # good +# module FooMixin +# extend ActiveSupport::Concern +# +# included do +# before_action proc { authenticate }, only: :foo +# end +# +# def foo +# # something +# end +# end +# @example +# class ContentController < ApplicationController +# def update +# @content.update(content_attributes) +# end +# end +# +# class ArticlesController < ContentController +# before_action :load_article, only: [:update] +# +# # the cop requires this method, but it relies on behavior defined +# # in the superclass, so needs to invoke `super` +# def update +# super +# end +# +# private +# +# def load_article +# @content = Article.find(params[:article_id]) +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#86 +class RuboCop::Cop::Rails::LexicallyScopedActionFilter < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#118 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#107 + def only_or_except_filter_methods(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#154 + def alias_methods(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#145 + def aliased_action_methods(node, defined_methods); end + + # @param node [RuboCop::AST::Node] + # @return [Array] + # + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#171 + def array_values(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#138 + def defined_action_methods(block); end + + # @param methods [Array] + # @param parent [RuboCop::AST::Node] + # @return [String] + # + # source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#194 + def message(methods, parent); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#105 +RuboCop::Cop::Rails::LexicallyScopedActionFilter::FILTERS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#87 +RuboCop::Cop::Rails::LexicallyScopedActionFilter::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/lexically_scoped_action_filter.rb#89 +RuboCop::Cop::Rails::LexicallyScopedActionFilter::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for calls to `link_to`, `link_to_if`, and `link_to_unless` methods that contain a +# `target: '_blank'` but no `rel: 'noopener'`. This can be a security +# risk as the loaded page will have control over the previous page +# and could change its location for phishing purposes. +# +# The option `rel: 'noreferrer'` also blocks this behavior +# and removes the http-referrer header. +# +# @example +# # bad +# link_to 'Click here', url, target: '_blank' +# +# # good +# link_to 'Click here', url, target: '_blank', rel: 'noopener' +# +# # good +# link_to 'Click here', url, target: '_blank', rel: 'noreferrer' +# +# source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#23 +class RuboCop::Cop::Rails::LinkToBlank < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#29 + def blank_target?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#33 + def includes_noopener?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#41 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#37 + def rel_node?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#75 + def add_rel(send_node, offense_node, corrector); end + + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#69 + def append_to_rel(rel_node, corrector); end + + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#56 + def autocorrect(corrector, send_node, node, option_nodes); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#88 + def contains_noopener?(value); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#26 +RuboCop::Cop::Rails::LinkToBlank::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/link_to_blank.rb#27 +RuboCop::Cop::Rails::LinkToBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces that mailer names end with `Mailer` suffix. +# +# Without the `Mailer` suffix it isn't immediately apparent what's a mailer +# and which views are related to the mailer. +# +# @example +# # bad +# class User < ActionMailer::Base +# end +# +# class User < ApplicationMailer +# end +# +# # good +# class UserMailer < ActionMailer::Base +# end +# +# class UserMailer < ApplicationMailer +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#30 +class RuboCop::Cop::Rails::MailerName < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#42 + def class_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#46 + def class_new_definition?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#35 + def mailer_base_class?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#50 + def on_class(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#58 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#74 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#84 + def mailer_suffix?(mailer_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/mailer_name.rb#33 +RuboCop::Cop::Rails::MailerName::MSG = T.let(T.unsafe(nil), String) + +# Identifies places where defining routes with `match` +# can be replaced with a specific HTTP method. +# +# Don't use `match` to define any routes unless there is a need to map multiple request types +# among [:get, :post, :patch, :put, :delete] to a single action using the `:via` option. +# +# @example +# # bad +# match ':controller/:action/:id' +# match 'photos/:id', to: 'photos#show', via: :get +# +# # good +# get ':controller/:action/:id' +# get 'photos/:id', to: 'photos#show' +# match 'photos/:id', to: 'photos#show', via: [:get, :post] +# match 'photos/:id', to: 'photos#show', via: :all +# +# source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#23 +class RuboCop::Cop::Rails::MatchRoute < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#30 + def match_method_call?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#34 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#63 + def routes_draw?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#71 + def extract_via(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#90 + def http_method?(method); end + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#111 + def http_method_and_options(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#53 + def register_offense(node, http_method); end + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#94 + def replacement(path_node, options_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#86 + def via_pair(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#67 + def within_routes?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#28 +RuboCop::Cop::Rails::MatchRoute::HTTP_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#26 +RuboCop::Cop::Rails::MatchRoute::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/match_route.rb#27 +RuboCop::Cop::Rails::MatchRoute::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Makes sure that each migration file defines a migration class +# whose name matches the file name. +# (e.g. `20220224111111_create_users.rb` should define `CreateUsers` class.) +# +# @example +# # db/migrate/20220224111111_create_users.rb +# +# # bad +# class SellBooks < ActiveRecord::Migration[7.0] +# end +# +# # good +# class CreateUsers < ActiveRecord::Migration[7.0] +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/migration_class_name.rb#21 +class RuboCop::Cop::Rails::MigrationClassName < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MigrationsHelper + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/migration_class_name.rb#27 + def on_class(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/migration_class_name.rb#45 + def basename_without_timestamp_and_suffix(filepath); end + + # source://rubocop-rails//lib/rubocop/cop/rails/migration_class_name.rb#57 + def camelize(word); end + + # e.g.: from `add_blobs.active_storage` to `add_blobs`. + # + # source://rubocop-rails//lib/rubocop/cop/rails/migration_class_name.rb#53 + def remove_gem_suffix(file_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/migration_class_name.rb#25 +RuboCop::Cop::Rails::MigrationClassName::MSG = T.let(T.unsafe(nil), String) + +# Enforces the use of `collection.exclude?(obj)` +# over `!collection.include?(obj)`. +# +# @example +# # bad +# !array.include?(2) +# !hash.include?(:key) +# +# # good +# array.exclude?(2) +# hash.exclude?(:key) +# +# source://rubocop-rails//lib/rubocop/cop/rails/negate_include.rb#22 +class RuboCop::Cop::Rails::NegateInclude < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/negate_include.rb#28 + def negate_include_call?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/negate_include.rb#32 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/negate_include.rb#25 +RuboCop::Cop::Rails::NegateInclude::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/negate_include.rb#26 +RuboCop::Cop::Rails::NegateInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for add_column calls with a NOT NULL constraint without a default +# value. +# +# This cop only applies when adding a column to an existing table, since +# existing records will not have a value for the new column. New tables +# can freely use NOT NULL columns without defaults, since there are no +# records that could violate the constraint. +# +# If you need to add a NOT NULL column to an existing table, you must add +# it as nullable first, back-fill the data, and then use +# `change_column_null`. Alternatively, you could add the column with a +# default first to have the database automatically backfill existing rows, +# and then use `change_column_default` to remove the default. +# +# `TEXT` cannot have a default value in MySQL. +# The cop will automatically detect an adapter from `development` +# environment in `config/database.yml` or the environment variable +# `DATABASE_URL` when the `Database` option is not set. If the database +# is MySQL, this cop ignores offenses for `TEXT` columns. +# +# @example +# # bad +# add_column :users, :name, :string, null: false +# add_reference :products, :category, null: false +# change_table :users do |t| +# t.string :name, null: false +# end +# +# # good +# add_column :users, :name, :string, null: true +# add_column :users, :name, :string, null: false, default: '' +# change_table :users do |t| +# t.string :name, null: false, default: '' +# end +# add_reference :products, :category +# change_column_null :products, :category_id, false +# +# source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#42 +class RuboCop::Cop::Rails::NotNullColumn < ::RuboCop::Cop::Base + include ::RuboCop::Cop::DatabaseTypeResolvable + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#48 + def add_not_null_column?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#60 + def add_not_null_column_in_change_table?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#64 + def add_not_null_column_via_shortcut_in_change_table?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#52 + def add_not_null_reference?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#68 + def add_not_null_reference_in_change_table?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#56 + def change_table?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#76 + def default_option?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#72 + def null_false?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#85 + def on_block(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#85 + def on_numblock(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#80 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#101 + def check_add_column(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#113 + def check_add_column_in_change_table(node, table); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#121 + def check_add_column_via_shortcut_in_change_table(node, table); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#107 + def check_add_reference(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#129 + def check_add_reference_in_change_table(node, table); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#137 + def check_change_table(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#92 + def check_column(type, pairs); end + + # source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#150 + def check_pairs(pairs); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#45 +RuboCop::Cop::Rails::NotNullColumn::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/not_null_column.rb#46 +RuboCop::Cop::Rails::NotNullColumn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for places where ordering by `id` column is used. +# +# Don't use the `id` column for ordering. The sequence of ids is not guaranteed +# to be in any particular order, despite often (incidentally) being chronological. +# Use a timestamp column to order chronologically. As a bonus the intent is clearer. +# +# NOTE: Make sure the changed order column does not introduce performance +# bottlenecks and appropriate database indexes are added. +# +# @example +# # bad +# scope :chronological, -> { order(id: :asc) } +# scope :chronological, -> { order(primary_key => :asc) } +# +# # good +# scope :chronological, -> { order(created_at: :asc) } +# +# source://rubocop-rails//lib/rubocop/cop/rails/order_by_id.rb#23 +class RuboCop::Cop::Rails::OrderById < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop-rails//lib/rubocop/cop/rails/order_by_id.rb#39 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/order_by_id.rb#29 + def order_by_id?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/order_by_id.rb#45 + def offense_range(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/order_by_id.rb#26 +RuboCop::Cop::Rails::OrderById::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/order_by_id.rb#27 +RuboCop::Cop::Rails::OrderById::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of output calls like puts and print +# +# @example +# # bad +# puts 'A debug message' +# pp 'A debug message' +# print 'A debug message' +# +# # good +# Rails.logger.debug 'A debug message' +# +# source://rubocop-rails//lib/rubocop/cop/rails/output.rb#20 +class RuboCop::Cop::Rails::Output < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#32 + def io_output?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#42 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#28 + def output?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#55 + def match_gvar?(sym); end + + # source://rubocop-rails//lib/rubocop/cop/rails/output.rb#59 + def offense_range(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/output.rb#26 +RuboCop::Cop::Rails::Output::ALLOWED_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/output.rb#24 +RuboCop::Cop::Rails::Output::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/output.rb#25 +RuboCop::Cop::Rails::Output::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of output safety calls like `html_safe`, +# `raw`, and `safe_concat`. These methods do not escape content. They +# simply return a SafeBuffer containing the content as is. Instead, +# use `safe_join` to join content and escape it and concat to +# concatenate content and escape it, ensuring its safety. +# +# @example +# user_content = "hi" +# +# # bad +# "

#{user_content}

".html_safe +# # => ActiveSupport::SafeBuffer "

hi

" +# +# # good +# content_tag(:p, user_content) +# # => ActiveSupport::SafeBuffer "

<b>hi</b>

" +# +# # bad +# out = "" +# out << "
  • #{user_content}
  • " +# out << "
  • #{user_content}
  • " +# out.html_safe +# # => ActiveSupport::SafeBuffer "
  • hi
  • hi
  • " +# +# # good +# out = [] +# out << content_tag(:li, user_content) +# out << content_tag(:li, user_content) +# safe_join(out) +# # => ActiveSupport::SafeBuffer +# # "
  • <b>hi</b>
  • <b>hi</b>
  • " +# +# # bad +# out = "

    trusted content

    ".html_safe +# out.safe_concat(user_content) +# # => ActiveSupport::SafeBuffer "

    trusted_content

    hi" +# +# # good +# out = "

    trusted content

    ".html_safe +# out.concat(user_content) +# # => ActiveSupport::SafeBuffer +# # "

    trusted_content

    <b>hi</b>" +# +# # safe, though maybe not good style +# out = "trusted content" +# result = out.concat(user_content) +# # => String "trusted contenthi" +# # because when rendered in ERB the String will be escaped: +# # <%= result %> +# # => trusted content<b>hi</b> +# +# # bad +# (user_content + " " + content_tag(:span, user_content)).html_safe +# # => ActiveSupport::SafeBuffer "hi hi" +# +# # good +# safe_join([user_content, " ", content_tag(:span, user_content)]) +# # => ActiveSupport::SafeBuffer +# # "<b>hi</b> <b>hi</b>" +# +# source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#65 +class RuboCop::Cop::Rails::OutputSafety < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#69 + def i18n_method?(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#73 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#73 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#90 + def looks_like_rails_html_safe?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#94 + def looks_like_rails_raw?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#98 + def looks_like_rails_safe_concat?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#86 + def non_interpolated_string?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#66 +RuboCop::Cop::Rails::OutputSafety::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/output_safety.rb#67 +RuboCop::Cop::Rails::OutputSafety::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use of `pick` over `pluck(...).first`. +# +# Using `pluck` followed by `first` creates an intermediate array, which +# `pick` avoids. When called on an Active Record relation, `pick` adds a +# limit to the query so that only one value is fetched from the database. +# +# Note that when `pick` is added to a relation with an existing limit, it +# causes a subquery to be added. In most cases this is undesirable, and +# care should be taken while resolving this violation. +# +# @example +# # bad +# Model.pluck(:a).first +# [{ a: :b, c: :d }].pluck(:a, :b).first +# +# # good +# Model.pick(:a) +# [{ a: :b, c: :d }].pick(:a, :b) +# +# source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#31 +class RuboCop::Cop::Rails::Pick < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#44 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#44 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#40 + def pick_candidate?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#63 + def message(receiver, current); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#35 +RuboCop::Cop::Rails::Pick::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/pick.rb#36 +RuboCop::Cop::Rails::Pick::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use of `pluck` over `map`. +# +# `pluck` can be used instead of `map` to extract a single key from each +# element in an enumerable. When called on an Active Record relation, it +# results in a more efficient query that only selects the necessary key. +# +# @example +# # bad +# Post.published.map { |post| post[:title] } +# [{ a: :b, c: :d }].collect { |el| el[:a] } +# +# # good +# Post.published.pluck(:title) +# [{ a: :b, c: :d }].pluck(:a) +# +# source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#32 +class RuboCop::Cop::Rails::Pluck < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#44 + def on_block(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#44 + def on_numblock(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#40 + def pluck_candidate?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#88 + def message(replacement, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#75 + def offense_range(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#79 + def register_offense(node, key); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#69 + def use_block_argument_in_key?(block_argument, key); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#63 + def use_one_block_argument?(argument); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/pluck.rb#36 +RuboCop::Cop::Rails::Pluck::MSG = T.let(T.unsafe(nil), String) + +# Enforces the use of `ids` over `pluck(:id)` and `pluck(primary_key)`. +# +# @example +# # bad +# User.pluck(:id) +# user.posts.pluck(:id) +# +# def self.user_ids +# pluck(primary_key) +# end +# +# # good +# User.ids +# user.posts.ids +# +# def self.user_ids +# ids +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#28 +class RuboCop::Cop::Rails::PluckId < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::ActiveRecordHelper + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#40 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#40 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#36 + def pluck_id_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#54 + def offense_range(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#33 +RuboCop::Cop::Rails::PluckId::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/pluck_id.rb#34 +RuboCop::Cop::Rails::PluckId::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `pluck` is used in `where` query methods +# and can be replaced with `select`. +# +# Since `pluck` is an eager method and hits the database immediately, +# using `select` helps to avoid additional database queries by running as +# a subquery. +# +# This cop has two modes of enforcement. When the `EnforcedStyle` is set +# to `conservative` (the default), only calls to `pluck` on a constant +# (e.g. a model class) within `where` are considered offenses. +# +# @example +# # bad +# Post.where(user_id: User.active.pluck(:id)) +# Post.where(user_id: User.active.ids) +# Post.where.not(user_id: User.active.pluck(:id)) +# +# # good +# Post.where(user_id: User.active.select(:id)) +# Post.where(user_id: active_users.select(:id)) +# Post.where.not(user_id: active_users.select(:id)) +# @example EnforcedStyle: conservative (default) +# # good +# Post.where(user_id: active_users.pluck(:id)) +# @example EnforcedStyle: aggressive +# # bad +# Post.where(user_id: active_users.pluck(:id)) +# +# source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#50 +class RuboCop::Cop::Rails::PluckInWhere < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordHelper + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#59 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#59 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#81 + def root_receiver(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#56 +RuboCop::Cop::Rails::PluckInWhere::MSG_IDS = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#55 +RuboCop::Cop::Rails::PluckInWhere::MSG_SELECT = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/pluck_in_where.rb#57 +RuboCop::Cop::Rails::PluckInWhere::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for correct grammar when using ActiveSupport's +# core extensions to the numeric classes. +# +# @example +# # bad +# 3.day.ago +# 1.months.ago +# 5.megabyte +# 1.gigabyte +# +# # good +# 3.days.ago +# 1.month.ago +# 5.megabytes +# 1.gigabyte +# +# source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#21 +class RuboCop::Cop::Rails::PluralizationGrammar < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#49 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#67 + def correct_method(method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#110 + def duration_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#98 + def literal_number?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#63 + def message(number, method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#75 + def offense?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#82 + def plural_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#94 + def plural_receiver?(number); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#102 + def pluralize(method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#86 + def singular_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#90 + def singular_receiver?(number); end + + # source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#106 + def singularize(method_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#47 +RuboCop::Cop::Rails::PluralizationGrammar::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#45 +RuboCop::Cop::Rails::PluralizationGrammar::PLURAL_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#43 +RuboCop::Cop::Rails::PluralizationGrammar::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/pluralization_grammar.rb#24 +RuboCop::Cop::Rails::PluralizationGrammar::SINGULAR_METHODS = T.let(T.unsafe(nil), Hash) + +# Checks code that can be written more easily using +# `Object#presence` defined by Active Support. +# +# @example +# # bad +# a.present? ? a : nil +# +# # bad +# !a.present? ? nil : a +# +# # bad +# a.blank? ? nil : a +# +# # bad +# !a.blank? ? a : nil +# +# # good +# a.presence +# @example +# # bad +# a.present? ? a : b +# +# # bad +# !a.present? ? b : a +# +# # bad +# a.blank? ? b : a +# +# # bad +# !a.blank? ? a : b +# +# # good +# a.presence || b +# +# source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#40 +class RuboCop::Cop::Rails::Presence < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#76 + def on_if(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#61 + def redundant_negative_receiver_and_other(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#46 + def redundant_receiver_and_other(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#135 + def build_source_for_or_method(other); end + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#114 + def current(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#100 + def ignore_if_node?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#104 + def ignore_other_node?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#108 + def message(node, receiver, other); end + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#146 + def method_range(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#94 + def register_offense(node, receiver, other); end + + # source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#122 + def replacement(receiver, other, left_sibling); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/presence.rb#44 +RuboCop::Cop::Rails::Presence::MSG = T.let(T.unsafe(nil), String) + +# Checks for code that can be written with simpler conditionals +# using `Object#present?` defined by Active Support. +# +# Interaction with `Style/UnlessElse`: +# The configuration of `NotBlank` will not produce an offense in the +# context of `unless else` if `Style/UnlessElse` is enabled. This is +# to prevent interference between the autocorrection of the two cops. +# +# @example NotNilAndNotEmpty: true (default) +# # Converts usages of `!nil? && !empty?` to `present?` +# +# # bad +# !foo.nil? && !foo.empty? +# +# # bad +# foo != nil && !foo.empty? +# +# # good +# foo.present? +# @example NotBlank: true (default) +# # Converts usages of `!blank?` to `present?` +# +# # bad +# !foo.blank? +# +# # bad +# not foo.blank? +# +# # good +# foo.present? +# @example UnlessBlank: true (default) +# # Converts usages of `unless blank?` to `if present?` +# +# # bad +# something unless foo.blank? +# +# # good +# something if foo.present? +# +# source://rubocop-rails//lib/rubocop/cop/rails/present.rb#46 +class RuboCop::Cop::Rails::Present < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#126 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#54 + def exists_and_not_empty?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#68 + def not_blank?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#86 + def on_and(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#112 + def on_if(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#100 + def on_or(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#74 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#70 + def unless_blank?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#150 + def replacement(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/present.rb#142 + def unless_condition(node, method_call); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/present.rb#50 +RuboCop::Cop::Rails::Present::MSG_EXISTS_AND_NOT_EMPTY = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/present.rb#49 +RuboCop::Cop::Rails::Present::MSG_NOT_BLANK = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/present.rb#51 +RuboCop::Cop::Rails::Present::MSG_UNLESS_BLANK = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/present.rb#52 +RuboCop::Cop::Rails::Present::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for Rake tasks without the `:environment` task +# dependency. The `:environment` task loads application code for other +# Rake tasks. Without it, tasks cannot make use of application code like +# models. +# +# You can ignore the offense if the task satisfies at least one of the +# following conditions: +# +# * The task does not need application code. +# * The task invokes the `:environment` task. +# +# @example +# # bad +# task :foo do +# do_something +# end +# +# # good +# task foo: :environment do +# do_something +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#33 +class RuboCop::Cop::Rails::RakeEnvironment < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#42 + def on_block(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#38 + def task_definition?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#62 + def correct_task_arguments_dependency(task_method); end + + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#66 + def correct_task_dependency(task_name); end + + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#91 + def task_arguments(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#74 + def task_name(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#95 + def with_arguments?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#99 + def with_dependencies?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#114 + def with_hash_style_dependencies?(hash_node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/rake_environment.rb#36 +RuboCop::Cop::Rails::RakeEnvironment::MSG = T.let(T.unsafe(nil), String) + +# Checks for the use of the `read_attribute` or `write_attribute` +# methods and recommends square brackets instead. +# +# If an attribute is missing from the instance (for example, when +# initialized by a partial `select`) then `read_attribute` +# will return nil, but square brackets will raise +# an `ActiveModel::MissingAttributeError`. +# +# Explicitly raising an error in this situation is preferable, and that +# is why rubocop recommends using square brackets. +# +# When called from within a method with the same name as the attribute, +# `read_attribute` and `write_attribute` must be used to prevent an +# infinite loop: +# +# @example +# +# # bad +# x = read_attribute(:attr) +# write_attribute(:attr, val) +# +# # good +# x = self[:attr] +# self[:attr] = val +# @example +# +# # good +# def foo +# bar || read_attribute(:foo) +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#37 +class RuboCop::Cop::Rails::ReadWriteAttribute < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#50 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#43 + def read_write_attribute?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#73 + def build_message(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#85 + def multi_line_message(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#93 + def node_replacement(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#102 + def read_attribute_replacement(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#81 + def single_line_message(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#61 + def within_shadowing_method?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#106 + def write_attribute_replacement(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#40 +RuboCop::Cop::Rails::ReadWriteAttribute::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/read_write_attribute.rb#41 +RuboCop::Cop::Rails::ReadWriteAttribute::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Detect redundant `all` used as a receiver for Active Record query methods. +# +# For the methods `delete_all` and `destroy_all`, this cop will only check cases where the receiver is a model. +# It will ignore cases where the receiver is an association (e.g., `user.articles.all.delete_all`). +# This is because omitting `all` from an association changes the methods +# from `ActiveRecord::Relation` to `ActiveRecord::Associations::CollectionProxy`, +# which can affect their behavior. +# +# @example +# # bad +# User.all.find(id) +# User.all.order(:created_at) +# users.all.where(id: ids) +# user.articles.all.order(:created_at) +# +# # good +# User.find(id) +# User.order(:created_at) +# users.where(id: ids) +# user.articles.order(:created_at) +# @example AllowedReceivers: ['ActionMailer::Preview', 'ActiveSupport::TimeZone'] (default) +# # good +# ActionMailer::Preview.all.first +# ActiveSupport::TimeZone.all.first +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#63 +class RuboCop::Cop::Rails::RedundantActiveRecordAllMethod < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordHelper + include ::RuboCop::Cop::Rails::AllowedReceivers + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#184 + def followed_by_query_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#188 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#213 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#202 + def possible_enumerable_block_method?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#209 + def sensitive_association_method?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#69 +RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#181 +RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::POSSIBLE_ENUMERABLE_BLOCK_METHODS = T.let(T.unsafe(nil), Array) + +# Defined methods in `ActiveRecord::Querying::QUERYING_METHODS` on activerecord 7.1.0. +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#74 +RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::QUERYING_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#71 +RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_active_record_all_method.rb#182 +RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::SENSITIVE_METHODS_ON_ASSOCIATION = T.let(T.unsafe(nil), Array) + +# Checks Rails model validations for a redundant `allow_nil` when +# `allow_blank` is present. +# +# @example +# # bad +# validates :x, length: { is: 5 }, allow_nil: true, allow_blank: true +# +# # bad +# validates :x, length: { is: 5 }, allow_nil: false, allow_blank: true +# +# # bad +# validates :x, length: { is: 5 }, allow_nil: false, allow_blank: false +# +# # good +# validates :x, length: { is: 5 }, allow_blank: true +# +# # good +# validates :x, length: { is: 5 }, allow_blank: false +# +# # good +# # Here, `nil` is valid but `''` is not +# validates :x, length: { is: 5 }, allow_nil: true, allow_blank: false +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#29 +class RuboCop::Cop::Rails::RedundantAllowNil < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#39 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#70 + def find_allow_nil_and_allow_blank(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#89 + def node_beg(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#93 + def node_end(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#55 + def register_offense(allow_nil, message); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#35 +RuboCop::Cop::Rails::RedundantAllowNil::MSG_ALLOW_NIL_FALSE = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#33 +RuboCop::Cop::Rails::RedundantAllowNil::MSG_SAME = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_allow_nil.rb#37 +RuboCop::Cop::Rails::RedundantAllowNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Detects cases where the `:foreign_key` option on associations +# is redundant. +# +# @example +# # bad +# class Post +# has_many :comments, foreign_key: 'post_id' +# end +# +# class Comment +# belongs_to :post, foreign_key: 'post_id' +# end +# +# # good +# class Post +# has_many :comments +# end +# +# class Comment +# belongs_to :author, foreign_key: 'user_id' +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#27 +class RuboCop::Cop::Rails::RedundantForeignKey < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#34 + def association_with_foreign_key(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#40 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#59 + def default_foreign_key(node, association_type, association_name, options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#69 + def find_as_option(options); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#55 + def redundant?(node, association_type, association_name, options, foreign_key); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#31 +RuboCop::Cop::Rails::RedundantForeignKey::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_foreign_key.rb#32 +RuboCop::Cop::Rails::RedundantForeignKey::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Since Rails 5.0 the default for `belongs_to` is `optional: false` +# unless `config.active_record.belongs_to_required_by_default` is +# explicitly set to `false`. The presence validator is added +# automatically, and explicit presence validation is redundant. +# +# @example +# # bad +# belongs_to :user +# validates :user, presence: true +# +# # bad +# belongs_to :user +# validates :user_id, presence: true +# +# # bad +# belongs_to :author, foreign_key: :user_id +# validates :user_id, presence: true +# +# # good +# belongs_to :user +# +# # good +# belongs_to :author, foreign_key: :user_id +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#34 +class RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # Match a class with `belongs_to` with no regard to `foreign_key` option + # + # @example source that matches + # belongs_to :user + # @example source that matches - regardless of `foreign_key` + # belongs_to :author, foreign_key: :user_id + # @param node [RuboCop::AST::Node] + # @param association [Symbol] + # @return [Array, nil] matching node + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#109 + def any_belongs_to?(param0 = T.unsafe(nil), association:); end + + # Match a class with a matching association, either by name or an explicit + # `foreign_key` option + # + # @example source that matches - fk matches `foreign_key` option + # belongs_to :author, foreign_key: :user_id + # @example source that matches - key matches association name + # belongs_to :user + # @example source that does not match - explicit `foreign_key` does not match + # belongs_to :user, foreign_key: :account_id + # @param node [RuboCop::AST::Node] + # @param key [Symbol] e.g. `:user` + # @param fk [Symbol] e.g. `:user_id` + # @return [Array] matching nodes + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#135 + def belongs_to?(param0 = T.unsafe(nil), key:, fk:); end + + # Match a matching `belongs_to` association with a matching explicit `foreign_key` option + # + # @example source that matches + # belongs_to :author, foreign_key: :user_id + # @param node [RuboCop::AST::Node] + # @param fk [Symbol] e.g. `:user_id` + # @return [Array] matching nodes + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#170 + def belongs_to_with_a_matching_fk?(param0 = T.unsafe(nil), param1); end + + # Match a matching `belongs_to` association, without an explicit `foreign_key` option + # + # @param node [RuboCop::AST::Node] + # @param key [Symbol] e.g. `:user` + # @return [Array] matching nodes + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#153 + def belongs_to_without_fk?(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#174 + def on_send(node); end + + # Match a `belongs_to` association with an optional option in a hash + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#84 + def optional?(param0 = T.unsafe(nil)); end + + # Match an optional option in a hash + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#90 + def optional_option?(param0 = T.unsafe(nil)); end + + # Match a `validates` statement with a presence check + # + # @example source that matches - by association + # validates :user, presence: true + # @example source that matches - by association + # validates :name, :user, presence: true + # @example source that matches - by a foreign key + # validates :user_id, presence: true + # @example source that DOES NOT match - if condition + # validates :user_id, presence: true, if: condition + # @example source that DOES NOT match - unless condition + # validates :user_id, presence: true, unless: condition + # @example source that DOES NOT match - strict validation + # validates :user_id, presence: true, strict: true + # @example source that DOES NOT match - custom strict validation + # validates :user_id, presence: true, strict: MissingUserError + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#70 + def presence_validation?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#191 + def add_offense_and_correct(node, all_keys, keys, options, presence); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#219 + def belongs_to_for(model_class_node, key); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#251 + def extract_validation_for_keys(corrector, node, keys, options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#207 + def message_for(keys); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#212 + def non_optional_belongs_to(node, keys); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#232 + def remove_keys_from_validation(corrector, node, keys); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#243 + def remove_presence_option(corrector, presence); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#228 + def remove_validation(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#267 + def validation_range(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#39 +RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::MSG = T.let(T.unsafe(nil), String) + +# From https://github.com/rails/rails/blob/7a0bf93b9dd291c7f61121a41b3a813ac8857e6a/activemodel/lib/active_model/validations/validates.rb#L157-L159 +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#43 +RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::NON_VALIDATION_OPTIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb#40 +RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant receiver in `with_options`. +# Receiver is implicit from Rails 4.2 or higher. +# +# @example +# # bad +# class Account < ApplicationRecord +# with_options dependent: :destroy do |assoc| +# assoc.has_many :customers +# assoc.has_many :products +# assoc.has_many :invoices +# assoc.has_many :expenses +# end +# end +# +# # good +# class Account < ApplicationRecord +# with_options dependent: :destroy do +# has_many :customers +# has_many :products +# has_many :invoices +# has_many :expenses +# end +# end +# @example +# # bad +# with_options options: false do |merger| +# merger.invoke(merger.something) +# end +# +# # good +# with_options options: false do +# invoke(something) +# end +# +# # good +# client = Client.new +# with_options options: false do |merger| +# client.invoke(merger.something, something) +# end +# +# # ok +# # When `with_options` includes a block, all scoping scenarios +# # cannot be evaluated. Thus, it is ok to include the explicit +# # receiver. +# with_options options: false do |merger| +# merger.invoke +# with_another_method do |another_receiver| +# merger.invoke(another_receiver) +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#57 +class RuboCop::Cop::Rails::RedundantReceiverInWithOptions < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#63 + def all_block_nodes_in(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#67 + def all_send_nodes_in(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#71 + def on_block(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#71 + def on_numblock(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#91 + def autocorrect(corrector, send_node, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#110 + def block_argument_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#97 + def redundant_receiver?(send_nodes, node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#132 + def same_value?(arg_node, recv_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#122 + def search_begin_pos_of_space_before_block_argument(begin_pos); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb#61 +RuboCop::Cop::Rails::RedundantReceiverInWithOptions::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant `travel_back` calls. +# Since Rails 5.2, `travel_back` is automatically called at the end of the test. +# +# @example +# +# # bad +# def teardown +# do_something +# travel_back +# end +# +# # good +# def teardown +# do_something +# end +# +# # bad +# after do +# do_something +# travel_back +# end +# +# # good +# after do +# do_something +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_travel_back.rb#33 +class RuboCop::Cop::Rails::RedundantTravelBack < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/redundant_travel_back.rb#43 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_travel_back.rb#40 +RuboCop::Cop::Rails::RedundantTravelBack::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/redundant_travel_back.rb#41 +RuboCop::Cop::Rails::RedundantTravelBack::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks if the value of the option `class_name`, in +# the definition of a reflection is a string. +# +# @example +# # bad +# has_many :accounts, class_name: Account +# has_many :accounts, class_name: Account.name +# +# # good +# has_many :accounts, class_name: 'Account' +# +# source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#20 +class RuboCop::Cop::Rails::ReflectionClassName < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#27 + def association_with_reflection(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#37 + def const_or_string(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#41 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#33 + def reflection_class_name(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#76 + def autocorrect(corrector, class_config); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#68 + def reflection_class_value?(class_value); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#54 + def str_assigned?(reflection_class_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#25 +RuboCop::Cop::Rails::ReflectionClassName::ALLOWED_REFLECTION_CLASS_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#23 +RuboCop::Cop::Rails::ReflectionClassName::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/reflection_class_name.rb#24 +RuboCop::Cop::Rails::ReflectionClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Use `assert_not` methods instead of `refute` methods. +# +# @example EnforcedStyle: assert_not (default) +# # bad +# refute false +# refute_empty [1, 2, 3] +# refute_equal true, false +# +# # good +# assert_not false +# assert_not_empty [1, 2, 3] +# assert_not_equal true, false +# @example EnforcedStyle: refute +# # bad +# assert_not false +# assert_not_empty [1, 2, 3] +# assert_not_equal true, false +# +# # good +# refute false +# refute_empty [1, 2, 3] +# refute_equal true, false +# +# source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#30 +class RuboCop::Cop::Rails::RefuteMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#58 + def offensive?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#60 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#74 + def bad_method?(method_name); end + + # source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#86 + def convert_good_method(bad_method); end + + # source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#82 + def offense_message(method_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#54 +RuboCop::Cop::Rails::RefuteMethods::ASSERT_NOT_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#36 +RuboCop::Cop::Rails::RefuteMethods::CORRECTIONS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#34 +RuboCop::Cop::Rails::RefuteMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#53 +RuboCop::Cop::Rails::RefuteMethods::REFUTE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/refute_methods.rb#56 +RuboCop::Cop::Rails::RefuteMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks whether constant value isn't relative date. +# Because the relative date will be evaluated only once. +# +# @example +# # bad +# class SomeClass +# EXPIRED_AT = 1.week.since +# end +# +# # good +# class SomeClass +# EXPIRES = 1.week +# +# def self.expired_at +# EXPIRES.since +# end +# end +# +# # good +# class SomeClass +# def self.expired_at +# 1.week.since +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#33 +class RuboCop::Cop::Rails::RelativeDateConstant < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#40 + def on_casgn(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#48 + def on_masgn(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#64 + def on_or_asgn(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#106 + def relative_date(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#102 + def relative_date_or_assignment(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#72 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#84 + def message(method_name); end + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#92 + def nested_relative_date(node, &callback); end + + # source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#88 + def offense_range(name, value); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#37 +RuboCop::Cop::Rails::RelativeDateConstant::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/relative_date_constant.rb#38 +RuboCop::Cop::Rails::RelativeDateConstant::RELATIVE_DATE_METHODS = T.let(T.unsafe(nil), Set) + +# Looks for inline rendering within controller actions. +# +# @example +# # bad +# class ProductsController < ApplicationController +# def index +# render inline: "<% products.each do |p| %>

    <%= p.name %>

    <% end %>", type: :erb +# end +# end +# +# # good +# # app/views/products/index.html.erb +# # <% products.each do |p| %> +# #

    <%= p.name %>

    +# # <% end %> +# +# class ProductsController < ApplicationController +# def index +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/render_inline.rb#27 +class RuboCop::Cop::Rails::RenderInline < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/render_inline.rb#35 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/render_inline.rb#31 + def render_with_inline_option?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/render_inline.rb#28 +RuboCop::Cop::Rails::RenderInline::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/render_inline.rb#29 +RuboCop::Cop::Rails::RenderInline::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where `render text:` can be +# replaced with `render plain:`. +# +# @example +# # bad - explicit MIME type to `text/plain` +# render text: 'Ruby!', content_type: 'text/plain' +# +# # good - short and precise +# render plain: 'Ruby!' +# +# # good - explicit MIME type not to `text/plain` +# render text: 'Ruby!', content_type: 'text/html' +# @example ContentTypeCompatibility: true (default) +# # good - sets MIME type to `text/html` +# render text: 'Ruby!' +# @example ContentTypeCompatibility: false +# # bad - sets MIME type to `text/html` +# render text: 'Ruby!' +# +# source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#27 +class RuboCop::Cop::Rails::RenderPlainText < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#37 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#33 + def render_plain_text?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#56 + def compatible_content_type?(pair_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#52 + def find_content_type(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#64 + def replacement(rest_options, option_value); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#30 +RuboCop::Cop::Rails::RenderPlainText::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/render_plain_text.rb#31 +RuboCop::Cop::Rails::RenderPlainText::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for consistent uses of `request.referer` or +# `request.referrer`, depending on the cop's configuration. +# +# @example EnforcedStyle: referer (default) +# # bad +# request.referrer +# +# # good +# request.referer +# @example EnforcedStyle: referrer +# # bad +# request.referer +# +# # good +# request.referrer +# +# source://rubocop-rails//lib/rubocop/cop/rails/request_referer.rb#22 +class RuboCop::Cop::Rails::RequestReferer < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/request_referer.rb#33 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/request_referer.rb#29 + def referer?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/request_referer.rb#45 + def message(_range); end + + # source://rubocop-rails//lib/rubocop/cop/rails/request_referer.rb#49 + def wrong_method_name; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/request_referer.rb#26 +RuboCop::Cop::Rails::RequestReferer::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/request_referer.rb#27 +RuboCop::Cop::Rails::RequestReferer::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the usage of `require_dependency`. +# +# `require_dependency` is an obsolete method for Rails applications running in Zeitwerk mode. +# In Zeitwerk mode, the semantics should match Ruby's and no need to be defensive with load order, +# just refer to classes and modules normally. +# If the constant name is dynamic, camelize if needed, and constantize. +# +# Applications running in Zeitwerk mode should not use `require_dependency`. +# +# NOTE: This cop is disabled by default. Please enable it if you are using Zeitwerk mode. +# +# @example +# # bad +# require_dependency 'some_lib' +# +# source://rubocop-rails//lib/rubocop/cop/rails/require_dependency.rb#20 +class RuboCop::Cop::Rails::RequireDependency < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/require_dependency.rb#32 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/require_dependency.rb#28 + def require_dependency_call?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/require_dependency.rb#25 +RuboCop::Cop::Rails::RequireDependency::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/require_dependency.rb#26 +RuboCop::Cop::Rails::RequireDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Prefer `response.parsed_body` to custom parsing logic for `response.body`. +# +# @example +# # bad +# JSON.parse(response.body) +# +# # bad +# Nokogiri::HTML.parse(response.body) +# +# # bad +# Nokogiri::HTML5.parse(response.body) +# +# # good +# response.parsed_body +# +# source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#26 +class RuboCop::Cop::Rails::ResponseParsedBody < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#35 + def json_parse_response_body?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#47 + def nokogiri_html_parse_response_body(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#61 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#71 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#75 + def check_json_parse_response_body(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#86 + def check_nokogiri_html_parse_response_body(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/response_parsed_body.rb#30 +RuboCop::Cop::Rails::ResponseParsedBody::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks whether the change method of the migration file is +# reversible. +# +# @example +# # remove_index +# +# # bad +# def change +# remove_index :users, name: :index_users_on_email +# end +# +# # good +# def change +# remove_index :users, :email +# end +# +# # good +# def change +# remove_index :users, column: :email +# end +# @example +# # drop_table +# +# # bad +# def change +# drop_table :users +# end +# +# # good +# def change +# drop_table :users do |t| +# t.string :name +# end +# end +# @example +# # change_column_default +# +# # bad +# def change +# change_column_default(:suppliers, :qualification, 'new') +# end +# +# # good +# def change +# change_column_default(:posts, :state, from: nil, to: "draft") +# end +# @example +# # remove_column +# +# # bad +# def change +# remove_column(:suppliers, :qualification) +# end +# +# # good +# def change +# remove_column(:suppliers, :qualification, :string) +# end +# @example +# # remove_foreign_key +# +# # bad +# def change +# remove_foreign_key :accounts, column: :owner_id +# end +# +# # good +# def change +# remove_foreign_key :accounts, :branches +# end +# +# # good +# def change +# remove_foreign_key :accounts, to_table: :branches +# end +# @example +# # change_table +# +# # bad +# def change +# change_table :users do |t| +# t.remove :name +# t.change_default :authorized, 1 +# t.change :price, :string +# end +# end +# +# # good +# def change +# change_table :users do |t| +# t.string :name +# end +# end +# @example +# # remove_columns +# +# # bad +# def change +# remove_columns :users, :name, :email +# end +# +# # good +# def change +# reversible do |dir| +# dir.up do +# remove_columns :users, :name, :email +# end +# +# dir.down do +# add_column :users, :name, :string +# add_column :users, :email, :string +# end +# end +# end +# +# # good (Rails >= 6.1, see https://github.com/rails/rails/pull/36589) +# def change +# remove_columns :users, :name, :email, type: :string +# end +# @example +# # bad +# def change +# change_table :users do |t| +# t.remove :name +# end +# end +# +# # good +# def change +# change_table :users do |t| +# t.remove :name, type: :string +# end +# end +# +# # good +# def change +# create_table :users do |t| +# t.string :name +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#153 +class RuboCop::Cop::Rails::ReversibleMigration < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MigrationsHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#174 + def change_table_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#162 + def drop_table_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#158 + def irreversible_schema_statement_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#199 + def on_block(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#199 + def on_numblock(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#186 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#166 + def remove_column_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#178 + def remove_columns_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#170 + def remove_foreign_key_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#182 + def remove_index_call(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#314 + def all_hash_key?(args, *keys); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#245 + def check_change_table_node(node, block); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#275 + def check_change_table_offense(receiver, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#217 + def check_drop_table_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#211 + def check_irreversible_schema_statement_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#231 + def check_remove_column_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#257 + def check_remove_columns_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#237 + def check_remove_foreign_key_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#267 + def check_remove_index_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#225 + def check_reversible_hash_node(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#288 + def reversible_change_table_call?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#302 + def within_change_method?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#308 + def within_reversible_or_up_only_block?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration.rb#156 +RuboCop::Cop::Rails::ReversibleMigration::MSG = T.let(T.unsafe(nil), String) + +# Checks whether the migration implements +# either a `change` method or both an `up` and a `down` +# method. +# +# @example +# # bad +# class SomeMigration < ActiveRecord::Migration[6.0] +# def up +# # up migration +# end +# +# # <----- missing down method +# end +# +# class SomeMigration < ActiveRecord::Migration[6.0] +# # <----- missing up method +# +# def down +# # down migration +# end +# end +# +# # good +# class SomeMigration < ActiveRecord::Migration[6.0] +# def change +# # reversible migration +# end +# end +# +# # good +# class SomeMigration < ActiveRecord::Migration[6.0] +# def up +# # up migration +# end +# +# def down +# # down migration +# end +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration_method_definition.rb#45 +class RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MigrationsHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration_method_definition.rb#50 + def change_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration_method_definition.rb#58 + def on_class(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration_method_definition.rb#54 + def up_and_down_methods?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/reversible_migration_method_definition.rb#48 +RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +# Use a single `#join` instead of chaining on `Rails.root` or `Rails.public_path`. +# +# @example +# # bad +# Rails.root.join('db').join('schema.rb') +# Rails.root.join('db').join(migrate).join('migration.rb') +# Rails.public_path.join('path').join('file.pdf') +# Rails.public_path.join('path').join(to).join('file.pdf') +# +# # good +# Rails.root.join('db', 'schema.rb') +# Rails.root.join('db', migrate, 'migration.rb') +# Rails.public_path.join('path', 'file.pdf') +# Rails.public_path.join('path', to, 'file.pdf') +# +# source://rubocop-rails//lib/rubocop/cop/rails/root_join_chain.rb#21 +class RuboCop::Cop::Rails::RootJoinChain < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/root_join_chain.rb#35 + def join?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_join_chain.rb#39 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_join_chain.rb#30 + def rails_root?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/root_join_chain.rb#52 + def evidence(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/root_join_chain.rb#25 +RuboCop::Cop::Rails::RootJoinChain::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_join_chain.rb#27 +RuboCop::Cop::Rails::RootJoinChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Use `Rails.root` IO methods instead of passing it to `File`. +# +# `Rails.root` is an instance of `Pathname` +# so we can apply many IO methods directly. +# +# This cop works best when used together with +# `Style/FileRead`, `Style/FileWrite` and `Rails/RootJoinChain`. +# +# @example +# # bad +# File.open(Rails.root.join('db', 'schema.rb')) +# File.open(Rails.root.join('db', 'schema.rb'), 'w') +# File.read(Rails.root.join('db', 'schema.rb')) +# File.binread(Rails.root.join('db', 'schema.rb')) +# File.write(Rails.root.join('db', 'schema.rb'), content) +# File.binwrite(Rails.root.join('db', 'schema.rb'), content) +# +# # good +# Rails.root.join('db', 'schema.rb').open +# Rails.root.join('db', 'schema.rb').open('w') +# Rails.root.join('db', 'schema.rb').read +# Rails.root.join('db', 'schema.rb').binread +# Rails.root.join('db', 'schema.rb').write(content) +# Rails.root.join('db', 'schema.rb').binwrite(content) +# +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#35 +class RuboCop::Cop::Rails::RootPathnameMethods < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#172 + def dir_glob?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#189 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#163 + def pathname_method_for_ruby_2_4_or_lower(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#153 + def pathname_method_for_ruby_2_5_or_higher(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#185 + def rails_root?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#177 + def rails_root_pathname?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#220 + def build_path_glob_replacement(path); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#228 + def build_path_replacement(path, method, args); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#262 + def enforce_double_quotes?; end + + # @yield [method, path, args, rails_root] + # + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#205 + def evidence(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#240 + def include_interpolation?(arguments); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#246 + def join_arguments(arguments); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#212 + def pathname_method(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#266 + def string_literals_config; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#41 +RuboCop::Cop::Rails::RootPathnameMethods::DIR_GLOB_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#56 +RuboCop::Cop::Rails::RootPathnameMethods::DIR_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#43 +RuboCop::Cop::Rails::RootPathnameMethods::DIR_NON_GLOB_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#58 +RuboCop::Cop::Rails::RootPathnameMethods::FILE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#120 +RuboCop::Cop::Rails::RootPathnameMethods::FILE_TEST_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#148 +RuboCop::Cop::Rails::RootPathnameMethods::FILE_UTILS_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#39 +RuboCop::Cop::Rails::RootPathnameMethods::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_pathname_methods.rb#150 +RuboCop::Cop::Rails::RootPathnameMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Favor `Rails.public_path` over `Rails.root` with `'public'` +# +# @example +# # bad +# Rails.root.join('public') +# Rails.root.join('public/file.pdf') +# Rails.root.join('public', 'file.pdf') +# +# # good +# Rails.public_path +# Rails.public_path.join('file.pdf') +# Rails.public_path.join('file.pdf') +# +# source://rubocop-rails//lib/rubocop/cop/rails/root_public_path.rb#19 +class RuboCop::Cop::Rails::RootPublicPath < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/root_public_path.rb#35 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/root_public_path.rb#28 + def rails_root_public(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/root_public_path.rb#53 + def public_path?(string); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/root_public_path.rb#22 +RuboCop::Cop::Rails::RootPublicPath::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_public_path.rb#26 +RuboCop::Cop::Rails::RootPublicPath::PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/root_public_path.rb#24 +RuboCop::Cop::Rails::RootPublicPath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Converts usages of `try!` to `&.`. It can also be configured +# to convert `try`. It will convert code to use safe navigation +# if the target Ruby version is set to 2.3+ +# +# @example ConvertTry: false (default) +# # bad +# foo.try!(:bar) +# foo.try!(:bar, baz) +# foo.try!(:bar) { |e| e.baz } +# +# foo.try!(:[], 0) +# +# # good +# foo.try(:bar) +# foo.try(:bar, baz) +# foo.try(:bar) { |e| e.baz } +# +# foo&.bar +# foo&.bar(baz) +# foo&.bar { |e| e.baz } +# @example ConvertTry: true +# # bad +# foo.try!(:bar) +# foo.try!(:bar, baz) +# foo.try!(:bar) { |e| e.baz } +# foo.try(:bar) +# foo.try(:bar, baz) +# foo.try(:bar) { |e| e.baz } +# +# # good +# foo&.bar +# foo&.bar(baz) +# foo&.bar { |e| e.baz } +# +# source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#40 +class RuboCop::Cop::Rails::SafeNavigation < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#58 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#50 + def try_call(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#71 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#85 + def replacement(method, params); end + + class << self + # source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#54 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#47 +RuboCop::Cop::Rails::SafeNavigation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation.rb#48 +RuboCop::Cop::Rails::SafeNavigation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks to make sure safe navigation isn't used with `blank?` in +# a conditional. +# +# @example +# # bad +# do_something if foo&.blank? +# do_something unless foo&.blank? +# +# # good +# do_something if foo.blank? +# do_something unless foo.blank? +# +# source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation_with_blank.rb#31 +class RuboCop::Cop::Rails::SafeNavigationWithBlank < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation_with_blank.rb#40 + def on_if(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation_with_blank.rb#36 + def safe_navigation_blank_in_conditional?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/safe_navigation_with_blank.rb#34 +RuboCop::Cop::Rails::SafeNavigationWithBlank::MSG = T.let(T.unsafe(nil), String) + +# Identifies possible cases where Active Record save! or related +# should be used instead of save because the model might have failed to +# save and an exception is better than unhandled failure. +# +# This will allow: +# +# * update or save calls, assigned to a variable, +# or used as a condition in an if/unless/case statement. +# * create calls, assigned to a variable that then has a +# call to `persisted?`, or whose return value is checked by +# `persisted?` immediately +# * calls if the result is explicitly returned from methods and blocks, +# or provided as arguments. +# * calls whose signature doesn't look like an ActiveRecord +# persistence method. +# +# By default it will also allow implicit returns from methods and blocks. +# that behavior can be turned off with `AllowImplicitReturn: false`. +# +# You can permit receivers that are giving false positives with +# `AllowedReceivers: []` +# +# @example +# +# # bad +# user.save +# user.update(name: 'Joe') +# user.find_or_create_by(name: 'Joe') +# user.destroy +# +# # good +# unless user.save +# # ... +# end +# user.save! +# user.update!(name: 'Joe') +# user.find_or_create_by!(name: 'Joe') +# user.destroy! +# +# user = User.find_or_create_by(name: 'Joe') +# unless user.persisted? +# # ... +# end +# +# def save_user +# return user.save +# end +# @example AllowImplicitReturn: true (default) +# +# # good +# users.each { |u| u.save } +# +# def save_user +# user.save +# end +# @example AllowImplicitReturn: false +# +# # bad +# users.each { |u| u.save } +# def save_user +# user.save +# end +# +# # good +# users.each { |u| u.save! } +# +# def save_user +# user.save! +# end +# +# def save_user +# return user.save +# end +# @example AllowedReceivers: ['merchant.customers', 'Service::Mailer'] +# +# # bad +# merchant.create +# customers.builder.save +# Mailer.create +# +# module Service::Mailer +# self.create +# end +# +# # good +# merchant.customers.create +# MerchantService.merchant.customers.destroy +# Service::Mailer.update(message: 'Message') +# ::Service::Mailer.update +# Services::Service::Mailer.update(message: 'Message') +# Service::Mailer::update +# +# source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#120 +class RuboCop::Cop::Rails::SaveBang < ::RuboCop::Cop::Base + include ::RuboCop::Cop::NegativeConditional + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#136 + def after_leaving_scope(scope, _variable_table); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#144 + def check_assignment(assignment); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#155 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#155 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#263 + def allowed_receiver?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#321 + def argument?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#223 + def array_parent(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#204 + def assignable_node(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#198 + def call_to_persisted?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#230 + def check_used_in_condition_or_compound_boolean(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#259 + def checked_immediately?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#250 + def conditional?(parent); end + + # Const == Const + # ::Const == ::Const + # ::Const == Const + # Const == ::Const + # NameSpace::Const == Const + # NameSpace::Const == NameSpace::Const + # NameSpace::Const != ::Const + # Const != NameSpace::Const + # + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#296 + def const_matches?(const, allowed_const); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#254 + def deparenthesize(node); end + + # Check argument signature as no arguments or one hash + # + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#340 + def expected_signature?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#325 + def explicit_return?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#313 + def find_method_with_sibling_index(node, sibling_index = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#213 + def hash_parent(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#303 + def implicit_return?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#238 + def in_condition_or_compound_boolean?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#246 + def operator_or_single_negative?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#335 + def persist_method?(node, methods = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#190 + def persisted_referenced?(assignment); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#273 + def receiver_chain_matches?(node, allowed_receiver); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#171 + def register_offense(node, msg); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#330 + def return_value_assigned?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#182 + def right_assignment_node(assignment); end + + class << self + # source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#132 + def joining_forces; end + end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#126 +RuboCop::Cop::Rails::SaveBang::CREATE_CONDITIONAL_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#125 +RuboCop::Cop::Rails::SaveBang::CREATE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#128 +RuboCop::Cop::Rails::SaveBang::CREATE_PERSIST_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#129 +RuboCop::Cop::Rails::SaveBang::MODIFY_PERSIST_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#124 +RuboCop::Cop::Rails::SaveBang::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/save_bang.rb#130 +RuboCop::Cop::Rails::SaveBang::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces the use of the `comment` option when adding a new table or column +# to the database during a migration. +# +# @example +# # bad (no comment for a new column or table) +# add_column :table, :column, :integer +# +# create_table :table do |t| +# t.type :column +# end +# +# # good +# add_column :table, :column, :integer, comment: 'Number of offenses' +# +# create_table :table, comment: 'Table of offenses data' do |t| +# t.type :column, comment: 'Number of offenses' +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#24 +class RuboCop::Cop::Rails::SchemaComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordMigrationsHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#45 + def add_column?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#50 + def add_column_with_comment?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#40 + def comment_present?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#55 + def create_table?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#60 + def create_table_with_comment?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#74 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#65 + def t_column?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#70 + def t_column_with_comment?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#96 + def add_column_without_comment?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#86 + def check_column_within_create_table_block(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#100 + def create_table_without_comment?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#104 + def t_column_without_comment?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#27 +RuboCop::Cop::Rails::SchemaComment::COLUMN_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#30 +RuboCop::Cop::Rails::SchemaComment::CREATE_TABLE_COLUMN_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#29 +RuboCop::Cop::Rails::SchemaComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/schema_comment.rb#28 +RuboCop::Cop::Rails::SchemaComment::TABLE_MSG = T.let(T.unsafe(nil), String) + +# Checks for scope calls where it was passed +# a method (usually a scope) instead of a lambda/proc. +# +# @example +# +# # bad +# scope :something, where(something: true) +# +# # good +# scope :something, -> { where(something: true) } +# +# source://rubocop-rails//lib/rubocop/cop/rails/scope_args.rb#16 +class RuboCop::Cop::Rails::ScopeArgs < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/scope_args.rb#24 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/scope_args.rb#22 + def scope?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/scope_args.rb#19 +RuboCop::Cop::Rails::ScopeArgs::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/scope_args.rb#20 +RuboCop::Cop::Rails::ScopeArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for uses of `select(:column_name)` with `map(&:column_name)`. +# These can be replaced with `pluck(:column_name)`. +# +# There also should be some performance improvement since it skips instantiating the model class for matches. +# +# @example +# # bad +# Model.select(:column_name).map(&:column_name) +# +# # good +# Model.pluck(:column_name) +# +# source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#22 +class RuboCop::Cop::Rails::SelectMap < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#29 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#55 + def autocorrect(corrector, select_node, node, preferred_method); end + + # source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#46 + def find_select_node(node, column_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#62 + def match_column_name?(select_candidate, column_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#25 +RuboCop::Cop::Rails::SelectMap::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/select_map.rb#27 +RuboCop::Cop::Rails::SelectMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces that short forms of `I18n` methods are used: +# `t` instead of `translate` and `l` instead of `localize`. +# +# This cop has two different enforcement modes. When the EnforcedStyle +# is conservative (the default) then only `I18n.translate` and `I18n.localize` +# calls are added as offenses. +# +# When the EnforcedStyle is aggressive then all `translate` and `localize` calls +# without a receiver are added as offenses. +# +# @example +# # bad +# I18n.translate :key +# I18n.localize Time.now +# +# # good +# I18n.t :key +# I18n.l Time.now +# @example EnforcedStyle: conservative (default) +# # good +# translate :key +# localize Time.now +# t :key +# l Time.now +# @example EnforcedStyle: aggressive +# # bad +# translate :key +# localize Time.now +# +# # good +# t :key +# l Time.now +# +# source://rubocop-rails//lib/rubocop/cop/rails/short_i18n.rb#41 +class RuboCop::Cop::Rails::ShortI18n < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/short_i18n.rb#51 + def long_i18n?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/short_i18n.rb#55 + def on_send(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/short_i18n.rb#45 +RuboCop::Cop::Rails::ShortI18n::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/short_i18n.rb#47 +RuboCop::Cop::Rails::ShortI18n::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/cop/rails/short_i18n.rb#49 +RuboCop::Cop::Rails::ShortI18n::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of methods which skip +# validations which are listed in +# https://guides.rubyonrails.org/active_record_validations.html#skipping-validations +# +# Methods may be ignored from this rule by configuring a `AllowedMethods`. +# +# @example +# # bad +# Article.first.decrement!(:view_count) +# DiscussionBoard.decrement_counter(:post_count, 5) +# Article.first.increment!(:view_count) +# DiscussionBoard.increment_counter(:post_count, 5) +# person.toggle :active +# product.touch +# Billing.update_all("category = 'authorized', author = 'David'") +# user.update_attribute(:website, 'example.com') +# user.update_columns(last_request_at: Time.current) +# Post.update_counters 5, comment_count: -1, action_count: 1 +# +# # good +# user.update(website: 'example.com') +# FileUtils.touch('file') +# @example AllowedMethods: ["touch"] +# # bad +# DiscussionBoard.decrement_counter(:post_count, 5) +# DiscussionBoard.increment_counter(:post_count, 5) +# person.toggle :active +# +# # good +# user.touch +# +# source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#41 +class RuboCop::Cop::Rails::SkipsModelValidations < ::RuboCop::Cop::Base + # @return [SkipsModelValidations] a new instance of SkipsModelValidations + # + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#86 + def initialize(*_arg0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#68 + def good_insert?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#61 + def good_touch?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#75 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#75 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#98 + def allowed_method?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#113 + def allowed_methods; end + + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#102 + def forbidden_methods; end + + # source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#94 + def message(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#44 +RuboCop::Cop::Rails::SkipsModelValidations::METHODS_WITH_ARGUMENTS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/skips_model_validations.rb#42 +RuboCop::Cop::Rails::SkipsModelValidations::MSG = T.let(T.unsafe(nil), String) + +# Checks SQL heredocs to use `.squish`. +# +# @example +# # bad +# <<-SQL +# SELECT * FROM posts; +# SQL +# +# <<-SQL +# SELECT * FROM posts +# WHERE id = 1 +# SQL +# +# execute(<<~SQL, "Post Load") +# SELECT * FROM posts +# WHERE post_id = 1 +# SQL +# +# # good +# <<-SQL.squish +# SELECT * FROM posts; +# SQL +# +# <<~SQL.squish +# SELECT * FROM table +# WHERE id = 1 +# SQL +# +# execute(<<~SQL.squish, "Post Load") +# SELECT * FROM posts +# WHERE post_id = 1 +# SQL +# +# source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#43 +class RuboCop::Cop::Rails::SquishedSQLHeredocs < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Heredoc + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#52 + def on_heredoc(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#80 + def message(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#62 + def offense_detected?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#74 + def singleline_comments_present?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#66 + def sql_heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#70 + def using_squish?(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#49 +RuboCop::Cop::Rails::SquishedSQLHeredocs::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#47 +RuboCop::Cop::Rails::SquishedSQLHeredocs::SQL = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#50 +RuboCop::Cop::Rails::SquishedSQLHeredocs::SQL_IDENTIFIER_MARKERS = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/squished_sql_heredocs.rb#48 +RuboCop::Cop::Rails::SquishedSQLHeredocs::SQUISH = T.let(T.unsafe(nil), String) + +# Enforces the use of squiggly heredoc over `strip_heredoc`. +# +# @example +# +# # bad +# <= 7, where transactions +# exited using these statements are being rollbacked rather than +# committed (pre ActiveRecord 7 behavior). +# +# As alternatives, it would be more intuitive to explicitly raise an +# error when rollback is desired, and to use `next` when commit is +# desired. +# +# If you are defining custom transaction methods, you can configure it with `TransactionMethods`. +# +# @example +# # bad +# ApplicationRecord.transaction do +# return if user.active? +# end +# +# # bad +# ApplicationRecord.transaction do +# break if user.active? +# end +# +# # bad +# ApplicationRecord.transaction do +# throw if user.active? +# end +# +# # bad, as `with_lock` implicitly opens a transaction too +# user.with_lock do +# throw if user.active? +# end +# +# # bad, as `with_lock` implicitly opens a transaction too +# ApplicationRecord.with_lock do +# break if user.active? +# end +# +# # good +# ApplicationRecord.transaction do +# # Rollback +# raise "User is active" if user.active? +# end +# +# # good +# ApplicationRecord.transaction do +# # Commit +# next if user.active? +# end +# @example TransactionMethods: ["custom_transaction"] +# # bad +# CustomModel.custom_transaction do +# return if user.active? +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#62 +class RuboCop::Cop::Rails::TransactionExitStatement < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#66 + def exit_statements(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#78 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#70 + def rescue_body_return_node?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#93 + def in_transaction_block?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#110 + def nested_block?(statement_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#100 + def statement(statement_node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#119 + def transaction_method?(method_name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#115 + def transaction_method_name?(method_name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#64 +RuboCop::Cop::Rails::TransactionExitStatement::BUILT_IN_TRANSACTION_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/transaction_exit_statement.rb#63 +RuboCop::Cop::Rails::TransactionExitStatement::MSG = T.let(T.unsafe(nil), String) + +# Prefer using `distinct` before `pluck` instead of `uniq` after `pluck`. +# +# The use of distinct before pluck is preferred because it executes by +# the database. +# +# This cop has two different enforcement modes. When the EnforcedStyle +# is `conservative` (the default), then only calls to `pluck` on a constant +# (i.e. a model class) before `uniq` are added as offenses. +# +# When the EnforcedStyle is `aggressive` then all calls to `pluck` before +# distinct are added as offenses. This may lead to false positives +# as the cop cannot distinguish between calls to `pluck` on an +# ActiveRecord::Relation vs a call to pluck on an +# ActiveRecord::Associations::CollectionProxy. +# +# @example EnforcedStyle: conservative (default) +# # bad - redundantly fetches duplicate values +# Album.pluck(:band_name).uniq +# +# # good +# Album.distinct.pluck(:band_name) +# @example EnforcedStyle: aggressive +# # bad - redundantly fetches duplicate values +# Album.pluck(:band_name).uniq +# +# # bad - redundantly fetches duplicate values +# Album.where(year: 1985).pluck(:band_name).uniq +# +# # bad - redundantly fetches duplicate values +# customer.favourites.pluck(:color).uniq +# +# # good +# Album.distinct.pluck(:band_name) +# Album.distinct.where(year: 1985).pluck(:band_name) +# customer.favourites.distinct.pluck(:color) +# +# source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#47 +class RuboCop::Cop::Rails::UniqBeforePluck < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#59 + def aggressive_node_match(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#57 + def conservative_node_match(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#61 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#77 + def autocorrect(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#92 + def dot_method_begin_pos(method, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#88 + def dot_method_with_whitespace(method, node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#52 +RuboCop::Cop::Rails::UniqBeforePluck::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#54 +RuboCop::Cop::Rails::UniqBeforePluck::NEWLINE = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#55 +RuboCop::Cop::Rails::UniqBeforePluck::PATTERN = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/uniq_before_pluck.rb#53 +RuboCop::Cop::Rails::UniqBeforePluck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# When you define a uniqueness validation in Active Record model, +# you also should add a unique index for the column. There are two reasons. +# First, duplicated records may occur even if Active Record's validation +# is defined. +# Second, it will cause slow queries. The validation executes a `SELECT` +# statement with the target column when inserting/updating a record. +# If the column does not have an index and the table is large, +# the query will be heavy. +# +# Note that the cop does nothing if db/schema.rb does not exist. +# +# @example +# # bad - if the schema does not have a unique index +# validates :account, uniqueness: true +# +# # good - if the schema has a unique index +# validates :account, uniqueness: true +# +# # good - even if the schema does not have a unique index +# validates :account, length: { minimum: MIN_LENGTH } +# +# source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#27 +class RuboCop::Cop::Rails::UniqueValidationWithoutIndex < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#33 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#155 + def array_node_to_array(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#122 + def class_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#74 + def column_names(node, uniqueness_part); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#93 + def column_names_from_scope(uniqueness_part); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#146 + def condition_hash_part?(pairs, keys:); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#137 + def condition_part?(node, uniqueness_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#47 + def find_schema_information(node, uniqueness_part); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#109 + def find_scope(pairs); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#66 + def include_column_names_in_expression_index?(index, column_names); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#118 + def unfreeze_scope(scope); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#126 + def uniqueness_part(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#57 + def with_index?(klass, table, names); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#30 +RuboCop::Cop::Rails::UniqueValidationWithoutIndex::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/unique_validation_without_index.rb#31 +RuboCop::Cop::Rails::UniqueValidationWithoutIndex::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that environments called with `Rails.env` predicates +# exist. +# By default the cop allows three environments which Rails ships with: +# `development`, `test`, and `production`. +# More can be added to the `Environments` config parameter. +# +# @example +# # bad +# Rails.env.proudction? +# Rails.env == 'proudction' +# +# # good +# Rails.env.production? +# Rails.env == 'production' +# +# source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#20 +class RuboCop::Cop::Rails::UnknownEnv < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#41 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#24 + def rails_env?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#34 + def unknown_environment_equal?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#30 + def unknown_environment_predicate?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#54 + def collect_variable_like_names(_scope); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#88 + def environments; end + + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#58 + def message(name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#84 + def unknown_env_name?(name); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#79 + def unknown_env_predicate?(name); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#21 +RuboCop::Cop::Rails::UnknownEnv::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/unknown_env.rb#22 +RuboCop::Cop::Rails::UnknownEnv::MSG_SIMILAR = T.let(T.unsafe(nil), String) + +# Suggests you remove a column that does not exist in the schema from `ignored_columns`. +# `ignored_columns` is necessary to drop a column from RDBMS, but you don't need it after the migration +# to drop the column. You avoid forgetting to remove `ignored_columns` by this cop. +# +# IMPORTANT: This cop can't be used to effectively check for unused columns because the development +# and production schema can be out of sync until the migration has been run on production. As such, +# this cop can cause `ignored_columns` to be removed even though the production schema still contains +# the column, which can lead to downtime when the migration is actually executed. Only enable this cop +# if you know your migrations will be run before any of your Rails applications boot with the modified code. +# +# @example +# # bad +# class User < ApplicationRecord +# self.ignored_columns = [:already_removed_column] +# end +# +# # good +# class User < ApplicationRecord +# self.ignored_columns = [:still_existing_column] +# end +# +# source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#27 +class RuboCop::Cop::Rails::UnusedIgnoredColumns < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordHelper + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#37 + def appended_ignored_columns(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#41 + def column_name(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#33 + def ignored_columns(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#45 + def on_op_asgn(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#45 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#60 + def check_column_existence(column_node, table); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#69 + def class_node(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#73 + def table(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#30 +RuboCop::Cop::Rails::UnusedIgnoredColumns::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/unused_ignored_columns.rb#31 +RuboCop::Cop::Rails::UnusedIgnoredColumns::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# If you try to render content along with a non-content status code (100-199, 204, 205, or 304), +# it will be dropped from the response. +# +# This cop checks for uses of `render` which specify both body content and a non-content status. +# +# @example +# # bad +# render 'foo', status: :continue +# render status: 100, plain: 'Ruby!' +# +# # good +# head :continue +# head 100 +# +# source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#19 +class RuboCop::Cop::Rails::UnusedRenderContent < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#45 + def non_content_status?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#59 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#52 + def unused_render_content?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#28 +RuboCop::Cop::Rails::UnusedRenderContent::BODY_OPTIONS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#22 +RuboCop::Cop::Rails::UnusedRenderContent::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#25 +RuboCop::Cop::Rails::UnusedRenderContent::NON_CONTENT_STATUSES = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#24 +RuboCop::Cop::Rails::UnusedRenderContent::NON_CONTENT_STATUS_CODES = T.let(T.unsafe(nil), Set) + +# source://rubocop-rails//lib/rubocop/cop/rails/unused_render_content.rb#23 +RuboCop::Cop::Rails::UnusedRenderContent::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for the use of old-style attribute validation macros. +# +# @example +# # bad +# validates_acceptance_of :foo +# validates_comparison_of :foo +# validates_confirmation_of :foo +# validates_exclusion_of :foo +# validates_format_of :foo +# validates_inclusion_of :foo +# validates_length_of :foo +# validates_numericality_of :foo +# validates_presence_of :foo +# validates_absence_of :foo +# validates_size_of :foo +# validates_uniqueness_of :foo +# +# # good +# validates :foo, acceptance: true +# validates :foo, confirmation: true +# validates :foo, comparison: true +# validates :foo, exclusion: true +# validates :foo, format: true +# validates :foo, inclusion: true +# validates :foo, length: true +# validates :foo, numericality: true +# validates :foo, presence: true +# validates :foo, absence: true +# validates :foo, length: true +# validates :foo, uniqueness: true +# +# source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#37 +class RuboCop::Cop::Rails::Validation < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#60 + def on_send(node); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#135 + def braced_options(options); end + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#86 + def correct_validate_type(corrector, node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#111 + def correct_validate_type_for_array(corrector, node, arguments, loc); end + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#107 + def correct_validate_type_for_hash(corrector, node, arguments); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#131 + def frozen_array_argument?(argument); end + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#76 + def message(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#82 + def preferred_method(method); end + + # source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#125 + def validate_type(node); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#58 +RuboCop::Cop::Rails::Validation::ALLOWLIST = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#40 +RuboCop::Cop::Rails::Validation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#57 +RuboCop::Cop::Rails::Validation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rails//lib/rubocop/cop/rails/validation.rb#42 +RuboCop::Cop::Rails::Validation::TYPES = T.let(T.unsafe(nil), Array) + +# Identifies places where manually constructed SQL +# in `where` and `where.not` can be replaced with +# `where(attribute: value)` and `where.not(attribute: value)`. +# +# @example +# # bad +# User.where('name = ?', 'Gabe') +# User.where.not('name = ?', 'Gabe') +# User.where('name = :name', name: 'Gabe') +# User.where('name IS NULL') +# User.where('name IN (?)', ['john', 'jane']) +# User.where('name IN (:names)', names: ['john', 'jane']) +# User.where('users.name = :name', name: 'Gabe') +# +# # good +# User.where(name: 'Gabe') +# User.where.not(name: 'Gabe') +# User.where(name: nil) +# User.where(name: ['john', 'jane']) +# User.where(users: { name: 'Gabe' }) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#30 +class RuboCop::Cop::Rails::WhereEquals < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#44 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#44 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#37 + def where_method_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#96 + def build_good_method(method_name, column, value); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#77 + def extract_column_and_value(template_node, value_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#73 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#106 + def where_not?(node); end +end + +# column = ? +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#65 +RuboCop::Cop::Rails::WhereEquals::EQ_ANONYMOUS_RE = T.let(T.unsafe(nil), Regexp) + +# column = :column +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#67 +RuboCop::Cop::Rails::WhereEquals::EQ_NAMED_RE = T.let(T.unsafe(nil), Regexp) + +# column IN (?) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#66 +RuboCop::Cop::Rails::WhereEquals::IN_ANONYMOUS_RE = T.let(T.unsafe(nil), Regexp) + +# column IN (:column) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#68 +RuboCop::Cop::Rails::WhereEquals::IN_NAMED_RE = T.let(T.unsafe(nil), Regexp) + +# column IS NULL +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#69 +RuboCop::Cop::Rails::WhereEquals::IS_NULL_RE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#34 +RuboCop::Cop::Rails::WhereEquals::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_equals.rb#35 +RuboCop::Cop::Rails::WhereEquals::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Enforces consistent style when using `exists?`. +# +# Two styles are supported for this cop. When EnforcedStyle is 'exists' +# then the cop enforces `exists?(...)` over `where(...).exists?`. +# +# When EnforcedStyle is 'where' then the cop enforces +# `where(...).exists?` over `exists?(...)`. +# +# @example EnforcedStyle: exists (default) +# # bad +# User.where(name: 'john').exists? +# User.where(['name = ?', 'john']).exists? +# User.where('name = ?', 'john').exists? +# user.posts.where(published: true).exists? +# +# # good +# User.exists?(name: 'john') +# User.where('length(name) > 10').exists? +# user.posts.exists?(published: true) +# @example EnforcedStyle: where +# # bad +# User.exists?(name: 'john') +# User.exists?(['name = ?', 'john']) +# user.posts.exists?(published: true) +# +# # good +# User.where(name: 'john').exists? +# User.where(['name = ?', 'john']).exists? +# User.where('name = ?', 'john').exists? +# user.posts.where(published: true).exists? +# User.where('length(name) > 10').exists? +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#50 +class RuboCop::Cop::Rails::WhereExists < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#61 + def exists_with_args?(param0 = T.unsafe(nil)); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#65 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#65 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#57 + def where_exists_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#112 + def build_good_method(args, dot:); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#120 + def build_good_method_exists(args); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#128 + def build_good_method_where(args, dot_source); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#98 + def convertable_args?(args); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#104 + def correction_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#86 + def exists_style?; end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#90 + def find_offenses(node, &block); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#82 + def where_style?; end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#54 +RuboCop::Cop::Rails::WhereExists::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_exists.rb#55 +RuboCop::Cop::Rails::WhereExists::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Use `where.missing(...)` to find missing relationship records. +# +# This cop is enabled in Rails 6.1 or higher. +# +# @example +# # bad +# Post.left_joins(:author).where(authors: { id: nil }) +# +# # good +# Post.where.missing(:author) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#17 +class RuboCop::Cop::Rails::WhereMissing < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#34 + def missing_relationship(param0); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#38 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#29 + def where_node_and_argument(param0); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#115 + def message(node, where_argument); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#111 + def multi_condition?(where_arg); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#67 + def register_offense(node, where_node, where_argument, range); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#93 + def remove_where_method(corrector, node, where_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#84 + def replace_range(child); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#78 + def replace_where_method(corrector, where_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#54 + def root_receiver(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#107 + def same_line?(left_joins_node, where_node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#63 + def same_relationship?(where, left_joins); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#22 +RuboCop::Cop::Rails::WhereMissing::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_missing.rb#24 +RuboCop::Cop::Rails::WhereMissing::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where manually constructed SQL +# in `where` can be replaced with `where.not(...)`. +# +# @example +# # bad +# User.where('name != ?', 'Gabe') +# User.where('name != :name', name: 'Gabe') +# User.where('name <> ?', 'Gabe') +# User.where('name <> :name', name: 'Gabe') +# User.where('name IS NOT NULL') +# User.where('name NOT IN (?)', ['john', 'jane']) +# User.where('name NOT IN (:names)', names: ['john', 'jane']) +# User.where('users.name != :name', name: 'Gabe') +# +# # good +# User.where.not(name: 'Gabe') +# User.where.not(name: nil) +# User.where.not(name: ['john', 'jane']) +# User.where.not(users: { name: 'Gabe' }) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#26 +class RuboCop::Cop::Rails::WhereNot < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#40 + def on_csend(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#40 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#33 + def where_method_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#90 + def build_good_method(dot, column, value); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#71 + def extract_column_and_value(template_node, value_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#67 + def offense_range(node); end +end + +# column IS NOT NULL +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#63 +RuboCop::Cop::Rails::WhereNot::IS_NOT_NULL_RE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#30 +RuboCop::Cop::Rails::WhereNot::MSG = T.let(T.unsafe(nil), String) + +# column != ?, column <> ? +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#59 +RuboCop::Cop::Rails::WhereNot::NOT_EQ_ANONYMOUS_RE = T.let(T.unsafe(nil), Regexp) + +# column != :column, column <> :column +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#61 +RuboCop::Cop::Rails::WhereNot::NOT_EQ_NAMED_RE = T.let(T.unsafe(nil), Regexp) + +# column NOT IN (?) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#60 +RuboCop::Cop::Rails::WhereNot::NOT_IN_ANONYMOUS_RE = T.let(T.unsafe(nil), Regexp) + +# column NOT IN (:column) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#62 +RuboCop::Cop::Rails::WhereNot::NOT_IN_NAMED_RE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_not.rb#31 +RuboCop::Cop::Rails::WhereNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies calls to `where.not` with multiple hash arguments. +# +# The behavior of `where.not` changed in Rails 6.1. Prior to the change, +# `.where.not(trashed: true, role: 'admin')` evaluated to +# `WHERE trashed != TRUE AND role != 'admin'`. +# From Rails 6.1 onwards, this executes the query +# `WHERE NOT (trashed == TRUE AND roles == 'admin')`. +# +# @example +# # bad +# User.where.not(trashed: true, role: 'admin') +# User.where.not(trashed: true, role: ['moderator', 'admin']) +# User.joins(:posts).where.not(posts: { trashed: true, title: 'Rails' }) +# +# # good +# User.where.not(trashed: true) +# User.where.not(role: ['moderator', 'admin']) +# User.where.not(trashed: true).where.not(role: ['moderator', 'admin']) +# User.where.not('trashed = ? OR role = ?', true, 'admin') +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb#25 +class RuboCop::Cop::Rails::WhereNotWithMultipleConditions < ::RuboCop::Cop::Base + # source://rubocop-rails//lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb#33 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb#29 + def where_not_call?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb#46 + def multiple_arguments_hash?(hash); end +end + +# source://rubocop-rails//lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb#26 +RuboCop::Cop::Rails::WhereNotWithMultipleConditions::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb#27 +RuboCop::Cop::Rails::WhereNotWithMultipleConditions::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Identifies places where manually constructed SQL +# in `where` can be replaced with ranges. +# +# @example +# # bad +# User.where('age >= ?', 18) +# User.where.not('age >= ?', 18) +# User.where('age < ?', 18) +# User.where('age >= ? AND age < ?', 18, 21) +# User.where('age >= :start', start: 18) +# User.where('users.age >= ?', 18) +# +# # good +# User.where(age: 18..) +# User.where.not(age: 18..) +# User.where(age: ...18) +# User.where(age: 18...21) +# User.where(users: { age: 18.. }) +# +# # good +# # There are no beginless ranges in ruby. +# User.where('age > ?', 18) +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#37 +class RuboCop::Cop::Rails::WhereRange < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + extend ::RuboCop::Cop::TargetRailsVersion + + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#70 + def on_send(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#63 + def where_range_call?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#169 + def build_good_method(method_name, column, value); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#96 + def extract_column_and_value(template_node, values_node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#161 + def find_pair(hash_node, value); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#165 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#179 + def parentheses_needed?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#183 + def parentheses_not_needed?(node); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#192 + def parenthesized_call_node?(node); end + + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#157 + def range_operator(comparison_operator); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#90 + def where_not?(node); end +end + +# column >= ? +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#48 +RuboCop::Cop::Rails::WhereRange::GTEQ_ANONYMOUS_RE = T.let(T.unsafe(nil), Regexp) + +# column >= :value +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#54 +RuboCop::Cop::Rails::WhereRange::GTEQ_NAMED_RE = T.let(T.unsafe(nil), Regexp) + +# column <[=] ? +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#50 +RuboCop::Cop::Rails::WhereRange::LTEQ_ANONYMOUS_RE = T.let(T.unsafe(nil), Regexp) + +# column <[=] :value +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#56 +RuboCop::Cop::Rails::WhereRange::LTEQ_NAMED_RE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#43 +RuboCop::Cop::Rails::WhereRange::MSG = T.let(T.unsafe(nil), String) + +# column >= ? AND column <[=] ? +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#52 +RuboCop::Cop::Rails::WhereRange::RANGE_ANONYMOUS_RE = T.let(T.unsafe(nil), Regexp) + +# column >= :value1 AND column <[=] :value2 +# +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#58 +RuboCop::Cop::Rails::WhereRange::RANGE_NAMED_RE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rails//lib/rubocop/cop/rails/where_range.rb#45 +RuboCop::Cop::Rails::WhereRange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +module RuboCop::Cop::Style; end + +class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#70 + def inverse_block?(param0 = T.unsafe(nil)); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#61 + def inverse_candidate?(param0 = T.unsafe(nil)); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#92 + def on_block(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#78 + def on_csend(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#92 + def on_numblock(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#78 + def on_send(node); end + + private + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#177 + def camel_case_constant?(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#121 + def correct_inverse_block(corrector, node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#112 + def correct_inverse_method(corrector, node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#128 + def correct_inverse_selector(block, corrector); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#181 + def dot_range(loc); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#166 + def end_parentheses(node, method_call); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#150 + def inverse_blocks; end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#145 + def inverse_methods; end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#191 + def message(method, inverse); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#154 + def negated?(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#162 + def not_to_receiver(node, method_call); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#172 + def possible_class_hierarchy_check?(lhs, rhs, method); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#158 + def relational_comparison_with_safe_navigation?(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/inverse_methods.rb#185 + def remove_end_parenthesis(corrector, node, method, method_call); end + + class << self + # source://rubocop-rails//lib/rubocop-rails.rb#22 + def autocorrect_incompatible_with; end + end +end + +class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base + # source://rubocop/1.65.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + def on_csend(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + def on_send(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + def on_yield(node); end + + private + + # source://rubocop/1.65.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#225 + def args_begin(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#233 + def args_end(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#237 + def args_parenthesized?(node); end + + class << self + # source://rubocop-rails//lib/rubocop-rails.rb#30 + def autocorrect_incompatible_with; end + end +end + +class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#60 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#68 + def on_and_asgn(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#86 + def on_args(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#120 + def on_block(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#90 + def on_blockarg(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#81 + def on_def(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#81 + def on_defs(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#126 + def on_if(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#104 + def on_in_pattern(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#99 + def on_lvasgn(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#94 + def on_masgn(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#120 + def on_numblock(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#74 + def on_op_asgn(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#68 + def on_or_asgn(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#108 + def on_send(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#126 + def on_until(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#126 + def on_while(node); end + + private + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#196 + def add_lhs_to_local_variables_scopes(rhs, lhs); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#204 + def add_masgn_lhs_variables(rhs, lhs); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#210 + def add_match_var_scopes(in_pattern_node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#144 + def add_scope(node, local_variables = T.unsafe(nil)); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#190 + def allow_self(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#150 + def allowed_send_node?(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#165 + def it_method_in_block?(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#181 + def on_argument(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/style/redundant_self.rb#173 + def regular_method_call?(node); end + + class << self + # source://rubocop-rails//lib/rubocop-rails.rb#38 + def autocorrect_incompatible_with; end + end +end + +# Common functionality for checking target rails version. +# +# source://rubocop-rails//lib/rubocop/cop/mixin/target_rails_version.rb#6 +module RuboCop::Cop::TargetRailsVersion + # source://rubocop-rails//lib/rubocop/cop/mixin/target_rails_version.rb#11 + def minimum_target_rails_version(version); end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/cop/mixin/target_rails_version.rb#23 + def support_target_rails_version?(version); end +end + +# Look for `railties` instead of `rails`, to support apps that only use a subset of `rails` +# See https://github.com/rubocop/rubocop/pull/11289 +# +# source://rubocop-rails//lib/rubocop/cop/mixin/target_rails_version.rb#39 +RuboCop::Cop::TargetRailsVersion::TARGET_GEM_NAME = T.let(T.unsafe(nil), String) + +# Informs the base RuboCop gem that it the Rails version is checked via `requires_gem` API, +# without needing to call this `#support_target_rails_version` method. +# +# source://rubocop-rails//lib/rubocop/cop/mixin/target_rails_version.rb#9 +RuboCop::Cop::TargetRailsVersion::USES_REQUIRES_GEM_API = T.let(T.unsafe(nil), TrueClass) + +# RuboCop Rails project namespace +# +# source://rubocop-rails//lib/rubocop/rails.rb#5 +module RuboCop::Rails; end + +# source://rubocop-rails//lib/rubocop/rails.rb#8 +RuboCop::Rails::CONFIG = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rails//lib/rubocop/rails.rb#7 +RuboCop::Rails::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) + +# Because RuboCop doesn't yet support plugins, we have to monkey patch in a +# bit of our configuration. +# +# source://rubocop-rails//lib/rubocop/rails/inject.rb#7 +module RuboCop::Rails::Inject + class << self + # source://rubocop-rails//lib/rubocop/rails/inject.rb#8 + def defaults!; end + end +end + +# source://rubocop-rails//lib/rubocop/rails.rb#6 +RuboCop::Rails::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) + +# It loads db/schema.rb and return Schema object. +# Cops refers database schema information with this module. +# +# source://rubocop-rails//lib/rubocop/rails/schema_loader.rb#7 +module RuboCop::Rails::SchemaLoader + extend ::RuboCop::Rails::SchemaLoader + + # source://rubocop-rails//lib/rubocop/rails/schema_loader.rb#27 + def db_schema_path; end + + # It parses `db/schema.rb` and return it. + # It returns `nil` if it can't find `db/schema.rb`. + # So a cop that uses the loader should handle `nil` properly. + # + # @return [Schema, nil] + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader.rb#15 + def load(target_ruby_version, parser_engine); end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader.rb#21 + def reset!; end + + private + + # source://rubocop-rails//lib/rubocop/rails/schema_loader.rb#41 + def load!(target_ruby_version, parser_engine); end +end + +# Represent an `add_index` +# +# source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#177 +class RuboCop::Rails::SchemaLoader::AddIndex < ::RuboCop::Rails::SchemaLoader::Index + # @return [AddIndex] a new instance of AddIndex + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#180 + def initialize(node); end + + # Returns the value of attribute table_name. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#178 + def table_name; end +end + +# Represent a column +# +# source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#117 +class RuboCop::Rails::SchemaLoader::Column + # @return [Column] a new instance of Column + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#120 + def initialize(node); end + + # Returns the value of attribute name. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#118 + def name; end + + # Returns the value of attribute not_null. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#118 + def not_null; end + + # Returns the value of attribute type. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#118 + def type; end + + private + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#130 + def analyze_keywords!(node); end +end + +# Represent an index +# +# source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#141 +class RuboCop::Rails::SchemaLoader::Index + # @return [Index] a new instance of Index + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#144 + def initialize(node); end + + # Returns the value of attribute columns. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#142 + def columns; end + + # Returns the value of attribute expression. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#142 + def expression; end + + # Returns the value of attribute name. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#142 + def name; end + + # Returns the value of attribute unique. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#142 + def unique; end + + private + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#161 + def analyze_keywords!(node); end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#153 + def build_columns_or_expr(columns); end +end + +# Represent db/schema.rb +# +# source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#7 +class RuboCop::Rails::SchemaLoader::Schema + # @return [Schema] a new instance of Schema + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#10 + def initialize(ast); end + + # Returns the value of attribute add_indices. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#8 + def add_indices; end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#23 + def add_indices_by(table_name:); end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#17 + def table_by(name:); end + + # Returns the value of attribute tables. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#8 + def tables; end + + private + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#31 + def build!(ast); end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#60 + def each_add_index(ast); end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#47 + def each_table(ast); end +end + +# Represent a table +# +# source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#71 +class RuboCop::Rails::SchemaLoader::Table + # @return [Table] a new instance of Table + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#74 + def initialize(node); end + + # Returns the value of attribute columns. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#72 + def columns; end + + # Returns the value of attribute indices. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#72 + def indices; end + + # Returns the value of attribute name. + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#72 + def name; end + + # @return [Boolean] + # + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#80 + def with_column?(name:); end + + private + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#86 + def build_columns(node); end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#95 + def build_indices(node); end + + # source://rubocop-rails//lib/rubocop/rails/schema_loader/schema.rb#104 + def each_content(node, &block); end +end + +# This module holds the RuboCop Rails version information. +# +# source://rubocop-rails//lib/rubocop/rails/version.rb#6 +module RuboCop::Rails::Version + class << self + # source://rubocop-rails//lib/rubocop/rails/version.rb#9 + def document_version; end + end +end + +# source://rubocop-rails//lib/rubocop/rails/version.rb#7 +RuboCop::Rails::Version::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rubocop-rspec@3.0.4.rbi b/sorbet/rbi/gems/rubocop-rspec@3.0.4.rbi new file mode 100644 index 00000000..6fd61b73 --- /dev/null +++ b/sorbet/rbi/gems/rubocop-rspec@3.0.4.rbi @@ -0,0 +1,7550 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-rspec` gem. +# Please instead update this file by running `bin/tapioca gem rubocop-rspec`. + + +# source://rubocop-rspec//lib/rubocop/rspec.rb#3 +module RuboCop; end + +class RuboCop::AST::Node < ::Parser::AST::Node + include ::RuboCop::RSpec::Node +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#4 +module RuboCop::Cop; end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#5 +module RuboCop::Cop::RSpec; end + +# Checks that left braces for adjacent single line lets are aligned. +# +# @example +# # bad +# let(:foobar) { blahblah } +# let(:baz) { bar } +# let(:a) { b } +# +# # good +# let(:foobar) { blahblah } +# let(:baz) { bar } +# let(:a) { b } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#19 +class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#28 + def on_new_investigation; end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#43 + def token_aligner; end + + class << self + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#24 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#22 +RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String) + +# Checks that right braces for adjacent single line lets are aligned. +# +# @example +# # bad +# let(:foobar) { blahblah } +# let(:baz) { bar } +# let(:a) { b } +# +# # good +# let(:foobar) { blahblah } +# let(:baz) { bar } +# let(:a) { b } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#19 +class RuboCop::Cop::RSpec::AlignRightLetBrace < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#28 + def on_new_investigation; end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#43 + def token_aligner; end + + class << self + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#24 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#22 +RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String) + +# Check that instances are not being stubbed globally. +# +# Prefer instance doubles over stubbing any instance of a class +# +# @example +# # bad +# describe MyClass do +# before { allow_any_instance_of(MyClass).to receive(:foo) } +# end +# +# # good +# describe MyClass do +# let(:my_instance) { instance_double(MyClass) } +# +# before do +# allow(MyClass).to receive(:new).and_return(my_instance) +# allow(my_instance).to receive(:foo) +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#26 +class RuboCop::Cop::RSpec::AnyInstance < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#34 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#27 +RuboCop::Cop::RSpec::AnyInstance::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#28 +RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that around blocks actually run the test. +# +# @example +# # bad +# around do +# some_method +# end +# +# around do |test| +# some_method +# end +# +# # good +# around do |test| +# some_method +# test.call +# end +# +# around do |test| +# some_method +# test.run +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#29 +class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#45 + def find_arg_usage(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#35 + def hook_block(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#40 + def hook_numblock(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#49 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#59 + def on_numblock(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#67 + def add_no_arg_offense(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#84 + def check_for_numblock(block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#71 + def check_for_unused_proxy(block, proxy); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#30 +RuboCop::Cop::RSpec::AroundBlock::MSG_NO_ARG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#31 +RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String) + +# @abstract parent class to RSpec cops +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#7 +class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base + include ::RuboCop::RSpec::Language + + # Set the config for dynamic DSL configuration-aware helpers + # that have no other means of accessing the configuration. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#19 + def on_new_investigation; end + + class << self + # Invoke the original inherited hook so our cops are recognized + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#13 + def inherited(subclass); end + end +end + +# Check for expectations where `be` is used without argument. +# +# The `be` matcher is too generic, as it pass on everything that is not +# nil or false. If that is the exact intend, use `be_truthy`. In all other +# cases it's better to specify what exactly is the expected value. +# +# @example +# # bad +# expect(foo).to be +# +# # good +# expect(foo).to be_truthy +# expect(foo).to be 1.0 +# expect(foo).to be(true) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#21 +class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#27 + def be_without_args(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#31 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#22 +RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#24 +RuboCop::Cop::RSpec::Be::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Prefer using `be_empty` when checking for an empty array. +# +# @example +# # bad +# expect(array).to contain_exactly +# expect(array).to match_array([]) +# +# # good +# expect(array).to be_empty +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#16 +class RuboCop::Cop::RSpec::BeEmpty < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#23 + def expect_array_matcher?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#35 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#19 +RuboCop::Cop::RSpec::BeEmpty::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#20 +RuboCop::Cop::RSpec::BeEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check for expectations where `be(...)` can replace `eq(...)`. +# +# The `be` matcher compares by identity while the `eq` matcher compares +# using `==`. Booleans and nil can be compared by identity and therefore +# the `be` matcher is preferable as it is a more strict test. +# +# @example +# # bad +# expect(foo).to eq(true) +# expect(foo).to eq(false) +# expect(foo).to eq(nil) +# +# # good +# expect(foo).to be(true) +# expect(foo).to be(false) +# expect(foo).to be(nil) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#26 +class RuboCop::Cop::RSpec::BeEq < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#33 + def eq_type_with_identity?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#37 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#29 +RuboCop::Cop::RSpec::BeEq::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#30 +RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check for expectations where `be(...)` can replace `eql(...)`. +# +# The `be` matcher compares by identity while the `eql` matcher +# compares using `eql?`. Integers, floats, booleans, symbols, and nil +# can be compared by identity and therefore the `be` matcher is +# preferable as it is a more strict test. +# +# This cop only looks for instances of `expect(...).to eql(...)`. We +# do not check `to_not` or `not_to` since `!eql?` is more strict +# than `!equal?`. We also do not try to flag `eq` because if +# `a == b`, and `b` is comparable by identity, `a` is still not +# necessarily the same type as `b` since the `#==` operator can +# coerce objects for comparison. +# +# @example +# # bad +# expect(foo).to eql(1) +# expect(foo).to eql(1.0) +# expect(foo).to eql(true) +# expect(foo).to eql(false) +# expect(foo).to eql(:bar) +# expect(foo).to eql(nil) +# +# # good +# expect(foo).to be(1) +# expect(foo).to be(1.0) +# expect(foo).to be(true) +# expect(foo).to be(false) +# expect(foo).to be(:bar) +# expect(foo).to be(nil) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#40 +class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#47 + def eql_type_with_identity(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#51 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#43 +RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#44 +RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Ensures a consistent style is used when matching `nil`. +# +# You can either use the more specific `be_nil` matcher, or the more +# generic `be` matcher with a `nil` argument. +# +# This cop can be configured using the `EnforcedStyle` option +# +# @example `EnforcedStyle: be_nil` (default) +# # bad +# expect(foo).to be(nil) +# +# # good +# expect(foo).to be_nil +# @example `EnforcedStyle: be` +# # bad +# expect(foo).to be_nil +# +# # good +# expect(foo).to be(nil) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#27 +class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#36 + def be_nil_matcher?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#41 + def nil_value_expectation?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#45 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#64 + def check_be_nil_style(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#56 + def check_be_style(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#31 +RuboCop::Cop::RSpec::BeNil::BE_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#32 +RuboCop::Cop::RSpec::BeNil::BE_NIL_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#33 +RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check that before/after(:all/:context) isn't being used. +# +# @example +# # bad - Faster but risk of state leaking between examples +# describe MyClass do +# before(:all) { Widget.create } +# after(:context) { Widget.delete_all } +# end +# +# # good - Slower but examples are properly isolated +# describe MyClass do +# before(:each) { Widget.create } +# after(:each) { Widget.delete_all } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#21 +class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#30 + def before_or_after_all(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#34 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#22 +RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#27 +RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Prefer negated matchers over `to change.by(0)`. +# +# In the case of composite expectations, cop suggest using the +# negation matchers of `RSpec::Matchers#change`. +# +# By default the cop does not support autocorrect of +# compound expectations, but if you set the +# negated matcher for `change`, e.g. `not_change` with +# the `NegatedMatcher` option, the cop will perform the autocorrection. +# +# @example NegatedMatcher: ~ (default) +# # bad +# expect { run }.to change(Foo, :bar).by(0) +# expect { run }.to change { Foo.bar }.by(0) +# +# # bad - compound expectations (does not support autocorrection) +# expect { run } +# .to change(Foo, :bar).by(0) +# .and change(Foo, :baz).by(0) +# expect { run } +# .to change { Foo.bar }.by(0) +# .and change { Foo.baz }.by(0) +# +# # good +# expect { run }.not_to change(Foo, :bar) +# expect { run }.not_to change { Foo.bar } +# +# # good - compound expectations +# define_negated_matcher :not_change, :change +# expect { run } +# .to not_change(Foo, :bar) +# .and not_change(Foo, :baz) +# expect { run } +# .to not_change { Foo.bar } +# .and not_change { Foo.baz } +# @example NegatedMatcher: not_change +# # bad (support autocorrection to good case) +# expect { run } +# .to change(Foo, :bar).by(0) +# .and change(Foo, :baz).by(0) +# expect { run } +# .to change { Foo.bar }.by(0) +# .and change { Foo.baz }.by(0) +# +# # good +# define_negated_matcher :not_change, :change +# expect { run } +# .to not_change(Foo, :bar) +# .and not_change(Foo, :baz) +# expect { run } +# .to not_change { Foo.bar } +# .and not_change { Foo.baz } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#60 +class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#88 + def change_nodes(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#71 + def expect_change_with_arguments(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#78 + def expect_change_with_block(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#92 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#133 + def autocorrect(corrector, node, change_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#140 + def autocorrect_compound(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#120 + def compound_expectations?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#150 + def insert_operator(corrector, node, change_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#124 + def message(change_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#128 + def message_compound(change_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#174 + def negated_matcher; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#178 + def preferred_method; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#105 + def register_offense(node, change_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#163 + def remove_by_zero(corrector, node, change_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#159 + def replace_node(node, change_node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#67 +RuboCop::Cop::RSpec::ChangeByZero::CHANGE_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#64 +RuboCop::Cop::RSpec::ChangeByZero::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#65 +RuboCop::Cop::RSpec::ChangeByZero::MSG_COMPOUND = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#68 +RuboCop::Cop::RSpec::ChangeByZero::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Enforces consistent use of `be_a` or `be_kind_of`. +# +# @example EnforcedStyle: be_a (default) +# # bad +# expect(object).to be_kind_of(String) +# expect(object).to be_a_kind_of(String) +# +# # good +# expect(object).to be_a(String) +# expect(object).to be_an(String) +# @example EnforcedStyle: be_kind_of +# # bad +# expect(object).to be_a(String) +# expect(object).to be_an(String) +# +# # good +# expect(object).to be_kind_of(String) +# expect(object).to be_a_kind_of(String) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#26 +class RuboCop::Cop::RSpec::ClassCheck < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#54 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#67 + def autocorrect(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#71 + def format_message(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#79 + def offending?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#87 + def preferred_method_name; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#83 + def preferred_method_name?(method_name); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#91 + def preferred_method_names; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#32 +RuboCop::Cop::RSpec::ClassCheck::METHOD_NAMES_FOR_BE_A = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#37 +RuboCop::Cop::RSpec::ClassCheck::METHOD_NAMES_FOR_KIND_OF = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#30 +RuboCop::Cop::RSpec::ClassCheck::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#42 +RuboCop::Cop::RSpec::ClassCheck::PREFERRED_METHOD_NAME_BY_STYLE = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#47 +RuboCop::Cop::RSpec::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Help methods for working with nodes containing comments. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#7 +module RuboCop::Cop::RSpec::CommentsHelp + include ::RuboCop::Cop::RSpec::FinalEndLocation + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#17 + def begin_pos_with_comment(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#32 + def buffer; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#27 + def end_line_position(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#10 + def source_range_with_comment(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#23 + def start_line_position(node); end +end + +# Checks where `contain_exactly` is used. +# +# This cop checks for the following: +# - Prefer `match_array` when matching array values. +# - Prefer `be_empty` when using `contain_exactly` with no arguments. +# +# @example +# # bad +# it { is_expected.to contain_exactly(*array1, *array2) } +# +# # good +# it { is_expected.to match_array(array1 + array2) } +# +# # good +# it { is_expected.to contain_exactly(content, *array) } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#22 +class RuboCop::Cop::RSpec::ContainExactly < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#28 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#44 + def autocorrect_for_populated_array(node, corrector); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#36 + def check_populated_collection(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#25 +RuboCop::Cop::RSpec::ContainExactly::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#26 +RuboCop::Cop::RSpec::ContainExactly::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# `context` should not be used for specifying methods. +# +# @example +# # bad +# context '#foo_bar' do +# # ... +# end +# +# context '.foo_bar' do +# # ... +# end +# +# # good +# describe '#foo_bar' do +# # ... +# end +# +# describe '.foo_bar' do +# # ... +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#27 +class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#33 + def context_method(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#41 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#51 + def method_name?(description); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#30 +RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) + +# Checks that `context` docstring starts with an allowed prefix. +# +# The default list of prefixes is minimal. Users are encouraged to tailor +# the configuration to meet project needs. Other acceptable prefixes may +# include `if`, `unless`, `for`, `before`, `after`, or `during`. +# They may consist of multiple words if desired. +# +# This cop can be customized allowed context description pattern +# with `AllowedPatterns`. By default, there are no checking by pattern. +# +# @example `Prefixes` configuration +# # .rubocop.yml +# # RSpec/ContextWording: +# # Prefixes: +# # - when +# # - with +# # - without +# # - if +# # - unless +# # - for +# @example +# # bad +# context 'the display name not present' do +# # ... +# end +# +# # good +# context 'when the display name is not present' do +# # ... +# end +# @example `AllowedPatterns` configuration +# +# # .rubocop.yml +# # RSpec/ContextWording: +# # AllowedPatterns: +# # - とき$ +# @example +# # bad +# context '条件を満たす' do +# # ... +# end +# +# # good +# context '条件を満たすとき' do +# # ... +# end +# @see http://www.betterspecs.org/#contexts +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#58 +class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#64 + def context_wording(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#68 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#79 + def allowed_patterns; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#87 + def bad_pattern?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#93 + def description(context); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#101 + def expect_patterns; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#83 + def prefix_regexes; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#111 + def prefixes; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#61 +RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String) + +# Check that the first argument to the top-level describe is a constant. +# +# It can be configured to ignore strings when certain metadata is passed. +# +# Ignores Rails and Aruba `type` metadata by default. +# +# @example `IgnoredMetadata` configuration +# # .rubocop.yml +# # RSpec/DescribeClass: +# # IgnoredMetadata: +# # type: +# # - request +# # - controller +# @example +# # bad +# describe 'Do something' do +# end +# +# # good +# describe TestedClass do +# subject { described_class } +# end +# +# describe 'TestedClass::VERSION' do +# subject { Object.const_get(self.class.description) } +# end +# +# describe "A feature example", type: :feature do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#37 +class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#44 + def example_group_with_ignored_metadata?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#49 + def not_a_const_described(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#58 + def on_top_level_group(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#54 + def sym_pair(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#79 + def ignored_metadata; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#68 + def ignored_metadata?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#74 + def string_constant?(described); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#40 +RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String) + +# Checks that the second argument to `describe` specifies a method. +# +# @example +# # bad +# describe MyClass, 'do something' do +# end +# +# # good +# describe MyClass, '#my_instance_method' do +# end +# +# describe MyClass, '.my_class_method' do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#20 +class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#34 + def method_name?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#38 + def on_top_level_group(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#27 + def second_string_literal_argument(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#46 + def method_name_prefix?(description); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#23 +RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String) + +# Avoid describing symbols. +# +# @example +# # bad +# describe :my_method do +# # ... +# end +# +# # good +# describe '#my_method' do +# # ... +# end +# @see https://github.com/rspec/rspec-core/issues/1610 +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#20 +class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#25 + def describe_symbol?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#29 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#21 +RuboCop::Cop::RSpec::DescribeSymbol::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#22 +RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that tests use `described_class`. +# +# If the first argument of describe is a class, the class is exposed to +# each example via described_class. +# +# This cop can be configured using the `EnforcedStyle`, `SkipBlocks` +# and `OnlyStaticConstants` options. +# `OnlyStaticConstants` is only relevant when `EnforcedStyle` is +# `described_class`. +# +# There's a known caveat with rspec-rails's `controller` helper that +# runs its block in a different context, and `described_class` is not +# available to it. `SkipBlocks` option excludes detection in all +# non-RSpec related blocks. +# +# To narrow down this setting to only a specific directory, it is +# possible to use an overriding configuration file local to that +# directory. +# +# @example `EnforcedStyle: described_class` (default) +# # bad +# describe MyClass do +# subject { MyClass.do_something } +# end +# +# # good +# describe MyClass do +# subject { described_class.do_something } +# end +# @example `OnlyStaticConstants: true` (default) +# # good +# describe MyClass do +# subject { MyClass::CONSTANT } +# end +# @example `OnlyStaticConstants: false` +# # bad +# describe MyClass do +# subject { MyClass::CONSTANT } +# end +# @example `EnforcedStyle: explicit` +# # bad +# describe MyClass do +# subject { described_class.do_something } +# end +# +# # good +# describe MyClass do +# subject { MyClass.do_something } +# end +# @example `SkipBlocks: true` +# # spec/controllers/.rubocop.yml +# # RSpec/DescribedClass: +# # SkipBlocks: true +# +# # acceptable +# describe MyConcern do +# controller(ApplicationController) do +# include MyConcern +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#71 +class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RSpec::Namespace + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#80 + def common_instance_exec_closure?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#97 + def contains_described_class?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#92 + def described_constant(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#100 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#85 + def rspec_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#89 + def scope_changing_syntax?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#136 + def allowed?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#117 + def autocorrect(corrector, match); end + + # @example + # # nil represents base constant + # collapse_namespace([], [:C]) # => [:C] + # collapse_namespace([:A, :B], [:C]) # => [:A, :B, :C] + # collapse_namespace([:A, :B], [:B, :C]) # => [:A, :B, :C] + # collapse_namespace([:A, :B], [nil, :C]) # => [nil, :C] + # collapse_namespace([:A, :B], [nil, :B, :C]) # => [nil, :B, :C] + # @param namespace [Array] + # @param const [Array] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#200 + def collapse_namespace(namespace, const); end + + # @example + # const_name(s(:const, nil, :C)) # => [:C] + # const_name(s(:const, s(:const, nil, :M), :C)) # => [:M, :C] + # const_name(s(:const, s(:cbase), :C)) # => [nil, :C] + # @param node [RuboCop::AST::Node] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#217 + def const_name(node); end + + # @yield [node] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#127 + def find_usage(node, &block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#185 + def full_const_name(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#140 + def message(offense); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#163 + def offensive?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#171 + def offensive_described_class?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#159 + def only_static_constants?; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#149 + def scope_change?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#155 + def skippable_block?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#76 +RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#77 +RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String) + +# Avoid opening modules and defining specs within them. +# +# @example +# # bad +# module MyModule +# RSpec.describe MyClass do +# # ... +# end +# end +# +# # good +# RSpec.describe MyModule::MyClass do +# # ... +# end +# @see https://github.com/rubocop/rubocop-rspec/issues/735 +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#22 +class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#26 + def include_rspec_blocks?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#30 + def on_module(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#23 +RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), String) + +# Enforces custom RSpec dialects. +# +# A dialect can be based on the following RSpec methods: +# +# - describe, context, feature, example_group +# - xdescribe, xcontext, xfeature +# - fdescribe, fcontext, ffeature +# - shared_examples, shared_examples_for, shared_context +# - it, specify, example, scenario, its +# - fit, fspecify, fexample, fscenario, focus +# - xit, xspecify, xexample, xscenario, skip +# - pending +# - prepend_before, before, append_before, +# - around +# - prepend_after, after, append_after +# - let, let! +# - subject, subject! +# - expect, is_expected, expect_any_instance_of +# +# By default all of the RSpec methods and aliases are allowed. By setting +# a config like: +# +# RSpec/Dialect: +# PreferredMethods: +# context: describe +# +# If you were previously using the `RSpec/Capybara/FeatureMethods` cop and +# want to keep disabling all Capybara-specific methods that have the same +# native RSpec method (e.g. are just aliases), use the following config: +# +# RSpec/Dialect: +# PreferredMethods: +# background: :before +# scenario: :it +# xscenario: :xit +# given: :let +# given!: :let! +# feature: :describe +# +# You can expect the following behavior: +# +# @example +# # bad +# context 'display name presence' do +# # ... +# end +# +# # good +# describe 'display name presence' do +# # ... +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#58 +class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::MethodPreference + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#67 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#65 + def rspec_method?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#62 +RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) + +# Avoid duplicated metadata. +# +# @example +# # bad +# describe 'Something', :a, :a +# +# # good +# describe 'Something', :a +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#14 +class RuboCop::Cop::RSpec::DuplicatedMetadata < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::Metadata + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#22 + def on_metadata(symbols, _hash); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#38 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#50 + def duplicated?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#30 + def on_metadata_symbol(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#20 +RuboCop::Cop::RSpec::DuplicatedMetadata::MSG = T.let(T.unsafe(nil), String) + +# Checks if an example group does not include any tests. +# +# @example usage +# # bad +# describe Bacon do +# let(:bacon) { Bacon.new(chunkiness) } +# let(:chunkiness) { false } +# +# context 'extra chunky' do # flagged by rubocop +# let(:chunkiness) { true } +# end +# +# it 'is chunky' do +# expect(bacon.chunky?).to be_truthy +# end +# end +# +# # good +# describe Bacon do +# let(:bacon) { Bacon.new(chunkiness) } +# let(:chunkiness) { false } +# +# it 'is chunky' do +# expect(bacon.chunky?).to be_truthy +# end +# end +# +# # good +# describe Bacon do +# pending 'will add tests later' +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#38 +class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # Match example group blocks and yield their body + # + # @example source that matches + # describe 'example group' do + # it { is_expected.to be } + # end + # @param node [RuboCop::AST::Node] + # @yield [RuboCop::AST::Node] example group body + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#55 + def example_group_body(param0 = T.unsafe(nil)); end + + # Match examples, example groups and includes + # + # @example source that matches + # it { is_expected.to fly } + # describe('non-empty example groups too') { } + # it_behaves_like 'an animal' + # it_behaves_like('a cat') { let(:food) { 'milk' } } + # it_has_root_access + # skip + # it 'will be implemented later' + # @param node [RuboCop::AST::Node] + # @return [Array] matching nodes + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#73 + def example_or_group_or_include?(param0 = T.unsafe(nil)); end + + # Matches examples defined in scopes where they could run + # + # @example source that matches + # it { expect(myself).to be_run } + # describe { it { i_run_as_well } } + # @example source that does not match + # before { it { whatever here won't run anyway } } + # @param node [RuboCop::AST::Node] + # @return [Array] matching nodes + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#130 + def examples?(param0 = T.unsafe(nil)); end + + # Match examples or examples inside blocks + # + # @example source that matches + # it { expect(drink).to be_cold } + # context('when winter') { it { expect(drink).to be_hot } } + # (1..5).each { |divisor| it { is_expected.to divide_by(divisor) } } + # @param node [RuboCop::AST::Node] + # @return [Array] matching nodes + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#111 + def examples_directly_or_in_block?(param0 = T.unsafe(nil)); end + + # Match examples defined inside a block which is not a hook + # + # @example source that matches + # %w(r g b).each do |color| + # it { is_expected.to have_color(color) } + # end + # @example source that does not match + # before do + # it { is_expected.to fall_into_oblivion } + # end + # @param node [RuboCop::AST::Node] + # @return [Array] matching nodes + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#97 + def examples_inside_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#138 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#164 + def conditionals_with_examples?(body); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#172 + def examples_in_branches?(condition_node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#153 + def offensive?(body); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#178 + def removed_range(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#43 +RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String) + +# Checks for empty before and after hooks. +# +# @example +# # bad +# before {} +# after do; end +# before(:all) do +# end +# after(:all) { } +# +# # good +# before { create_users } +# after do +# cleanup_users +# end +# before(:all) do +# create_feed +# end +# after(:all) { cleanup_feed } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#26 +class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#33 + def empty_hook?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#37 + def on_block(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#30 +RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String) + +# Checks if there is an empty line after example blocks. +# +# @example +# # bad +# RSpec.describe Foo do +# it 'does this' do +# end +# it 'does that' do +# end +# end +# +# # good +# RSpec.describe Foo do +# it 'does this' do +# end +# +# it 'does that' do +# end +# end +# +# # fair - it's ok to have non-separated one-liners +# RSpec.describe Foo do +# it { one } +# it { two } +# end +# @example with AllowConsecutiveOneLiners configuration +# # rubocop.yml +# # RSpec/EmptyLineAfterExample: +# # AllowConsecutiveOneLiners: false +# +# # bad +# RSpec.describe Foo do +# it { one } +# it { two } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#43 +class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RSpec::EmptyLineSeparation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#49 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#64 + def allow_consecutive_one_liners?; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#60 + def allowed_one_liner?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#68 + def consecutive_one_liner?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#72 + def next_one_line_example?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#47 +RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String) + +# Checks if there is an empty line after example group blocks. +# +# @example +# # bad +# RSpec.describe Foo do +# describe '#bar' do +# end +# describe '#baz' do +# end +# end +# +# # good +# RSpec.describe Foo do +# describe '#bar' do +# end +# +# describe '#baz' do +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#26 +class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RSpec::EmptyLineSeparation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#32 + def on_block(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#30 +RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), String) + +# Checks if there is an empty line after the last let block. +# +# @example +# # bad +# let(:foo) { bar } +# let(:something) { other } +# it { does_something } +# +# # good +# let(:foo) { bar } +# let(:something) { other } +# +# it { does_something } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#20 +class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RSpec::EmptyLineSeparation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#26 + def on_block(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#24 +RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String) + +# Checks if there is an empty line after hook blocks. +# +# `AllowConsecutiveOneLiners` configures whether adjacent +# one-line definitions are considered an offense. +# +# @example +# # bad +# before { do_something } +# it { does_something } +# +# # bad +# after { do_something } +# it { does_something } +# +# # bad +# around { |test| test.run } +# it { does_something } +# +# # good +# after { do_something } +# +# it { does_something } +# +# # fair - it's ok to have non-separated one-liners hooks +# around { |test| test.run } +# after { do_something } +# +# it { does_something } +# @example with AllowConsecutiveOneLiners configuration +# # rubocop.yml +# # RSpec/EmptyLineAfterHook: +# # AllowConsecutiveOneLiners: false +# +# # bad +# around { |test| test.run } +# after { do_something } +# +# it { does_something } +# +# # good +# around { |test| test.run } +# +# after { do_something } +# +# it { does_something } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#53 +class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RSpec::EmptyLineSeparation + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#74 + def chained_single_line_hooks?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#58 +RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String) + +# Checks if there is an empty line after subject block. +# +# @example +# # bad +# subject(:obj) { described_class } +# let(:foo) { bar } +# +# # good +# subject(:obj) { described_class } +# +# let(:foo) { bar } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#18 +class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RSpec::EmptyLineSeparation + include ::RuboCop::Cop::RSpec::InsideExampleGroup + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#25 + def on_block(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#23 +RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String) + +# Helps determine the offending location if there is not an empty line +# following the node. Allows comments to follow directly after +# in the following cases. +# - followed by empty line(s) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#11 +module RuboCop::Cop::RSpec::EmptyLineSeparation + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RangeHelp + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#51 + def last_child?(node); end + + # @yield [offending_loc(enable_directive_line || final_end_line)] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#26 + def missing_separating_line(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#15 + def missing_separating_line_offense(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#41 + def offending_loc(last_line); end +end + +# Avoid empty metadata hash. +# +# @example EnforcedStyle: symbol (default) +# # bad +# describe 'Something', {} +# +# # good +# describe 'Something' +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#14 +class RuboCop::Cop::RSpec::EmptyMetadata < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::Metadata + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#22 + def on_metadata(_symbols, hash); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#32 + def remove_empty_metadata(corrector, node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#20 +RuboCop::Cop::RSpec::EmptyMetadata::MSG = T.let(T.unsafe(nil), String) + +# Check that the `output` matcher is not called with an empty string. +# +# @example +# # bad +# expect { foo }.to output('').to_stdout +# expect { bar }.not_to output('').to_stderr +# +# # good +# expect { foo }.not_to output.to_stdout +# expect { bar }.to output.to_stderr +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#17 +class RuboCop::Cop::RSpec::EmptyOutput < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#24 + def matching_empty_output(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#34 + def on_send(send_node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#20 +RuboCop::Cop::RSpec::EmptyOutput::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#21 +RuboCop::Cop::RSpec::EmptyOutput::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Use `eq` instead of `be ==` to compare objects. +# +# @example +# # bad +# expect(foo).to be == 42 +# +# # good +# expect(foo).to eq 42 +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#15 +class RuboCop::Cop::RSpec::Eq < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#23 + def be_equals(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#27 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#38 + def offense_range(matcher); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#19 +RuboCop::Cop::RSpec::Eq::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#20 +RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for long examples. +# +# A long example is usually more difficult to understand. Consider +# extracting out some behavior, e.g. with a `let` block, or a helper +# method. +# +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. +# Each construct will be counted as one line regardless of +# its actual size. +# +# @example +# # bad +# it do +# service = described_class.new +# more_setup +# more_setup +# result = service.call +# expect(result).to be(true) +# end +# +# # good +# it do +# service = described_class.new +# result = service.call +# expect(result).to be(true) +# end +# @example CountAsOne: ['array', 'heredoc', 'method_call'] +# +# it do +# array = [ # +1 +# 1, +# 2 +# ] +# +# hash = { # +3 +# key: 'value' +# } +# +# msg = <<~HEREDOC # +1 +# Heredoc +# content. +# HEREDOC +# +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#57 +class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::CodeLength + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#62 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#70 + def cop_label; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#60 +RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String) + +# Checks for examples without a description. +# +# RSpec allows for auto-generated example descriptions when there is no +# description provided or the description is an empty one. +# It is acceptable to use `specify` without a description +# +# This cop removes empty descriptions. +# It also defines whether auto-generated description is allowed, based +# on the configured style. +# +# This cop can be configured using the `EnforcedStyle` option +# +# @example +# # always good +# specify do +# result = service.call +# expect(result).to be(true) +# end +# @example `EnforcedStyle: always_allow` (default) +# # bad +# it('') { is_expected.to be_good } +# specify '' do +# result = service.call +# expect(result).to be(true) +# end +# +# # good +# it { is_expected.to be_good } +# specify do +# result = service.call +# expect(result).to be(true) +# end +# @example `EnforcedStyle: single_line_only` +# # bad +# it('') { is_expected.to be_good } +# it do +# result = service.call +# expect(result).to be(true) +# end +# +# # good +# it { is_expected.to be_good } +# @example `EnforcedStyle: disallow` +# # bad +# it { is_expected.to be_good } +# it do +# result = service.call +# expect(result).to be(true) +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#59 +class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#67 + def example_description(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#69 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#83 + def check_example_without_description(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#91 + def disallow_empty_description?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#64 +RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#62 +RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String) + +# Checks for common mistakes in example descriptions. +# +# This cop will correct docstrings that begin with 'should' and 'it'. +# This cop will also look for insufficient examples and call them out. +# +# The autocorrect is experimental - use with care! It can be configured +# with CustomTransform (e.g. have => has) and IgnoredWords (e.g. only). +# +# Use the DisallowedExamples setting to prevent unclear or insufficient +# descriptions. Please note that this config will not be treated as +# case sensitive. +# +# @example +# # bad +# it 'should find nothing' do +# end +# +# it 'will find nothing' do +# end +# +# # good +# it 'finds nothing' do +# end +# @example +# # bad +# it 'it does things' do +# end +# +# # good +# it 'does things' do +# end +# @example `DisallowedExamples: ['works']` (default) +# # bad +# it 'works' do +# end +# +# # good +# it 'marks the task as done' do +# end +# @see http://betterspecs.org/#should +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#49 +class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#63 + def it_description(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#71 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#89 + def add_wording_offense(node, message); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#136 + def custom_transform; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#99 + def docstring(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#140 + def ignored_words; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#144 + def insufficient_docstring?(description_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#148 + def insufficient_examples; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#153 + def preprocess(message); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#109 + def replacement_text(node); end + + # Recursive processing is required to process nested dstr nodes + # that is the case for \-separated multiline strings with interpolation. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#125 + def text(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#60 +RuboCop::Cop::RSpec::ExampleWording::IT_PREFIX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#55 +RuboCop::Cop::RSpec::ExampleWording::MSG_INSUFFICIENT_DESCRIPTION = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#54 +RuboCop::Cop::RSpec::ExampleWording::MSG_IT = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#52 +RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#53 +RuboCop::Cop::RSpec::ExampleWording::MSG_WILL = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#58 +RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#59 +RuboCop::Cop::RSpec::ExampleWording::WILL_PREFIX = T.let(T.unsafe(nil), Regexp) + +# Checks for excessive whitespace in example descriptions. +# +# @example +# # bad +# it ' has excessive spacing ' do +# end +# +# # good +# it 'has excessive spacing' do +# end +# @example +# # bad +# context ' when a condition is met ' do +# end +# +# # good +# context 'when a condition is met' do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#26 +class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#32 + def example_description(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#39 + def on_send(node); end + + private + + # @param node [RuboCop::AST::Node] + # @param text [String] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#76 + def add_whitespace_offense(node, text); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#85 + def docstring(node); end + + # @param text [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#54 + def excessive_whitespace?(text); end + + # @param text [String] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#68 + def strip_excessive_whitespace(text); end + + # Recursive processing is required to process nested dstr nodes + # that is the case for \-separated multiline strings with interpolation. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#97 + def text(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#29 +RuboCop::Cop::RSpec::ExcessiveDocstringSpacing::MSG = T.let(T.unsafe(nil), String) + +# Checks for `expect(...)` calls containing literal values. +# +# Autocorrection is performed when the expected is not a literal. +# +# @example +# # bad +# expect(5).to eq(price) +# expect(/foo/).to eq(pattern) +# expect("John").to eq(name) +# +# # good +# expect(price).to eq(5) +# expect(pattern).to eq(/foo/) +# expect(name).to eq("John") +# +# # bad (not supported autocorrection) +# expect(false).to eq(true) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#24 +class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#57 + def expect_literal(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#68 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#98 + def complex_literal?(node); end + + # This is not implemented using a NodePattern because it seems + # to not be able to match against an explicit (nil) sexp + # + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#90 + def literal?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#94 + def simple_literal?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#44 +RuboCop::Cop::RSpec::ExpectActual::COMPLEX_LITERALS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#54 +RuboCop::Cop::RSpec::ExpectActual::CORRECTABLE_MATCHERS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#27 +RuboCop::Cop::RSpec::ExpectActual::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#29 +RuboCop::Cop::RSpec::ExpectActual::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#31 +RuboCop::Cop::RSpec::ExpectActual::SIMPLE_LITERALS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#53 +RuboCop::Cop::RSpec::ExpectActual::SKIPPED_MATCHERS = T.let(T.unsafe(nil), Array) + +# Checks for consistent style of change matcher. +# +# Enforces either passing object and attribute as arguments to the matcher +# or passing a block that reads the attribute value. +# +# This cop can be configured using the `EnforcedStyle` option. +# +# @example `EnforcedStyle: method_call` (default) +# # bad +# expect { run }.to change { Foo.bar } +# expect { run }.to change { foo.baz } +# +# # good +# expect { run }.to change(Foo, :bar) +# expect { run }.to change(foo, :baz) +# # also good when there are arguments or chained method calls +# expect { run }.to change { Foo.bar(:count) } +# expect { run }.to change { user.reload.name } +# @example `EnforcedStyle: block` +# # bad +# expect { run }.to change(Foo, :bar) +# +# # good +# expect { run }.to change { Foo.bar } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#32 +class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#41 + def expect_change_with_arguments(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#46 + def expect_change_with_block(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#72 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#60 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#36 +RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#37 +RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#38 +RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Do not use `expect` in hooks such as `before`. +# +# @example +# # bad +# before do +# expect(something).to eq 'foo' +# end +# +# # bad +# after do +# expect_any_instance_of(Something).to receive(:foo) +# end +# +# # good +# it do +# expect(something).to eq 'foo' +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#24 +class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#28 + def expectation(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 + def on_numblock(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#44 + def message(expect, hook); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#25 +RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String) + +# Do not use `expect` in let. +# +# @example +# # bad +# let(:foo) do +# expect(something).to eq 'foo' +# end +# +# # good +# it do +# expect(something).to eq 'foo' +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#19 +class RuboCop::Cop::RSpec::ExpectInLet < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#23 + def expectation(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#25 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#36 + def message(expect); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#20 +RuboCop::Cop::RSpec::ExpectInLet::MSG = T.let(T.unsafe(nil), String) + +# Checks for opportunities to use `expect { ... }.to output`. +# +# @example +# # bad +# $stdout = StringIO.new +# my_app.print_report +# $stdout = STDOUT +# expect($stdout.string).to eq('Hello World') +# +# # good +# expect { my_app.print_report }.to output('Hello World').to_stdout +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#18 +class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#22 + def on_gvasgn(node); end + + private + + # Detect if we are inside the scope of a single example + # + # We want to encourage using `expect { ... }.to output` so + # we only care about situations where you would replace with + # an expectation. Therefore, assignments to stderr or stdout + # within a `before(:all)` or otherwise outside of an example + # don't matter. + # + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#40 + def inside_example_scope?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#19 +RuboCop::Cop::RSpec::ExpectOutput::MSG = T.let(T.unsafe(nil), String) + +# A helper for `explicit` style +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#121 +module RuboCop::Cop::RSpec::ExplicitHelper + include ::RuboCop::RSpec::Language + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#182 + def predicate_matcher?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#195 + def predicate_matcher_block?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#135 + def allowed_explicit_matchers; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#139 + def check_explicit(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#219 + def corrector_explicit(corrector, to_node, actual, matcher, block_child); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#175 + def heredoc_argument?(matcher); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#213 + def message_explicit(matcher); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#226 + def move_predicate(corrector, actual, matcher, block_child); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#204 + def predicate_matcher_name?(name); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#162 + def replaceable_matcher?(matcher); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#255 + def replacement_matcher(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#237 + def to_predicate_method(matcher); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#171 + def uncorrectable_matcher?(node, matcher); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#127 +RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#125 +RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String) + +# Help methods for file. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#7 +module RuboCop::Cop::RSpec::FileHelp + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#8 + def expanded_file_path; end +end + +# Helps find the true end location of nodes which might contain heredocs. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#7 +module RuboCop::Cop::RSpec::FinalEndLocation + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#8 + def final_end_location(start_node); end +end + +# Checks if examples are focused. +# +# This cop does not support autocorrection in some cases. +# +# @example +# # bad +# describe MyClass, focus: true do +# end +# +# describe MyClass, :focus do +# end +# +# fdescribe MyClass do +# end +# +# # good +# describe MyClass do +# end +# +# # bad +# fdescribe 'test' do; end +# +# # good +# describe 'test' do; end +# +# # bad +# fdescribe 'test' do; end +# +# # good +# describe 'test' do; end +# +# # bad +# shared_examples 'test', focus: true do; end +# +# # good +# shared_examples 'test' do; end +# +# # bad +# shared_context 'test', focus: true do; end +# +# # good +# shared_context 'test' do; end +# +# # bad (does not support autocorrection) +# focus 'test' do; end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#52 +class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#59 + def focusable_selector?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#77 + def focused_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#71 + def metadata(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#81 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#110 + def correct_send(corrector, focus); end + + # @yield [node] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#97 + def focus_metadata(node, &block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#103 + def with_surrounding(focus); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#56 +RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String) + +# Checks the arguments passed to `before`, `around`, and `after`. +# +# This cop checks for consistent style when specifying RSpec +# hooks which run for each example. There are three supported +# styles: "implicit", "each", and "example." All styles have +# the same behavior. +# +# @example `EnforcedStyle: implicit` (default) +# # bad +# before(:each) do +# # ... +# end +# +# # bad +# before(:example) do +# # ... +# end +# +# # good +# before do +# # ... +# end +# @example `EnforcedStyle: each` +# # bad +# before(:example) do +# # ... +# end +# +# # bad +# before do +# # ... +# end +# +# # good +# before(:each) do +# # ... +# end +# @example `EnforcedStyle: example` +# # bad +# before(:each) do +# # ... +# end +# +# # bad +# before do +# # ... +# end +# +# # good +# before(:example) do +# # ... +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#61 +class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 + def on_numblock(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#69 + def scoped_hook(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#74 + def unscoped_hook(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#95 + def autocorrect(corrector, _node, method_send); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#102 + def check_implicit(method_send); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#116 + def explicit_message(scope); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#128 + def hook(node, &block); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#124 + def implicit_style?; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#66 +RuboCop::Cop::RSpec::HookArgument::EXPLICIT_MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#65 +RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String) + +# Checks for before/around/after hooks that come after an example. +# +# @example +# # bad +# it 'checks what foo does' do +# expect(foo).to be +# end +# +# before { prepare } +# after { clean_up } +# +# # good +# before { prepare } +# after { clean_up } +# +# it 'checks what foo does' do +# expect(foo).to be +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#25 +class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#31 + def example_or_group?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#41 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#41 + def on_numblock(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#73 + def autocorrect(corrector, node, first_example); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#55 + def check_hooks(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#69 + def find_first_example(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#51 + def multiline_block?(block); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#28 +RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String) + +# Checks for equality assertions with identical expressions on both sides. +# +# @example +# # bad +# expect(foo.bar).to eq(foo.bar) +# expect(foo.bar).to eql(foo.bar) +# +# # good +# expect(foo.bar).to eq(2) +# expect(foo.bar).to eql(2) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#17 +class RuboCop::Cop::RSpec::IdenticalEqualityAssertion < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#23 + def equality_check?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#29 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#18 +RuboCop::Cop::RSpec::IdenticalEqualityAssertion::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#20 +RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check that implicit block expectation syntax is not used. +# +# Prefer using explicit block expectations. +# +# @example +# # bad +# subject { -> { do_something } } +# it { is_expected.to change(something).to(new_value) } +# +# # good +# it 'changes something to a new value' do +# expect { do_something }.to change(something).to(new_value) +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#20 +class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#36 + def implicit_expect(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#25 + def lambda?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#33 + def lambda_subject?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#40 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#62 + def find_subject(block_node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#58 + def multi_statement_example_group?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#49 + def nearest_subject(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#21 +RuboCop::Cop::RSpec::ImplicitBlockExpectation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#22 +RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check that a consistent implicit expectation style is used. +# +# This cop can be configured using the `EnforcedStyle` option +# and supports the `--auto-gen-config` flag. +# +# @example `EnforcedStyle: is_expected` (default) +# # bad +# it { should be_truthy } +# +# # good +# it { is_expected.to be_truthy } +# @example `EnforcedStyle: should` +# # bad +# it { is_expected.to be_truthy } +# +# # good +# it { should be_truthy } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#25 +class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#34 + def implicit_expect(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#49 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#78 + def is_expected_range(source_map); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#69 + def offending_expect(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#86 + def offense_message(offending_source); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#94 + def replacement_source(offending_source); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#47 +RuboCop::Cop::RSpec::ImplicitExpect::ENFORCED_REPLACEMENTS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#29 +RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#31 +RuboCop::Cop::RSpec::ImplicitExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for usage of implicit subject (`is_expected` / `should`). +# +# This cop can be configured using the `EnforcedStyle` option +# +# @example `EnforcedStyle: single_line_only` (default) +# # bad +# it do +# is_expected.to be_truthy +# end +# +# # good +# it { is_expected.to be_truthy } +# it do +# expect(subject).to be_truthy +# end +# @example `EnforcedStyle: single_statement_only` +# # bad +# it do +# foo = 1 +# is_expected.to be_truthy +# end +# +# # good +# it do +# foo = 1 +# expect(subject).to be_truthy +# end +# it do +# is_expected.to be_truthy +# end +# @example `EnforcedStyle: disallow` +# # bad +# it { is_expected.to be_truthy } +# +# # good +# it { expect(subject).to be_truthy } +# @example `EnforcedStyle: require_implicit` +# # bad +# it { expect(subject).to be_truthy } +# +# # good +# it { is_expected.to be_truthy } +# +# # bad +# it do +# expect(subject).to be_truthy +# end +# +# # good +# it do +# is_expected.to be_truthy +# end +# +# # good +# it { expect(named_subject).to be_truthy } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#65 +class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#81 + def explicit_unnamed_subject?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#86 + def implicit_subject?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#90 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#100 + def autocorrect(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#159 + def example_of(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#135 + def implicit_subject_in_non_its?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#139 + def implicit_subject_in_non_its_and_non_single_line?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#143 + def implicit_subject_in_non_its_and_non_single_statement?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#122 + def invalid?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#147 + def its?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#113 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#151 + def single_line?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#155 + def single_statement?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#69 +RuboCop::Cop::RSpec::ImplicitSubject::MSG_REQUIRE_EXPLICIT = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#71 +RuboCop::Cop::RSpec::ImplicitSubject::MSG_REQUIRE_IMPLICIT = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#73 +RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Do not set up test data using indexes (e.g., `item_1`, `item_2`). +# +# It makes reading the test harder because it's not clear what exactly +# is tested by this particular example. +# +# The configurable options `AllowedIdentifiers` and `AllowedPatterns` +# will also read those set in `Naming/VariableNumber`. +# +# @example `Max: 1 (default)` +# # bad +# let(:item_1) { create(:item) } +# let(:item_2) { create(:item) } +# +# let(:item1) { create(:item) } +# let(:item2) { create(:item) } +# +# # good +# +# let(:visible_item) { create(:item, visible: true) } +# let(:invisible_item) { create(:item, visible: false) } +# @example `Max: 2` +# # bad +# let(:item_1) { create(:item) } +# let(:item_2) { create(:item) } +# let(:item_3) { create(:item) } +# +# # good +# let(:item_1) { create(:item) } +# let(:item_2) { create(:item) } +# @example `AllowedIdentifiers: ['item_1', 'item_2']` +# # good +# let(:item_1) { create(:item) } +# let(:item_2) { create(:item) } +# @example `AllowedPatterns: ['item']` +# # good +# let(:item_1) { create(:item) } +# let(:item_2) { create(:item) } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#47 +class RuboCop::Cop::RSpec::IndexedLet < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::AllowedIdentifiers + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#55 + def let_name(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#62 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#104 + def allowed_identifiers; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#98 + def cop_config_patterns_values; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#78 + def filter_indexed_lets(candidates); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#87 + def indexed_let?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#94 + def let_name_stripped_index(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#76 +RuboCop::Cop::RSpec::IndexedLet::INDEX_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#51 +RuboCop::Cop::RSpec::IndexedLet::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#75 +RuboCop::Cop::RSpec::IndexedLet::SUFFIX_INDEX_REGEX = T.let(T.unsafe(nil), Regexp) + +# A helper for `inflected` style +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#7 +module RuboCop::Cop::RSpec::InflectedHelper + include ::RuboCop::RSpec::Language + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#39 + def be_bool?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#44 + def be_boolthy?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#29 + def predicate_in_actual?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#48 + def boolean_matcher?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#16 + def check_inflected(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#60 + def message_inflected(predicate); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#56 + def predicate?(sym); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#85 + def remove_predicate(corrector, predicate); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#96 + def rewrite_matcher(corrector, predicate, matcher); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#67 + def to_predicate_matcher(name); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#107 + def true?(to_symbol, matcher); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#11 +RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String) + +# Helps you identify whether a given node +# is within an example group or not. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#8 +module RuboCop::Cop::RSpec::InsideExampleGroup + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#19 + def example_group_root?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#23 + def example_group_root_with_siblings?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#11 + def inside_example_group?(node); end +end + +# Checks for `instance_double` used with `have_received`. +# +# @example +# # bad +# it do +# foo = instance_double(Foo).as_null_object +# expect(foo).to have_received(:bar) +# end +# +# # good +# it do +# foo = instance_spy(Foo) +# expect(foo).to have_received(:bar) +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#21 +class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#36 + def have_received_usage(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#28 + def null_double(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#45 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#61 + def autocorrect(corrector, node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#24 +RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String) + +# Checks for instance variable usage in specs. +# +# This cop can be configured with the option `AssignmentOnly` which +# will configure the cop to only register offenses on instance +# variable usage if the instance variable is also assigned within +# the spec +# +# @example +# # bad +# describe MyClass do +# before { @foo = [] } +# it { expect(@foo).to be_empty } +# end +# +# # good +# describe MyClass do +# let(:foo) { [] } +# it { expect(foo).to be_empty } +# end +# @example with AssignmentOnly configuration +# # rubocop.yml +# # RSpec/InstanceVariable: +# # AssignmentOnly: true +# +# # bad +# describe MyClass do +# before { @foo = [] } +# it { expect(@foo).to be_empty } +# end +# +# # allowed +# describe MyClass do +# it { expect(@foo).to be_empty } +# end +# +# # good +# describe MyClass do +# let(:foo) { [] } +# it { expect(foo).to be_empty } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#48 +class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#60 + def custom_matcher?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#55 + def dynamic_class?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#71 + def ivar_assigned?(param0, param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#68 + def ivar_usage(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#73 + def on_top_level_group(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#90 + def assignment_only?; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#84 + def valid_usage?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#51 +RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String) + +# Check for `specify` with `is_expected` and one-liner expectations. +# +# @example +# # bad +# specify { is_expected.to be_truthy } +# +# # good +# it { is_expected.to be_truthy } +# +# # good +# specify do +# # ... +# end +# specify { expect(sqrt(4)).to eq(2) } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#21 +class RuboCop::Cop::RSpec::IsExpectedSpecify < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#29 + def offense?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#33 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#25 +RuboCop::Cop::RSpec::IsExpectedSpecify::IS_EXPECTED_METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#26 +RuboCop::Cop::RSpec::IsExpectedSpecify::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#24 +RuboCop::Cop::RSpec::IsExpectedSpecify::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that only one `it_behaves_like` style is used. +# +# @example `EnforcedStyle: it_behaves_like` (default) +# # bad +# it_should_behave_like 'a foo' +# +# # good +# it_behaves_like 'a foo' +# @example `EnforcedStyle: it_should_behave_like` +# # bad +# it_behaves_like 'a foo' +# +# # good +# it_should_behave_like 'a foo' +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#22 +class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#31 + def example_inclusion_offense(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#33 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#43 + def message(_node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#26 +RuboCop::Cop::RSpec::ItBehavesLike::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#28 +RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check that `all` matcher is used instead of iterating over an array. +# +# @example +# # bad +# it 'validates users' do +# [user1, user2, user3].each { |user| expect(user).to be_valid } +# end +# +# # good +# it 'validates users' do +# expect([user1, user2, user3]).to all(be_valid) +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#19 +class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#24 + def each?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#33 + def each_numblock?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#40 + def expectation?(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#44 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#52 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#66 + def only_expectations?(body, arg); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#62 + def single_expectation?(body, arg); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#20 +RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String) + +# Enforce that subject is the first definition in the test. +# +# @example +# # bad +# let(:params) { blah } +# subject { described_class.new(params) } +# +# before { do_something } +# subject { described_class.new(params) } +# +# it { expect_something } +# subject { described_class.new(params) } +# it { expect_something_else } +# +# # good +# subject { described_class.new(params) } +# let(:params) { blah } +# +# # good +# subject { described_class.new(params) } +# before { do_something } +# +# # good +# subject { described_class.new(params) } +# it { expect_something } +# it { expect_something_else } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#34 +class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::InsideExampleGroup + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#40 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#70 + def autocorrect(corrector, node, sibling); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#49 + def check_previous_nodes(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#76 + def offending?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#58 + def offending_node(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#66 + def parent(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#38 +RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String) + +# Checks that no class, module, or constant is declared. +# +# Constants, including classes and modules, when declared in a block +# scope, are defined in global namespace, and leak between examples. +# +# If several examples may define a `DummyClass`, instead of being a +# blank slate class as it will be in the first example, subsequent +# examples will be reopening it and modifying its behavior in +# unpredictable ways. +# Even worse when a class that exists in the codebase is reopened. +# +# Anonymous classes are fine, since they don't result in global +# namespace name clashes. +# +# @example Constants leak between examples +# # bad +# describe SomeClass do +# OtherClass = Struct.new +# CONSTANT_HERE = 'I leak into global namespace' +# end +# +# # good +# describe SomeClass do +# before do +# stub_const('OtherClass', Struct.new) +# stub_const('CONSTANT_HERE', 'I only exist during this example') +# end +# end +# @example +# # bad +# describe SomeClass do +# class FooClass < described_class +# def double_that +# some_base_method * 2 +# end +# end +# +# it { expect(FooClass.new.double_that).to eq(4) } +# end +# +# # good - anonymous class, no constant needs to be defined +# describe SomeClass do +# let(:foo_class) do +# Class.new(described_class) do +# def double_that +# some_base_method * 2 +# end +# end +# end +# +# it { expect(foo_class.new.double_that).to eq(4) } +# end +# +# # good - constant is stubbed +# describe SomeClass do +# before do +# foo_class = Class.new(described_class) do +# def do_something +# end +# end +# stub_const('FooClass', foo_class) +# end +# +# it { expect(FooClass.new.double_that).to eq(4) } +# end +# @example +# # bad +# describe SomeClass do +# module SomeModule +# class SomeClass +# def do_something +# end +# end +# end +# end +# +# # good +# describe SomeClass do +# before do +# foo_class = Class.new(described_class) do +# def do_something +# end +# end +# stub_const('SomeModule::SomeClass', foo_class) +# end +# end +# @see https://rspec.info/features/3-12/rspec-mocks/mutating-constants +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#96 +class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#101 + def on_casgn(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#107 + def on_class(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#113 + def on_module(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#121 + def inside_describe_block?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#98 +RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CLASS = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#97 +RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#99 +RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String) + +# Checks for `let` definitions that come after an example. +# +# @example +# # bad +# let(:foo) { bar } +# +# it 'checks what foo does' do +# expect(foo).to be +# end +# +# let(:some) { other } +# +# it 'checks what some does' do +# expect(some).to be +# end +# +# # good +# let(:foo) { bar } +# let(:some) { other } +# +# it 'checks what foo does' do +# expect(foo).to be +# end +# +# it 'checks what some does' do +# expect(some).to be +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#33 +class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#39 + def example_or_group?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#47 + def include_examples?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#58 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#93 + def autocorrect(corrector, node, first_example); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#74 + def check_let_declarations(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#66 + def example_group_with_include_examples?(body); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#89 + def find_first_example(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#70 + def multiline_block?(block); end + + class << self + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#54 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#36 +RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String) + +# Checks unreferenced `let!` calls being used for test setup. +# +# @example +# # bad +# let!(:my_widget) { create(:widget) } +# +# it 'counts widgets' do +# expect(Widget.count).to eq(1) +# end +# +# # good +# it 'counts widgets' do +# create(:widget) +# expect(Widget.count).to eq(1) +# end +# +# # good +# before { create(:widget) } +# +# it 'counts widgets' do +# expect(Widget.count).to eq(1) +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#28 +class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#32 + def example_or_shared_group_or_including?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#40 + def let_bang(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#48 + def method_called?(param0, param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#50 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#66 + def child_let_bang(node, &block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#60 + def unused_let_bang(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#29 +RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String) + +# Helper methods to location. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#7 +module RuboCop::Cop::RSpec::LocationHelp + private + + # @example + # foo 1, 2 + # ^^^^^ + # @param node [RuboCop::AST::SendNode] + # @return [Parser::Source::Range] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#15 + def arguments_with_whitespace(node); end + + # @example + # foo { bar } + # ^^^^^^^^ + # @param node [RuboCop::AST::SendNode] + # @return [Parser::Source::Range] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#26 + def block_with_whitespace(node); end + + class << self + # @example + # foo 1, 2 + # ^^^^^ + # @param node [RuboCop::AST::SendNode] + # @return [Parser::Source::Range] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#15 + def arguments_with_whitespace(node); end + + # @example + # foo { bar } + # ^^^^^^^^ + # @param node [RuboCop::AST::SendNode] + # @return [Parser::Source::Range] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#26 + def block_with_whitespace(node); end + end +end + +# Checks where `match_array` is used. +# +# This cop checks for the following: +# - Prefer `contain_exactly` when matching an array with values. +# - Prefer `eq` when using `match_array` with an empty array literal. +# +# @example +# # bad +# it { is_expected.to match_array([content1, content2]) } +# +# # good +# it { is_expected.to contain_exactly(content1, content2) } +# +# # good +# it { is_expected.to match_array([content] + array) } +# +# # good +# it { is_expected.to match_array(%w(tremble in fear foolish mortals)) } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#25 +class RuboCop::Cop::RSpec::MatchArray < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#32 + def match_array_with_empty_array?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#36 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#45 + def check_populated_array(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#28 +RuboCop::Cop::RSpec::MatchArray::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#29 +RuboCop::Cop::RSpec::MatchArray::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check that chains of messages are not being stubbed. +# +# @example +# # bad +# allow(foo).to receive_message_chain(:bar, :baz).and_return(42) +# +# # good +# thing = Thing.new(baz: 42) +# allow(foo).to receive(:bar).and_return(thing) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#16 +class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#20 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#17 +RuboCop::Cop::RSpec::MessageChain::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#18 +RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for consistent message expectation style. +# +# This cop can be configured in your configuration using the +# `EnforcedStyle` option and supports `--auto-gen-config`. +# +# @example `EnforcedStyle: allow` (default) +# +# # bad +# expect(foo).to receive(:bar) +# +# # good +# allow(foo).to receive(:bar) +# @example `EnforcedStyle: expect` +# +# # bad +# allow(foo).to receive(:bar) +# +# # good +# expect(foo).to receive(:bar) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#27 +class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#35 + def message_expectation(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#42 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#40 + def receive_message?(param0); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#55 + def preferred_style?(expectation); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#30 +RuboCop::Cop::RSpec::MessageExpectation::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#32 +RuboCop::Cop::RSpec::MessageExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that message expectations are set using spies. +# +# This cop can be configured in your configuration using the +# `EnforcedStyle` option and supports `--auto-gen-config`. +# +# @example `EnforcedStyle: have_received` (default) +# +# # bad +# expect(foo).to receive(:bar) +# do_something +# +# # good +# allow(foo).to receive(:bar) # or use instance_spy +# do_something +# expect(foo).to have_received(:bar) +# @example `EnforcedStyle: receive` +# +# # bad +# allow(foo).to receive(:bar) +# do_something +# expect(foo).to have_received(:bar) +# +# # good +# expect(foo).to receive(:bar) +# do_something +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#33 +class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#45 + def message_expectation(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#54 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#50 + def receive_message(param0); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#77 + def error_message(receiver); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#73 + def preferred_style?(expectation); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#67 + def receive_message_matcher(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#38 +RuboCop::Cop::RSpec::MessageSpies::MSG_HAVE_RECEIVED = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#36 +RuboCop::Cop::RSpec::MessageSpies::MSG_RECEIVE = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#42 +RuboCop::Cop::RSpec::MessageSpies::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Helper methods to find RSpec metadata. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#7 +module RuboCop::Cop::RSpec::Metadata + include ::RuboCop::RSpec::Language + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#26 + def metadata_in_block(param0, param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#30 + def on_block(node); end + + # @raise [::NotImplementedError] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#43 + def on_metadata(_symbols, _hash); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#30 + def on_numblock(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#21 + def rspec_configure(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#13 + def rspec_metadata(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#49 + def on_metadata_arguments(metadata_arguments); end +end + +# Use consistent metadata style. +# +# This cop does not support autocorrection in the case of +# `EnforcedStyle: hash` where the trailing metadata type is ambiguous. +# (e.g. `describe 'Something', :a, b`) +# +# @example EnforcedStyle: symbol (default) +# # bad +# describe 'Something', a: true +# +# # good +# describe 'Something', :a +# @example EnforcedStyle: hash +# # bad +# describe 'Something', :a +# +# # good +# describe 'Something', a: true +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#25 +class RuboCop::Cop::RSpec::MetadataStyle < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RSpec::Metadata + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#33 + def extract_metadata_hash(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#43 + def match_ambiguous_trailing_metadata?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#38 + def match_boolean_metadata_pair?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#47 + def on_metadata(symbols, hash); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#66 + def autocorrect_pair(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#71 + def autocorrect_symbol(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#78 + def bad_metadata_pair?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#82 + def bad_metadata_symbol?(_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#86 + def format_symbol_to_pair_source(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#90 + def insert_pair(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#101 + def insert_pair_as_last_argument(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#110 + def insert_pair_to_empty_hash_metadata(corrector, node, hash_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#117 + def insert_pair_to_non_empty_hash_metadata(corrector, node, hash_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#124 + def insert_symbol(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#131 + def message_for_style; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#138 + def on_metadata_pair(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#146 + def on_metadata_symbol(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#154 + def remove_pair(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#164 + def remove_pair_following(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#176 + def remove_pair_preceding(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#188 + def remove_symbol(corrector, node); end +end + +# Checks that the first argument to an example group is not empty. +# +# @example +# # bad +# describe do +# end +# +# RSpec.describe do +# end +# +# # good +# describe TestedClass do +# end +# +# describe "A feature example" do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#23 +class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#26 + def on_block(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#24 +RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String) + +# Checks if `.to`, `not_to` or `to_not` are used. +# +# The RSpec::Expectations::ExpectationTarget must use `to`, `not_to` or +# `to_not` to run. Therefore, this cop checks if other methods are used. +# +# @example +# # bad +# expect(something).kind_of? Foo +# is_expected == 42 +# expect{something}.eq? BarError +# +# # good +# expect(something).to be_a Foo +# is_expected.to eq 42 +# expect{something}.to raise_error BarError +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#22 +class RuboCop::Cop::RSpec::MissingExpectationTargetMethod < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#27 + def expect?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#35 + def expect_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#40 + def expectation_without_runner?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#44 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#23 +RuboCop::Cop::RSpec::MissingExpectationTargetMethod::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#24 +RuboCop::Cop::RSpec::MissingExpectationTargetMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for multiple top-level example groups. +# +# Multiple descriptions for the same class or module should either +# be nested or separated into different test files. +# +# @example +# # bad +# describe MyClass, '.do_something' do +# end +# describe MyClass, '.do_something_else' do +# end +# +# # good +# describe MyClass do +# describe '.do_something' do +# end +# describe '.do_something_else' do +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#26 +class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#31 + def on_top_level_group(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#29 +RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) + +# Checks if examples contain too many `expect` calls. +# +# This cop is configurable using the `Max` option +# and works with `--auto-gen-config`. +# +# @example +# # bad +# describe UserCreator do +# it 'builds a user' do +# expect(user.name).to eq("John") +# expect(user.age).to eq(22) +# end +# end +# +# # good +# describe UserCreator do +# it 'sets the users name' do +# expect(user.name).to eq("John") +# end +# +# it 'sets the users age' do +# expect(user.age).to eq(22) +# end +# end +# @example `aggregate_failures: true` (default) +# # good - the cop ignores when RSpec aggregates failures +# describe UserCreator do +# it 'builds a user', :aggregate_failures do +# expect(user.name).to eq("John") +# expect(user.age).to eq(22) +# end +# end +# @example `aggregate_failures: false` +# # Detected as an offense +# describe UserCreator do +# it 'builds a user', aggregate_failures: false do +# expect(user.name).to eq("John") +# expect(user.age).to eq(22) +# end +# end +# @example `Max: 1` (default) +# # bad +# describe UserCreator do +# it 'builds a user' do +# expect(user.name).to eq("John") +# expect(user.age).to eq(22) +# end +# end +# @example `Max: 2` +# # good +# describe UserCreator do +# it 'builds a user' do +# expect(user.name).to eq("John") +# expect(user.age).to eq(22) +# end +# end +# @see http://betterspecs.org/#single Single expectation test +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#69 +class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#78 + def aggregate_failures?(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#89 + def aggregate_failures_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#86 + def expect?(param0 = T.unsafe(nil)); end + + # source://rubocop/1.65.1/lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#93 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#109 + def example_with_aggregate_failures?(example_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#116 + def find_aggregate_failures(example_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#121 + def find_expectation(node, &block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#132 + def flag_example(node, expectation_count:); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#143 + def max_expectations; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#72 +RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#70 +RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#73 +RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc) + +# Checks if example groups contain too many `let` and `subject` calls. +# +# This cop is configurable using the `Max` option and the `AllowSubject` +# which will configure the cop to only register offenses on calls to +# `let` and not calls to `subject`. +# +# @example +# # bad +# describe MyClass do +# let(:foo) { [] } +# let(:bar) { [] } +# let!(:baz) { [] } +# let(:qux) { [] } +# let(:quux) { [] } +# let(:quuz) { {} } +# end +# +# describe MyClass do +# let(:foo) { [] } +# let(:bar) { [] } +# let!(:baz) { [] } +# +# context 'when stuff' do +# let(:qux) { [] } +# let(:quux) { [] } +# let(:quuz) { {} } +# end +# end +# +# # good +# describe MyClass do +# let(:bar) { [] } +# let!(:baz) { [] } +# let(:qux) { [] } +# let(:quux) { [] } +# let(:quuz) { {} } +# end +# +# describe MyClass do +# context 'when stuff' do +# let(:foo) { [] } +# let(:bar) { [] } +# let!(:booger) { [] } +# end +# +# context 'when other stuff' do +# let(:qux) { [] } +# let(:quux) { [] } +# let(:quuz) { {} } +# end +# end +# @example when disabling AllowSubject configuration +# # rubocop.yml +# # RSpec/MultipleMemoizedHelpers: +# # AllowSubject: false +# +# # bad - `subject` counts towards memoized helpers +# describe MyClass do +# subject { {} } +# let(:foo) { [] } +# let(:bar) { [] } +# let!(:baz) { [] } +# let(:qux) { [] } +# let(:quux) { [] } +# end +# @example with Max configuration +# # rubocop.yml +# # RSpec/MultipleMemoizedHelpers: +# # Max: 1 +# +# # bad +# describe MyClass do +# let(:foo) { [] } +# let(:bar) { [] } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#84 +class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::Variable + + # source://rubocop/1.65.1/lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 + def on_new_investigation; end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 + def all_helpers(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 + def allow_subject?; end + + # Returns the value of attribute example_group_memoized_helpers. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 + def example_group_memoized_helpers; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 + def helpers(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 + def max; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 + def variable_nodes(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#87 +RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String) + +# Checks if an example group defines `subject` multiple times. +# +# This cop does not support autocorrection in some cases. +# The autocorrect behavior for this cop depends on the type of +# duplication: +# +# - If multiple named subjects are defined then this probably indicates +# that the overwritten subjects (all subjects except the last +# definition) are effectively being used to define helpers. In this +# case they are replaced with `let`. +# +# - If multiple unnamed subjects are defined though then this can *only* +# be dead code and we remove the overwritten subject definitions. +# +# - If subjects are defined with `subject!` then we don't autocorrect. +# This is enough of an edge case that people can just move this to +# a `before` hook on their own +# +# @example +# # bad +# describe Foo do +# subject(:user) { User.new } +# subject(:post) { Post.new } +# end +# +# # good +# describe Foo do +# let(:user) { User.new } +# subject(:post) { Post.new } +# end +# +# # bad (does not support autocorrection) +# describe Foo do +# subject!(:user) { User.new } +# subject!(:post) { Post.new } +# end +# +# # good +# describe Foo do +# before do +# User.new +# Post.new +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#51 +class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#57 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#71 + def autocorrect(corrector, subject); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#81 + def named_subject?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#89 + def remove_autocorrect(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#85 + def rename_autocorrect(corrector, node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#55 +RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) + +# Checks for explicitly referenced test subjects. +# +# RSpec lets you declare an "implicit subject" using `subject { ... }` +# which allows for tests like `it { is_expected.to be_valid }`. +# If you need to reference your test subject you should explicitly +# name it using `subject(:your_subject_name) { ... }`. Your test subjects +# should be the most important object in your tests so they deserve +# a descriptive name. +# +# This cop can be configured in your configuration using `EnforcedStyle`, +# and `IgnoreSharedExamples` which will not report offenses for implicit +# subjects in shared example groups. +# +# @example `EnforcedStyle: always` (default) +# # bad +# RSpec.describe User do +# subject { described_class.new } +# +# it 'is valid' do +# expect(subject.valid?).to be(true) +# end +# end +# +# # good +# RSpec.describe User do +# subject(:user) { described_class.new } +# +# it 'is valid' do +# expect(user.valid?).to be(true) +# end +# end +# +# # also good +# RSpec.describe User do +# subject(:user) { described_class.new } +# +# it { is_expected.to be_valid } +# end +# @example `EnforcedStyle: named_only` +# # bad +# RSpec.describe User do +# subject(:user) { described_class.new } +# +# it 'is valid' do +# expect(subject.valid?).to be(true) +# end +# end +# +# # good +# RSpec.describe User do +# subject(:user) { described_class.new } +# +# it 'is valid' do +# expect(user.valid?).to be(true) +# end +# end +# +# # also good +# RSpec.describe User do +# subject { described_class.new } +# +# it { is_expected.to be_valid } +# end +# +# # acceptable +# RSpec.describe User do +# subject { described_class.new } +# +# it 'is valid' do +# expect(subject.valid?).to be(true) +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#79 +class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#85 + def example_or_hook_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#97 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#90 + def shared_example?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#95 + def subject_usage(param0); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#123 + def allow_explicit_subject?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#127 + def always?; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#117 + def check_explicit_subject(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#150 + def find_subject(block_node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#109 + def ignored_shared_example?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#131 + def named_only?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#142 + def nearest_subject(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#136 + def subject_definition_is_named?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#82 +RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String) + +# Helps to find namespace of the node. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/namespace.rb#7 +module RuboCop::Cop::RSpec::Namespace + private + + # @example + # namespace(node) # => ['A', 'B', 'C'] + # @param node [RuboCop::AST::Node] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/namespace.rb#14 + def namespace(node); end +end + +# Checks for nested example groups. +# +# This cop is configurable using the `Max` option +# and supports `--auto-gen-config`. +# +# @example +# # bad +# context 'when using some feature' do +# let(:some) { :various } +# let(:feature) { :setup } +# +# context 'when user is signed in' do # flagged by rubocop +# let(:user) do +# UserCreate.call(user_attributes) +# end +# +# let(:user_attributes) do +# { +# name: 'John', +# age: 22, +# role: role +# } +# end +# +# context 'when user is an admin' do # flagged by rubocop +# let(:role) { 'admin' } +# +# it 'blah blah' +# it 'yada yada' +# end +# end +# end +# +# # good +# context 'using some feature as an admin' do +# let(:some) { :various } +# let(:feature) { :setup } +# +# let(:user) do +# UserCreate.call( +# name: 'John', +# age: 22, +# role: 'admin' +# ) +# end +# +# it 'blah blah' +# it 'yada yada' +# end +# @example `Max: 3` (default) +# # bad +# describe Foo do +# context 'foo' do +# context 'bar' do +# context 'baz' do # flagged by rubocop +# end +# end +# end +# end +# @example `Max: 2` +# # bad +# describe Foo do +# context 'foo' do +# context 'bar' do # flagged by rubocop +# context 'baz' do # flagged by rubocop +# end +# end +# end +# end +# @example `AllowedGroups: [] (default)` +# describe Foo do # <-- nested groups 1 +# context 'foo' do # <-- nested groups 2 +# context 'bar' do # <-- nested groups 3 +# end +# end +# end +# @example `AllowedGroups: [path]` +# describe Foo do # <-- nested groups 1 +# path '/foo' do # <-- nested groups 1 (not counted) +# context 'bar' do # <-- nested groups 2 +# end +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#94 +class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + + # source://rubocop/1.65.1/lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#107 + def on_top_level_group(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#157 + def allowed_groups; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#134 + def count_up_nesting?(node, example_group); end + + # @yield [node, nesting] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#119 + def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#144 + def max_nesting; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#148 + def max_nesting_config; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#140 + def message(nesting); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#99 +RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#101 +RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#97 +RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String) + +# Checks if an example contains any expectation. +# +# All RSpec's example and expectation methods are covered by default. +# If you are using your own custom methods, +# add the following configuration: +# +# RSpec: +# Language: +# Examples: +# Regular: +# - custom_it +# Expectations: +# - custom_expect +# +# This cop can be customized with an allowed expectation methods pattern +# with an `AllowedPatterns` option. ^expect_ and ^assert_ are allowed +# by default. +# +# @example +# # bad +# it do +# a? +# end +# +# # good +# it do +# expect(a?).to be(true) +# end +# @example `AllowedPatterns` configuration +# +# # .rubocop.yml +# # RSpec/NoExpectationExample: +# # AllowedPatterns: +# # - ^expect_ +# # - ^assert_ +# @example +# # bad +# it do +# not_expect_something +# end +# +# # good +# it do +# expect_something +# end +# +# it do +# assert_something +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#58 +class RuboCop::Cop::RSpec::NoExpectationExample < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::RSpec::SkipOrPending + + # @param node [RuboCop::AST::Node] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#74 + def includes_expectation?(param0); end + + # @param node [RuboCop::AST::Node] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#84 + def includes_skip_example?(param0); end + + # @param node [RuboCop::AST::BlockNode] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#89 + def on_block(node); end + + # @param node [RuboCop::AST::BlockNode] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#89 + def on_numblock(node); end + + # @param node [RuboCop::AST::Node] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#67 + def regular_or_focused_example?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#62 +RuboCop::Cop::RSpec::NoExpectationExample::MSG = T.let(T.unsafe(nil), String) + +# Checks for consistent method usage for negating expectations. +# +# @example `EnforcedStyle: not_to` (default) +# # bad +# it '...' do +# expect(false).to_not be_true +# end +# +# # good +# it '...' do +# expect(false).not_to be_true +# end +# @example `EnforcedStyle: to_not` +# # bad +# it '...' do +# expect(false).not_to be_true +# end +# +# # good +# it '...' do +# expect(false).to_not be_true +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#30 +class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#38 + def not_to_not_offense(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#40 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#50 + def message(_node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#34 +RuboCop::Cop::RSpec::NotToNot::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#35 +RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks if there is a let/subject that overwrites an existing one. +# +# @example +# # bad +# let(:foo) { bar } +# let(:foo) { baz } +# +# subject(:foo) { bar } +# let(:foo) { baz } +# +# let(:foo) { bar } +# let!(:foo) { baz } +# +# # good +# subject(:test) { something } +# let(:foo) { bar } +# let(:baz) { baz } +# let!(:other) { other } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#25 +class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#34 + def first_argument_name(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#36 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#29 + def setup?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#64 + def common_setup?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#49 + def find_duplicates(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#26 +RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String) + +# Checks for any pending or skipped examples. +# +# @example +# # bad +# describe MyClass do +# it "should be true" +# end +# +# describe MyClass do +# it "should be true", skip: true do +# expect(1).to eq(2) +# end +# end +# +# describe MyClass do +# it "should be true" do +# pending +# end +# end +# +# describe MyClass do +# xit "should be true" do +# end +# end +# +# # good +# describe MyClass do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#35 +class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::SkipOrPending + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#61 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#54 + def pending_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#41 + def skippable?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#49 + def skippable_example?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#69 + def skipped?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#74 + def skipped_regular_example_without_body?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#38 +RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String) + +# Checks for pending or skipped examples without reason. +# +# @example +# # bad +# pending 'does something' do +# end +# +# # bad +# it 'does something', :pending do +# end +# +# # bad +# it 'does something' do +# pending +# end +# +# # bad +# xdescribe 'something' do +# end +# +# # bad +# skip 'does something' do +# end +# +# # bad +# it 'does something', :skip do +# end +# +# # bad +# it 'does something' do +# skip +# end +# +# # bad +# it 'does something' +# +# # good +# it 'does something' do +# pending 'reason' +# end +# +# # good +# it 'does something' do +# skip 'reason' +# end +# +# # good +# it 'does something', pending: 'reason' do +# end +# +# # good +# it 'does something', skip: 'reason' do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#59 +class RuboCop::Cop::RSpec::PendingWithoutReason < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#82 + def metadata_without_reason?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#102 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#98 + def pending_step_without_reason?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#93 + def skipped_by_example_group_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#72 + def skipped_by_example_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#77 + def skipped_by_example_method_with_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#63 + def skipped_in_example?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#123 + def block_node_example_group?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#135 + def on_pending_by_metadata(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#151 + def on_skipped_by_example_group_method(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#141 + def on_skipped_by_example_method(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#129 + def on_skipped_by_in_example_method(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#116 + def parent_node(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#60 +RuboCop::Cop::RSpec::PendingWithoutReason::MSG = T.let(T.unsafe(nil), String) + +# Prefer using predicate matcher over using predicate method directly. +# +# RSpec defines magic matchers for predicate methods. +# This cop recommends to use the predicate matcher instead of using +# predicate method directly. +# +# @example Strict: true, EnforcedStyle: inflected (default) +# # bad +# expect(foo.something?).to be_truthy +# +# # good +# expect(foo).to be_something +# +# # also good - It checks "true" strictly. +# expect(foo.something?).to be(true) +# @example Strict: false, EnforcedStyle: inflected +# # bad +# expect(foo.something?).to be_truthy +# expect(foo.something?).to be(true) +# +# # good +# expect(foo).to be_something +# @example Strict: true, EnforcedStyle: explicit +# # bad +# expect(foo).to be_something +# +# # good - the above code is rewritten to it by this cop +# expect(foo.something?).to be(true) +# +# # bad - no autocorrect +# expect(foo) +# .to be_something(<<~TEXT) +# bar +# TEXT +# +# # good +# expect(foo.something?(<<~TEXT)).to be(true) +# bar +# TEXT +# @example Strict: false, EnforcedStyle: explicit +# # bad +# expect(foo).to be_something +# +# # good - the above code is rewritten to it by this cop +# expect(foo.something?).to be_truthy +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#318 +class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RSpec::InflectedHelper + include ::RuboCop::Cop::RSpec::ExplicitHelper + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#335 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#326 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#324 +RuboCop::Cop::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check for `once` and `twice` receive counts matchers usage. +# +# @example +# # bad +# expect(foo).to receive(:bar).exactly(1).times +# expect(foo).to receive(:bar).exactly(2).times +# expect(foo).to receive(:bar).at_least(1).times +# expect(foo).to receive(:bar).at_least(2).times +# expect(foo).to receive(:bar).at_most(1).times +# expect(foo).to receive(:bar).at_most(2).times +# +# # good +# expect(foo).to receive(:bar).once +# expect(foo).to receive(:bar).twice +# expect(foo).to receive(:bar).at_least(:once) +# expect(foo).to receive(:bar).at_least(:twice) +# expect(foo).to receive(:bar).at_most(:once) +# expect(foo).to receive(:bar).at_most(:twice).times +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#25 +class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#40 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#33 + def receive_counts(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#38 + def stub?(param0); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#55 + def autocorrect(corrector, node, range); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#72 + def matcher_for(method, count); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#64 + def message_for(node, source); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#81 + def range(node, offending_node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#28 +RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#30 +RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for multiple messages stubbed on the same object. +# +# @example +# # bad +# before do +# allow(Service).to receive(:foo).and_return(bar) +# allow(Service).to receive(:baz).and_return(qux) +# end +# +# # good +# before do +# allow(Service).to receive_messages(foo: bar, baz: qux) +# end +# +# # good - ignore same message +# before do +# allow(Service).to receive(:foo).and_return(bar) +# allow(Service).to receive(:foo).and_return(qux) +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#31 +class RuboCop::Cop::RSpec::ReceiveMessages < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#44 + def allow_argument(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#39 + def allow_receive_message?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#63 + def on_begin(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#59 + def receive_and_return_argument(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#54 + def receive_arg(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#49 + def receive_node(param0); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#83 + def add_repeated_lines_and_arguments(items); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#100 + def arguments(items); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#150 + def heredoc_or_splat?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#146 + def item_range_by_whole_lines(item); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#135 + def message(repeated_lines); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#109 + def normalize_receive_arg(receive_arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#117 + def normalize_return_arg(return_arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#125 + def register_offense(item, repeated_lines, args); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#73 + def repeated_receive_message(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#139 + def replace_to_receive_messages(corrector, item, args); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#155 + def requires_quotes?(value); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#91 + def uniq_items(items); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#35 +RuboCop::Cop::RSpec::ReceiveMessages::MSG = T.let(T.unsafe(nil), String) + +# Prefer `not_to receive(...)` over `receive(...).never`. +# +# @example +# # bad +# expect(foo).to receive(:bar).never +# +# # good +# expect(foo).not_to receive(:bar) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#15 +class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#21 + def method_on_stub?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#23 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#33 + def autocorrect(corrector, node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#17 +RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#18 +RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Remove redundant `around` hook. +# +# @example +# # bad +# around do |example| +# example.run +# end +# +# # good +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#16 +class RuboCop::Cop::RSpec::RedundantAround < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#43 + def match_redundant_around_hook_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#48 + def match_redundant_around_hook_send?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#23 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#23 + def on_numblock(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#32 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#59 + def autocorrect(corrector, node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#19 +RuboCop::Cop::RSpec::RedundantAround::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#21 +RuboCop::Cop::RSpec::RedundantAround::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for redundant predicate matcher. +# +# @example +# # bad +# expect(foo).to be_exist(bar) +# expect(foo).not_to be_include(bar) +# expect(foo).to be_all(bar) +# +# # good +# expect(foo).to exist(bar) +# expect(foo).not_to include(bar) +# expect(foo).to all be(bar) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#19 +class RuboCop::Cop::RSpec::RedundantPredicateMatcher < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#28 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#44 + def message(bad_method, good_method); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#48 + def replaceable_arguments?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#56 + def replaced_method_name(method_name); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#22 +RuboCop::Cop::RSpec::RedundantPredicateMatcher::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#23 +RuboCop::Cop::RSpec::RedundantPredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks that `remove_const` is not used in specs. +# +# @example +# # bad +# it 'does something' do +# Object.send(:remove_const, :SomeConstant) +# end +# +# before do +# SomeClass.send(:remove_const, :SomeConstant) +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#18 +class RuboCop::Cop::RSpec::RemoveConst < ::RuboCop::Cop::RSpec::Base + # Check for offenses + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#31 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#26 + def remove_const(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#21 +RuboCop::Cop::RSpec::RemoveConst::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#23 +RuboCop::Cop::RSpec::RemoveConst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Check for repeated description strings in example groups. +# +# @example +# # bad +# RSpec.describe User do +# it 'is valid' do +# # ... +# end +# +# it 'is valid' do +# # ... +# end +# end +# +# # good +# RSpec.describe User do +# it 'is valid when first and last name are present' do +# # ... +# end +# +# it 'is valid when last name only is present' do +# # ... +# end +# end +# +# # good +# RSpec.describe User do +# it 'is valid' do +# # ... +# end +# +# it 'is valid', :flag do +# # ... +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#42 +class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#45 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#88 + def example_signature(example); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#92 + def its_signature(example); end + + # Select examples in the current scope with repeated description strings + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#60 + def repeated_descriptions(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#74 + def repeated_its(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#43 +RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String) + +# Check for repeated examples within example groups. +# +# @example +# +# it 'is valid' do +# expect(user).to be_valid +# end +# +# it 'validates the user' do +# expect(user).to be_valid +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#18 +class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#21 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#41 + def example_signature(example); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#31 + def repeated_examples(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#19 +RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String) + +# Check for repeated describe and context block body. +# +# @example +# # bad +# describe 'cool feature x' do +# it { cool_predicate } +# end +# +# describe 'cool feature y' do +# it { cool_predicate } +# end +# +# # good +# describe 'cool feature' do +# it { cool_predicate } +# end +# +# describe 'another cool feature' do +# it { another_predicate } +# end +# +# # good +# context 'when case x', :tag do +# it { cool_predicate } +# end +# +# context 'when case y' do +# it { cool_predicate } +# end +# +# # good +# context Array do +# it { is_expected.to respond_to :each } +# end +# +# context Hash do +# it { is_expected.to respond_to :each } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#45 +class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::SkipOrPending + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#59 + def body(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#62 + def const_arg(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#56 + def metadata(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#64 + def on_begin(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#51 + def several_example_groups?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#85 + def add_repeated_lines(groups); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#94 + def message(group, repeats); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#74 + def repeated_group_bodies(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#90 + def signature_keys(group); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#48 +RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String) + +# Check for repeated example group descriptions. +# +# @example +# # bad +# describe 'cool feature' do +# # example group +# end +# +# describe 'cool feature' do +# # example group +# end +# +# # bad +# context 'when case x' do +# # example group +# end +# +# describe 'when case x' do +# # example group +# end +# +# # good +# describe 'cool feature' do +# # example group +# end +# +# describe 'another cool feature' do +# # example group +# end +# +# # good +# context 'when case x' do +# # example group +# end +# +# context 'when another case' do +# # example group +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#45 +class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::SkipOrPending + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#56 + def doc_string_and_metadata(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#61 + def empty_description?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#63 + def on_begin(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#51 + def several_example_groups?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#85 + def add_repeated_lines(groups); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#90 + def message(group, repeats); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#73 + def repeated_group_descriptions(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#48 +RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), String) + +# Check for repeated include of shared examples. +# +# @example +# # bad +# describe 'foo' do +# include_examples 'cool stuff' +# include_examples 'cool stuff' +# end +# +# # bad +# describe 'foo' do +# it_behaves_like 'a cool', 'thing' +# it_behaves_like 'a cool', 'thing' +# end +# +# # bad +# context 'foo' do +# it_should_behave_like 'a duck' +# it_should_behave_like 'a duck' +# end +# +# # good +# describe 'foo' do +# include_examples 'cool stuff' +# end +# +# describe 'bar' do +# include_examples 'cool stuff' +# end +# +# # good +# describe 'foo' do +# it_behaves_like 'a cool', 'thing' +# it_behaves_like 'a cool', 'person' +# end +# +# # good +# context 'foo' do +# it_should_behave_like 'a duck' +# it_should_behave_like 'a goose' +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#48 +class RuboCop::Cop::RSpec::RepeatedIncludeExample < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#58 + def include_examples?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#65 + def on_begin(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#53 + def several_include_examples?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#62 + def shared_examples_name(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#90 + def add_repeated_lines(items); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#85 + def literal_include_examples?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#99 + def message(item, repeats); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#75 + def repeated_include_examples(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#95 + def signature_keys(item); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#49 +RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String) + +# Checks for repeated calls to subject missing that it is memoized. +# +# @example +# # bad +# it do +# subject +# expect { subject }.to not_change { A.count } +# end +# +# it do +# expect { subject }.to change { A.count } +# expect { subject }.to not_change { A.count } +# end +# +# # good +# it do +# expect { my_method }.to change { A.count } +# expect { my_method }.to not_change { A.count } +# end +# +# # also good +# it do +# expect { subject.a }.to change { A.count } +# expect { subject.b }.to not_change { A.count } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#32 +class RuboCop::Cop::RSpec::RepeatedSubjectCall < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#65 + def on_top_level_group(node); end + + # Find a named or unnamed subject definition + # + # @example anonymous subject + # subject?(parse('subject { foo }').ast) do |name| + # name # => :subject + # end + # @example named subject + # subject?(parse('subject(:thing) { foo }').ast) do |name| + # name # => :thing + # end + # @param node [RuboCop::AST::Node] + # @yield [Symbol] subject name + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#53 + def subject?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#61 + def subject_calls(param0, param1); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#73 + def detect_offense(subject_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#85 + def detect_offenses_in_block(node, subject_names = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#97 + def detect_offenses_in_example(node, subject_names); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#111 + def detect_subjects_in_scope(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#81 + def expect_block(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#35 +RuboCop::Cop::RSpec::RepeatedSubjectCall::MSG = T.let(T.unsafe(nil), String) + +# Checks for consistent style of stub's return setting. +# +# Enforces either `and_return` or block-style return in the cases +# where the returned value is constant. Ignores dynamic returned values +# are the result would be different +# +# This cop can be configured using the `EnforcedStyle` option +# +# @example `EnforcedStyle: and_return` (default) +# # bad +# allow(Foo).to receive(:bar) { "baz" } +# expect(Foo).to receive(:bar) { "baz" } +# +# # good +# allow(Foo).to receive(:bar).and_return("baz") +# expect(Foo).to receive(:bar).and_return("baz") +# # also good as the returned value is dynamic +# allow(Foo).to receive(:bar) { bar.baz } +# @example `EnforcedStyle: block` +# # bad +# allow(Foo).to receive(:bar).and_return("baz") +# expect(Foo).to receive(:bar).and_return("baz") +# +# # good +# allow(Foo).to receive(:bar) { "baz" } +# expect(Foo).to receive(:bar) { "baz" } +# # also good as the returned value is dynamic +# allow(Foo).to receive(:bar).and_return(bar.baz) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#36 +class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#51 + def and_return_value(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#45 + def contains_stub?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#62 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#55 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#48 + def stub_with_block?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#71 + def check_and_return_call(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#81 + def check_block_body(block); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#90 + def dynamic?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#95 +class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector + # @return [AndReturnCallCorrector] a new instance of AndReturnCallCorrector + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#96 + def initialize(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#102 + def call(corrector); end + + private + + # Returns the value of attribute arg. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 + def arg; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#133 + def hash_without_braces?; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#113 + def heredoc?; end + + # Returns the value of attribute node. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 + def node; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#117 + def range; end + + # Returns the value of attribute receiver. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 + def receiver; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#125 + def replacement; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#139 +class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector + # @return [BlockBodyCorrector] a new instance of BlockBodyCorrector + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#140 + def initialize(block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#146 + def call(corrector); end + + private + + # Returns the value of attribute block. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 + def block; end + + # Returns the value of attribute body. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 + def body; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#160 + def heredoc?; end + + # Returns the value of attribute node. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 + def node; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#164 +RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector::NULL_BLOCK_BODY = T.let(T.unsafe(nil), T.untyped) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#40 +RuboCop::Cop::RSpec::ReturnFromStub::MSG_AND_RETURN = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#41 +RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#42 +RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for let scattered across the example group. +# +# Group lets together +# +# @example +# # bad +# describe Foo do +# let(:foo) { 1 } +# subject { Foo } +# let(:bar) { 2 } +# before { prepare } +# let!(:baz) { 3 } +# end +# +# # good +# describe Foo do +# subject { Foo } +# before { prepare } +# let(:foo) { 1 } +# let(:bar) { 2 } +# let!(:baz) { 3 } +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#29 +class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#34 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#42 + def check_let_declarations(body); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#32 +RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) + +# Checks for setup scattered across multiple hooks in an example group. +# +# Unify `before`, `after`, and `around` hooks when possible. +# +# @example +# # bad +# describe Foo do +# before { setup1 } +# before { setup2 } +# end +# +# # good +# describe Foo do +# before do +# setup1 +# setup2 +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#25 +class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#33 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#76 + def autocorrect(corrector, first_occurrence, occurrence); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#61 + def lines_msg(numbers); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#69 + def message(occurrences, occurrence); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#48 + def repeated_hooks(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#30 +RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String) + +# Checks for proper shared_context and shared_examples usage. +# +# If there are no examples defined, use shared_context. +# If there is no setup defined, use shared_examples. +# +# @example +# # bad +# RSpec.shared_context 'only examples here' do +# it 'does x' do +# end +# +# it 'does y' do +# end +# end +# +# # good +# RSpec.shared_examples 'only examples here' do +# it 'does x' do +# end +# +# it 'does y' do +# end +# end +# @example +# # bad +# RSpec.shared_examples 'only setup here' do +# subject(:foo) { :bar } +# +# let(:baz) { :bazz } +# +# before do +# something +# end +# end +# +# # good +# RSpec.shared_context 'only setup here' do +# subject(:foo) { :bar } +# +# let(:baz) { :bazz } +# +# before do +# something +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#53 +class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#65 + def context?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#60 + def examples?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#81 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#72 + def shared_context(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#77 + def shared_example(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#97 + def context_with_only_examples(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#101 + def examples_with_only_context(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#57 +RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#56 +RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String) + +# Checks for consistent style for shared example names. +# +# Enforces either `string` or `symbol` for shared example names. +# +# This cop can be configured using the `EnforcedStyle` option +# +# @example `EnforcedStyle: string` (default) +# # bad +# it_behaves_like :foo_bar_baz +# it_should_behave_like :foo_bar_baz +# shared_examples :foo_bar_baz +# shared_examples_for :foo_bar_baz +# include_examples :foo_bar_baz +# +# # good +# it_behaves_like 'foo bar baz' +# it_should_behave_like 'foo bar baz' +# shared_examples 'foo bar baz' +# shared_examples_for 'foo bar baz' +# include_examples 'foo bar baz' +# @example `EnforcedStyle: symbol` +# # bad +# it_behaves_like 'foo bar baz' +# it_should_behave_like 'foo bar baz' +# shared_examples 'foo bar baz' +# shared_examples_for 'foo bar baz' +# include_examples 'foo bar baz' +# +# # good +# it_behaves_like :foo_bar_baz +# it_should_behave_like :foo_bar_baz +# shared_examples :foo_bar_baz +# shared_examples_for :foo_bar_baz +# include_examples :foo_bar_baz +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#42 +class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#54 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#47 + def shared_examples(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#75 + def new_checker(ast_node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#67 + def offense?(ast_node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#104 +class RuboCop::Cop::RSpec::SharedExamples::StringChecker + # @return [StringChecker] a new instance of StringChecker + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#110 + def initialize(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#114 + def message; end + + # Returns the value of attribute node. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#108 + def node; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#118 + def preferred_style; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#105 +RuboCop::Cop::RSpec::SharedExamples::StringChecker::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#84 +class RuboCop::Cop::RSpec::SharedExamples::SymbolChecker + # @return [SymbolChecker] a new instance of SymbolChecker + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#90 + def initialize(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#94 + def message; end + + # Returns the value of attribute node. + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#88 + def node; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#98 + def preferred_style; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#85 +RuboCop::Cop::RSpec::SharedExamples::SymbolChecker::MSG = T.let(T.unsafe(nil), String) + +# Checks that chains of messages contain more than one element. +# +# @example +# # bad +# allow(foo).to receive_message_chain(:bar).and_return(42) +# +# # good +# allow(foo).to receive(:bar).and_return(42) +# +# # also good +# allow(foo).to receive(:bar, :baz) +# allow(foo).to receive("bar.baz") +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#19 +class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#27 + def message_chain(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#34 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#32 + def single_key_hash?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#49 + def autocorrect(corrector, node, method, arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#77 + def autocorrect_array_arg(corrector, arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#69 + def autocorrect_hash_arg(corrector, arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#83 + def key_to_arg(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#87 + def replacement(method); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#65 + def single_element_array?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#55 + def valid_usage?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#22 +RuboCop::Cop::RSpec::SingleArgumentMessageChain::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#24 +RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for passing a block to `skip` within examples. +# +# @example +# # bad +# it 'does something' do +# skip 'not yet implemented' do +# do_something +# end +# end +# +# # good +# it 'does something' do +# skip 'not yet implemented' +# do_something +# end +# +# # good - when outside example +# skip 'not yet implemented' do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#26 +class RuboCop::Cop::RSpec::SkipBlockInsideExample < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#40 + def inside_example?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#27 +RuboCop::Cop::RSpec::SkipBlockInsideExample::MSG = T.let(T.unsafe(nil), String) + +# Helps check offenses with variable definitions +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#7 +module RuboCop::Cop::RSpec::SkipOrPending + extend ::RuboCop::AST::NodePattern::Macros + + # Match skip/pending statements inside a block (e.g. `context`) + # + # @example source that matches + # context 'when color is blue' do + # skip 'not implemented yet' + # pending 'not implemented yet' + # end + # @example source that does not match + # skip 'not implemented yet' + # pending 'not implemented yet' + # @param node [RuboCop::AST::Node] + # @return [Array] matching nodes + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#33 + def skip_or_pending_inside_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#11 + def skipped_in_metadata?(param0 = T.unsafe(nil)); end +end + +# Sort RSpec metadata alphabetically. +# +# @example +# # bad +# describe 'Something', :b, :a +# context 'Something', foo: 'bar', baz: true +# it 'works', :b, :a, foo: 'bar', baz: true +# +# # good +# describe 'Something', :a, :b +# context 'Something', baz: true, foo: 'bar' +# it 'works', :a, :b, baz: true, foo: 'bar' +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#19 +class RuboCop::Cop::RSpec::SortMetadata < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::Metadata + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#26 + def on_metadata(symbols, hash); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#38 + def crime_scene(symbols, pairs); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#47 + def replacement(symbols, pairs); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#55 + def sort_pairs(pairs); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#59 + def sort_symbols(symbols); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#51 + def sorted?(symbols, pairs); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#24 +RuboCop::Cop::RSpec::SortMetadata::MSG = T.let(T.unsafe(nil), String) + +# Checks that spec file paths are consistent and well-formed. +# +# @example +# # bad +# whatever_spec.rb # describe MyClass +# my_class_spec.rb # describe MyClass, '#method' +# +# # good +# my_class_spec.rb # describe MyClass +# my_class_method_spec.rb # describe MyClass, '#method' +# my_class/method_spec.rb # describe MyClass, '#method' +# @example `CustomTransform: {RuboCop=>rubocop, RSpec=>rspec}` (default) +# # good +# rubocop_spec.rb # describe RuboCop +# rspec_spec.rb # describe RSpec +# @example `IgnoreMethods: false` (default) +# # bad +# my_class_spec.rb # describe MyClass, '#method' +# @example `IgnoreMethods: true` +# # good +# my_class_spec.rb # describe MyClass, '#method' +# @example `IgnoreMetadata: {type=>routing}` (default) +# # good +# whatever_spec.rb # describe MyClass, type: :routing do; end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#35 +class RuboCop::Cop::RSpec::SpecFilePathFormat < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + include ::RuboCop::Cop::RSpec::Namespace + include ::RuboCop::Cop::RSpec::FileHelp + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#43 + def example_group_arguments(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#48 + def metadata_key_value(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#50 + def on_top_level_example_group(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#108 + def camel_to_snake_case(string); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#81 + def correct_path_pattern(class_name, arguments); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#115 + def custom_transform; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#62 + def ensure_correct_file_path(send_node, class_name, arguments); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#98 + def expected_path(constant); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#127 + def filename_ends_with?(pattern); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#94 + def ignore?(method_name); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#123 + def ignore_metadata; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#73 + def ignore_metadata?(arguments); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#119 + def ignore_methods?; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#88 + def name_pattern(method_name); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#40 +RuboCop::Cop::RSpec::SpecFilePathFormat::MSG = T.let(T.unsafe(nil), String) + +# Checks that spec file paths suffix are consistent and well-formed. +# +# @example +# # bad +# my_class/foo_specorb.rb # describe MyClass +# spec/models/user.rb # describe User +# spec/models/user_specxrb # describe User +# +# # good +# my_class_spec.rb # describe MyClass +# +# # good - shared examples are allowed +# spec/models/user.rb # shared_examples_for 'foo' +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#20 +class RuboCop::Cop::RSpec::SpecFilePathSuffix < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + include ::RuboCop::Cop::RSpec::FileHelp + + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#26 + def on_top_level_example_group(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#34 + def correct_path?; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#24 +RuboCop::Cop::RSpec::SpecFilePathSuffix::MSG = T.let(T.unsafe(nil), String) + +# Checks that message expectations do not have a configured response. +# +# @example +# # bad +# expect(foo).to receive(:bar).with(42).and_return("hello world") +# +# # good (without spies) +# allow(foo).to receive(:bar).with(42).and_return("hello world") +# expect(foo).to receive(:bar).with(42) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#16 +class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#42 + def configured_response?(param0 = T.unsafe(nil)); end + + # Match expectation + # + # @example source that matches + # is_expected.to be_in_the_bar + # @example source that matches + # expect(cocktail).to contain_exactly(:fresh_orange_juice, :campari) + # @example source that matches + # expect_any_instance_of(Officer).to be_alert + # @param node [RuboCop::AST::Node] + # @yield [RuboCop::AST::Node] expectation, method name, matcher + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#61 + def expectation(param0 = T.unsafe(nil)); end + + # Match matcher with a configured response in block-pass + # + # @example source that matches + # receive(:foo, &canned) + # @example source that matches + # receive_message_chain(:foo, :bar, &canned) + # @example source that matches + # receive(:foo).with('bar', &canned) + # @param node [RuboCop::AST::Node] + # @yield [RuboCop::AST::Node] matcher + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#129 + def matcher_with_blockpass(param0 = T.unsafe(nil)); end + + # Match matcher with a configured response + # + # @example source that matches + # receive(:foo).and_return('bar') + # @example source that matches + # receive(:lower).and_raise(SomeError) + # @example source that matches + # receive(:redirect).and_call_original + # @param node [RuboCop::AST::Node] + # @yield [RuboCop::AST::Node] matcher + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#81 + def matcher_with_configured_response(param0 = T.unsafe(nil)); end + + # Match matcher with a configured response defined as a hash + # + # @example source that matches + # receive_messages(foo: 'bar', baz: 'qux') + # @example source that matches + # receive_message_chain(:foo, bar: 'baz') + # @param node [RuboCop::AST::Node] + # @yield [RuboCop::AST::Node] matcher + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#108 + def matcher_with_hash(param0 = T.unsafe(nil)); end + + # Match matcher with a return block + # + # @example source that matches + # receive(:foo) { 'bar' } + # @param node [RuboCop::AST::Node] + # @yield [RuboCop::AST::Node] matcher + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#93 + def matcher_with_return_block(param0 = T.unsafe(nil)); end + + # Match message expectation matcher + # + # @example source that matches + # receive(:foo) + # @example source that matches + # receive_message_chain(:foo, :bar) + # @example source that matches + # receive(:foo).with('bar') + # @param node [RuboCop::AST::Node] + # @return [Array] matching nodes + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#34 + def message_expectation?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#138 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#157 + def msg(method_name); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#146 + def on_expectation(expectation, method_name, matcher); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#163 + def replacement(method_name); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#17 +RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#136 +RuboCop::Cop::RSpec::StubbedMock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Ensure that subject is defined using subject helper. +# +# @example +# # bad +# let(:subject) { foo } +# let!(:subject) { foo } +# subject(:subject) { foo } +# subject!(:subject) { foo } +# +# # bad +# block = -> {} +# let(:subject, &block) +# +# # good +# subject(:test_subject) { foo } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#22 +class RuboCop::Cop::RSpec::SubjectDeclaration < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#27 + def offensive_subject_declaration?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#31 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#40 + def message_for(offense); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#23 +RuboCop::Cop::RSpec::SubjectDeclaration::MSG_LET = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#24 +RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), String) + +# Checks for stubbed test subjects. +# +# Checks nested subject stubs for innermost subject definition +# when subject is also defined in parent example groups. +# +# @example +# # bad +# describe Article do +# subject(:article) { Article.new } +# +# it 'indicates that the author is unknown' do +# allow(article).to receive(:author).and_return(nil) +# expect(article.description).to include('by an unknown author') +# end +# end +# +# # bad +# describe Article do +# subject(:foo) { Article.new } +# +# context 'nested subject' do +# subject(:article) { Article.new } +# +# it 'indicates that the author is unknown' do +# allow(article).to receive(:author).and_return(nil) +# expect(article.description).to include('by an unknown author') +# end +# end +# end +# +# # good +# describe Article do +# subject(:article) { Article.new(author: nil) } +# +# it 'indicates that the author is unknown' do +# expect(article.description).to include('by an unknown author') +# end +# end +# @see https://robots.thoughtbot.com/don-t-stub-the-system-under-test +# @see https://penelope.zone/2015/12/27/introducing-rspec-smells-and-where-to-find-them.html#smell-1-stubjec +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#50 +class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::TopLevelGroup + + # Find a memoized helper + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#80 + def let?(param0 = T.unsafe(nil)); end + + # Match `allow` and `expect(...).to receive` + # + # @example source that matches + # allow(foo).to receive(:bar) + # allow(foo).to receive(:bar).with(1) + # allow(foo).to receive(:bar).with(1).and_return(2) + # expect(foo).to receive(:bar) + # expect(foo).to receive(:bar).with(1) + # expect(foo).to receive(:bar).with(1).and_return(2) + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#97 + def message_expectation?(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#109 + def message_expectation_matcher?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#115 + def on_top_level_group(node); end + + # Find a named or unnamed subject definition + # + # @example anonymous subject + # subject?(parse('subject { foo }').ast) do |name| + # name # => :subject + # end + # @example named subject + # subject?(parse('subject(:thing) { foo }').ast) do |name| + # name # => :thing + # end + # @param node [RuboCop::AST::Node] + # @yield [Symbol] subject name + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#71 + def subject?(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#126 + def find_all_explicit(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#140 + def find_subject_expectations(node, subject_names = T.unsafe(nil), &block); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#53 +RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String) + +# Helper methods for top level example group cops +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#7 +module RuboCop::Cop::RSpec::TopLevelGroup + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#10 + def on_new_investigation; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#19 + def top_level_groups; end + + private + + # Dummy methods to be overridden in the consumer + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#27 + def on_top_level_example_group(_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#29 + def on_top_level_group(_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#48 + def root_node; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#31 + def top_level_group?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#35 + def top_level_nodes(node); end +end + +# Description should be descriptive. +# +# If example group or example contains only `execute string`, numbers +# and regular expressions, the description is not clear. +# +# @example +# # bad +# describe `time` do +# # ... +# end +# +# # bad +# context /when foo/ do +# # ... +# end +# +# # bad +# it 10000 do +# # ... +# end +# +# # good +# describe Foo do +# # ... +# end +# +# # good +# describe '#foo' do +# # ... +# end +# +# # good +# context "when #{foo} is bar" do +# # ... +# end +# +# # good +# it 'does something' do +# # ... +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#47 +class RuboCop::Cop::RSpec::UndescriptiveLiteralsDescription < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#51 + def example_groups_or_example?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#55 + def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#63 + def offense?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#48 +RuboCop::Cop::RSpec::UndescriptiveLiteralsDescription::MSG = T.let(T.unsafe(nil), String) + +# Checks for a specified error in checking raised errors. +# +# Enforces one of an Exception type, a string, or a regular +# expression to match against the exception message as a parameter +# to `raise_error` +# +# @example +# # bad +# expect { +# raise StandardError.new('error') +# }.to raise_error +# +# # good +# expect { +# raise StandardError.new('error') +# }.to raise_error(StandardError) +# +# expect { +# raise StandardError.new('error') +# }.to raise_error('error') +# +# expect { +# raise StandardError.new('error') +# }.to raise_error(/err/) +# +# expect { do_something }.not_to raise_error +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#33 +class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#42 + def expect_to?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#46 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#54 + def empty_exception_matcher?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#64 + def find_expect_to(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#34 +RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#36 +RuboCop::Cop::RSpec::UnspecifiedException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Helps check offenses with variable definitions +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#7 +module RuboCop::Cop::RSpec::Variable + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#14 + def variable_definition?(param0 = T.unsafe(nil)); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#11 +RuboCop::Cop::RSpec::Variable::Helpers = RuboCop::RSpec::Language::Helpers + +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#10 +RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects + +# Checks that memoized helpers names are symbols or strings. +# +# @example EnforcedStyle: symbols (default) +# # bad +# subject('user') { create_user } +# let('user_name') { 'Adam' } +# +# # good +# subject(:user) { create_user } +# let(:user_name) { 'Adam' } +# @example EnforcedStyle: strings +# # bad +# subject(:user) { create_user } +# let(:user_name) { 'Adam' } +# +# # good +# subject('user') { create_user } +# let('user_name') { 'Adam' } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#26 +class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RSpec::Variable + include ::RuboCop::Cop::RSpec::InsideExampleGroup + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#34 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#51 + def correct_variable(variable); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#67 + def string?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#62 + def style_offense?(variable); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#71 + def symbol?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#32 +RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String) + +# Checks that memoized helper names use the configured style. +# +# Variables can be excluded from checking using the `AllowedPatterns` +# option. +# +# @example EnforcedStyle: snake_case (default) +# # bad +# subject(:userName1) { 'Adam' } +# let(:userName2) { 'Adam' } +# +# # good +# subject(:user_name_1) { 'Adam' } +# let(:user_name_2) { 'Adam' } +# @example EnforcedStyle: camelCase +# # bad +# subject(:user_name_1) { 'Adam' } +# let(:user_name_2) { 'Adam' } +# +# # good +# subject(:userName1) { 'Adam' } +# let(:userName2) { 'Adam' } +# @example AllowedPatterns configuration +# # rubocop.yml +# # RSpec/VariableName: +# # EnforcedStyle: snake_case +# # AllowedPatterns: +# # - ^userFood +# @example +# # okay because it matches the `^userFood` regex in `AllowedPatterns` +# subject(:userFood_1) { 'spaghetti' } +# let(:userFood_2) { 'fettuccine' } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#41 +class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::ConfigurableFormatting + include ::RuboCop::Cop::ConfigurableNaming + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::RSpec::Variable + include ::RuboCop::Cop::RSpec::InsideExampleGroup + + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#49 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#62 + def message(style); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#47 +RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String) + +# Checks for consistent verified double reference style. +# +# Only investigates references that are one of the supported styles. +# +# This cop can be configured in your configuration using the +# `EnforcedStyle` option and supports `--auto-gen-config`. +# +# @example `EnforcedStyle: constant` (default) +# # bad +# let(:foo) do +# instance_double('ClassName', method_name: 'returned_value') +# end +# +# # good +# let(:foo) do +# instance_double(ClassName, method_name: 'returned_value') +# end +# @example `EnforcedStyle: string` +# # bad +# let(:foo) do +# instance_double(ClassName, method_name: 'returned_value') +# end +# +# # good +# let(:foo) do +# instance_double('ClassName', method_name: 'returned_value') +# end +# @example Reference is not in the supported style list. No enforcement +# +# # good +# let(:foo) do +# instance_double(@klass, method_name: 'returned_value') +# end +# @see https://rspec.info/features/3-12/rspec-mocks/verifying-doubles +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#43 +class RuboCop::Cop::RSpec::VerifiedDoubleReference < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#74 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#66 + def verified_double(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#101 + def correct_style(offense); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#92 + def opposing_style?(class_reference); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#47 +RuboCop::Cop::RSpec::VerifiedDoubleReference::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#60 +RuboCop::Cop::RSpec::VerifiedDoubleReference::REFERENCE_TYPE_STYLES = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#49 +RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Prefer using verifying doubles over normal doubles. +# +# @example +# # bad +# let(:foo) do +# double(method_name: 'returned value') +# end +# +# # bad +# let(:foo) do +# double("ClassName", method_name: 'returned value') +# end +# +# # good +# let(:foo) do +# instance_double("ClassName", method_name: 'returned value') +# end +# @see https://rspec.info/features/3-12/rspec-mocks/verifying-doubles +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#26 +class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#35 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#31 + def unverified_double(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#46 + def symbol?(name); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#27 +RuboCop::Cop::RSpec::VerifiedDoubles::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#28 +RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks void `expect()`. +# +# @example +# # bad +# expect(something) +# +# # good +# expect(something).to be(1) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#15 +class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#21 + def expect?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#26 + def expect_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#36 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#30 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#44 + def check_expect(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#50 + def void?(expect); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#16 +RuboCop::Cop::RSpec::VoidExpect::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#18 +RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks for calling a block within a stub. +# +# @example +# # bad +# allow(foo).to receive(:bar) { |&block| block.call(1) } +# +# # good +# expect(foo).to receive(:bar).and_yield(1) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#15 +class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#25 + def block_arg(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#28 + def block_call?(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#22 + def method_on_stub?(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#30 + def on_block(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#46 + def autocorrect(corrector, node, range); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#61 + def block_range(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#53 + def calling_block?(node, block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#73 + def convert_block_to_yield(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#65 + def generate_replacement(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#19 +RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String) + +# RuboCop RSpec project namespace +# +# source://rubocop-rspec//lib/rubocop/rspec.rb#5 +module RuboCop::RSpec; end + +# Shared behavior for aligning braces for single line lets +# +# source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#6 +class RuboCop::RSpec::AlignLetBrace + include ::RuboCop::RSpec::Language + include ::RuboCop::PathUtil + include ::RuboCop::Cop::Util + + # @return [AlignLetBrace] a new instance of AlignLetBrace + # + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#10 + def initialize(root, token); end + + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#21 + def indent_for(node); end + + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#15 + def offending_tokens; end + + private + + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#43 + def adjacent_let_chunks; end + + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#35 + def let_group_for(let); end + + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#27 + def let_token(node); end + + # Returns the value of attribute root. + # + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#60 + def root; end + + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#53 + def single_line_lets; end + + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#31 + def target_column_for(let); end + + # Returns the value of attribute token. + # + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#60 + def token; end +end + +# source://rubocop-rspec//lib/rubocop/rspec.rb#7 +RuboCop::RSpec::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) + +# Wrapper for RSpec DSL methods +# +# source://rubocop-rspec//lib/rubocop/rspec/concept.rb#6 +class RuboCop::RSpec::Concept + include ::RuboCop::RSpec::Language + extend ::RuboCop::AST::NodePattern::Macros + + # @return [Concept] a new instance of Concept + # + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#10 + def initialize(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14 + def ==(other); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14 + def eql?(other); end + + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#20 + def hash; end + + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#24 + def to_node; end + + protected + + # Returns the value of attribute node. + # + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#30 + def node; end +end + +# source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#5 +module RuboCop::RSpec::Corrector; end + +# Helper methods to move a node +# +# source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#7 +class RuboCop::RSpec::Corrector::MoveNode + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::RSpec::FinalEndLocation + include ::RuboCop::Cop::RSpec::CommentsHelp + + # @return [MoveNode] a new instance of MoveNode + # + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#14 + def initialize(node, corrector, processed_source); end + + # Returns the value of attribute corrector. + # + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 + def corrector; end + + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#27 + def move_after(other); end + + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#20 + def move_before(other); end + + # Returns the value of attribute original. + # + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 + def original; end + + # Returns the value of attribute processed_source. + # + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 + def processed_source; end + + private + + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#40 + def node_range(node); end + + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#44 + def node_range_with_surrounding_space(node); end + + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#36 + def source(node); end +end + +# Wrapper for RSpec examples +# +# source://rubocop-rspec//lib/rubocop/rspec/example.rb#6 +class RuboCop::RSpec::Example < ::RuboCop::RSpec::Concept + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#28 + def definition; end + + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#16 + def doc_string; end + + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#8 + def extract_doc_string(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#14 + def extract_implementation(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#11 + def extract_metadata(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#24 + def implementation; end + + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#20 + def metadata; end +end + +# Wrapper for RSpec example groups +# +# source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#6 +class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#28 + def examples; end + + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#34 + def hooks; end + + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#20 + def lets; end + + # Detect if the node is an example group or shared example + # + # Selectors which indicate that we should stop searching + # + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#13 + def scope_change?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#24 + def subjects; end + + private + + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#56 + def find_all(node, predicate); end + + # Recursively search for predicate within the current scope + # + # Searches node and halts when a scope change is detected + # + # @param node [RuboCop::AST::Node] node to recursively search + # @param predicate [Symbol] method to call with node as argument + # @return [Array] discovered nodes + # + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#50 + def find_all_in_scope(node, predicate); end +end + +# Wrapper for RSpec hook +# +# source://rubocop-rspec//lib/rubocop/rspec/hook.rb#6 +class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#24 + def example?; end + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#8 + def extract_metadata(param0 = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#18 + def knowable_scope?; end + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#38 + def metadata; end + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#14 + def name; end + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#28 + def scope; end + + private + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#74 + def scope_argument; end + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#70 + def scope_name; end + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#51 + def transform_metadata(meta); end + + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#66 + def transform_true(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#47 + def valid_scope?(node); end +end + +# Because RuboCop doesn't yet support plugins, we have to monkey patch in a +# bit of our configuration. +# +# source://rubocop-rspec//lib/rubocop/rspec/inject.rb#7 +module RuboCop::RSpec::Inject + class << self + # source://rubocop-rspec//lib/rubocop/rspec/inject.rb#8 + def defaults!; end + end +end + +# Contains node matchers for common RSpec DSL. +# +# RSpec allows for configuring aliases for commonly used DSL elements, e.g. +# example groups and hooks. It is possible to configure RuboCop RSpec to +# be able to properly detect these elements in the `RSpec/Language` section +# of the RuboCop YAML configuration file. +# +# In addition to providing useful matchers, this class is responsible for +# using the configured aliases. +# +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#14 +module RuboCop::RSpec::Language + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#49 + def example?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#28 + def example_group?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#44 + def example_group_with_body?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#25 + def explicit_rspec?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#52 + def hook?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#68 + def include?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#60 + def let?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#22 + def rspec?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#33 + def shared_group?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#37 + def spec_group?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#76 + def subject?(param0 = T.unsafe(nil)); end + + class << self + # Returns the value of attribute config. + # + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18 + def config; end + + # Sets the attribute config + # + # @param value the value to set the attribute config to. + # + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18 + def config=(_arg0); end + end +end + +# This is used in Dialect and DescribeClass cops to detect RSpec blocks. +# +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#204 +module RuboCop::RSpec::Language::ALL + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#205 + def all(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#78 +module RuboCop::RSpec::Language::ExampleGroups + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#80 + def all(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#90 + def focused(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#86 + def regular(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#94 + def skipped(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#100 +module RuboCop::RSpec::Language::Examples + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#102 + def all(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#113 + def focused(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#121 + def pending(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#109 + def regular(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#117 + def skipped(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#127 +module RuboCop::RSpec::Language::Expectations + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#128 + def all(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#133 +module RuboCop::RSpec::Language::Helpers + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#134 + def all(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#145 +module RuboCop::RSpec::Language::HookScopes + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#147 + def all(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#146 +RuboCop::RSpec::Language::HookScopes::ALL = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#139 +module RuboCop::RSpec::Language::Hooks + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#140 + def all(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#152 +module RuboCop::RSpec::Language::Includes + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#154 + def all(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#163 + def context(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#159 + def examples(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#169 +module RuboCop::RSpec::Language::Runners + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#172 + def all(element = T.unsafe(nil)); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#170 +RuboCop::RSpec::Language::Runners::ALL = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#180 +module RuboCop::RSpec::Language::SharedGroups + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#182 + def all(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#191 + def context(element); end + + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#187 + def examples(element); end + end +end + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#197 +module RuboCop::RSpec::Language::Subjects + class << self + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#198 + def all(element); end + end +end + +# RuboCop RSpec specific extensions of RuboCop::AST::Node +# +# source://rubocop-rspec//lib/rubocop/rspec/node.rb#6 +module RuboCop::RSpec::Node + # In various cops we want to regard const as literal although it's not + # strictly literal. + # + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/node.rb#9 + def recursive_literal_or_const?; end +end + +# source://rubocop-rspec//lib/rubocop/rspec.rb#6 +RuboCop::RSpec::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) + +# Version information for the RSpec RuboCop plugin. +# +# source://rubocop-rspec//lib/rubocop/rspec/version.rb#6 +module RuboCop::RSpec::Version; end + +# source://rubocop-rspec//lib/rubocop/rspec/version.rb#7 +RuboCop::RSpec::Version::STRING = T.let(T.unsafe(nil), String) + +# RSpec example wording rewriter +# +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#6 +class RuboCop::RSpec::Wording + # @return [Wording] a new instance of Wording + # + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#14 + def initialize(text, ignore:, replace:); end + + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#21 + def rewrite; end + + private + + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#80 + def append_suffix(word, suffix); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#65 + def ignored_word?(word); end + + # Returns the value of attribute ignores. + # + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + def ignores; end + + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#51 + def remove_should_and_pluralize; end + + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#41 + def replace_prefix(pattern, replacement); end + + # Returns the value of attribute replacements. + # + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + def replacements; end + + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#69 + def substitute(word); end + + # Returns the value of attribute text. + # + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + def text; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#47 + def uppercase?(word); end +end + +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#11 +RuboCop::RSpec::Wording::ES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#12 +RuboCop::RSpec::Wording::IES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#8 +RuboCop::RSpec::Wording::SHOULDNT_BE_PREFIX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#7 +RuboCop::RSpec::Wording::SHOULDNT_PREFIX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#9 +RuboCop::RSpec::Wording::WILL_NOT_PREFIX = T.let(T.unsafe(nil), Regexp) + +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#10 +RuboCop::RSpec::Wording::WONT_PREFIX = T.let(T.unsafe(nil), Regexp) diff --git a/sorbet/rbi/gems/rubocop-shopify@2.15.1.rbi b/sorbet/rbi/gems/rubocop-shopify@2.15.1.rbi new file mode 100644 index 00000000..85953819 --- /dev/null +++ b/sorbet/rbi/gems/rubocop-shopify@2.15.1.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-shopify` gem. +# Please instead update this file by running `bin/tapioca gem rubocop-shopify`. + + +# 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-thread_safety@0.5.1.rbi b/sorbet/rbi/gems/rubocop-thread_safety@0.5.1.rbi new file mode 100644 index 00000000..e8679d6f --- /dev/null +++ b/sorbet/rbi/gems/rubocop-thread_safety@0.5.1.rbi @@ -0,0 +1,435 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-thread_safety` gem. +# Please instead update this file by running `bin/tapioca gem rubocop-thread_safety`. + + +# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#3 +module RuboCop; end + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#4 +module RuboCop::Cop; end + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#5 +module RuboCop::Cop::ThreadSafety; end + +# Avoid mutating class and module attributes. +# +# They are implemented by class variables, which are not thread-safe. +# +# @example +# # bad +# class User +# cattr_accessor :current_user +# end +# +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#15 +class RuboCop::Cop::ThreadSafety::ClassAndModuleAttributes < ::RuboCop::Cop::Base + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#32 + def attr?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#39 + def attr_internal?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#46 + def class_attr?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#25 + def mattr?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#52 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#66 + def defined_in_singleton_class?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#61 + def singleton_attr?(node); end +end + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#16 +RuboCop::Cop::ThreadSafety::ClassAndModuleAttributes::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/class_and_module_attributes.rb#17 +RuboCop::Cop::ThreadSafety::ClassAndModuleAttributes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Avoid instance variables in class methods. +# +# @example +# # bad +# class User +# def self.notify(info) +# @info = validate(info) +# Notifier.new(@info).deliver +# end +# end +# +# class Model +# class << self +# def table_name(name) +# @table_name = name +# end +# end +# end +# +# class Host +# %i[uri port].each do |key| +# define_singleton_method("#{key}=") do |value| +# instance_variable_set("@#{key}", value) +# end +# end +# end +# +# module Example +# module ClassMethods +# def test(params) +# @params = params +# end +# end +# end +# +# module Example +# class_methods do +# def test(params) +# @params = params +# end +# end +# end +# +# module Example +# module_function +# +# def test(params) +# @params = params +# end +# end +# +# module Example +# def test(params) +# @params = params +# end +# +# module_function :test +# end +# +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#64 +class RuboCop::Cop::ThreadSafety::InstanceVariableInClassMethod < ::RuboCop::Cop::Base + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#194 + def class_methods_module?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#77 + def instance_variable_get_call?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#72 + def instance_variable_set_call?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#199 + def module_function_for?(param0 = T.unsafe(nil), param1); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#81 + def on_ivar(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#81 + def on_ivasgn(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#90 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#101 + def class_method_definition?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#121 + def in_def_class_methods?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#125 + def in_def_class_methods_dsl?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#134 + def in_def_class_methods_module?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#146 + def in_def_module_function?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#115 + def in_def_sclass?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#111 + def in_defs?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#179 + def instance_variable_call?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#189 + def match_name?(arg_name, method_name); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#162 + def method_definition?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#183 + def module_function_bare_access_modifier?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#154 + def singleton_method_definition?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#170 + def synchronized?(node); end +end + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#65 +RuboCop::Cop::ThreadSafety::InstanceVariableInClassMethod::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/instance_variable_in_class_method.rb#66 +RuboCop::Cop::ThreadSafety::InstanceVariableInClassMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# Checks whether some class instance variable isn't a +# mutable literal (e.g. array or hash). +# +# It is based on Style/MutableConstant from RuboCop. +# See https://github.com/rubocop-hq/rubocop/blob/master/lib/rubocop/cop/style/mutable_constant.rb +# +# Class instance variables are a risk to threaded code as they are shared +# between threads. A mutable object such as an array or hash may be +# updated via an attr_reader so would not be detected by the +# ThreadSafety/ClassAndModuleAttributes cop. +# +# Strict mode can be used to freeze all class instance variables, rather +# than just literals. +# Strict mode is considered an experimental feature. It has not been +# updated with an exhaustive list of all methods that will produce frozen +# objects so there is a decent chance of getting some false positives. +# Luckily, there is no harm in freezing an already frozen object. +# +# @example EnforcedStyle: literals (default) +# # bad +# class Model +# @list = [1, 2, 3] +# end +# +# # good +# class Model +# @list = [1, 2, 3].freeze +# end +# +# # good +# class Model +# @var = <<~TESTING.freeze +# This is a heredoc +# TESTING +# end +# +# # good +# class Model +# @var = Something.new +# end +# @example EnforcedStyle: strict +# # bad +# class Model +# @var = Something.new +# end +# +# # bad +# class Model +# @var = Struct.new do +# def foo +# puts 1 +# end +# end +# end +# +# # good +# class Model +# @var = Something.new.freeze +# end +# +# # good +# class Model +# @var = Struct.new do +# def foo +# puts 1 +# end +# end.freeze +# end +# +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#75 +class RuboCop::Cop::ThreadSafety::MutableClassInstanceVariable < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FrozenStringLiteral + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#112 + def autocorrect(corrector, node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#218 + def define_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#213 + def define_singleton_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#84 + def on_ivasgn(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#99 + def on_masgn(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#91 + def on_or_asgn(node); end + + # NOTE: Some of these patterns may not actually return an immutable + # object but we will consider them immutable for this cop. + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#230 + def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#247 + def operation_produces_threadsafe_object?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#280 + def range_enclosed_in_parentheses?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#223 + def splat_value(param0 = T.unsafe(nil)); end + + private + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#159 + def check(value); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#178 + def container?(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#204 + def correct_splat_expansion(corrector, expr, splat_value); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#131 + def frozen_string_literal?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#191 + def immutable_literal?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#169 + def in_class?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#185 + def mutable_literal?(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#140 + def on_assignment(value); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#200 + def range_type?(node); end + + # @return [Boolean] + # + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#195 + def requires_parentheses?(node); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#148 + def strict_check(value); end +end + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#81 +RuboCop::Cop::ThreadSafety::MutableClassInstanceVariable::FROZEN_STRING_LITERAL_TYPES_RUBY27 = T.let(T.unsafe(nil), Array) + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#82 +RuboCop::Cop::ThreadSafety::MutableClassInstanceVariable::FROZEN_STRING_LITERAL_TYPES_RUBY30 = T.let(T.unsafe(nil), Array) + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb#80 +RuboCop::Cop::ThreadSafety::MutableClassInstanceVariable::MSG = T.let(T.unsafe(nil), String) + +# Avoid starting new threads. +# +# Let a framework like Sidekiq handle the threads. +# +# @example +# # bad +# Thread.new { do_work } +# +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#13 +class RuboCop::Cop::ThreadSafety::NewThread < ::RuboCop::Cop::Base + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#18 + def new_thread?(param0 = T.unsafe(nil)); end + + # source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#22 + def on_send(node); end +end + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#14 +RuboCop::Cop::ThreadSafety::NewThread::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-thread_safety//lib/rubocop/cop/thread_safety/new_thread.rb#15 +RuboCop::Cop::ThreadSafety::NewThread::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# RuboCop::ThreadSafety detects some potential thread safety issues. +# +# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#5 +module RuboCop::ThreadSafety; end + +# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#8 +RuboCop::ThreadSafety::CONFIG = T.let(T.unsafe(nil), Hash) + +# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#7 +RuboCop::ThreadSafety::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) + +# Because RuboCop doesn't yet support plugins, we have to monkey patch in a +# bit of our configuration. +# +# source://rubocop-thread_safety//lib/rubocop/thread_safety/inject.rb#9 +module RuboCop::ThreadSafety::Inject + class << self + # source://rubocop-thread_safety//lib/rubocop/thread_safety/inject.rb#10 + def defaults!; end + end +end + +# source://rubocop-thread_safety//lib/rubocop/thread_safety.rb#6 +RuboCop::ThreadSafety::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) + +# source://rubocop-thread_safety//lib/rubocop/thread_safety/version.rb#5 +RuboCop::ThreadSafety::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rubocop@1.63.5.rbi b/sorbet/rbi/gems/rubocop@1.65.1.rbi similarity index 97% rename from sorbet/rbi/gems/rubocop@1.63.5.rbi rename to sorbet/rbi/gems/rubocop@1.65.1.rbi index f129d90e..f57bf912 100644 --- a/sorbet/rbi/gems/rubocop@1.63.5.rbi +++ b/sorbet/rbi/gems/rubocop@1.65.1.rbi @@ -769,7 +769,7 @@ class RuboCop::CommentConfig # @return [CommentConfig] a new instance of CommentConfig # - # source://rubocop//lib/rubocop/comment_config.rb#34 + # source://standard/1.40.0/lib/standard/rubocop/ext.rb#20 def initialize(processed_source); end # @return [Boolean] @@ -845,6 +845,9 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#183 def non_comment_token_line_numbers; end + # source://rubocop//lib/rubocop/comment_config.rb#34 + def old_initialize(processed_source); end + # source://rubocop//lib/rubocop/comment_config.rb#83 def opt_in_cops; end @@ -1179,12 +1182,12 @@ class RuboCop::Config private - # source://rubocop//lib/rubocop/config.rb#347 + # source://rubocop//lib/rubocop/config.rb#346 def department_of(qualified_cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#335 + # source://rubocop//lib/rubocop/config.rb#334 def enable_cop?(qualified_cop_name, cop_options); end # @param gem_version [Gem::Version] an object like `Gem::Version.new("7.1.2.3")` @@ -1193,7 +1196,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#321 def gem_version_to_major_minor_float(gem_version); end - # source://rubocop//lib/rubocop/config.rb#328 + # source://rubocop//lib/rubocop/config.rb#327 def read_gem_versions_from_target_lockfile; end # @return [Float, nil] The Rails version as a `major.minor` Float. @@ -2412,7 +2415,7 @@ module RuboCop::Cop::Alignment # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#45 def each_bad_alignment(items, base_column); end - # @deprecated Use processed_source.comment_at_line(line) + # @deprecated Use processed_source.line_with_comment?(line) # # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#69 def end_of_line_comment(line); end @@ -2425,7 +2428,7 @@ module RuboCop::Cop::Alignment # @api private # - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#74 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#78 def register_offense(offense_node, message_node); end # @api public @@ -2538,21 +2541,20 @@ module RuboCop::Cop::AllowedMethods # @api public # - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#21 + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#27 def allowed_methods; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#29 + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#35 def cop_config_allowed_methods; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#33 + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#39 def cop_config_deprecated_values; end - # @api public # @deprecated Use allowed_method? instead # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#13 - def ignored_method?(name); end + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#18 + def ignored_method?; end end # This module encapsulates the ability to ignore certain lines when @@ -2567,31 +2569,31 @@ module RuboCop::Cop::AllowedPattern # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#10 def allowed_line?(line); end - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#30 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#42 def allowed_patterns; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#46 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#58 def cop_config_deprecated_methods_values; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#40 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#52 def cop_config_patterns_values; end # @deprecated Use allowed_line? instead # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#10 - def ignored_line?(line); end + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#21 + def ignored_line?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#23 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#29 def matches_allowed_pattern?(line); end - # @deprecated Use matches_allowed_pattern?? instead + # @deprecated Use matches_allowed_pattern? instead # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#23 - def matches_ignored_pattern?(line); end + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#34 + def matches_ignored_pattern?; end end # This module encapsulates the ability to allow certain receivers in a cop. @@ -2939,18 +2941,18 @@ class RuboCop::Cop::Base # @return [Base] a new instance of Base # - # source://rubocop//lib/rubocop/cop/base.rb#153 + # source://rubocop//lib/rubocop/cop/base.rb#156 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#269 + # source://rubocop//lib/rubocop/cop/base.rb#272 def active_support_extensions_enabled?; end # Adds an offense that has no particular location. # No correction can be applied to global offenses # - # source://rubocop//lib/rubocop/cop/base.rb#186 + # source://rubocop//lib/rubocop/cop/base.rb#189 def add_global_offense(message = T.unsafe(nil), severity: T.unsafe(nil)); end # Adds an offense on the specified range (or node with an expression) @@ -2958,25 +2960,25 @@ class RuboCop::Cop::Base # to provide the cop the opportunity to autocorrect the offense. # If message is not specified, the method `message` will be called. # - # source://rubocop//lib/rubocop/cop/base.rb#198 + # source://rubocop//lib/rubocop/cop/base.rb#201 def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#340 + # source://rubocop//lib/rubocop/cop/base.rb#343 def always_autocorrect?; end # Called before any investigation # # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#326 + # source://rubocop//lib/rubocop/cop/base.rb#329 def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#311 + # source://rubocop//lib/rubocop/cop/base.rb#314 def callbacks_needed; end # Returns the value of attribute config. @@ -2984,29 +2986,29 @@ class RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/base.rb#43 def config; end - # source://rubocop//lib/rubocop/cop/base.rb#249 + # source://rubocop//lib/rubocop/cop/base.rb#252 def config_to_allow_offenses; end - # source://rubocop//lib/rubocop/cop/base.rb#253 + # source://rubocop//lib/rubocop/cop/base.rb#256 def config_to_allow_offenses=(hash); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#346 + # source://rubocop//lib/rubocop/cop/base.rb#349 def contextual_autocorrect?; end # Configuration Helpers # - # source://rubocop//lib/rubocop/cop/base.rb#243 + # source://rubocop//lib/rubocop/cop/base.rb#246 def cop_config; end - # source://rubocop//lib/rubocop/cop/base.rb#235 + # source://rubocop//lib/rubocop/cop/base.rb#238 def cop_name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#282 + # source://rubocop//lib/rubocop/cop/base.rb#285 def excluded_file?(file); end # This method should be overridden when a cop's behavior depends @@ -3025,51 +3027,51 @@ class RuboCop::Cop::Base # ResultCache system when those external dependencies change, # ie when the ResultCache should be invalidated. # - # source://rubocop//lib/rubocop/cop/base.rb#231 + # source://rubocop//lib/rubocop/cop/base.rb#234 def external_dependency_checksum; end - # source://rubocop//lib/rubocop/cop/base.rb#350 + # source://rubocop//lib/rubocop/cop/base.rb#353 def inspect; end # Gets called if no message is specified when calling `add_offense` or # `add_global_offense` # Cops are discouraged to override this; instead pass your message directly # - # source://rubocop//lib/rubocop/cop/base.rb#180 + # source://rubocop//lib/rubocop/cop/base.rb#183 def message(_range = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/base.rb#235 + # source://rubocop//lib/rubocop/cop/base.rb#238 def name; end # @deprecated Make potential errors with previous API more obvious # - # source://rubocop//lib/rubocop/cop/base.rb#302 + # source://rubocop//lib/rubocop/cop/base.rb#305 def offenses; end # Called after all on_... have been called # When refining this method, always call `super` # - # source://rubocop//lib/rubocop/cop/base.rb#167 + # source://rubocop//lib/rubocop/cop/base.rb#170 def on_investigation_end; end # Called before all on_... have been called # When refining this method, always call `super` # - # source://rubocop//lib/rubocop/cop/base.rb#161 + # source://rubocop//lib/rubocop/cop/base.rb#164 def on_new_investigation; end # Called instead of all on_... callbacks for unrecognized files / syntax errors # When refining this method, always call `super` # - # source://rubocop//lib/rubocop/cop/base.rb#173 + # source://rubocop//lib/rubocop/cop/base.rb#176 def on_other_file; end # There should be very limited reasons for a Cop to do it's own parsing # - # source://rubocop//lib/rubocop/cop/base.rb#287 + # source://rubocop//lib/rubocop/cop/base.rb#290 def parse(source, path = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/base.rb#261 + # source://rubocop//lib/rubocop/cop/base.rb#264 def parser_engine; end # Returns the value of attribute processed_source. @@ -3081,104 +3083,106 @@ class RuboCop::Cop::Base # # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#293 + # source://rubocop//lib/rubocop/cop/base.rb#296 def ready; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#273 + # source://rubocop//lib/rubocop/cop/base.rb#276 def relevant_file?(file); end - # source://rubocop//lib/rubocop/cop/base.rb#265 + # source://rubocop//lib/rubocop/cop/base.rb#268 def target_rails_version; end - # source://rubocop//lib/rubocop/cop/base.rb#257 + # source://rubocop//lib/rubocop/cop/base.rb#260 def target_ruby_version; end private - # source://rubocop//lib/rubocop/cop/base.rb#478 + # source://rubocop//lib/rubocop/cop/base.rb#471 def annotate(message); end - # source://rubocop//lib/rubocop/cop/base.rb#362 + # source://rubocop//lib/rubocop/cop/base.rb#365 def apply_correction(corrector); end # @return [Symbol] offense status # - # source://rubocop//lib/rubocop/cop/base.rb#442 + # source://rubocop//lib/rubocop/cop/base.rb#435 def attempt_correction(range, corrector); end # Reserved for Cop::Cop # - # source://rubocop//lib/rubocop/cop/base.rb#358 + # source://rubocop//lib/rubocop/cop/base.rb#361 def callback_argument(range); end # Called to complete an investigation # - # source://rubocop//lib/rubocop/cop/base.rb#391 + # source://rubocop//lib/rubocop/cop/base.rb#394 def complete_investigation; end # @return [Symbol, Corrector] offense status # - # source://rubocop//lib/rubocop/cop/base.rb#416 + # source://rubocop//lib/rubocop/cop/base.rb#409 def correct(range); end - # source://rubocop//lib/rubocop/cop/base.rb#376 + # source://rubocop//lib/rubocop/cop/base.rb#379 def current_corrector; end # Reserved for Commissioner: # - # source://rubocop//lib/rubocop/cop/base.rb#368 + # source://rubocop//lib/rubocop/cop/base.rb#371 def current_offense_locations; end - # source://rubocop//lib/rubocop/cop/base.rb#380 + # source://rubocop//lib/rubocop/cop/base.rb#383 def current_offenses; end - # source://rubocop//lib/rubocop/cop/base.rb#372 + # source://rubocop//lib/rubocop/cop/base.rb#375 def currently_disabled_lines; end - # source://rubocop//lib/rubocop/cop/base.rb#506 + # source://rubocop//lib/rubocop/cop/base.rb#499 def custom_severity; end - # source://rubocop//lib/rubocop/cop/base.rb#502 + # source://rubocop//lib/rubocop/cop/base.rb#495 def default_severity; end - # source://rubocop//lib/rubocop/cop/base.rb#456 + # source://rubocop//lib/rubocop/cop/base.rb#449 def disable_uncorrectable(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#492 + # source://rubocop//lib/rubocop/cop/base.rb#485 def enabled_line?(line_number); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#484 + # source://rubocop//lib/rubocop/cop/base.rb#477 def file_name_matches_any?(file, parameter, default_result); end - # source://rubocop//lib/rubocop/cop/base.rb#474 + # source://rubocop//lib/rubocop/cop/base.rb#467 def find_message(range, message); end - # source://rubocop//lib/rubocop/cop/base.rb#498 + # source://rubocop//lib/rubocop/cop/base.rb#491 def find_severity(_range, severity); end - # source://rubocop//lib/rubocop/cop/base.rb#519 + # source://rubocop//lib/rubocop/cop/base.rb#512 def range_for_original(range); end - # source://rubocop//lib/rubocop/cop/base.rb#463 + # source://rubocop//lib/rubocop/cop/base.rb#456 def range_from_node_or_range(node_or_range); end - # source://rubocop//lib/rubocop/cop/base.rb#411 + # Actually private methods + # + # source://rubocop//lib/rubocop/cop/base.rb#404 def reset_investigation; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#527 + # source://rubocop//lib/rubocop/cop/base.rb#520 def target_satisfies_all_gem_version_requirements?; end # @return [Symbol] offense status # - # source://rubocop//lib/rubocop/cop/base.rb#431 + # source://rubocop//lib/rubocop/cop/base.rb#424 def use_corrector(range, corrector); end class << self @@ -3193,51 +3197,54 @@ class RuboCop::Cop::Base # Naming # - # source://rubocop//lib/rubocop/cop/base.rb#90 + # source://rubocop//lib/rubocop/cop/base.rb#93 def badge; end # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#316 + # source://rubocop//lib/rubocop/cop/base.rb#319 def callbacks_needed; end - # source://rubocop//lib/rubocop/cop/base.rb#94 + # source://rubocop//lib/rubocop/cop/base.rb#97 def cop_name; end - # source://rubocop//lib/rubocop/cop/base.rb#98 + # source://rubocop//lib/rubocop/cop/base.rb#101 def department; end - # Cops (other than builtin) are encouraged to implement this + # Returns an url to view this cops documentation online. + # Requires 'DocumentationBaseURL' to be set for your department. + # Will follow the convention of RuboCops own documentation structure, + # overwrite this method to accommodate your custom layout. # # @api public # @return [String, nil] # - # source://rubocop//lib/rubocop/cop/base.rb#67 - def documentation_url; end + # source://rubocop//lib/rubocop/cop/base.rb#70 + def documentation_url(config = T.unsafe(nil)); end # Call for abstract Cop classes # - # source://rubocop//lib/rubocop/cop/base.rb#78 + # source://rubocop//lib/rubocop/cop/base.rb#81 def exclude_from_registry; end # Returns the value of attribute gem_requirements. # - # source://rubocop//lib/rubocop/cop/base.rb#135 + # source://rubocop//lib/rubocop/cop/base.rb#138 def gem_requirements; end # @private # - # source://rubocop//lib/rubocop/cop/base.rb#71 + # source://rubocop//lib/rubocop/cop/base.rb#74 def inherited(subclass); end # Override and return the Force class(es) you need to join # - # source://rubocop//lib/rubocop/cop/base.rb#115 + # source://rubocop//lib/rubocop/cop/base.rb#118 def joining_forces; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#102 + # source://rubocop//lib/rubocop/cop/base.rb#105 def lint?; end # Returns true if the cop name or the cop namespace matches any of the @@ -3245,7 +3252,7 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#108 + # source://rubocop//lib/rubocop/cop/base.rb#111 def match?(given_names); end # Register a version requirement for the given gem name. @@ -3260,7 +3267,7 @@ class RuboCop::Cop::Base # # https://guides.rubygems.org/patterns/#declaring-dependencies # - # source://rubocop//lib/rubocop/cop/base.rb#148 + # source://rubocop//lib/rubocop/cop/base.rb#151 def requires_gem(gem_name, *version_requirements); end # Returns if class supports autocorrect. @@ -3268,7 +3275,7 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#84 + # source://rubocop//lib/rubocop/cop/base.rb#87 def support_autocorrect?; end # Override if your cop should be called repeatedly for multiple investigations @@ -3281,22 +3288,17 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#126 + # source://rubocop//lib/rubocop/cop/base.rb#129 def support_multiple_source?; end private - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/base.rb#402 - def builtin?; end - - # source://rubocop//lib/rubocop/cop/base.rb#384 + # source://rubocop//lib/rubocop/cop/base.rb#387 def restrict_on_send; end end end -# source://rubocop//lib/rubocop/cop/base.rb#388 +# source://rubocop//lib/rubocop/cop/base.rb#391 RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array) # Reports of an investigation. @@ -3835,35 +3837,35 @@ class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#113 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#111 def forbidden_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#119 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#117 def forbidden_style?; end # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#93 - def message(range); end + def message(_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#103 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#101 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#107 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#105 def required_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#123 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#121 def required_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#127 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#125 def version_specification?(expression); end end @@ -4860,7 +4862,7 @@ end # Handles `Max` configuration parameters, especially setting them to an # appropriate value with --auto-gen-config. # -# @deprecated Use `exclude_limit ParameterName` instead. +# @deprecated Use `exclude_limit ` instead. # # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#8 module RuboCop::Cop::ConfigurableMax @@ -4869,7 +4871,7 @@ module RuboCop::Cop::ConfigurableMax # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#11 def max=(value); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#19 + # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#23 def max_parameter_name; end end @@ -4902,22 +4904,22 @@ RuboCop::Cop::ConfigurableNumbering::FORMATS = T.let(T.unsafe(nil), Hash) # # source://rubocop//lib/rubocop/cop/cop.rb#11 class RuboCop::Cop::Cop < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/cop.rb#53 + # source://rubocop//lib/rubocop/cop/cop.rb#65 def add_offense(node_or_range, location: T.unsafe(nil), message: T.unsafe(nil), severity: T.unsafe(nil), &block); end # Called before any investigation # # @api private # - # source://rubocop//lib/rubocop/cop/cop.rb#103 + # source://rubocop//lib/rubocop/cop/cop.rb#121 def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end # @deprecated # - # source://rubocop//lib/rubocop/cop/cop.rb#82 + # source://rubocop//lib/rubocop/cop/cop.rb#97 def corrections; end - # source://rubocop//lib/rubocop/cop/cop.rb#70 + # source://rubocop//lib/rubocop/cop/cop.rb#82 def find_location(node, loc); end # Returns the value of attribute offenses. @@ -4927,53 +4929,53 @@ class RuboCop::Cop::Cop < ::RuboCop::Cop::Base # Called after all on_... have been called # - # source://rubocop//lib/rubocop/cop/cop.rb#96 + # source://rubocop//lib/rubocop/cop/cop.rb#114 def on_investigation_end; end # Called before all on_... have been called # - # source://rubocop//lib/rubocop/cop/cop.rb#90 + # source://rubocop//lib/rubocop/cop/cop.rb#108 def on_new_investigation; end # @deprecated Use class method # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/cop.rb#76 + # source://rubocop//lib/rubocop/cop/cop.rb#88 def support_autocorrect?; end private - # source://rubocop//lib/rubocop/cop/cop.rb#121 + # source://rubocop//lib/rubocop/cop/cop.rb#139 def apply_correction(corrector); end # Override Base # - # source://rubocop//lib/rubocop/cop/cop.rb#117 + # source://rubocop//lib/rubocop/cop/cop.rb#135 def callback_argument(_range); end - # source://rubocop//lib/rubocop/cop/cop.rb#138 + # source://rubocop//lib/rubocop/cop/cop.rb#156 def correction_lambda; end - # source://rubocop//lib/rubocop/cop/cop.rb#144 + # source://rubocop//lib/rubocop/cop/cop.rb#162 def dedupe_on_node(node); end # Just for legacy # # @yield [corrector] # - # source://rubocop//lib/rubocop/cop/cop.rb#126 + # source://rubocop//lib/rubocop/cop/cop.rb#144 def emulate_v0_callsequence(corrector); end - # source://rubocop//lib/rubocop/cop/cop.rb#157 + # source://rubocop//lib/rubocop/cop/cop.rb#175 def range_for_original(range); end - # source://rubocop//lib/rubocop/cop/cop.rb#151 + # source://rubocop//lib/rubocop/cop/cop.rb#169 def suppress_clobbering; end class << self # @deprecated Use Registry.all # - # source://rubocop//lib/rubocop/cop/cop.rb#44 + # source://rubocop//lib/rubocop/cop/cop.rb#48 def all; end # source://rubocop//lib/rubocop/cop/cop.rb#29 @@ -4981,7 +4983,7 @@ class RuboCop::Cop::Cop < ::RuboCop::Cop::Base # @deprecated Use Registry.qualified_cop_name # - # source://rubocop//lib/rubocop/cop/cop.rb#49 + # source://rubocop//lib/rubocop/cop/cop.rb#57 def qualified_cop_name(name, origin); end # @deprecated Use Registry.global @@ -5093,7 +5095,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.3.1.0/lib/parser/source/tree_rewriter.rb#252 + # source://parser/3.3.4.2/lib/parser/source/tree_rewriter.rb#252 def rewrite; end # Swaps sources at the given ranges. @@ -5164,7 +5166,12 @@ module RuboCop::Cop::Documentation # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#34 + # source://rubocop//lib/rubocop/cop/documentation.rb#40 + def builtin?(cop_class); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/documentation.rb#35 def default_base_url; end # @api private @@ -5183,9 +5190,15 @@ module RuboCop::Cop::Documentation # source://rubocop//lib/rubocop/cop/documentation.rb#24 def base_url_for(cop_class, config); end + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/documentation.rb#40 + def builtin?(cop_class); end + # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#34 + # source://rubocop//lib/rubocop/cop/documentation.rb#35 def default_base_url; end # @api private @@ -5422,19 +5435,24 @@ RuboCop::Cop::EndKeywordAlignment::MSG = T.let(T.unsafe(nil), String) module RuboCop::Cop::EnforceSuperclass # @api private # - # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#35 + # source://rubocop-rails/2.26.0/lib/rubocop/cop/mixin/enforce_superclass.rb#19 def on_class(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#39 + # source://rubocop-rails/2.26.0/lib/rubocop/cop/mixin/enforce_superclass.rb#25 def on_send(node); end + private + + # source://rubocop-rails/2.26.0/lib/rubocop/cop/mixin/enforce_superclass.rb#33 + def register_offense(offense_node); end + class << self # @api private # @private # - # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#16 + # source://rubocop-rails/2.26.0/lib/rubocop/cop/mixin/enforce_superclass.rb#7 def included(base); end end end @@ -5525,37 +5543,53 @@ RuboCop::Cop::ForToEachCorrector::CORRECTION = T.let(T.unsafe(nil), String) class RuboCop::Cop::Force # @return [Force] a new instance of Force # - # source://rubocop//lib/rubocop/cop/force.rb#22 + # source://rubocop//lib/rubocop/cop/force.rb#32 def initialize(cops); end # Returns the value of attribute cops. # - # source://rubocop//lib/rubocop/cop/force.rb#7 + # source://rubocop//lib/rubocop/cop/force.rb#17 def cops; end - # source://rubocop//lib/rubocop/cop/force.rb#38 + # source://rubocop//lib/rubocop/cop/force.rb#50 def investigate(_processed_source); end - # source://rubocop//lib/rubocop/cop/force.rb#26 + # source://rubocop//lib/rubocop/cop/force.rb#36 def name; end - # source://rubocop//lib/rubocop/cop/force.rb#30 + # source://rubocop//lib/rubocop/cop/force.rb#40 def run_hook(method_name, *args); end class << self - # source://rubocop//lib/rubocop/cop/force.rb#9 + # source://rubocop//lib/rubocop/cop/force.rb#19 def all; end - # source://rubocop//lib/rubocop/cop/force.rb#18 + # source://rubocop//lib/rubocop/cop/force.rb#28 def force_name; end # @private # - # source://rubocop//lib/rubocop/cop/force.rb#13 + # source://rubocop//lib/rubocop/cop/force.rb#23 def inherited(subclass); end end end +# @api private +# +# source://rubocop//lib/rubocop/cop/force.rb#8 +class RuboCop::Cop::Force::HookError < ::StandardError + # @api private + # @return [HookError] a new instance of HookError + # + # source://rubocop//lib/rubocop/cop/force.rb#11 + def initialize(joining_cop); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/force.rb#9 + def joining_cop; end +end + # Common functionality for dealing with frozen string literals. # # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#6 @@ -5616,9 +5650,38 @@ module RuboCop::Cop::GemDeclaration def gem_declaration?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#5 +# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#5 module RuboCop::Cop::Gemspec; end +# Prefer `add_dependency` over `add_runtime_dependency` as the latter is +# considered soft-deprecated. +# +# @example +# +# # bad +# Gem::Specification.new do |spec| +# spec.add_runtime_dependency('rubocop') +# end +# +# # good +# Gem::Specification.new do |spec| +# spec.add_dependency('rubocop') +# end +# +# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#21 +class RuboCop::Cop::Gemspec::AddRuntimeDependency < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#28 + def on_send(node); end +end + +# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#24 +RuboCop::Cop::Gemspec::AddRuntimeDependency::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#26 +RuboCop::Cop::Gemspec::AddRuntimeDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Enforce that gem dependency version specifications or a commit reference (branch, # ref, or tag) are either required or forbidden. # @@ -5686,7 +5749,7 @@ class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#120 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#118 def add_dependency_method?(method_name); end # @return [Boolean] @@ -5699,40 +5762,40 @@ class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#134 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#132 def forbidden_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#140 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#138 def forbidden_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#114 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#112 def match_block_variable_name?(receiver_name); end # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#104 - def message(range); end + def message(_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#124 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#122 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#128 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#126 def required_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#144 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#142 def required_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#148 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#146 def version_specification?(expression); end end @@ -5921,8 +5984,8 @@ RuboCop::Cop::Gemspec::DevelopmentDependencies::RESTRICT_ON_SEND = T.let(T.unsaf # # # good # Gem::Specification.new do |spec| -# spec.add_runtime_dependency('parallel', '~> 1.10') -# spec.add_runtime_dependency('parser', '>= 2.3.3.1', '< 3.0') +# spec.add_dependency('parallel', '~> 1.10') +# spec.add_dependency('parser', '>= 2.3.3.1', '< 3.0') # end # # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#37 @@ -6225,15 +6288,15 @@ RuboCop::Cop::Gemspec::RequiredRubyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(ni # # bad # Gem::Specification.new do |spec| # if RUBY_VERSION >= '3.0' -# spec.add_runtime_dependency 'gem_a' +# spec.add_dependency 'gem_a' # else -# spec.add_runtime_dependency 'gem_b' +# spec.add_dependency 'gem_b' # end # end # # # good # Gem::Specification.new do |spec| -# spec.add_runtime_dependency 'gem_a' +# spec.add_dependency 'gem_a' # end # # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#28 @@ -6618,40 +6681,45 @@ module RuboCop::Cop::HashShorthandSyntax # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#125 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126 def brackets?(method_dispatch_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#155 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#156 def breakdown_value_types_of_hash(hash_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#102 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#103 def def_node_that_require_parentheses(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#179 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#185 def each_omittable_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#175 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#181 def each_omitted_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#80 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81 def enforced_shorthand_syntax; end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#117 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#118 def find_ancestor_method_dispatch_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#167 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168 def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#171 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172 def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#74 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176 + def ignore_explicit_omissible_hash_shorthand_syntax?(hash_value_type_breakdown); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#75 def ignore_hash_shorthand_syntax?(pair_node); end # @return [Boolean] @@ -6661,18 +6729,18 @@ module RuboCop::Cop::HashShorthandSyntax # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#140 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#141 def last_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#148 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#149 def method_dispatch_as_argument?(method_dispatch_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#183 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#189 def mixed_shorthand_syntax_check(hash_value_type_breakdown); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#199 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#205 def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49 @@ -6680,22 +6748,22 @@ module RuboCop::Cop::HashShorthandSyntax # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#84 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#85 def require_hash_value?(hash_key_source, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#93 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#94 def require_hash_value_for_around_hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#129 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#130 def use_element_of_hash_literal_as_receiver?(ancestor, parent); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#134 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#135 def use_modifier_form_without_parenthesized_method_call?(ancestor); end end @@ -6708,12 +6776,12 @@ RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil), # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#209 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#216 class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#218 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#225 def first_argument; end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#222 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#229 def last_argument; end # Returns the value of attribute node @@ -6727,7 +6795,7 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct # @return [Object] the newly set value def node=(_); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#210 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#217 def selector; end class << self @@ -7032,7 +7100,7 @@ RuboCop::Cop::IfThenCorrector::DEFAULT_INDENTATION_WIDTH = T.let(T.unsafe(nil), # @deprecated IgnoredMethods class has been replaced with AllowedMethods. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#40 +# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#46 RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods # Handles adding and checking ignored nodes. @@ -7060,7 +7128,7 @@ end # @deprecated IgnoredPattern class has been replaced with AllowedPattern. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#54 +# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#66 RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern # Common functionality for checking integer nodes. @@ -7437,7 +7505,7 @@ RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), St # right-hand-side of a multi-line assignment. # # The indentation of the remaining lines can be corrected with -# other cops such as `IndentationConsistency` and `EndAlignment`. +# other cops such as `Layout/IndentationConsistency` and `Layout/EndAlignment`. # # @example # # bad @@ -7452,7 +7520,7 @@ RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), St # 'bar' # end # -# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#24 +# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#25 class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment include ::RuboCop::Cop::Alignment @@ -7460,17 +7528,17 @@ class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#42 + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#43 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#33 + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#34 def check_assignment(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#46 + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#47 def leftmost_multiple_assignment(node); end end -# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#29 +# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#30 RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keyword of `begin` is aligned properly. @@ -8458,43 +8526,40 @@ RuboCop::Cop::Layout::CommentIndentation::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # if # some_condition # do_something # end -# @example # # # good -# # if some_condition # do_something # end # -# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#25 +# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#21 class RuboCop::Cop::Layout::ConditionPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#31 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#27 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#37 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33 def on_until(node); end - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#37 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33 def on_while(node); end private - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#44 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#40 def check(node); end - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#58 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#54 def message(condition); end end -# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#29 +# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#25 RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keywords of method definitions are @@ -8772,35 +8837,35 @@ class RuboCop::Cop::Layout::EmptyComment < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#131 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#133 def allow_border_comment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#135 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#137 def allow_margin_comment?; end # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#97 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#127 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#129 def comment_text(comment); end # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#108 def concat_consecutive_comments(comments); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#139 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#141 def current_token(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#117 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#119 def empty_comment_only?(comment_text); end # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#85 def investigate(comments); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#143 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#145 def previous_token(node); end end @@ -10514,8 +10579,8 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin # second_params # @example EnforcedStyle: special_for_inner_method_call # # The first argument should normally be indented one step more than -# # the preceding line, but if it's a argument for a method call that -# # is itself a argument in a method call, then the inner argument +# # the preceding line, but if it's an argument for a method call that +# # is itself an argument in a method call, then the inner argument # # should be indented relative to the inner method. # # # good @@ -11751,7 +11816,7 @@ RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(ni # Checks the indentation of the here document bodies. The bodies # are indented one step. # -# Note: When ``Layout/LineLength``'s `AllowHeredoc` is false (not default), +# NOTE: When ``Layout/LineLength``'s `AllowHeredoc` is false (not default), # this cop does not add any offenses for long here documents to # avoid ``Layout/LineLength``'s offenses. # @@ -12741,29 +12806,29 @@ RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::PARENT_TYPES_FOR_IN # split across lines. These include arrays, hashes, and # method calls with argument lists. # -# If autocorrection is enabled, the following Layout cops +# If autocorrection is enabled, the following cops # are recommended to further format the broken lines. # (Many of these are enabled by default.) # -# * ArgumentAlignment -# * ArrayAlignment -# * BlockAlignment -# * BlockDelimiters -# * BlockEndNewline -# * ClosingParenthesisIndentation -# * FirstArgumentIndentation -# * FirstArrayElementIndentation -# * FirstHashElementIndentation -# * FirstParameterIndentation -# * HashAlignment -# * IndentationWidth -# * MultilineArrayLineBreaks -# * MultilineBlockLayout -# * MultilineHashBraceLayout -# * MultilineHashKeyLineBreaks -# * MultilineMethodArgumentLineBreaks -# * MultilineMethodParameterLineBreaks -# * ParameterAlignment +# * `Layout/ArgumentAlignment` +# * `Layout/ArrayAlignment` +# * `Layout/BlockAlignment` +# * `Layout/BlockEndNewline` +# * `LayoutClosingParenthesisIndentation` +# * `LayoutFirstArgumentIndentation` +# * `LayoutFirstArrayElementIndentation` +# * `LayoutFirstHashElementIndentation` +# * `LayoutFirstParameterIndentation` +# * `LayoutHashAlignment` +# * `LayoutIndentationWidth` +# * `LayoutMultilineArrayLineBreaks` +# * `LayoutMultilineBlockLayout` +# * `LayoutMultilineHashBraceLayout` +# * `LayoutMultilineHashKeyLineBreaks` +# * `LayoutMultilineMethodArgumentLineBreaks` +# * `LayoutMultilineMethodParameterLineBreaks` +# * `Layout/ParameterAlignment` +# * `Style/BlockDelimiters` # # Together, these cops will pretty print hashes, arrays, # method calls, etc. For example, let's say the max columns @@ -15101,44 +15166,44 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#256 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#259 def align_hash_cop_config; end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#195 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#198 def autocorrect(corrector, range, right_operand); end # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#179 def check_operator(type, operator, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#209 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#212 def enclose_operator_with_space(corrector, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#236 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#239 def excess_leading_space?(type, operator, with_space); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#251 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#254 def excess_trailing_space?(right_operand, with_space); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#274 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#277 def force_equal_sign_alignment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#260 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#263 def hash_table_style?; end # @yield [msg] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#190 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#193 def offense(type, operator, with_space, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#222 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#225 def offense_message(type, operator, with_space, right_operand); end # @return [Boolean] @@ -15153,17 +15218,17 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#278 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#281 def should_not_have_surrounding_space?(operator, right_operand); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#264 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#267 def space_around_exponent_operator?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#268 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#271 def space_around_slash_operator?(right_operand); end class << self @@ -16251,23 +16316,20 @@ class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Bas include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#31 + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#30 def on_interpolation(begin_node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#47 + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#46 def autocorrect(corrector, begin_node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#57 + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#56 def delimiters(begin_node); end end # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#28 -RuboCop::Cop::Layout::SpaceInsideStringInterpolation::NO_SPACE_MSG = T.let(T.unsafe(nil), String) - -# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#29 -RuboCop::Cop::Layout::SpaceInsideStringInterpolation::SPACE_MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil), String) # Looks for trailing blank lines and a final newline in the # source code. @@ -16620,7 +16682,6 @@ RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsaf # # # bad # some_method a { |val| puts val } -# @example # # # good # # With parentheses, there's no ambiguity. @@ -16653,38 +16714,38 @@ RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsaf # expect { do_something }.to change { object.attribute } # expect { do_something }.to not_change { object.attribute } # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#54 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#52 class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#64 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#64 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#85 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#83 def allowed_method_pattern?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#81 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#79 def ambiguous_block_association?(send_node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#91 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#89 def message(send_node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#97 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#95 def wrap_in_parentheses(corrector, node); end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#60 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#58 RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String) # Checks for ambiguous operators in the first argument of a @@ -16697,51 +16758,50 @@ RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String # # The `*` is interpreted as a splat operator but it could possibly be # # a `*` method invocation (i.e. `do_something.*(some_array)`). # do_something *some_array -# @example # # # good # # # With parentheses, there's no ambiguity. # do_something(*some_array) # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#23 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#21 class RuboCop::Cop::Lint::AmbiguousOperator < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#45 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#43 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#64 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#62 def find_offense_node_by(diagnostic); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#82 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#80 def message(diagnostic); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#92 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#90 def offense_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#88 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#86 def offense_position?(node, diagnostic); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#101 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#99 def unary_operator?(node, diagnostic); end class << self - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#41 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#39 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#26 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#24 RuboCop::Cop::Lint::AmbiguousOperator::AMBIGUITIES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#36 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#34 RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String) # Looks for expressions containing multiple binary operators @@ -16907,40 +16967,39 @@ RuboCop::Cop::Lint::AmbiguousRange::MSG = T.let(T.unsafe(nil), String) # # but it could possibly be `/` method invocations. # # (i.e. `do_something./(pattern)./(i)`) # do_something /pattern/i -# @example # # # good # # # With parentheses, there's no ambiguity. # do_something(/pattern/i) # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#24 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#22 class RuboCop::Cop::Lint::AmbiguousRegexpLiteral < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#31 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#29 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#56 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#54 def find_offense_node(node, regexp_receiver); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#49 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#47 def find_offense_node_by(diagnostic); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#67 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#65 def first_argument_is_regexp?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#71 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#69 def method_chain_to_regexp_receiver?(node, regexp_receiver); end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#27 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#25 RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String) # Checks for assignments in the conditions of @@ -16977,6 +17036,9 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment extend ::RuboCop::Cop::AutoCorrector + # source://standard/1.40.0/lib/standard/rubocop/ext.rb#4 + def message(_); end + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_if(node); end @@ -16998,9 +17060,6 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#86 def conditional_assignment?(asgn_node); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#74 - def message(_node); end - # @return [Boolean] # # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#90 @@ -17106,7 +17165,6 @@ RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(ni # # # good # true -# @example # # # bad # :false @@ -17114,23 +17172,23 @@ RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(ni # # good # false # -# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#29 +# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#27 class RuboCop::Cop::Lint::BooleanSymbol < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#35 + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#33 def boolean_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#37 + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#35 def on_sym(node); end private - # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#50 + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#48 def autocorrect(corrector, node); end end -# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#32 +# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#30 RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) # Checks for circular argument references in optional keyword @@ -17141,54 +17199,45 @@ RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # def bake(pie: pie) # pie.heat_up # end -# @example # # # good -# # def bake(pie:) # pie.refrigerate # end -# @example # # # good -# # def bake(pie: self.pie) # pie.feed_to(user) # end -# @example # # # bad -# # def cook(dry_ingredients = dry_ingredients) # dry_ingredients.reduce(&:+) # end -# @example # # # good -# # def cook(dry_ingredients = self.dry_ingredients) # dry_ingredients.combine # end # -# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#50 +# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#37 class RuboCop::Cop::Lint::CircularArgumentReference < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#53 + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#40 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#57 + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#44 def on_optarg(node); end private - # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#63 + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#50 def check_for_circular_argument_references(arg_name, arg_value); end end -# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#51 +# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#38 RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String) # Do not define constants within a block, since the block's scope does not @@ -17435,7 +17484,6 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) # binding.pry # do_something # end -# @example # # # bad (ok during development) # @@ -17444,7 +17492,6 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) # byebug # do_something # end -# @example # # # good # @@ -17464,50 +17511,50 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) # # require 'my_debugger/start' # -# source://rubocop//lib/rubocop/cop/lint/debugger.rb#78 +# source://rubocop//lib/rubocop/cop/lint/debugger.rb#74 class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#82 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#78 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#142 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#138 def assumed_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#121 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#117 def assumed_usage_context?(node); end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#131 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#127 def chained_method_name(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#108 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#104 def debugger_method?(send_node); end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#94 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90 def debugger_methods; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#114 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#110 def debugger_require?(send_node); end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#101 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#97 def debugger_requires; end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#86 def message(node); end end -# source://rubocop//lib/rubocop/cop/lint/debugger.rb#80 +# source://rubocop//lib/rubocop/cop/lint/debugger.rb#76 RuboCop::Cop::Lint::Debugger::BLOCK_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/debugger.rb#79 +# source://rubocop//lib/rubocop/cop/lint/debugger.rb#75 RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String) # Checks for uses of the deprecated class method usages. @@ -17644,25 +17691,17 @@ RuboCop::Cop::Lint::DeprecatedConstants::SUGGEST_GOOD_MSG = T.let(T.unsafe(nil), # # @example # -# # Example for OpenSSL::Cipher instantiation. -# # # bad # OpenSSL::Cipher::AES.new(128, :GCM) # # # good # OpenSSL::Cipher.new('aes-128-gcm') -# @example -# -# # Example for OpenSSL::Digest instantiation. # # # bad # OpenSSL::Digest::SHA256.new # # # good # OpenSSL::Digest.new('SHA256') -# @example -# -# # Example for ::Digest inherited class methods. # # # bad # OpenSSL::Digest::SHA256.digest('foo') @@ -17670,51 +17709,51 @@ RuboCop::Cop::Lint::DeprecatedConstants::SUGGEST_GOOD_MSG = T.let(T.unsafe(nil), # # good # OpenSSL::Digest.digest('SHA256', 'foo') # -# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#40 +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#30 class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#49 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#39 def algorithm_const(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#59 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#49 def digest_const?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#63 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#53 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#110 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#100 def algorithm_name(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#75 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#65 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#139 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#129 def build_cipher_arguments(node, algorithm_name, no_arguments); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#102 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#92 def correction_range(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#87 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#77 def message(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#106 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#96 def openssl_class(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#128 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#118 def replacement_args(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#120 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#110 def sanitize_arguments(arguments); end end -# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#44 +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#34 RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#46 +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#36 RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::NO_ARG_ALGORITHM = T.let(T.unsafe(nil), Array) # Checks constructors for disjunctive assignments (`||=`) that should @@ -17911,17 +17950,14 @@ RuboCop::Cop::Lint::DuplicateBranch::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # case x # when 'first' # do_something # when 'first' # do_something_else # end -# @example # # # good -# # case x # when 'first' # do_something @@ -17929,13 +17965,13 @@ RuboCop::Cop::Lint::DuplicateBranch::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#30 +# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#26 class RuboCop::Cop::Lint::DuplicateCaseCondition < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#33 + # source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#29 def on_case(case_node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#31 +# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#27 RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated conditions used in if 'elsif'. @@ -17972,23 +18008,20 @@ RuboCop::Cop::Lint::DuplicateElsifCondition::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # hash = { food: 'apple', food: 'orange' } -# @example # # # good -# # hash = { food: 'apple', other_food: 'orange' } # -# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#22 +# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#18 class RuboCop::Cop::Lint::DuplicateHashKey < ::RuboCop::Cop::Base include ::RuboCop::Cop::Duplication - # source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#27 + # source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#23 def on_hash(node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#25 +# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#21 RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String) # Checks for duplicated magic comments. @@ -18140,7 +18173,6 @@ RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # def foo # 1 # end @@ -18148,19 +18180,15 @@ RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) # def foo # 2 # end -# @example # # # bad -# # def foo # 1 # end # # alias foo bar -# @example # # # good -# # def foo # 1 # end @@ -18168,98 +18196,96 @@ RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) # def bar # 2 # end -# @example # # # good -# # def foo # 1 # end # # alias bar foo # -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#52 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#42 class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Base # @return [DuplicateMethods] a new instance of DuplicateMethods # - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#57 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#47 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#98 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#88 def alias_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#85 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#75 def method_alias?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#79 def on_alias(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#63 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#53 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#72 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#62 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#104 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#94 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#103 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#93 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#117 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#107 def check_const_receiver(node, name, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#124 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#114 def check_self_receiver(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#208 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#198 def found_attr(node, args, readable: T.unsafe(nil), writable: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#136 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#126 def found_instance_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#159 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#149 def found_method(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#149 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#139 def found_sclass_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#186 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#176 def location(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#218 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#208 def lookup_constant(node, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#131 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#121 def message_for_dup(node, method_name, key); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#178 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#168 def method_key(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#194 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#184 def on_attr(node, attr_name, args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#250 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#240 def possible_dsl?(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#236 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#226 def qualified_name(enclosing, namespace, mod_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#260 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#250 def source_location(node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#55 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#45 RuboCop::Cop::Lint::DuplicateMethods::DEF_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#53 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#43 RuboCop::Cop::Lint::DuplicateMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#54 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#44 RuboCop::Cop::Lint::DuplicateMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for duplicate elements in Regexp character classes. @@ -18416,31 +18442,28 @@ RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # sum = numbers.each_with_object(0) { |e, a| a += e } -# @example # # # good -# # num = 0 # sum = numbers.each_with_object(num) { |e, a| a += e } # -# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#24 +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#20 class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#25 def each_with_object?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#33 + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#33 + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#25 +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#21 RuboCop::Cop::Lint::EachWithObjectArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#26 +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#22 RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for odd `else` block layout - like @@ -18460,7 +18483,6 @@ RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(ni # else do_this # do_that # end -# @example # # # good # @@ -18480,28 +18502,28 @@ RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(ni # do_that # end # -# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#43 +# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#41 class RuboCop::Cop::Lint::ElseLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#50 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#48 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#81 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#79 def autocorrect(corrector, node, first_else); end - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#61 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#59 def check(node); end - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#71 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#69 def check_else(node); end end -# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#48 +# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#46 RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String) # Checks for blocks without a body. @@ -18777,52 +18799,45 @@ end # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#68 RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) -# Checks for empty `ensure` blocks +# Checks for empty `ensure` blocks. # # @example # # # bad -# # def some_method # do_something # ensure # end -# @example # # # bad -# # begin # do_something # ensure # end -# @example # # # good -# # def some_method # do_something # ensure # do_something_else # end -# @example # # # good -# # begin # do_something # ensure # do_something_else # end # -# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#45 +# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#35 class RuboCop::Cop::Lint::EmptyEnsure < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#50 + # source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#40 def on_ensure(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#48 +# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#38 RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of empty expressions. @@ -18957,24 +18972,21 @@ RuboCop::Cop::Lint::EmptyInPattern::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # "result is #{}" -# @example # # # good -# # "result is #{some_result}" # -# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#19 +# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#15 class RuboCop::Cop::Lint::EmptyInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#25 + # source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#21 def on_interpolation(begin_node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#23 +# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#19 RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of `when` branches without a body. @@ -18987,7 +18999,6 @@ RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) # do_something # when baz # end -# @example # # # good # case condition @@ -19015,15 +19026,15 @@ RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) # # do nothing # end # -# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#47 +# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#45 class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp - # source://rubocop//lib/rubocop/cop/lint/empty_when.rb#52 + # source://rubocop//lib/rubocop/cop/lint/empty_when.rb#50 def on_case(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#50 +# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#48 RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # Checks for `return` from an `ensure` block. @@ -19036,17 +19047,14 @@ RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # def foo # do_something # ensure # cleanup # return self # end -# @example # # # good -# # def foo # do_something # self @@ -19054,8 +19062,7 @@ RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # cleanup # end # -# # also good -# +# # good # def foo # begin # do_something @@ -19067,16 +19074,16 @@ RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # cleanup # end # -# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#47 +# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#42 class RuboCop::Cop::Lint::EnsureReturn < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#53 + # source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#48 def on_ensure(node); end end -# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#51 +# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#46 RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String) # Emulates the following Ruby warnings in Ruby 2.6. @@ -19140,36 +19147,45 @@ class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#83 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#81 def erb_new_with_non_keyword_arguments(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#88 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#86 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#153 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#160 def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#108 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#115 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#123 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#130 def build_kwargs(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#119 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#126 def correct_arguments?(arguments); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#140 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#104 + def message(positional_argument_index, arg_value); end + + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#147 def override_by_legacy_args(kwargs, node); end end +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#74 +RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_EOUTVAR = T.let(T.unsafe(nil), String) + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#68 -RuboCop::Cop::Lint::ErbNewArguments::MESSAGES = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_SAFE_LEVEL = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#71 +RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_TRIM_MODE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#80 +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#78 RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Looks for uses of flip-flop operator @@ -19240,10 +19256,10 @@ class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#89 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#91 def check_numeric_returning_method(node); end - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#73 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#75 def check_send(node); end # @return [Boolean] @@ -19279,21 +19295,18 @@ RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # @example # # # bad -# # float = 3.0e400 -# @example # # # good -# # float = 42.9 # -# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#21 +# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#17 class RuboCop::Cop::Lint::FloatOutOfRange < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#24 + # source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#20 def on_float(node); end end -# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#22 +# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#18 RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # This lint sees if there is a mismatch between the number of @@ -19307,138 +19320,131 @@ RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # format('A value: %s and another: %i', a_value) -# @example # # # good -# # format('A value: %s and another: %i', a_value, another) -# @example # # # bad -# # format('Unnumbered format: %s and numbered: %2$s', a_value, another) -# @example # # # good -# # format('Numbered format: %1$s and numbered %2$s', a_value, another) # -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#37 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#27 class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#100 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#90 def called_on_string?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#49 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#39 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#137 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#127 def count_format_matches(node); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#119 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#109 def count_matches(node); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#141 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#131 def count_percent_matches(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#129 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#119 def countable_format?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#133 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#123 def countable_percent?(node); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#153 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#143 def expected_fields_count(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#168 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#158 def format?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#146 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#136 def format_method?(name, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#64 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#54 def format_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#115 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#105 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#68 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#58 def invalid_format_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#91 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#81 def matched_arguments_count?(expected, passed); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#186 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#176 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#105 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#95 def method_with_format_args?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#77 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#67 def offending_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#176 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#166 def percent?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#109 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#99 def splat_args?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#172 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#162 def sprintf?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#195 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#185 def string_type?(node); end end -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#44 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#34 RuboCop::Cop::Lint::FormatParameterMismatch::KERNEL = T.let(T.unsafe(nil), String) # http://rubular.com/r/CvpbxkcTzy # -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#39 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#29 RuboCop::Cop::Lint::FormatParameterMismatch::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#41 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#31 RuboCop::Cop::Lint::FormatParameterMismatch::MSG_INVALID = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#47 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#37 RuboCop::Cop::Lint::FormatParameterMismatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#45 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#35 RuboCop::Cop::Lint::FormatParameterMismatch::SHOVEL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#46 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#36 RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), Array) # Prefer using `Hash#compare_by_identity` rather than using `object_id` @@ -19618,12 +19624,9 @@ RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # @example # # # bad -# # array = ['Item 1' 'Item 2'] -# @example # # # good -# # array = ['Item 1Item 2'] # array = ['Item 1' + 'Item 2'] # array = [ @@ -19631,43 +19634,45 @@ RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # 'Item 2' # ] # -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#25 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#21 class RuboCop::Cop::Lint::ImplicitStringConcatenation < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#33 + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#32 def on_dstr(node); end private - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#83 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#86 def display_str(node); end - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#50 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#53 def each_bad_cons(node); end - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#65 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#68 def ending_delimiter(str); end - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#91 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#94 def str_content(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#75 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#78 def string_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#79 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#82 def string_literals?(node1, node2); end end -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#28 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#26 RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_ARRAY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#30 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#28 RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_METHOD = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#26 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#24 RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), String) # Checks for `IO.select` that is incompatible with Fiber Scheduler since Ruby 3.0. @@ -19729,7 +19734,6 @@ RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T # @example # # # bad -# # class C # private # @@ -19737,10 +19741,8 @@ RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T # puts 'hi' # end # end -# @example # # # good -# # class C # def self.method # puts 'hi' @@ -19748,10 +19750,8 @@ RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T # # private_class_method :method # end -# @example # # # good -# # class C # class << self # private @@ -19762,49 +19762,49 @@ RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T # end # end # -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#48 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#41 class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 def on_module(node); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#55 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#48 def private_class_methods(param0); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#109 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#102 def access_modifier?(node); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#66 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 def check_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#113 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#106 def correct_visibility?(node, modifier, ignored_methods); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#78 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#71 def format_message(modifier); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#91 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#84 def ineffective_modifier(node, ignored_methods = T.unsafe(nil), modifier = T.unsafe(nil), &block); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#74 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#67 def private_class_method_names(node); end end -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#51 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#44 RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PRIVATE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#45 RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PROTECTED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#49 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#42 RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String) # Looks for error classes inheriting from `Exception`. @@ -19883,33 +19883,30 @@ RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # @example # # # bad -# # foo = 'something with #{interpolation} inside' -# @example # # # good -# # foo = "something with #{interpolation} inside" # -# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#25 +# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#21 class RuboCop::Cop::Lint::InterpolationCheck < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#31 + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#27 def on_str(node); end private - # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#42 + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#38 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#53 + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#49 def heredoc?(node); end end -# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#28 +# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#24 RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String) # Emulates the following Ruby warning in Ruby 3.3. @@ -20152,84 +20149,81 @@ RuboCop::Cop::Lint::LiteralAssignmentInCondition::MSG = T.let(T.unsafe(nil), Str # @example # # # bad -# # "result is #{10}" -# @example # # # good -# # "result is 10" # -# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#19 +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#15 class RuboCop::Cop::Lint::LiteralInInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#28 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#24 def on_interpolation(begin_node); end private - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#62 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#58 def autocorrected_value(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#108 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#104 def autocorrected_value_for_array(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#114 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#110 def autocorrected_value_for_hash(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#84 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#80 def autocorrected_value_for_string(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#92 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#88 def autocorrected_value_for_symbol(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#125 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#121 def autocorrected_value_in_hash(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#99 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#95 def autocorrected_value_in_hash_for_symbol(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#155 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#151 def ends_heredoc_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#163 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#159 def in_array_percent_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#48 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#44 def offending?(node); end # Does node print its own source when converted to a string? # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#146 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#142 def prints_as_self?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#151 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#147 def space_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#56 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#52 def special_keyword?(node); end end -# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#26 +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#22 RuboCop::Cop::Lint::LiteralInInterpolation::COMPOSITE = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#25 +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#21 RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for uses of `begin...end while/until something`. @@ -20242,15 +20236,6 @@ RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # begin # do_something # end while some_condition -# @example -# -# # bad -# -# # using until -# begin -# do_something -# end until some_condition -# @example # # # good # @@ -20259,7 +20244,13 @@ RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # do_something # break unless some_condition # end -# @example +# +# # bad +# +# # using until +# begin +# do_something +# end until some_condition # # # good # @@ -20269,29 +20260,29 @@ RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # break if some_condition # end # -# source://rubocop//lib/rubocop/cop/lint/loop.rb#50 +# source://rubocop//lib/rubocop/cop/lint/loop.rb#44 class RuboCop::Cop::Lint::Loop < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/loop.rb#59 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#53 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/lint/loop.rb#55 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#49 def on_while_post(node); end private - # source://rubocop//lib/rubocop/cop/lint/loop.rb#79 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#73 def build_break_line(node); end - # source://rubocop//lib/rubocop/cop/lint/loop.rb#75 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#69 def keyword_and_condition_range(node); end - # source://rubocop//lib/rubocop/cop/lint/loop.rb#65 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#59 def register_offense(node); end end -# source://rubocop//lib/rubocop/cop/lint/loop.rb#53 +# source://rubocop//lib/rubocop/cop/lint/loop.rb#47 RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String) # cop disables on wide ranges of code, that latter contributors to @@ -20637,15 +20628,17 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe # Checks for nested method definitions. # -# @example AllowedPatterns: ['baz'] -# # good -# def foo(obj) -# obj.do_baz do +# @example +# +# # bad +# +# # `bar` definition actually produces methods in the same scope +# # as the outer `foo` method. Furthermore, the `bar` method +# # will be redefined every time `foo` is invoked. +# def foo # def bar # end # end -# end -# @example # # # good # @@ -20653,7 +20646,6 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe # bar = -> { puts 'hello' } # bar.call # end -# @example # # # good # @@ -20673,7 +20665,6 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe # end # end # end -# @example # # # good # @@ -20707,49 +20698,46 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe # end # end # end -# @example -# -# # bad -# -# # `bar` definition actually produces methods in the same scope -# # as the outer `foo` method. Furthermore, the `bar` method -# # will be redefined every time `foo` is invoked. -# def foo +# @example AllowedPatterns: ['baz'] +# # good +# def foo(obj) +# obj.do_baz do # def bar # end # end +# end # -# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 +# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#91 class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#133 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#127 def eval_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#138 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#132 def exec_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#103 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#103 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#126 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#120 def allowed_method_name?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#121 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#115 def scoping_method_call?(child); end end -# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#101 +# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#95 RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Checks for nested percent literals. @@ -20815,38 +20803,35 @@ RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array) # @example # # # bad -# # result = (1..4).reduce(0) do |acc, i| # next if i.odd? # acc + i # end -# @example # # # good -# # result = (1..4).reduce(0) do |acc, i| # next acc if i.odd? # acc + i # end # -# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#25 +# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#21 class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#24 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#42 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38 def on_block_body_of_reduce(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#24 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#49 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#45 def parent_block_node(node); end end -# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#26 +# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#22 RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of a `return` inside a `begin..end` block @@ -20857,16 +20842,13 @@ RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # @some_variable ||= begin # return some_value if some_condition_is_met # # do_something # end -# @example # # # good -# # @some_variable ||= begin # if some_condition_is_met # some_value @@ -20876,7 +20858,6 @@ RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # end # # # good -# # some_variable = if some_condition_is_met # return if another_condition_is_met # @@ -20885,19 +20866,19 @@ RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#43 +# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#38 class RuboCop::Cop::Lint::NoReturnInBeginEndBlocks < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 def on_or_asgn(node); end end -# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#44 +# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#39 RuboCop::Cop::Lint::NoReturnInBeginEndBlocks::MSG = T.let(T.unsafe(nil), String) # Checks for non-atomic file operation. @@ -21585,44 +21566,41 @@ RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), S # @example # # # bad -# # %w('foo', "bar") -# @example # # # good -# # %w(foo bar) # -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#33 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#29 class RuboCop::Cop::Lint::PercentStringArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#44 + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#40 def on_array(node); end - # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#48 + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#44 def on_percent_literal(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#65 + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#61 def contains_quotes_or_commas?(node); end end -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#38 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#34 RuboCop::Cop::Lint::PercentStringArray::LEADING_QUOTE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#41 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#37 RuboCop::Cop::Lint::PercentStringArray::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#37 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#33 RuboCop::Cop::Lint::PercentStringArray::QUOTES_AND_COMMAS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#39 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#35 RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Regexp) # Checks for colons and commas in %i, e.g. `%i(:foo, :bar)` @@ -21634,43 +21612,40 @@ RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Re # @example # # # bad -# # %i(:foo, :bar) -# @example # # # good -# # %i(foo bar) # -# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#23 +# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#19 class RuboCop::Cop::Lint::PercentSymbolArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#30 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#26 def on_array(node); end - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#34 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#30 def on_percent_literal(node); end private - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#42 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#38 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#52 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#48 def contains_colons_or_commas?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#62 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#58 def non_alphanumeric_literal?(literal); end end -# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#27 +# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#23 RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String) # Checks for `raise` or `fail` statements which are @@ -21736,35 +21711,32 @@ RuboCop::Cop::Lint::RaiseException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # @example # # # bad -# # rand 1 # Kernel.rand(-1) # rand 1.0 # rand(-1.0) -# @example # # # good -# # 0 # just use 0 instead # -# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#23 +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#19 class RuboCop::Cop::Lint::RandOne < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#32 + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#28 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#28 + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#24 def rand_one?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#40 + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#36 def message(node); end end -# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#24 +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#20 RuboCop::Cop::Lint::RandOne::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#25 +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#21 RuboCop::Cop::Lint::RandOne::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # removed without causing any offenses to be reported. It's implemented @@ -21945,13 +21917,14 @@ RuboCop::Cop::Lint::RedundantCopDisableDirective::SIMILAR_COP_NAMES_CACHE = T.le # that cop checks whether any cop was actually enabled. # # @example +# # # bad # foo = 1 # # rubocop:enable Layout/LineLength # # # good # foo = 1 -# @example +# # # bad # # rubocop:disable Style/StringLiterals # foo = "1" @@ -21965,54 +21938,54 @@ RuboCop::Cop::Lint::RedundantCopDisableDirective::SIMILAR_COP_NAMES_CACHE = T.le # # rubocop:enable all # baz # -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#37 +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#39 class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#44 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#46 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#120 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#122 def all_or_name(name); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#76 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#78 def comment_start(comment); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#80 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#82 def cop_name_indention(comment, name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#124 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#126 def department?(directive, name); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#71 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#73 def range_of_offense(comment, name); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#95 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#97 def range_to_remove(begin_pos, end_pos, comment); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#84 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#86 def range_with_comma(comment, name); end # If the list of cops is comma-separated, but without a empty space after the comma, # we should **not** remove the prepending empty space, thus begin_pos += 1 # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#114 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#116 def range_with_comma_after(comment, start, begin_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#108 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#110 def range_with_comma_before(start, begin_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#53 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#55 def register_offense(comment, cop_names); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#42 +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#44 RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), String) # Sort globbed results by default in Ruby 3.0. @@ -22313,7 +22286,7 @@ RuboCop::Cop::Lint::RedundantSafeNavigation::NIL_SPECIFIC_METHODS = T.let(T.unsa # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#87 RuboCop::Cop::Lint::RedundantSafeNavigation::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) -# Checks for unneeded usages of splat expansion +# Checks for unneeded usages of splat expansion. # # @example # @@ -22466,47 +22439,44 @@ RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), St # @example # # # bad -# # "result is #{something.to_s}" # print something.to_s # puts something.to_s # warn something.to_s -# @example # # # good -# # "result is #{something}" # print something # puts something # warn something # -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#27 +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#23 class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#38 + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#34 def on_interpolation(begin_node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#46 + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#42 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#36 + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#32 def to_s_without_args?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#58 + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#54 def register_offense(node, context); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#31 +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#27 RuboCop::Cop::Lint::RedundantStringCoercion::MSG_DEFAULT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#32 +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#28 RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#33 +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#29 RuboCop::Cop::Lint::RedundantStringCoercion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant `with_index`. @@ -22686,38 +22656,35 @@ RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # if day.is? :tuesday && month == :jan # # ... # end -# @example # # # good -# # if day.is?(:tuesday) && month == :jan # # ... # end # -# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#30 +# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#26 class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#35 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#35 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#58 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#54 def check_predicate(predicate, node); end - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#48 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#44 def check_ternary(ternary, node); end end -# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#33 +# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#29 RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) # Checks that a range literal is enclosed in parentheses when the end of the range is @@ -22811,34 +22778,31 @@ RuboCop::Cop::Lint::RequireRelativeSelfPath::RESTRICT_ON_SEND = T.let(T.unsafe(n # @example # # # bad -# # begin # do_something # rescue Exception # handle_exception # end -# @example # # # good -# # begin # do_something # rescue ArgumentError # handle_exception # end # -# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#27 +# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#23 class RuboCop::Cop::Lint::RescueException < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#30 + # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#26 def on_resbody(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#39 + # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#35 def targets_exception?(rescue_arg_node); end end -# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#28 +# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#24 RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) # Check for arguments to `rescue` that will result in a `TypeError` @@ -22916,7 +22880,6 @@ RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) # def foo=(bar) # return 42 # end -# @example # # # good # def initialize @@ -22929,18 +22892,18 @@ RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) # return # end # -# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#34 +# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#32 class RuboCop::Cop::Lint::ReturnInVoidContext < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#37 + # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#35 def on_return(return_node); end private - # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#53 + # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#51 def non_void_context(return_node); end end -# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#35 +# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#33 RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) # The safe navigation operator returns nil if the receiver is @@ -22952,28 +22915,25 @@ RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # x&.foo.bar # x&.foo + bar # x&.foo[bar] -# @example # # # good -# # x&.foo&.bar # x&.foo || bar # -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#26 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#22 class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#37 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#33 def bad_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#44 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#40 def on_send(node); end private @@ -22982,31 +22942,31 @@ class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base # @param send_node [RuboCop::AST::SendNode] # @return [String] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#62 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#58 def add_safe_navigation_operator(offense_range:, send_node:); end # @param corrector [RuboCop::Cop::Corrector] # @param offense_range [Parser::Source::Range] # @param send_node [RuboCop::AST::SendNode] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#81 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#77 def autocorrect(corrector, offense_range:, send_node:); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#90 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#86 def brackets?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#94 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#90 def require_parentheses?(send_node); end end -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#33 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#29 RuboCop::Cop::Lint::SafeNavigationChain::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#34 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#30 RuboCop::Cop::Lint::SafeNavigationChain::PLUS_MINUS_METHODS = T.let(T.unsafe(nil), Array) # Check to make sure that if safe navigation is used for a method @@ -23509,17 +23469,16 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # because `Ractor` should not access outer variables. # eg. following style is encouraged: # -# [source,ruby] -# ---- -# worker_id, pipe = env -# Ractor.new(worker_id, pipe) do |worker_id, pipe| -# end -# ---- +# [source,ruby] +# ---- +# worker_id, pipe = env +# Ractor.new(worker_id, pipe) do |worker_id, pipe| +# end +# ---- # # @example # # # bad -# # def some_method # foo = 1 # @@ -23527,10 +23486,8 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # do_something(foo) # end # end -# @example # # # good -# # def some_method # foo = 1 # @@ -23539,37 +23496,37 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#45 +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#41 class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#57 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#53 def before_declaring_variable(variable, variable_table); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#93 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#89 def find_conditional_node_from_ascendant(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#100 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#96 def node_or_its_ascendant_conditional?(node); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#49 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#45 def ractor_block?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#69 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#65 def same_conditions_node_different_branch?(variable, outer_local_variable); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#83 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#79 def variable_node(variable); end class << self - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#53 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#49 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#46 +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#42 RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), String) # Checks unexpected overrides of the `Struct` built-in methods @@ -23906,12 +23863,12 @@ class RuboCop::Cop::Lint::ToEnumArguments < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#83 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#76 def argument_match?(send_arg, def_arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#68 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#61 def arguments_match?(arguments, def_node); end end @@ -24220,27 +24177,24 @@ RuboCop::Cop::Lint::UnexpectedBlockArity::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # 1.is_a?(Fixnum) # 1.is_a?(Bignum) -# @example # # # good -# # 1.is_a?(Integer) # -# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#20 +# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#16 class RuboCop::Cop::Lint::UnifiedInteger < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#26 + # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#22 def fixnum_or_bignum_const(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#30 + # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#26 def on_const(node); end end -# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#23 +# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#19 RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String) # Looks for `reduce` or `inject` blocks where the value returned (implicitly or @@ -24335,31 +24289,31 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#190 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#191 def acceptable_return?(return_val, element_name); end # Exclude `begin` nodes inside a `dstr` from being collected by `return_values` # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#198 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#199 def allowed_type?(parent_node); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#158 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#159 def block_arg_name(node, index); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#141 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#142 def check_return_values(block_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#175 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#176 def potential_offense?(return_values, block_body, element_name, accumulator_name); end # Return values in a block are either the value given to next, # the last line of a multiline block, or the only line of the block # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#127 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#128 def return_values(block_body_node); end # Look for an index of the accumulator being returned, except where the index @@ -24367,7 +24321,7 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # This is always an offense, in order to try to catch potential exceptions # due to type mismatches # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#166 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#167 def returned_accumulator_index(return_values, accumulator_name, element_name); end # If the accumulator is used in any return value, the node is acceptable since @@ -24375,7 +24329,7 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#182 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#183 def returns_accumulator_anywhere?(return_values, accumulator_name); end end @@ -24392,14 +24346,12 @@ RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG_INDEX = T.let(T.unsafe(nil) # @example # # # bad -# # def some_method # return # do_something # end # # # bad -# # def some_method # if cond # return @@ -24408,40 +24360,38 @@ RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG_INDEX = T.let(T.unsafe(nil) # end # do_something # end -# @example # # # good -# # def some_method # do_something # end # -# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#37 +# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#32 class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#55 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#50 def flow_command?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#40 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#35 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#40 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#35 def on_kwbegin(node); end private - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#87 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#82 def check_case(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#81 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#76 def check_if(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#65 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#60 def flow_expression?(node); end end -# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#38 +# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#33 RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) # Checks for loops that will have at most one iteration. @@ -24799,7 +24749,7 @@ class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base def message(variable); end class << self - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#71 + # source://rubocop-performance/1.21.1/lib/rubocop-performance.rb#15 def autocorrect_incompatible_with; end # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#75 @@ -25112,97 +25062,94 @@ RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # def some_method # some_var = 1 # do_something # end -# @example # # # good -# # def some_method # some_var = 1 # do_something(some_var) # end # -# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#45 +# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#41 class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#56 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#52 def after_leaving_scope(scope, _variable_table); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#162 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#158 def autocorrect(corrector, assignment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#103 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#99 def chained_assignment?(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#61 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#57 def check_for_unused_assignments(variable); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#146 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#142 def collect_variable_like_names(scope); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#79 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#75 def message_for_useless_assignment(assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#107 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#103 def message_specification(assignment, variable); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#117 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#113 def multiple_assignment_message(variable_name); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#85 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#81 def offense_range(assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#122 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#118 def operator_assignment_message(scope, assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#179 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#175 def remove_exception_assignment_part(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#203 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#199 def remove_local_variable_assignment_part(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#192 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#188 def remove_trailing_character_from_operator(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#188 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#184 def rename_variable_with_underscore(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#196 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#192 def replace_named_capture_group_with_non_capturing_group(corrector, node, variable_name); end # TODO: More precise handling (rescue, ensure, nested begin, etc.) # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#136 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#132 def return_value_node_of_scope(scope); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#93 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#89 def sequential_assignment?(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#129 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#125 def similar_name_message(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#155 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#151 def variable_like_method_invocation?(node); end class << self - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#52 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#48 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#50 +# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#46 RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for useless `else` in `begin..end` without `rescue`. @@ -25212,16 +25159,13 @@ RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) # @example # # # bad -# # begin # do_something # else # do_something_else # This will never be run. # end -# @example # # # good -# # begin # do_something # rescue @@ -25230,13 +25174,13 @@ RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#31 +# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#27 class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#34 + # source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#30 def on_new_investigation; end end -# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#32 +# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#28 RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String) # Checks for useless method definitions, specifically: empty constructors @@ -25464,83 +25408,80 @@ RuboCop::Cop::Lint::UselessRuby2Keywords::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # @example # # # bad -# # def something # x = Something.new # x.attr = 5 # end -# @example # # # good -# # def something # x = Something.new # x.attr = 5 # x # end # -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#35 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#31 class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#41 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#41 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#63 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#59 def setter_call_to_local_variable?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#67 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#63 def last_expression(body); end end -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#39 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#35 RuboCop::Cop::Lint::UselessSetterCall::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#38 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#34 RuboCop::Cop::Lint::UselessSetterCall::MSG = T.let(T.unsafe(nil), String) # This class tracks variable assignments in a method body # and if a variable contains object passed as argument at the end of # the method. # -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#76 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#72 class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker # @return [MethodVariableTracker] a new instance of MethodVariableTracker # - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#77 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#73 def initialize(body_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#163 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#159 def constructor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#82 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#78 def contain_local_object?(variable_name); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#152 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#148 def process_assignment(asgn_node, rhs_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#100 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#96 def process_assignment_node(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#142 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#138 def process_binary_operator_assignment(op_asgn_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#133 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#129 def process_logical_operator_assignment(asgn_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#114 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#110 def process_multiple_assignment(masgn_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#92 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#88 def scan(node, &block); end end @@ -25676,13 +25617,13 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/lint/void.rb#217 + # source://rubocop//lib/rubocop/cop/lint/void.rb#222 def autocorrect_nonmutating_send(corrector, node, suggestion); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#213 + # source://rubocop//lib/rubocop/cop/lint/void.rb#216 def autocorrect_void_expression(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#201 + # source://rubocop//lib/rubocop/cop/lint/void.rb#204 def autocorrect_void_op(corrector, node); end # source://rubocop//lib/rubocop/cop/lint/void.rb#99 @@ -25691,32 +25632,32 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/void.rb#113 def check_expression(expr); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#151 + # source://rubocop//lib/rubocop/cop/lint/void.rb#154 def check_literal(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#175 + # source://rubocop//lib/rubocop/cop/lint/void.rb#178 def check_nonmutating(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#159 + # source://rubocop//lib/rubocop/cop/lint/void.rb#162 def check_self(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#133 + # source://rubocop//lib/rubocop/cop/lint/void.rb#136 def check_var(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#167 + # source://rubocop//lib/rubocop/cop/lint/void.rb#170 def check_void_expression(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#123 + # source://rubocop//lib/rubocop/cop/lint/void.rb#125 def check_void_op(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#226 + # source://rubocop//lib/rubocop/cop/lint/void.rb#231 def entirely_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#193 + # source://rubocop//lib/rubocop/cop/lint/void.rb#196 def in_void_context?(node); end end @@ -26082,12 +26023,12 @@ end # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#49 RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) -# Checks for excessive nesting of conditional and looping -# constructs. +# Checks for excessive nesting of conditional and looping constructs. # -# You can configure if blocks are considered using the `CountBlocks` -# option. When set to `false` (the default) blocks are not counted -# towards the nesting level. Set to `true` to count blocks as well. +# You can configure if blocks are considered using the `CountBlocks` and `CountModifierForms` +# options. When both are set to `false` (the default) blocks and modifier forms are not +# counted towards the nesting level. Set them to `true` to include these in the nesting level +# calculation as well. # # The maximum level of nesting allowed is configurable. # @@ -26106,15 +26047,25 @@ class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#44 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#52 def consider_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#54 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#62 def count_blocks?; end - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#50 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#44 + def count_if_block?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#66 + def count_modifier_forms?; end + + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#58 def message(max); end end @@ -28497,94 +28448,109 @@ class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base def on_defs(node); end end -# Checks that predicate methods names end with a question mark and +# Checks that predicate method names end with a question mark and # do not start with a forbidden prefix. # -# A method is determined to be a predicate method if its name starts -# with one of the prefixes defined in the `NamePrefix` configuration. -# You can change what prefixes are considered by changing this option. -# Any method name that starts with one of these prefixes is required by -# the cop to end with a `?`. Other methods can be allowed by adding to -# the `AllowedMethods` configuration. +# A method is determined to be a predicate method if its name starts with +# one of the prefixes listed in the `NamePrefix` configuration. The list +# defaults to `is_`, `has_`, and `have_` but may be overridden. # -# NOTE: The `is_a?` method is allowed by default. +# Predicate methods must end with a question mark. # -# If `ForbiddenPrefixes` is set, methods that start with the configured -# prefixes will not be allowed and will be removed by autocorrection. +# When `ForbiddenPrefixes` is also set (as it is by default), predicate +# methods which begin with a forbidden prefix are not allowed, even if +# they end with a `?`. These methods should be changed to remove the +# prefix. # -# In other words, if `ForbiddenPrefixes` is empty, a method named `is_foo` -# will register an offense only due to the lack of question mark (and will be -# autocorrected to `is_foo?`). If `ForbiddenPrefixes` contains `is_`, -# `is_foo` will register an offense both because the ? is missing and because of -# the `is_` prefix, and will be corrected to `foo?`. -# -# NOTE: `ForbiddenPrefixes` is only applied to prefixes in `NamePrefix`; -# a prefix in the former but not the latter will not be considered by -# this cop. -# -# @example +# @example NamePrefix: ['is_', 'has_', 'have_'] (default) # # bad # def is_even(value) # end # -# def is_even?(value) -# end -# +# # When ForbiddenPrefixes: ['is_', 'has_', 'have_'] (default) # # good # def even?(value) # end # +# # When ForbiddenPrefixes: [] +# # good +# def is_even?(value) +# end +# @example NamePrefix: ['seems_to_be_'] # # bad -# def has_value +# def seems_to_be_even(value) # end # -# def has_value? +# # When ForbiddenPrefixes: ['seems_to_be_'] +# # good +# def even?(value) # end # +# # When ForbiddenPrefixes: [] # # good -# def value? +# def seems_to_be_even?(value) # end # @example AllowedMethods: ['is_a?'] (default) +# # Despite starting with the `is_` prefix, this method is allowed # # good # def is_a?(value) # end +# @example AllowedMethods: ['is_even?'] +# # good +# def is_even?(value) +# end +# @example MethodDefinitionMacros: ['define_method', 'define_singleton_method'] (default) +# # bad +# define_method(:is_even) { |value| } # -# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#59 +# # good +# define_method(:even?) { |value| } +# @example MethodDefinitionMacros: ['def_node_matcher'] +# # bad +# def_node_matcher(:is_even) { |value| } +# +# # good +# # def_node_matcher(:even?) { |value| } +# +# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#75 class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#63 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#79 def dynamic_method_define(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#82 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#82 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#69 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#85 def on_send(node); end + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#112 + def validate_config; end + private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#124 def allowed_method_name?(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#106 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#132 def expected_name(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#120 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#146 def forbidden_prefixes; end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#116 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#142 def message(method_name, new_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#128 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#154 def method_definition_macros(macro_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#124 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#150 def predicate_prefixes; end end @@ -28654,31 +28620,31 @@ class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#96 def autocorrect(corrector, node, range, offending_name, preferred_name); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#116 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#117 def correct_node(corrector, node, offending_name, preferred_name); end # If the exception variable is reassigned, that assignment needs to be corrected. # Further `lvar` nodes will not be corrected though since they now refer to a # different variable. # - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#134 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#143 def correct_reassignment(corrector, node, offending_name, preferred_name); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#159 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#168 def message(node); end # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#91 def offense_range(resbody); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#143 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#152 def preferred_name(variable_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#165 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#174 def shadowed_variable_name?(node); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#152 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#161 def variable_name(node); end # @return [Boolean] @@ -29674,6 +29640,101 @@ class RuboCop::Cop::PunctuationCorrector end end +module RuboCop::Cop::RSpec; end + +class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#78 + def aggregate_failures?(param0 = T.unsafe(nil), param1); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#89 + def aggregate_failures_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#86 + def expect?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#93 + def on_block(node); end + + private + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#109 + def example_with_aggregate_failures?(example_node); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#116 + def find_aggregate_failures(example_node); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#121 + def find_expectation(node, &block); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#132 + def flag_example(node, expectation_count:); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_expectations.rb#143 + def max_expectations; end +end + +class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 + def on_block(node); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 + def on_new_investigation; end + + private + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 + def all_helpers(node); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 + def allow_subject?; end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 + def example_group_memoized_helpers; end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 + def helpers(node); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 + def max; end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 + def variable_nodes(node); end +end + +class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + def max=(value); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/nested_groups.rb#107 + def on_top_level_group(node); end + + private + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/nested_groups.rb#157 + def allowed_groups; end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/nested_groups.rb#134 + def count_up_nesting?(node, example_group); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/nested_groups.rb#119 + def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/nested_groups.rb#144 + def max_nesting; end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/nested_groups.rb#148 + def max_nesting_config; end + + # source://rubocop-rspec/3.0.4/lib/rubocop/cop/rspec/nested_groups.rb#140 + def message(nesting); end +end + # Methods that calculate and return Parser::Source::Ranges # # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#6 @@ -30612,6 +30673,17 @@ module RuboCop::Cop::Style; end # EnforcedStyle config covers only method definitions. # Applications of visibility methods to symbols can be controlled # using AllowModifiersOnSymbols config. +# Also, the visibility of `attr*` methods can be controlled using +# AllowModifiersOnAttrs config. +# +# In Ruby 3.0, `attr*` methods now return an array of defined method names +# as symbols. So we can write the modifier and `attr*` in inline style. +# AllowModifiersOnAttrs config allows `attr*` methods to be written in +# inline style without modifying applications that have been maintained +# for a long time in group style. Furthermore, developers who are not very +# familiar with Ruby may know that the modifier applies to `def`, but they +# may not know that it also applies to `attr*` methods. It would be easier +# to understand if we could write `attr*` methods in inline style. # # @example EnforcedStyle: group (default) # # bad @@ -30663,94 +30735,128 @@ module RuboCop::Cop::Style; end # private :bar, :baz # # end +# @example AllowModifiersOnAttrs: true (default) +# # good +# class Foo # -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#70 +# public attr_reader :bar +# protected attr_writer :baz +# private attr_accessor :qux +# private attr :quux +# +# def public_method; end +# +# private +# +# def private_method; end +# +# end +# @example AllowModifiersOnAttrs: false +# # bad +# class Foo +# +# public attr_reader :bar +# protected attr_writer :baz +# private attr_accessor :qux +# private attr :quux +# +# end +# +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#109 class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#91 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#135 + def access_modifier_with_attr?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#130 def access_modifier_with_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#95 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#140 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#145 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#195 def access_modifier_is_inlined?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#149 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#199 def access_modifier_is_not_inlined?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#127 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#177 + def allow_modifiers_on_attrs?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#173 def allow_modifiers_on_symbols?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#112 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#158 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#219 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#269 def def_source(node, def_node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#180 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#230 def find_argument_less_modifier_node(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#169 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#219 def find_corresponding_def_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#137 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#187 def group_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#141 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#191 def inline_style?; end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#211 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#261 def insert_inline_modifier(corrector, node, modifier_name); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#159 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#209 def message(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#131 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#181 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#215 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#265 def remove_node(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#194 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#244 def replace_def(corrector, node, def_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#153 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#203 def right_siblings_same_inline_method?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#188 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#238 def select_grouped_def_nodes(node); end end -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#88 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#127 RuboCop::Cop::Style::AccessModifierDeclarations::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#76 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#115 RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#81 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#120 RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#86 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#125 RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for grouping of accessors in `class` and `module` bodies. @@ -31087,6 +31193,8 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) # # Names not on this list are likely to be meaningful and are allowed by default. # +# This cop handles not only method forwarding but also forwarding to `super`. +# # @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default) # # bad - But it is good with `EnforcedStyle: explicit` set for `Naming/BlockForwarding`. # def foo(&block) @@ -31174,222 +31282,222 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) # bar(...) # end # -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#125 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#127 class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#185 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#187 def add_forward_all_offenses(node, send_classifications, forwardable_args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#351 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#353 def add_parens_if_missing(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#212 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#214 def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#343 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#345 def allow_only_rest_arguments?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#335 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#337 def arguments_range(node, first_node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#263 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#265 def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#248 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#250 def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#495 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#497 def explicit_block_name?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#168 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#170 def extract_forwardable_args(args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#238 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#240 def non_splat_or_block_pass_lvar_references(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#180 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#182 def only_forwards_all?(send_classifications); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#292 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#294 def outside_block?(node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#172 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174 def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#282 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#284 def redundant_named_arg(arg, config_name, keyword); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#325 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#327 def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#298 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#300 def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#314 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#316 def register_forward_block_arg_offense(add_parens, def_arguments_or_send, block_arg); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#306 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#308 def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#347 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#349 def use_anonymous_forwarding?; end class << self - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#142 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#133 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135 RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#136 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138 RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140 RuboCop::Cop::Style::ArgumentsForwarding::BLOCK_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#132 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134 RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137 RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#139 RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String) # Classifies send nodes for possible rest/kwrest/all (including block) forwarding. # -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#358 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#360 class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier extend ::RuboCop::AST::NodePattern::Macros # @return [SendNodeClassifier] a new instance of SendNodeClassifier # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#370 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#372 def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#398 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#400 def classification; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#365 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367 def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#392 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#394 def forwarded_block_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#368 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#370 def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#386 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#388 def forwarded_kwrest_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#380 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#382 def forwarded_rest_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#362 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#364 def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#466 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#468 def additional_kwargs?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#462 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#464 def additional_kwargs_or_forwarded_kwargs?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#476 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#478 def allow_offense_for_no_block?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#447 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#449 def any_arg_referenced?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#431 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#433 def arguments; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#410 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#412 def can_forward_all?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#470 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#472 def forward_additional_kwargs?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#427 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#429 def forwarded_rest_and_kwrest_args; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#489 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#491 def missing_rest_arg_or_kwrest_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#480 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#482 def no_additional_args?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#455 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#457 def no_post_splat_args?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#423 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#425 def offensive_block_forwarding?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#443 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#445 def referenced_block_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#439 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#441 def referenced_kwrest_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#435 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#437 def referenced_rest_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#419 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#421 def ruby_32_missing_rest_or_kwest?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#451 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#453 def target_ruby_version; end end @@ -34165,10 +34273,10 @@ class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/copyright.rb#83 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#86 def encoding_token?(processed_source, token_index); end - # source://rubocop//lib/rubocop/cop/style/copyright.rb#69 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#72 def insert_notice_before(processed_source); end # source://rubocop//lib/rubocop/cop/style/copyright.rb#52 @@ -34176,12 +34284,12 @@ class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/copyright.rb#90 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#93 def notice_found?(processed_source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/copyright.rb#76 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#79 def shebang_token?(processed_source, token_index); end # @raise [Warning] @@ -34334,7 +34442,6 @@ RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # # # good (without parentheses it's a syntax error) # def foo() do_something end -# @example # # # bad # def Baz.foo() @@ -34346,18 +34453,18 @@ RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#42 +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#40 class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47 + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47 + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 def on_defs(node); end end -# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#43 RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) # Checks for places where the `#\_\_dir\_\_` method can replace more @@ -34849,34 +34956,52 @@ RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String) # def do_something # end # end +# @example AllowedMethods: ['method_missing', 'respond_to_missing?'] +# +# # good +# class Foo +# def method_missing(name, *args) +# end # -# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#98 +# def respond_to_missing?(symbol, include_private) +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109 class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::DocumentationComment include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::DefNode - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#105 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#116 def modifier_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#119 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#146 + def allowed_methods; end + + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#130 def check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#126 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#142 + def method_allowed?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#138 def require_for_non_public_methods?; end end -# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#102 +# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#113 RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String) # Detects double disable comments on one line. This is mostly to catch @@ -35016,38 +35141,38 @@ RuboCop::Cop::Style::DoubleNegation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # # good # 5.times { } -# @example +# # # bad # (0...10).each {} # # # good # 10.times {} # -# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#25 +# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#24 class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#53 + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#52 def each_range(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#65 + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#64 def each_range_with_zero_origin?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#77 + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#76 def each_range_without_block_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#30 + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#29 def on_block(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#46 + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#45 def offending?(node); end end -# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#28 +# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#27 RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String) # Looks for inject / reduce calls where the passed in object is @@ -35859,9 +35984,18 @@ RuboCop::Cop::Style::EnvHome::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # will not attempt to automatically add a binding, or add filename and # line values. # -# This cop works only when a string literal is given as a code string. +# NOTE: This cop works only when a string literal is given as a code string. # No offense is reported if a string variable is given as below: # +# [source,ruby] +# ---- +# code = <<-RUBY +# def do_something +# end +# RUBY +# eval code # not checked. +# ---- +# # @example # # bad # eval <<-RUBY @@ -35886,100 +36020,93 @@ RuboCop::Cop::Style::EnvHome::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # def do_something # end # RUBY -# @example -# # not checked -# code = <<-RUBY -# def do_something -# end -# RUBY -# eval code # -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#56 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#57 class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#74 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#75 def line_with_offset?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#81 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#82 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#69 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#70 def valid_eval_receiver?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#186 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#187 def add_offense_for_different_line(node, line_node, line_diff); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#131 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#132 def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#201 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#202 def add_offense_for_missing_line(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#208 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#209 def add_offense_for_missing_location(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#180 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#181 def add_offense_for_same_line(node, line_node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#143 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#144 def check_file(node, file_node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#156 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#157 def check_line(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#95 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#96 def check_location(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#193 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#194 def expected_line(sign, line_diff); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#122 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#123 def file_and_line(node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#168 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#169 def line_difference(line_node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#220 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#221 def missing_line(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#109 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#110 def register_offense(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#114 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#115 def special_file_keyword?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#118 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#119 def special_line_keyword?(node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#172 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#173 def string_first_line(str_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#127 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#128 def with_binding?(node); end end -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#59 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#60 RuboCop::Cop::Style::EvalWithLocation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#60 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#61 RuboCop::Cop::Style::EvalWithLocation::MSG_EVAL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#61 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#62 RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_FILE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#63 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#64 RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_LINE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#66 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#67 RuboCop::Cop::Style::EvalWithLocation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where `Integer#even?` or `Integer#odd?` @@ -36488,8 +36615,7 @@ RuboCop::Cop::Style::FileEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Favor `File.(bin)read` convenience methods. # # @example -# ## text mode -# # bad +# # bad - text mode # File.open(filename).read # File.open(filename, &:read) # File.open(filename) { |f| f.read } @@ -36504,9 +36630,8 @@ RuboCop::Cop::Style::FileEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # # good # File.read(filename) -# @example -# ## binary mode -# # bad +# +# # bad - binary mode # File.open(filename, 'rb').read # File.open(filename, 'rb', &:read) # File.open(filename, 'rb') do |f| @@ -36516,49 +36641,49 @@ RuboCop::Cop::Style::FileEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # File.binread(filename) # -# source://rubocop//lib/rubocop/cop/style/file_read.rb#38 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#35 class RuboCop::Cop::Style::FileRead < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/file_read.rb#65 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#62 def block_read?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#49 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#46 def file_open?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#69 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#66 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#60 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#57 def send_read?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/file_read.rb#84 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#81 def evidence(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/file_read.rb#100 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#97 def file_open_read?(node); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#106 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#103 def read_method(mode); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/file_read.rb#92 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#89 def read_node?(node, block_pass); end end -# source://rubocop//lib/rubocop/cop/style/file_read.rb#42 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#39 RuboCop::Cop::Style::FileRead::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/file_read.rb#46 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#43 RuboCop::Cop::Style::FileRead::READ_FILE_START_TO_FINISH_MODES = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/file_read.rb#44 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#41 RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Favor `File.(bin)write` convenience methods. @@ -36575,8 +36700,7 @@ RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # ---- # # @example -# ## text mode -# # bad +# # bad - text mode # File.open(filename, 'w').write(content) # File.open(filename, 'w') do |f| # f.write(content) @@ -36584,9 +36708,8 @@ RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # # good # File.write(filename, content) -# @example -# ## binary mode -# # bad +# +# # bad - binary mode # File.open(filename, 'wb').write(content) # File.open(filename, 'wb') do |f| # f.write(content) @@ -36595,24 +36718,24 @@ RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # File.binwrite(filename, content) # -# source://rubocop//lib/rubocop/cop/style/file_write.rb#41 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#38 class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/file_write.rb#68 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#65 def block_write?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#85 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#82 def evidence(node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#52 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#49 def file_open?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#72 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#69 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#63 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#60 def send_write?(param0 = T.unsafe(nil)); end private @@ -36620,31 +36743,31 @@ class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base # @return [Boolean] # @yield [content] # - # source://rubocop//lib/rubocop/cop/style/file_write.rb#95 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#92 def file_open_write?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/file_write.rb#123 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#120 def heredoc?(write_node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#128 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#125 def heredoc_range(first_argument); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#108 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#105 def replacement(mode, filename, content, write_node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#104 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#101 def write_method(mode); end end -# source://rubocop//lib/rubocop/cop/style/file_write.rb#45 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#42 RuboCop::Cop::Style::FileWrite::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/file_write.rb#47 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#44 RuboCop::Cop::Style::FileWrite::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/file_write.rb#49 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#46 RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Set) # Checks for division with integers coerced to floats. @@ -37209,11 +37332,16 @@ class RuboCop::Cop::Style::GlobalStdStream < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#64 + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#70 def gvar_name(const_name); end - # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#60 + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#62 def message(const_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#66 + def namespaced?(node); end end # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#37 @@ -37749,9 +37877,9 @@ RuboCop::Cop::Style::HashEachMethods::UNUSED_BLOCK_ARG_MSG = T.let(T.unsafe(nil) # {foo: 1, bar: 2, baz: 3}.reject {|k, v| k == :bar } # {foo: 1, bar: 2, baz: 3}.select {|k, v| k != :bar } # {foo: 1, bar: 2, baz: 3}.filter {|k, v| k != :bar } -# {foo: 1, bar: 2, baz: 3}.reject {|k, v| %i[foo bar].include?(k) } -# {foo: 1, bar: 2, baz: 3}.select {|k, v| !%i[foo bar].include?(k) } -# {foo: 1, bar: 2, baz: 3}.filter {|k, v| !%i[foo bar].include?(k) } +# {foo: 1, bar: 2, baz: 3}.reject {|k, v| %i[bar].include?(k) } +# {foo: 1, bar: 2, baz: 3}.select {|k, v| !%i[bar].include?(k) } +# {foo: 1, bar: 2, baz: 3}.filter {|k, v| !%i[bar].include?(k) } # # # good # {foo: 1, bar: 2, baz: 3}.except(:bar) @@ -37778,42 +37906,42 @@ class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#94 - def bad_method?(block); end + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#95 + def bad_method?(method_name, block); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#166 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#169 def decorate_source(value); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#174 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#177 def except_key(node); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#153 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#156 def except_key_source(key); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#147 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#150 def extract_body_if_negated(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#128 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#131 def included?(negated, body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#132 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135 def not_included?(negated, body); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#183 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#186 def offense_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#136 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#139 def safe_to_register_offense?(block, except_key); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#112 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#115 def semantically_except_method?(send, block); end end @@ -37902,10 +38030,12 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # * never - forces use of explicit hash literal value # * either - accepts both shorthand and explicit use of hash literal value # * consistent - forces use of the 3.1 syntax only if all values can be omitted in the hash +# * either_consistent - accepts both shorthand and explicit use of hash literal value, +# but they must be consistent # -# @example EnforcedShorthandSyntax: consistent +# @example EnforcedShorthandSyntax: either_consistent # -# # bad - `foo` and `bar` values can be omitted +# # good - `foo` and `bar` values can be omitted, but they are consistent, so it's accepted # {foo: foo, bar: bar} # # # bad - `bar` value can be omitted @@ -37966,6 +38096,22 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # # # good # {foo:, bar:} +# @example EnforcedShorthandSyntax: consistent +# +# # bad - `foo` and `bar` values can be omitted +# {foo: foo, bar: bar} +# +# # bad - `bar` value can be omitted +# {foo:, bar: bar} +# +# # bad - mixed syntaxes +# {foo:, bar: baz} +# +# # good +# {foo:, bar:} +# +# # good - can't omit `baz` +# {foo: foo, bar: baz} # @example EnforcedStyle: ruby19 (default) # # bad # {:a => 2} @@ -37976,84 +38122,84 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # {:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol # {d: 1, 'e' => 2} # technically not forbidden # -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#113 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#131 class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::HashShorthandSyntax include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#167 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#185 def alternative_style; end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#145 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#163 def hash_rockets_check(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#159 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#177 def no_mixed_keys_check(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#123 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#141 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#141 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#159 def ruby19_check(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#149 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#167 def ruby19_no_mixed_keys_check(pairs); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#199 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#217 def acceptable_19_syntax_symbol?(sym_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#256 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#274 def argument_without_space?(node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#178 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#196 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#260 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#278 def autocorrect_hash_rockets(corrector, pair_node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#269 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#287 def autocorrect_no_mixed_keys(corrector, pair_node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#235 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#253 def autocorrect_ruby19(corrector, pair_node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#220 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#238 def check(pairs, delim, msg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#277 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#295 def force_hash_rockets?(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#248 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#266 def range_for_autocorrect_ruby19(pair_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#188 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#206 def sym_indices?(pairs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#192 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#210 def word_symbol_pair?(pair); end end -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#119 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#137 RuboCop::Cop::Style::HashSyntax::MSG_19 = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#121 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#139 RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#120 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#138 RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String) # Looks for uses of `\_.each_with_object({}) {...}`, @@ -38666,7 +38812,7 @@ RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), Stri # # # good # foo == bar -# @example +# # # bad # if foo.do_something? # true @@ -38680,61 +38826,61 @@ RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), Stri # # good # num.nonzero? ? true : false # -# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#62 +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#61 class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#74 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#73 def double_negative?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#70 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#69 def if_with_boolean_literal_branches?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#76 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#75 def on_if(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#134 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#135 def assume_boolean_value?(condition); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#114 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#113 def message(node, keyword); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#96 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#95 def multiple_elsif?(node); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#102 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#101 def offense_range_with_keyword(node, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#151 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#152 def opposite_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#141 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#142 def replacement_condition(node, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#156 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#157 def require_parentheses?(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#120 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#121 def return_boolean_value?(condition); end end -# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#66 +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#65 RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#67 +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#66 RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG_FOR_ELSIF = T.let(T.unsafe(nil), String) # Checks for uses of semicolon in if statements. @@ -39048,7 +39194,7 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base def remove_end_parenthesis(corrector, node, method, method_call); end class << self - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#56 + # source://rubocop-rails/2.26.0/lib/rubocop-rails.rb#22 def autocorrect_incompatible_with; end end end @@ -39707,6 +39853,7 @@ RuboCop::Cop::Style::MagicCommentFormat::MSG_VALUE = T.let(T.unsafe(nil), String RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), String) # Prefer `select` or `reject` over `map { ... }.compact`. +# This cop also handles `filter_map { ... }`, similar to `map { ... }.compact`. # # @example # @@ -39714,6 +39861,9 @@ RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), # array.map { |e| some_condition? ? e : next }.compact # # # bad +# array.filter_map { |e| some_condition? ? e : next } +# +# # bad # array.map do |e| # if some_condition? # e @@ -39740,48 +39890,60 @@ RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), # # good # array.reject { |e| some_condition? } # -# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#40 +# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#44 class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#46 - def map_and_compact?(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#51 + def conditional_block(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#126 - def range(node); end + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#148 + def current(node); end + + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#162 + def filter_map_range(node); end + + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#96 + def inspect(node, block_argument_node, condition_node, return_value_node, range); end + + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#158 + def map_with_compact_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#92 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#114 def returns_block_argument?(block_argument_node, return_value_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#96 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#118 def truthy_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#116 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#138 def truthy_branch_for_guard?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#106 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#128 def truthy_branch_for_if?(node); end end -# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#43 +# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#47 RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#48 +RuboCop::Cop::Style::MapCompactWithConditionalBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for usages of `each` with `<<`, `push`, or `append` which # can be replaced by `map`. # @@ -39977,7 +40139,7 @@ RuboCop::Cop::Style::MapToSet::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the presence (default) or absence of parentheses in -# method calls containing parameters. +# method calls containing arguments. # # In the default style (require_parentheses), macro methods are allowed. # Additional methods can be added to the `AllowedMethods` or @@ -40194,7 +40356,7 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base def args_parenthesized?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#213 + # source://rubocop-rails/2.26.0/lib/rubocop-rails.rb#30 def autocorrect_incompatible_with; end end end @@ -40207,110 +40369,110 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#70 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#75 def allowed_camel_case_method_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#174 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#179 def allowed_chained_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#170 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#175 def allowed_multiline_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#75 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#80 def allowed_string_interpolation_method_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#183 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#188 def ambiguous_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#212 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#217 def assigned_before?(node, target); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#220 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#225 def assignment_in_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#31 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#32 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#151 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#156 def call_as_argument_or_chain?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#144 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#149 def call_in_argument_with_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#100 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#105 def call_in_literals?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#111 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#116 def call_in_logical_operators?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#157 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#162 def call_in_match_pattern?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#120 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#125 def call_in_optional_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#124 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#129 def call_in_single_line_inheritance?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#128 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#133 def call_with_ambiguous_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#140 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#145 def call_with_braced_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#230 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#235 def forwards_anonymous_rest_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#199 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#204 def hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#163 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#168 def hash_literal_in_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#44 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#45 def inside_endless_method_def?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#216 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#221 def inside_string_interpolation?(node); end # Require hash value omission be enclosed in parentheses to prevent the following issue: @@ -40318,20 +40480,25 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#58 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#59 def last_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#87 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#92 def legitimate_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#195 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#200 def logical_operator?(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#40 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#67 + def method_call_before_constant_resolution?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#41 def offense_range(node); end # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#16 @@ -40339,42 +40506,42 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#80 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#85 def parentheses_at_the_end_of_multiline_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#203 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#208 def regexp_slash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#49 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#50 def require_parentheses_for_hash_value_omission?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#187 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#192 def splat?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#66 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#71 def super_call_without_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#62 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#63 def syntax_like_method_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#191 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#196 def ternary_if?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#207 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#212 def unary_literal?(node); end end @@ -40893,15 +41060,10 @@ class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/missing_else.rb#127 def check(node); end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#181 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#177 def empty_else_config; end - # @return [Boolean] - # # source://rubocop//lib/rubocop/cop/style/missing_else.rb#171 - def empty_else_cop_enabled?; end - - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#175 def empty_else_style; end # @return [Boolean] @@ -41613,11 +41775,6 @@ class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Base private - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#58 - def accept_node_type?(node); end - # Requires `then` for write `when` and its body on the same line. # # @return [Boolean] @@ -44213,7 +44370,7 @@ RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String) # # String interpolation is always kept in double quotes. # -# Note: `Lint/SymbolConversion` can be used in parallel to ensure that symbols +# NOTE: `Lint/SymbolConversion` can be used in parallel to ensure that symbols # are not quoted that don't need to be. This cop is for configuring the quoting # style to use for symbols that require quotes. # @@ -44831,7 +44988,7 @@ RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) # # # good # a = b || c -# @example +# # # bad # if b # b @@ -44849,12 +45006,12 @@ RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) # c # end # -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#33 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#32 class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#43 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#42 def on_if(node); end private @@ -44864,116 +45021,116 @@ class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#167 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#166 def argument_with_operator?(argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#142 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#141 def asgn_type?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#132 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#131 def branches_have_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#146 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#145 def branches_have_method?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#240 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#239 def correct_ternary(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#187 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#186 def else_source(else_branch, arithmetic_operation); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#213 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#212 def else_source_if_has_assignment(else_branch); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#203 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#202 def else_source_if_has_method(else_branch); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#175 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#174 def if_source(if_branch, arithmetic_operation); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#223 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#222 def make_ternary_form(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#64 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#63 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#79 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#78 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#72 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#71 def range_of_offense(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#88 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#87 def redundant_condition?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#255 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#254 def require_braces?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#248 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#247 def require_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#161 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#160 def same_method?(if_branch, else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#155 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#154 def single_argument_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#104 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#103 def synonymous_condition_and_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#259 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#258 def use_arithmetic_operation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#100 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#99 def use_hash_key_access?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#96 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#95 def use_hash_key_assignment?(else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#92 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#91 def use_if_branch?(else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#263 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#262 def without_argument_parentheses_method?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#39 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#38 RuboCop::Cop::Style::RedundantCondition::ARGUMENT_WITH_OPERATOR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#37 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#36 RuboCop::Cop::Style::RedundantCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#38 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#37 RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(nil), String) # Checks for redundant returning of true/false in conditionals. @@ -45413,7 +45570,7 @@ RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of superfluous `.rb` extension in # the filename provided to `require` and `require_relative`. # -# Note: If the extension is omitted, Ruby tries adding '.rb', '.so', +# NOTE: If the extension is omitted, Ruby tries adding '.rb', '.so', # and so on to the name until found. If the file named cannot be found, # a `LoadError` will be raised. # There is an edge case where `foo.so` file is loaded instead of a `LoadError` @@ -45890,47 +46047,47 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base include ::RuboCop::Cop::MatchRange extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#78 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#79 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#182 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#183 def argument_is_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#147 def argument_newline?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#101 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#102 def ends_with_backslash_without_comment?(source_line); end - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#162 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#163 def find_node_for_line(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#131 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#132 def inside_string_literal?(range, token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#109 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#110 def inside_string_literal_or_method_with_argument?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#117 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#118 def leading_dot_method_chain_with_blank_line?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#189 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#190 def method_call_with_arguments?(node); end # A method call without parentheses such as the following cannot remove `\`: @@ -45940,38 +46097,41 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#139 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#140 def method_with_argument?(current_token, next_token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#123 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#124 def redundant_line_continuation?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#93 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#94 def require_line_continuation?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#168 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#169 def same_line?(node, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#193 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#194 def start_with_arithmetic_operator?(source_line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#105 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#106 def string_concatenation?(source_line); end end # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#72 RuboCop::Cop::Style::RedundantLineContinuation::ALLOWED_STRING_TOKENS = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#77 +RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TAKING_FLOW_TOKEN_TYPES = T.let(T.unsafe(nil), Array) + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#73 RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array) @@ -46479,13 +46639,10 @@ class RuboCop::Cop::Style::RedundantRegexpEscape < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#92 def delimiter?(node, char); end - # Please remove this `else` branch when support for regexp_parser 1.8 will be dropped. - # It's for compatibility with regexp_parser 1.8 and will never be maintained. - # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#99 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#98 def each_escape(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#126 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#110 def escape_range_at_index(node, index); end end @@ -46773,7 +46930,7 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base def regular_method_call?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#56 + # source://rubocop-rails/2.26.0/lib/rubocop-rails.rb#38 def autocorrect_incompatible_with; end end end @@ -48313,6 +48470,83 @@ RuboCop::Cop::Style::Send::MSG = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/style/send.rb#18 RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Detects the use of the `public_send` method with a literal method name argument. +# Since the `send` method can be used to call private methods, by default, +# only the `public_send` method is detected. +# +# NOTE: Writer methods with names ending in `=` are always permitted because their +# behavior differs as follows: +# +# [source,ruby] +# ---- +# def foo=(foo) +# @foo = foo +# 42 +# end +# +# self.foo = 1 # => 1 +# send(:foo=, 1) # => 42 +# ---- +# +# @example +# # bad +# obj.public_send(:method_name) +# obj.public_send('method_name') +# +# # good +# obj.method_name +# @example AllowSend: true (default) +# # good +# obj.send(:method_name) +# obj.send('method_name') +# obj.__send__(:method_name) +# obj.__send__('method_name') +# @example AllowSend: false +# # bad +# obj.send(:method_name) +# obj.send('method_name') +# obj.__send__(:method_name) +# obj.__send__('method_name') +# +# # good +# obj.method_name +# +# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#54 +class RuboCop::Cop::Style::SendWithLiteralMethodName < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#68 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#90 + def allow_send?; end + + # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#94 + def offense_range(node); end + + # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#98 + def removal_argument_range(first_argument, second_argument); end +end + +# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#60 +RuboCop::Cop::Style::SendWithLiteralMethodName::METHOD_NAME_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#57 +RuboCop::Cop::Style::SendWithLiteralMethodName::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#61 +RuboCop::Cop::Style::SendWithLiteralMethodName::RESERVED_WORDS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#58 +RuboCop::Cop::Style::SendWithLiteralMethodName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#59 +RuboCop::Cop::Style::SendWithLiteralMethodName::STATIC_METHOD_NAME_NODE_TYPES = T.let(T.unsafe(nil), Array) + # Checks for uses of `fail` and `raise`. # # @example EnforcedStyle: only_raise (default) @@ -48835,10 +49069,10 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#242 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#261 def allow_modifier?; end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#227 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#233 def arguments_range(node); end # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#81 @@ -48856,25 +49090,25 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#145 def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#175 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#181 def correct_for_comment(corrector, node, if_branch); end # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#136 def correct_for_guard_condition_style(corrector, outer_condition, if_branch, and_operator); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#165 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#171 def correct_for_outer_condition_modify_form_style(corrector, node, if_branch); end # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#130 def correct_from_unless_to_if(corrector, node, is_modify_form: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#184 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#190 def correct_outer_condition(corrector, condition); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#197 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#203 def insert_bang(corrector, node, is_modify_form); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#210 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#216 def insert_bang_for_and(corrector, node); end # @return [Boolean] @@ -48884,15 +49118,18 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#246 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#265 def outer_condition_modify_form?(node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#238 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#254 + def parenthesized_method_arguments(node); end + + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#244 def replace_condition(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#222 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#228 def require_parentheses?(condition); end # @return [Boolean] @@ -48905,7 +49142,7 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#233 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#239 def wrap_condition?(node); end class << self @@ -49674,6 +49911,118 @@ end # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30 RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String) +# Checks for redundant argument forwarding when calling super with arguments identical to +# the method definition. +# +# Using zero arity `super` within a `define_method` block results in `RuntimeError`: +# +# [source,ruby] +# ---- +# def m +# define_method(:foo) { super() } # => OK +# end +# +# def m +# define_method(:foo) { super } # => RuntimeError +# end +# ---- +# +# Furthermore, any arguments accompanied by a block may potentially be delegating to +# `define_method`, therefore, `super` used within these blocks will be allowed. +# This approach might result in false negatives, yet ensuring safe detection takes precedence. +# +# @example +# # bad +# def method(*args, **kwargs) +# super(*args, **kwargs) +# end +# +# # good - implicitly passing all arguments +# def method(*args, **kwargs) +# super +# end +# +# # good - forwarding a subset of the arguments +# def method(*args, **kwargs) +# super(*args) +# end +# +# # good - forwarding no arguments +# def method(*args, **kwargs) +# super() +# end +# +# # good - assigning to the block variable before calling super +# def method(&block) +# # Assigning to the block variable would pass the old value to super, +# # under this circumstance the block must be referenced explicitly. +# block ||= proc { 'fallback behavior' } +# super(&block) +# end +# +# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#54 +class RuboCop::Cop::Style::SuperArguments < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#62 + def on_super(super_node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#81 + def arguments_identical?(def_node, def_args, super_args); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#136 + def block_arg_same?(def_node, def_arg, super_arg); end + + # Reassigning the block argument will still pass along the original block to super + # https://bugs.ruby-lang.org/issues/20505 + # + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#147 + def block_reassigned?(def_node, block_arg_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#158 + def forward_arg_same?(def_arg, super_arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#116 + def keyword_arg_same?(def_arg, super_arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#126 + def keyword_rest_arg_same?(def_arg, super_arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#99 + def positional_arg_same?(def_arg, super_arg); end + + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#106 + def positional_rest_arg_same(def_arg, super_arg); end + + # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#162 + def preprocess_super_args(super_args); end +end + +# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#58 +RuboCop::Cop::Style::SuperArguments::ASSIGN_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#57 +RuboCop::Cop::Style::SuperArguments::DEF_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#60 +RuboCop::Cop::Style::SuperArguments::MSG = T.let(T.unsafe(nil), String) + # Enforces the presence of parentheses in `super` containing arguments. # # `super` is a keyword and is provided as a distinct cop from those designed for method call. @@ -49897,9 +50246,11 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # `define_method?` methods are allowed by default. # These are customizable with `AllowedMethods` option. # -# @example AllowedPatterns: ['map'] (default) +# @example AllCops:ActiveSupportExtensionsEnabled: true # # good -# something.map { |s| s.upcase } +# ->(x) { x.foo } +# proc { |x| x.foo } +# Proc.new { |x| x.foo } # @example AllowMethodsWithArguments: false (default) # # bad # something.do_something(foo) { |o| o.bar } @@ -49929,6 +50280,19 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # @example AllowedPatterns: [] (default) # # bad # something.map { |s| s.upcase } +# @example AllowedPatterns: ['map'] (default) +# # good +# something.map { |s| s.upcase } +# @example AllCops:ActiveSupportExtensionsEnabled: false (default) +# # bad +# ->(x) { x.foo } +# proc { |x| x.foo } +# Proc.new { |x| x.foo } +# +# # good +# lambda(&:foo) +# proc(&:foo) +# Proc.new(&:foo) # @example # # bad # something.map { |s| s.upcase } @@ -49937,7 +50301,7 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # # good # something.map(&:upcase) # -# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#123 +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140 class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp @@ -49947,81 +50311,87 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#172 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#189 def destructuring_block_argument?(argument_node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#134 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152 def proc_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#158 def symbol_proc?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#137 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#155 def symbol_proc_receiver?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#240 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#274 def allow_comments?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#236 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#270 def allow_if_method_has_argument?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#187 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#204 def allowed_method_name?(name); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#217 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#212 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#247 + def autocorrect_lambda_block(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#238 def autocorrect_with_args(corrector, node, args, method_name); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#208 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#225 def autocorrect_without_args(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#226 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#260 def begin_pos_for_replacement(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#221 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#255 def block_range_with_space(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#191 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#208 def register_offense(node, method_name, block_method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#183 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200 def unsafe_array_usage?(node); end # See: https://github.com/rubocop/rubocop/issues/10864 # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#179 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#196 def unsafe_hash_usage?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#165 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#130 +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#149 +RuboCop::Cop::Style::SymbolProc::LAMBDA_OR_PROC = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147 RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#131 +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#148 RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array) # Corrector to correct conditional assignment in ternary conditions. @@ -51299,7 +51669,6 @@ RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) # while x.any? # do_something(x.pop) # end -# @example # # # bad # until x.empty? do @@ -51311,18 +51680,18 @@ RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) # do_something(x.pop) # end # -# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#31 +# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#29 class RuboCop::Cop::Style::WhileUntilDo < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#36 + # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#36 + # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 def on_while(node); end end -# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 +# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#32 RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) # Checks for while and until statements that would fit on one line @@ -51337,7 +51706,7 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) # # # good # x += 1 while x < 10 -# @example +# # # bad # until x > 10 # x += 1 @@ -51354,7 +51723,7 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) # x += 100 # end # -# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#36 +# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#35 class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::LineLengthHelp @@ -51362,14 +51731,14 @@ class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#42 + # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#41 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#42 + # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#41 def on_while(node); end end -# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40 +# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#39 RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) # Checks for array literals made up of word-like @@ -51789,39 +52158,42 @@ class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Base # implement `#size`, but not `#empty`. We ignore those to # reduce false positives. # - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#139 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#147 def non_polymorphic_collection?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#109 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#114 def nonzero_length_comparison(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#51 + def on_csend(node); end + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#45 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#130 - def other_receiver(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#138 + def other_length_node(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#101 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#106 def zero_length_comparison(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#96 - def zero_length_predicate(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#130 + def zero_length_node(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#122 - def zero_length_receiver(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#101 + def zero_length_predicate?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#80 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#85 def check_nonzero_length_comparison(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#65 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#70 def check_zero_length_comparison(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#53 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#58 def check_zero_length_predicate(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#114 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#119 def replacement(node); end end @@ -51968,12 +52340,12 @@ class RuboCop::Cop::Team # source://rubocop//lib/rubocop/cop/team.rb#51 def errors; end - # source://rubocop//lib/rubocop/cop/team.rb#114 + # source://rubocop//lib/rubocop/cop/team.rb#122 def external_dependency_checksum; end # @deprecated # - # source://rubocop//lib/rubocop/cop/team.rb#110 + # source://rubocop//lib/rubocop/cop/team.rb#114 def forces; end # source://rubocop//lib/rubocop/cop/team.rb#76 @@ -51981,7 +52353,7 @@ class RuboCop::Cop::Team # @return [Commissioner::InvestigationReport] # - # source://rubocop//lib/rubocop/cop/team.rb#81 + # source://rubocop//lib/rubocop/cop/team.rb#85 def investigate(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end # Returns the value of attribute updated_source_file. @@ -52001,57 +52373,57 @@ class RuboCop::Cop::Team private - # source://rubocop//lib/rubocop/cop/team.rb#121 + # source://rubocop//lib/rubocop/cop/team.rb#129 def autocorrect(processed_source, report, original:, offset:); end - # source://rubocop//lib/rubocop/cop/team.rb#185 + # source://rubocop//lib/rubocop/cop/team.rb#193 def autocorrect_report(report, offset:, original:); end - # source://rubocop//lib/rubocop/cop/team.rb#140 + # source://rubocop//lib/rubocop/cop/team.rb#148 def be_ready; end - # source://rubocop//lib/rubocop/cop/team.rb#191 + # source://rubocop//lib/rubocop/cop/team.rb#199 def collate_corrections(report, offset:, original:); end - # source://rubocop//lib/rubocop/cop/team.rb#207 + # source://rubocop//lib/rubocop/cop/team.rb#215 def each_corrector(report); end - # source://rubocop//lib/rubocop/cop/team.rb#257 + # source://rubocop//lib/rubocop/cop/team.rb#267 def handle_error(error, location, cop); end - # source://rubocop//lib/rubocop/cop/team.rb#249 + # source://rubocop//lib/rubocop/cop/team.rb#259 def handle_warning(error, location); end # @return [Commissioner::InvestigationReport] # - # source://rubocop//lib/rubocop/cop/team.rb#154 + # source://rubocop//lib/rubocop/cop/team.rb#162 def investigate_partial(cops, processed_source, offset:, original:); end - # source://rubocop//lib/rubocop/cop/team.rb#234 + # source://rubocop//lib/rubocop/cop/team.rb#242 def process_errors(file, errors); end - # source://rubocop//lib/rubocop/cop/team.rb#148 + # source://rubocop//lib/rubocop/cop/team.rb#156 def reset; end # @return [Array] # - # source://rubocop//lib/rubocop/cop/team.rb#160 + # source://rubocop//lib/rubocop/cop/team.rb#168 def roundup_relevant_cops(processed_source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/team.rb#176 + # source://rubocop//lib/rubocop/cop/team.rb#184 def support_target_rails_version?(cop); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/team.rb#170 + # source://rubocop//lib/rubocop/cop/team.rb#178 def support_target_ruby_version?(cop); end - # source://rubocop//lib/rubocop/cop/team.rb#222 + # source://rubocop//lib/rubocop/cop/team.rb#230 def suppress_clobbering; end - # source://rubocop//lib/rubocop/cop/team.rb#228 + # source://rubocop//lib/rubocop/cop/team.rb#236 def validate_config; end class << self @@ -52302,19 +52674,19 @@ module RuboCop::Cop::Util private - # source://rubocop//lib/rubocop/cop/util.rb#35 + # source://rubocop//lib/rubocop/cop/util.rb#39 def add_parentheses(node, corrector); end - # source://rubocop//lib/rubocop/cop/util.rb#56 + # source://rubocop//lib/rubocop/cop/util.rb#60 def any_descendant?(node, *types); end - # source://rubocop//lib/rubocop/cop/util.rb#71 + # source://rubocop//lib/rubocop/cop/util.rb#75 def args_begin(node); end - # source://rubocop//lib/rubocop/cop/util.rb#83 + # source://rubocop//lib/rubocop/cop/util.rb#87 def args_end(node); end - # source://rubocop//lib/rubocop/cop/util.rb#104 + # source://rubocop//lib/rubocop/cop/util.rb#108 def begins_its_line?(range); end # This is a bad API @@ -52327,78 +52699,78 @@ module RuboCop::Cop::Util # source://rubocop//lib/rubocop/cop/util.rb#22 def comment_lines?(node); end - # source://rubocop//lib/rubocop/cop/util.rb#192 + # source://rubocop//lib/rubocop/cop/util.rb#198 def compatible_external_encoding_for?(src); end # If converting a string to Ruby string literal source code, must # double quotes be used? # - # source://rubocop//lib/rubocop/cop/util.rb#130 + # source://rubocop//lib/rubocop/cop/util.rb#134 def double_quotes_required?(string); end - # source://rubocop//lib/rubocop/cop/util.rb#144 + # source://rubocop//lib/rubocop/cop/util.rb#148 def escape_string(string); end # Returns, for example, a bare `if` node if the given node is an `if` # with calls chained to the end of it. # - # source://rubocop//lib/rubocop/cop/util.rb#114 + # source://rubocop//lib/rubocop/cop/util.rb#118 def first_part_of_call_chain(node); end - # source://rubocop//lib/rubocop/cop/util.rb#197 + # source://rubocop//lib/rubocop/cop/util.rb#203 def include_or_equal?(source, target); end - # source://rubocop//lib/rubocop/cop/util.rb#179 + # source://rubocop//lib/rubocop/cop/util.rb#185 def indent(node, offset: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/util.rb#161 + # source://rubocop//lib/rubocop/cop/util.rb#165 def interpret_string_escapes(string); end - # source://rubocop//lib/rubocop/cop/util.rb#165 + # source://rubocop//lib/rubocop/cop/util.rb#169 def line(node_or_range); end - # source://rubocop//lib/rubocop/cop/util.rb#26 + # source://rubocop//lib/rubocop/cop/util.rb#30 def line_range(node); end - # source://rubocop//lib/rubocop/cop/util.rb#140 + # source://rubocop//lib/rubocop/cop/util.rb#144 def needs_escaping?(string); end - # source://rubocop//lib/rubocop/cop/util.rb#87 + # source://rubocop//lib/rubocop/cop/util.rb#91 def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end - # source://rubocop//lib/rubocop/cop/util.rb#30 + # source://rubocop//lib/rubocop/cop/util.rb#34 def parentheses?(node); end - # source://rubocop//lib/rubocop/cop/util.rb#173 + # source://rubocop//lib/rubocop/cop/util.rb#177 def same_line?(node1, node2); end - # source://rubocop//lib/rubocop/cop/util.rb#148 + # source://rubocop//lib/rubocop/cop/util.rb#152 def to_string_literal(string); end - # source://rubocop//lib/rubocop/cop/util.rb#185 + # source://rubocop//lib/rubocop/cop/util.rb#191 def to_supported_styles(enforced_style); end - # source://rubocop//lib/rubocop/cop/util.rb#157 + # source://rubocop//lib/rubocop/cop/util.rb#161 def trim_string_interpolation_escape_character(str); end class << self - # source://rubocop//lib/rubocop/cop/util.rb#35 + # source://rubocop//lib/rubocop/cop/util.rb#39 def add_parentheses(node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#56 + # source://rubocop//lib/rubocop/cop/util.rb#60 def any_descendant?(node, *types); end - # source://rubocop//lib/rubocop/cop/util.rb#71 + # source://rubocop//lib/rubocop/cop/util.rb#75 def args_begin(node); end - # source://rubocop//lib/rubocop/cop/util.rb#83 + # source://rubocop//lib/rubocop/cop/util.rb#87 def args_end(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#104 + # source://rubocop//lib/rubocop/cop/util.rb#108 def begins_its_line?(range); end # This is a bad API @@ -52419,62 +52791,62 @@ module RuboCop::Cop::Util # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#130 + # source://rubocop//lib/rubocop/cop/util.rb#134 def double_quotes_required?(string); end - # source://rubocop//lib/rubocop/cop/util.rb#144 + # source://rubocop//lib/rubocop/cop/util.rb#148 def escape_string(string); end # Returns, for example, a bare `if` node if the given node is an `if` # with calls chained to the end of it. # - # source://rubocop//lib/rubocop/cop/util.rb#114 + # source://rubocop//lib/rubocop/cop/util.rb#118 def first_part_of_call_chain(node); end - # source://rubocop//lib/rubocop/cop/util.rb#179 + # source://rubocop//lib/rubocop/cop/util.rb#185 def indent(node, offset: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/util.rb#161 + # source://rubocop//lib/rubocop/cop/util.rb#165 def interpret_string_escapes(string); end - # source://rubocop//lib/rubocop/cop/util.rb#165 + # source://rubocop//lib/rubocop/cop/util.rb#169 def line(node_or_range); end - # source://rubocop//lib/rubocop/cop/util.rb#26 + # source://rubocop//lib/rubocop/cop/util.rb#30 def line_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#140 + # source://rubocop//lib/rubocop/cop/util.rb#144 def needs_escaping?(string); end # @yield [sexp] # - # source://rubocop//lib/rubocop/cop/util.rb#87 + # source://rubocop//lib/rubocop/cop/util.rb#91 def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#30 + # source://rubocop//lib/rubocop/cop/util.rb#34 def parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#173 + # source://rubocop//lib/rubocop/cop/util.rb#177 def same_line?(node1, node2); end - # source://rubocop//lib/rubocop/cop/util.rb#148 + # source://rubocop//lib/rubocop/cop/util.rb#152 def to_string_literal(string); end - # source://rubocop//lib/rubocop/cop/util.rb#185 + # source://rubocop//lib/rubocop/cop/util.rb#191 def to_supported_styles(enforced_style); end - # source://rubocop//lib/rubocop/cop/util.rb#157 + # source://rubocop//lib/rubocop/cop/util.rb#161 def trim_string_interpolation_escape_character(str); end end end -# source://rubocop//lib/rubocop/cop/util.rb#99 +# source://rubocop//lib/rubocop/cop/util.rb#103 RuboCop::Cop::Util::LINE_BEGINS_REGEX_CACHE = T.let(T.unsafe(nil), Hash) # Match literal regex characters, not including anchors, character @@ -52486,7 +52858,7 @@ RuboCop::Cop::Util::LITERAL_REGEX = T.let(T.unsafe(nil), Regexp) # Arbitrarily chosen value, should be enough to cover # the most nested source code in real world projects. # -# source://rubocop//lib/rubocop/cop/util.rb#98 +# source://rubocop//lib/rubocop/cop/util.rb#102 RuboCop::Cop::Util::MAX_LINE_BEGINS_REGEX_INDEX = T.let(T.unsafe(nil), Integer) # source://rubocop//lib/rubocop/cop/utils/format_string.rb#5 @@ -52719,59 +53091,59 @@ class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#76 + # source://rubocop//lib/rubocop/cop/variable_force.rb#79 def investigate(processed_source); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#85 + # source://rubocop//lib/rubocop/cop/variable_force.rb#88 def process_node(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#71 + # source://rubocop//lib/rubocop/cop/variable_force.rb#74 def variable_table; end private - # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + # source://rubocop//lib/rubocop/cop/variable_force.rb#380 def after_declaring_variable(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + # source://rubocop//lib/rubocop/cop/variable_force.rb#380 def after_entering_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + # source://rubocop//lib/rubocop/cop/variable_force.rb#380 def after_leaving_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + # source://rubocop//lib/rubocop/cop/variable_force.rb#380 def before_declaring_variable(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + # source://rubocop//lib/rubocop/cop/variable_force.rb#380 def before_entering_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#368 + # source://rubocop//lib/rubocop/cop/variable_force.rb#380 def before_leaving_scope(arg); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#339 + # source://rubocop//lib/rubocop/cop/variable_force.rb#351 def descendant_reference(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#329 + # source://rubocop//lib/rubocop/cop/variable_force.rb#341 def each_descendant_reference(loop_node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#314 + # source://rubocop//lib/rubocop/cop/variable_force.rb#326 def find_variables_in_loop(loop_node); end # This is called for each scope recursively. # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#94 + # source://rubocop//lib/rubocop/cop/variable_force.rb#97 def inspect_variables_in_scope(scope_node); end # Mark all assignments which are referenced in the same loop @@ -52780,104 +53152,109 @@ class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#295 + # source://rubocop//lib/rubocop/cop/variable_force.rb#307 def mark_assignments_as_referenced_in_loop(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#126 + # source://rubocop//lib/rubocop/cop/variable_force.rb#130 def node_handler_method_name(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#100 + # source://rubocop//lib/rubocop/cop/variable_force.rb#103 def process_children(origin_node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#231 + # source://rubocop//lib/rubocop/cop/variable_force.rb#243 def process_loop(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#160 + # source://rubocop//lib/rubocop/cop/variable_force.rb#182 + def process_pattern_match_variable(node); end + + # @api private + # + # source://rubocop//lib/rubocop/cop/variable_force.rb#164 def process_regexp_named_captures(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#246 + # source://rubocop//lib/rubocop/cop/variable_force.rb#258 def process_rescue(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#265 + # source://rubocop//lib/rubocop/cop/variable_force.rb#277 def process_scope(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#284 + # source://rubocop//lib/rubocop/cop/variable_force.rb#296 def process_send(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#142 + # source://rubocop//lib/rubocop/cop/variable_force.rb#146 def process_variable_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#130 + # source://rubocop//lib/rubocop/cop/variable_force.rb#134 def process_variable_declaration(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#219 + # source://rubocop//lib/rubocop/cop/variable_force.rb#231 def process_variable_multiple_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#184 + # source://rubocop//lib/rubocop/cop/variable_force.rb#196 def process_variable_operator_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#226 + # source://rubocop//lib/rubocop/cop/variable_force.rb#238 def process_variable_referencing(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#257 + # source://rubocop//lib/rubocop/cop/variable_force.rb#269 def process_zero_arity_super(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#178 + # source://rubocop//lib/rubocop/cop/variable_force.rb#190 def regexp_captured_names(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force.rb#351 + # source://rubocop//lib/rubocop/cop/variable_force.rb#363 def scanned_node?(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#355 + # source://rubocop//lib/rubocop/cop/variable_force.rb#367 def scanned_nodes; end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#108 + # source://rubocop//lib/rubocop/cop/variable_force.rb#111 def skip_children!; end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#278 + # source://rubocop//lib/rubocop/cop/variable_force.rb#290 def twisted_nodes(node); end end # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#32 +# source://rubocop//lib/rubocop/cop/variable_force.rb#35 RuboCop::Cop::VariableForce::ARGUMENT_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) # This class represents each assignment of a variable. @@ -52989,12 +53366,12 @@ RuboCop::Cop::VariableForce::Assignment::MULTIPLE_LEFT_HAND_SIDE_TYPE = T.let(T. # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#65 +# source://rubocop//lib/rubocop/cop/variable_force.rb#68 class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force.rb#66 + # source://rubocop//lib/rubocop/cop/variable_force.rb#69 def assignment?; end # Returns the value of attribute node @@ -53434,32 +53811,37 @@ end # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#39 +# source://rubocop//lib/rubocop/cop/variable_force.rb#42 RuboCop::Cop::VariableForce::LOGICAL_OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#48 +# source://rubocop//lib/rubocop/cop/variable_force.rb#51 RuboCop::Cop::VariableForce::LOOP_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#42 +# source://rubocop//lib/rubocop/cop/variable_force.rb#45 RuboCop::Cop::VariableForce::MULTIPLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#112 +# source://rubocop//lib/rubocop/cop/variable_force.rb#115 RuboCop::Cop::VariableForce::NODE_HANDLER_METHOD_NAMES = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#40 +# source://rubocop//lib/rubocop/cop/variable_force.rb#43 RuboCop::Cop::VariableForce::OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#47 +# source://rubocop//lib/rubocop/cop/variable_force.rb#30 +RuboCop::Cop::VariableForce::PATTERN_MATCH_VARIABLE_TYPE = T.let(T.unsafe(nil), Symbol) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#50 RuboCop::Cop::VariableForce::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array) # @api private @@ -53469,12 +53851,12 @@ RuboCop::Cop::VariableForce::REGEXP_NAMED_CAPTURE_TYPE = T.let(T.unsafe(nil), Sy # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#50 +# source://rubocop//lib/rubocop/cop/variable_force.rb#53 RuboCop::Cop::VariableForce::RESCUE_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#43 +# source://rubocop//lib/rubocop/cop/variable_force.rb#46 RuboCop::Cop::VariableForce::REST_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) # This class represents each reference of a variable. @@ -53524,12 +53906,12 @@ RuboCop::Cop::VariableForce::Reference::VARIABLE_REFERENCE_TYPES = T.let(T.unsaf # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#55 +# source://rubocop//lib/rubocop/cop/variable_force.rb#58 RuboCop::Cop::VariableForce::SCOPE_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#57 +# source://rubocop//lib/rubocop/cop/variable_force.rb#60 RuboCop::Cop::VariableForce::SEND_TYPE = T.let(T.unsafe(nil), Symbol) # A Scope represents a context of local variable visibility. @@ -53608,7 +53990,7 @@ RuboCop::Cop::VariableForce::Scope::OUTER_SCOPE_CHILD_INDICES = T.let(T.unsafe(n # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#54 +# source://rubocop//lib/rubocop/cop/variable_force.rb#57 RuboCop::Cop::VariableForce::TWISTED_SCOPE_TYPES = T.let(T.unsafe(nil), Array) # @api private @@ -53618,12 +54000,12 @@ RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Sym # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#30 +# source://rubocop//lib/rubocop/cop/variable_force.rb#31 RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#45 +# source://rubocop//lib/rubocop/cop/variable_force.rb#48 RuboCop::Cop::VariableForce::VARIABLE_REFERENCE_TYPE = T.let(T.unsafe(nil), Symbol) # A Variable represents existence of a local variable. @@ -53740,12 +54122,12 @@ RuboCop::Cop::VariableForce::Variable::VARIABLE_DECLARATION_TYPES = T.let(T.unsa # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#59 +# source://rubocop//lib/rubocop/cop/variable_force.rb#62 class RuboCop::Cop::VariableForce::VariableReference < ::Struct # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force.rb#60 + # source://rubocop//lib/rubocop/cop/variable_force.rb#63 def assignment?; end # Returns the value of attribute name @@ -53827,7 +54209,7 @@ end # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#52 +# source://rubocop//lib/rubocop/cop/variable_force.rb#55 RuboCop::Cop::VariableForce::ZERO_ARITY_SUPER_TYPE = T.let(T.unsafe(nil), Symbol) # Help methods for determining node visibility. @@ -54037,11 +54419,6 @@ RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/directive_comment.rb#15 RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String) -# @api private -# -# source://rubocop//lib/rubocop/directive_comment.rb#21 -RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) - # @api private # # source://rubocop//lib/rubocop/directive_comment.rb#9 @@ -54177,13 +54554,10 @@ end # # source://rubocop//lib/rubocop/ext/regexp_node.rb#6 module RuboCop::Ext::RegexpNode - # Please remove this `else` branch when support for regexp_parser 1.8 will be dropped. - # It's for compatibility with regexp_parser 1.8 and will never be maintained. - # - # source://rubocop//lib/rubocop/ext/regexp_node.rb#19 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#18 def assign_properties(*_arg0); end - # source://rubocop//lib/rubocop/ext/regexp_node.rb#53 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#31 def each_capture(named: T.unsafe(nil)); end # Note: we extend Regexp nodes to provide `loc` and `expression` @@ -54198,10 +54572,10 @@ module RuboCop::Ext::RegexpNode # @return [Boolean] # - # source://rubocop//lib/rubocop/ext/regexp_node.rb#65 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#43 def named_capturing?(exp, event, named); end - # source://rubocop//lib/rubocop/ext/regexp_node.rb#73 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#51 def with_interpolations_blanked; end end @@ -54222,7 +54596,7 @@ module RuboCop::Ext::RegexpParser::Expression; end module RuboCop::Ext::RegexpParser::Expression::Base # Shortcut to `loc.expression` # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#27 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#26 def expression; end # E.g. @@ -54235,7 +54609,7 @@ module RuboCop::Ext::RegexpParser::Expression::Base # # Please open issue if you need other locations # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#61 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#44 def loc; end # Returns the value of attribute origin. @@ -54252,15 +54626,15 @@ module RuboCop::Ext::RegexpParser::Expression::Base private - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#67 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#50 def build_location; end end # Provide `CharacterSet` with `begin` and `end` locations. # -# source://rubocop//lib/rubocop/ext/regexp_parser.rb#79 +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#62 module RuboCop::Ext::RegexpParser::Expression::CharacterSet - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#80 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#63 def build_location; end end @@ -54659,16 +55033,16 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#73 def command; end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#165 def cop_config_params(default_cfg, cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#181 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185 def default_config(cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#225 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#229 def excludes(offending_files, cop_name, parent); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#196 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#200 def filtered_config(cfg); end # Returns true if the given arr include the given elm or if any of the @@ -54676,38 +55050,38 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo # # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#273 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#277 def include_or_match?(arr, elm); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#246 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250 def merge_mode_for_exclude?(cfg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#271 def no_exclude_limit?; end # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#102 def output_cop(cop_name, offense_count); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#133 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#137 def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#189 def output_cop_config(output_buffer, cfg, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#168 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#172 def output_cop_param_comments(output_buffer, params, default_cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#215 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#219 def output_exclude_list(output_buffer, offending_files, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#254 def output_exclude_path(output_buffer, exclude_path, parent); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#204 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#208 def output_offending_files(output_buffer, cfg, cop_name); end # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#96 @@ -54715,12 +55089,17 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#263 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267 def safe_autocorrect?(config); end # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#116 def set_max(cfg, cop_name); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#125 + def should_set_max?(cop_name); end + # @return [Boolean] # # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#65 @@ -54733,12 +55112,12 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#153 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157 def supports_safe_autocorrect?(cop_class, default_cfg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161 def supports_unsafe_autocorrect?(cop_class, default_cfg); end # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#92 @@ -54811,43 +55190,46 @@ end class RuboCop::Formatter::FormatterSet < ::Array # @return [FormatterSet] a new instance of FormatterSet # - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#39 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#40 def initialize(options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#55 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#56 def add_formatter(formatter_type, output_path = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#67 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#68 def close_output_files; end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#50 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#51 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#44 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#45 def file_started(file, options); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#35 def finished(*args); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#35 def started(*args); end private - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#86 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#87 def builtin_formatter_class(specified_key); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#99 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#105 def custom_formatter_class(specified_class_name); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#75 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#76 def formatter_class(formatter_type); end end # source://rubocop//lib/rubocop/formatter/formatter_set.rb#11 RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTERS_FOR_KEYS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/formatter/formatter_set.rb#31 +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#30 +RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTER_NAMES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#32 RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array) # This formatter displays a progress bar and shows details of offenses as @@ -54947,15 +55329,15 @@ end # This class provides helper methods used in the ERB CSS template. # -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#135 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#137 class RuboCop::Formatter::HTMLFormatter::CSSContext # Make Kernel#binding public. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#146 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#148 def binding; end end -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#136 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#138 RuboCop::Formatter::HTMLFormatter::CSSContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash) # source://rubocop//lib/rubocop/formatter/html_formatter.rb#12 @@ -55027,60 +55409,60 @@ RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String) # This class provides helper methods used in the ERB template. # -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#61 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#63 class RuboCop::Formatter::HTMLFormatter::ERBContext include ::RuboCop::PathUtil include ::RuboCop::Formatter::TextUtil # @return [ERBContext] a new instance of ERBContext # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#69 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#71 def initialize(files, summary); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#116 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#118 def base64_encoded_logo_image; end # Make Kernel#binding public. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#78 def binding; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#81 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#83 def decorated_message(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#112 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#114 def escape(string); end # Returns the value of attribute files. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#67 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#69 def files; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#92 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#94 def highlight_source_tag(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#85 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#87 def highlighted_source_line(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#108 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#110 def possible_ellipses(location); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#124 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#126 def render_css; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#103 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#105 def source_after_highlight(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#98 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#100 def source_before_highlight(offense); end # Returns the value of attribute summary. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#67 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#69 def summary; end end -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#65 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#67 RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 @@ -55608,7 +55990,7 @@ module RuboCop::LSP # @return [void] # # source://rubocop//lib/rubocop/lsp.rb#25 - def disable; end + def disable(&block); end # Enable LSP. # @@ -55630,7 +56012,7 @@ module RuboCop::LSP # @return [void] # # source://rubocop//lib/rubocop/lsp.rb#25 - def disable; end + def disable(&block); end # Enable LSP. # @@ -55682,52 +56064,52 @@ class RuboCop::LSP::Routes # source://rubocop//lib/rubocop/lsp/routes.rb#38 def handle_initialize(request); end - # source://rubocop//lib/rubocop/lsp/routes.rb#61 + # source://rubocop//lib/rubocop/lsp/routes.rb#57 def handle_initialized(_request); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#169 + # source://rubocop//lib/rubocop/lsp/routes.rb#167 def handle_method_missing(request); end - # source://rubocop//lib/rubocop/lsp/routes.rb#68 + # source://rubocop//lib/rubocop/lsp/routes.rb#64 def handle_shutdown(request); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#158 + # source://rubocop//lib/rubocop/lsp/routes.rb#156 def handle_unsupported_method(request, method = T.unsafe(nil)); end private # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#207 + # source://rubocop//lib/rubocop/lsp/routes.rb#205 def diagnostic(file_uri, text); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#177 + # source://rubocop//lib/rubocop/lsp/routes.rb#175 def extract_initialization_options_from(request); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#187 + # source://rubocop//lib/rubocop/lsp/routes.rb#185 def format_file(file_uri, command: T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#221 + # source://rubocop//lib/rubocop/lsp/routes.rb#219 def remove_file_protocol_from(uri); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#225 + # source://rubocop//lib/rubocop/lsp/routes.rb#223 def to_diagnostic(offense); end # @api private # - # source://rubocop//lib/rubocop/lsp/routes.rb#237 + # source://rubocop//lib/rubocop/lsp/routes.rb#235 def to_range(location); end class << self diff --git a/sorbet/rbi/gems/sassc-rails@2.1.2.rbi b/sorbet/rbi/gems/sassc-rails@2.1.2.rbi deleted file mode 100644 index 3a294532..00000000 --- a/sorbet/rbi/gems/sassc-rails@2.1.2.rbi +++ /dev/null @@ -1,216 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - # source://sassc/2.4.0/lib/sassc.rb#21 - def load_paths; end - end -end - -# source://sassc-rails//lib/sassc/rails/version.rb#4 -module SassC::Rails; end - -# source://sassc-rails//lib/sassc/rails/importer.rb#7 -class SassC::Rails::Importer < ::SassC::Importer - # source://sassc-rails//lib/sassc/rails/importer.rb#89 - def imports(path, parent_path); end - - private - - # source://sassc-rails//lib/sassc/rails/importer.rb#139 - def context; end - - # source://sassc-rails//lib/sassc/rails/importer.rb#129 - def extension_for_file(file); end - - # source://sassc-rails//lib/sassc/rails/importer.rb#147 - def glob_imports(base, glob, current_file); end - - # @raise [ArgumentError] - # - # source://sassc-rails//lib/sassc/rails/importer.rb#158 - def globbed_files(base, glob); end - - # source://sassc-rails//lib/sassc/rails/importer.rb#143 - def load_paths; end - - # source://sassc-rails//lib/sassc/rails/importer.rb#135 - def record_import_as_dependency(path); end -end - -# source://sassc-rails//lib/sassc/rails/importer.rb#20 -class SassC::Rails::Importer::CSSExtension - # source://sassc-rails//lib/sassc/rails/importer.rb#25 - def import_for(full_path, parent_dir, options); end - - # source://sassc-rails//lib/sassc/rails/importer.rb#21 - def postfix; end -end - -# source://sassc-rails//lib/sassc/rails/importer.rb#42 -class SassC::Rails::Importer::CssSassExtension < ::SassC::Rails::Importer::Extension - # source://sassc-rails//lib/sassc/rails/importer.rb#47 - def import_for(full_path, parent_dir, options); end - - # source://sassc-rails//lib/sassc/rails/importer.rb#43 - def postfix; end -end - -# source://sassc-rails//lib/sassc/rails/importer.rb#31 -class SassC::Rails::Importer::CssScssExtension < ::SassC::Rails::Importer::Extension - # source://sassc-rails//lib/sassc/rails/importer.rb#36 - def import_for(full_path, parent_dir, options); end - - # source://sassc-rails//lib/sassc/rails/importer.rb#32 - def postfix; end -end - -# source://sassc-rails//lib/sassc/rails/importer.rb#67 -class SassC::Rails::Importer::ERBExtension < ::SassC::Rails::Importer::Extension - # source://sassc-rails//lib/sassc/rails/importer.rb#68 - def import_for(full_path, parent_dir, options); end -end - -# source://sassc-rails//lib/sassc/rails/importer.rb#75 -SassC::Rails::Importer::EXTENSIONS = T.let(T.unsafe(nil), Array) - -# source://sassc-rails//lib/sassc/rails/importer.rb#8 -class SassC::Rails::Importer::Extension - # @return [Extension] a new instance of Extension - # - # source://sassc-rails//lib/sassc/rails/importer.rb#11 - def initialize(postfix = T.unsafe(nil)); end - - # source://sassc-rails//lib/sassc/rails/importer.rb#15 - def import_for(full_path, parent_dir, options); end - - # Returns the value of attribute postfix. - # - # source://sassc-rails//lib/sassc/rails/importer.rb#9 - def postfix; end -end - -# source://sassc-rails//lib/sassc/rails/importer.rb#87 -SassC::Rails::Importer::GLOB = T.let(T.unsafe(nil), Regexp) - -# source://sassc-rails//lib/sassc/rails/importer.rb#86 -SassC::Rails::Importer::PREFIXS = T.let(T.unsafe(nil), Array) - -# source://sassc-rails//lib/sassc/rails/importer.rb#54 -class SassC::Rails::Importer::SassERBExtension < ::SassC::Rails::Importer::Extension - # source://sassc-rails//lib/sassc/rails/importer.rb#59 - def import_for(full_path, parent_dir, options); end - - # source://sassc-rails//lib/sassc/rails/importer.rb#55 - def postfix; end -end - -# source://sassc-rails//lib/sassc/rails/railtie.rb#7 -class SassC::Rails::Railtie < ::Rails::Railtie; end - -# source://sassc-rails//lib/sassc/rails/template.rb#8 -class SassC::Rails::SassTemplate < ::Sprockets::SassProcessor - # @return [SassTemplate] a new instance of SassTemplate - # - # source://sassc-rails//lib/sassc/rails/template.rb#9 - def initialize(options = T.unsafe(nil), &block); end - - # source://sassc-rails//lib/sassc/rails/template.rb#21 - def call(input); end - - # source://sassc-rails//lib/sassc/rails/template.rb#46 - def config_options; end - - # @return [Boolean] - # - # source://sassc-rails//lib/sassc/rails/template.rb#69 - def line_comments?; end - - # source://sassc-rails//lib/sassc/rails/template.rb#65 - def load_paths; end - - # source://sassc-rails//lib/sassc/rails/template.rb#73 - def safe_merge(_key, left, right); end - - # source://sassc-rails//lib/sassc/rails/template.rb#61 - def sass_style; end -end - -# The methods in the Functions module were copied here from sprockets in order to -# override the Value class names (e.g. ::SassC::Script::Value::String) -# -# source://sassc-rails//lib/sassc/rails/template.rb#85 -module SassC::Rails::SassTemplate::Functions - # source://sassc-rails//lib/sassc/rails/template.rb#101 - def asset_data_url(path); end - - # source://sassc-rails//lib/sassc/rails/template.rb#86 - def asset_path(path, options = T.unsafe(nil)); end - - # source://sassc-rails//lib/sassc/rails/template.rb#97 - def asset_url(path, options = T.unsafe(nil)); end -end - -# source://sassc-rails//lib/sassc/rails/template.rb#108 -class SassC::Rails::ScssTemplate < ::SassC::Rails::SassTemplate - class << self - # source://sassc-rails//lib/sassc/rails/template.rb#109 - def syntax; end - end -end - -# source://sassc-rails//lib/sassc/rails/version.rb#5 -SassC::Rails::VERSION = T.let(T.unsafe(nil), String) - -# source://sassc-rails//lib/sassc/rails/functions.rb#5 -module Sprockets - extend ::Sprockets::Utils - extend ::Sprockets::URIUtils - extend ::Sprockets::PathUtils - extend ::Sprockets::DigestUtils - extend ::Sprockets::PathDigestUtils - extend ::Sprockets::Dependencies - extend ::Sprockets::Compressing - extend ::Sprockets::Exporting - extend ::Sprockets::Processing - extend ::Sprockets::HTTPUtils - extend ::Sprockets::Transformers - extend ::Sprockets::Mime - extend ::Sprockets::Paths -end - -# source://sassc-rails//lib/sassc/rails/compressor.rb#6 -class Sprockets::SassCompressor - # @return [SassCompressor] a new instance of SassCompressor - # - # source://sassc-rails//lib/sassc/rails/compressor.rb#7 - def initialize(options = T.unsafe(nil)); end - - # source://sprockets/4.2.1/lib/sprockets/sass_compressor.rb#37 - def cache_key; end - - # source://sassc-rails//lib/sassc/rails/compressor.rb#17 - def call(*args); end - - # sprockets 2.x - # - # source://sassc-rails//lib/sassc/rails/compressor.rb#17 - def evaluate(*args); end - - class << self - # source://sprockets/4.2.1/lib/sprockets/sass_compressor.rb#33 - def cache_key; end - - # source://sprockets/4.2.1/lib/sprockets/sass_compressor.rb#29 - def call(input); end - - # source://sprockets/4.2.1/lib/sprockets/sass_compressor.rb#25 - def instance; end - end -end diff --git a/sorbet/rbi/gems/sassc@2.4.0.rbi b/sorbet/rbi/gems/sassc@2.4.0.rbi deleted file mode 100644 index 39646f7f..00000000 --- a/sorbet/rbi/gems/sassc@2.4.0.rbi +++ /dev/null @@ -1,1770 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 - # The global load paths for Sass files. This is meant for plugins and - # libraries to register the paths to their Sass stylesheets to that they may - # be `@imported`. This load path is used by every instance of {Sass::Engine}. - # They are lower-precedence than any load paths passed in via the - # {file:SASS_REFERENCE.md#load_paths-option `:load_paths` option}. - # - # If the `SASS_PATH` environment variable is set, - # the initial value of `load_paths` will be initialized based on that. - # The variable should be a colon-separated list of path names - # (semicolon-separated on Windows). - # - # Note that files on the global load path are never compiled to CSS - # themselves, even if they aren't partials. They exist only to be imported. - # - # @example - # SassC.load_paths << File.dirname(__FILE__ + '/sass') - # @return [Array] - # - # source://sassc//lib/sassc.rb#21 - def load_paths; end - end -end - -# source://sassc//lib/sassc/error.rb#7 -class SassC::BaseError < ::StandardError; end - -# source://sassc//lib/sassc/dependency.rb#4 -class SassC::Dependency - # @return [Dependency] a new instance of Dependency - # - # source://sassc//lib/sassc/dependency.rb#8 - def initialize(filename); end - - # Returns the value of attribute filename. - # - # source://sassc//lib/sassc/dependency.rb#5 - def filename; end - - # Returns the value of attribute options. - # - # source://sassc//lib/sassc/dependency.rb#6 - def options; end - - class << self - # source://sassc//lib/sassc/dependency.rb#13 - def from_filenames(filenames); end - end -end - -# source://sassc//lib/sassc/engine.rb#6 -class SassC::Engine - # @return [Engine] a new instance of Engine - # - # source://sassc//lib/sassc/engine.rb#16 - def initialize(template, options = T.unsafe(nil)); end - - # @raise [NotRenderedError] - # - # source://sassc//lib/sassc/engine.rb#66 - def dependencies; end - - # source://sassc//lib/sassc/engine.rb#76 - def filename; end - - # Returns the value of attribute options. - # - # source://sassc//lib/sassc/engine.rb#14 - def options; end - - # source://sassc//lib/sassc/engine.rb#22 - def render; end - - # @raise [NotRenderedError] - # - # source://sassc//lib/sassc/engine.rb#71 - def source_map; end - - # Returns the value of attribute template. - # - # source://sassc//lib/sassc/engine.rb#14 - def template; end - - private - - # source://sassc//lib/sassc/engine.rb#118 - def functions_handler; end - - # source://sassc//lib/sassc/engine.rb#114 - def import_handler; end - - # @return [Boolean] - # - # source://sassc//lib/sassc/engine.rb#94 - def line_comments?; end - - # source://sassc//lib/sassc/engine.rb#136 - def load_paths; end - - # @return [Boolean] - # - # source://sassc//lib/sassc/engine.rb#106 - def omit_source_map_url?; end - - # source://sassc//lib/sassc/engine.rb#126 - def output_style; end - - # source://sassc//lib/sassc/engine.rb#122 - def output_style_enum; end - - # source://sassc//lib/sassc/engine.rb#86 - def precision; end - - # @return [Boolean] - # - # source://sassc//lib/sassc/engine.rb#82 - def quiet?; end - - # @return [Boolean] - # - # source://sassc//lib/sassc/engine.rb#90 - def sass?; end - - # @return [Boolean] - # - # source://sassc//lib/sassc/engine.rb#102 - def source_map_contents?; end - - # @return [Boolean] - # - # source://sassc//lib/sassc/engine.rb#98 - def source_map_embed?; end - - # source://sassc//lib/sassc/engine.rb#110 - def source_map_file; end -end - -# source://sassc//lib/sassc/engine.rb#7 -SassC::Engine::OUTPUT_STYLES = T.let(T.unsafe(nil), Array) - -# source://sassc//lib/sassc/functions_handler.rb#4 -class SassC::FunctionsHandler - # @return [FunctionsHandler] a new instance of FunctionsHandler - # - # source://sassc//lib/sassc/functions_handler.rb#5 - def initialize(options); end - - # source://sassc//lib/sassc/functions_handler.rb#9 - def setup(native_options, functions: T.unsafe(nil)); end - - private - - # source://sassc//lib/sassc/functions_handler.rb#51 - def arguments_from_native_list(native_argument_list); end - - # source://sassc//lib/sassc/functions_handler.rb#68 - def error(message); end - - # source://sassc//lib/sassc/functions_handler.rb#60 - def to_native_value(sass_value); end -end - -# source://sassc//lib/sassc/import_handler.rb#4 -class SassC::ImportHandler - # @return [ImportHandler] a new instance of ImportHandler - # - # source://sassc//lib/sassc/import_handler.rb#5 - def initialize(options); end - - # source://sassc//lib/sassc/import_handler.rb#13 - def setup(native_options); end - - private - - # source://sassc//lib/sassc/import_handler.rb#26 - def import_function; end - - # source://sassc//lib/sassc/import_handler.rb#36 - def imports_to_native(imports); end -end - -# source://sassc//lib/sassc/importer.rb#4 -class SassC::Importer - # @return [Importer] a new instance of Importer - # - # source://sassc//lib/sassc/importer.rb#7 - def initialize(options); end - - # @raise [NotImplementedError] - # - # source://sassc//lib/sassc/importer.rb#11 - def imports(path, parent_path); end - - # Returns the value of attribute options. - # - # source://sassc//lib/sassc/importer.rb#5 - def options; end -end - -# source://sassc//lib/sassc/importer.rb#17 -class SassC::Importer::Import - # @return [Import] a new instance of Import - # - # source://sassc//lib/sassc/importer.rb#20 - def initialize(path, source: T.unsafe(nil), source_map_path: T.unsafe(nil)); end - - # Returns the value of attribute path. - # - # source://sassc//lib/sassc/importer.rb#18 - def path; end - - # Sets the attribute path - # - # @param value the value to set the attribute path to. - # - # source://sassc//lib/sassc/importer.rb#18 - def path=(_arg0); end - - # Returns the value of attribute source. - # - # source://sassc//lib/sassc/importer.rb#18 - def source; end - - # Sets the attribute source - # - # @param value the value to set the attribute source to. - # - # source://sassc//lib/sassc/importer.rb#18 - def source=(_arg0); end - - # Returns the value of attribute source_map_path. - # - # source://sassc//lib/sassc/importer.rb#18 - def source_map_path; end - - # Sets the attribute source_map_path - # - # @param value the value to set the attribute source_map_path to. - # - # source://sassc//lib/sassc/importer.rb#18 - def source_map_path=(_arg0); end - - # source://sassc//lib/sassc/importer.rb#26 - def to_s; end -end - -# source://sassc//lib/sassc/error.rb#9 -class SassC::InvalidStyleError < ::SassC::BaseError; end - -# source://sassc//lib/sassc/native.rb#6 -module SassC::Native - extend ::FFI::Library - - def _context_get_included_files(*_arg0); end - def _make_data_context(*_arg0); end - def boolean_get_value(*_arg0); end - def color_get_a(*_arg0); end - def color_get_b(*_arg0); end - def color_get_g(*_arg0); end - def color_get_r(*_arg0); end - def color_set_a(*_arg0); end - def color_set_b(*_arg0); end - def color_set_g(*_arg0); end - def color_set_r(*_arg0); end - def compile_data_context(*_arg0); end - def compile_file_context(*_arg0); end - def compiler_get_last_import(*_arg0); end - def context_get_error_column(*_arg0); end - def context_get_error_file(*_arg0); end - def context_get_error_json(*_arg0); end - def context_get_error_line(*_arg0); end - def context_get_error_message(*_arg0); end - def context_get_error_status(*_arg0); end - def context_get_options(*_arg0); end - def context_get_output_string(*_arg0); end - def context_get_source_map_string(*_arg0); end - def data_context_get_context(*_arg0); end - def data_context_get_options(*_arg0); end - def data_context_set_options(*_arg0); end - def delete_data_context(*_arg0); end - def delete_file_context(*_arg0); end - def error_get_message(*_arg0); end - def error_set_message(*_arg0); end - def file_context_get_context(*_arg0); end - def file_context_get_options(*_arg0); end - def file_context_set_options(*_arg0); end - def function_get_cookie(*_arg0); end - def function_get_function(*_arg0); end - def function_get_list_entry(*_arg0); end - def function_get_signature(*_arg0); end - def function_set_list_entry(*_arg0); end - def import_get_abs_path(*_arg0); end - def import_get_imp_path(*_arg0); end - def import_get_source(*_arg0); end - def import_set_list_entry(*_arg0); end - def list_get_length(*_arg0); end - def list_get_value(*_arg0); end - def list_set_value(*_arg0); end - def make_boolean(*_arg0); end - def make_color(*_arg0); end - def make_error(*_arg0); end - def make_file_context(*_arg0); end - def make_function(*_arg0); end - def make_function_list(*_arg0); end - def make_import_entry(*_arg0); end - def make_import_list(*_arg0); end - def make_importer(*_arg0); end - def make_list(*_arg0); end - def make_map(*_arg0); end - def make_number(*_arg0); end - def make_options(*_arg0); end - def make_qstring(*_arg0); end - def make_string(*_arg0); end - def map_get_key(*_arg0); end - def map_get_length(*_arg0); end - def map_get_value(*_arg0); end - def map_set_key(*_arg0); end - def map_set_value(*_arg0); end - def number_get_unit(*_arg0); end - def number_get_value(*_arg0); end - def option_get_c_functions(*_arg0); end - def option_get_include_path(*_arg0); end - def option_get_input_path(*_arg0); end - def option_get_is_indented_syntax_src(*_arg0); end - def option_get_omit_source_map_url(*_arg0); end - def option_get_output_path(*_arg0); end - def option_get_output_style(*_arg0); end - def option_get_precision(*_arg0); end - def option_get_source_comments(*_arg0); end - def option_get_source_map_contents(*_arg0); end - def option_get_source_map_embed(*_arg0); end - def option_get_source_map_file(*_arg0); end - def option_set_c_functions(*_arg0); end - def option_set_c_importers(*_arg0); end - def option_set_include_path(*_arg0); end - def option_set_input_path(*_arg0); end - def option_set_is_indented_syntax_src(*_arg0); end - def option_set_omit_source_map_url(*_arg0); end - def option_set_output_path(*_arg0); end - def option_set_output_style(*_arg0); end - def option_set_precision(*_arg0); end - def option_set_source_comments(*_arg0); end - def option_set_source_map_contents(*_arg0); end - def option_set_source_map_embed(*_arg0); end - def option_set_source_map_file(*_arg0); end - def sass2scss(*_arg0); end - def string_get_value(*_arg0); end - def string_is_quoted(*_arg0); end - def value_get_tag(*_arg0); end - def value_is_null(*_arg0); end - def version(*_arg0); end - - class << self - def _context_get_included_files(*_arg0); end - def _make_data_context(*_arg0); end - - # Remove the redundant "sass_" from the beginning of every method name - # - # source://sassc//lib/sassc/native.rb#39 - def attach_function(*args); end - - def boolean_get_value(*_arg0); end - def color_get_a(*_arg0); end - def color_get_b(*_arg0); end - def color_get_g(*_arg0); end - def color_get_r(*_arg0); end - def color_set_a(*_arg0); end - def color_set_b(*_arg0); end - def color_set_g(*_arg0); end - def color_set_r(*_arg0); end - def compile_data_context(*_arg0); end - def compile_file_context(*_arg0); end - def compiler_get_last_import(*_arg0); end - def context_get_error_column(*_arg0); end - def context_get_error_file(*_arg0); end - def context_get_error_json(*_arg0); end - def context_get_error_line(*_arg0); end - def context_get_error_message(*_arg0); end - def context_get_error_status(*_arg0); end - - # source://sassc//lib/sassc/native/native_context_api.rb#140 - def context_get_included_files(*args); end - - def context_get_options(*_arg0); end - def context_get_output_string(*_arg0); end - def context_get_source_map_string(*_arg0); end - def data_context_get_context(*_arg0); end - def data_context_get_options(*_arg0); end - def data_context_set_options(*_arg0); end - def delete_data_context(*_arg0); end - def delete_file_context(*_arg0); end - def error_get_message(*_arg0); end - def error_set_message(*_arg0); end - def file_context_get_context(*_arg0); end - def file_context_get_options(*_arg0); end - def file_context_set_options(*_arg0); end - def function_get_cookie(*_arg0); end - def function_get_function(*_arg0); end - def function_get_list_entry(*_arg0); end - def function_get_signature(*_arg0); end - def function_set_list_entry(*_arg0); end - def import_get_abs_path(*_arg0); end - def import_get_imp_path(*_arg0); end - def import_get_source(*_arg0); end - def import_set_list_entry(*_arg0); end - def list_get_length(*_arg0); end - def list_get_value(*_arg0); end - def list_set_value(*_arg0); end - def make_boolean(*_arg0); end - def make_color(*_arg0); end - - # source://sassc//lib/sassc/native/native_context_api.rb#17 - def make_data_context(data); end - - def make_error(*_arg0); end - def make_file_context(*_arg0); end - def make_function(*_arg0); end - def make_function_list(*_arg0); end - def make_import_entry(*_arg0); end - def make_import_list(*_arg0); end - def make_importer(*_arg0); end - def make_list(*_arg0); end - def make_map(*_arg0); end - def make_number(*_arg0); end - def make_options(*_arg0); end - def make_qstring(*_arg0); end - def make_string(*_arg0); end - def map_get_key(*_arg0); end - def map_get_length(*_arg0); end - def map_get_value(*_arg0); end - def map_set_key(*_arg0); end - def map_set_value(*_arg0); end - - # source://sassc//lib/sassc/native.rb#54 - def native_string(string); end - - def number_get_unit(*_arg0); end - def number_get_value(*_arg0); end - def option_get_c_functions(*_arg0); end - def option_get_include_path(*_arg0); end - def option_get_input_path(*_arg0); end - def option_get_is_indented_syntax_src(*_arg0); end - def option_get_omit_source_map_url(*_arg0); end - def option_get_output_path(*_arg0); end - def option_get_output_style(*_arg0); end - def option_get_precision(*_arg0); end - def option_get_source_comments(*_arg0); end - def option_get_source_map_contents(*_arg0); end - def option_get_source_map_embed(*_arg0); end - def option_get_source_map_file(*_arg0); end - def option_set_c_functions(*_arg0); end - def option_set_c_importers(*_arg0); end - def option_set_include_path(*_arg0); end - def option_set_input_path(*_arg0); end - def option_set_is_indented_syntax_src(*_arg0); end - def option_set_omit_source_map_url(*_arg0); end - def option_set_output_path(*_arg0); end - def option_set_output_style(*_arg0); end - def option_set_precision(*_arg0); end - def option_set_source_comments(*_arg0); end - def option_set_source_map_contents(*_arg0); end - def option_set_source_map_embed(*_arg0); end - def option_set_source_map_file(*_arg0); end - - # https://github.com/ffi/ffi/wiki/Examples#array-of-strings - # - # source://sassc//lib/sassc/native.rb#50 - def return_string_array(ptr); end - - def sass2scss(*_arg0); end - - # source://sassc//lib/sassc/native/native_functions_api.rb#84 - def string_get_type(native_value); end - - def string_get_value(*_arg0); end - def string_is_quoted(*_arg0); end - def value_get_tag(*_arg0); end - def value_is_null(*_arg0); end - def version(*_arg0); end - end -end - -# source://sassc//lib/sassc/native/sass_value.rb#28 -class SassC::Native::SassBoolean < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_value.rb#39 -class SassC::Native::SassColor < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_value.rb#74 -class SassC::Native::SassError < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_input_style.rb#5 -SassC::Native::SassInputStyle = T.let(T.unsafe(nil), FFI::Enum) - -# source://sassc//lib/sassc/native/sass_value.rb#52 -class SassC::Native::SassList < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_value.rb#64 -class SassC::Native::SassMap < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_value.rb#59 -class SassC::Native::SassMapPair < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_value.rb#70 -class SassC::Native::SassNull < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_value.rb#33 -class SassC::Native::SassNumber < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_output_style.rb#5 -SassC::Native::SassOutputStyle = T.let(T.unsafe(nil), FFI::Enum) - -# source://sassc//lib/sassc/native/sass_value.rb#19 -SassC::Native::SassSeparator = T.let(T.unsafe(nil), FFI::Enum) - -# source://sassc//lib/sassc/native/sass_value.rb#47 -class SassC::Native::SassString < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/sass_value.rb#7 -SassC::Native::SassTag = T.let(T.unsafe(nil), FFI::Enum) - -# source://sassc//lib/sassc/native/sass_value.rb#24 -class SassC::Native::SassUnknown < ::FFI::Struct; end - -# < FFI::Union -# -# source://sassc//lib/sassc/native/sass_value.rb#5 -class SassC::Native::SassValue < ::FFI::Union; end - -# source://sassc//lib/sassc/native/sass_value.rb#79 -class SassC::Native::SassWarning < ::FFI::Struct; end - -# source://sassc//lib/sassc/native/string_list.rb#5 -class SassC::Native::StringList < ::FFI::Struct; end - -# source://sassc//lib/sassc/error.rb#8 -class SassC::NotRenderedError < ::SassC::BaseError; end - -# source://sassc//lib/sassc/sass_2_scss.rb#4 -class SassC::Sass2Scss - class << self - # source://sassc//lib/sassc/sass_2_scss.rb#5 - def convert(sass); end - end -end - -# source://sassc//lib/sassc/script.rb#4 -module SassC::Script - class << self - # source://sassc//lib/sassc/script.rb#6 - def custom_functions(functions: T.unsafe(nil)); end - - # source://sassc//lib/sassc/script.rb#10 - def formatted_function_name(function_name, functions: T.unsafe(nil)); end - end -end - -# source://sassc//lib/sassc/script/functions.rb#5 -module SassC::Script::Functions; end - -# The abstract superclass for SassScript objects. -# Many of these methods, especially the ones that correspond to SassScript operations, -# are designed to be overridden by subclasses which may change the semantics somewhat. -# The operations listed here are just the defaults. -# -# source://sassc//lib/sassc/script/value.rb#8 -class SassC::Script::Value - # Creates a new value. - # - # @return [Value] a new instance of Value - # - # source://sassc//lib/sassc/script/value.rb#18 - def initialize(value = T.unsafe(nil)); end - - # Compares this object to `other` - # - # source://sassc//lib/sassc/script/value.rb#59 - def ==(other); end - - # @raise [SassC::SyntaxError] if this value isn't an integer - # - # source://sassc//lib/sassc/script/value.rb#70 - def assert_int!; end - - # Whether the value is surrounded by square brackets. For non-list values, - # this will be `false`. - # - # source://sassc//lib/sassc/script/value.rb#80 - def bracketed; end - - # True if this Value is the same as `other` - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value.rb#44 - def eql?(other); end - - # Returns the hash code of this value. Two objects' hash codes should be - # equal if the objects are equal. - # - # source://sassc//lib/sassc/script/value.rb#39 - def hash; end - - # Returns a system inspect value for this object - # - # source://sassc//lib/sassc/script/value.rb#49 - def inspect; end - - # Returns `false` (all Values are truthy) - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value.rb#112 - def null?; end - - # Returns the options hash for this node. - # Raises SassC::SyntaxError if the value was created - # outside of the parser and \{#to\_s} was called on it - # - # @raise [SassC::SyntaxError] - # - # source://sassc//lib/sassc/script/value.rb#32 - def options; end - - # Sets the options hash for this node, - # as well as for all child nodes. - # See the official Sass reference for options. - # - # source://sassc//lib/sassc/script/value.rb#27 - def options=(_arg0); end - - # Returns the separator for this value. For non-list-like values or the - # empty list, this will be `nil`. For lists or maps, it will be `:space` or `:comma`. - # - # source://sassc//lib/sassc/script/value.rb#74 - def separator; end - - # The source range in the document on which this node appeared. - # - # source://sassc//lib/sassc/script/value.rb#15 - def source_range; end - - # The source range in the document on which this node appeared. - # - # source://sassc//lib/sassc/script/value.rb#15 - def source_range=(_arg0); end - - # Returns the value of this Value as an array. - # Single Values are considered the same as single-element arrays. - # - # source://sassc//lib/sassc/script/value.rb#86 - def to_a; end - - # Returns `true` (all Values are truthy) - # - # source://sassc//lib/sassc/script/value.rb#54 - def to_bool; end - - # Returns the value of this value as a hash. Most values don't have hash - # representations, but [Map]s and empty [List]s do. - # - # @raise [SassC::SyntaxError] if this value doesn't have a hash representation - # @return [Hash] This value as a hash - # - # source://sassc//lib/sassc/script/value.rb#95 - def to_h; end - - # Returns the integer value of this value. - # Raises SassC::SyntaxError if this value doesn’t implment integer conversion. - # - # @raise [SassC::SyntaxError] - # - # source://sassc//lib/sassc/script/value.rb#65 - def to_i; end - - # Returns the string representation of this value - # as it would be output to the CSS document. - # - # @return [String] - # - # source://sassc//lib/sassc/script/value.rb#106 - def to_s(opts = T.unsafe(nil)); end - - # Returns the string representation of this value - # as it would be output to the CSS document. - # - # @return [String] - # - # source://sassc//lib/sassc/script/value.rb#106 - def to_sass(opts = T.unsafe(nil)); end - - # Returns the pure Ruby value of the value. - # The type of this value varies based on the subclass. - # - # source://sassc//lib/sassc/script/value.rb#12 - def value; end - - # Creates a new list containing `contents` but with the same brackets and - # separators as this object, when interpreted as a list. - # - # @param contents [Array] The contents of the new list. - # @param separator [Symbol] The separator of the new list. Defaults to \{#separator}. - # @param bracketed [Boolean] Whether the new list is bracketed. Defaults to \{#bracketed}. - # @return [Sass::Script::Value::List] - # - # source://sassc//lib/sassc/script/value.rb#123 - def with_contents(contents, separator: T.unsafe(nil), bracketed: T.unsafe(nil)); end - - protected - - # Evaluates the value. - # - # @param environment [Sass::Environment] The environment in which to evaluate the SassScript - # @return [Value] This value - # - # source://sassc//lib/sassc/script/value.rb#133 - def _perform(environment); end -end - -# A SassScript object representing a boolean (true or false) value. -# -# source://sassc//lib/sassc/script/value/bool.rb#5 -class SassC::Script::Value::Bool < ::SassC::Script::Value - # The pure Ruby value of this Boolean - # - # source://sassc//lib/sassc/script/value/bool.rb#23 - def to_bool; end - - # Returns the string "true" or "false" for this value - # - # source://sassc//lib/sassc/script/value/bool.rb#27 - def to_s(opts = T.unsafe(nil)); end - - # Returns the string "true" or "false" for this value - # - # source://sassc//lib/sassc/script/value/bool.rb#27 - def to_sass(opts = T.unsafe(nil)); end - - # The pure Ruby value of this Boolean - # - # source://sassc//lib/sassc/script/value/bool.rb#23 - def value; end - - class << self - # We override object creation so that users of the core API - # will not need to know that booleans are specific constants. - # Tests `value` for truthiness and returns the TRUE or FALSE constant. - # - # source://sassc//lib/sassc/script/value/bool.rb#18 - def new(value); end - end -end - -# The false value in SassScript. -# This is assigned before new is overridden below so that we use the default implementation. -# -# source://sassc//lib/sassc/script/value/bool.rb#13 -SassC::Script::Value::Bool::FALSE = T.let(T.unsafe(nil), SassC::Script::Value::Bool) - -# The true value in SassScript. -# This is assigned before new is overridden below so that we use the default implementation. -# -# source://sassc//lib/sassc/script/value/bool.rb#9 -SassC::Script::Value::Bool::TRUE = T.let(T.unsafe(nil), SassC::Script::Value::Bool) - -# A SassScript object representing a CSS color. -# This class provides a very bare-bones system for storing a RGB(A) or HSL(A) -# color and converting it to a CSS color function. -# -# If your Sass method accepts a color you will need to perform any -# needed color mathematics or transformations yourself. -# -# source://sassc//lib/sassc/script/value/color.rb#10 -class SassC::Script::Value::Color < ::SassC::Script::Value - # Creates a new color with (`red`, `green`, `blue`) or (`hue`, `saturation`, `lightness` - # values, plus an optional `alpha` transparency value. - # - # @return [Color] a new instance of Color - # - # source://sassc//lib/sassc/script/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), alpha: T.unsafe(nil)); end - - # True if this Color is equal to `other_color` - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/color.rb#81 - def ==(other_color); end - - # Returns the value of attribute alpha. - # - # source://sassc//lib/sassc/script/value/color.rb#18 - def alpha; end - - # Returns the alpha value of this color as a string - # and rounded to 8 decimal places. - # - # source://sassc//lib/sassc/script/value/color.rb#66 - def alpha_string; end - - # Returns the value of attribute blue. - # - # source://sassc//lib/sassc/script/value/color.rb#14 - def blue; end - - # True if this Color is equal to `other_color` - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/color.rb#81 - def eql?(other_color); end - - # Returns the value of attribute green. - # - # source://sassc//lib/sassc/script/value/color.rb#13 - def green; end - - # Returns a numeric value for comparing two Color objects - # This method is used internally by the Hash class and is not the same as `.to_h` - # - # source://sassc//lib/sassc/script/value/color.rb#91 - def hash; end - - # True if this color has HSLA values - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/color.rb#60 - def hlsa?; end - - # Returns the value of attribute hue. - # - # source://sassc//lib/sassc/script/value/color.rb#15 - def hue; end - - # Returns the value of attribute lightness. - # - # source://sassc//lib/sassc/script/value/color.rb#17 - def lightness; end - - # Returns the value of attribute red. - # - # source://sassc//lib/sassc/script/value/color.rb#12 - def red; end - - # True if this color has RGBA values - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/color.rb#55 - def rgba?; end - - # Returns the value of attribute saturation. - # - # source://sassc//lib/sassc/script/value/color.rb#16 - def saturation; end - - # Returns a CSS color declaration in the form - # `rgb(…)`, `rgba(…)`, `hsl(…)`, or `hsla(…)`. - # - # source://sassc//lib/sassc/script/value/color.rb#42 - def to_s; end - - # Returns the values of this color in an array. - # Provided for compatibility between different SassC::Script::Value classes - # - # source://sassc//lib/sassc/script/value/color.rb#72 - def value; end -end - -# A SassScript object representing a CSS list. -# This includes both comma-separated lists and space-separated lists. -# -# source://sassc//lib/sassc/script/value/list.rb#6 -class SassC::Script::Value::List < ::SassC::Script::Value - # Creates a new list. - # - # @param value [Array] See \{#value} - # @param separator [Symbol] See \{#separator} - # @param bracketed [Boolean] See \{#bracketed} - # @return [List] a new instance of List - # - # source://sassc//lib/sassc/script/value/list.rb#30 - def initialize(value, separator: T.unsafe(nil), bracketed: T.unsafe(nil)); end - - # Whether the list is surrounded by square brackets. - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/list.rb#23 - def bracketed; end - - # @see Value#eq - # - # source://sassc//lib/sassc/script/value/list.rb#43 - def eq(other); end - - # source://sassc//lib/sassc/script/value/list.rb#50 - def hash; end - - # @see Value#inspect - # - # source://sassc//lib/sassc/script/value/list.rb#94 - def inspect; end - - # @see Value#options= - # - # source://sassc//lib/sassc/script/value/list.rb#37 - def options=(options); end - - # The operator separating the values of the list. - # Either `:comma` or `:space`. - # - # @return [Symbol] - # - # source://sassc//lib/sassc/script/value/list.rb#18 - def separator; end - - # The Ruby array containing the contents of the list. - # - # @return [Array] - # - # source://sassc//lib/sassc/script/value/list.rb#11 - def to_a; end - - # @see Value#to_h - # - # source://sassc//lib/sassc/script/value/list.rb#88 - def to_h; end - - # @see Value#to_s - # - # source://sassc//lib/sassc/script/value/list.rb#55 - def to_s(opts = T.unsafe(nil)); end - - # @see Value#to_sass - # - # source://sassc//lib/sassc/script/value/list.rb#69 - def to_sass(opts = T.unsafe(nil)); end - - # The Ruby array containing the contents of the list. - # - # @return [Array] - # - # source://sassc//lib/sassc/script/value/list.rb#11 - def value; end - - private - - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/list.rb#117 - def element_needs_parens?(element); end - - # source://sassc//lib/sassc/script/value/list.rb#130 - def sep_str(opts = T.unsafe(nil)); end - - class << self - # Asserts an index is within the list. - # - # @param list [Sass::Script::Value::List] The list for which the index should be checked. - # @param n [Sass::Script::Value::Number] The index being checked. - # @private - # - # source://sassc//lib/sassc/script/value/list.rb#104 - def assert_valid_index(list, n); end - end -end - -# source://sassc//lib/sassc/script/value/map.rb#3 -class SassC::Script::Value::Map < ::SassC::Script::Value - # Creates a new map. - # - # @param hash [Hash] - # @return [Map] a new instance of Map - # - # source://sassc//lib/sassc/script/value/map.rb#13 - def initialize(hash); end - - # @see Value#eq - # - # source://sassc//lib/sassc/script/value/map.rb#41 - def eq(other); end - - # source://sassc//lib/sassc/script/value/map.rb#45 - def hash; end - - # source://sassc//lib/sassc/script/value/map.rb#54 - def inspect(opts = T.unsafe(nil)); end - - # @see Value#options= - # - # source://sassc//lib/sassc/script/value/map.rb#18 - def options=(options); end - - # @see Value#separator - # - # source://sassc//lib/sassc/script/value/map.rb#27 - def separator; end - - # @see Value#to_a - # - # source://sassc//lib/sassc/script/value/map.rb#32 - def to_a; end - - # The Ruby hash containing the contents of this map. - # - # @return [Hash] - # - # source://sassc//lib/sassc/script/value/map.rb#7 - def to_h; end - - # @raise [SassC::SyntaxError] - # @see Value#to_s - # - # source://sassc//lib/sassc/script/value/map.rb#50 - def to_s(opts = T.unsafe(nil)); end - - # source://sassc//lib/sassc/script/value/map.rb#54 - def to_sass(opts = T.unsafe(nil)); end - - # The Ruby hash containing the contents of this map. - # - # @return [Hash] - # - # source://sassc//lib/sassc/script/value/map.rb#7 - def value; end -end - -# A SassScript object representing a number. -# SassScript numbers can have decimal values, -# and can also have units. -# For example, `12`, `1px`, and `10.45em` -# are all valid values. -# -# Numbers can also have more complex units, such as `1px*em/in`. -# These cannot be inputted directly in Sass code at the moment. -# -# source://sassc//lib/sassc/script/value/number.rb#12 -class SassC::Script::Value::Number < ::SassC::Script::Value - # @param value [Numeric] The value of the number - # @param numerator_units [::String, Array<::String>] See \{#numerator\_units} - # @param denominator_units [::String, Array<::String>] See \{#denominator\_units} - # @return [Number] a new instance of Number - # - # source://sassc//lib/sassc/script/value/number.rb#73 - def initialize(value, numerator_units = T.unsafe(nil), denominator_units = T.unsafe(nil)); end - - # Returns this number converted to other units. - # The conversion takes into account the relationship between e.g. mm and cm, - # as well as between e.g. in and cm. - # - # If this number has no units, it will simply return itself - # with the given units. - # - # An incompatible coercion, e.g. between px and cm, will raise an error. - # - # @param num_units [Array] The numerator units to coerce this number into. - # See {\#numerator\_units} - # @param den_units [Array] The denominator units to coerce this number into. - # See {\#denominator\_units} - # @raise [Sass::UnitConversionError] if the given units are incompatible with the number's - # current units - # @return [Number] The number with the new units - # - # source://sassc//lib/sassc/script/value/number.rb#192 - def coerce(num_units, den_units); end - - # @param other [Number] A number to decide if it can be compared with this number. - # @return [Boolean] Whether or not this number can be compared with the other. - # - # source://sassc//lib/sassc/script/value/number.rb#203 - def comparable_to?(other); end - - # A list of units in the denominator of the number. - # For example, `1px*em/in*cm` would return `["in", "cm"]` - # - # @return [Array] - # - # source://sassc//lib/sassc/script/value/number.rb#27 - def denominator_units; end - - # Hash-equality works differently than `==` equality for numbers. - # Hash-equality must be transitive, so it just compares the exact value, - # numerator units, and denominator units. - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/number.rb#90 - def eql?(other); end - - # source://sassc//lib/sassc/script/value/number.rb#83 - def hash; end - - # Returns a readable representation of this number. - # - # This representation is valid CSS (and valid SassScript) - # as long as there is only one unit. - # - # @return [String] The representation - # - # source://sassc//lib/sassc/script/value/number.rb#110 - def inspect(opts = T.unsafe(nil)); end - - # @return [Boolean] Whether or not this number is an integer. - # - # source://sassc//lib/sassc/script/value/number.rb#143 - def int?; end - - # Checks whether the number has the numerator unit specified. - # - # @example - # number = Sass::Script::Value::Number.new(10, "px") - # number.is_unit?("px") => true - # number.is_unit?(nil) => false - # @param unit [::String, nil] The unit the number should have or nil if the number - # should be unitless. - # @return [Boolean] - # @see Number#unitless? The unitless? method may be more readable. - # - # source://sassc//lib/sassc/script/value/number.rb#162 - def is_unit?(unit); end - - # @return [Boolean] Whether or not this number has units that can be represented in CSS - # (that is, zero or one \{#numerator\_units}). - # - # source://sassc//lib/sassc/script/value/number.rb#172 - def legal_units?; end - - # A list of units in the numerator of the number. - # For example, `1px*em/in*cm` would return `["px", "em"]` - # - # @return [Array] - # - # source://sassc//lib/sassc/script/value/number.rb#22 - def numerator_units; end - - # The original representation of this number. - # For example, although the result of `1px/2px` is `0.5`, - # the value of `#original` is `"1px/2px"`. - # - # This is only non-nil when the original value should be used as the CSS value, - # as in `font: 1px/2px`. - # - # @return [Boolean, nil] - # - # source://sassc//lib/sassc/script/value/number.rb#37 - def original; end - - # The original representation of this number. - # For example, although the result of `1px/2px` is `0.5`, - # the value of `#original` is `"1px/2px"`. - # - # This is only non-nil when the original value should be used as the CSS value, - # as in `font: 1px/2px`. - # - # @return [Boolean, nil] - # - # source://sassc//lib/sassc/script/value/number.rb#37 - def original=(_arg0); end - - # @raise [Sass::SyntaxError] if the number isn't an integer - # @return [Integer] The integer value of the number - # - # source://sassc//lib/sassc/script/value/number.rb#137 - def to_i; end - - # @raise [Sass::SyntaxError] if this number has units that can't be used in CSS - # (e.g. `px*in`) - # @return [String] The CSS representation of this number - # - # source://sassc//lib/sassc/script/value/number.rb#98 - def to_s(opts = T.unsafe(nil)); end - - # Returns a readable representation of this number. - # - # This representation is valid CSS (and valid SassScript) - # as long as there is only one unit. - # - # @return [String] The representation - # - # source://sassc//lib/sassc/script/value/number.rb#110 - def to_sass(opts = T.unsafe(nil)); end - - # Returns a human readable representation of the units in this number. - # For complex units this takes the form of: - # numerator_unit1 * numerator_unit2 / denominator_unit1 * denominator_unit2 - # - # @return [String] a string that represents the units in this number - # - # source://sassc//lib/sassc/script/value/number.rb#214 - def unit_str; end - - # @return [Boolean] Whether or not this number has no units. - # - # source://sassc//lib/sassc/script/value/number.rb#148 - def unitless?; end - - # The Ruby value of the number. - # - # @return [Numeric] - # - # source://sassc//lib/sassc/script/value/number.rb#17 - def value; end - - private - - # @private - # @return [Boolean] - # @see Sass::Script::Number.basically_equal? - # - # source://sassc//lib/sassc/script/value/number.rb#227 - def basically_equal?(num1, num2); end - - # source://sassc//lib/sassc/script/value/number.rb#270 - def coercion_factor(from_units, to_units); end - - # source://sassc//lib/sassc/script/value/number.rb#282 - def compute_units(this, other, operation); end - - # source://sassc//lib/sassc/script/value/number.rb#365 - def conversion_factor(from_unit, to_unit); end - - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/number.rb#369 - def convertable?(units); end - - # source://sassc//lib/sassc/script/value/number.rb#295 - def normalize!; end - - # source://sassc//lib/sassc/script/value/number.rb#250 - def operate(other, operation); end - - # source://sassc//lib/sassc/script/value/number.rb#376 - def sans_common_units(units1, units2); end - - class << self - # Checks whether two numbers are within an epsilon of each other. - # - # @return [Boolean] - # - # source://sassc//lib/sassc/script/value/number.rb#233 - def basically_equal?(num1, num2); end - - # Used in checking equality of floating point numbers. Any - # numbers within an `epsilon` of each other are considered functionally equal. - # The value for epsilon is one tenth of the current numeric precision. - # - # source://sassc//lib/sassc/script/value/number.rb#63 - def epsilon; end - - # source://sassc//lib/sassc/script/value/number.rb#39 - def precision; end - - # Sets the number of digits of precision - # For example, if this is `3`, - # `3.1415926` will be printed as `3.142`. - # The numeric precision is stored as a thread local for thread safety reasons. - # To set for all threads, be sure to set the precision on the main thread. - # - # source://sassc//lib/sassc/script/value/number.rb#48 - def precision=(digits); end - - # the precision factor used in numeric output - # it is derived from the `precision` method. - # - # source://sassc//lib/sassc/script/value/number.rb#56 - def precision_factor; end - - # @private - # - # source://sassc//lib/sassc/script/value/number.rb#238 - def round(num); end - end -end - -# A two-dimensional hash from two units to the conversion ratio between -# them. Multiply `X` by `CONVERSION_TABLE[X][Y]` to convert it to `Y`. -# -# source://sassc//lib/sassc/script/value/number.rb#354 -SassC::Script::Value::Number::CONVERSION_TABLE = T.let(T.unsafe(nil), Hash) - -# A hash from each known unit to the set of units that it's mutually -# convertible with. -# -# source://sassc//lib/sassc/script/value/number.rb#346 -SassC::Script::Value::Number::MUTUALLY_CONVERTIBLE = T.let(T.unsafe(nil), Hash) - -# Used so we don't allocate two new arrays for each new number. -# -# source://sassc//lib/sassc/script/value/number.rb#68 -SassC::Script::Value::Number::NO_UNITS = T.let(T.unsafe(nil), Array) - -# source://sassc//lib/sassc/script/value/number.rb#248 -SassC::Script::Value::Number::OPERATIONS = T.let(T.unsafe(nil), Array) - -# source://sassc//lib/sassc/script/value/string.rb#3 -class SassC::Script::Value::String < ::SassC::Script::Value - # Creates a new string. - # - # @param value [String] See \{#value} - # @param type [Symbol] See \{#type} - # @param deprecated_interp_equivalent [String?] If this was created via a potentially-deprecated string interpolation, - # this is the replacement expression that should be suggested to the user. - # @return [String] a new instance of String - # - # source://sassc//lib/sassc/script/value/string.rb#66 - def initialize(value, type = T.unsafe(nil)); end - - # source://sassc//lib/sassc/script/value/string.rb#92 - def inspect; end - - # @see Value#plus - # - # source://sassc//lib/sassc/script/value/string.rb#72 - def plus(other); end - - # @see Value#to_s - # - # source://sassc//lib/sassc/script/value/string.rb#82 - def to_s(opts = T.unsafe(nil)); end - - # @see Value#to_sass - # - # source://sassc//lib/sassc/script/value/string.rb#88 - def to_sass(opts = T.unsafe(nil)); end - - # Whether this is a CSS string or a CSS identifier. - # The difference is that strings are written with double-quotes, - # while identifiers aren't. - # - # @return [Symbol] `:string` or `:identifier` - # - # source://sassc//lib/sassc/script/value/string.rb#13 - def type; end - - # The Ruby value of the string. - # - # source://sassc//lib/sassc/script/value/string.rb#6 - def value; end - - class << self - # Returns the quoted string representation of `contents`. - # - # source://sassc//lib/sassc/script/value/string.rb#22 - def quote(contents, opts = T.unsafe(nil)); end - end -end - -# source://sassc//lib/sassc/script/value_conversion.rb#3 -module SassC::Script::ValueConversion - class << self - # source://sassc//lib/sassc/script/value_conversion.rb#5 - def from_native(native_value, options); end - - # source://sassc//lib/sassc/script/value_conversion.rb#50 - def to_native(value); end - end -end - -# source://sassc//lib/sassc/script/value_conversion/base.rb#6 -class SassC::Script::ValueConversion::Base - # @return [Base] a new instance of Base - # - # source://sassc//lib/sassc/script/value_conversion/base.rb#7 - def initialize(value); end -end - -# source://sassc//lib/sassc/script/value_conversion/bool.rb#6 -class SassC::Script::ValueConversion::Bool < ::SassC::Script::ValueConversion::Base - # source://sassc//lib/sassc/script/value_conversion/bool.rb#7 - def to_native; end -end - -# source://sassc//lib/sassc/script/value_conversion/color.rb#6 -class SassC::Script::ValueConversion::Color < ::SassC::Script::ValueConversion::Base - # source://sassc//lib/sassc/script/value_conversion/color.rb#7 - def to_native; end -end - -# source://sassc//lib/sassc/script/value_conversion/list.rb#11 -class SassC::Script::ValueConversion::List < ::SassC::Script::ValueConversion::Base - # source://sassc//lib/sassc/script/value_conversion/list.rb#12 - def to_native; end -end - -# source://sassc//lib/sassc/script/value_conversion/map.rb#6 -class SassC::Script::ValueConversion::Map < ::SassC::Script::ValueConversion::Base - # source://sassc//lib/sassc/script/value_conversion/map.rb#7 - def to_native; end -end - -# source://sassc//lib/sassc/script/value_conversion/number.rb#6 -class SassC::Script::ValueConversion::Number < ::SassC::Script::ValueConversion::Base - # source://sassc//lib/sassc/script/value_conversion/number.rb#7 - def to_native; end -end - -# source://sassc//lib/sassc/script/value_conversion/list.rb#6 -SassC::Script::ValueConversion::SEPARATORS = T.let(T.unsafe(nil), Hash) - -# source://sassc//lib/sassc/script/value_conversion/string.rb#6 -class SassC::Script::ValueConversion::String < ::SassC::Script::ValueConversion::Base - # source://sassc//lib/sassc/script/value_conversion/string.rb#7 - def to_native(opts = T.unsafe(nil)); end -end - -# When dealing with SyntaxErrors, -# it's important to provide filename and line number information. -# This will be used in various error reports to users, including backtraces. -# -# source://sassc//lib/sassc/error.rb#16 -class SassC::SyntaxError < ::SassC::BaseError - # @return [SyntaxError] a new instance of SyntaxError - # - # source://sassc//lib/sassc/error.rb#18 - def initialize(message, filename: T.unsafe(nil), line: T.unsafe(nil)); end - - # source://sassc//lib/sassc/error.rb#24 - def backtrace; end - - # The backtrace of the error within Sass files. - # - # source://sassc//lib/sassc/error.rb#30 - def sass_backtrace; end -end - -# source://sassc//lib/sassc/error.rb#10 -class SassC::UnsupportedValue < ::SassC::BaseError; end - -# A module containing various useful functions. -# -# source://sassc//lib/sassc/util.rb#14 -module SassC::Util - extend ::SassC::Util - - private - - # Throws a NotImplementedError for an abstract method. - # - # @param obj [Object] `self` - # @raise [NotImplementedError] - # - # source://sassc//lib/sassc/util.rb#104 - def abstract(obj); end - - # Returns information about the caller of the previous method. - # - # @param entry [String] An entry in the `#caller` list, or a similarly formatted string - # @return [[String, Integer, (String, nil)]] An array containing the filename, line, and method name of the caller. - # The method name may be nil - # - # source://sassc//lib/sassc/util.rb#90 - def caller_info(entry = T.unsafe(nil)); end - - # Restricts the numeric `value` to be within `min` and `max`, inclusive. - # If the value is lower than `min` - # - # source://sassc//lib/sassc/util.rb#44 - def clamp(value, min, max); end - - # Prints a deprecation warning for the caller method. - # - # @param obj [Object] `self` - # @param message [String] A message describing what to do instead. - # - # source://sassc//lib/sassc/util.rb#112 - def deprecated(obj, message = T.unsafe(nil)); end - - # Whether or not this is running on IronRuby. - # - # @return [Boolean] - # - # source://sassc//lib/sassc/util.rb#179 - def ironruby?; end - - # Whether or not this is running on JRuby. - # - # @return [Boolean] - # - # source://sassc//lib/sassc/util.rb#195 - def jruby?; end - - # Returns an array of ints representing the JRuby version number. - # - # @return [Array] - # - # source://sassc//lib/sassc/util.rb#203 - def jruby_version; end - - # Maps the keys in a hash according to a block. - # - # @example - # map_keys({:foo => "bar", :baz => "bang"}) {|k| k.to_s} - # #=> {"foo" => "bar", "baz" => "bang"} - # @param hash [Hash] The hash to map - # @return [Hash] The mapped hash - # @see #map_hash - # @see #map_vals - # @yield [key] A block in which the keys are transformed - # @yieldparam key [Object] The key that should be mapped - # @yieldreturn [Object] The new value for the key - # - # source://sassc//lib/sassc/util.rb#38 - def map_keys(hash); end - - # Return an array of all possible paths through the given arrays. - # - # @example - # paths([[1, 2], [3, 4], [5]]) #=> - # # [[1, 3, 5], - # # [2, 3, 5], - # # [1, 4, 5], - # # [2, 4, 5]] - # @param arrs [Array] - # @return [Array] - # - # source://sassc//lib/sassc/util.rb#78 - def paths(arrs); end - - # Returns the environment of the Rails application, - # if this is running in a Rails context. - # Returns `nil` if no such environment is defined. - # - # @return [String, nil] - # - # source://sassc//lib/sassc/util.rb#157 - def rails_env; end - - # Returns the root of the Rails application, - # if this is running in a Rails context. - # Returns `nil` if no such root is defined. - # - # @return [String, nil] - # - # source://sassc//lib/sassc/util.rb#143 - def rails_root; end - - # Whether or not this is running on Rubinius. - # - # @return [Boolean] - # - # source://sassc//lib/sassc/util.rb#187 - def rbx?; end - - # Returns `path` relative to `from`. - # - # This is like `Pathname#relative_path_from` except it accepts both strings - # and pathnames, it handles Windows path separators correctly, and it throws - # an error rather than crashing if the paths use different encodings - # (https://github.com/ruby/ruby/pull/713). - # - # @param path [String, Pathname] - # @param from [String, Pathname] - # @return [Pathname?] - # - # source://sassc//lib/sassc/util.rb#217 - def relative_path_from(path, from); end - - # Like [Fixnum.round], but leaves rooms for slight floating-point - # differences. - # - # @param value [Numeric] - # @return [Numeric] - # - # source://sassc//lib/sassc/util.rb#55 - def round(value); end - - # The same as `Kernel#warn`, but is silenced by \{#silence\_sass\_warnings}. - # - # @param msg [String] - # - # source://sassc//lib/sassc/util.rb#132 - def sass_warn(msg); end - - # Silences all Sass warnings within a block. - # - # @yield A block in which no Sass warnings will be printed - # - # source://sassc//lib/sassc/util.rb#122 - def silence_sass_warnings; end - - # Whether or not this is running on Windows. - # - # @return [Boolean] - # - # source://sassc//lib/sassc/util.rb#171 - def windows?; end - - class << self - # source://sassc//lib/sassc/util.rb#104 - def abstract(obj); end - - # source://sassc//lib/sassc/util.rb#90 - def caller_info(entry = T.unsafe(nil)); end - - # source://sassc//lib/sassc/util.rb#44 - def clamp(value, min, max); end - - # source://sassc//lib/sassc/util.rb#112 - def deprecated(obj, message = T.unsafe(nil)); end - - # source://sassc//lib/sassc/util.rb#179 - def ironruby?; end - - # source://sassc//lib/sassc/util.rb#195 - def jruby?; end - - # source://sassc//lib/sassc/util.rb#203 - def jruby_version; end - - # source://sassc//lib/sassc/util.rb#38 - def map_keys(hash); end - - # source://sassc//lib/sassc/util.rb#78 - def paths(arrs); end - - # source://sassc//lib/sassc/util.rb#157 - def rails_env; end - - # source://sassc//lib/sassc/util.rb#143 - def rails_root; end - - # source://sassc//lib/sassc/util.rb#187 - def rbx?; end - - # source://sassc//lib/sassc/util.rb#217 - def relative_path_from(path, from); end - - # source://sassc//lib/sassc/util.rb#55 - def round(value); end - - # source://sassc//lib/sassc/util.rb#132 - def sass_warn(msg); end - - # source://sassc//lib/sassc/util.rb#122 - def silence_sass_warnings; end - - # source://sassc//lib/sassc/util.rb#171 - def windows?; end - end -end - -# A hash that normalizes its string keys while still allowing you to get back -# to the original keys that were stored. If several different values normalize -# to the same value, whichever is stored last wins. -# -# source://sassc//lib/sassc/util/normalized_map.rb#9 -class SassC::Util::NormalizedMap - # Create a normalized map - # - # @return [NormalizedMap] a new instance of NormalizedMap - # - # source://sassc//lib/sassc/util/normalized_map.rb#12 - def initialize(map = T.unsafe(nil)); end - - # @private - # - # source://sassc//lib/sassc/util/normalized_map.rb#41 - def [](k); end - - # @private - # - # source://sassc//lib/sassc/util/normalized_map.rb#33 - def []=(k, v); end - - # @return [Hash] Hash with the keys as they were stored (before normalization). - # - # source://sassc//lib/sassc/util/normalized_map.rb#58 - def as_stored; end - - # @private - # - # source://sassc//lib/sassc/util/normalized_map.rb#51 - def delete(k); end - - # Returns the version of `key` as it was stored before - # normalization. If `key` isn't in the map, returns it as it was - # passed in. - # - # @return [String] - # - # source://sassc//lib/sassc/util/normalized_map.rb#28 - def denormalize(key); end - - # source://sassc//lib/sassc/util/normalized_map.rb#94 - def dup; end - - # source://sassc//lib/sassc/util/normalized_map.rb#74 - def each; end - - # @return [Boolean] - # - # source://sassc//lib/sassc/util/normalized_map.rb#62 - def empty?; end - - # @private - # @return [Boolean] - # - # source://sassc//lib/sassc/util/normalized_map.rb#46 - def has_key?(k); end - - # source://sassc//lib/sassc/util/normalized_map.rb#70 - def keys; end - - # source://sassc//lib/sassc/util/normalized_map.rb#90 - def map; end - - # source://sassc//lib/sassc/util/normalized_map.rb#109 - def method_missing(method, *args, &block); end - - # Specifies how to transform the key. - # This can be overridden to create other normalization behaviors. - # - # source://sassc//lib/sassc/util/normalized_map.rb#20 - def normalize(key); end - - # source://sassc//lib/sassc/util/normalized_map.rb#78 - def size; end - - # source://sassc//lib/sassc/util/normalized_map.rb#100 - def sort_by; end - - # source://sassc//lib/sassc/util/normalized_map.rb#86 - def to_a; end - - # source://sassc//lib/sassc/util/normalized_map.rb#82 - def to_hash; end - - # source://sassc//lib/sassc/util/normalized_map.rb#104 - def update(map); end - - # source://sassc//lib/sassc/util/normalized_map.rb#66 - def values; end - - private - - # @return [Boolean] - # - # source://sassc//lib/sassc/util/normalized_map.rb#113 - def respond_to_missing?(method, include_private = T.unsafe(nil)); end -end - -# The Ruby engine we're running under. Defaults to `"ruby"` -# if the top-level constant is undefined. -# -# @api public -# -# source://sassc//lib/sassc/util.rb#25 -SassC::Util::RUBY_ENGINE = T.let(T.unsafe(nil), String) - -# An array of ints representing the Ruby version number. -# -# @api public -# -# source://sassc//lib/sassc/util.rb#20 -SassC::Util::RUBY_VERSION_COMPONENTS = T.let(T.unsafe(nil), Array) - -# source://sassc//lib/sassc/version.rb#4 -SassC::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/selenium-webdriver@4.21.1.rbi b/sorbet/rbi/gems/selenium-webdriver@4.23.0.rbi similarity index 95% rename from sorbet/rbi/gems/selenium-webdriver@4.21.1.rbi rename to sorbet/rbi/gems/selenium-webdriver@4.23.0.rbi index fe919f1c..7a66a994 100644 --- a/sorbet/rbi/gems/selenium-webdriver@4.21.1.rbi +++ b/sorbet/rbi/gems/selenium-webdriver@4.23.0.rbi @@ -244,24 +244,30 @@ end class Selenium::WebDriver::BiDi # @return [BiDi] a new instance of BiDi # - # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#27 + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#29 def initialize(url:); end - # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#35 + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#41 + def add_callback(event, &block); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#37 def callbacks; end - # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#31 + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#33 def close; end - # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#51 + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#61 def error_message(message); end + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#45 + def remove_callback(event, id); end + # @raise [Error::WebDriverError] # - # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#43 + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#53 def send_cmd(method, **params); end - # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#39 + # source://selenium-webdriver//lib/selenium/webdriver/bidi.rb#49 def session; end end @@ -523,6 +529,84 @@ class Selenium::WebDriver::BiDi::JavascriptLogEntry < ::Selenium::WebDriver::BiD def type=(_arg0); end end +# source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#23 +class Selenium::WebDriver::BiDi::LogHandler + # @return [LogHandler] a new instance of LogHandler + # + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#27 + def initialize(bidi); end + + # @return [int] id of the handler + # + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#33 + def add_message_handler(type); end + + # @param id [int] of the handler previously added + # + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#44 + def remove_message_handler(id); end + + private + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#51 + def subscribe_log_entry; end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#56 + def unsubscribe_log_entry; end +end + +# source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#0 +class Selenium::WebDriver::BiDi::LogHandler::ConsoleLogEntry < ::Selenium::WebDriver::BiDi::Struct + # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#27 + def initialize(**kwargs); end + + def args; end + def args=(_); end + def level; end + def level=(_); end + def method; end + def method=(_); end + def text; end + def text=(_); end + def timestamp; end + def timestamp=(_); end + def type; end + def type=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://selenium-webdriver//lib/selenium/webdriver/bidi/log_handler.rb#0 +class Selenium::WebDriver::BiDi::LogHandler::JavaScriptLogEntry < ::Selenium::WebDriver::BiDi::Struct + # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#27 + def initialize(**kwargs); end + + def level; end + def level=(_); end + def stack_trace; end + def stack_trace=(_); end + def text; end + def text=(_); end + def timestamp; end + def timestamp=(_); end + def type; end + def type=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#31 class Selenium::WebDriver::BiDi::LogInspector # @return [LogInspector] a new instance of LogInspector @@ -530,34 +614,34 @@ class Selenium::WebDriver::BiDi::LogInspector # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#43 def initialize(driver, browsing_context_ids = T.unsafe(nil)); end - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#53 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#57 def on_console_entry(filter_by = T.unsafe(nil), &block); end - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#71 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#75 def on_javascript_exception(&block); end - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#62 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#66 def on_javascript_log(filter_by = T.unsafe(nil), &block); end - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#78 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#82 def on_log(filter_by = T.unsafe(nil), &block); end private - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#98 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#102 def check_valid_filter(filter_by); end # @yield [event] # - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#104 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#108 def console_log_events(params, filter_by); end # @yield [event] # - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#124 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#128 def javascript_log_events(params, filter_by); end - # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#93 + # source://selenium-webdriver//lib/selenium/webdriver/bidi/log_inspector.rb#97 def on(event, &block); end end @@ -616,8 +700,11 @@ class Selenium::WebDriver::BiDi::Session def unsubscribe(events, browsing_contexts = T.unsafe(nil)); end end -# source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#24 -class Selenium::WebDriver::BiDi::Session::Status < ::Struct +# source://selenium-webdriver//lib/selenium/webdriver/bidi/session.rb#0 +class Selenium::WebDriver::BiDi::Session::Status < ::Selenium::WebDriver::BiDi::Struct + # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#27 + def initialize(**kwargs); end + # Returns the value of attribute message # # @return [Object] the current value of message @@ -649,6 +736,17 @@ class Selenium::WebDriver::BiDi::Session::Status < ::Struct end end +# source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#23 +class Selenium::WebDriver::BiDi::Struct < ::Struct + class << self + # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#35 + def camel_to_snake(camel_str); end + + # source://selenium-webdriver//lib/selenium/webdriver/bidi/struct.rb#25 + def new(*args, &block); end + end +end + # @api private # # source://selenium-webdriver//lib/selenium/webdriver/common/child_process.rb#26 @@ -724,6 +822,11 @@ class Selenium::WebDriver::ChildProcess # source://selenium-webdriver//lib/selenium/webdriver/common/child_process.rb#113 def terminate(pid); end + # @api private + # + # source://selenium-webdriver//lib/selenium/webdriver/common/child_process.rb#123 + def waitpid2(pid, flags = T.unsafe(nil)); end + class << self # @api private # @@ -854,12 +957,12 @@ class Selenium::WebDriver::Chromium::Driver < ::Selenium::WebDriver::Driver # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/chromium/driver.rb#47 + # source://selenium-webdriver//lib/selenium/webdriver/chromium/driver.rb#48 def devtools_url; end # @api private # - # source://selenium-webdriver//lib/selenium/webdriver/chromium/driver.rb#54 + # source://selenium-webdriver//lib/selenium/webdriver/chromium/driver.rb#55 def devtools_version; end end @@ -1787,19 +1890,19 @@ class Selenium::WebDriver::Driver # @param sel [String, Hash] id or selector # @return [WebDriver::Element] # - # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#288 + # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#293 def [](sel); end # @return [ActionBuilder] # @see ActionBuilder # - # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#126 + # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#141 def action(**opts); end # @return [VirtualAuthenticator] # @see VirtualAuthenticator # - # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#252 + # source://selenium-webdriver//lib/selenium/webdriver/common/driver.rb#263 def add_virtual_authenticator(options); end # driver.all(class: 'bar') #=> [#(other); end - - # @return [Integer] - # - # source://spoom//lib/spoom/deadcode/location.rb#43 - def end_column; end - - # @return [Integer] - # - # source://spoom//lib/spoom/deadcode/location.rb#43 - def end_line; end - - # source://spoom//lib/spoom/deadcode/location.rb#40 - sig { returns(::String) } - def file; end - - # source://spoom//lib/spoom/deadcode/location.rb#63 - sig { params(other: ::Spoom::Deadcode::Location).returns(T::Boolean) } - def include?(other); end - - # @return [Integer] - # - # source://spoom//lib/spoom/deadcode/location.rb#43 - def start_column; end - - # source://spoom//lib/spoom/deadcode/location.rb#43 - sig { returns(::Integer) } - def start_line; end - - # source://spoom//lib/spoom/deadcode/location.rb#81 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/deadcode/location.rb#34 - sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Deadcode::Location) } - def from_prism(file, location); end - - # @raise [LocationError] - # - # source://spoom//lib/spoom/deadcode/location.rb#17 - sig { params(location_string: ::String).returns(::Spoom::Deadcode::Location) } - def from_string(location_string); end - end end -# source://spoom//lib/spoom/deadcode/location.rb#11 -class Spoom::Deadcode::Location::LocationError < ::Spoom::Error; end - # source://spoom//lib/spoom/deadcode/plugins.rb#36 Spoom::Deadcode::PLUGINS_FOR_GEM = T.let(T.unsafe(nil), Hash) -# source://spoom//lib/spoom/deadcode.rb#27 -class Spoom::Deadcode::ParserError < ::Spoom::Deadcode::Error; end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#8 module Spoom::Deadcode::Plugins; end # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#7 class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#11 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#7 class Spoom::Deadcode::Plugins::ActionMailerPreview < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#13 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Method).void } + def on_define_method(definition); end end # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7 class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#31 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Method).void } + def on_define_method(definition); end - # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#36 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#39 + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end end -# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#10 +# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#12 Spoom::Deadcode::Plugins::ActionPack::CALLBACKS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_job.rb#7 @@ -1939,15 +1689,15 @@ class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base; en # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#7 class Spoom::Deadcode::Plugins::ActiveModel < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#14 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#7 class Spoom::Deadcode::Plugins::ActiveRecord < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#74 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#64 @@ -1962,8 +1712,8 @@ Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Arra # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7 class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#22 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#19 @@ -1975,41 +1725,43 @@ Spoom::Deadcode::Plugins::ActiveSupport::SETUP_AND_TEARDOWN_METHODS = T.let(T.un class Spoom::Deadcode::Plugins::Base abstract! + # source://spoom//lib/spoom/deadcode/plugins/base.rb#132 + sig { params(index: ::Spoom::Deadcode::Index).void } + def initialize(index); end + + # source://spoom//lib/spoom/deadcode/plugins/base.rb#129 + sig { returns(::Spoom::Deadcode::Index) } + def index; end + # Do not override this method, use `on_define_accessor` instead. # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#150 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_accessor(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#158 + sig { params(definition: ::Spoom::Model::Attr).void } + def internal_on_define_accessor(definition); end # Do not override this method, use `on_define_class` instead. # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#174 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_class(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#182 + sig { params(definition: ::Spoom::Model::Class).void } + def internal_on_define_class(definition); end # Do not override this method, use `on_define_constant` instead. # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#204 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_constant(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#212 + sig { params(definition: ::Spoom::Model::Constant).void } + def internal_on_define_constant(definition); end # Do not override this method, use `on_define_method` instead. # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#232 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_method(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#238 + sig { params(definition: ::Spoom::Model::Method).void } + def internal_on_define_method(definition); end # Do not override this method, use `on_define_module` instead. # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#258 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_module(indexer, definition); end - - # Do not override this method, use `on_send` instead. - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#284 - sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def internal_on_send(indexer, send); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#264 + sig { params(definition: ::Spoom::Model::Module).void } + def internal_on_define_module(definition); end # Called when an accessor is defined. # @@ -2019,15 +1771,15 @@ class Spoom::Deadcode::Plugins::Base # # ~~~rb # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_accessor(indexer, definition) - # definition.ignored! if definition.name == "foo" + # def on_define_accessor(definition) + # @index.ignore(definition) if symbol_def.name == "foo" # end # end # ~~~ # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#144 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_accessor(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#152 + sig { params(definition: ::Spoom::Model::Attr).void } + def on_define_accessor(definition); end # Called when a class is defined. # @@ -2037,15 +1789,15 @@ class Spoom::Deadcode::Plugins::Base # # ~~~rb # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_class(indexer, definition) - # definition.ignored! if definition.name == "Foo" + # def on_define_class(definition) + # @index.ignore(definition) if definition.name == "Foo" # end # end # ~~~ # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#168 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_class(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#176 + sig { params(definition: ::Spoom::Model::Class).void } + def on_define_class(definition); end # Called when a constant is defined. # @@ -2055,15 +1807,15 @@ class Spoom::Deadcode::Plugins::Base # # ~~~rb # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_constant(indexer, definition) - # definition.ignored! if definition.name == "FOO" + # def on_define_constant(definition) + # @index.ignore(definition) if definition.name == "FOO" # end # end # ~~~ # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#198 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_constant(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#206 + sig { params(definition: ::Spoom::Model::Constant).void } + def on_define_constant(definition); end # Called when a method is defined. # @@ -2073,17 +1825,15 @@ class Spoom::Deadcode::Plugins::Base # # ~~~rb # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_method(indexer, definition) - # super # So the `ignore_method_names` DSL is still applied - # - # definition.ignored! if definition.name == "foo" + # def on_define_method(definition) + # @index.ignore(definition) if definition.name == "foo" # end # end # ~~~ # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#226 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#232 + sig { params(definition: ::Spoom::Model::Method).void } + def on_define_method(definition); end # Called when a module is defined. # @@ -2093,76 +1843,80 @@ class Spoom::Deadcode::Plugins::Base # # ~~~rb # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_module(indexer, definition) - # definition.ignored! if definition.name == "Foo" + # def on_define_module(definition) + # @index.ignore(definition) if definition.name == "Foo" # end # end # ~~~ # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#252 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_module(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#258 + sig { params(definition: ::Spoom::Model::Module).void } + def on_define_module(definition); end # Called when a send is being processed # # ~~~rb # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_send(indexer, send) + # def on_send(send) # return unless send.name == "dsl_method" # return if send.args.empty? # # method_name = send.args.first.slice.delete_prefix(":") - # indexer.reference_method(method_name, send.node) + # @index.reference_method(method_name, send.node, send.loc) # end # end # ~~~ # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#278 - sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#284 + sig { params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end private # Plugin utils # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#339 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#352 sig { params(name: ::String).returns(::String) } def camelize(name); end - # DSL support - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#293 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#301 sig { params(name: T.nilable(::String)).returns(T::Boolean) } def ignored_class_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#307 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#320 sig { params(name: ::String).returns(T::Boolean) } def ignored_constant_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#312 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#325 sig { params(name: ::String).returns(T::Boolean) } def ignored_method_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#317 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#330 sig { params(name: ::String).returns(T::Boolean) } def ignored_module_name?(name); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#322 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#335 sig { params(name: ::String, names_variable: ::Symbol, patterns_variable: ::Symbol).returns(T::Boolean) } def ignored_name?(name, names_variable, patterns_variable); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#300 - sig { params(superclass_name: T.nilable(::String)).returns(T::Boolean) } - def ignored_subclass?(superclass_name); end + # source://spoom//lib/spoom/deadcode/plugins/base.rb#308 + sig { params(definition: ::Spoom::Model::Class).returns(T::Boolean) } + def ignored_subclass?(definition); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#327 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#340 sig { params(const: ::Symbol).returns(T::Set[::String]) } def names(const); end - # source://spoom//lib/spoom/deadcode/plugins/base.rb#332 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#345 sig { params(const: ::Symbol).returns(T::Array[::Regexp]) } def patterns(const); end + # DSL support + # + # source://spoom//lib/spoom/deadcode/plugins/base.rb#293 + sig { params(definition: ::Spoom::Model::Namespace, superclass_name: ::String).returns(T::Boolean) } + def subclass_of?(definition, superclass_name); end + class << self # Mark classes directly subclassing a class matching `names` as ignored. # @@ -2271,32 +2025,36 @@ end # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#7 class Spoom::Deadcode::Plugins::GraphQL < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#28 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7 class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#22 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Method).void } + def on_define_method(definition); end + + # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#28 + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end end # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7 class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#11 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_class(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Class).void } + def on_define_class(definition); end # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#16 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_module(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Module).void } + def on_define_module(definition); end private # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#23 - sig { params(indexer: ::Spoom::Deadcode::Indexer).returns(T::Boolean) } - def used_as_namespace?(indexer); end + sig { params(symbol_def: ::Spoom::Model::Namespace).returns(T::Boolean) } + def used_as_namespace?(symbol_def); end end # source://spoom//lib/spoom/deadcode/plugins/rspec.rb#7 @@ -2305,18 +2063,18 @@ class Spoom::Deadcode::Plugins::RSpec < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rails.rb#7 class Spoom::Deadcode::Plugins::Rails < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/rails.rb#13 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_class(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Class).void } + def on_define_class(definition); end # source://spoom//lib/spoom/deadcode/plugins/rails.rb#18 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_module(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Module).void } + def on_define_module(definition); end private # source://spoom//lib/spoom/deadcode/plugins/rails.rb#25 - sig { params(indexer: ::Spoom::Deadcode::Indexer).returns(T::Boolean) } - def file_is_helper?(indexer); end + sig { params(symbol_def: ::Spoom::Model::Namespace).returns(T::Boolean) } + def file_is_helper?(symbol_def); end end # source://spoom//lib/spoom/deadcode/plugins/rake.rb#7 @@ -2325,22 +2083,12 @@ class Spoom::Deadcode::Plugins::Rake < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#7 class Spoom::Deadcode::Plugins::Rubocop < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#18 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_constant(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#23 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end - - private + sig { override.params(definition: ::Spoom::Model::Constant).void } + def on_define_constant(definition); end - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#30 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def rubocop_constant?(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#35 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def rubocop_method?(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#26 + sig { override.params(definition: ::Spoom::Model::Method).void } + def on_define_method(definition); end end # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#10 @@ -2349,74 +2097,42 @@ Spoom::Deadcode::Plugins::Rubocop::RUBOCOP_CONSTANTS = T.let(T.unsafe(nil), Set) # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#7 class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#24 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end private # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#43 - sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void } - def reference_symbol_as_constant(indexer, send, node); end + sig { params(send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void } + def reference_symbol_as_constant(send, node); end end # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#7 class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#11 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_constant(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Constant).void } + def on_define_constant(definition); end # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#16 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end + sig { override.params(definition: ::Spoom::Model::Method).void } + def on_define_method(definition); end private - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#34 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def sorbet_enum_constant?(indexer, definition); end + # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#28 + sig { params(definition: ::Spoom::Model::Constant).returns(T::Boolean) } + def sorbet_enum_constant?(definition); end # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#23 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def sorbet_type_member?(indexer, definition); end + sig { params(definition: ::Spoom::Model::Constant).returns(T::Boolean) } + def sorbet_type_member?(definition); end end # source://spoom//lib/spoom/deadcode/plugins/thor.rb#7 class Spoom::Deadcode::Plugins::Thor < ::Spoom::Deadcode::Plugins::Base # source://spoom//lib/spoom/deadcode/plugins/thor.rb#13 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end -end - -# A reference is a call to a method or a constant -# -# source://spoom//lib/spoom/deadcode/reference.rb#7 -class Spoom::Deadcode::Reference < ::T::Struct - const :kind, ::Spoom::Deadcode::Reference::Kind - const :name, ::String - const :location, ::Spoom::Deadcode::Location - - # Kind - # - # source://spoom//lib/spoom/deadcode/reference.rb#24 - sig { returns(T::Boolean) } - def constant?; end - - # source://spoom//lib/spoom/deadcode/reference.rb#29 - sig { returns(T::Boolean) } - def method?; end - - class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/deadcode/reference.rb#10 -class Spoom::Deadcode::Reference::Kind < ::T::Enum - enums do - Constant = new - Method = new - end + sig { override.params(definition: ::Spoom::Model::Method).void } + def on_define_method(definition); end end # source://spoom//lib/spoom/deadcode/remover.rb#6 @@ -2426,12 +2142,7 @@ class Spoom::Deadcode::Remover def initialize(context); end # source://spoom//lib/spoom/deadcode/remover.rb#17 - sig do - params( - kind: T.nilable(::Spoom::Deadcode::Definition::Kind), - location: ::Spoom::Deadcode::Location - ).returns(::String) - end + sig { params(kind: T.nilable(::Spoom::Deadcode::Definition::Kind), location: ::Spoom::Location).returns(::String) } def remove_location(kind, location); end end @@ -2484,6 +2195,8 @@ class Spoom::Deadcode::Remover::NodeContext sig { returns(T.nilable(::Prism::Node)) } def next_node; end + # @raise [Error] + # # source://spoom//lib/spoom/deadcode/remover.rb#433 sig { returns(T::Array[::Prism::Node]) } def next_nodes; end @@ -2492,10 +2205,14 @@ class Spoom::Deadcode::Remover::NodeContext sig { returns(::Prism::Node) } def node; end + # @raise [Error] + # # source://spoom//lib/spoom/deadcode/remover.rb#408 sig { returns(::Spoom::Deadcode::Remover::NodeContext) } def parent_context; end + # @raise [Error] + # # source://spoom//lib/spoom/deadcode/remover.rb#400 sig { returns(::Prism::Node) } def parent_node; end @@ -2504,6 +2221,8 @@ class Spoom::Deadcode::Remover::NodeContext sig { returns(T.nilable(::Prism::Node)) } def previous_node; end + # @raise [Error] + # # source://spoom//lib/spoom/deadcode/remover.rb#417 sig { returns(T::Array[::Prism::Node]) } def previous_nodes; end @@ -2522,9 +2241,9 @@ class Spoom::Deadcode::Remover::NodeContext end # source://spoom//lib/spoom/deadcode/remover.rb#549 -class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Deadcode::Visitor +class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor # source://spoom//lib/spoom/deadcode/remover.rb#621 - sig { params(location: ::Spoom::Deadcode::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void } + sig { params(location: ::Spoom::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void } def initialize(location, kind); end # source://spoom//lib/spoom/deadcode/remover.rb#615 @@ -2544,7 +2263,7 @@ class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Deadcode::Visitor sig do params( source: ::String, - location: ::Spoom::Deadcode::Location, + location: ::Spoom::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind) ).returns(::Spoom::Deadcode::Remover::NodeContext) end @@ -2563,7 +2282,7 @@ class Spoom::Deadcode::Remover::NodeRemover params( source: ::String, kind: T.nilable(::Spoom::Deadcode::Definition::Kind), - location: ::Spoom::Deadcode::Location + location: ::Spoom::Location ).void end def initialize(source, kind, location); end @@ -2632,8 +2351,9 @@ class Spoom::Deadcode::Send < ::T::Struct const :recv, T.nilable(::Prism::Node), default: T.unsafe(nil) const :args, T::Array[::Prism::Node], default: T.unsafe(nil) const :block, T.nilable(::Prism::Node), default: T.unsafe(nil) + const :location, ::Spoom::Location - # source://spoom//lib/spoom/deadcode/send.rb#21 + # source://spoom//lib/spoom/deadcode/send.rb#22 sig do type_parameters(:T) .params( @@ -2643,1779 +2363,2570 @@ class Spoom::Deadcode::Send < ::T::Struct end def each_arg(arg_type, &block); end - # source://spoom//lib/spoom/deadcode/send.rb#28 + # source://spoom//lib/spoom/deadcode/send.rb#29 sig { params(block: T.proc.params(key: ::Prism::Node, value: T.nilable(::Prism::Node)).void).void } def each_arg_assoc(&block); end class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom//lib/spoom/deadcode/visitor.rb#6 -class Spoom::Deadcode::Visitor < ::Prism::Visitor - # source://spoom//lib/spoom/deadcode/visitor.rb#15 - sig { override.params(node: ::Prism::AliasGlobalVariableNode).void } - def visit_alias_global_variable_node(node); end +# source://spoom//lib/spoom.rb#12 +class Spoom::Error < ::StandardError; end - # source://spoom//lib/spoom/deadcode/visitor.rb#20 - sig { override.params(node: ::Prism::AliasMethodNode).void } - def visit_alias_method_node(node); end +# source://spoom//lib/spoom/context/exec.rb#5 +class Spoom::ExecResult < ::T::Struct + const :out, ::String + const :err, T.nilable(::String) + const :status, T::Boolean + const :exit_code, ::Integer + + # source://spoom//lib/spoom/context/exec.rb#14 + sig { returns(::String) } + def to_s; end + + class << self + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/file_collector.rb#5 +class Spoom::FileCollector + # Initialize a new file collector + # + # If `allow_extensions` is empty, all files are collected. + # If `allow_extensions` is an array of extensions, only files with one of these extensions are collected. + # + # If `allow_mime_types` is empty, all files are collected. + # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in + # the list. + # + # source://spoom//lib/spoom/file_collector.rb#26 + sig do + params( + allow_extensions: T::Array[::String], + allow_mime_types: T::Array[::String], + exclude_patterns: T::Array[::String] + ).void + end + def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end + + # source://spoom//lib/spoom/file_collector.rb#9 + sig { returns(T::Array[::String]) } + def files; end + + # source://spoom//lib/spoom/file_collector.rb#39 + sig { params(path: ::String).void } + def visit_path(path); end + + # source://spoom//lib/spoom/file_collector.rb#34 + sig { params(paths: T::Array[::String]).void } + def visit_paths(paths); end + + private + + # source://spoom//lib/spoom/file_collector.rb#56 + sig { params(path: ::String).returns(::String) } + def clean_path(path); end + + # source://spoom//lib/spoom/file_collector.rb#73 + sig { params(path: ::String).returns(T::Boolean) } + def excluded_file?(path); end + + # source://spoom//lib/spoom/file_collector.rb#88 + sig { params(path: ::String).returns(T::Boolean) } + def excluded_path?(path); end + + # source://spoom//lib/spoom/file_collector.rb#97 + sig { params(path: ::String).returns(T.nilable(::String)) } + def mime_type_for(path); end + + # source://spoom//lib/spoom/file_collector.rb#68 + sig { params(path: ::String).void } + def visit_directory(path); end + + # source://spoom//lib/spoom/file_collector.rb#61 + sig { params(path: ::String).void } + def visit_file(path); end +end + +# Build a file hierarchy from a set of file paths. +# +# source://spoom//lib/spoom/file_tree.rb#6 +class Spoom::FileTree + # source://spoom//lib/spoom/file_tree.rb#10 + sig { params(paths: T::Enumerable[::String]).void } + def initialize(paths = T.unsafe(nil)); end + + # Add a `path` to the tree + # + # This will create all nodes until the root of `path`. + # + # source://spoom//lib/spoom/file_tree.rb#25 + sig { params(path: ::String).returns(::Spoom::FileTree::Node) } + def add_path(path); end + + # Add all `paths` to the tree + # + # source://spoom//lib/spoom/file_tree.rb#17 + sig { params(paths: T::Enumerable[::String]).void } + def add_paths(paths); end + + # All the nodes in this tree + # + # source://spoom//lib/spoom/file_tree.rb#45 + sig { returns(T::Array[::Spoom::FileTree::Node]) } + def nodes; end + + # Return a map of typing scores for each node in the tree + # + # source://spoom//lib/spoom/file_tree.rb#59 + sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } + def nodes_strictness_scores(context); end + + # All the paths in this tree + # + # source://spoom//lib/spoom/file_tree.rb#53 + sig { returns(T::Array[::String]) } + def paths; end + + # Return a map of typing scores for each path in the tree + # + # source://spoom//lib/spoom/file_tree.rb#67 + sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) } + def paths_strictness_scores(context); end + + # source://spoom//lib/spoom/file_tree.rb#72 + sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void } + def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end + + # All root nodes + # + # source://spoom//lib/spoom/file_tree.rb#39 + sig { returns(T::Array[::Spoom::FileTree::Node]) } + def roots; end +end + +# A visitor that collects all the nodes in a tree +# +# source://spoom//lib/spoom/file_tree.rb#124 +class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor + # source://spoom//lib/spoom/file_tree.rb#131 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/file_tree.rb#128 + sig { returns(T::Array[::Spoom::FileTree::Node]) } + def nodes; end + + # source://spoom//lib/spoom/file_tree.rb#137 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end +end + +# A visitor that collects the typing score of each node in a tree +# +# source://spoom//lib/spoom/file_tree.rb#167 +class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses + # source://spoom//lib/spoom/file_tree.rb#174 + sig { params(context: ::Spoom::Context).void } + def initialize(context); end + + # source://spoom//lib/spoom/file_tree.rb#171 + sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } + def scores; end + + # source://spoom//lib/spoom/file_tree.rb#181 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end + + private + + # source://spoom//lib/spoom/file_tree.rb#190 + sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } + def node_score(node); end + + # source://spoom//lib/spoom/file_tree.rb#199 + sig { params(strictness: T.nilable(::String)).returns(::Float) } + def strictness_score(strictness); end +end + +# A visitor that collects the strictness of each node in a tree +# +# source://spoom//lib/spoom/file_tree.rb#144 +class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor + # source://spoom//lib/spoom/file_tree.rb#151 + sig { params(context: ::Spoom::Context).void } + def initialize(context); end + + # source://spoom//lib/spoom/file_tree.rb#148 + sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } + def strictnesses; end + + # source://spoom//lib/spoom/file_tree.rb#158 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end +end + +# A node representing either a file or a directory inside a FileTree +# +# source://spoom//lib/spoom/file_tree.rb#78 +class Spoom::FileTree::Node < ::T::Struct + const :parent, T.nilable(::Spoom::FileTree::Node) + const :name, ::String + const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) + + # Full path to this node from root + # + # source://spoom//lib/spoom/file_tree.rb#92 + sig { returns(::String) } + def path; end + + class << self + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# An internal class used to print a FileTree +# +# See `FileTree#print` +# +# source://spoom//lib/spoom/file_tree.rb#212 +class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor + # source://spoom//lib/spoom/file_tree.rb#222 + sig do + params( + strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], + out: T.any(::IO, ::StringIO), + colors: T::Boolean + ).void + end + def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end + + # source://spoom//lib/spoom/file_tree.rb#230 + sig { override.params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end + + private + + # source://spoom//lib/spoom/file_tree.rb#255 + sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } + def strictness_color(strictness); end +end + +# An abstract visitor for FileTree +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/file_tree.rb#101 +class Spoom::FileTree::Visitor + abstract! + + # source://spoom//lib/spoom/file_tree.rb#113 + sig { params(node: ::Spoom::FileTree::Node).void } + def visit_node(node); end + + # source://spoom//lib/spoom/file_tree.rb#118 + sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } + def visit_nodes(nodes); end + + # source://spoom//lib/spoom/file_tree.rb#108 + sig { params(tree: ::Spoom::FileTree).void } + def visit_tree(tree); end +end + +# source://spoom//lib/spoom/context/git.rb#5 +module Spoom::Git; end + +# source://spoom//lib/spoom/context/git.rb#6 +class Spoom::Git::Commit < ::T::Struct + const :sha, ::String + const :time, ::Time + + # source://spoom//lib/spoom/context/git.rb#27 + sig { returns(::Integer) } + def timestamp; end + + class << self + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + + # Parse a line formatted as `%h %at` into a `Commit` + # + # source://spoom//lib/spoom/context/git.rb#14 + sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } + def parse_line(string); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/base.rb#5 +module Spoom::LSP; end + +# source://spoom//lib/spoom/sorbet/lsp.rb#13 +class Spoom::LSP::Client + # source://spoom//lib/spoom/sorbet/lsp.rb#17 + sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } + def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#229 + sig { void } + def close; end + + # source://spoom//lib/spoom/sorbet/lsp.rb#131 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } + def definitions(uri, line, column); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#212 + sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } + def document_symbols(uri); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#89 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } + def hover(uri, line, column); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#27 + sig { returns(::Integer) } + def next_id; end + + # LSP requests + # + # @raise [Error::AlreadyOpen] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#72 + sig { params(workspace_path: ::String).void } + def open(workspace_path); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#54 + sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } + def read; end + + # @raise [Error::BadHeaders] + # + # source://spoom//lib/spoom/sorbet/lsp.rb#43 + sig { returns(T.nilable(::String)) } + def read_raw; end + + # source://spoom//lib/spoom/sorbet/lsp.rb#173 + sig do + params( + uri: ::String, + line: ::Integer, + column: ::Integer, + include_decl: T::Boolean + ).returns(T::Array[::Spoom::LSP::Location]) + end + def references(uri, line, column, include_decl = T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#37 + sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } + def send(message); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#32 + sig { params(json_string: ::String).void } + def send_raw(json_string); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#110 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } + def signatures(uri, line, column); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#197 + sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } + def symbols(query); end + + # source://spoom//lib/spoom/sorbet/lsp.rb#152 + sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } + def type_definitions(uri, line, column); end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 +class Spoom::LSP::Diagnostic < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :range, ::Spoom::LSP::Range + const :code, ::Integer + const :message, ::String + const :information, ::Object + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#202 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#207 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#191 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 +class Spoom::LSP::DocumentSymbol < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :name, ::String + const :detail, T.nilable(::String) + const :kind, ::Integer + const :location, T.nilable(::Spoom::LSP::Location) + const :range, T.nilable(::Spoom::LSP::Range) + const :children, T::Array[::Spoom::LSP::DocumentSymbol] + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#240 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#272 + sig { returns(::String) } + def kind_string; end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#267 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#227 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#276 +Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 +class Spoom::LSP::Error < ::Spoom::Error; end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#7 +class Spoom::LSP::Error::AlreadyOpen < ::Spoom::LSP::Error; end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#8 +class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 +class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#32 + sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } + def initialize(uri, diagnostics); end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#17 + sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } + def diagnostics; end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#14 + sig { returns(::String) } + def uri; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#23 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } + def from_json(json); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19 +class Spoom::LSP::Hover < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :contents, ::String + const :range, T.nilable(T::Range[T.untyped]) + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#39 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#30 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#112 +class Spoom::LSP::Location < ::T::Struct + include ::Spoom::LSP::PrintableSymbol - # source://spoom//lib/spoom/deadcode/visitor.rb#25 - sig { override.params(node: ::Prism::AlternationPatternNode).void } - def visit_alternation_pattern_node(node); end + const :uri, ::String + const :range, ::Spoom::LSP::Range - # source://spoom//lib/spoom/deadcode/visitor.rb#30 - sig { override.params(node: ::Prism::AndNode).void } - def visit_and_node(node); end + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end - # source://spoom//lib/spoom/deadcode/visitor.rb#35 - sig { override.params(node: ::Prism::ArgumentsNode).void } - def visit_arguments_node(node); end + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#138 + sig { returns(::String) } + def to_s; end - # source://spoom//lib/spoom/deadcode/visitor.rb#40 - sig { override.params(node: ::Prism::ArrayNode).void } - def visit_array_node(node); end + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#123 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } + def from_json(json); end - # source://spoom//lib/spoom/deadcode/visitor.rb#45 - sig { override.params(node: ::Prism::ArrayPatternNode).void } - def visit_array_pattern_node(node); end + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#50 - sig { override.params(node: ::Prism::AssocNode).void } - def visit_assoc_node(node); end +# A general message as defined by JSON-RPC. +# +# The language server protocol always uses `"2.0"` as the `jsonrpc` version. +# +# source://spoom//lib/spoom/sorbet/lsp/base.rb#12 +class Spoom::LSP::Message + # source://spoom//lib/spoom/sorbet/lsp/base.rb#16 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#21 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def as_json; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#29 + sig { params(args: T.untyped).returns(::String) } + def to_json(*args); end +end + +# A notification message. +# +# A processed notification message must not send a response back. They work like events. +# +# source://spoom//lib/spoom/sorbet/lsp/base.rb#58 +class Spoom::LSP::Notification < ::Spoom::LSP::Message + # source://spoom//lib/spoom/sorbet/lsp/base.rb#68 + sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } + def initialize(method, params); end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 + sig { returns(::String) } + def method; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#65 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def params; end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#50 +class Spoom::LSP::Position < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :line, ::Integer + const :char, ::Integer + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#70 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#75 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#61 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# @abstract Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9 +module Spoom::LSP::PrintableSymbol + interface! + + # @abstract + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 + sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#80 +class Spoom::LSP::Range < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :start, ::Spoom::LSP::Position + const :end, ::Spoom::LSP::Position + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#100 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#107 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# A request message to describe a request between the client and the server. +# +# Every processed request must send a response back to the sender of the request. +# +# source://spoom//lib/spoom/sorbet/lsp/base.rb#37 +class Spoom::LSP::Request < ::Spoom::LSP::Message + # source://spoom//lib/spoom/sorbet/lsp/base.rb#47 + sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } + def initialize(id, method, params); end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#41 + sig { returns(::Integer) } + def id; end + + # source://spoom//lib/spoom/sorbet/lsp/base.rb#44 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def params; end +end + +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#40 +class Spoom::LSP::ResponseError < ::Spoom::LSP::Error + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#63 + sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } + def initialize(code, message, data); end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#44 + sig { returns(::Integer) } + def code; end + + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#47 + sig { returns(T::Hash[T.untyped, T.untyped]) } + def data; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#53 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } + def from_json(json); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#143 +class Spoom::LSP::SignatureHelp < ::T::Struct + include ::Spoom::LSP::PrintableSymbol + + const :label, T.nilable(::String) + const :doc, ::Object + const :params, T::Array[T.untyped] + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 + sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } + def accept_printer(printer); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#173 + sig { returns(::String) } + def to_s; end + + class << self + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 + sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } + def from_json(json); end + + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#309 +class Spoom::LSP::SymbolPrinter < ::Spoom::Printer + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#326 + sig do + params( + out: T.any(::IO, ::StringIO), + colors: T::Boolean, + indent_level: ::Integer, + prefix: T.nilable(::String) + ).void + end + def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#348 + sig { params(uri: ::String).returns(::String) } + def clean_uri(uri); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 + sig { returns(T.nilable(::String)) } + def prefix; end + + # @return [String, nil] + # + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 + def prefix=(_arg0); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#356 + sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } + def print_list(objects); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#336 + sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } + def print_object(object); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#343 + sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } + def print_objects(objects); end + + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 + sig { returns(T::Set[::Integer]) } + def seen; end +end + +# source://spoom//lib/spoom/location.rb#5 +class Spoom::Location + include ::Comparable + + # @raise [LocationError] + # + # source://spoom//lib/spoom/location.rb#73 + sig do + params( + file: ::String, + start_line: T.nilable(::Integer), + start_column: T.nilable(::Integer), + end_line: T.nilable(::Integer), + end_column: T.nilable(::Integer) + ).void + end + def initialize(file, start_line: T.unsafe(nil), start_column: T.unsafe(nil), end_line: T.unsafe(nil), end_column: T.unsafe(nil)); end + + # source://spoom//lib/spoom/location.rb#106 + sig { override.params(other: ::BasicObject).returns(T.nilable(::Integer)) } + def <=>(other); end + + # @return [Integer, nil] + # + # source://spoom//lib/spoom/location.rb#62 + def end_column; end + + # @return [Integer, nil] + # + # source://spoom//lib/spoom/location.rb#62 + def end_line; end + + # source://spoom//lib/spoom/location.rb#59 + sig { returns(::String) } + def file; end - # source://spoom//lib/spoom/deadcode/visitor.rb#55 - sig { override.params(node: ::Prism::AssocSplatNode).void } - def visit_assoc_splat_node(node); end + # source://spoom//lib/spoom/location.rb#93 + sig { params(other: ::Spoom::Location).returns(T::Boolean) } + def include?(other); end - # source://spoom//lib/spoom/deadcode/visitor.rb#60 - sig { override.params(node: ::Prism::BackReferenceReadNode).void } - def visit_back_reference_read_node(node); end + # @return [Integer, nil] + # + # source://spoom//lib/spoom/location.rb#62 + def start_column; end - # source://spoom//lib/spoom/deadcode/visitor.rb#65 - sig { override.params(node: ::Prism::BeginNode).void } - def visit_begin_node(node); end + # source://spoom//lib/spoom/location.rb#62 + sig { returns(T.nilable(::Integer)) } + def start_line; end - # source://spoom//lib/spoom/deadcode/visitor.rb#70 - sig { override.params(node: ::Prism::BlockArgumentNode).void } - def visit_block_argument_node(node); end + # source://spoom//lib/spoom/location.rb#129 + sig { returns(::String) } + def to_s; end - # source://spoom//lib/spoom/deadcode/visitor.rb#75 - sig { override.params(node: ::Prism::BlockLocalVariableNode).void } - def visit_block_local_variable_node(node); end + class << self + # source://spoom//lib/spoom/location.rb#47 + sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Location) } + def from_prism(file, location); end - # source://spoom//lib/spoom/deadcode/visitor.rb#80 - sig { override.params(node: ::Prism::BlockNode).void } - def visit_block_node(node); end + # @raise [LocationError] + # + # source://spoom//lib/spoom/location.rb#16 + sig { params(location_string: ::String).returns(::Spoom::Location) } + def from_string(location_string); end + end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#85 - sig { override.params(node: ::Prism::BlockParameterNode).void } - def visit_block_parameter_node(node); end +# source://spoom//lib/spoom/location.rb#10 +class Spoom::Location::LocationError < ::Spoom::Error; end - # source://spoom//lib/spoom/deadcode/visitor.rb#90 - sig { override.params(node: ::Prism::BlockParametersNode).void } - def visit_block_parameters_node(node); end +# source://spoom//lib/spoom/model/model.rb#5 +class Spoom::Model + # source://spoom//lib/spoom/model/model.rb#238 + sig { void } + def initialize; end - # source://spoom//lib/spoom/deadcode/visitor.rb#95 - sig { override.params(node: ::Prism::BreakNode).void } - def visit_break_node(node); end + # Get a symbol by it's full name + # + # Raises an error if the symbol is not found + # + # @raise [Error] + # + # source://spoom//lib/spoom/model/model.rb#247 + sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } + def [](full_name); end - # source://spoom//lib/spoom/deadcode/visitor.rb#100 - sig { override.params(node: ::Prism::CallAndWriteNode).void } - def visit_call_and_write_node(node); end + # source://spoom//lib/spoom/model/model.rb#296 + sig { void } + def finalize!; end - # source://spoom//lib/spoom/deadcode/visitor.rb#105 - sig { override.params(node: ::Prism::CallNode).void } - def visit_call_node(node); end + # Register a new symbol by it's full name + # + # If the symbol already exists, it will be returned. + # + # source://spoom//lib/spoom/model/model.rb#258 + sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } + def register_symbol(full_name); end - # source://spoom//lib/spoom/deadcode/visitor.rb#110 - sig { override.params(node: ::Prism::CallOperatorWriteNode).void } - def visit_call_operator_write_node(node); end + # source://spoom//lib/spoom/model/model.rb#263 + sig { params(full_name: ::String, context: ::Spoom::Model::Symbol).returns(::Spoom::Model::Symbol) } + def resolve_symbol(full_name, context:); end - # source://spoom//lib/spoom/deadcode/visitor.rb#115 - sig { override.params(node: ::Prism::CallOrWriteNode).void } - def visit_call_or_write_node(node); end + # source://spoom//lib/spoom/model/model.rb#290 + sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } + def subtypes(symbol); end - # source://spoom//lib/spoom/deadcode/visitor.rb#120 - sig { override.params(node: ::Prism::CallTargetNode).void } - def visit_call_target_node(node); end + # source://spoom//lib/spoom/model/model.rb#284 + sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } + def supertypes(symbol); end - # source://spoom//lib/spoom/deadcode/visitor.rb#125 - sig { override.params(node: ::Prism::CapturePatternNode).void } - def visit_capture_pattern_node(node); end + # All the symbols registered in this model + # + # source://spoom//lib/spoom/model/model.rb#232 + sig { returns(T::Hash[::String, ::Spoom::Model::Symbol]) } + def symbols; end - # source://spoom//lib/spoom/deadcode/visitor.rb#130 - sig { override.params(node: ::Prism::CaseMatchNode).void } - def visit_case_match_node(node); end + # source://spoom//lib/spoom/model/model.rb#235 + sig { returns(Spoom::Poset[::Spoom::Model::Symbol]) } + def symbols_hierarchy; end - # source://spoom//lib/spoom/deadcode/visitor.rb#135 - sig { override.params(node: ::Prism::CaseNode).void } - def visit_case_node(node); end + private - # source://spoom//lib/spoom/deadcode/visitor.rb#10 - sig { override.params(node: ::Prism::Node).void } - def visit_child_nodes(node); end + # source://spoom//lib/spoom/model/model.rb#303 + sig { void } + def compute_symbols_hierarchy!; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#140 - sig { override.params(node: ::Prism::ClassNode).void } - def visit_class_node(node); end +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/model/model.rb#179 +class Spoom::Model::Attr < ::Spoom::Model::Property + abstract! +end - # source://spoom//lib/spoom/deadcode/visitor.rb#145 - sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void } - def visit_class_variable_and_write_node(node); end +# source://spoom//lib/spoom/model/model.rb#185 +class Spoom::Model::AttrAccessor < ::Spoom::Model::Attr; end - # source://spoom//lib/spoom/deadcode/visitor.rb#150 - sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void } - def visit_class_variable_operator_write_node(node); end +# source://spoom//lib/spoom/model/model.rb#183 +class Spoom::Model::AttrReader < ::Spoom::Model::Attr; end - # source://spoom//lib/spoom/deadcode/visitor.rb#155 - sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void } - def visit_class_variable_or_write_node(node); end +# source://spoom//lib/spoom/model/model.rb#184 +class Spoom::Model::AttrWriter < ::Spoom::Model::Attr; end - # source://spoom//lib/spoom/deadcode/visitor.rb#160 - sig { override.params(node: ::Prism::ClassVariableReadNode).void } - def visit_class_variable_read_node(node); end +# Populate a Model by visiting the nodes from a Ruby file +# +# source://spoom//lib/spoom/model/builder.rb#7 +class Spoom::Model::Builder < ::Spoom::Model::NamespaceVisitor + # source://spoom//lib/spoom/model/builder.rb#11 + sig { params(model: ::Spoom::Model, file: ::String).void } + def initialize(model, file); end - # source://spoom//lib/spoom/deadcode/visitor.rb#165 - sig { override.params(node: ::Prism::ClassVariableTargetNode).void } - def visit_class_variable_target_node(node); end + # Accessors + # + # source://spoom//lib/spoom/model/builder.rb#146 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#170 - sig { override.params(node: ::Prism::ClassVariableWriteNode).void } - def visit_class_variable_write_node(node); end + # Classes + # + # source://spoom//lib/spoom/model/builder.rb#24 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#175 - sig { override.params(node: ::Prism::ConstantAndWriteNode).void } - def visit_constant_and_write_node(node); end + # Constants + # + # source://spoom//lib/spoom/model/builder.rb#71 + sig { override.params(node: ::Prism::ConstantPathWriteNode).void } + def visit_constant_path_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#180 - sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } - def visit_constant_operator_write_node(node); end + # source://spoom//lib/spoom/model/builder.rb#92 + sig { override.params(node: ::Prism::ConstantWriteNode).void } + def visit_constant_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#185 - sig { override.params(node: ::Prism::ConstantOrWriteNode).void } - def visit_constant_or_write_node(node); end + # Methods + # + # source://spoom//lib/spoom/model/builder.rb#127 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#190 - sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void } - def visit_constant_path_and_write_node(node); end + # Modules + # + # source://spoom//lib/spoom/model/builder.rb#55 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#195 - sig { override.params(node: ::Prism::ConstantPathNode).void } - def visit_constant_path_node(node); end + # source://spoom//lib/spoom/model/builder.rb#106 + sig { override.params(node: ::Prism::MultiWriteNode).void } + def visit_multi_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#200 - sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void } - def visit_constant_path_operator_write_node(node); end + # source://spoom//lib/spoom/model/builder.rb#39 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#205 - sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void } - def visit_constant_path_or_write_node(node); end + private - # source://spoom//lib/spoom/deadcode/visitor.rb#210 - sig { override.params(node: ::Prism::ConstantPathTargetNode).void } - def visit_constant_path_target_node(node); end + # source://spoom//lib/spoom/model/builder.rb#234 + sig { returns(T::Array[::Spoom::Model::Sig]) } + def collect_sigs; end - # source://spoom//lib/spoom/deadcode/visitor.rb#215 - sig { override.params(node: ::Prism::ConstantPathWriteNode).void } - def visit_constant_path_write_node(node); end + # source://spoom//lib/spoom/model/builder.rb#229 + sig { returns(::Spoom::Model::Visibility) } + def current_visibility; end - # source://spoom//lib/spoom/deadcode/visitor.rb#220 - sig { override.params(node: ::Prism::ConstantReadNode).void } - def visit_constant_read_node(node); end + # source://spoom//lib/spoom/model/builder.rb#241 + sig { params(node: ::Prism::Node).returns(::Spoom::Location) } + def node_location(node); end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#225 - sig { override.params(node: ::Prism::ConstantTargetNode).void } - def visit_constant_target_node(node); end +# source://spoom//lib/spoom/model/model.rb#117 +class Spoom::Model::Class < ::Spoom::Model::Namespace + # source://spoom//lib/spoom/model/model.rb#129 + sig do + params( + symbol: ::Spoom::Model::Symbol, + owner: T.nilable(::Spoom::Model::Namespace), + location: ::Spoom::Location, + superclass_name: T.nilable(::String) + ).void + end + def initialize(symbol, owner:, location:, superclass_name: T.unsafe(nil)); end - # source://spoom//lib/spoom/deadcode/visitor.rb#230 - sig { override.params(node: ::Prism::ConstantWriteNode).void } - def visit_constant_write_node(node); end + # source://spoom//lib/spoom/model/model.rb#119 + sig { returns(T.nilable(::String)) } + def superclass_name; end - # source://spoom//lib/spoom/deadcode/visitor.rb#235 - sig { override.params(node: ::Prism::DefNode).void } - def visit_def_node(node); end + # @return [String, nil] + # + # source://spoom//lib/spoom/model/model.rb#119 + def superclass_name=(_arg0); end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#240 - sig { override.params(node: ::Prism::DefinedNode).void } - def visit_defined_node(node); end +# source://spoom//lib/spoom/model/model.rb#138 +class Spoom::Model::Constant < ::Spoom::Model::SymbolDef + # source://spoom//lib/spoom/model/model.rb#143 + sig do + params( + symbol: ::Spoom::Model::Symbol, + owner: T.nilable(::Spoom::Model::Namespace), + location: ::Spoom::Location, + value: ::String + ).void + end + def initialize(symbol, owner:, location:, value:); end - # source://spoom//lib/spoom/deadcode/visitor.rb#245 - sig { override.params(node: ::Prism::ElseNode).void } - def visit_else_node(node); end + # source://spoom//lib/spoom/model/model.rb#140 + sig { returns(::String) } + def value; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#250 - sig { override.params(node: ::Prism::EmbeddedStatementsNode).void } - def visit_embedded_statements_node(node); end +# source://spoom//lib/spoom/model/model.rb#8 +class Spoom::Model::Error < ::Spoom::Error; end - # source://spoom//lib/spoom/deadcode/visitor.rb#255 - sig { override.params(node: ::Prism::EmbeddedVariableNode).void } - def visit_embedded_variable_node(node); end +# source://spoom//lib/spoom/model/model.rb#213 +class Spoom::Model::Extend < ::Spoom::Model::Mixin; end - # source://spoom//lib/spoom/deadcode/visitor.rb#260 - sig { override.params(node: ::Prism::EnsureNode).void } - def visit_ensure_node(node); end +# source://spoom//lib/spoom/model/model.rb#211 +class Spoom::Model::Include < ::Spoom::Model::Mixin; end - # source://spoom//lib/spoom/deadcode/visitor.rb#265 - sig { override.params(node: ::Prism::FalseNode).void } - def visit_false_node(node); end +# source://spoom//lib/spoom/model/model.rb#177 +class Spoom::Model::Method < ::Spoom::Model::Property; end - # source://spoom//lib/spoom/deadcode/visitor.rb#270 - sig { override.params(node: ::Prism::FindPatternNode).void } - def visit_find_pattern_node(node); end +# A mixin (include, prepend, extend) to a namespace +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/model/model.rb#196 +class Spoom::Model::Mixin + abstract! - # source://spoom//lib/spoom/deadcode/visitor.rb#275 - sig { override.params(node: ::Prism::FlipFlopNode).void } - def visit_flip_flop_node(node); end + # source://spoom//lib/spoom/model/model.rb#206 + sig { params(name: ::String).void } + def initialize(name); end - # source://spoom//lib/spoom/deadcode/visitor.rb#280 - sig { override.params(node: ::Prism::FloatNode).void } - def visit_float_node(node); end + # source://spoom//lib/spoom/model/model.rb#203 + sig { returns(::String) } + def name; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#285 - sig { override.params(node: ::Prism::ForNode).void } - def visit_for_node(node); end +# source://spoom//lib/spoom/model/model.rb#136 +class Spoom::Model::Module < ::Spoom::Model::Namespace; end - # source://spoom//lib/spoom/deadcode/visitor.rb#290 - sig { override.params(node: ::Prism::ForwardingArgumentsNode).void } - def visit_forwarding_arguments_node(node); end +# A class or module +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/model/model.rb#97 +class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef + abstract! - # source://spoom//lib/spoom/deadcode/visitor.rb#295 - sig { override.params(node: ::Prism::ForwardingParameterNode).void } - def visit_forwarding_parameter_node(node); end + # source://spoom//lib/spoom/model/model.rb#107 + sig do + params( + symbol: ::Spoom::Model::Symbol, + owner: T.nilable(::Spoom::Model::Namespace), + location: ::Spoom::Location + ).void + end + def initialize(symbol, owner:, location:); end - # source://spoom//lib/spoom/deadcode/visitor.rb#300 - sig { override.params(node: ::Prism::ForwardingSuperNode).void } - def visit_forwarding_super_node(node); end + # source://spoom//lib/spoom/model/model.rb#101 + sig { returns(T::Array[::Spoom::Model::SymbolDef]) } + def children; end - # source://spoom//lib/spoom/deadcode/visitor.rb#305 - sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void } - def visit_global_variable_and_write_node(node); end + # source://spoom//lib/spoom/model/model.rb#104 + sig { returns(T::Array[::Spoom::Model::Mixin]) } + def mixins; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#310 - sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void } - def visit_global_variable_operator_write_node(node); end +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/model/namespace_visitor.rb#6 +class Spoom::Model::NamespaceVisitor < ::Spoom::Visitor + abstract! - # source://spoom//lib/spoom/deadcode/visitor.rb#315 - sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void } - def visit_global_variable_or_write_node(node); end + # source://spoom//lib/spoom/model/namespace_visitor.rb#12 + sig { void } + def initialize; end - # source://spoom//lib/spoom/deadcode/visitor.rb#320 - sig { override.params(node: ::Prism::GlobalVariableReadNode).void } - def visit_global_variable_read_node(node); end + # source://spoom//lib/spoom/model/namespace_visitor.rb#19 + sig { override.params(node: T.nilable(::Prism::Node)).void } + def visit(node); end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#325 - sig { override.params(node: ::Prism::GlobalVariableTargetNode).void } - def visit_global_variable_target_node(node); end +# source://spoom//lib/spoom/model/model.rb#212 +class Spoom::Model::Prepend < ::Spoom::Model::Mixin; end - # source://spoom//lib/spoom/deadcode/visitor.rb#330 - sig { override.params(node: ::Prism::GlobalVariableWriteNode).void } - def visit_global_variable_write_node(node); end +# A method or an attribute accessor +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/model/model.rb#151 +class Spoom::Model::Property < ::Spoom::Model::SymbolDef + abstract! - # source://spoom//lib/spoom/deadcode/visitor.rb#335 - sig { override.params(node: ::Prism::HashNode).void } - def visit_hash_node(node); end + # source://spoom//lib/spoom/model/model.rb#169 + sig do + params( + symbol: ::Spoom::Model::Symbol, + owner: T.nilable(::Spoom::Model::Namespace), + location: ::Spoom::Location, + visibility: ::Spoom::Model::Visibility, + sigs: T::Array[::Spoom::Model::Sig] + ).void + end + def initialize(symbol, owner:, location:, visibility:, sigs: T.unsafe(nil)); end - # source://spoom//lib/spoom/deadcode/visitor.rb#340 - sig { override.params(node: ::Prism::HashPatternNode).void } - def visit_hash_pattern_node(node); end + # source://spoom//lib/spoom/model/model.rb#158 + sig { returns(T::Array[::Spoom::Model::Sig]) } + def sigs; end - # source://spoom//lib/spoom/deadcode/visitor.rb#345 - sig { override.params(node: ::Prism::IfNode).void } - def visit_if_node(node); end + # source://spoom//lib/spoom/model/model.rb#155 + sig { returns(::Spoom::Model::Visibility) } + def visibility; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#350 - sig { override.params(node: ::Prism::ImaginaryNode).void } - def visit_imaginary_node(node); end +# A reference to something that looks like a constant or a method +# +# Constants could be classes, modules, or actual constants. +# Methods could be accessors, instance or class methods, aliases, etc. +# +# source://spoom//lib/spoom/model/reference.rb#10 +class Spoom::Model::Reference < ::T::Struct + const :kind, ::Spoom::Model::Reference::Kind + const :name, ::String + const :location, ::Spoom::Location - # source://spoom//lib/spoom/deadcode/visitor.rb#355 - sig { override.params(node: ::Prism::ImplicitNode).void } - def visit_implicit_node(node); end + # source://spoom//lib/spoom/model/reference.rb#39 + sig { returns(T::Boolean) } + def constant?; end - # source://spoom//lib/spoom/deadcode/visitor.rb#360 - sig { override.params(node: ::Prism::ImplicitRestNode).void } - def visit_implicit_rest_node(node); end + # source://spoom//lib/spoom/model/reference.rb#44 + sig { returns(T::Boolean) } + def method?; end - # source://spoom//lib/spoom/deadcode/visitor.rb#365 - sig { override.params(node: ::Prism::InNode).void } - def visit_in_node(node); end + class << self + # source://spoom//lib/spoom/model/reference.rb#24 + sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } + def constant(name, location); end - # source://spoom//lib/spoom/deadcode/visitor.rb#370 - sig { override.params(node: ::Prism::IndexAndWriteNode).void } - def visit_index_and_write_node(node); end + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end - # source://spoom//lib/spoom/deadcode/visitor.rb#375 - sig { override.params(node: ::Prism::IndexOperatorWriteNode).void } - def visit_index_operator_write_node(node); end + # source://spoom//lib/spoom/model/reference.rb#29 + sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } + def method(name, location); end + end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#380 - sig { override.params(node: ::Prism::IndexOrWriteNode).void } - def visit_index_or_write_node(node); end +# source://spoom//lib/spoom/model/reference.rb#13 +class Spoom::Model::Reference::Kind < ::T::Enum + enums do + Constant = new + Method = new + end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#385 - sig { override.params(node: ::Prism::IndexTargetNode).void } - def visit_index_target_node(node); end +# Visit a file to collect all the references to constants and methods +# +# source://spoom//lib/spoom/model/references_visitor.rb#7 +class Spoom::Model::ReferencesVisitor < ::Spoom::Visitor + # source://spoom//lib/spoom/model/references_visitor.rb#14 + sig { params(file: ::String).void } + def initialize(file); end + + # source://spoom//lib/spoom/model/references_visitor.rb#11 + sig { returns(T::Array[::Spoom::Model::Reference]) } + def references; end - # source://spoom//lib/spoom/deadcode/visitor.rb#390 - sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void } - def visit_instance_variable_and_write_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#22 + sig { override.params(node: ::Prism::AliasMethodNode).void } + def visit_alias_method_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#395 - sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void } - def visit_instance_variable_operator_write_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#27 + sig { override.params(node: ::Prism::AndNode).void } + def visit_and_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#400 - sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void } - def visit_instance_variable_or_write_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#33 + sig { override.params(node: ::Prism::BlockArgumentNode).void } + def visit_block_argument_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#405 - sig { override.params(node: ::Prism::InstanceVariableReadNode).void } - def visit_instance_variable_read_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#44 + sig { override.params(node: ::Prism::CallAndWriteNode).void } + def visit_call_and_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#410 - sig { override.params(node: ::Prism::InstanceVariableTargetNode).void } - def visit_instance_variable_target_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#68 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#415 - sig { override.params(node: ::Prism::InstanceVariableWriteNode).void } - def visit_instance_variable_write_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#52 + sig { override.params(node: ::Prism::CallOperatorWriteNode).void } + def visit_call_operator_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#420 - sig { override.params(node: ::Prism::IntegerNode).void } - def visit_integer_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#60 + sig { override.params(node: ::Prism::CallOrWriteNode).void } + def visit_call_or_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#425 - sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void } - def visit_interpolated_match_last_line_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#85 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#430 - sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void } - def visit_interpolated_regular_expression_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#91 + sig { override.params(node: ::Prism::ConstantAndWriteNode).void } + def visit_constant_and_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#435 - sig { override.params(node: ::Prism::InterpolatedStringNode).void } - def visit_interpolated_string_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#97 + sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } + def visit_constant_operator_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#440 - sig { override.params(node: ::Prism::InterpolatedSymbolNode).void } - def visit_interpolated_symbol_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#103 + sig { override.params(node: ::Prism::ConstantOrWriteNode).void } + def visit_constant_or_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#445 - sig { override.params(node: ::Prism::InterpolatedXStringNode).void } - def visit_interpolated_x_string_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#109 + sig { override.params(node: ::Prism::ConstantPathNode).void } + def visit_constant_path_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#450 - sig { override.params(node: ::Prism::KeywordHashNode).void } - def visit_keyword_hash_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#115 + sig { override.params(node: ::Prism::ConstantPathWriteNode).void } + def visit_constant_path_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#455 - sig { override.params(node: ::Prism::KeywordRestParameterNode).void } - def visit_keyword_rest_parameter_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#121 + sig { override.params(node: ::Prism::ConstantReadNode).void } + def visit_constant_read_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#460 - sig { override.params(node: ::Prism::LambdaNode).void } - def visit_lambda_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#126 + sig { override.params(node: ::Prism::ConstantWriteNode).void } + def visit_constant_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#465 + # source://spoom//lib/spoom/model/references_visitor.rb#131 sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#470 + # source://spoom//lib/spoom/model/references_visitor.rb#139 sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#475 + # source://spoom//lib/spoom/model/references_visitor.rb#147 sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#480 - sig { override.params(node: ::Prism::LocalVariableReadNode).void } - def visit_local_variable_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#485 - sig { override.params(node: ::Prism::LocalVariableTargetNode).void } - def visit_local_variable_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#490 + # source://spoom//lib/spoom/model/references_visitor.rb#155 sig { override.params(node: ::Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#495 - sig { override.params(node: ::Prism::MatchLastLineNode).void } - def visit_match_last_line_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#500 - sig { override.params(node: ::Prism::MatchPredicateNode).void } - def visit_match_predicate_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#505 - sig { override.params(node: ::Prism::MatchRequiredNode).void } - def visit_match_required_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#510 - sig { override.params(node: ::Prism::MatchWriteNode).void } - def visit_match_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#515 - sig { override.params(node: ::Prism::MissingNode).void } - def visit_missing_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#520 + # source://spoom//lib/spoom/model/references_visitor.rb#161 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#525 - sig { override.params(node: ::Prism::MultiTargetNode).void } - def visit_multi_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#530 + # source://spoom//lib/spoom/model/references_visitor.rb#166 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#535 - sig { override.params(node: ::Prism::NextNode).void } - def visit_next_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#540 - sig { override.params(node: ::Prism::NilNode).void } - def visit_nil_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#545 - sig { override.params(node: ::Prism::NoKeywordsParameterNode).void } - def visit_no_keywords_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#550 - sig { override.params(node: ::Prism::NumberedParametersNode).void } - def visit_numbered_parameters_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#555 - sig { override.params(node: ::Prism::NumberedReferenceReadNode).void } - def visit_numbered_reference_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#560 - sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void } - def visit_optional_keyword_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#565 - sig { override.params(node: ::Prism::OptionalParameterNode).void } - def visit_optional_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#570 + # source://spoom//lib/spoom/model/references_visitor.rb#177 sig { override.params(node: ::Prism::OrNode).void } def visit_or_node(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#575 - sig { override.params(node: ::Prism::ParametersNode).void } - def visit_parameters_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#580 - sig { override.params(node: ::Prism::ParenthesesNode).void } - def visit_parentheses_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#585 - sig { override.params(node: ::Prism::PinnedExpressionNode).void } - def visit_pinned_expression_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#590 - sig { override.params(node: ::Prism::PinnedVariableNode).void } - def visit_pinned_variable_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#595 - sig { override.params(node: ::Prism::PostExecutionNode).void } - def visit_post_execution_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#600 - sig { override.params(node: ::Prism::PreExecutionNode).void } - def visit_pre_execution_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#605 - sig { override.params(node: ::Prism::ProgramNode).void } - def visit_program_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#610 - sig { override.params(node: ::Prism::RangeNode).void } - def visit_range_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#615 - sig { override.params(node: ::Prism::RationalNode).void } - def visit_rational_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#620 - sig { override.params(node: ::Prism::RedoNode).void } - def visit_redo_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#625 - sig { override.params(node: ::Prism::RegularExpressionNode).void } - def visit_regular_expression_node(node); end + private - # source://spoom//lib/spoom/deadcode/visitor.rb#630 - sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void } - def visit_required_keyword_parameter_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#195 + sig { params(node: ::Prism::Node).returns(::Spoom::Location) } + def node_location(node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#635 - sig { override.params(node: ::Prism::RequiredParameterNode).void } - def visit_required_parameter_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#185 + sig { params(name: ::String, node: ::Prism::Node).void } + def reference_constant(name, node); end - # source://spoom//lib/spoom/deadcode/visitor.rb#640 - sig { override.params(node: ::Prism::RescueModifierNode).void } - def visit_rescue_modifier_node(node); end + # source://spoom//lib/spoom/model/references_visitor.rb#190 + sig { params(name: ::String, node: ::Prism::Node).void } + def reference_method(name, node); end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#645 - sig { override.params(node: ::Prism::RescueNode).void } - def visit_rescue_node(node); end +# A Sorbet signature (sig block) +# +# source://spoom//lib/spoom/model/model.rb#216 +class Spoom::Model::Sig + # source://spoom//lib/spoom/model/model.rb#223 + sig { params(string: ::String).void } + def initialize(string); end - # source://spoom//lib/spoom/deadcode/visitor.rb#650 - sig { override.params(node: ::Prism::RestParameterNode).void } - def visit_rest_parameter_node(node); end + # source://spoom//lib/spoom/model/model.rb#220 + sig { returns(::String) } + def string; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#655 - sig { override.params(node: ::Prism::RetryNode).void } - def visit_retry_node(node); end +# source://spoom//lib/spoom/model/model.rb#115 +class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end - # source://spoom//lib/spoom/deadcode/visitor.rb#660 - sig { override.params(node: ::Prism::ReturnNode).void } - def visit_return_node(node); end +# A Symbol is a uniquely named entity in the Ruby codebase +# +# A symbol can have multiple definitions, e.g. a class can be reopened. +# Sometimes a symbol can have multiple definitions of different types, +# e.g. `foo` method can be defined both as a method and as an attribute accessor. +# +# source://spoom//lib/spoom/model/model.rb#15 +class Spoom::Model::Symbol + # source://spoom//lib/spoom/model/model.rb#27 + sig { params(full_name: ::String).void } + def initialize(full_name); end - # source://spoom//lib/spoom/deadcode/visitor.rb#665 - sig { override.params(node: ::Prism::SelfNode).void } - def visit_self_node(node); end + # The definitions of this symbol (where it exists in the code) + # + # source://spoom//lib/spoom/model/model.rb#24 + sig { returns(T::Array[::Spoom::Model::SymbolDef]) } + def definitions; end - # source://spoom//lib/spoom/deadcode/visitor.rb#670 - sig { override.params(node: ::Prism::SingletonClassNode).void } - def visit_singleton_class_node(node); end + # The full, unique name of this symbol + # + # source://spoom//lib/spoom/model/model.rb#20 + sig { returns(::String) } + def full_name; end - # source://spoom//lib/spoom/deadcode/visitor.rb#675 - sig { override.params(node: ::Prism::SourceEncodingNode).void } - def visit_source_encoding_node(node); end + # The short name of this symbol + # + # source://spoom//lib/spoom/model/model.rb#34 + sig { returns(::String) } + def name; end - # source://spoom//lib/spoom/deadcode/visitor.rb#680 - sig { override.params(node: ::Prism::SourceFileNode).void } - def visit_source_file_node(node); end + # source://spoom//lib/spoom/model/model.rb#39 + sig { returns(::String) } + def to_s; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#685 - sig { override.params(node: ::Prism::SourceLineNode).void } - def visit_source_line_node(node); end +# A SymbolDef is a definition of a Symbol +# +# It can be a class, module, constant, method, etc. +# A SymbolDef has a location pointing to the actual code that defines the symbol. +# +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://spoom//lib/spoom/model/model.rb#55 +class Spoom::Model::SymbolDef + abstract! - # source://spoom//lib/spoom/deadcode/visitor.rb#690 - sig { override.params(node: ::Prism::SplatNode).void } - def visit_splat_node(node); end + # source://spoom//lib/spoom/model/model.rb#74 + sig do + params( + symbol: ::Spoom::Model::Symbol, + owner: T.nilable(::Spoom::Model::Namespace), + location: ::Spoom::Location + ).void + end + def initialize(symbol, owner:, location:); end - # source://spoom//lib/spoom/deadcode/visitor.rb#695 - sig { override.params(node: ::Prism::StatementsNode).void } - def visit_statements_node(node); end + # The full name of the symbol this definition belongs to + # + # source://spoom//lib/spoom/model/model.rb#85 + sig { returns(::String) } + def full_name; end - # source://spoom//lib/spoom/deadcode/visitor.rb#700 - sig { override.params(node: ::Prism::StringNode).void } - def visit_string_node(node); end + # The actual code location of this definition + # + # source://spoom//lib/spoom/model/model.rb#71 + sig { returns(::Spoom::Location) } + def location; end - # source://spoom//lib/spoom/deadcode/visitor.rb#705 - sig { override.params(node: ::Prism::SuperNode).void } - def visit_super_node(node); end + # The short name of the symbol this definition belongs to + # + # source://spoom//lib/spoom/model/model.rb#91 + sig { returns(::String) } + def name; end - # source://spoom//lib/spoom/deadcode/visitor.rb#710 - sig { override.params(node: ::Prism::SymbolNode).void } - def visit_symbol_node(node); end + # The enclosing namespace this definition belongs to + # + # source://spoom//lib/spoom/model/model.rb#67 + sig { returns(T.nilable(::Spoom::Model::Namespace)) } + def owner; end - # source://spoom//lib/spoom/deadcode/visitor.rb#715 - sig { override.params(node: ::Prism::TrueNode).void } - def visit_true_node(node); end + # The symbol this definition belongs to + # + # source://spoom//lib/spoom/model/model.rb#63 + sig { returns(::Spoom::Model::Symbol) } + def symbol; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#720 - sig { override.params(node: ::Prism::UndefNode).void } - def visit_undef_node(node); end +# source://spoom//lib/spoom/model/model.rb#44 +class Spoom::Model::UnresolvedSymbol < ::Spoom::Model::Symbol + # source://spoom//lib/spoom/model/model.rb#46 + sig { override.returns(::String) } + def to_s; end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#725 - sig { override.params(node: ::Prism::UnlessNode).void } - def visit_unless_node(node); end +# source://spoom//lib/spoom/model/model.rb#187 +class Spoom::Model::Visibility < ::T::Enum + enums do + Public = new + Protected = new + Private = new + end +end - # source://spoom//lib/spoom/deadcode/visitor.rb#730 - sig { override.params(node: ::Prism::UntilNode).void } - def visit_until_node(node); end +# source://spoom//lib/spoom/parse.rb#7 +class Spoom::ParseError < ::Spoom::Error; end - # source://spoom//lib/spoom/deadcode/visitor.rb#735 - sig { override.params(node: ::Prism::WhenNode).void } - def visit_when_node(node); end +# A Poset is a set of elements with a partial order relation. +# +# The partial order relation is a binary relation that is reflexive, antisymmetric, and transitive. +# It can be used to represent a hierarchy of classes or modules, the dependencies between gems, etc. +# +# source://spoom//lib/spoom/poset.rb#9 +class Spoom::Poset + extend T::Generic - # source://spoom//lib/spoom/deadcode/visitor.rb#740 - sig { override.params(node: ::Prism::WhileNode).void } - def visit_while_node(node); end + E = type_member { { upper: Object } } - # source://spoom//lib/spoom/deadcode/visitor.rb#745 - sig { override.params(node: ::Prism::XStringNode).void } - def visit_x_string_node(node); end + # source://spoom//lib/spoom/poset.rb#18 + sig { void } + def initialize; end - # source://spoom//lib/spoom/deadcode/visitor.rb#750 - sig { override.params(node: ::Prism::YieldNode).void } - def visit_yield_node(node); end -end + # Get the POSet element for a given value + # + # Raises if the element is not found + # + # @raise [Error] + # + # source://spoom//lib/spoom/poset.rb#26 + sig { params(value: E).returns(Spoom::Poset::Element[E]) } + def [](value); end -# source://spoom//lib/spoom.rb#12 -class Spoom::Error < ::StandardError; end + # Add a direct edge from one element to another + # + # Transitive edges (transitive closure) are automatically computed. + # Adds the elements if they don't exist. + # If the direct edge already exists, nothing is done. + # + # source://spoom//lib/spoom/poset.rb#54 + sig { params(from: E, to: E).void } + def add_direct_edge(from, to); end -# source://spoom//lib/spoom/context/exec.rb#5 -class Spoom::ExecResult < ::T::Struct - const :out, ::String - const :err, T.nilable(::String) - const :status, T::Boolean - const :exit_code, ::Integer + # Add an element to the POSet + # + # source://spoom//lib/spoom/poset.rb#35 + sig { params(value: E).returns(Spoom::Poset::Element[E]) } + def add_element(value); end - # source://spoom//lib/spoom/context/exec.rb#14 - sig { returns(::String) } - def to_s; end + # Is there a direct edge from `from` to `to`? + # + # source://spoom//lib/spoom/poset.rb#101 + sig { params(from: E, to: E).returns(T::Boolean) } + def direct_edge?(from, to); end - class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end -end + # Is there an edge (direct or indirect) from `from` to `to`? + # + # source://spoom//lib/spoom/poset.rb#92 + sig { params(from: E, to: E).returns(T::Boolean) } + def edge?(from, to); end -# source://spoom//lib/spoom/file_collector.rb#5 -class Spoom::FileCollector - # Initialize a new file collector + # Is the given value a element in the POSet? # - # If `allow_extensions` is empty, all files are collected. - # If `allow_extensions` is an array of extensions, only files with one of these extensions are collected. + # source://spoom//lib/spoom/poset.rb#44 + sig { params(value: E).returns(T::Boolean) } + def element?(value); end + + # Show the POSet as a DOT graph using xdot (used for debugging) # - # If `allow_mime_types` is empty, all files are collected. - # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in - # the list. + # source://spoom//lib/spoom/poset.rb#107 + sig { params(direct: T::Boolean, transitive: T::Boolean).void } + def show_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end + + # Return the POSet as a DOT graph # - # source://spoom//lib/spoom/file_collector.rb#26 - sig do - params( - allow_extensions: T::Array[::String], - allow_mime_types: T::Array[::String], - exclude_patterns: T::Array[::String] - ).void - end - def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end + # source://spoom//lib/spoom/poset.rb#116 + sig { params(direct: T::Boolean, transitive: T::Boolean).returns(::String) } + def to_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end +end - # source://spoom//lib/spoom/file_collector.rb#9 - sig { returns(T::Array[::String]) } - def files; end +# An element in a POSet +# +# source://spoom//lib/spoom/poset.rb#136 +class Spoom::Poset::Element + extend T::Generic + include ::Comparable - # source://spoom//lib/spoom/file_collector.rb#39 - sig { params(path: ::String).void } - def visit_path(path); end + E = type_member { { upper: Object } } - # source://spoom//lib/spoom/file_collector.rb#34 - sig { params(paths: T::Array[::String]).void } - def visit_paths(paths); end + # source://spoom//lib/spoom/poset.rb#152 + sig { params(value: E).void } + def initialize(value); end - private + # source://spoom//lib/spoom/poset.rb#161 + sig { params(other: T.untyped).returns(T.nilable(::Integer)) } + def <=>(other); end - # source://spoom//lib/spoom/file_collector.rb#56 - sig { params(path: ::String).returns(::String) } - def clean_path(path); end + # Direct and indirect ancestors of this element + # + # source://spoom//lib/spoom/poset.rb#180 + sig { returns(T::Array[E]) } + def ancestors; end - # source://spoom//lib/spoom/file_collector.rb#73 - sig { params(path: ::String).returns(T::Boolean) } - def excluded_file?(path); end + # Direct children of this element + # + # source://spoom//lib/spoom/poset.rb#186 + sig { returns(T::Array[E]) } + def children; end - # source://spoom//lib/spoom/file_collector.rb#88 - sig { params(path: ::String).returns(T::Boolean) } - def excluded_path?(path); end + # Direct and indirect descendants of this element + # + # source://spoom//lib/spoom/poset.rb#192 + sig { returns(T::Array[E]) } + def descendants; end - # source://spoom//lib/spoom/file_collector.rb#97 - sig { params(path: ::String).returns(T.nilable(::String)) } - def mime_type_for(path); end + # Edges (direct and indirect) from this element to other elements in the same POSet + # + # @return [Set] + # + # source://spoom//lib/spoom/poset.rb#149 + def dfroms; end - # source://spoom//lib/spoom/file_collector.rb#68 - sig { params(path: ::String).void } - def visit_directory(path); end + # Edges (direct and indirect) from this element to other elements in the same POSet + # + # source://spoom//lib/spoom/poset.rb#149 + sig { returns(T::Set[Spoom::Poset::Element[E]]) } + def dtos; end - # source://spoom//lib/spoom/file_collector.rb#61 - sig { params(path: ::String).void } - def visit_file(path); end + # Edges (direct and indirect) from this element to other elements in the same POSet + # + # @return [Set] + # + # source://spoom//lib/spoom/poset.rb#149 + def froms; end + + # Direct parents of this element + # + # source://spoom//lib/spoom/poset.rb#174 + sig { returns(T::Array[E]) } + def parents; end + + # Edges (direct and indirect) from this element to other elements in the same POSet + # + # @return [Set] + # + # source://spoom//lib/spoom/poset.rb#149 + def tos; end + + # The value held by this element + # + # source://spoom//lib/spoom/poset.rb#145 + sig { returns(E) } + def value; end end -# Build a file hierarchy from a set of file paths. -# -# source://spoom//lib/spoom/file_tree.rb#6 -class Spoom::FileTree - # source://spoom//lib/spoom/file_tree.rb#10 - sig { params(paths: T::Enumerable[::String]).void } - def initialize(paths = T.unsafe(nil)); end +# source://spoom//lib/spoom/poset.rb#13 +class Spoom::Poset::Error < ::Spoom::Error; end - # Add a `path` to the tree +# source://spoom//lib/spoom/printer.rb#7 +class Spoom::Printer + include ::Spoom::Colorize + + # source://spoom//lib/spoom/printer.rb#17 + sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } + def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end + + # Colorize `string` with color if `@colors` # - # This will create all nodes until the root of `path`. + # source://spoom//lib/spoom/printer.rb#78 + sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } + def colorize(string, *color); end + + # Decrease indent level # - # source://spoom//lib/spoom/file_tree.rb#25 - sig { params(path: ::String).returns(::Spoom::FileTree::Node) } - def add_path(path); end + # source://spoom//lib/spoom/printer.rb#31 + sig { void } + def dedent; end - # Add all `paths` to the tree + # Increase indent level # - # source://spoom//lib/spoom/file_tree.rb#17 - sig { params(paths: T::Enumerable[::String]).void } - def add_paths(paths); end + # source://spoom//lib/spoom/printer.rb#25 + sig { void } + def indent; end - # All the nodes in this tree + # source://spoom//lib/spoom/printer.rb#14 + sig { returns(T.any(::IO, ::StringIO)) } + def out; end + + # @return [IO, StringIO] # - # source://spoom//lib/spoom/file_tree.rb#45 - sig { returns(T::Array[::Spoom::FileTree::Node]) } - def nodes; end + # source://spoom//lib/spoom/printer.rb#14 + def out=(_arg0); end - # Return a map of typing scores for each node in the tree + # Print `string` into `out` # - # source://spoom//lib/spoom/file_tree.rb#59 - sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } - def nodes_strictness_scores(context); end + # source://spoom//lib/spoom/printer.rb#37 + sig { params(string: T.nilable(::String)).void } + def print(string); end - # All the paths in this tree + # Print `string` colored with `color` into `out` # - # source://spoom//lib/spoom/file_tree.rb#53 - sig { returns(T::Array[::String]) } - def paths; end + # Does not use colors unless `@colors`. + # + # source://spoom//lib/spoom/printer.rb#47 + sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } + def print_colored(string, *color); end - # Return a map of typing scores for each path in the tree + # Print `string` with indent and newline # - # source://spoom//lib/spoom/file_tree.rb#67 - sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) } - def paths_strictness_scores(context); end + # source://spoom//lib/spoom/printer.rb#62 + sig { params(string: T.nilable(::String)).void } + def printl(string); end - # source://spoom//lib/spoom/file_tree.rb#72 - sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void } - def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end + # Print a new line into `out` + # + # source://spoom//lib/spoom/printer.rb#56 + sig { void } + def printn; end - # All root nodes + # Print an indent space into `out` # - # source://spoom//lib/spoom/file_tree.rb#39 - sig { returns(T::Array[::Spoom::FileTree::Node]) } - def roots; end + # source://spoom//lib/spoom/printer.rb#72 + sig { void } + def printt; end end -# A visitor that collects all the nodes in a tree +# source://spoom//lib/spoom.rb#10 +Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/config.rb#5 +module Spoom::Sorbet; end + +# source://spoom//lib/spoom/sorbet.rb#39 +Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet.rb#36 +Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) + +# Parse Sorbet config files # -# source://spoom//lib/spoom/file_tree.rb#124 -class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#131 +# Parses a Sorbet config file: +# +# ```ruby +# config = Spoom::Sorbet::Config.parse_file("sorbet/config") +# puts config.paths # "." +# ``` +# +# Parses a Sorbet config string: +# +# ```ruby +# config = Spoom::Sorbet::Config.parse_string(<<~CONFIG) +# a +# --file=b +# --ignore=c +# CONFIG +# puts config.paths # "a", "b" +# puts config.ignore # "c" +# ``` +# +# source://spoom//lib/spoom/sorbet/config.rb#26 +class Spoom::Sorbet::Config + # source://spoom//lib/spoom/sorbet/config.rb#38 sig { void } def initialize; end - # source://spoom//lib/spoom/file_tree.rb#128 - sig { returns(T::Array[::Spoom::FileTree::Node]) } - def nodes; end + # @return [Array] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def allowed_extensions; end - # source://spoom//lib/spoom/file_tree.rb#137 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end -end + # @return [Array] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def allowed_extensions=(_arg0); end -# A visitor that collects the typing score of each node in a tree -# -# source://spoom//lib/spoom/file_tree.rb#167 -class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses - # source://spoom//lib/spoom/file_tree.rb#174 - sig { params(context: ::Spoom::Context).void } - def initialize(context); end + # source://spoom//lib/spoom/sorbet/config.rb#46 + sig { returns(::Spoom::Sorbet::Config) } + def copy; end + + # @return [Array] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def ignore; end + + # @return [Array] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def ignore=(_arg0); end + + # source://spoom//lib/spoom/sorbet/config.rb#35 + sig { returns(T::Boolean) } + def no_stdlib; end + + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/config.rb#35 + def no_stdlib=(_arg0); end + + # Returns self as a string of options that can be passed to Sorbet + # + # Example: + # ~~~rb + # config = Sorbet::Config.new + # config.paths << "/foo" + # config.paths << "/bar" + # config.ignore << "/baz" + # config.allowed_extensions << ".rb" + # + # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" + # ~~~ + # + # source://spoom//lib/spoom/sorbet/config.rb#68 + sig { returns(::String) } + def options_string; end - # source://spoom//lib/spoom/file_tree.rb#171 - sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } - def scores; end + # source://spoom//lib/spoom/sorbet/config.rb#32 + sig { returns(T::Array[::String]) } + def paths; end - # source://spoom//lib/spoom/file_tree.rb#181 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end + # @return [Array] + # + # source://spoom//lib/spoom/sorbet/config.rb#32 + def paths=(_arg0); end - private + class << self + # source://spoom//lib/spoom/sorbet/config.rb#81 + sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } + def parse_file(sorbet_config_path); end - # source://spoom//lib/spoom/file_tree.rb#190 - sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } - def node_score(node); end + # source://spoom//lib/spoom/sorbet/config.rb#86 + sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } + def parse_string(sorbet_config); end - # source://spoom//lib/spoom/file_tree.rb#199 - sig { params(strictness: T.nilable(::String)).returns(::Float) } - def strictness_score(strictness); end + private + + # source://spoom//lib/spoom/sorbet/config.rb#150 + sig { params(line: ::String).returns(::String) } + def parse_option(line); end + end end -# A visitor that collects the strictness of each node in a tree -# -# source://spoom//lib/spoom/file_tree.rb#144 -class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#151 - sig { params(context: ::Spoom::Context).void } - def initialize(context); end +# source://spoom//lib/spoom/sorbet/config.rb#29 +Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array) - # source://spoom//lib/spoom/file_tree.rb#148 - sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } - def strictnesses; end +# source://spoom//lib/spoom/sorbet.rb#14 +class Spoom::Sorbet::Error < ::Spoom::Error + # source://spoom//lib/spoom/sorbet.rb#29 + sig { params(message: ::String, result: ::Spoom::ExecResult).void } + def initialize(message, result); end - # source://spoom//lib/spoom/file_tree.rb#158 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end + # source://spoom//lib/spoom/sorbet.rb#21 + sig { returns(::Spoom::ExecResult) } + def result; end end -# A node representing either a file or a directory inside a FileTree -# -# source://spoom//lib/spoom/file_tree.rb#78 -class Spoom::FileTree::Node < ::T::Struct - const :parent, T.nilable(::Spoom::FileTree::Node) - const :name, ::String - const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) +# source://spoom//lib/spoom/sorbet.rb#17 +class Spoom::Sorbet::Error::Killed < ::Spoom::Sorbet::Error; end - # Full path to this node from root - # - # source://spoom//lib/spoom/file_tree.rb#92 - sig { returns(::String) } - def path; end +# source://spoom//lib/spoom/sorbet.rb#18 +class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end +# source://spoom//lib/spoom/sorbet/errors.rb#6 +module Spoom::Sorbet::Errors class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end + # source://spoom//lib/spoom/sorbet/errors.rb#13 + sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } + def sort_errors_by_code(errors); end end end -# An internal class used to print a FileTree -# -# See `FileTree#print` -# -# source://spoom//lib/spoom/file_tree.rb#212 -class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#222 +# source://spoom//lib/spoom/sorbet/errors.rb#7 +Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/errors.rb#127 +class Spoom::Sorbet::Errors::Error + include ::Comparable + + # source://spoom//lib/spoom/sorbet/errors.rb#153 sig do params( - strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], - out: T.any(::IO, ::StringIO), - colors: T::Boolean + file: T.nilable(::String), + line: T.nilable(::Integer), + message: T.nilable(::String), + code: T.nilable(::Integer), + more: T::Array[::String] ).void end - def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end + def initialize(file, line, message, code, more = T.unsafe(nil)); end - # source://spoom//lib/spoom/file_tree.rb#230 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end + # By default errors are sorted by location + # + # source://spoom//lib/spoom/sorbet/errors.rb#164 + sig { params(other: T.untyped).returns(::Integer) } + def <=>(other); end - private + # @return [Integer, nil] + # + # source://spoom//lib/spoom/sorbet/errors.rb#135 + def code; end - # source://spoom//lib/spoom/file_tree.rb#255 - sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } - def strictness_color(strictness); end -end + # source://spoom//lib/spoom/sorbet/errors.rb#132 + sig { returns(T.nilable(::String)) } + def file; end -# An abstract visitor for FileTree -# -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/file_tree.rb#101 -class Spoom::FileTree::Visitor - abstract! + # Other files associated with the error + # + # source://spoom//lib/spoom/sorbet/errors.rb#142 + sig { returns(T::Set[::String]) } + def files_from_error_sections; end - # source://spoom//lib/spoom/file_tree.rb#113 - sig { params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end + # source://spoom//lib/spoom/sorbet/errors.rb#135 + sig { returns(T.nilable(::Integer)) } + def line; end - # source://spoom//lib/spoom/file_tree.rb#118 - sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } - def visit_nodes(nodes); end + # @return [String, nil] + # + # source://spoom//lib/spoom/sorbet/errors.rb#132 + def message; end - # source://spoom//lib/spoom/file_tree.rb#108 - sig { params(tree: ::Spoom::FileTree).void } - def visit_tree(tree); end -end + # source://spoom//lib/spoom/sorbet/errors.rb#138 + sig { returns(T::Array[::String]) } + def more; end -# source://spoom//lib/spoom/context/git.rb#5 -module Spoom::Git; end + # source://spoom//lib/spoom/sorbet/errors.rb#171 + sig { returns(::String) } + def to_s; end +end -# source://spoom//lib/spoom/context/git.rb#6 -class Spoom::Git::Commit < ::T::Struct - const :sha, ::String - const :time, ::Time +# Parse errors from Sorbet output +# +# source://spoom//lib/spoom/sorbet/errors.rb#18 +class Spoom::Sorbet::Errors::Parser + # source://spoom//lib/spoom/sorbet/errors.rb#45 + sig { params(error_url_base: ::String).void } + def initialize(error_url_base: T.unsafe(nil)); end - # source://spoom//lib/spoom/context/git.rb#27 - sig { returns(::Integer) } - def timestamp; end + # source://spoom//lib/spoom/sorbet/errors.rb#52 + sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } + def parse(output); end - class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end + private - # Parse a line formatted as `%h %at` into a `Commit` - # - # source://spoom//lib/spoom/context/git.rb#14 - sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } - def parse_line(string); end - end -end + # @raise [ParseError] + # + # source://spoom//lib/spoom/sorbet/errors.rb#116 + sig { params(line: ::String).void } + def append_error(line); end -# source://spoom//lib/spoom/sorbet/lsp/base.rb#5 -module Spoom::LSP; end + # @raise [ParseError] + # + # source://spoom//lib/spoom/sorbet/errors.rb#108 + sig { void } + def close_error; end -# source://spoom//lib/spoom/sorbet/lsp.rb#13 -class Spoom::LSP::Client - # source://spoom//lib/spoom/sorbet/lsp.rb#17 - sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } - def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end + # source://spoom//lib/spoom/sorbet/errors.rb#75 + sig { params(error_url_base: ::String).returns(::Regexp) } + def error_line_match_regexp(error_url_base); end - # source://spoom//lib/spoom/sorbet/lsp.rb#229 - sig { void } - def close; end + # source://spoom//lib/spoom/sorbet/errors.rb#92 + sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } + def match_error_line(line); end - # source://spoom//lib/spoom/sorbet/lsp.rb#131 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } - def definitions(uri, line, column); end + # @raise [ParseError] + # + # source://spoom//lib/spoom/sorbet/errors.rb#101 + sig { params(error: ::Spoom::Sorbet::Errors::Error).void } + def open_error(error); end - # source://spoom//lib/spoom/sorbet/lsp.rb#212 - sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } - def document_symbols(uri); end + class << self + # source://spoom//lib/spoom/sorbet/errors.rb#38 + sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } + def parse_string(output, error_url_base: T.unsafe(nil)); end + end +end - # source://spoom//lib/spoom/sorbet/lsp.rb#89 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } - def hover(uri, line, column); end +# source://spoom//lib/spoom/sorbet/errors.rb#23 +Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) - # source://spoom//lib/spoom/sorbet/lsp.rb#27 - sig { returns(::Integer) } - def next_id; end +# source://spoom//lib/spoom/sorbet/errors.rb#21 +class Spoom::Sorbet::Errors::Parser::ParseError < ::Spoom::Error; end - # LSP requests - # - # @raise [Error::AlreadyOpen] - # - # source://spoom//lib/spoom/sorbet/lsp.rb#72 - sig { params(workspace_path: ::String).void } - def open(workspace_path); end +# source://spoom//lib/spoom/sorbet.rb#37 +Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) - # source://spoom//lib/spoom/sorbet/lsp.rb#54 - sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } - def read; end +# source://spoom//lib/spoom/sorbet.rb#38 +Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String) - # @raise [Error::BadHeaders] - # - # source://spoom//lib/spoom/sorbet/lsp.rb#43 - sig { returns(T.nilable(::String)) } - def read_raw; end +# source://spoom//lib/spoom/sorbet.rb#41 +Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer) - # source://spoom//lib/spoom/sorbet/lsp.rb#173 - sig do - params( - uri: ::String, - line: ::Integer, - column: ::Integer, - include_decl: T::Boolean - ).returns(T::Array[::Spoom::LSP::Location]) - end - def references(uri, line, column, include_decl = T.unsafe(nil)); end +# source://spoom//lib/spoom/sorbet/metrics.rb#8 +module Spoom::Sorbet::MetricsParser + class << self + # source://spoom//lib/spoom/sorbet/metrics.rb#15 + sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } + def parse_file(path, prefix = T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/lsp.rb#37 - sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } - def send(message); end + # source://spoom//lib/spoom/sorbet/metrics.rb#25 + sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } + def parse_hash(obj, prefix = T.unsafe(nil)); end - # source://spoom//lib/spoom/sorbet/lsp.rb#32 - sig { params(json_string: ::String).void } - def send_raw(json_string); end + # source://spoom//lib/spoom/sorbet/metrics.rb#20 + sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } + def parse_string(string, prefix = T.unsafe(nil)); end + end +end - # source://spoom//lib/spoom/sorbet/lsp.rb#110 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } - def signatures(uri, line, column); end +# source://spoom//lib/spoom/sorbet/metrics.rb#9 +Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) - # source://spoom//lib/spoom/sorbet/lsp.rb#197 - sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } - def symbols(query); end +# source://spoom//lib/spoom/sorbet.rb#42 +Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) - # source://spoom//lib/spoom/sorbet/lsp.rb#152 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } - def type_definitions(uri, line, column); end -end +# source://spoom//lib/spoom/sorbet/sigils.rb#9 +module Spoom::Sorbet::Sigils + class << self + # changes the sigil in the file at the passed path to the specified new strictness + # + # source://spoom//lib/spoom/sorbet/sigils.rb#72 + sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } + def change_sigil_in_file(path, new_strictness); end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 -class Spoom::LSP::Diagnostic < ::T::Struct - include ::Spoom::LSP::PrintableSymbol + # changes the sigil to have a new strictness in a list of files + # + # source://spoom//lib/spoom/sorbet/sigils.rb#83 + sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } + def change_sigil_in_files(path_list, new_strictness); end - const :range, ::Spoom::LSP::Range - const :code, ::Integer - const :message, ::String - const :information, ::Object + # returns a string containing the strictness of a sigil in a file at the passed path + # * returns nil if no sigil + # + # source://spoom//lib/spoom/sorbet/sigils.rb#63 + sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } + def file_strictness(path); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#202 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end + # returns the full sigil comment string for the passed strictness + # + # source://spoom//lib/spoom/sorbet/sigils.rb#38 + sig { params(strictness: ::String).returns(::String) } + def sigil_string(strictness); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#207 - sig { returns(::String) } - def to_s; end + # returns the strictness of a sigil in the passed file content string (nil if no sigil) + # + # source://spoom//lib/spoom/sorbet/sigils.rb#50 + sig { params(content: ::String).returns(T.nilable(::String)) } + def strictness_in_content(content); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#191 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } - def from_json(json); end + # returns a string which is the passed content but with the sigil updated to a new strictness + # + # source://spoom//lib/spoom/sorbet/sigils.rb#56 + sig { params(content: ::String, new_strictness: ::String).returns(::String) } + def update_sigil(content, new_strictness); end - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end + # returns true if the passed string is a valid strictness (else false) + # + # source://spoom//lib/spoom/sorbet/sigils.rb#44 + sig { params(strictness: ::String).returns(T::Boolean) } + def valid_strictness?(strictness); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 -class Spoom::LSP::DocumentSymbol < ::T::Struct - include ::Spoom::LSP::PrintableSymbol +# source://spoom//lib/spoom/sorbet/sigils.rb#31 +Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) - const :name, ::String - const :detail, T.nilable(::String) - const :kind, ::Integer - const :location, T.nilable(::Spoom::LSP::Location) - const :range, T.nilable(::Spoom::LSP::Range) - const :children, T::Array[::Spoom::LSP::DocumentSymbol] +# source://spoom//lib/spoom/sorbet/sigils.rb#13 +Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#240 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end +# source://spoom//lib/spoom/sorbet/sigils.rb#12 +Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#272 - sig { returns(::String) } - def kind_string; end +# source://spoom//lib/spoom/sorbet/sigils.rb#17 +Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#267 - sig { returns(::String) } - def to_s; end +# source://spoom//lib/spoom/sorbet/sigils.rb#15 +Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#227 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } - def from_json(json); end +# source://spoom//lib/spoom/sorbet/sigils.rb#16 +Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end +# source://spoom//lib/spoom/sorbet/sigils.rb#14 +Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) + +# source://spoom//lib/spoom/sorbet/sigils.rb#19 +Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/timeline.rb#5 +class Spoom::Timeline + # source://spoom//lib/spoom/timeline.rb#9 + sig { params(context: ::Spoom::Context, from: ::Time, to: ::Time).void } + def initialize(context, from, to); end + + # Return one commit for each date in `dates` + # + # source://spoom//lib/spoom/timeline.rb#36 + sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } + def commits_for_dates(dates); end + + # Return all months between `from` and `to` + # + # source://spoom//lib/spoom/timeline.rb#23 + sig { returns(T::Array[::Time]) } + def months; end + + # Return one commit for each month between `from` and `to` + # + # source://spoom//lib/spoom/timeline.rb#17 + sig { returns(T::Array[::Spoom::Git::Commit]) } + def ticks; end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#276 -Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) +# source://spoom//lib/spoom/version.rb#5 +Spoom::VERSION = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 -class Spoom::LSP::Error < ::StandardError; end +# source://spoom//lib/spoom/visitor.rb#7 +class Spoom::Visitor < ::Prism::Visitor + # source://spoom//lib/spoom/visitor.rb#16 + sig { override.params(node: ::Prism::AliasGlobalVariableNode).void } + def visit_alias_global_variable_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#7 -class Spoom::LSP::Error::AlreadyOpen < ::Spoom::LSP::Error; end + # source://spoom//lib/spoom/visitor.rb#21 + sig { override.params(node: ::Prism::AliasMethodNode).void } + def visit_alias_method_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#8 -class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end + # source://spoom//lib/spoom/visitor.rb#26 + sig { override.params(node: ::Prism::AlternationPatternNode).void } + def visit_alternation_pattern_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 -class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#32 - sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } - def initialize(uri, diagnostics); end + # source://spoom//lib/spoom/visitor.rb#31 + sig { override.params(node: ::Prism::AndNode).void } + def visit_and_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#17 - sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } - def diagnostics; end + # source://spoom//lib/spoom/visitor.rb#36 + sig { override.params(node: ::Prism::ArgumentsNode).void } + def visit_arguments_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#14 - sig { returns(::String) } - def uri; end + # source://spoom//lib/spoom/visitor.rb#41 + sig { override.params(node: ::Prism::ArrayNode).void } + def visit_array_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#23 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } - def from_json(json); end - end -end + # source://spoom//lib/spoom/visitor.rb#46 + sig { override.params(node: ::Prism::ArrayPatternNode).void } + def visit_array_pattern_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19 -class Spoom::LSP::Hover < ::T::Struct - include ::Spoom::LSP::PrintableSymbol + # source://spoom//lib/spoom/visitor.rb#51 + sig { override.params(node: ::Prism::AssocNode).void } + def visit_assoc_node(node); end - const :contents, ::String - const :range, T.nilable(T::Range[T.untyped]) + # source://spoom//lib/spoom/visitor.rb#56 + sig { override.params(node: ::Prism::AssocSplatNode).void } + def visit_assoc_splat_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#39 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end + # source://spoom//lib/spoom/visitor.rb#61 + sig { override.params(node: ::Prism::BackReferenceReadNode).void } + def visit_back_reference_read_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 - sig { returns(::String) } - def to_s; end + # source://spoom//lib/spoom/visitor.rb#66 + sig { override.params(node: ::Prism::BeginNode).void } + def visit_begin_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#30 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } - def from_json(json); end + # source://spoom//lib/spoom/visitor.rb#71 + sig { override.params(node: ::Prism::BlockArgumentNode).void } + def visit_block_argument_node(node); end - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end -end + # source://spoom//lib/spoom/visitor.rb#76 + sig { override.params(node: ::Prism::BlockLocalVariableNode).void } + def visit_block_local_variable_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#112 -class Spoom::LSP::Location < ::T::Struct - include ::Spoom::LSP::PrintableSymbol + # source://spoom//lib/spoom/visitor.rb#81 + sig { override.params(node: ::Prism::BlockNode).void } + def visit_block_node(node); end - const :uri, ::String - const :range, ::Spoom::LSP::Range + # source://spoom//lib/spoom/visitor.rb#86 + sig { override.params(node: ::Prism::BlockParameterNode).void } + def visit_block_parameter_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end + # source://spoom//lib/spoom/visitor.rb#91 + sig { override.params(node: ::Prism::BlockParametersNode).void } + def visit_block_parameters_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#138 - sig { returns(::String) } - def to_s; end + # source://spoom//lib/spoom/visitor.rb#96 + sig { override.params(node: ::Prism::BreakNode).void } + def visit_break_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#123 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } - def from_json(json); end + # source://spoom//lib/spoom/visitor.rb#101 + sig { override.params(node: ::Prism::CallAndWriteNode).void } + def visit_call_and_write_node(node); end + + # source://spoom//lib/spoom/visitor.rb#106 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://spoom//lib/spoom/visitor.rb#111 + sig { override.params(node: ::Prism::CallOperatorWriteNode).void } + def visit_call_operator_write_node(node); end + + # source://spoom//lib/spoom/visitor.rb#116 + sig { override.params(node: ::Prism::CallOrWriteNode).void } + def visit_call_or_write_node(node); end - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end -end + # source://spoom//lib/spoom/visitor.rb#121 + sig { override.params(node: ::Prism::CallTargetNode).void } + def visit_call_target_node(node); end -# A general message as defined by JSON-RPC. -# -# The language server protocol always uses `"2.0"` as the `jsonrpc` version. -# -# source://spoom//lib/spoom/sorbet/lsp/base.rb#12 -class Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#16 - sig { void } - def initialize; end + # source://spoom//lib/spoom/visitor.rb#126 + sig { override.params(node: ::Prism::CapturePatternNode).void } + def visit_capture_pattern_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#21 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def as_json; end + # source://spoom//lib/spoom/visitor.rb#131 + sig { override.params(node: ::Prism::CaseMatchNode).void } + def visit_case_match_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#29 - sig { params(args: T.untyped).returns(::String) } - def to_json(*args); end -end + # source://spoom//lib/spoom/visitor.rb#136 + sig { override.params(node: ::Prism::CaseNode).void } + def visit_case_node(node); end -# A notification message. -# -# A processed notification message must not send a response back. They work like events. -# -# source://spoom//lib/spoom/sorbet/lsp/base.rb#58 -class Spoom::LSP::Notification < ::Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#68 - sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } - def initialize(method, params); end + # source://spoom//lib/spoom/visitor.rb#11 + sig { override.params(node: ::Prism::Node).void } + def visit_child_nodes(node); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 - sig { returns(::String) } - def method; end + # source://spoom//lib/spoom/visitor.rb#141 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#65 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def params; end -end + # source://spoom//lib/spoom/visitor.rb#146 + sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void } + def visit_class_variable_and_write_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#50 -class Spoom::LSP::Position < ::T::Struct - include ::Spoom::LSP::PrintableSymbol + # source://spoom//lib/spoom/visitor.rb#151 + sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void } + def visit_class_variable_operator_write_node(node); end - const :line, ::Integer - const :char, ::Integer + # source://spoom//lib/spoom/visitor.rb#156 + sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void } + def visit_class_variable_or_write_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#70 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end + # source://spoom//lib/spoom/visitor.rb#161 + sig { override.params(node: ::Prism::ClassVariableReadNode).void } + def visit_class_variable_read_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#75 - sig { returns(::String) } - def to_s; end + # source://spoom//lib/spoom/visitor.rb#166 + sig { override.params(node: ::Prism::ClassVariableTargetNode).void } + def visit_class_variable_target_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#61 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } - def from_json(json); end + # source://spoom//lib/spoom/visitor.rb#171 + sig { override.params(node: ::Prism::ClassVariableWriteNode).void } + def visit_class_variable_write_node(node); end - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end -end + # source://spoom//lib/spoom/visitor.rb#176 + sig { override.params(node: ::Prism::ConstantAndWriteNode).void } + def visit_constant_and_write_node(node); end -# @abstract Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9 -module Spoom::LSP::PrintableSymbol - interface! + # source://spoom//lib/spoom/visitor.rb#181 + sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } + def visit_constant_operator_write_node(node); end - # @abstract - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 - sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end -end + # source://spoom//lib/spoom/visitor.rb#186 + sig { override.params(node: ::Prism::ConstantOrWriteNode).void } + def visit_constant_or_write_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#80 -class Spoom::LSP::Range < ::T::Struct - include ::Spoom::LSP::PrintableSymbol + # source://spoom//lib/spoom/visitor.rb#191 + sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void } + def visit_constant_path_and_write_node(node); end - const :start, ::Spoom::LSP::Position - const :end, ::Spoom::LSP::Position + # source://spoom//lib/spoom/visitor.rb#196 + sig { override.params(node: ::Prism::ConstantPathNode).void } + def visit_constant_path_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#100 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end + # source://spoom//lib/spoom/visitor.rb#201 + sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void } + def visit_constant_path_operator_write_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#107 - sig { returns(::String) } - def to_s; end + # source://spoom//lib/spoom/visitor.rb#206 + sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void } + def visit_constant_path_or_write_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } - def from_json(json); end + # source://spoom//lib/spoom/visitor.rb#211 + sig { override.params(node: ::Prism::ConstantPathTargetNode).void } + def visit_constant_path_target_node(node); end - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end -end + # source://spoom//lib/spoom/visitor.rb#216 + sig { override.params(node: ::Prism::ConstantPathWriteNode).void } + def visit_constant_path_write_node(node); end -# A request message to describe a request between the client and the server. -# -# Every processed request must send a response back to the sender of the request. -# -# source://spoom//lib/spoom/sorbet/lsp/base.rb#37 -class Spoom::LSP::Request < ::Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#47 - sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } - def initialize(id, method, params); end + # source://spoom//lib/spoom/visitor.rb#221 + sig { override.params(node: ::Prism::ConstantReadNode).void } + def visit_constant_read_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#41 - sig { returns(::Integer) } - def id; end + # source://spoom//lib/spoom/visitor.rb#226 + sig { override.params(node: ::Prism::ConstantTargetNode).void } + def visit_constant_target_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/base.rb#44 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def params; end -end + # source://spoom//lib/spoom/visitor.rb#231 + sig { override.params(node: ::Prism::ConstantWriteNode).void } + def visit_constant_write_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#40 -class Spoom::LSP::ResponseError < ::Spoom::LSP::Error - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#63 - sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } - def initialize(code, message, data); end + # source://spoom//lib/spoom/visitor.rb#236 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#44 - sig { returns(::Integer) } - def code; end + # source://spoom//lib/spoom/visitor.rb#241 + sig { override.params(node: ::Prism::DefinedNode).void } + def visit_defined_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#47 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def data; end + # source://spoom//lib/spoom/visitor.rb#246 + sig { override.params(node: ::Prism::ElseNode).void } + def visit_else_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#53 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } - def from_json(json); end - end -end + # source://spoom//lib/spoom/visitor.rb#251 + sig { override.params(node: ::Prism::EmbeddedStatementsNode).void } + def visit_embedded_statements_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#143 -class Spoom::LSP::SignatureHelp < ::T::Struct - include ::Spoom::LSP::PrintableSymbol + # source://spoom//lib/spoom/visitor.rb#256 + sig { override.params(node: ::Prism::EmbeddedVariableNode).void } + def visit_embedded_variable_node(node); end - const :label, T.nilable(::String) - const :doc, ::Object - const :params, T::Array[T.untyped] + # source://spoom//lib/spoom/visitor.rb#261 + sig { override.params(node: ::Prism::EnsureNode).void } + def visit_ensure_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end + # source://spoom//lib/spoom/visitor.rb#266 + sig { override.params(node: ::Prism::FalseNode).void } + def visit_false_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#173 - sig { returns(::String) } - def to_s; end + # source://spoom//lib/spoom/visitor.rb#271 + sig { override.params(node: ::Prism::FindPatternNode).void } + def visit_find_pattern_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } - def from_json(json); end + # source://spoom//lib/spoom/visitor.rb#276 + sig { override.params(node: ::Prism::FlipFlopNode).void } + def visit_flip_flop_node(node); end - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 - def inherited(s); end - end -end + # source://spoom//lib/spoom/visitor.rb#281 + sig { override.params(node: ::Prism::FloatNode).void } + def visit_float_node(node); end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#309 -class Spoom::LSP::SymbolPrinter < ::Spoom::Printer - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#326 - sig do - params( - out: T.any(::IO, ::StringIO), - colors: T::Boolean, - indent_level: ::Integer, - prefix: T.nilable(::String) - ).void - end - def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end + # source://spoom//lib/spoom/visitor.rb#286 + sig { override.params(node: ::Prism::ForNode).void } + def visit_for_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#348 - sig { params(uri: ::String).returns(::String) } - def clean_uri(uri); end + # source://spoom//lib/spoom/visitor.rb#291 + sig { override.params(node: ::Prism::ForwardingArgumentsNode).void } + def visit_forwarding_arguments_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 - sig { returns(T.nilable(::String)) } - def prefix; end + # source://spoom//lib/spoom/visitor.rb#296 + sig { override.params(node: ::Prism::ForwardingParameterNode).void } + def visit_forwarding_parameter_node(node); end - # @return [String, nil] - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 - def prefix=(_arg0); end + # source://spoom//lib/spoom/visitor.rb#301 + sig { override.params(node: ::Prism::ForwardingSuperNode).void } + def visit_forwarding_super_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#356 - sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } - def print_list(objects); end + # source://spoom//lib/spoom/visitor.rb#306 + sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void } + def visit_global_variable_and_write_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#336 - sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } - def print_object(object); end + # source://spoom//lib/spoom/visitor.rb#311 + sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void } + def visit_global_variable_operator_write_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#343 - sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } - def print_objects(objects); end + # source://spoom//lib/spoom/visitor.rb#316 + sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void } + def visit_global_variable_or_write_node(node); end - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 - sig { returns(T::Set[::Integer]) } - def seen; end -end + # source://spoom//lib/spoom/visitor.rb#321 + sig { override.params(node: ::Prism::GlobalVariableReadNode).void } + def visit_global_variable_read_node(node); end + + # source://spoom//lib/spoom/visitor.rb#326 + sig { override.params(node: ::Prism::GlobalVariableTargetNode).void } + def visit_global_variable_target_node(node); end -# source://spoom//lib/spoom/printer.rb#7 -class Spoom::Printer - include ::Spoom::Colorize + # source://spoom//lib/spoom/visitor.rb#331 + sig { override.params(node: ::Prism::GlobalVariableWriteNode).void } + def visit_global_variable_write_node(node); end - # source://spoom//lib/spoom/printer.rb#17 - sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } - def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end + # source://spoom//lib/spoom/visitor.rb#336 + sig { override.params(node: ::Prism::HashNode).void } + def visit_hash_node(node); end - # Colorize `string` with color if `@colors` - # - # source://spoom//lib/spoom/printer.rb#78 - sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } - def colorize(string, *color); end + # source://spoom//lib/spoom/visitor.rb#341 + sig { override.params(node: ::Prism::HashPatternNode).void } + def visit_hash_pattern_node(node); end - # Decrease indent level - # - # source://spoom//lib/spoom/printer.rb#31 - sig { void } - def dedent; end + # source://spoom//lib/spoom/visitor.rb#346 + sig { override.params(node: ::Prism::IfNode).void } + def visit_if_node(node); end - # Increase indent level - # - # source://spoom//lib/spoom/printer.rb#25 - sig { void } - def indent; end + # source://spoom//lib/spoom/visitor.rb#351 + sig { override.params(node: ::Prism::ImaginaryNode).void } + def visit_imaginary_node(node); end - # source://spoom//lib/spoom/printer.rb#14 - sig { returns(T.any(::IO, ::StringIO)) } - def out; end + # source://spoom//lib/spoom/visitor.rb#356 + sig { override.params(node: ::Prism::ImplicitNode).void } + def visit_implicit_node(node); end - # @return [IO, StringIO] - # - # source://spoom//lib/spoom/printer.rb#14 - def out=(_arg0); end + # source://spoom//lib/spoom/visitor.rb#361 + sig { override.params(node: ::Prism::ImplicitRestNode).void } + def visit_implicit_rest_node(node); end - # Print `string` into `out` - # - # source://spoom//lib/spoom/printer.rb#37 - sig { params(string: T.nilable(::String)).void } - def print(string); end + # source://spoom//lib/spoom/visitor.rb#366 + sig { override.params(node: ::Prism::InNode).void } + def visit_in_node(node); end - # Print `string` colored with `color` into `out` - # - # Does not use colors unless `@colors`. - # - # source://spoom//lib/spoom/printer.rb#47 - sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } - def print_colored(string, *color); end + # source://spoom//lib/spoom/visitor.rb#371 + sig { override.params(node: ::Prism::IndexAndWriteNode).void } + def visit_index_and_write_node(node); end - # Print `string` with indent and newline - # - # source://spoom//lib/spoom/printer.rb#62 - sig { params(string: T.nilable(::String)).void } - def printl(string); end + # source://spoom//lib/spoom/visitor.rb#376 + sig { override.params(node: ::Prism::IndexOperatorWriteNode).void } + def visit_index_operator_write_node(node); end - # Print a new line into `out` - # - # source://spoom//lib/spoom/printer.rb#56 - sig { void } - def printn; end + # source://spoom//lib/spoom/visitor.rb#381 + sig { override.params(node: ::Prism::IndexOrWriteNode).void } + def visit_index_or_write_node(node); end - # Print an indent space into `out` - # - # source://spoom//lib/spoom/printer.rb#72 - sig { void } - def printt; end -end + # source://spoom//lib/spoom/visitor.rb#386 + sig { override.params(node: ::Prism::IndexTargetNode).void } + def visit_index_target_node(node); end -# source://spoom//lib/spoom.rb#10 -Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#391 + sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void } + def visit_instance_variable_and_write_node(node); end -# source://spoom//lib/spoom/sorbet/config.rb#5 -module Spoom::Sorbet; end + # source://spoom//lib/spoom/visitor.rb#396 + sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void } + def visit_instance_variable_operator_write_node(node); end -# source://spoom//lib/spoom/sorbet.rb#39 -Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#401 + sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void } + def visit_instance_variable_or_write_node(node); end -# source://spoom//lib/spoom/sorbet.rb#36 -Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#406 + sig { override.params(node: ::Prism::InstanceVariableReadNode).void } + def visit_instance_variable_read_node(node); end -# Parse Sorbet config files -# -# Parses a Sorbet config file: -# -# ```ruby -# config = Spoom::Sorbet::Config.parse_file("sorbet/config") -# puts config.paths # "." -# ``` -# -# Parses a Sorbet config string: -# -# ```ruby -# config = Spoom::Sorbet::Config.parse_string(<<~CONFIG) -# a -# --file=b -# --ignore=c -# CONFIG -# puts config.paths # "a", "b" -# puts config.ignore # "c" -# ``` -# -# source://spoom//lib/spoom/sorbet/config.rb#26 -class Spoom::Sorbet::Config - # source://spoom//lib/spoom/sorbet/config.rb#38 - sig { void } - def initialize; end + # source://spoom//lib/spoom/visitor.rb#411 + sig { override.params(node: ::Prism::InstanceVariableTargetNode).void } + def visit_instance_variable_target_node(node); end - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def allowed_extensions; end + # source://spoom//lib/spoom/visitor.rb#416 + sig { override.params(node: ::Prism::InstanceVariableWriteNode).void } + def visit_instance_variable_write_node(node); end - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def allowed_extensions=(_arg0); end + # source://spoom//lib/spoom/visitor.rb#421 + sig { override.params(node: ::Prism::IntegerNode).void } + def visit_integer_node(node); end - # source://spoom//lib/spoom/sorbet/config.rb#46 - sig { returns(::Spoom::Sorbet::Config) } - def copy; end + # source://spoom//lib/spoom/visitor.rb#426 + sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void } + def visit_interpolated_match_last_line_node(node); end - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def ignore; end + # source://spoom//lib/spoom/visitor.rb#431 + sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void } + def visit_interpolated_regular_expression_node(node); end - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def ignore=(_arg0); end + # source://spoom//lib/spoom/visitor.rb#436 + sig { override.params(node: ::Prism::InterpolatedStringNode).void } + def visit_interpolated_string_node(node); end - # source://spoom//lib/spoom/sorbet/config.rb#35 - sig { returns(T::Boolean) } - def no_stdlib; end + # source://spoom//lib/spoom/visitor.rb#441 + sig { override.params(node: ::Prism::InterpolatedSymbolNode).void } + def visit_interpolated_symbol_node(node); end - # @return [Boolean] - # - # source://spoom//lib/spoom/sorbet/config.rb#35 - def no_stdlib=(_arg0); end + # source://spoom//lib/spoom/visitor.rb#446 + sig { override.params(node: ::Prism::InterpolatedXStringNode).void } + def visit_interpolated_x_string_node(node); end - # Returns self as a string of options that can be passed to Sorbet - # - # Example: - # ~~~rb - # config = Sorbet::Config.new - # config.paths << "/foo" - # config.paths << "/bar" - # config.ignore << "/baz" - # config.allowed_extensions << ".rb" - # - # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" - # ~~~ - # - # source://spoom//lib/spoom/sorbet/config.rb#68 - sig { returns(::String) } - def options_string; end + # source://spoom//lib/spoom/visitor.rb#451 + sig { override.params(node: ::Prism::KeywordHashNode).void } + def visit_keyword_hash_node(node); end - # source://spoom//lib/spoom/sorbet/config.rb#32 - sig { returns(T::Array[::String]) } - def paths; end + # source://spoom//lib/spoom/visitor.rb#456 + sig { override.params(node: ::Prism::KeywordRestParameterNode).void } + def visit_keyword_rest_parameter_node(node); end - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def paths=(_arg0); end + # source://spoom//lib/spoom/visitor.rb#461 + sig { override.params(node: ::Prism::LambdaNode).void } + def visit_lambda_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/config.rb#81 - sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } - def parse_file(sorbet_config_path); end + # source://spoom//lib/spoom/visitor.rb#466 + sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } + def visit_local_variable_and_write_node(node); end - # source://spoom//lib/spoom/sorbet/config.rb#86 - sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } - def parse_string(sorbet_config); end + # source://spoom//lib/spoom/visitor.rb#471 + sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } + def visit_local_variable_operator_write_node(node); end - private + # source://spoom//lib/spoom/visitor.rb#476 + sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } + def visit_local_variable_or_write_node(node); end - # source://spoom//lib/spoom/sorbet/config.rb#150 - sig { params(line: ::String).returns(::String) } - def parse_option(line); end - end -end + # source://spoom//lib/spoom/visitor.rb#481 + sig { override.params(node: ::Prism::LocalVariableReadNode).void } + def visit_local_variable_read_node(node); end -# source://spoom//lib/spoom/sorbet/config.rb#29 -Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array) + # source://spoom//lib/spoom/visitor.rb#486 + sig { override.params(node: ::Prism::LocalVariableTargetNode).void } + def visit_local_variable_target_node(node); end -# source://spoom//lib/spoom/sorbet.rb#14 -class Spoom::Sorbet::Error < ::StandardError - # source://spoom//lib/spoom/sorbet.rb#29 - sig { params(message: ::String, result: ::Spoom::ExecResult).void } - def initialize(message, result); end + # source://spoom//lib/spoom/visitor.rb#491 + sig { override.params(node: ::Prism::LocalVariableWriteNode).void } + def visit_local_variable_write_node(node); end - # source://spoom//lib/spoom/sorbet.rb#21 - sig { returns(::Spoom::ExecResult) } - def result; end -end + # source://spoom//lib/spoom/visitor.rb#496 + sig { override.params(node: ::Prism::MatchLastLineNode).void } + def visit_match_last_line_node(node); end -# source://spoom//lib/spoom/sorbet.rb#17 -class Spoom::Sorbet::Error::Killed < ::Spoom::Sorbet::Error; end + # source://spoom//lib/spoom/visitor.rb#501 + sig { override.params(node: ::Prism::MatchPredicateNode).void } + def visit_match_predicate_node(node); end -# source://spoom//lib/spoom/sorbet.rb#18 -class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end + # source://spoom//lib/spoom/visitor.rb#506 + sig { override.params(node: ::Prism::MatchRequiredNode).void } + def visit_match_required_node(node); end -# source://spoom//lib/spoom/sorbet/errors.rb#6 -module Spoom::Sorbet::Errors - class << self - # source://spoom//lib/spoom/sorbet/errors.rb#13 - sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } - def sort_errors_by_code(errors); end - end -end + # source://spoom//lib/spoom/visitor.rb#511 + sig { override.params(node: ::Prism::MatchWriteNode).void } + def visit_match_write_node(node); end -# source://spoom//lib/spoom/sorbet/errors.rb#7 -Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#516 + sig { override.params(node: ::Prism::MissingNode).void } + def visit_missing_node(node); end -# source://spoom//lib/spoom/sorbet/errors.rb#125 -class Spoom::Sorbet::Errors::Error - include ::Comparable + # source://spoom//lib/spoom/visitor.rb#521 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#151 - sig do - params( - file: T.nilable(::String), - line: T.nilable(::Integer), - message: T.nilable(::String), - code: T.nilable(::Integer), - more: T::Array[::String] - ).void - end - def initialize(file, line, message, code, more = T.unsafe(nil)); end + # source://spoom//lib/spoom/visitor.rb#526 + sig { override.params(node: ::Prism::MultiTargetNode).void } + def visit_multi_target_node(node); end - # By default errors are sorted by location - # - # source://spoom//lib/spoom/sorbet/errors.rb#162 - sig { params(other: T.untyped).returns(::Integer) } - def <=>(other); end + # source://spoom//lib/spoom/visitor.rb#531 + sig { override.params(node: ::Prism::MultiWriteNode).void } + def visit_multi_write_node(node); end - # @return [Integer, nil] - # - # source://spoom//lib/spoom/sorbet/errors.rb#133 - def code; end + # source://spoom//lib/spoom/visitor.rb#536 + sig { override.params(node: ::Prism::NextNode).void } + def visit_next_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#130 - sig { returns(T.nilable(::String)) } - def file; end + # source://spoom//lib/spoom/visitor.rb#541 + sig { override.params(node: ::Prism::NilNode).void } + def visit_nil_node(node); end - # Other files associated with the error - # - # source://spoom//lib/spoom/sorbet/errors.rb#140 - sig { returns(T::Set[::String]) } - def files_from_error_sections; end + # source://spoom//lib/spoom/visitor.rb#546 + sig { override.params(node: ::Prism::NoKeywordsParameterNode).void } + def visit_no_keywords_parameter_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#133 - sig { returns(T.nilable(::Integer)) } - def line; end + # source://spoom//lib/spoom/visitor.rb#551 + sig { override.params(node: ::Prism::NumberedParametersNode).void } + def visit_numbered_parameters_node(node); end - # @return [String, nil] - # - # source://spoom//lib/spoom/sorbet/errors.rb#130 - def message; end + # source://spoom//lib/spoom/visitor.rb#556 + sig { override.params(node: ::Prism::NumberedReferenceReadNode).void } + def visit_numbered_reference_read_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#136 - sig { returns(T::Array[::String]) } - def more; end + # source://spoom//lib/spoom/visitor.rb#561 + sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void } + def visit_optional_keyword_parameter_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#169 - sig { returns(::String) } - def to_s; end -end + # source://spoom//lib/spoom/visitor.rb#566 + sig { override.params(node: ::Prism::OptionalParameterNode).void } + def visit_optional_parameter_node(node); end -# Parse errors from Sorbet output -# -# source://spoom//lib/spoom/sorbet/errors.rb#18 -class Spoom::Sorbet::Errors::Parser - # source://spoom//lib/spoom/sorbet/errors.rb#43 - sig { params(error_url_base: ::String).void } - def initialize(error_url_base: T.unsafe(nil)); end + # source://spoom//lib/spoom/visitor.rb#571 + sig { override.params(node: ::Prism::OrNode).void } + def visit_or_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#50 - sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } - def parse(output); end + # source://spoom//lib/spoom/visitor.rb#576 + sig { override.params(node: ::Prism::ParametersNode).void } + def visit_parameters_node(node); end - private + # source://spoom//lib/spoom/visitor.rb#581 + sig { override.params(node: ::Prism::ParenthesesNode).void } + def visit_parentheses_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#114 - sig { params(line: ::String).void } - def append_error(line); end + # source://spoom//lib/spoom/visitor.rb#586 + sig { override.params(node: ::Prism::PinnedExpressionNode).void } + def visit_pinned_expression_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#106 - sig { void } - def close_error; end + # source://spoom//lib/spoom/visitor.rb#591 + sig { override.params(node: ::Prism::PinnedVariableNode).void } + def visit_pinned_variable_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#73 - sig { params(error_url_base: ::String).returns(::Regexp) } - def error_line_match_regexp(error_url_base); end + # source://spoom//lib/spoom/visitor.rb#596 + sig { override.params(node: ::Prism::PostExecutionNode).void } + def visit_post_execution_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#90 - sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } - def match_error_line(line); end + # source://spoom//lib/spoom/visitor.rb#601 + sig { override.params(node: ::Prism::PreExecutionNode).void } + def visit_pre_execution_node(node); end - # source://spoom//lib/spoom/sorbet/errors.rb#99 - sig { params(error: ::Spoom::Sorbet::Errors::Error).void } - def open_error(error); end + # source://spoom//lib/spoom/visitor.rb#606 + sig { override.params(node: ::Prism::ProgramNode).void } + def visit_program_node(node); end - class << self - # source://spoom//lib/spoom/sorbet/errors.rb#36 - sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } - def parse_string(output, error_url_base: T.unsafe(nil)); end - end -end + # source://spoom//lib/spoom/visitor.rb#611 + sig { override.params(node: ::Prism::RangeNode).void } + def visit_range_node(node); end -# source://spoom//lib/spoom/sorbet/errors.rb#21 -Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) + # source://spoom//lib/spoom/visitor.rb#616 + sig { override.params(node: ::Prism::RationalNode).void } + def visit_rational_node(node); end -# source://spoom//lib/spoom/sorbet.rb#37 -Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#621 + sig { override.params(node: ::Prism::RedoNode).void } + def visit_redo_node(node); end -# source://spoom//lib/spoom/sorbet.rb#38 -Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#626 + sig { override.params(node: ::Prism::RegularExpressionNode).void } + def visit_regular_expression_node(node); end -# source://spoom//lib/spoom/sorbet.rb#41 -Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer) + # source://spoom//lib/spoom/visitor.rb#631 + sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void } + def visit_required_keyword_parameter_node(node); end -# source://spoom//lib/spoom/sorbet/metrics.rb#8 -module Spoom::Sorbet::MetricsParser - class << self - # source://spoom//lib/spoom/sorbet/metrics.rb#15 - sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } - def parse_file(path, prefix = T.unsafe(nil)); end + # source://spoom//lib/spoom/visitor.rb#636 + sig { override.params(node: ::Prism::RequiredParameterNode).void } + def visit_required_parameter_node(node); end - # source://spoom//lib/spoom/sorbet/metrics.rb#25 - sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } - def parse_hash(obj, prefix = T.unsafe(nil)); end + # source://spoom//lib/spoom/visitor.rb#641 + sig { override.params(node: ::Prism::RescueModifierNode).void } + def visit_rescue_modifier_node(node); end - # source://spoom//lib/spoom/sorbet/metrics.rb#20 - sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } - def parse_string(string, prefix = T.unsafe(nil)); end - end -end + # source://spoom//lib/spoom/visitor.rb#646 + sig { override.params(node: ::Prism::RescueNode).void } + def visit_rescue_node(node); end -# source://spoom//lib/spoom/sorbet/metrics.rb#9 -Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#651 + sig { override.params(node: ::Prism::RestParameterNode).void } + def visit_rest_parameter_node(node); end -# source://spoom//lib/spoom/sorbet.rb#42 -Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) + # source://spoom//lib/spoom/visitor.rb#656 + sig { override.params(node: ::Prism::RetryNode).void } + def visit_retry_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#9 -module Spoom::Sorbet::Sigils - class << self - # changes the sigil in the file at the passed path to the specified new strictness - # - # source://spoom//lib/spoom/sorbet/sigils.rb#72 - sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } - def change_sigil_in_file(path, new_strictness); end + # source://spoom//lib/spoom/visitor.rb#661 + sig { override.params(node: ::Prism::ReturnNode).void } + def visit_return_node(node); end - # changes the sigil to have a new strictness in a list of files - # - # source://spoom//lib/spoom/sorbet/sigils.rb#83 - sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } - def change_sigil_in_files(path_list, new_strictness); end + # source://spoom//lib/spoom/visitor.rb#666 + sig { override.params(node: ::Prism::SelfNode).void } + def visit_self_node(node); end - # returns a string containing the strictness of a sigil in a file at the passed path - # * returns nil if no sigil - # - # source://spoom//lib/spoom/sorbet/sigils.rb#63 - sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } - def file_strictness(path); end + # source://spoom//lib/spoom/visitor.rb#671 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end - # returns the full sigil comment string for the passed strictness - # - # source://spoom//lib/spoom/sorbet/sigils.rb#38 - sig { params(strictness: ::String).returns(::String) } - def sigil_string(strictness); end + # source://spoom//lib/spoom/visitor.rb#676 + sig { override.params(node: ::Prism::SourceEncodingNode).void } + def visit_source_encoding_node(node); end - # returns the strictness of a sigil in the passed file content string (nil if no sigil) - # - # source://spoom//lib/spoom/sorbet/sigils.rb#50 - sig { params(content: ::String).returns(T.nilable(::String)) } - def strictness_in_content(content); end + # source://spoom//lib/spoom/visitor.rb#681 + sig { override.params(node: ::Prism::SourceFileNode).void } + def visit_source_file_node(node); end - # returns a string which is the passed content but with the sigil updated to a new strictness - # - # source://spoom//lib/spoom/sorbet/sigils.rb#56 - sig { params(content: ::String, new_strictness: ::String).returns(::String) } - def update_sigil(content, new_strictness); end + # source://spoom//lib/spoom/visitor.rb#686 + sig { override.params(node: ::Prism::SourceLineNode).void } + def visit_source_line_node(node); end - # returns true if the passed string is a valid strictness (else false) - # - # source://spoom//lib/spoom/sorbet/sigils.rb#44 - sig { params(strictness: ::String).returns(T::Boolean) } - def valid_strictness?(strictness); end - end -end + # source://spoom//lib/spoom/visitor.rb#691 + sig { override.params(node: ::Prism::SplatNode).void } + def visit_splat_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#31 -Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) + # source://spoom//lib/spoom/visitor.rb#696 + sig { override.params(node: ::Prism::StatementsNode).void } + def visit_statements_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#13 -Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#701 + sig { override.params(node: ::Prism::StringNode).void } + def visit_string_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#12 -Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#706 + sig { override.params(node: ::Prism::SuperNode).void } + def visit_super_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#17 -Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#711 + sig { override.params(node: ::Prism::SymbolNode).void } + def visit_symbol_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#15 -Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#716 + sig { override.params(node: ::Prism::TrueNode).void } + def visit_true_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#16 -Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#721 + sig { override.params(node: ::Prism::UndefNode).void } + def visit_undef_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#14 -Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) + # source://spoom//lib/spoom/visitor.rb#726 + sig { override.params(node: ::Prism::UnlessNode).void } + def visit_unless_node(node); end -# source://spoom//lib/spoom/sorbet/sigils.rb#19 -Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) + # source://spoom//lib/spoom/visitor.rb#731 + sig { override.params(node: ::Prism::UntilNode).void } + def visit_until_node(node); end -# source://spoom//lib/spoom/timeline.rb#5 -class Spoom::Timeline - # source://spoom//lib/spoom/timeline.rb#9 - sig { params(context: ::Spoom::Context, from: ::Time, to: ::Time).void } - def initialize(context, from, to); end + # source://spoom//lib/spoom/visitor.rb#736 + sig { override.params(node: ::Prism::WhenNode).void } + def visit_when_node(node); end - # Return one commit for each date in `dates` - # - # source://spoom//lib/spoom/timeline.rb#36 - sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } - def commits_for_dates(dates); end + # source://spoom//lib/spoom/visitor.rb#741 + sig { override.params(node: ::Prism::WhileNode).void } + def visit_while_node(node); end - # Return all months between `from` and `to` - # - # source://spoom//lib/spoom/timeline.rb#23 - sig { returns(T::Array[::Time]) } - def months; end + # source://spoom//lib/spoom/visitor.rb#746 + sig { override.params(node: ::Prism::XStringNode).void } + def visit_x_string_node(node); end - # Return one commit for each month between `from` and `to` - # - # source://spoom//lib/spoom/timeline.rb#17 - sig { returns(T::Array[::Spoom::Git::Commit]) } - def ticks; end + # source://spoom//lib/spoom/visitor.rb#751 + sig { override.params(node: ::Prism::YieldNode).void } + def visit_yield_node(node); end end - -# source://spoom//lib/spoom/version.rb#5 -Spoom::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi b/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi deleted file mode 100644 index 97aa2521..00000000 --- a/sorbet/rbi/gems/sprockets-rails@3.4.2.rbi +++ /dev/null @@ -1,1326 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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.3/lib/rails.rb#42 - def app_class; end - - # source://railties/7.1.3.3/lib/rails.rb#42 - def app_class=(_arg0); end - - # source://railties/7.1.3.3/lib/rails.rb#43 - def application; end - - # source://railties/7.1.3.3/lib/rails.rb#41 - def application=(_arg0); end - - # source://railties/7.1.3.3/lib/rails.rb#123 - def autoloaders; end - - # source://railties/7.1.3.3/lib/rails.rb#54 - def backtrace_cleaner; end - - # source://railties/7.1.3.3/lib/rails.rb#42 - def cache; end - - # source://railties/7.1.3.3/lib/rails.rb#42 - def cache=(_arg0); end - - # source://railties/7.1.3.3/lib/rails.rb#50 - def configuration; end - - # source://railties/7.1.3.3/lib/rails/deprecator.rb#4 - def deprecator; end - - # source://railties/7.1.3.3/lib/rails.rb#72 - def env; end - - # source://railties/7.1.3.3/lib/rails.rb#79 - def env=(environment); end - - # source://railties/7.1.3.3/lib/rails.rb#90 - def error; end - - # source://railties/7.1.3.3/lib/rails/gem_version.rb#5 - def gem_version; end - - # source://railties/7.1.3.3/lib/rails.rb#103 - def groups(*groups); end - - # source://railties/7.1.3.3/lib/rails.rb#47 - def initialize!(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails.rb#47 - def initialized?(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails.rb#42 - def logger; end - - # source://railties/7.1.3.3/lib/rails.rb#42 - def logger=(_arg0); end - - # source://railties/7.1.3.3/lib/rails.rb#119 - def public_path; end - - # source://railties/7.1.3.3/lib/rails.rb#63 - def root; end - - # 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.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 - # isn't precompiled and hence won't be available in production. - # - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/railtie.rb#37 - def asset_precompiled?(logical_path); end - - # Returns Sprockets::Environment for app config. - # - # source://sprockets-rails//lib/sprockets/railtie.rb#30 - def assets; end - - # Returns Sprockets::Environment for app config. - # - # source://sprockets-rails//lib/sprockets/railtie.rb#30 - def assets=(_arg0); end - - # Returns Sprockets::Manifest for app config. - # - # source://sprockets-rails//lib/sprockets/railtie.rb#33 - def assets_manifest; end - - # Returns Sprockets::Manifest for app config. - # - # source://sprockets-rails//lib/sprockets/railtie.rb#33 - def assets_manifest=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application.rb#102 - def autoloaders; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#517 - def build_middleware_stack; end - - # source://railties/7.1.3.3/lib/rails/application.rb#437 - def config; end - - # source://railties/7.1.3.3/lib/rails/application.rb#441 - def config=(_arg0); end - - # 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.3/lib/rails/application.rb#357 - def console(&blk); end - - # source://railties/7.1.3.3/lib/rails/application.rb#516 - def credentials; end - - # source://railties/7.1.3.3/lib/rails/application.rb#460 - def credentials=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application.rb#104 - def default_url_options(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails/application.rb#104 - def default_url_options=(arg); end - - # source://railties/7.1.3.3/lib/rails/application.rb#230 - def deprecators; end - - # source://railties/7.1.3.3/lib/rails/application.rb#574 - def eager_load!; end - - # 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.3/lib/rails/application.rb#303 - def env_config; end - - # source://railties/7.1.3.3/lib/rails/application.rb#102 - def executor; end - - # source://railties/7.1.3.3/lib/rails/application.rb#363 - def generators(&blk); end - - # source://railties/7.1.3.3/lib/rails/application.rb#548 - def helpers_paths; end - - # source://railties/7.1.3.3/lib/rails/application.rb#424 - def initialize!(group = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/application.rb#134 - def initialized?; end - - # 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.3/lib/rails/application.rb#431 - def initializers; end - - # source://railties/7.1.3.3/lib/rails/application.rb#374 - def isolate_namespace(mod); end - - # 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.3/lib/rails/application.rb#568 - def load_generators(app = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/application.rb#222 - def message_verifier(verifier_name); end - - # source://railties/7.1.3.3/lib/rails/application.rb#197 - def message_verifiers; end - - # 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 - # boot time, but ensure we cache the list so we don't recompute it for each - # request or test case. - # - # source://sprockets-rails//lib/sprockets/railtie.rb#51 - def precompiled_assets(clear_cache = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/application.rb#338 - def rake_tasks(&block); end - - # source://railties/7.1.3.3/lib/rails/application.rb#153 - def reload_routes!; end - - # source://railties/7.1.3.3/lib/rails/application.rb#102 - def reloader; end - - # source://railties/7.1.3.3/lib/rails/application.rb#102 - def reloaders; end - - # source://railties/7.1.3.3/lib/rails/application.rb#400 - def require_environment!; end - - # source://railties/7.1.3.3/lib/rails/application.rb#405 - def routes_reloader; end - - # source://railties/7.1.3.3/lib/rails/application.rb#138 - def run_load_hooks!; end - - # source://railties/7.1.3.3/lib/rails/application.rb#351 - def runner(&blk); end - - # source://railties/7.1.3.3/lib/rails/application.rb#100 - def sandbox; end - - # source://railties/7.1.3.3/lib/rails/application.rb#100 - def sandbox=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application.rb#100 - def sandbox?; end - - # source://railties/7.1.3.3/lib/rails/application.rb#478 - def secret_key_base; end - - # source://railties/7.1.3.3/lib/rails/application.rb#443 - def secrets; end - - # source://railties/7.1.3.3/lib/rails/application.rb#460 - def secrets=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application.rb#369 - def server(&blk); end - - # source://railties/7.1.3.3/lib/rails/application.rb#544 - def to_app; end - - # source://railties/7.1.3.3/lib/rails/application.rb#412 - def watchable_args; end - - protected - - # source://railties/7.1.3.3/lib/rails/application.rb#647 - def default_middleware_stack; end - - # source://railties/7.1.3.3/lib/rails/application.rb#662 - def ensure_generator_templates_added; end - - # source://railties/7.1.3.3/lib/rails/application.rb#613 - def ordered_railties; end - - # source://railties/7.1.3.3/lib/rails/application.rb#635 - def railties_initializers(current); end - - # source://railties/7.1.3.3/lib/rails/application.rb#602 - def run_console_blocks(app); end - - # source://railties/7.1.3.3/lib/rails/application.rb#592 - def run_generators_blocks(app); end - - # source://railties/7.1.3.3/lib/rails/application.rb#597 - def run_runner_blocks(app); end - - # source://railties/7.1.3.3/lib/rails/application.rb#607 - def run_server_blocks(app); end - - # source://railties/7.1.3.3/lib/rails/application.rb#581 - def run_tasks_blocks(app); end - - # 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.3/lib/rails/application.rb#700 - def build_middleware; end - - # source://railties/7.1.3.3/lib/rails/application.rb#693 - def build_request(env); end - - # source://railties/7.1.3.3/lib/rails/application.rb#704 - def coerce_same_site_protection(protection); end - - # source://railties/7.1.3.3/lib/rails/application.rb#708 - def filter_parameters; end - - # source://railties/7.1.3.3/lib/rails/application.rb#668 - def generate_local_secret; end - - # source://railties/7.1.3.3/lib/rails/application.rb#687 - def secrets_secret_key_base; end - - class << self - # source://railties/7.1.3.3/lib/rails/application.rb#393 - def add_lib_to_load_path!(root); end - - # 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.3/lib/rails/application.rb#88 - def find_root(from); end - - # source://railties/7.1.3.3/lib/rails/application.rb#71 - def inherited(base); end - - # source://railties/7.1.3.3/lib/rails/application.rb#80 - def instance; end - - def new(*_arg0); end - end -end - -# Hack: We need to remove Rails' built in config.assets so we can -# do our own thing. -# -# source://sprockets-rails//lib/sprockets/railtie.rb#21 -class Rails::Application::Configuration < ::Rails::Engine::Configuration - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#30 - def initialize(*_arg0); end - - # 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.3/lib/rails/application/configuration.rb#14 - def add_autoload_paths_to_load_path=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def allow_concurrency; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def allow_concurrency=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#541 - def annotations; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 - def api_only; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#375 - def api_only=(value); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def asset_host; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def asset_host=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def assume_ssl; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def assume_ssl=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def autoflush_log; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def autoflush_log=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#473 - def autoload_lib(ignore:); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#485 - def autoload_lib_once(ignore:); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def beginning_of_week; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def beginning_of_week=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#387 - def broadcast_log_level; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def cache_classes; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def cache_classes=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def cache_store; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def cache_store=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#497 - def colorize_logging; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#501 - def colorize_logging=(val); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def consider_all_requests_local; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def consider_all_requests_local=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def console; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def console=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#546 - def content_security_policy(&block); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def content_security_policy_nonce_directives; end - - # 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.3/lib/rails/application/configuration.rb#14 - def content_security_policy_nonce_generator; end - - # 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.3/lib/rails/application/configuration.rb#14 - def content_security_policy_report_only; end - - # 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.3/lib/rails/application/configuration.rb#14 - def credentials; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def credentials=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#436 - def database_configuration; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#391 - def debug_exception_response_format; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#395 - def debug_exception_response_format=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#563 - def default_log_file; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def disable_sandbox; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def disable_sandbox=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def dom_testing_default_html_version; end - - # 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.3/lib/rails/application/configuration.rb#14 - def eager_load; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def eager_load=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#357 - def enable_dependency_loading; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#362 - def enable_dependency_loading=(value); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#343 - def enable_reloading; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#347 - def enable_reloading=(value); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 - def encoding; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#367 - def encoding=(value); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def exceptions_app; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def exceptions_app=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def file_watcher; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def file_watcher=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def filter_parameters; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def filter_parameters=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def filter_redirect; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def filter_redirect=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def force_ssl; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def force_ssl=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def helpers_paths; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def helpers_paths=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def host_authorization; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def host_authorization=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def hosts; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def hosts=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#575 - def inspect; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#418 - def load_database_yaml; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#92 - def load_defaults(target_version); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 - def loaded_config_version; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def log_file_size; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def log_file_size=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def log_formatter; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def log_formatter=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#28 - def log_level; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#382 - def log_level=(level); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def log_tags; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def log_tags=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def logger; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def logger=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#397 - def paths; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#555 - def permissions_policy(&block); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def precompile_filter_parameters; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def precompile_filter_parameters=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def public_file_server; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def public_file_server=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def railties_order; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def railties_order=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def rake_eager_load; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def rake_eager_load=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def read_encrypted_secrets; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def read_encrypted_secrets=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def relative_url_root; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def relative_url_root=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def reload_classes_only_on_change; end - - # 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.3/lib/rails/application/configuration.rb#339 - def reloading_enabled?; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def require_master_key; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def require_master_key=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def sandbox_by_default; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def sandbox_by_default=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def secret_key_base; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def secret_key_base=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def server_timing; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def server_timing=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def session_options; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def session_options=(_arg0); end - - # 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.3/lib/rails/application/configuration.rb#537 - def session_store?; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def ssl_options; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def ssl_options=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def time_zone; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def time_zone=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def x; end - - # source://railties/7.1.3.3/lib/rails/application/configuration.rb#14 - def x=(_arg0); end - - private - - # 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.3/lib/rails/engine.rb#439 - def initialize; end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks?; end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#963 - def _load_seed_callbacks; end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#951 - def _run_load_seed_callbacks(&block); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#517 - def app; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#534 - def call(env); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#553 - def config; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#491 - def eager_load!; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#529 - def endpoint; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#437 - def engine_name(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#540 - def env_config; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#501 - def helpers; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#512 - def helpers_paths; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#437 - def isolated?(&block); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#453 - def load_console(app = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#477 - def load_generators(app = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#462 - def load_runner(app = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#561 - def load_seed; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#486 - def load_server(app = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#469 - def load_tasks(app = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#436 - def middleware(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#436 - def paths(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#496 - def railties; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#436 - def root(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#546 - def routes(&block); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#677 - def routes?; end - - protected - - # source://railties/7.1.3.3/lib/rails/engine.rb#682 - def run_tasks_blocks(*_arg0); end - - private - - # source://railties/7.1.3.3/lib/rails/engine.rb#714 - def _all_autoload_once_paths; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#718 - def _all_autoload_paths; end - - # 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.3/lib/rails/engine.rb#751 - def build_middleware; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#743 - def build_request(env); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#710 - def default_middleware_stack; end - - # 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.3/lib/rails/engine.rb#694 - def has_migrations?; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#688 - def load_config_initializer(initializer); end - - class << self - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks; end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks=(value); end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#70 - def __callbacks?; end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#955 - def _load_seed_callbacks; end - - # source://activesupport/7.1.3.3/lib/active_support/callbacks.rb#959 - def _load_seed_callbacks=(value); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#354 - def called_from; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#354 - def called_from=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#359 - def eager_load!(*_arg0, **_arg1, &_arg2); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#379 - def endpoint(endpoint = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/railtie.rb#176 - def engine_name(name = T.unsafe(nil)); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#423 - def find(path); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#375 - def find_root(from); end - - # 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.3/lib/rails/engine.rb#361 - def inherited(base); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#385 - def isolate_namespace(mod); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#354 - def isolated; end - - # source://railties/7.1.3.3/lib/rails/engine.rb#354 - def isolated=(_arg0); end - - # source://railties/7.1.3.3/lib/rails/engine.rb#354 - def isolated?; end - end -end - -# source://sprockets-rails//lib/sprockets/rails/version.rb#1 -module Sprockets - extend ::Sprockets::Utils - extend ::Sprockets::URIUtils - extend ::Sprockets::PathUtils - extend ::Sprockets::DigestUtils - extend ::Sprockets::PathDigestUtils - extend ::Sprockets::Dependencies - extend ::Sprockets::Compressing - extend ::Sprockets::Exporting - extend ::Sprockets::Processing - extend ::Sprockets::HTTPUtils - extend ::Sprockets::Transformers - extend ::Sprockets::Mime - extend ::Sprockets::Paths -end - -# source://sprockets-rails//lib/sprockets/rails/version.rb#2 -module Sprockets::Rails; end - -# Resolve assets referenced in CSS `url()` calls and replace them with the digested paths -# -# source://sprockets-rails//lib/sprockets/rails/asset_url_processor.rb#4 -class Sprockets::Rails::AssetUrlProcessor - class << self - # source://sprockets-rails//lib/sprockets/rails/asset_url_processor.rb#6 - def call(input); end - end -end - -# source://sprockets-rails//lib/sprockets/rails/asset_url_processor.rb#5 -Sprockets::Rails::AssetUrlProcessor::REGEX = T.let(T.unsafe(nil), Regexp) - -# source://sprockets-rails//lib/sprockets/rails/context.rb#6 -module Sprockets::Rails::Context - include ::ActionView::Helpers::AssetUrlHelper - include ::ActionView::Helpers::CaptureHelper - include ::ActionView::Helpers::OutputSafetyHelper - include ::ActionView::Helpers::TagHelper - include ::ActionView::Helpers::AssetTagHelper - include GeneratedInstanceMethods - - mixes_in_class_methods GeneratedClassMethods - - # source://sprockets-rails//lib/sprockets/rails/context.rb#16 - def compute_asset_path(path, options = T.unsafe(nil)); end - - class << self - # @private - # - # source://sprockets-rails//lib/sprockets/rails/context.rb#10 - def included(klass); end - end - - module GeneratedClassMethods - def assets_prefix; end - def assets_prefix=(value); end - def assets_prefix?; end - def config; end - def config=(value); end - def config?; end - def digest_assets; end - def digest_assets=(value); end - def digest_assets?; end - end - - module GeneratedInstanceMethods - def assets_prefix; end - def assets_prefix=(value); end - def assets_prefix?; end - def config; end - def config=(value); end - def config?; end - def digest_assets; end - def digest_assets=(value); end - def digest_assets?; end - end -end - -# source://sprockets-rails//lib/sprockets/rails/helper.rb#8 -module Sprockets::Rails::Helper - include ::ActionView::Helpers::AssetUrlHelper - include ::ActionView::Helpers::CaptureHelper - include ::ActionView::Helpers::OutputSafetyHelper - include ::ActionView::Helpers::TagHelper - include ::ActionView::Helpers::AssetTagHelper - include ::Sprockets::Rails::Utils - include GeneratedInstanceMethods - - mixes_in_class_methods GeneratedClassMethods - - # Expand asset path to digested form. - # - # path - String path - # options - Hash options - # - # Returns String path or nil if no asset was found. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#113 - def asset_digest_path(path, options = T.unsafe(nil)); end - - # Experimental: Get integrity for asset path. - # - # path - String path - # options - Hash options - # - # Returns String integrity attribute or nil if no asset was found. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#125 - def asset_integrity(path, options = T.unsafe(nil)); end - - # Writes over the built in ActionView::Helpers::AssetUrlHelper#compute_asset_path - # to use the asset pipeline. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#77 - def compute_asset_path(path, options = T.unsafe(nil)); end - - # Override javascript tag helper to provide debugging support. - # - # Eventually will be deprecated and replaced by source maps. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#136 - def javascript_include_tag(*sources); end - - # Resolve the asset path against the Sprockets manifest or environment. - # Returns nil if it's an asset we don't know about. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#101 - def resolve_asset_path(path, allow_non_precompiled = T.unsafe(nil)); end - - # Override stylesheet tag helper to provide debugging support. - # - # Eventually will be deprecated and replaced by source maps. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#165 - def stylesheet_link_tag(*sources); end - - protected - - # List of resolvers in `config.assets.resolve_with` order. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#250 - def asset_resolver_strategies; end - - # This is awkward: `integrity` is a boolean option indicating whether - # we want to include or omit the subresource integrity hash, but the - # options hash is also passed through as literal tag attributes. - # That means we have to delete the shortcut boolean option so it - # doesn't bleed into the tag attributes, but also check its value if - # it's boolean-ish. - # - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#198 - def compute_integrity?(options); end - - # Append ?body=1 if debug is on and we're on old Sprockets. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#258 - def legacy_debug_path(path, debug); end - - # Internal method to support multifile debugging. Will - # eventually be removed w/ Sprockets 3.x. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#226 - def lookup_debug_asset(path, options = T.unsafe(nil)); end - - # compute_asset_extname is in AV::Helpers::AssetUrlHelper - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#235 - def path_with_extname(path, options); end - - # Enable split asset debugging. Eventually will be deprecated - # and replaced by source maps in Sprockets 3.x. - # - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#218 - def request_debug_assets?; end - - # Try each asset resolver and return the first non-nil result. - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#241 - def resolve_asset; end - - # Only serve integrity metadata for HTTPS requests: - # http://www.w3.org/TR/SRI/#non-secure-contexts-remain-non-secure - # - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#212 - def secure_subresource_integrity_context?; end - - class << self - # @private - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#60 - def extended(obj); end - - # @private - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#43 - def included(klass); end - end - - module GeneratedClassMethods - def assets_environment; end - def assets_environment=(value); end - def assets_environment?; end - def assets_manifest; end - def assets_manifest=(value); end - def assets_manifest?; end - def assets_precompile; end - def assets_precompile=(value); end - def assets_precompile?; end - def assets_prefix; end - def assets_prefix=(value); end - def assets_prefix?; end - def check_precompiled_asset; end - def check_precompiled_asset=(value); end - def check_precompiled_asset?; end - def debug_assets; end - def debug_assets=(value); end - def debug_assets?; end - def digest_assets; end - def digest_assets=(value); end - def digest_assets?; end - def precompiled_asset_checker; end - def precompiled_asset_checker=(value); end - def precompiled_asset_checker?; end - def resolve_assets_with; end - def resolve_assets_with=(value); end - def resolve_assets_with?; end - def unknown_asset_fallback; end - def unknown_asset_fallback=(value); end - def unknown_asset_fallback?; end - end - - module GeneratedInstanceMethods - def assets_environment; end - def assets_environment=(value); end - def assets_environment?; end - def assets_manifest; end - def assets_manifest=(value); end - def assets_manifest?; end - def assets_precompile; end - def assets_precompile=(value); end - def assets_precompile?; end - def assets_prefix; end - def assets_prefix=(value); end - def assets_prefix?; end - def check_precompiled_asset; end - def check_precompiled_asset=(value); end - def check_precompiled_asset?; end - def debug_assets; end - def debug_assets=(value); end - def debug_assets?; end - def digest_assets; end - def digest_assets=(value); end - def digest_assets?; end - def precompiled_asset_checker; end - def precompiled_asset_checker=(value); end - def precompiled_asset_checker?; end - def resolve_assets_with; end - def resolve_assets_with=(value); end - def resolve_assets_with?; end - def unknown_asset_fallback; end - def unknown_asset_fallback=(value); end - def unknown_asset_fallback?; end - end -end - -# source://sprockets-rails//lib/sprockets/rails/helper.rb#9 -class Sprockets::Rails::Helper::AssetNotFound < ::StandardError; end - -# source://sprockets-rails//lib/sprockets/rails/helper.rb#10 -class Sprockets::Rails::Helper::AssetNotPrecompiled < ::StandardError; end - -# source://sprockets-rails//lib/sprockets/rails/helper.rb#12 -class Sprockets::Rails::Helper::AssetNotPrecompiledError < ::Sprockets::Rails::Helper::AssetNotPrecompiled - include ::Sprockets::Rails::Utils - - # @return [AssetNotPrecompiledError] a new instance of AssetNotPrecompiledError - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#14 - def initialize(source); end -end - -# source://sprockets-rails//lib/sprockets/rails/helper.rb#35 -Sprockets::Rails::Helper::VIEW_ACCESSORS = T.let(T.unsafe(nil), Array) - -# Use a separate module since Helper is mixed in and we needn't pollute -# the class namespace with our internals. -# -# source://sprockets-rails//lib/sprockets/rails/helper.rb#269 -module Sprockets::Rails::HelperAssetResolvers - class << self - # source://sprockets-rails//lib/sprockets/rails/helper.rb#270 - def [](name); end - end -end - -# source://sprockets-rails//lib/sprockets/rails/helper.rb#315 -class Sprockets::Rails::HelperAssetResolvers::Environment - # @raise [ArgumentError] - # @return [Environment] a new instance of Environment - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#316 - def initialize(view); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#323 - def asset_path(path, digest, allow_non_precompiled = T.unsafe(nil)); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#336 - def digest_path(path, allow_non_precompiled = T.unsafe(nil)); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#357 - def find_asset(path, options = T.unsafe(nil)); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#347 - def find_debug_asset(path); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#343 - def integrity(path); end - - private - - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#367 - def precompiled?(path); end - - # @raise [Helper::AssetNotPrecompiledError] - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#371 - def raise_unless_precompiled_asset(path); end -end - -# source://sprockets-rails//lib/sprockets/rails/helper.rb#281 -class Sprockets::Rails::HelperAssetResolvers::Manifest - # @raise [ArgumentError] - # @return [Manifest] a new instance of Manifest - # - # source://sprockets-rails//lib/sprockets/rails/helper.rb#282 - def initialize(view); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#287 - def asset_path(path, digest, allow_non_precompiled = T.unsafe(nil)); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#293 - def digest_path(path, allow_non_precompiled = T.unsafe(nil)); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#303 - def find_debug_asset(path); end - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#297 - def integrity(path); end - - private - - # source://sprockets-rails//lib/sprockets/rails/helper.rb#308 - def metadata(path); end -end - -# source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#3 -class Sprockets::Rails::QuietAssets - # @return [QuietAssets] a new instance of QuietAssets - # - # source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#4 - def initialize(app); end - - # source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#9 - def call(env); end -end - -# source://sprockets-rails//lib/sprockets/rails/route_wrapper.rb#3 -module Sprockets::Rails::RouteWrapper - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/rails/route_wrapper.rb#9 - def internal?; end - - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/rails/route_wrapper.rb#5 - def internal_assets_path?; end - - class << self - # @private - # - # source://sprockets-rails//lib/sprockets/rails/route_wrapper.rb#13 - def included(klass); end - end -end - -# Rewrites source mapping urls with the digested paths and protect against semicolon appending with a dummy comment line -# -# source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#4 -class Sprockets::Rails::SourcemappingUrlProcessor - class << self - # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#8 - def call(input); end - - private - - # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#25 - def combine_sourcemap_logical_path(sourcefile:, sourcemap:); end - - # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#47 - def removed_sourcemap_comment(sourcemap_logical_path, filename:, env:); end - - # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#33 - def resolved_sourcemap_comment(sourcemap_logical_path, context:); end - - # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#37 - def sourcemap_asset_path(sourcemap_logical_path, context:); end - end -end - -# source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#5 -Sprockets::Rails::SourcemappingUrlProcessor::REGEX = T.let(T.unsafe(nil), Regexp) - -# source://sprockets-rails//lib/sprockets/rails/utils.rb#5 -module Sprockets::Rails::Utils - # @return [Boolean] - # - # source://sprockets-rails//lib/sprockets/rails/utils.rb#6 - def using_sprockets4?; end -end - -# source://sprockets-rails//lib/sprockets/rails/version.rb#3 -Sprockets::Rails::VERSION = T.let(T.unsafe(nil), String) - -# source://sprockets-rails//lib/sprockets/railtie.rb#70 -class Sprockets::Railtie < ::Rails::Railtie - include ::Sprockets::Rails::Utils - - # source://sprockets-rails//lib/sprockets/railtie.rb#182 - def build_environment(app, initialized = T.unsafe(nil)); end - - class << self - # source://sprockets-rails//lib/sprockets/railtie.rb#213 - def build_manifest(app); end - end -end - -# source://sprockets-rails//lib/sprockets/railtie.rb#88 -Sprockets::Railtie::LOOSE_APP_ASSETS = T.let(T.unsafe(nil), Proc) - -# source://sprockets-rails//lib/sprockets/railtie.rb#73 -class Sprockets::Railtie::ManifestNeededError < ::StandardError - # @return [ManifestNeededError] a new instance of ManifestNeededError - # - # source://sprockets-rails//lib/sprockets/railtie.rb#74 - def initialize; end -end - -# source://sprockets-rails//lib/sprockets/railtie.rb#93 -class Sprockets::Railtie::OrderedOptions < ::ActiveSupport::OrderedOptions - # source://sprockets-rails//lib/sprockets/railtie.rb#94 - def configure(&block); end -end diff --git a/sorbet/rbi/gems/sprockets-rails@3.5.2.rbi b/sorbet/rbi/gems/sprockets-rails@3.5.2.rbi new file mode 100644 index 00000000..c030bc82 --- /dev/null +++ b/sorbet/rbi/gems/sprockets-rails@3.5.2.rbi @@ -0,0 +1,1160 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# 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#18 +module Rails + class << self + # source://railties/7.1.4/lib/rails.rb#42 + def app_class; end + + # source://railties/7.1.4/lib/rails.rb#42 + def app_class=(_arg0); end + + # source://railties/7.1.4/lib/rails.rb#43 + def application; end + + # source://railties/7.1.4/lib/rails.rb#41 + def application=(_arg0); end + + # source://railties/7.1.4/lib/rails.rb#123 + def autoloaders; end + + # source://railties/7.1.4/lib/rails.rb#54 + def backtrace_cleaner; end + + # source://railties/7.1.4/lib/rails.rb#42 + def cache; end + + # source://railties/7.1.4/lib/rails.rb#42 + def cache=(_arg0); end + + # source://railties/7.1.4/lib/rails.rb#50 + def configuration; end + + # source://railties/7.1.4/lib/rails/deprecator.rb#4 + def deprecator; end + + # source://railties/7.1.4/lib/rails.rb#72 + def env; end + + # source://railties/7.1.4/lib/rails.rb#79 + def env=(environment); end + + # source://railties/7.1.4/lib/rails.rb#90 + def error; end + + # source://railties/7.1.4/lib/rails/gem_version.rb#5 + def gem_version; end + + # source://railties/7.1.4/lib/rails.rb#103 + def groups(*groups); end + + # source://railties/7.1.4/lib/rails.rb#47 + def initialize!(*_arg0, **_arg1, &_arg2); end + + # source://railties/7.1.4/lib/rails.rb#47 + def initialized?(*_arg0, **_arg1, &_arg2); end + + # source://railties/7.1.4/lib/rails.rb#42 + def logger; end + + # source://railties/7.1.4/lib/rails.rb#42 + def logger=(_arg0); end + + # source://railties/7.1.4/lib/rails.rb#119 + def public_path; end + + # source://railties/7.1.4/lib/rails.rb#63 + def root; end + + # source://railties/7.1.4/lib/rails/version.rb#7 + def version; end + end +end + +# source://sprockets-rails//lib/sprockets/railtie.rb#19 +class Rails::Application < ::Rails::Engine + # source://railties/7.1.4/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 + # isn't precompiled and hence won't be available in production. + # + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/railtie.rb#38 + def asset_precompiled?(logical_path); end + + # Returns Sprockets::Environment for app config. + # + # source://sprockets-rails//lib/sprockets/railtie.rb#31 + def assets; end + + # Returns Sprockets::Environment for app config. + # + # source://sprockets-rails//lib/sprockets/railtie.rb#31 + def assets=(_arg0); end + + # Returns Sprockets::Manifest for app config. + # + # source://sprockets-rails//lib/sprockets/railtie.rb#34 + def assets_manifest; end + + # Returns Sprockets::Manifest for app config. + # + # source://sprockets-rails//lib/sprockets/railtie.rb#34 + def assets_manifest=(_arg0); end + + # source://railties/7.1.4/lib/rails/application.rb#102 + def autoloaders; end + + # source://railties/7.1.4/lib/rails/engine.rb#517 + def build_middleware_stack; end + + # source://railties/7.1.4/lib/rails/application.rb#437 + def config; end + + # source://railties/7.1.4/lib/rails/application.rb#441 + def config=(_arg0); end + + # source://railties/7.1.4/lib/rails/application.rb#274 + def config_for(name, env: T.unsafe(nil)); end + + # source://railties/7.1.4/lib/rails/application.rb#357 + def console(&blk); end + + # source://railties/7.1.4/lib/rails/application.rb#519 + def credentials; end + + # source://railties/7.1.4/lib/rails/application.rb#460 + def credentials=(_arg0); end + + # source://railties/7.1.4/lib/rails/application.rb#104 + def default_url_options(*_arg0, **_arg1, &_arg2); end + + # source://railties/7.1.4/lib/rails/application.rb#104 + def default_url_options=(arg); end + + # source://railties/7.1.4/lib/rails/application.rb#230 + def deprecators; end + + # source://railties/7.1.4/lib/rails/application.rb#577 + def eager_load!; end + + # source://railties/7.1.4/lib/rails/application.rb#538 + def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end + + # source://railties/7.1.4/lib/rails/application.rb#303 + def env_config; end + + # source://railties/7.1.4/lib/rails/application.rb#102 + def executor; end + + # source://railties/7.1.4/lib/rails/application.rb#363 + def generators(&blk); end + + # source://railties/7.1.4/lib/rails/application.rb#551 + def helpers_paths; end + + # source://railties/7.1.4/lib/rails/application.rb#424 + def initialize!(group = T.unsafe(nil)); end + + # source://railties/7.1.4/lib/rails/application.rb#134 + def initialized?; end + + # source://railties/7.1.4/lib/rails/application.rb#345 + def initializer(name, opts = T.unsafe(nil), &block); end + + # source://railties/7.1.4/lib/rails/application.rb#431 + def initializers; end + + # source://railties/7.1.4/lib/rails/application.rb#374 + def isolate_namespace(mod); end + + # source://railties/7.1.4/lib/rails/application.rb#161 + def key_generator(secret_key_base = T.unsafe(nil)); end + + # source://railties/7.1.4/lib/rails/application.rb#571 + def load_generators(app = T.unsafe(nil)); end + + # source://railties/7.1.4/lib/rails/application.rb#222 + def message_verifier(verifier_name); end + + # source://railties/7.1.4/lib/rails/application.rb#197 + def message_verifiers; end + + # source://railties/7.1.4/lib/rails/application.rb#567 + def migration_railties; end + + # Lazy-load the precompile list so we don't cause asset compilation at app + # boot time, but ensure we cache the list so we don't recompute it for each + # request or test case. + # + # source://sprockets-rails//lib/sprockets/railtie.rb#52 + def precompiled_assets(clear_cache = T.unsafe(nil)); end + + # source://railties/7.1.4/lib/rails/application.rb#338 + def rake_tasks(&block); end + + # source://railties/7.1.4/lib/rails/application.rb#153 + def reload_routes!; end + + # source://railties/7.1.4/lib/rails/application.rb#102 + def reloader; end + + # source://railties/7.1.4/lib/rails/application.rb#102 + def reloaders; end + + # source://railties/7.1.4/lib/rails/application.rb#400 + def require_environment!; end + + # source://railties/7.1.4/lib/rails/application.rb#405 + def routes_reloader; end + + # source://railties/7.1.4/lib/rails/application.rb#138 + def run_load_hooks!; end + + # source://railties/7.1.4/lib/rails/application.rb#351 + def runner(&blk); end + + # source://railties/7.1.4/lib/rails/application.rb#100 + def sandbox; end + + # source://railties/7.1.4/lib/rails/application.rb#100 + def sandbox=(_arg0); end + + # source://railties/7.1.4/lib/rails/application.rb#100 + def sandbox?; end + + # source://railties/7.1.4/lib/rails/application.rb#478 + def secret_key_base; end + + # source://railties/7.1.4/lib/rails/application.rb#443 + def secrets; end + + # source://railties/7.1.4/lib/rails/application.rb#460 + def secrets=(_arg0); end + + # source://railties/7.1.4/lib/rails/application.rb#369 + def server(&blk); end + + # source://railties/7.1.4/lib/rails/application.rb#547 + def to_app; end + + # source://railties/7.1.4/lib/rails/application.rb#412 + def watchable_args; end + + protected + + # source://railties/7.1.4/lib/rails/application.rb#650 + def default_middleware_stack; end + + # source://railties/7.1.4/lib/rails/application.rb#665 + def ensure_generator_templates_added; end + + # source://railties/7.1.4/lib/rails/application.rb#616 + def ordered_railties; end + + # source://railties/7.1.4/lib/rails/application.rb#638 + def railties_initializers(current); end + + # source://railties/7.1.4/lib/rails/application.rb#605 + def run_console_blocks(app); end + + # source://railties/7.1.4/lib/rails/application.rb#595 + def run_generators_blocks(app); end + + # source://railties/7.1.4/lib/rails/application.rb#600 + def run_runner_blocks(app); end + + # source://railties/7.1.4/lib/rails/application.rb#610 + def run_server_blocks(app); end + + # source://railties/7.1.4/lib/rails/application.rb#584 + def run_tasks_blocks(app); end + + # source://railties/7.1.4/lib/rails/application.rb#655 + def validate_secret_key_base(secret_key_base); end + + private + + # source://railties/7.1.4/lib/rails/application.rb#703 + def build_middleware; end + + # source://railties/7.1.4/lib/rails/application.rb#696 + def build_request(env); end + + # source://railties/7.1.4/lib/rails/application.rb#707 + def coerce_same_site_protection(protection); end + + # source://railties/7.1.4/lib/rails/application.rb#711 + def filter_parameters; end + + # source://railties/7.1.4/lib/rails/application.rb#671 + def generate_local_secret; end + + # source://railties/7.1.4/lib/rails/application.rb#690 + def secrets_secret_key_base; end + + class << self + # source://railties/7.1.4/lib/rails/application.rb#393 + def add_lib_to_load_path!(root); end + + # source://railties/7.1.4/lib/rails/application.rb#84 + def create(initial_variable_values = T.unsafe(nil), &block); end + + # source://railties/7.1.4/lib/rails/application.rb#88 + def find_root(from); end + + # source://railties/7.1.4/lib/rails/application.rb#71 + def inherited(base); end + + # source://railties/7.1.4/lib/rails/application.rb#80 + def instance; end + + def new(*_arg0); end + end +end + +# Hack: We need to remove Rails' built in config.assets so we can +# do our own thing. +# +# source://sprockets-rails//lib/sprockets/railtie.rb#22 +class Rails::Application::Configuration < ::Rails::Engine::Configuration + # source://railties/7.1.4/lib/rails/application/configuration.rb#30 + def initialize(*_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def add_autoload_paths_to_load_path; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def add_autoload_paths_to_load_path=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def allow_concurrency; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def allow_concurrency=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#541 + def annotations; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#28 + def api_only; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#375 + def api_only=(value); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def asset_host; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def asset_host=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def assume_ssl; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def assume_ssl=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def autoflush_log; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def autoflush_log=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#473 + def autoload_lib(ignore:); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#485 + def autoload_lib_once(ignore:); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def beginning_of_week; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def beginning_of_week=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#387 + def broadcast_log_level; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def cache_classes; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def cache_classes=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def cache_store; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def cache_store=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#497 + def colorize_logging; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#501 + def colorize_logging=(val); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def consider_all_requests_local; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def consider_all_requests_local=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def console; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def console=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#546 + def content_security_policy(&block); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def content_security_policy_nonce_directives; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def content_security_policy_nonce_directives=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def content_security_policy_nonce_generator; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def content_security_policy_nonce_generator=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def content_security_policy_report_only; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def content_security_policy_report_only=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def credentials; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def credentials=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#436 + def database_configuration; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#391 + def debug_exception_response_format; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#395 + def debug_exception_response_format=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#563 + def default_log_file; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def disable_sandbox; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def disable_sandbox=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def dom_testing_default_html_version; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def dom_testing_default_html_version=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def eager_load; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def eager_load=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#357 + def enable_dependency_loading; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#362 + def enable_dependency_loading=(value); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#343 + def enable_reloading; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#347 + def enable_reloading=(value); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#28 + def encoding; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#367 + def encoding=(value); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def exceptions_app; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def exceptions_app=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def file_watcher; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def file_watcher=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def filter_parameters; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def filter_parameters=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def filter_redirect; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def filter_redirect=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def force_ssl; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def force_ssl=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def helpers_paths; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def helpers_paths=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def host_authorization; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def host_authorization=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def hosts; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def hosts=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#575 + def inspect; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#418 + def load_database_yaml; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#92 + def load_defaults(target_version); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#28 + def loaded_config_version; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def log_file_size; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def log_file_size=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def log_formatter; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def log_formatter=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#28 + def log_level; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#382 + def log_level=(level); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def log_tags; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def log_tags=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def logger; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def logger=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#397 + def paths; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#555 + def permissions_policy(&block); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def precompile_filter_parameters; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def precompile_filter_parameters=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def public_file_server; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def public_file_server=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def railties_order; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def railties_order=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def rake_eager_load; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def rake_eager_load=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def read_encrypted_secrets; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def read_encrypted_secrets=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def relative_url_root; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def relative_url_root=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def reload_classes_only_on_change; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def reload_classes_only_on_change=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#339 + def reloading_enabled?; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def require_master_key; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def require_master_key=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def sandbox_by_default; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def sandbox_by_default=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def secret_key_base; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def secret_key_base=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def server_timing; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def server_timing=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def session_options; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def session_options=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#521 + def session_store(new_session_store = T.unsafe(nil), **options); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#537 + def session_store?; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def ssl_options; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def ssl_options=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def time_zone; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def time_zone=(_arg0); end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def x; end + + # source://railties/7.1.4/lib/rails/application/configuration.rb#14 + def x=(_arg0); end + + private + + # source://railties/7.1.4/lib/rails/application/configuration.rb#600 + def credentials_defaults; end +end + +# source://sprockets-rails//lib/sprockets/rails/version.rb#1 +module Sprockets + extend ::Sprockets::Utils + extend ::Sprockets::URIUtils + extend ::Sprockets::PathUtils + extend ::Sprockets::DigestUtils + extend ::Sprockets::PathDigestUtils + extend ::Sprockets::Dependencies + extend ::Sprockets::Compressing + extend ::Sprockets::Exporting + extend ::Sprockets::Processing + extend ::Sprockets::HTTPUtils + extend ::Sprockets::Transformers + extend ::Sprockets::Mime + extend ::Sprockets::Paths +end + +# source://sprockets-rails//lib/sprockets/rails/version.rb#2 +module Sprockets::Rails + class << self + # source://sprockets-rails//lib/sprockets/rails/deprecator.rb#7 + def deprecator; end + end +end + +# Resolve assets referenced in CSS `url()` calls and replace them with the digested paths +# +# source://sprockets-rails//lib/sprockets/rails/asset_url_processor.rb#4 +class Sprockets::Rails::AssetUrlProcessor + class << self + # source://sprockets-rails//lib/sprockets/rails/asset_url_processor.rb#6 + def call(input); end + end +end + +# source://sprockets-rails//lib/sprockets/rails/asset_url_processor.rb#5 +Sprockets::Rails::AssetUrlProcessor::REGEX = T.let(T.unsafe(nil), Regexp) + +# source://sprockets-rails//lib/sprockets/rails/context.rb#6 +module Sprockets::Rails::Context + include ::ActionView::Helpers::AssetUrlHelper + include ::ActionView::Helpers::CaptureHelper + include ::ActionView::Helpers::OutputSafetyHelper + include ::ActionView::Helpers::TagHelper + include ::ActionView::Helpers::AssetTagHelper + include GeneratedInstanceMethods + + mixes_in_class_methods GeneratedClassMethods + + # source://sprockets-rails//lib/sprockets/rails/context.rb#16 + def compute_asset_path(path, options = T.unsafe(nil)); end + + class << self + # @private + # + # source://sprockets-rails//lib/sprockets/rails/context.rb#10 + def included(klass); end + end + + module GeneratedClassMethods + def assets_prefix; end + def assets_prefix=(value); end + def assets_prefix?; end + def config; end + def config=(value); end + def config?; end + def digest_assets; end + def digest_assets=(value); end + def digest_assets?; end + end + + module GeneratedInstanceMethods + def assets_prefix; end + def assets_prefix=(value); end + def assets_prefix?; end + def config; end + def config=(value); end + def config?; end + def digest_assets; end + def digest_assets=(value); end + def digest_assets?; end + end +end + +# source://sprockets-rails//lib/sprockets/rails/helper.rb#8 +module Sprockets::Rails::Helper + include ::ActionView::Helpers::AssetUrlHelper + include ::ActionView::Helpers::CaptureHelper + include ::ActionView::Helpers::OutputSafetyHelper + include ::ActionView::Helpers::TagHelper + include ::ActionView::Helpers::AssetTagHelper + include ::Sprockets::Rails::Utils + include GeneratedInstanceMethods + + mixes_in_class_methods GeneratedClassMethods + + # Expand asset path to digested form. + # + # path - String path + # options - Hash options + # + # Returns String path or nil if no asset was found. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#112 + def asset_digest_path(path, options = T.unsafe(nil)); end + + # Experimental: Get integrity for asset path. + # + # path - String path + # options - Hash options + # + # Returns String integrity attribute or nil if no asset was found. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#124 + def asset_integrity(path, options = T.unsafe(nil)); end + + # Writes over the built in ActionView::Helpers::AssetUrlHelper#compute_asset_path + # to use the asset pipeline. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#77 + def compute_asset_path(path, options = T.unsafe(nil)); end + + # Override javascript tag helper to provide debugging support. + # + # Eventually will be deprecated and replaced by source maps. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#135 + def javascript_include_tag(*sources); end + + # Resolve the asset path against the Sprockets manifest or environment. + # Returns nil if it's an asset we don't know about. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#100 + def resolve_asset_path(path, allow_non_precompiled = T.unsafe(nil)); end + + # Override stylesheet tag helper to provide debugging support. + # + # Eventually will be deprecated and replaced by source maps. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#164 + def stylesheet_link_tag(*sources); end + + protected + + # List of resolvers in `config.assets.resolve_with` order. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#249 + def asset_resolver_strategies; end + + # This is awkward: `integrity` is a boolean option indicating whether + # we want to include or omit the subresource integrity hash, but the + # options hash is also passed through as literal tag attributes. + # That means we have to delete the shortcut boolean option so it + # doesn't bleed into the tag attributes, but also check its value if + # it's boolean-ish. + # + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#197 + def compute_integrity?(options); end + + # Append ?body=1 if debug is on and we're on old Sprockets. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#257 + def legacy_debug_path(path, debug); end + + # Internal method to support multifile debugging. Will + # eventually be removed w/ Sprockets 3.x. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#225 + def lookup_debug_asset(path, options = T.unsafe(nil)); end + + # compute_asset_extname is in AV::Helpers::AssetUrlHelper + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#234 + def path_with_extname(path, options); end + + # Enable split asset debugging. Eventually will be deprecated + # and replaced by source maps in Sprockets 3.x. + # + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#217 + def request_debug_assets?; end + + # Try each asset resolver and return the first non-nil result. + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#240 + def resolve_asset; end + + # Only serve integrity metadata for HTTPS requests: + # http://www.w3.org/TR/SRI/#non-secure-contexts-remain-non-secure + # + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#211 + def secure_subresource_integrity_context?; end + + class << self + # @private + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#60 + def extended(obj); end + + # @private + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#43 + def included(klass); end + end + + module GeneratedClassMethods + def assets_environment; end + def assets_environment=(value); end + def assets_environment?; end + def assets_manifest; end + def assets_manifest=(value); end + def assets_manifest?; end + def assets_precompile; end + def assets_precompile=(value); end + def assets_precompile?; end + def assets_prefix; end + def assets_prefix=(value); end + def assets_prefix?; end + def check_precompiled_asset; end + def check_precompiled_asset=(value); end + def check_precompiled_asset?; end + def debug_assets; end + def debug_assets=(value); end + def debug_assets?; end + def digest_assets; end + def digest_assets=(value); end + def digest_assets?; end + def precompiled_asset_checker; end + def precompiled_asset_checker=(value); end + def precompiled_asset_checker?; end + def resolve_assets_with; end + def resolve_assets_with=(value); end + def resolve_assets_with?; end + def unknown_asset_fallback; end + def unknown_asset_fallback=(value); end + def unknown_asset_fallback?; end + end + + module GeneratedInstanceMethods + def assets_environment; end + def assets_environment=(value); end + def assets_environment?; end + def assets_manifest; end + def assets_manifest=(value); end + def assets_manifest?; end + def assets_precompile; end + def assets_precompile=(value); end + def assets_precompile?; end + def assets_prefix; end + def assets_prefix=(value); end + def assets_prefix?; end + def check_precompiled_asset; end + def check_precompiled_asset=(value); end + def check_precompiled_asset?; end + def debug_assets; end + def debug_assets=(value); end + def debug_assets?; end + def digest_assets; end + def digest_assets=(value); end + def digest_assets?; end + def precompiled_asset_checker; end + def precompiled_asset_checker=(value); end + def precompiled_asset_checker?; end + def resolve_assets_with; end + def resolve_assets_with=(value); end + def resolve_assets_with?; end + def unknown_asset_fallback; end + def unknown_asset_fallback=(value); end + def unknown_asset_fallback?; end + end +end + +# source://sprockets-rails//lib/sprockets/rails/helper.rb#9 +class Sprockets::Rails::Helper::AssetNotFound < ::StandardError; end + +# source://sprockets-rails//lib/sprockets/rails/helper.rb#10 +class Sprockets::Rails::Helper::AssetNotPrecompiled < ::StandardError; end + +# source://sprockets-rails//lib/sprockets/rails/helper.rb#12 +class Sprockets::Rails::Helper::AssetNotPrecompiledError < ::Sprockets::Rails::Helper::AssetNotPrecompiled + include ::Sprockets::Rails::Utils + + # @return [AssetNotPrecompiledError] a new instance of AssetNotPrecompiledError + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#14 + def initialize(source); end +end + +# source://sprockets-rails//lib/sprockets/rails/helper.rb#35 +Sprockets::Rails::Helper::VIEW_ACCESSORS = T.let(T.unsafe(nil), Array) + +# Use a separate module since Helper is mixed in and we needn't pollute +# the class namespace with our internals. +# +# source://sprockets-rails//lib/sprockets/rails/helper.rb#268 +module Sprockets::Rails::HelperAssetResolvers + class << self + # source://sprockets-rails//lib/sprockets/rails/helper.rb#269 + def [](name); end + end +end + +# source://sprockets-rails//lib/sprockets/rails/helper.rb#314 +class Sprockets::Rails::HelperAssetResolvers::Environment + # @raise [ArgumentError] + # @return [Environment] a new instance of Environment + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#315 + def initialize(view); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#322 + def asset_path(path, digest, allow_non_precompiled = T.unsafe(nil)); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#335 + def digest_path(path, allow_non_precompiled = T.unsafe(nil)); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#356 + def find_asset(path, options = T.unsafe(nil)); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#346 + def find_debug_asset(path); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#342 + def integrity(path); end + + private + + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#366 + def precompiled?(path); end + + # @raise [Helper::AssetNotPrecompiledError] + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#370 + def raise_unless_precompiled_asset(path); end +end + +# source://sprockets-rails//lib/sprockets/rails/helper.rb#280 +class Sprockets::Rails::HelperAssetResolvers::Manifest + # @raise [ArgumentError] + # @return [Manifest] a new instance of Manifest + # + # source://sprockets-rails//lib/sprockets/rails/helper.rb#281 + def initialize(view); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#286 + def asset_path(path, digest, allow_non_precompiled = T.unsafe(nil)); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#292 + def digest_path(path, allow_non_precompiled = T.unsafe(nil)); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#302 + def find_debug_asset(path); end + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#296 + def integrity(path); end + + private + + # source://sprockets-rails//lib/sprockets/rails/helper.rb#307 + def metadata(path); end +end + +# source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#3 +class Sprockets::Rails::LoggerSilenceError < ::StandardError; end + +# source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#5 +class Sprockets::Rails::QuietAssets + # @return [QuietAssets] a new instance of QuietAssets + # + # source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#6 + def initialize(app); end + + # source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#11 + def call(env); end + + private + + # @raise [LoggerSilenceError] + # + # source://sprockets-rails//lib/sprockets/rails/quiet_assets.rb#22 + def raise_logger_silence_error; end +end + +# source://sprockets-rails//lib/sprockets/rails/route_wrapper.rb#3 +module Sprockets::Rails::RouteWrapper + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/rails/route_wrapper.rb#8 + def internal?; end + + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/rails/route_wrapper.rb#4 + def internal_assets_path?; end +end + +# Rewrites source mapping urls with the digested paths and protect against semicolon appending with a dummy comment line +# +# source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#4 +class Sprockets::Rails::SourcemappingUrlProcessor + class << self + # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#8 + def call(input); end + + private + + # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#25 + def combine_sourcemap_logical_path(sourcefile:, sourcemap:); end + + # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#47 + def removed_sourcemap_comment(sourcemap_logical_path, filename:, env:); end + + # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#33 + def resolved_sourcemap_comment(sourcemap_logical_path, context:); end + + # source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#37 + def sourcemap_asset_path(sourcemap_logical_path, context:); end + end +end + +# source://sprockets-rails//lib/sprockets/rails/sourcemapping_url_processor.rb#5 +Sprockets::Rails::SourcemappingUrlProcessor::REGEX = T.let(T.unsafe(nil), Regexp) + +# source://sprockets-rails//lib/sprockets/rails/utils.rb#5 +module Sprockets::Rails::Utils + # @return [Boolean] + # + # source://sprockets-rails//lib/sprockets/rails/utils.rb#6 + def using_sprockets4?; end +end + +# source://sprockets-rails//lib/sprockets/rails/version.rb#3 +Sprockets::Rails::VERSION = T.let(T.unsafe(nil), String) + +# source://sprockets-rails//lib/sprockets/railtie.rb#60 +class Sprockets::Railtie < ::Rails::Railtie + include ::Sprockets::Rails::Utils + + # source://sprockets-rails//lib/sprockets/railtie.rb#182 + def build_environment(app, initialized = T.unsafe(nil)); end + + class << self + # source://sprockets-rails//lib/sprockets/railtie.rb#213 + def build_manifest(app); end + end +end + +# source://sprockets-rails//lib/sprockets/railtie.rb#78 +Sprockets::Railtie::LOOSE_APP_ASSETS = T.let(T.unsafe(nil), Proc) + +# source://sprockets-rails//lib/sprockets/railtie.rb#63 +class Sprockets::Railtie::ManifestNeededError < ::StandardError + # @return [ManifestNeededError] a new instance of ManifestNeededError + # + # source://sprockets-rails//lib/sprockets/railtie.rb#64 + def initialize; end +end + +# source://sprockets-rails//lib/sprockets/railtie.rb#83 +class Sprockets::Railtie::OrderedOptions < ::ActiveSupport::OrderedOptions + # source://sprockets-rails//lib/sprockets/railtie.rb#84 + def configure(&block); end +end diff --git a/sorbet/rbi/gems/sprockets@4.2.1.rbi b/sorbet/rbi/gems/sprockets@4.2.1.rbi index 6f5f380f..37673156 100644 --- a/sorbet/rbi/gems/sprockets@4.2.1.rbi +++ b/sorbet/rbi/gems/sprockets@4.2.1.rbi @@ -273,9 +273,6 @@ end # source://sprockets//lib/sprockets/autoload.rb#3 module Sprockets::Autoload; end -# source://sprockets//lib/sprockets/autoload/sassc.rb#6 -Sprockets::Autoload::SassC = SassC - # source://sprockets//lib/sprockets/babel_processor.rb#8 class Sprockets::BabelProcessor # @return [BabelProcessor] a new instance of BabelProcessor @@ -3903,7 +3900,7 @@ end class Sprockets::SassCompressor # @return [SassCompressor] a new instance of SassCompressor # - # source://sassc-rails/2.1.2/lib/sassc/rails/compressor.rb#7 + # source://sprockets//lib/sprockets/sass_compressor.rb#39 def initialize(options = T.unsafe(nil)); end # Returns the value of attribute cache_key. @@ -3911,11 +3908,8 @@ class Sprockets::SassCompressor # source://sprockets//lib/sprockets/sass_compressor.rb#37 def cache_key; end - # source://sassc-rails/2.1.2/lib/sassc/rails/compressor.rb#17 - def call(*args); end - - # source://sassc-rails/2.1.2/lib/sassc/rails/compressor.rb#17 - def evaluate(*args); end + # source://sprockets//lib/sprockets/sass_compressor.rb#49 + def call(input); end class << self # source://sprockets//lib/sprockets/sass_compressor.rb#33 @@ -3936,254 +3930,6 @@ end # source://sprockets//lib/sprockets/sass_compressor.rb#20 Sprockets::SassCompressor::VERSION = T.let(T.unsafe(nil), String) -# Deprecated: Use Sprockets::SassProcessor::Functions instead. -# -# source://sprockets//lib/sprockets/sass_processor.rb#312 -Sprockets::SassFunctions = Sprockets::SassProcessor::Functions - -# Processor engine class for the SASS/SCSS compiler. Depends on the `sass` gem. -# -# For more information see: -# -# https://github.com/sass/sass -# https://github.com/rails/sass-rails -# -# source://sprockets//lib/sprockets/sass_processor.rb#15 -class Sprockets::SassProcessor - # Public: Initialize template with custom options. - # - # options - Hash - # cache_version - String custom cache version. Used to force a cache - # change after code changes are made to Sass Functions. - # - # @return [SassProcessor] a new instance of SassProcessor - # - # source://sprockets//lib/sprockets/sass_processor.rb#47 - def initialize(options = T.unsafe(nil), &block); end - - # Returns the value of attribute cache_key. - # - # source://sprockets//lib/sprockets/sass_processor.rb#39 - def cache_key; end - - # source://sprockets//lib/sprockets/sass_processor.rb#59 - def call(input); end - - private - - # Public: Build the cache store to be used by the Sass engine. - # - # input - the input hash. - # version - the cache version. - # - # Override this method if you need to use a different cache than the - # Sprockets cache. - # - # source://sprockets//lib/sprockets/sass_processor.rb#105 - def build_cache_store(input, version); end - - # source://sprockets//lib/sprockets/sass_processor.rb#109 - def merge_options(options); end - - class << self - # source://sprockets//lib/sprockets/sass_processor.rb#35 - def cache_key; end - - # source://sprockets//lib/sprockets/sass_processor.rb#31 - def call(input); end - - # Public: Return singleton instance with default options. - # - # Returns SassProcessor object. - # - # source://sprockets//lib/sprockets/sass_processor.rb#27 - def instance; end - - # Internal: Defines default sass syntax to use. Exposed so the ScssProcessor - # may override it. - # - # source://sprockets//lib/sprockets/sass_processor.rb#20 - def syntax; end - end -end - -# Public: Functions injected into Sass context during Sprockets evaluation. -# -# This module may be extended to add global functionality to all Sprockets -# Sass environments. Though, scoping your functions to just your environment -# is preferred. -# -# module Sprockets::SassProcessor::Functions -# def asset_path(path, options = {}) -# end -# end -# -# source://sprockets//lib/sprockets/sass_processor.rb#131 -module Sprockets::SassProcessor::Functions - # Public: Generate a data URI for asset path. - # - # path - Sass::Script::String logical asset path - # - # Returns a Sass::Script::String. - # - # source://sassc-rails/2.1.2/lib/sassc/rails/functions.rb#7 - def asset_data_url(path); end - - # Public: Generate a url for asset path. - # - # Default implementation is deprecated. Currently defaults to - # Context#asset_path. - # - # Will raise NotImplementedError in the future. Users should provide their - # own base implementation. - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#141 - def asset_path(path, options = T.unsafe(nil)); end - - # Public: Generate a asset url() link. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#157 - def asset_url(path, options = T.unsafe(nil)); end - - # Public: Generate url for audio path. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#202 - def audio_path(path); end - - # Public: Generate a audio url() link. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#211 - def audio_url(path); end - - # Public: Generate url for font path. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#220 - def font_path(path); end - - # Public: Generate a font url() link. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#229 - def font_url(path); end - - # Public: Generate url for image path. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#166 - def image_path(path); end - - # Public: Generate a image url() link. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#175 - def image_url(path); end - - # Public: Generate url for javascript path. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#238 - def javascript_path(path); end - - # Public: Generate a javascript url() link. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#247 - def javascript_url(path); end - - # Public: Generate url for stylesheet path. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#256 - def stylesheet_path(path); end - - # Public: Generate a stylesheet url() link. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#265 - def stylesheet_url(path); end - - # Public: Generate url for video path. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#184 - def video_path(path); end - - # Public: Generate a video url() link. - # - # path - Sass::Script::String URL path - # - # Returns a Sass::Script::String. - # - # source://sprockets//lib/sprockets/sass_processor.rb#193 - def video_url(path); end - - protected - - # Deprecated: Get the Context instance. Use APIs on - # sprockets_environment or sprockets_dependencies directly. - # - # Returns a Context instance. - # - # source://sprockets//lib/sprockets/sass_processor.rb#298 - def sprockets_context; end - - # Public: Mutatable set of dependencies. - # - # Returns a Set. - # - # source://sprockets//lib/sprockets/sass_processor.rb#290 - def sprockets_dependencies; end - - # Public: The Environment. - # - # Returns Sprockets::Environment. - # - # source://sprockets//lib/sprockets/sass_processor.rb#283 - def sprockets_environment; end -end - # Public: Sass CSS minifier. # # To accept the default options @@ -4448,14 +4194,6 @@ module Sprockets::SasscProcessor::Functions def sprockets_environment; end end -# source://sprockets//lib/sprockets/sass_processor.rb#305 -class Sprockets::ScssProcessor < ::Sprockets::SassProcessor - class << self - # source://sprockets//lib/sprockets/sass_processor.rb#306 - def syntax; end - end -end - # source://sprockets//lib/sprockets/sassc_processor.rb#292 class Sprockets::ScsscProcessor < ::Sprockets::SasscProcessor class << self diff --git a/sorbet/rbi/gems/standard-custom@1.0.2.rbi b/sorbet/rbi/gems/standard-custom@1.0.2.rbi new file mode 100644 index 00000000..92187abb --- /dev/null +++ b/sorbet/rbi/gems/standard-custom@1.0.2.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `standard-custom` gem. +# Please instead update this file by running `bin/tapioca gem standard-custom`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/standard-performance@1.4.0.rbi b/sorbet/rbi/gems/standard-performance@1.4.0.rbi new file mode 100644 index 00000000..075414b1 --- /dev/null +++ b/sorbet/rbi/gems/standard-performance@1.4.0.rbi @@ -0,0 +1,9 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `standard-performance` gem. +# Please instead update this file by running `bin/tapioca gem standard-performance`. + + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/standard@1.40.0.rbi b/sorbet/rbi/gems/standard@1.40.0.rbi new file mode 100644 index 00000000..1367babc --- /dev/null +++ b/sorbet/rbi/gems/standard@1.40.0.rbi @@ -0,0 +1,929 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `standard` gem. +# Please instead update this file by running `bin/tapioca gem standard`. + + +# source://standard//lib/standard/rubocop/ext.rb#1 +module RuboCop; end + +# source://standard//lib/standard/rubocop/ext.rb#17 +class RuboCop::CommentConfig + # @return [CommentConfig] a new instance of CommentConfig + # + # source://standard//lib/standard/rubocop/ext.rb#20 + def initialize(processed_source); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#63 + def comment_only_line?(line_number); end + + # source://forwardable/1.3.3/forwardable.rb#231 + def config(*args, **_arg1, &block); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#51 + def cop_disabled_line_ranges; end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#39 + def cop_enabled_at_line?(cop, line_number); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#47 + def cop_opted_in?(cop); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#55 + def extra_enabled_comments; end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#30 + def processed_source; end + + # source://forwardable/1.3.3/forwardable.rb#231 + def registry(*args, **_arg1, &block); end + + private + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#96 + def analyze; end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#124 + def analyze_cop(analysis, directive); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#144 + def analyze_disabled(analysis, directive); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#155 + def analyze_rest(analysis, directive); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#135 + def analyze_single_line(analysis, directive); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#164 + def cop_line_ranges(analysis); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#170 + def each_directive; end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#69 + def extra_enabled_comments_with_names(extras:, names:); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#190 + def handle_enable_all(directive, names, extras); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#204 + def handle_switch(directive, names, extras); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#115 + def inject_disabled_cops_directives(analyses); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#183 + def non_comment_token_line_numbers; end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#34 + def old_initialize(processed_source); end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#83 + def opt_in_cops; end + + # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#179 + def qualified_cop_name(cop_name); end +end + +module RuboCop::Cop; end +module RuboCop::Cop::Lint; end + +# source://standard//lib/standard/rubocop/ext.rb#2 +class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base + # source://standard//lib/standard/rubocop/ext.rb#4 + def message(_); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55 + def on_if(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55 + def on_until(node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55 + def on_while(node); end + + private + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#82 + def allowed_construct?(asgn_node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#86 + def conditional_assignment?(asgn_node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#90 + def skip_children?(asgn_node); end + + # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#96 + def traverse_node(node, &block); end +end + +# source://standard//lib/standard/rubocop/ext.rb#9 +class RuboCop::DirectiveComment + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#32 + def initialize(comment, cop_registry = T.unsafe(nil)); end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#82 + def all_cops?; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30 + def comment; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#87 + def cop_names; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30 + def cop_registry; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30 + def cops; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#93 + def department_names; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#107 + def directive_count; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#62 + def disabled?; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#77 + def disabled_all?; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#67 + def enabled?; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#72 + def enabled_all?; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#98 + def in_directive_department?(cop); end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#112 + def line_number; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#44 + def match?(cop_names); end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#57 + def match_captures; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30 + def mode; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#103 + def overridden_by_department?(cop); end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#48 + def range; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#39 + def single_line?; end + + private + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#133 + def all_cop_names; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#137 + def cop_names_for_department(department); end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#129 + def department?(name); end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#142 + def exclude_lint_department_cops(cops); end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#122 + def parsed_cop_names; end + + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#118 + def splitted_cops_string; end + + class << self + # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#26 + def before_comment(line); end + end +end + +# source://standard//lib/standard/rubocop/ext.rb#11 +RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://standard//lib/standard.rb#4 +module Standard; end + +# source://standard//lib/standard/builds_config.rb#8 +class Standard::BuildsConfig + # @return [BuildsConfig] a new instance of BuildsConfig + # + # source://standard//lib/standard/builds_config.rb#9 + def initialize; end + + # source://standard//lib/standard/builds_config.rb#16 + def call(argv, search_path = T.unsafe(nil)); end +end + +# source://standard//lib/standard/cli.rb#5 +class Standard::Cli + # @return [Cli] a new instance of Cli + # + # source://standard//lib/standard/cli.rb#6 + def initialize(argv); end + + # source://standard//lib/standard/cli.rb#12 + def run; end +end + +# source://standard//lib/standard/builds_config.rb#6 +class Standard::Config < ::Struct + # Returns the value of attribute paths + # + # @return [Object] the current value of paths + def paths; end + + # Sets the attribute paths + # + # @param value [Object] the value to set the attribute paths to. + # @return [Object] the newly set value + def paths=(_); end + + # Returns the value of attribute rubocop_config_store + # + # @return [Object] the current value of rubocop_config_store + def rubocop_config_store; end + + # Sets the attribute rubocop_config_store + # + # @param value [Object] the value to set the attribute rubocop_config_store to. + # @return [Object] the newly set value + def rubocop_config_store=(_); end + + # Returns the value of attribute rubocop_options + # + # @return [Object] the current value of rubocop_options + def rubocop_options; end + + # Sets the attribute rubocop_options + # + # @param value [Object] the value to set the attribute rubocop_options to. + # @return [Object] the newly set value + def rubocop_options=(_); end + + # Returns the value of attribute runner + # + # @return [Object] the current value of runner + def runner; end + + # Sets the attribute runner + # + # @param value [Object] the value to set the attribute runner to. + # @return [Object] the newly set value + def runner=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#3 +class Standard::CreatesConfigStore + # @return [CreatesConfigStore] a new instance of CreatesConfigStore + # + # source://standard//lib/standard/creates_config_store.rb#10 + def initialize; end + + # source://standard//lib/standard/creates_config_store.rb#18 + def call(standard_config); end +end + +# source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#4 +class Standard::CreatesConfigStore::AssignsRubocopYaml + # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#5 + def call(config_store, standard_config); end +end + +# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#2 +class Standard::CreatesConfigStore::ConfiguresIgnoredPaths + # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#14 + def call(options_config, standard_config); end + + private + + # @return [Boolean] + # + # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#41 + def absolute?(path); end + + # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#33 + def absolutify(config_root, path); end + + # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#28 + def ignored_patterns(standard_config); end +end + +# source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#3 +Standard::CreatesConfigStore::ConfiguresIgnoredPaths::DEFAULT_IGNORES = T.let(T.unsafe(nil), Array) + +# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#5 +class Standard::CreatesConfigStore::MergesUserConfigExtensions + # @return [MergesUserConfigExtensions] a new instance of MergesUserConfigExtensions + # + # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#24 + def initialize; end + + # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#28 + def call(options_config, standard_config); end +end + +# source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#6 +class Standard::CreatesConfigStore::MergesUserConfigExtensions::ExtendConfigPlugin < ::LintRoller::Plugin + # @return [ExtendConfigPlugin] a new instance of ExtendConfigPlugin + # + # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#7 + def initialize(path); end + + # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#11 + def about; end + + # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#15 + def rules(context); end +end + +# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#2 +class Standard::CreatesConfigStore::SetsTargetRubyVersion + # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#12 + def call(options_config, standard_config); end + + private + + # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#20 + def min_target_ruby_version_supported(desired_target_ruby_version); end + + # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#31 + def normalize_version(version); end +end + +# This is minimum version that Rubocop can parse, not the minimum +# version it can run on (e.g. TargetRubyVersion). See the following +# for more details: +# +# https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version +# +# https://github.com/rubocop/rubocop/blob/master/lib/rubocop/target_ruby.rb +# +# source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#10 +Standard::CreatesConfigStore::SetsTargetRubyVersion::MIN_TARGET_RUBY_VERSION = T.let(T.unsafe(nil), String) + +# source://standard//lib/standard/file_finder.rb#4 +class Standard::FileFinder + # source://standard//lib/standard/file_finder.rb#5 + def call(name, search_path); end +end + +# source://standard//lib/standard/formatter.rb#5 +class Standard::Formatter < ::RuboCop::Formatter::BaseFormatter + # source://standard//lib/standard/formatter.rb#18 + def file_finished(file, offenses); end + + # source://standard//lib/standard/formatter.rb#37 + def finished(_inspected_files); end + + # source://standard//lib/standard/formatter.rb#10 + def started(_target_files); end + + # source://standard//lib/standard/formatter.rb#30 + def track_stats(offenses); end + + private + + # source://standard//lib/standard/formatter.rb#106 + def determine_run_mode; end + + # source://standard//lib/standard/formatter.rb#114 + def fixable_error_message(command); end + + # source://standard//lib/standard/formatter.rb#92 + def path_to(file); end + + # source://standard//lib/standard/formatter.rb#96 + def potential_fix_mode; end + + # source://standard//lib/standard/formatter.rb#52 + def print_fix_suggestion; end + + # source://standard//lib/standard/formatter.rb#44 + def print_header_once; end + + # source://standard//lib/standard/formatter.rb#82 + def print_todo_congratulations; end + + # source://standard//lib/standard/formatter.rb#66 + def print_todo_warning; end +end + +# source://standard//lib/standard/formatter.rb#6 +Standard::Formatter::STANDARD_GREETING = T.let(T.unsafe(nil), String) + +# source://standard//lib/standard/loads_runner.rb#9 +class Standard::LoadsRunner + # source://standard//lib/standard/loads_runner.rb#19 + def call(command); end +end + +# source://standard//lib/standard/loads_runner.rb#10 +Standard::LoadsRunner::RUNNERS = T.let(T.unsafe(nil), Hash) + +# source://standard//lib/standard/loads_yaml_config.rb#7 +class Standard::LoadsYamlConfig + # source://standard//lib/standard/loads_yaml_config.rb#8 + def call(standard_yaml_path, todo_yaml_path); end + + private + + # source://standard//lib/standard/loads_yaml_config.rb#57 + def arrayify(object); end + + # source://standard//lib/standard/loads_yaml_config.rb#25 + def construct_config(yaml_path, standard_yaml, todo_path, todo_yaml); end + + # source://standard//lib/standard/loads_yaml_config.rb#47 + def expand_ignore_config(ignore_config); end + + # source://standard//lib/standard/loads_yaml_config.rb#17 + def load_standard_yaml(yaml_path); end + + # source://standard//lib/standard/loads_yaml_config.rb#41 + def normalized_ruby_version(version); end +end + +# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#2 +module Standard::Lsp; end + +# source://standard//lib/standard/lsp/diagnostic.rb#3 +class Standard::Lsp::Diagnostic + # @return [Diagnostic] a new instance of Diagnostic + # + # source://standard//lib/standard/lsp/diagnostic.rb#16 + def initialize(document_encoding, offense, uri, cop_class); end + + # source://standard//lib/standard/lsp/diagnostic.rb#23 + def to_lsp_code_actions; end + + # source://standard//lib/standard/lsp/diagnostic.rb#32 + def to_lsp_diagnostic(config); end + + private + + # source://standard//lib/standard/lsp/diagnostic.rb#77 + def autocorrect_action; end + + # source://standard//lib/standard/lsp/diagnostic.rb#69 + def code_description(config); end + + # @return [Boolean] + # + # source://standard//lib/standard/lsp/diagnostic.rb#163 + def correctable?; end + + # source://standard//lib/standard/lsp/diagnostic.rb#108 + def disable_line_action; end + + # source://standard//lib/standard/lsp/diagnostic.rb#167 + def ensure_uri_scheme(uri); end + + # source://standard//lib/standard/lsp/diagnostic.rb#148 + def length_of_line(line); end + + # source://standard//lib/standard/lsp/diagnostic.rb#126 + def line_disable_comment; end + + # source://standard//lib/standard/lsp/diagnostic.rb#59 + def message; end + + # source://standard//lib/standard/lsp/diagnostic.rb#96 + def offense_replacements; end + + # source://standard//lib/standard/lsp/diagnostic.rb#65 + def severity; end +end + +# source://standard//lib/standard/lsp/diagnostic.rb#4 +Standard::Lsp::Diagnostic::Constant = LanguageServer::Protocol::Constant + +# source://standard//lib/standard/lsp/diagnostic.rb#5 +Standard::Lsp::Diagnostic::Interface = LanguageServer::Protocol::Interface + +# source://standard//lib/standard/lsp/diagnostic.rb#7 +Standard::Lsp::Diagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash) + +# source://standard//lib/standard/lsp/kills_server.rb#3 +class Standard::Lsp::KillsServer + # source://standard//lib/standard/lsp/kills_server.rb#4 + def call(&blk); end +end + +# source://standard//lib/standard/lsp/logger.rb#3 +class Standard::Lsp::Logger + # @return [Logger] a new instance of Logger + # + # source://standard//lib/standard/lsp/logger.rb#4 + def initialize(prefix: T.unsafe(nil)); end + + # source://standard//lib/standard/lsp/logger.rb#9 + def puts(message); end + + # source://standard//lib/standard/lsp/logger.rb#13 + def puts_once(message); end +end + +# source://standard//lib/standard/lsp/server.rb#8 +Standard::Lsp::Proto = LanguageServer::Protocol + +# source://standard//lib/standard/lsp/routes.rb#5 +class Standard::Lsp::Routes + # @return [Routes] a new instance of Routes + # + # source://standard//lib/standard/lsp/routes.rb#6 + def initialize(writer, logger, standardizer); end + + # source://standard//lib/standard/lsp/routes.rb#19 + def for(name); end + + # source://standard//lib/standard/lsp/routes.rb#26 + def handle_initialize(request); end + + # source://standard//lib/standard/lsp/routes.rb#38 + def handle_initialized(request); end + + # source://standard//lib/standard/lsp/routes.rb#129 + def handle_method_missing(request); end + + # source://standard//lib/standard/lsp/routes.rb#42 + def handle_shutdown(request); end + + # source://standard//lib/standard/lsp/routes.rb#121 + def handle_unsupported_method(request, method = T.unsafe(nil)); end + + private + + # source://standard//lib/standard/lsp/routes.rb#162 + def diagnostic(file_uri, text); end + + # source://standard//lib/standard/lsp/routes.rb#141 + def format_file(file_uri); end + + # source://standard//lib/standard/lsp/routes.rb#137 + def uri_to_path(uri); end + + class << self + # source://standard//lib/standard/lsp/routes.rb#15 + def handle(name, &block); end + end +end + +# source://standard//lib/standard/lsp/routes.rb#75 +Standard::Lsp::Routes::CONFIGURATION_FILE_PATTERNS = T.let(T.unsafe(nil), Array) + +# source://standard//lib/standard/lsp/server.rb#9 +Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity + +# source://standard//lib/standard/lsp/server.rb#11 +class Standard::Lsp::Server + # @return [Server] a new instance of Server + # + # source://standard//lib/standard/lsp/server.rb#12 + def initialize(config); end + + # source://standard//lib/standard/lsp/server.rb#20 + def start; end +end + +# source://standard//lib/standard/lsp/standardizer.rb#6 +class Standard::Lsp::Standardizer + # @return [Standardizer] a new instance of Standardizer + # + # source://standard//lib/standard/lsp/standardizer.rb#7 + def initialize(config); end + + # source://standard//lib/standard/lsp/standardizer.rb#15 + def format(path, text); end + + # source://standard//lib/standard/lsp/standardizer.rb#20 + def offenses(path, text, document_encoding = T.unsafe(nil)); end +end + +# Originally lifted from: +# https://github.com/Shopify/ruby-lsp/blob/8d4c17efce4e8ecc8e7c557ab2981db6b22c0b6d/lib/ruby_lsp/requests/support/rubocop_runner.rb#L20 +# +# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#5 +class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner + # @return [StdinRubocopRunner] a new instance of StdinRubocopRunner + # + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#21 + def initialize(config); end + + # Returns the value of attribute config_for_working_directory. + # + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10 + def config_for_working_directory; end + + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#52 + def formatted_source; end + + # Returns the value of attribute offenses. + # + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8 + def offenses; end + + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#35 + def run(path, contents); end + + private + + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#58 + def file_finished(_file, offenses); end +end + +# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#6 +class Standard::Lsp::StdinRubocopRunner::ConfigurationError < ::StandardError; end + +# source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#12 +Standard::Lsp::StdinRubocopRunner::DEFAULT_RUBOCOP_OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://standard//lib/standard/merges_settings.rb#4 +class Standard::MergesSettings + # source://standard//lib/standard/merges_settings.rb#7 + def call(argv, standard_yaml); end + + private + + # source://standard//lib/standard/merges_settings.rb#42 + def determine_command(argv); end + + # source://standard//lib/standard/merges_settings.rb#58 + def merge(standard_yaml, standard_cli_flags, rubocop_cli_flags); end + + # source://standard//lib/standard/merges_settings.rb#27 + def parse_standard_argv(argv); end + + # source://standard//lib/standard/merges_settings.rb#21 + def separate_argv(argv); end + + # source://standard//lib/standard/merges_settings.rb#69 + def without_banned(rubocop_cli_flags); end +end + +# source://standard//lib/standard/merges_settings.rb#5 +class Standard::MergesSettings::Settings < ::Struct + # Returns the value of attribute options + # + # @return [Object] the current value of options + def options; end + + # Sets the attribute options + # + # @param value [Object] the value to set the attribute options to. + # @return [Object] the newly set value + def options=(_); end + + # Returns the value of attribute paths + # + # @return [Object] the current value of paths + def paths; end + + # Sets the attribute paths + # + # @param value [Object] the value to set the attribute paths to. + # @return [Object] the newly set value + def paths=(_); end + + # Returns the value of attribute runner + # + # @return [Object] the current value of runner + def runner; end + + # Sets the attribute runner + # + # @param value [Object] the value to set the attribute runner to. + # @return [Object] the newly set value + def runner=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://standard//lib/standard/plugin.rb#2 +module Standard::Plugin; end + +# source://standard//lib/standard/plugin/combines_plugin_configs.rb#3 +class Standard::Plugin::CombinesPluginConfigs + # @return [CombinesPluginConfigs] a new instance of CombinesPluginConfigs + # + # source://standard//lib/standard/plugin/combines_plugin_configs.rb#4 + def initialize; end + + # source://standard//lib/standard/plugin/combines_plugin_configs.rb#9 + def call(options_config, standard_config); end +end + +# source://standard//lib/standard/plugin/creates_runner_context.rb#3 +class Standard::Plugin::CreatesRunnerContext + # source://standard//lib/standard/plugin/creates_runner_context.rb#4 + def call(standard_config); end +end + +# source://standard//lib/standard/plugin/determines_class_constant.rb#3 +class Standard::Plugin::DeterminesClassConstant + # source://standard//lib/standard/plugin/determines_class_constant.rb#4 + def call(plugin_name, user_config); end + + private + + # source://standard//lib/standard/plugin/determines_class_constant.rb#41 + def require_plugin(require_path); end +end + +# source://standard//lib/standard/plugin/initializes_plugins.rb#3 +class Standard::Plugin::InitializesPlugins + # @return [InitializesPlugins] a new instance of InitializesPlugins + # + # source://standard//lib/standard/plugin/initializes_plugins.rb#4 + def initialize; end + + # source://standard//lib/standard/plugin/initializes_plugins.rb#9 + def call(plugins); end +end + +# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#3 +class Standard::Plugin::MergesPluginsIntoRubocopConfig + # @return [MergesPluginsIntoRubocopConfig] a new instance of MergesPluginsIntoRubocopConfig + # + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#24 + def initialize; end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#28 + def call(options_config, standard_config, plugins, permit_merging:); end + + private + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#126 + def all_cop_keys_previously_configured_by_plugins(options_config, permit_merging:); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#152 + def blank_rubocop_config(example_config); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#37 + def combine_rubocop_configs(options_config, runner_context, plugins, permit_merging:); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#56 + def config_for_plugin(plugin, runner_context); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#96 + def delete_already_configured_keys!(configured_keys, next_config, dont_delete_keys: T.unsafe(nil)); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#156 + def except(hash_or_config, keys); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#134 + def fake_out_rubocop_default_configuration(options_config); end + + # Always deletes nil entries, always overwrites arrays + # This is a simplified version of rubocop's ConfigLoader#merge: + # https://github.com/rubocop/rubocop/blob/v1.48.1/lib/rubocop/config_loader_resolver.rb#L98 + # + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#163 + def merge(old_hash, new_hash); end + + # This is how we ensure "first-in wins": plugins can override AllCops settings that are + # set by RuboCop's default configuration, but once a plugin sets an AllCop setting, they + # have exclusive first-in-wins rights to that setting. + # + # The one exception to this are array fields, because we don't want to + # overwrite the AllCops defaults but rather munge the arrays (`existing | + # new`) to allow plugins to add to the array, for example Include and + # Exclude paths and patterns. + # + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#77 + def merge_all_cop_settings(existing_all_cops, new_all_cops, already_configured_keys); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#104 + def merge_config_into_all_cops!(options_config, plugin_config); end + + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#110 + def merge_config_into_standard!(options_config, plugin_config, permit_merging:); end + + # Avoid a warning that would otherwise be emitted by any plugin that set TargetRailsVersion + # because it's not a default AllCops key specified in RuboCop's embedded default config. + # + # See: https://github.com/rubocop/rubocop/pull/11833 + # + # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#146 + def set_target_rails_version_on_all_cops_because_its_technically_not_allowed!(options_config); end +end + +# AllCops keys that standard does not allow to be set by plugins +# +# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#10 +Standard::Plugin::MergesPluginsIntoRubocopConfig::DISALLOWED_ALLCOPS_KEYS = T.let(T.unsafe(nil), Array) + +# Blank configuration object to merge plugins into, with only the following spared: +# - AllCops keys set to avoid warnings about unknown properties +# - Lint/Syntax must be set to avoid a nil error when verifying inherited configs +# +# source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#7 +Standard::Plugin::MergesPluginsIntoRubocopConfig::MANDATORY_RUBOCOP_CONFIG_KEYS = T.let(T.unsafe(nil), Array) + +# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#3 +class Standard::Plugin::StandardizesConfiguredPlugins + # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#19 + def call(plugins); end + + private + + # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#25 + def normalize_config_shape(plugins); end +end + +# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#10 +Standard::Plugin::StandardizesConfiguredPlugins::BUILT_INS = T.let(T.unsafe(nil), Array) + +# source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#4 +Standard::Plugin::StandardizesConfiguredPlugins::DEFAULT_PLUGIN_CONFIG = T.let(T.unsafe(nil), Hash) + +# source://standard//lib/standard/railtie.rb#4 +class Standard::Railtie < ::Rails::Railtie; end + +# source://standard//lib/standard/resolves_yaml_option.rb#4 +class Standard::ResolvesYamlOption + # source://standard//lib/standard/resolves_yaml_option.rb#5 + def call(argv, search_path, option_name, default_file); end + + private + + # source://standard//lib/standard/resolves_yaml_option.rb#22 + def argv_value_for(argv, option_name); end + + # source://standard//lib/standard/resolves_yaml_option.rb#11 + def search_argv(argv, option_name); end +end + +# source://standard//lib/standard/runners/rubocop.rb#4 +module Standard::Runners; end + +# source://standard//lib/standard/runners/genignore.rb#7 +class Standard::Runners::Genignore + # source://standard//lib/standard/runners/genignore.rb#8 + def call(config); end +end + +# source://standard//lib/standard/runners/help.rb#5 +class Standard::Runners::Help + # source://standard//lib/standard/runners/help.rb#6 + def call(config); end +end + +# source://standard//lib/standard/runners/lsp.rb#5 +class Standard::Runners::Lsp + # source://standard//lib/standard/runners/lsp.rb#6 + def call(config); end +end + +# source://standard//lib/standard/runners/rubocop.rb#5 +class Standard::Runners::Rubocop + # source://standard//lib/standard/runners/rubocop.rb#6 + def call(config); end + + private + + # This is a workaround for an issue with how `parallel` and `stdin` + # interact when invoked in this way. See: + # https://github.com/standardrb/standard/issues/536 + # + # source://standard//lib/standard/runners/rubocop.rb#23 + def without_parallelizing_in_stdin_mode(options); end +end + +# source://standard//lib/standard/runners/verbose_version.rb#5 +class Standard::Runners::VerboseVersion + # source://standard//lib/standard/runners/verbose_version.rb#6 + def call(config); end +end + +# source://standard//lib/standard/runners/version.rb#3 +class Standard::Runners::Version + # source://standard//lib/standard/runners/version.rb#4 + def call(config); end +end + +# source://standard//lib/standard/version.rb#2 +Standard::VERSION = T.let(T.unsafe(nil), Gem::Version) diff --git a/sorbet/rbi/gems/stringio@3.1.0.rbi b/sorbet/rbi/gems/stringio@3.1.1.rbi similarity index 100% rename from sorbet/rbi/gems/stringio@3.1.0.rbi rename to sorbet/rbi/gems/stringio@3.1.1.rbi diff --git a/sorbet/rbi/gems/tapioca@0.14.2.rbi b/sorbet/rbi/gems/tapioca@0.16.1.rbi similarity index 89% rename from sorbet/rbi/gems/tapioca@0.14.2.rbi rename to sorbet/rbi/gems/tapioca@0.16.1.rbi index bb08c334..9490b684 100644 --- a/sorbet/rbi/gems/tapioca@0.14.2.rbi +++ b/sorbet/rbi/gems/tapioca@0.16.1.rbi @@ -55,7 +55,7 @@ module RBI; end # source://tapioca//lib/tapioca/rbi_ext/model.rb#5 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi/0.1.13/lib/rbi/model.rb#119 + # source://rbi/0.1.14/lib/rbi/model.rb#121 sig do params( loc: T.nilable(::RBI::Loc), @@ -65,19 +65,15 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi/0.1.13/lib/rbi/model.rb#126 + # source://rbi/0.1.14/lib/rbi/model.rb#128 sig { params(node: ::RBI::Node).void } def <<(node); end - # 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.13/lib/rbi/rewriters/add_sig_templates.rb#66 + # source://rbi/0.1.14/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.13/lib/rbi/rewriters/annotate.rb#49 + # source://rbi/0.1.14/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 @@ -103,31 +99,19 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(name: ::String).void } def create_include(name); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#89 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#90 sig do params( name: ::String, parameters: T::Array[::RBI::TypedParam], - return_type: ::String, + return_type: T.nilable(::String), class_method: T::Boolean, visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - 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//lib/tapioca/rbi_ext/model.rb#113 - sig do - params( - name: ::String, - sigs: T::Array[::RBI::Sig], - parameters: T::Array[::RBI::Param], - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Method).void) ).void 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 + 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), &block); end # source://tapioca//lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } @@ -141,16 +125,6 @@ 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#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 params( @@ -164,27 +138,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.13/lib/rbi/rewriters/deannotate.rb#41 + # source://rbi/0.1.14/lib/rbi/rewriters/deannotate.rb#41 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi/0.1.13/lib/rbi/model.rb#132 + # source://rbi/0.1.14/lib/rbi/model.rb#134 sig { returns(T::Boolean) } def empty?; end - # source://rbi/0.1.13/lib/rbi/rewriters/filter_versions.rb#118 + # source://rbi/0.1.14/lib/rbi/rewriters/filter_versions.rb#118 sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # source://rbi/0.1.13/lib/rbi/rewriters/group_nodes.rb#38 + # source://rbi/0.1.14/lib/rbi/rewriters/group_nodes.rb#81 sig { void } def group_nodes!; end - # source://rbi/0.1.13/lib/rbi/index.rb#68 + # source://rbi/0.1.14/lib/rbi/index.rb#68 sig { returns(::RBI::Index) } def index; end - # source://rbi/0.1.13/lib/rbi/rewriters/merge_trees.rb#324 + # source://rbi/0.1.14/lib/rbi/rewriters/merge_trees.rb#324 sig do params( other: ::RBI::Tree, @@ -195,44 +169,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.13/lib/rbi/rewriters/nest_non_public_methods.rb#46 + # source://rbi/0.1.14/lib/rbi/rewriters/nest_non_public_methods.rb#46 sig { void } def nest_non_public_methods!; end - # source://rbi/0.1.13/lib/rbi/rewriters/nest_singleton_methods.rb#36 + # source://rbi/0.1.14/lib/rbi/rewriters/nest_singleton_methods.rb#36 sig { void } def nest_singleton_methods!; end - # source://rbi/0.1.13/lib/rbi/model.rb#110 + # source://rbi/0.1.14/lib/rbi/model.rb#112 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi/0.1.13/lib/rbi/printer.rb#233 - sig { override.returns(T::Boolean) } - def oneline?; end + # source://rbi/0.1.14/lib/rbi/rewriters/attr_to_methods.rb#53 + sig { void } + def replace_attributes_with_methods!; end - # source://rbi/0.1.13/lib/rbi/rewriters/sort_nodes.rb#119 + # source://rbi/0.1.14/lib/rbi/rewriters/sort_nodes.rb#119 sig { void } def sort_nodes!; end private - # source://tapioca//lib/tapioca/rbi_ext/model.rb#150 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#123 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#145 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#118 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://tapioca//lib/tapioca/rbi_ext/model.rb#160 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#133 class RBI::TypedParam < ::T::Struct const :param, ::RBI::Param const :type, ::String class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 def inherited(s); end end end @@ -401,7 +375,7 @@ end # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#4 module Tapioca class << self - # source://tapioca//lib/tapioca.rb#19 + # source://tapioca//lib/tapioca.rb#20 sig do type_parameters(:Result) .params( @@ -412,7 +386,7 @@ module Tapioca end end -# source://tapioca//lib/tapioca.rb#37 +# source://tapioca//lib/tapioca.rb#39 Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#5 @@ -452,13 +426,13 @@ module Tapioca::BundlerExt::AutoRequireHook end end -# source://tapioca//lib/tapioca.rb#60 +# source://tapioca//lib/tapioca.rb#62 Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#59 +# source://tapioca//lib/tapioca.rb#61 Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#58 +# source://tapioca//lib/tapioca.rb#60 Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/cli.rb#5 @@ -467,24 +441,24 @@ class Tapioca::Cli < ::Thor include ::Tapioca::ConfigHelper include ::Tapioca::EnvHelper - # source://tapioca//lib/tapioca/cli.rb#361 + # source://tapioca//lib/tapioca/cli.rb#366 def __print_version; end - # source://tapioca//lib/tapioca/cli.rb#343 + # source://tapioca//lib/tapioca/cli.rb#348 def annotations; end - # source://tapioca//lib/tapioca/cli.rb#315 + # source://tapioca//lib/tapioca/cli.rb#320 def check_shims; end # source://tapioca//lib/tapioca/cli.rb#46 def configure; end - # source://tapioca//lib/tapioca/cli.rb#143 + # source://tapioca//lib/tapioca/cli.rb#147 def dsl(*constant_or_paths); end # @raise [MalformattedArgumentError] # - # source://tapioca//lib/tapioca/cli.rb#259 + # source://tapioca//lib/tapioca/cli.rb#264 def gem(*gems); end # source://tapioca//lib/tapioca/cli.rb#27 @@ -498,11 +472,11 @@ class Tapioca::Cli < ::Thor private - # source://tapioca//lib/tapioca/cli.rb#375 + # source://tapioca//lib/tapioca/cli.rb#380 def print_init_next_steps; end class << self - # source://tapioca//lib/tapioca/cli.rb#367 + # source://tapioca//lib/tapioca/cli.rb#372 def exit_on_failure?; end end end @@ -539,7 +513,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke abstract! - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#32 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#33 sig do params( requested_constants: T::Array[::String], @@ -557,22 +531,23 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke gem_dir: ::String, rbi_formatter: ::Tapioca::RBIFormatter, app_root: ::String, - halt_upon_load_error: T::Boolean + halt_upon_load_error: T::Boolean, + compiler_options: T::Hash[::String, T.untyped] ).void 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 + 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), compiler_options: T.unsafe(nil)); end private - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#97 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#100 sig { returns(T::Array[::String]) } def all_requested_constants; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#289 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#293 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#213 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#217 sig do params( constant_name: ::String, @@ -583,75 +558,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#150 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#154 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#173 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#177 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#349 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#353 sig { returns(T::Array[::String]) } def constants_from_requested_paths; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#120 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#123 sig { returns(::Tapioca::Dsl::Pipeline) } def create_pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#252 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#256 sig { params(constant_name: ::String).returns(::Pathname) } def dsl_rbi_filename(constant_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#136 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#140 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#344 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#348 sig { params(constant: ::String).returns(::String) } def generate_command_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#73 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#76 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#110 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#113 sig { void } def load_application; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#231 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#235 sig { params(dir: ::Pathname).void } def perform_dsl_verification(dir); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#105 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#108 sig { returns(::Tapioca::Dsl::Pipeline) } def pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#240 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#244 sig { params(files: T::Set[::Pathname]).void } def purge_stale_dsl_rbi_files(files); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#339 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#343 sig { params(constant: ::String).returns(::String) } def rbi_filename_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#320 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#324 sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } def rbi_files_in(path); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#298 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#302 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#193 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#197 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#327 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#331 sig { params(class_name: ::String).returns(::String) } def underscore(class_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#257 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#261 sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } def verify_dsl_rbi(tmp_dir:); end end @@ -690,11 +665,11 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command private - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#223 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#230 sig { returns(T::Array[::String]) } def added_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#284 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#291 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end @@ -702,19 +677,19 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } def compile_gem_rbi(gem); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#218 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#225 sig { params(gem_name: ::String).returns(::Pathname) } def existing_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#273 sig { returns(T::Hash[::String, ::String]) } def existing_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#230 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#237 sig { params(gem_name: ::String).returns(::Pathname) } def expected_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#272 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#279 sig { returns(T::Hash[::String, ::String]) } def expected_rbis; end @@ -727,11 +702,11 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command end def gem_dependencies(gem, dependencies = T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#235 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#242 sig { params(gem_name: ::String).returns(T::Boolean) } def gem_rbi_exists?(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#279 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#286 sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } def gem_rbi_filename(gem_name, version); end @@ -739,27 +714,27 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } def gems_to_generate(gem_names); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#289 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#296 sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void } def merge_with_exported_rbi(gem, file); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#260 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#267 sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } def move(old_filename, new_filename); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#170 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#177 sig { void } def perform_additions; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#143 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#150 sig { void } def perform_removals; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#213 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#220 sig { returns(T::Array[::String]) } def removed_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#240 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#247 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end end @@ -780,11 +755,11 @@ class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracke private - # source://tapioca//lib/tapioca/commands/annotations.rb#193 + # source://tapioca//lib/tapioca/commands/annotations.rb#197 sig { params(name: ::String, content: ::String).returns(::String) } def add_header(name, content); end - # source://tapioca//lib/tapioca/commands/annotations.rb#213 + # source://tapioca//lib/tapioca/commands/annotations.rb#217 sig { params(name: ::String, content: ::String).returns(::String) } def apply_typed_override(name, content); end @@ -793,18 +768,18 @@ class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracke def execute; end # source://tapioca//lib/tapioca/commands/annotations.rb#136 - sig { params(repo_uris: T::Array[::String], gem_name: ::String).void } - def fetch_annotation(repo_uris, gem_name); end + sig { params(repo_uris: T::Array[::String], gem_info: ::Tapioca::GemInfo).void } + def fetch_annotation(repo_uris, gem_info); end # source://tapioca//lib/tapioca/commands/annotations.rb#113 - sig { params(gem_names: T::Array[::String]).returns(T::Array[::String]) } - def fetch_annotations(gem_names); end + sig { params(project_gems: T::Array[::Tapioca::GemInfo]).returns(T::Array[::String]) } + def fetch_annotations(project_gems); end - # source://tapioca//lib/tapioca/commands/annotations.rb#152 + # source://tapioca//lib/tapioca/commands/annotations.rb#156 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_file(repo_uri, path); end - # source://tapioca//lib/tapioca/commands/annotations.rb#169 + # source://tapioca//lib/tapioca/commands/annotations.rb#173 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_http_file(repo_uri, path); end @@ -816,31 +791,35 @@ class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracke sig { returns(T::Hash[::String, Tapioca::RepoIndex]) } def fetch_indexes; end - # source://tapioca//lib/tapioca/commands/annotations.rb#161 + # source://tapioca//lib/tapioca/commands/annotations.rb#165 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_local_file(repo_uri, path); end + # source://tapioca//lib/tapioca/commands/annotations.rb#229 + sig { params(gem_version: ::Gem::Version, content: ::String).returns(::String) } + def filter_versions(gem_version, content); end + # source://tapioca//lib/tapioca/commands/annotations.rb#50 - sig { returns(T::Array[::String]) } + sig { returns(T::Array[::Tapioca::GemInfo]) } def list_gemfile_gems; end - # source://tapioca//lib/tapioca/commands/annotations.rb#225 + # source://tapioca//lib/tapioca/commands/annotations.rb#237 sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) } def merge_files(gem_name, contents); end # source://tapioca//lib/tapioca/commands/annotations.rb#60 - sig { params(project_gems: T::Array[::String]).void } + sig { params(project_gems: T::Array[::Tapioca::GemInfo]).void } def remove_expired_annotations(project_gems); end - # source://tapioca//lib/tapioca/commands/annotations.rb#252 + # source://tapioca//lib/tapioca/commands/annotations.rb#264 sig { returns(T::Hash[::String, T.nilable(::String)]) } def repo_tokens; end - # source://tapioca//lib/tapioca/commands/annotations.rb#280 + # source://tapioca//lib/tapioca/commands/annotations.rb#292 sig { params(path: ::String, repo_uri: ::String, message: ::String).void } def say_http_error(path, repo_uri, message:); end - # source://tapioca//lib/tapioca/commands/annotations.rb#264 + # source://tapioca//lib/tapioca/commands/annotations.rb#276 sig { params(repo_uri: ::String).returns(T.nilable(::String)) } def token_for(repo_uri); end end @@ -1102,11 +1081,11 @@ module Tapioca::ConfigHelper private - # source://tapioca//lib/tapioca/helpers/config_helper.rb#151 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#153 sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) } def build_error(msg); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#176 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#178 sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) } def build_error_message(config_file, errors); end @@ -1122,7 +1101,7 @@ module Tapioca::ConfigHelper sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void } def filter_defaults(options); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#194 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#196 sig do params( options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess) @@ -1145,58 +1124,58 @@ module Tapioca::ConfigHelper def validate_config_options(command_options, config_key, config_options); end end -# source://tapioca//lib/tapioca/helpers/config_helper.rb#146 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#148 class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 def inherited(s); end end end -# source://tapioca//lib/tapioca/helpers/config_helper.rb#141 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#143 class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :message, ::String const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime/0.5.11386/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 def inherited(s); end end end -# source://tapioca//lib/tapioca.rb#44 +# source://tapioca//lib/tapioca.rb#46 Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#40 +# source://tapioca//lib/tapioca.rb#42 Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#56 +# source://tapioca//lib/tapioca.rb#58 Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#41 +# source://tapioca//lib/tapioca.rb#43 Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#46 +# source://tapioca//lib/tapioca.rb#48 Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) -# source://tapioca//lib/tapioca.rb#38 +# source://tapioca//lib/tapioca.rb#40 Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#39 +# source://tapioca//lib/tapioca.rb#41 Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) # 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 +# source://tapioca//lib/tapioca.rb#57 Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer) -# source://tapioca//lib/tapioca.rb#42 +# source://tapioca//lib/tapioca.rb#44 Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#43 +# source://tapioca//lib/tapioca.rb#45 Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/dsl/compilers.rb#5 @@ -1218,17 +1197,24 @@ class Tapioca::Dsl::Compiler ConstantType = type_member { { upper: Module } } - # source://tapioca//lib/tapioca/dsl/compiler.rb#64 - sig { params(pipeline: ::Tapioca::Dsl::Pipeline, root: ::RBI::Tree, constant: ConstantType).void } - def initialize(pipeline, root, constant); end + # source://tapioca//lib/tapioca/dsl/compiler.rb#74 + sig do + params( + pipeline: ::Tapioca::Dsl::Pipeline, + root: ::RBI::Tree, + constant: ConstantType, + options: T::Hash[::String, T.untyped] + ).void + end + def initialize(pipeline, root, constant, options = T.unsafe(nil)); end # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`. # - # source://tapioca//lib/tapioca/dsl/compiler.rb#81 + # source://tapioca//lib/tapioca/dsl/compiler.rb#92 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#72 + # source://tapioca//lib/tapioca/dsl/compiler.rb#83 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end @@ -1238,56 +1224,60 @@ class Tapioca::Dsl::Compiler # @abstract # - # source://tapioca//lib/tapioca/dsl/compiler.rb#77 + # source://tapioca//lib/tapioca/dsl/compiler.rb#88 sig { abstract.void } def decorate; end + # source://tapioca//lib/tapioca/dsl/compiler.rb#26 + sig { returns(T::Hash[::String, T.untyped]) } + def options; end + # source://tapioca//lib/tapioca/dsl/compiler.rb#23 sig { returns(::RBI::Tree) } def root; end private - # source://tapioca//lib/tapioca/dsl/compiler.rb#130 + # source://tapioca//lib/tapioca/dsl/compiler.rb#141 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) } def compile_method_parameters_to_rbi(method_def); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#166 + # source://tapioca//lib/tapioca/dsl/compiler.rb#177 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) } def compile_method_return_type_to_rbi(method_def); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#120 + # source://tapioca//lib/tapioca/dsl/compiler.rb#131 sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void } def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end # Get the types of each parameter from a method signature # - # source://tapioca//lib/tapioca/dsl/compiler.rb#94 + # source://tapioca//lib/tapioca/dsl/compiler.rb#105 sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) } def parameters_types_from_signature(method_def, signature); end class << self # @abstract # - # source://tapioca//lib/tapioca/dsl/compiler.rb#34 + # source://tapioca//lib/tapioca/dsl/compiler.rb#37 sig { abstract.returns(T::Enumerable[::Module]) } def gather_constants; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#29 + # source://tapioca//lib/tapioca/dsl/compiler.rb#32 sig { params(constant: ::Module).returns(T::Boolean) } def handles?(constant); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#37 + # source://tapioca//lib/tapioca/dsl/compiler.rb#40 sig { returns(T::Set[::Module]) } def processable_constants; end private - # source://tapioca//lib/tapioca/dsl/compiler.rb#47 + # source://tapioca//lib/tapioca/dsl/compiler.rb#50 sig { returns(T::Enumerable[T::Class[T.anything]]) } def all_classes; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#55 + # source://tapioca//lib/tapioca/dsl/compiler.rb#58 sig { returns(T::Enumerable[::Module]) } def all_modules; end end @@ -1308,7 +1298,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#38 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#39 sig do params( requested_constants: T::Array[::Module], @@ -1317,24 +1307,25 @@ class Tapioca::Dsl::Pipeline 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) + number_of_workers: T.nilable(::Integer), + compiler_options: T::Hash[::String, T.untyped] ).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), skipped_constants: 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), compiler_options: 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#99 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#102 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#104 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#107 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#113 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#116 sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def compilers; end @@ -1354,7 +1345,7 @@ class Tapioca::Dsl::Pipeline sig { returns(T::Array[::Pathname]) } def requested_paths; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#64 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#67 sig do type_parameters(:T) .params( @@ -1369,15 +1360,15 @@ class Tapioca::Dsl::Pipeline private - # source://tapioca//lib/tapioca/dsl/pipeline.rb#220 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#223 sig { void } def abort_if_pending_migrations!; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#165 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#168 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#130 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#133 sig do params( requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], @@ -1386,7 +1377,7 @@ class Tapioca::Dsl::Pipeline end def gather_active_compilers(requested_compilers, excluded_compilers); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#144 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#147 sig do params( requested_constants: T::Array[::Module], @@ -1396,11 +1387,11 @@ class Tapioca::Dsl::Pipeline end def gather_constants(requested_constants, requested_paths, skipped_constants); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#194 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#197 sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } def rbi_for_constant(constant); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#213 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#216 sig { params(error: ::String).returns(T.noreturn) } def report_error(error); end end @@ -1604,6 +1595,10 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) } def initialize_method_for(constant); end + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#216 + sig { params(method: ::UnboundMethod).returns(T.untyped) } + def lookup_signature_of(method); end + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#172 sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) } def method_names_by_visibility(mod); end @@ -1933,49 +1928,60 @@ class Tapioca::Gem::Pipeline include ::Tapioca::SorbetHelper include ::Tapioca::RBIHelper - # source://tapioca//lib/tapioca/gem/pipeline.rb#17 - sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean, include_loc: T::Boolean).void } - def initialize(gem, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end + # source://tapioca//lib/tapioca/gem/pipeline.rb#27 + sig do + params( + gem: ::Tapioca::Gemfile::GemSpec, + error_handler: T.proc.params(error: ::String).void, + include_doc: T::Boolean, + include_loc: T::Boolean + ).void + end + def initialize(gem, error_handler:, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#48 + # source://tapioca//lib/tapioca/gem/pipeline.rb#64 sig { returns(::RBI::Tree) } def compile; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#119 + # source://tapioca//lib/tapioca/gem/pipeline.rb#135 sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) } def constant_in_gem?(name); end + # source://tapioca//lib/tapioca/gem/pipeline.rb#17 + sig { returns(T.proc.params(error: ::String).void) } + def error_handler; end + # source://tapioca//lib/tapioca/gem/pipeline.rb#14 sig { returns(::Tapioca::Gemfile::GemSpec) } def gem; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#137 + # source://tapioca//lib/tapioca/gem/pipeline.rb#153 sig { params(method: ::UnboundMethod).returns(T::Boolean) } def method_in_gem?(method); end # Helpers # - # source://tapioca//lib/tapioca/gem/pipeline.rb#147 + # source://tapioca//lib/tapioca/gem/pipeline.rb#163 sig { params(constant: ::Module).returns(T.nilable(::String)) } def name_of(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#71 + # source://tapioca//lib/tapioca/gem/pipeline.rb#87 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } def push_const(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#61 + # source://tapioca//lib/tapioca/gem/pipeline.rb#77 sig { params(symbol: ::String, constant: ::BasicObject).void } def push_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#66 + # source://tapioca//lib/tapioca/gem/pipeline.rb#82 sig { params(symbol: ::String, constant: ::Module).void } def push_foreign_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#85 + # source://tapioca//lib/tapioca/gem/pipeline.rb#101 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_foreign_scope(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#99 + # source://tapioca//lib/tapioca/gem/pipeline.rb#115 sig do params( symbol: ::String, @@ -1988,137 +1994,137 @@ class Tapioca::Gem::Pipeline end def push_method(symbol, constant, method, node, signature, parameters); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#78 + # source://tapioca//lib/tapioca/gem/pipeline.rb#94 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_scope(symbol, constant, node); end # Events handling # - # source://tapioca//lib/tapioca/gem/pipeline.rb#56 + # source://tapioca//lib/tapioca/gem/pipeline.rb#72 sig { params(symbol: ::String).void } def push_symbol(symbol); end # Constants and properties filtering # - # source://tapioca//lib/tapioca/gem/pipeline.rb#106 + # source://tapioca//lib/tapioca/gem/pipeline.rb#122 sig { params(symbol_name: ::String).returns(T::Boolean) } def symbol_in_payload?(symbol_name); end private - # source://tapioca//lib/tapioca/gem/pipeline.rb#440 + # source://tapioca//lib/tapioca/gem/pipeline.rb#456 sig { params(name: ::String).void } def add_to_alias_namespace(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#445 + # source://tapioca//lib/tapioca/gem/pipeline.rb#461 sig { params(name: ::String).returns(T::Boolean) } def alias_namespaced?(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#244 + # source://tapioca//lib/tapioca/gem/pipeline.rb#260 sig { params(name: ::String, constant: ::Module).void } def compile_alias(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#230 + # source://tapioca//lib/tapioca/gem/pipeline.rb#246 sig { params(symbol: ::String, constant: ::BasicObject).void } def compile_constant(symbol, constant); end # Compiling # - # source://tapioca//lib/tapioca/gem/pipeline.rb#219 + # source://tapioca//lib/tapioca/gem/pipeline.rb#235 sig { params(symbol: ::String, constant: ::Module).void } def compile_foreign_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#298 + # source://tapioca//lib/tapioca/gem/pipeline.rb#314 sig { params(name: ::String, constant: ::Module).void } def compile_module(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#265 + # source://tapioca//lib/tapioca/gem/pipeline.rb#281 sig { params(name: ::String, value: ::BasicObject).void } def compile_object(name, value); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#309 + # source://tapioca//lib/tapioca/gem/pipeline.rb#325 sig { params(name: ::String, constant: ::Module).returns(::RBI::Scope) } def compile_scope(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#323 + # source://tapioca//lib/tapioca/gem/pipeline.rb#339 sig { params(constant: T::Class[T.anything]).returns(T.nilable(::String)) } def compile_superclass(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#421 + # source://tapioca//lib/tapioca/gem/pipeline.rb#437 sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) } def defined_in_gem?(constant, strict: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#177 + # source://tapioca//lib/tapioca/gem/pipeline.rb#193 sig { params(event: ::Tapioca::Gem::Event).void } def dispatch(event); end # Helpers # - # source://tapioca//lib/tapioca/gem/pipeline.rb#464 + # source://tapioca//lib/tapioca/gem/pipeline.rb#480 sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) } def generic_name_of(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#433 + # source://tapioca//lib/tapioca/gem/pipeline.rb#449 sig { params(constant: ::Module).returns(T::Set[::String]) } def get_file_candidates(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#162 + # source://tapioca//lib/tapioca/gem/pipeline.rb#178 sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } def load_bootstrap_symbols(gem); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#480 + # source://tapioca//lib/tapioca/gem/pipeline.rb#496 sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) } def name_of_proxy_target(constant, class_name); end # Events handling # - # source://tapioca//lib/tapioca/gem/pipeline.rb#172 + # source://tapioca//lib/tapioca/gem/pipeline.rb#188 sig { returns(::Tapioca::Gem::Event) } def next_event; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#200 + # source://tapioca//lib/tapioca/gem/pipeline.rb#216 sig { params(event: ::Tapioca::Gem::ConstantFound).void } def on_constant(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#212 + # source://tapioca//lib/tapioca/gem/pipeline.rb#228 sig { params(event: ::Tapioca::Gem::NodeAdded).void } def on_node(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#191 + # source://tapioca//lib/tapioca/gem/pipeline.rb#207 sig { params(event: ::Tapioca::Gem::SymbolFound).void } def on_symbol(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#452 + # source://tapioca//lib/tapioca/gem/pipeline.rb#468 sig { params(name: ::String).void } def seen!(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#457 + # source://tapioca//lib/tapioca/gem/pipeline.rb#473 sig { params(name: ::String).returns(T::Boolean) } def seen?(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#391 + # source://tapioca//lib/tapioca/gem/pipeline.rb#407 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_alias?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#379 + # source://tapioca//lib/tapioca/gem/pipeline.rb#395 sig { params(name: ::String, constant: T.anything).returns(T::Boolean) } def skip_constant?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#408 + # source://tapioca//lib/tapioca/gem/pipeline.rb#424 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_foreign_constant?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#413 + # source://tapioca//lib/tapioca/gem/pipeline.rb#429 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_module?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#400 + # source://tapioca//lib/tapioca/gem/pipeline.rb#416 sig { params(name: ::String, constant: ::BasicObject).returns(T::Boolean) } def skip_object?(name, constant); end # Constants and properties filtering # - # source://tapioca//lib/tapioca/gem/pipeline.rb#374 + # source://tapioca//lib/tapioca/gem/pipeline.rb#390 sig { params(name: ::String).returns(T::Boolean) } def skip_symbol?(name); end end @@ -2127,7 +2133,7 @@ end # "(eval at /path/to/file.rb:123)" # and we are just interested in the "/path/to/file.rb" part # -# source://tapioca//lib/tapioca/gem/pipeline.rb#116 +# source://tapioca//lib/tapioca/gem/pipeline.rb#132 Tapioca::Gem::Pipeline::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp) # source://tapioca//lib/tapioca/gem/pipeline.rb#11 @@ -2180,6 +2186,21 @@ module Tapioca::GemHelper def path_in_dir?(path, dir); end end +# source://tapioca//lib/tapioca/gem_info.rb#5 +class Tapioca::GemInfo < ::T::Struct + const :name, ::String + const :version, ::Gem::Version + + class << self + # source://tapioca//lib/tapioca/gem_info.rb#13 + sig { params(spec: ::Bundler::LazySpecification).returns(::Tapioca::GemInfo) } + def from_spec(spec); end + + # source://sorbet-runtime/0.5.11545/lib/types/struct.rb#13 + def inherited(s); end + end +end + # source://tapioca//lib/tapioca/gemfile.rb#7 class Tapioca::Gemfile # source://tapioca//lib/tapioca/gemfile.rb#27 @@ -2346,6 +2367,9 @@ Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) # source://tapioca//lib/tapioca/gemfile.rb#10 Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) } +# source://tapioca//lib/tapioca.rb#33 +Tapioca::LIB_ROOT_DIR = T.let(T.unsafe(nil), String) + # source://tapioca//lib/tapioca/loaders/loader.rb#5 module Tapioca::Loaders; end @@ -2368,7 +2392,7 @@ class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader protected - # source://tapioca//lib/tapioca/loaders/dsl.rb#81 + # source://tapioca//lib/tapioca/loaders/dsl.rb#88 sig { void } def load_application; end @@ -2464,17 +2488,19 @@ 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#223 - sig { params(engine: T.class_of(Rails::Engine)).returns(T::Array[::String]) } + # @param engine [T.class_of(Rails::Engine)] + # @return [Array] + # + # source://tapioca//lib/tapioca/loaders/loader.rb#234 def eager_load_paths(engine); end - # source://tapioca//lib/tapioca/loaders/loader.rb#188 + # source://tapioca//lib/tapioca/loaders/loader.rb#199 sig { void } def eager_load_rails_app; end # @return [Array] # - # source://tapioca//lib/tapioca/loaders/loader.rb#167 + # source://tapioca//lib/tapioca/loaders/loader.rb#178 def engines; end # source://tapioca//lib/tapioca/loaders/loader.rb#29 @@ -2488,11 +2514,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#125 + # source://tapioca//lib/tapioca/loaders/loader.rb#136 sig { void } def load_engines_in_classic_mode; end - # source://tapioca//lib/tapioca/loaders/loader.rb#103 + # source://tapioca//lib/tapioca/loaders/loader.rb#114 sig { void } def load_engines_in_zeitwerk_mode; end @@ -2507,26 +2533,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#78 + # source://tapioca//lib/tapioca/loaders/loader.rb#89 sig { void } def load_rails_engines; end - # source://tapioca//lib/tapioca/loaders/loader.rb#209 + # source://tapioca//lib/tapioca/loaders/loader.rb#220 sig { params(file: T.nilable(::String)).void } def require_helper(file); end - # source://tapioca//lib/tapioca/loaders/loader.rb#92 + # source://tapioca//lib/tapioca/loaders/loader.rb#103 def run_initializers; end - # source://tapioca//lib/tapioca/loaders/loader.rb#181 + # source://tapioca//lib/tapioca/loaders/loader.rb#192 sig { params(path: ::String).void } def safe_require(path); end - # source://tapioca//lib/tapioca/loaders/loader.rb#150 + # source://tapioca//lib/tapioca/loaders/loader.rb#161 sig { params(blk: T.proc.void).void } def with_rails_application(&blk); end - # source://tapioca//lib/tapioca/loaders/loader.rb#143 + # source://tapioca//lib/tapioca/loaders/loader.rb#154 sig { returns(T::Boolean) } def zeitwerk_mode?; end end @@ -2573,19 +2599,19 @@ module Tapioca::RBIFilesHelper private - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#209 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#223 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) } def extract_empty_scopes(nodes); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#214 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#228 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) } def extract_methods_and_attrs(nodes); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#224 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#238 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) } def extract_mixins(nodes); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#234 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#248 sig do params( nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)] @@ -2593,7 +2619,7 @@ module Tapioca::RBIFilesHelper end def extract_nodes_with_sigs(nodes); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#202 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#216 sig do params( nodes: T::Array[::RBI::Node], @@ -2603,7 +2629,7 @@ module Tapioca::RBIFilesHelper end def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#266 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#280 sig { params(path: ::String).returns(::String) } def gem_name_from_rbi_path(path); end @@ -2615,7 +2641,7 @@ module Tapioca::RBIFilesHelper sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) } def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#239 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#253 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void } def update_gem_rbis_strictnesses(errors, gem_dir); end end @@ -2895,7 +2921,7 @@ class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple def initialize(raw_type, underlying_type); end # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45 - sig { params(obj: T.untyped).returns(T::Boolean) } + sig { override.params(obj: T.untyped).returns(T::Boolean) } def valid?(obj); end end @@ -2904,7 +2930,7 @@ module Tapioca::Runtime::Reflection extend ::Tapioca::Runtime::AttachedClassOf extend ::Tapioca::Runtime::Reflection - # source://tapioca//lib/tapioca/runtime/reflection.rb#196 + # source://tapioca//lib/tapioca/runtime/reflection.rb#201 sig { params(constant: ::Module).returns(T.untyped) } def abstract_type_of(constant); end @@ -2948,7 +2974,7 @@ module Tapioca::Runtime::Reflection # class D < C; end # descendants_of(C) # => [B, A, D] # - # source://tapioca//lib/tapioca/runtime/reflection.rb#167 + # source://tapioca//lib/tapioca/runtime/reflection.rb#172 sig do type_parameters(:U) .params( @@ -2957,11 +2983,11 @@ module Tapioca::Runtime::Reflection end def descendants_of(klass); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#189 + # source://tapioca//lib/tapioca/runtime/reflection.rb#194 sig { params(constant: ::Module).returns(T::Set[::String]) } def file_candidates_for(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#202 + # source://tapioca//lib/tapioca/runtime/reflection.rb#207 sig { params(constant: ::Module).returns(T::Boolean) } def final_module?(constant); end @@ -2969,7 +2995,7 @@ module Tapioca::Runtime::Reflection sig { params(constant: ::Module).returns(T::Array[::Module]) } def inherited_ancestors_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#145 + # source://tapioca//lib/tapioca/runtime/reflection.rb#150 sig { params(constant: ::Module, method: ::Symbol).returns(::Method) } def method_of(constant, method); end @@ -2977,7 +3003,7 @@ module Tapioca::Runtime::Reflection sig { params(constant: ::Module).returns(T.nilable(::String)) } def name_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#140 + # source://tapioca//lib/tapioca/runtime/reflection.rb#145 sig { params(type: ::T::Types::Base).returns(::String) } def name_of_type(type); end @@ -3005,18 +3031,22 @@ module Tapioca::Runtime::Reflection # by searching for the label "". If none is found, it returns the location # labeled "
    ", which is the original call site. # - # source://tapioca//lib/tapioca/runtime/reflection.rb#179 + # source://tapioca//lib/tapioca/runtime/reflection.rb#184 sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) } def resolve_loc(locations); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#207 + # source://tapioca//lib/tapioca/runtime/reflection.rb#212 sig { params(constant: ::Module).returns(T::Boolean) } def sealed_module?(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#133 + # source://tapioca//lib/tapioca/runtime/reflection.rb#138 sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } def signature_of(method); end + # source://tapioca//lib/tapioca/runtime/reflection.rb#133 + sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } + def signature_of!(method); end + # source://tapioca//lib/tapioca/runtime/reflection.rb#72 sig { params(constant: ::Module).returns(T::Class[T.anything]) } def singleton_class_of(constant); end @@ -3027,23 +3057,23 @@ module Tapioca::Runtime::Reflection private - # source://tapioca//lib/tapioca/runtime/reflection.rb#244 + # source://tapioca//lib/tapioca/runtime/reflection.rb#249 sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) } def child_module_for_parent_with_name(parent, name); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#260 + # source://tapioca//lib/tapioca/runtime/reflection.rb#265 sig { params(name: ::String).returns(T::Boolean) } def has_aliased_namespace?(name); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#255 + # source://tapioca//lib/tapioca/runtime/reflection.rb#260 sig { params(method: ::UnboundMethod).returns(T::Boolean) } def method_defined_by_forwardable_module?(method); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#230 + # source://tapioca//lib/tapioca/runtime/reflection.rb#235 sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } def methods_for(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#214 + # source://tapioca//lib/tapioca/runtime/reflection.rb#219 sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } def relevant_methods_for(constant); end end @@ -3275,10 +3305,10 @@ module Tapioca::Runtime::Trackers::Tracker end end -# source://tapioca//lib/tapioca.rb#33 +# source://tapioca//lib/tapioca.rb#35 Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#32 +# source://tapioca//lib/tapioca.rb#34 Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5 @@ -3371,8 +3401,9 @@ module Tapioca::Static::SymbolLoader private + # @return [Array] + # # source://tapioca//lib/tapioca/static/symbol_loader.rb#69 - sig { returns(T::Array[T.class_of(Rails::Engine)]) } def engines; end # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 @@ -3409,10 +3440,10 @@ end # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9 Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca.rb#35 +# source://tapioca//lib/tapioca.rb#37 Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#34 +# source://tapioca//lib/tapioca.rb#36 Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#108 @@ -3495,14 +3526,14 @@ class URI::Source < ::URI::File sig { params(v: T.nilable(::String)).returns(T::Boolean) } def check_host(v); end - # source://uri/0.13.0/uri/generic.rb#243 + # source://uri/0.13.0/lib/uri/generic.rb#243 def gem_name; end # source://tapioca//lib/tapioca/helpers/source_uri.rb#25 sig { returns(T.nilable(::String)) } def gem_version; end - # source://uri/0.13.0/uri/generic.rb#283 + # source://uri/0.13.0/lib/uri/generic.rb#283 def line_number; end # source://tapioca//lib/tapioca/helpers/source_uri.rb#51 diff --git a/sorbet/rbi/gems/tilt@2.3.0.rbi b/sorbet/rbi/gems/tilt@2.3.0.rbi deleted file mode 100644 index 15483dbe..00000000 --- a/sorbet/rbi/gems/tilt@2.3.0.rbi +++ /dev/null @@ -1,949 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# 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 -module Tilt - class << self - # @see Tilt::Mapping#[] - # - # source://tilt//lib/tilt.rb#71 - def [](file); end - - # @return [Tilt::Mapping] the main mapping object - # - # source://tilt//lib/tilt.rb#87 - def default_mapping; end - - # Replace the default mapping with a finalized version of the default - # mapping. This can be done to improve performance after the template - # libraries you desire to use have already been loaded. Once this is - # is called, all attempts to modify the default mapping will fail. - # This also freezes Tilt itself. - # - # source://tilt//lib/tilt.rb#20 - def finalize!; end - - # @private - # - # source://tilt//lib/tilt.rb#41 - def lazy_map; end - - # @see Tilt::Mapping#new - # - # source://tilt//lib/tilt.rb#66 - def new(file, line = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # Alias register as prefer for Tilt 1.x compatibility. - # - # @see Tilt::Mapping#register - # - # source://tilt//lib/tilt.rb#46 - def prefer(template_class, *extensions); end - - # @see Tilt::Mapping#register - # - # source://tilt//lib/tilt.rb#46 - def register(template_class, *extensions); end - - # @see Tilt::Mapping#register_lazy - # - # source://tilt//lib/tilt.rb#51 - def register_lazy(class_name, file, *extensions); end - - # @see Tilt::Mapping#register_pipeline - # - # source://tilt//lib/tilt.rb#56 - def register_pipeline(ext, options = T.unsafe(nil)); end - - # @return [Boolean] - # @see Tilt::Mapping#registered? - # - # source://tilt//lib/tilt.rb#61 - def registered?(ext); end - - # @see Tilt::Mapping#template_for - # - # source://tilt//lib/tilt.rb#76 - def template_for(file); end - - # @see Tilt::Mapping#templates_for - # - # source://tilt//lib/tilt.rb#81 - def templates_for(file); end - end -end - -# Private internal base class for both Mapping and FinalizedMapping, for the shared methods. -# -# source://tilt//lib/tilt/mapping.rb#6 -class Tilt::BaseMapping - # Looks up a template class based on file name and/or extension. - # - # @example - # mapping['views/hello.erb'] # => Tilt::ERBTemplate - # mapping['hello.erb'] # => Tilt::ERBTemplate - # mapping['erb'] # => Tilt::ERBTemplate - # @return [template class] - # - # source://tilt//lib/tilt/mapping.rb#32 - def [](file); end - - # Instantiates a new template class based on the file. - # - # @example - # mapping.new('index.mt') # => instance of MyEngine::Template - # @raise [RuntimeError] if there is no template class registered for the - # file name. - # @see Tilt::Template.new - # - # source://tilt//lib/tilt/mapping.rb#16 - def new(file, line = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # Looks up a template class based on file name and/or extension. - # - # @example - # mapping['views/hello.erb'] # => Tilt::ERBTemplate - # mapping['hello.erb'] # => Tilt::ERBTemplate - # mapping['erb'] # => Tilt::ERBTemplate - # @return [template class] - # - # source://tilt//lib/tilt/mapping.rb#32 - def template_for(file); end - - # Looks up a list of template classes based on file name. If the file name - # has multiple extensions, it will return all template classes matching the - # extensions from the end. - # - # @example - # mapping.templates_for('views/index.haml.erb') - # # => [Tilt::ERBTemplate, Tilt::HamlTemplate] - # @return [Array