From d0e573891c1ae64c5d9cc9cc0bce88fd3bed9a0d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 21:46:39 +0000 Subject: [PATCH 1/3] Bump the minor-and-patch group with 5 updates Bumps the minor-and-patch group with 5 updates: | Package | From | To | | --- | --- | --- | | [graphql](https://github.com/rmosolgo/graphql-ruby) | `2.5.22` | `2.5.23` | | [sorbet-static](https://github.com/sorbet/sorbet) | `0.6.13067` | `0.6.13096` | | [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) | `0.6.13067` | `0.6.13096` | | [rbi](https://github.com/Shopify/rbi) | `0.3.9` | `0.3.10` | | [spoom](https://github.com/Shopify/spoom) | `1.7.11` | `1.7.12` | Updates `graphql` from 2.5.22 to 2.5.23 - [Release notes](https://github.com/rmosolgo/graphql-ruby/releases) - [Changelog](https://github.com/rmosolgo/graphql-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/rmosolgo/graphql-ruby/compare/v2.5.22...v2.5.23) Updates `sorbet-static` from 0.6.13067 to 0.6.13096 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) Updates `sorbet-static-and-runtime` from 0.6.13067 to 0.6.13096 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) Updates `rbi` from 0.3.9 to 0.3.10 - [Release notes](https://github.com/Shopify/rbi/releases) - [Commits](https://github.com/Shopify/rbi/compare/v0.3.9...v0.3.10) Updates `spoom` from 1.7.11 to 1.7.12 - [Release notes](https://github.com/Shopify/spoom/releases) - [Commits](https://github.com/Shopify/spoom/compare/v1.7.11...v1.7.12) --- updated-dependencies: - dependency-name: graphql dependency-version: 2.5.23 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: sorbet-static dependency-version: 0.6.13096 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: sorbet-static-and-runtime dependency-version: 0.6.13096 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: rbi dependency-version: 0.3.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: spoom dependency-version: 1.7.12 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1e80e3d52..d39915370 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -179,7 +179,7 @@ GEM google-protobuf (4.34.1-x86_64-linux-musl) bigdecimal rake (~> 13.3) - graphql (2.5.22) + graphql (2.5.23) base64 fiber-storage logger @@ -307,9 +307,9 @@ GEM zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.3.1) - rbi (0.3.9) + rbi (0.3.10) prism (~> 1.0) - rbs (>= 3.4.4) + rbs (>= 4.0.1) rbs (4.0.2) logger prism (>= 1.6.0) @@ -369,20 +369,20 @@ GEM rack (>= 3.2.0) redis-client (>= 0.26.0) smart_properties (1.17.0) - sorbet (0.6.13067) - sorbet-static (= 0.6.13067) - sorbet-runtime (0.6.13067) - sorbet-static (0.6.13067-aarch64-linux) - sorbet-static (0.6.13067-universal-darwin) - sorbet-static (0.6.13067-x86_64-linux) - sorbet-static-and-runtime (0.6.13067) - sorbet (= 0.6.13067) - sorbet-runtime (= 0.6.13067) - spoom (1.7.11) + sorbet (0.6.13096) + sorbet-static (= 0.6.13096) + sorbet-runtime (0.6.13096) + sorbet-static (0.6.13096-aarch64-linux) + sorbet-static (0.6.13096-universal-darwin) + sorbet-static (0.6.13096-x86_64-linux) + sorbet-static-and-runtime (0.6.13096) + sorbet (= 0.6.13096) + sorbet-runtime (= 0.6.13096) + spoom (1.7.12) erubi (>= 1.10.0) prism (>= 0.28.0) rbi (>= 0.3.3) - rbs (>= 4.0.0.dev.4) + rbs (>= 4.0.0.dev.5) rexml (>= 3.2.6) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) @@ -526,7 +526,7 @@ CHECKSUMS google-protobuf (4.34.1-x86_64-darwin) sha256=4dc498376e218871613589c4d872400d42ad9ae0c700bdb2606fe1c77a593075 google-protobuf (4.34.1-x86_64-linux-gnu) sha256=87088c9fd8e47b5b40ca498fc1195add6149e941ff7e81c532a5b0b8876d4cc9 google-protobuf (4.34.1-x86_64-linux-musl) sha256=8c0e91436fbe504ffc64f0bd621f2e69adbcce8ed2c58439d7a21117069cfdd7 - graphql (2.5.22) sha256=d2dccbe6a432e1b89bdb8ccca0572a6bb867a28caceb5fe029ee7741c7854bc0 + graphql (2.5.23) sha256=cb59b2e67e4c23ce675755e4671136124d1016e14e9103de6d20cc11a58ec190 hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1 i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5 identity_cache (1.6.4) sha256=3f043ff06577765ef532656b1af1058f9a983edcf525ba4f5fa79f0bd6324f26 @@ -580,7 +580,7 @@ CHECKSUMS railties (8.1.3) sha256=913eb0e0cb520aac687ffd74916bd726d48fa21f47833c6292576ef6a286de22 rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c - rbi (0.3.9) sha256=d6a187bd0b376e999d3d82a5e5798a61178be98b894b7b35741c14162c9ea015 + rbi (0.3.10) sha256=a4fd8e7786845ffd6533c512da2bda8722ce8565071ee4ad489b403f77c61d2b rbs (4.0.2) sha256=af75671e66cd03434cc546622741ebf83f6197ec4328375805306330bf78ef25 rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192 redis (5.4.0) sha256=798900d869418a9fc3977f916578375b45c38247a556b61d58cba6bb02f7d06b @@ -604,13 +604,13 @@ CHECKSUMS shopify-money (4.0.0) sha256=9b793481218f418664e80e22e952c42f66fe909be282699c6b6afd45f22ac16c sidekiq (8.1.2) sha256=4a1266f22bb1dad675d77bf32e8d4c04e990640e3b271650f47ea7299c38fceb smart_properties (1.17.0) sha256=f9323f8122e932341756ddec8e0ac9ec6e238408a7661508be99439ca6d6384b - sorbet (0.6.13067) sha256=0b7be339a0ef10a7296badf0c70dfcebfcbed179c7aac469019fbfad4fe01e26 - sorbet-runtime (0.6.13067) sha256=23a46f9abd3e18a91aba1a2a545cf71c9e1dd1fcc94d4e6f52b99b346e6b37fd - sorbet-static (0.6.13067-aarch64-linux) sha256=f644792e0bf27705c6b5f90d0c1e492f6b24f2c2294d4fda1dd6fedf65955ca5 - sorbet-static (0.6.13067-universal-darwin) sha256=8af1b7f243272b5e7549d3d8a21954722397bc722ed1b3c8fc427e5dd8d1bf04 - sorbet-static (0.6.13067-x86_64-linux) sha256=0a20402e292cd672046ccd9385fb9c65e3a17fa1ed5597b96ac908adc272a395 - sorbet-static-and-runtime (0.6.13067) sha256=a6442a39d664e9e03573577d3087ef5a7d0525dc7670724a44ffdb01c28c20e4 - spoom (1.7.11) sha256=4e27384af6d3fde5aadc0287c51e6f76c0802259cbb3b6a67603bf718352f4cf + sorbet (0.6.13096) sha256=5dc40058f0839e495a003052bbcd024c6429227282d8b81eff94880784129dd9 + sorbet-runtime (0.6.13096) sha256=7fa48ff2f276998c6f0e6f087b68d4dc7026ba0646d329ff90612d6d0c83a235 + sorbet-static (0.6.13096-aarch64-linux) sha256=5b02cb8f97392c7f301948c81b88cd808e5aa65cc912235cdcd94b5d072c2015 + sorbet-static (0.6.13096-universal-darwin) sha256=6160b36a22a5f408c5d72b4c2b1b2d1974b21b9f9ec77b6b21181c2d1e3715de + sorbet-static (0.6.13096-x86_64-linux) sha256=3ff6f38dc240e554e689092c0796ac989006ef8dad6bbd3309dd66cfb8da7c6e + sorbet-static-and-runtime (0.6.13096) sha256=636e15ff1a427b971d269344dff1946f1a441ff4637b335224324b30d663dd99 + spoom (1.7.12) sha256=67f0b1f835158dba4f19c03ff75b7b7e285dce9165b7b77c2c78cbf54ebf3013 sprockets (4.2.2) sha256=761e5a49f1c288704763f73139763564c845a8f856d52fba013458f8af1b59b1 sqlite3 (2.9.0-aarch64-linux-gnu) sha256=cfe1e0216f46d7483839719bf827129151e6c680317b99d7b8fc1597a3e13473 sqlite3 (2.9.0-aarch64-linux-musl) sha256=56a35cb2d70779afc2ac191baf2c2148242285ecfed72f9b021218c5c4917913 From be0be6f570d42072955b02b146ff48e0bac6bb31 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Tue, 7 Apr 2026 14:56:19 -0400 Subject: [PATCH 2/3] Re-generate gem RBIs --- ...{graphql@2.5.22.rbi => graphql@2.5.23.rbi} | 628 +++++------ .../gems/{rbi@0.3.9.rbi => rbi@0.3.10.rbi} | 971 +++++++++--------- .../{spoom@1.7.11.rbi => spoom@1.7.12.rbi} | 13 +- 3 files changed, 830 insertions(+), 782 deletions(-) rename sorbet/rbi/gems/{graphql@2.5.22.rbi => graphql@2.5.23.rbi} (98%) rename sorbet/rbi/gems/{rbi@0.3.9.rbi => rbi@0.3.10.rbi} (87%) rename sorbet/rbi/gems/{spoom@1.7.11.rbi => spoom@1.7.12.rbi} (99%) diff --git a/sorbet/rbi/gems/graphql@2.5.22.rbi b/sorbet/rbi/gems/graphql@2.5.23.rbi similarity index 98% rename from sorbet/rbi/gems/graphql@2.5.22.rbi rename to sorbet/rbi/gems/graphql@2.5.23.rbi index 89597f734..4c68ad71c 100644 --- a/sorbet/rbi/gems/graphql@2.5.22.rbi +++ b/sorbet/rbi/gems/graphql@2.5.23.rbi @@ -1486,9 +1486,9 @@ class GraphQL::Execution::Interpreter::ExecutionErrors def add(err_or_msg); end end -# pkg:gem/graphql#lib/graphql/execution/interpreter.rb:143 +# pkg:gem/graphql#lib/graphql/execution/interpreter.rb:140 class GraphQL::Execution::Interpreter::ListResultFailedError < ::GraphQL::Error - # pkg:gem/graphql#lib/graphql/execution/interpreter.rb:144 + # pkg:gem/graphql#lib/graphql/execution/interpreter.rb:141 def initialize(value:, path:, field:); end end @@ -1541,13 +1541,13 @@ class GraphQL::Execution::Interpreter::Runtime # @param trace [Boolean] If `false`, don't wrap this with field tracing # @return [GraphQL::Execution::Lazy, Object] If loading `object` will be deferred, it's a wrapper over it. # - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:891 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:892 def after_lazy(lazy_obj, field:, owner_object:, arguments:, ast_node:, result:, result_name:, runtime_state:, eager: T.unsafe(nil), trace: T.unsafe(nil), &block); end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:945 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:946 def arguments(graphql_object, arg_owner, ast_node); end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:819 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:820 def call_method_on_directives(method_name, object, directives, &block); end # @return [GraphQL::Query::Context] @@ -1573,12 +1573,12 @@ class GraphQL::Execution::Interpreter::Runtime # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:545 def current_path; end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:954 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:955 def delete_all_interpreter_context; end # Check {Schema::Directive.include?} for each directive that's present # - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:858 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:859 def directives_include?(node, graphql_object, parent_type); end # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:199 @@ -1606,16 +1606,16 @@ class GraphQL::Execution::Interpreter::Runtime # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:212 def gather_selections(owner_object, owner_type, selections, selections_to_run, selections_by_name, ordered_result_keys); end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:869 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:870 def get_current_runtime_state; end # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:62 def inspect; end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:986 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:987 def lazy?(object); end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:874 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:875 def minimal_after_lazy(value, &block); end # @return [GraphQL::Query] @@ -1626,10 +1626,10 @@ class GraphQL::Execution::Interpreter::Runtime # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:805 def resolve_list_item(inner_value, inner_type, inner_type_non_null, ast_node, field, owner_object, arguments, this_idx, response_list, owner_type, was_scoped, runtime_state); end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:965 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:966 def resolve_type(type, value); end - # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:824 + # pkg:gem/graphql#lib/graphql/execution/interpreter/runtime.rb:825 def run_directive(method_name, object, directives, idx, &block); end # @return [void] @@ -2231,13 +2231,13 @@ class GraphQL::Execution::Next::FieldResolveStep # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:6 def initialize(parent_type:, runner:, key:, selections_step:); end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:238 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:266 def add_graphql_error(err); end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:556 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:585 def add_non_null_error(is_from_array); end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:368 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:397 def any_lazy_results?; end # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:40 @@ -2255,28 +2255,28 @@ class GraphQL::Execution::Next::FieldResolveStep # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:36 def ast_nodes; end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:549 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:578 def authorized_finished(step); end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:251 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:279 def build_arguments; end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:431 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:460 def build_results; end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:217 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:245 def call; end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:81 - def coerce_argument_value(arguments, arg_defn, arg_value, target_keyword: T.unsafe(nil), as_type: T.unsafe(nil)); end + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:110 + def coerce_argument_value(arguments, arg_defn, arg_value, run_loads, target_keyword: T.unsafe(nil), as_type: T.unsafe(nil)); end # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:51 - def coerce_arguments(argument_owner, ast_arguments_or_hash); end + def coerce_arguments(argument_owner, ast_arguments_or_hash, run_loads = T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:504 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:533 def enqueue_next_steps; end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:271 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:292 def execute_field; end # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:27 @@ -2285,7 +2285,7 @@ class GraphQL::Execution::Next::FieldResolveStep # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:27 def field_results; end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:390 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:419 def finish_extensions; end # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:27 @@ -2312,12 +2312,12 @@ class GraphQL::Execution::Next::FieldResolveStep # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:27 def selections_step; end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:199 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:227 def sync(lazy); end # Implement that Lazy API # - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:190 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:218 def value; end # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:27 @@ -2325,17 +2325,17 @@ class GraphQL::Execution::Next::FieldResolveStep private - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:563 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:592 def build_graphql_result(graphql_result, key, field_result, return_type, is_nn, is_list, is_from_array); end - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:615 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:644 def resolve_batch(objects, context, args_hash); end end -# pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:245 +# pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:273 module GraphQL::Execution::Next::FieldResolveStep::AlwaysAuthorized class << self - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:246 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:274 def [](_key); end end end @@ -2353,7 +2353,7 @@ class GraphQL::Execution::Next::LoadArgumentStep private - # pkg:gem/graphql#lib/graphql/execution/next/load_argument_step.rb:43 + # pkg:gem/graphql#lib/graphql/execution/next/load_argument_step.rb:47 def assign_value; end end @@ -2375,9 +2375,9 @@ class GraphQL::Execution::Next::PrepareObjectStep def value; end end -# pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:700 +# pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:732 class GraphQL::Execution::Next::RawValueFieldResolveStep < ::GraphQL::Execution::Next::FieldResolveStep - # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:701 + # pkg:gem/graphql#lib/graphql/execution/next/field_resolve_step.rb:733 def build_graphql_result(graphql_result, key, field_result, return_type, is_nn, is_list, is_from_array); end end @@ -2404,10 +2404,10 @@ class GraphQL::Execution::Next::Runner # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:48 def execute; end - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:194 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:210 def gather_selections(type_defn, ast_selections, selections_step, query, prototype_result, into:); end - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:228 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:244 def lazy?(object); end # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:25 @@ -2433,22 +2433,22 @@ class GraphQL::Execution::Next::Runner private - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:312 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:333 def check_list_result(query, result_arr, inner_type, ast_selections, current_exec_path, current_result_path, paths_to_check); end - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:256 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:273 def check_object_result(query, result_h, static_type, ast_selections, current_exec_path, current_result_path, paths_to_check); end - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:350 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:372 def dir_arg_value(query, arg_node); end - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:362 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:384 def directives_include?(query, ast_selection); end - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:239 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:255 def propagate_errors(data, query); end - # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:376 + # pkg:gem/graphql#lib/graphql/execution/next/runner.rb:398 def type_condition_applies?(context, concrete_type, type_name); end end @@ -2491,16 +2491,22 @@ class GraphQL::Execution::Next::SelectionsStep def results; end end -# Just a singleton for implementing {Query::Context#skip} -# @api private -# -# pkg:gem/graphql#lib/graphql/execution.rb:17 -GraphQL::Execution::SKIP = T.let(T.unsafe(nil), GraphQL::Execution::Skip) - # @api private # # pkg:gem/graphql#lib/graphql/execution.rb:13 -class GraphQL::Execution::Skip < ::GraphQL::Error; end +class GraphQL::Execution::Skip < ::GraphQL::RuntimeError + # pkg:gem/graphql#lib/graphql/execution.rb:17 + def assign_graphql_result(query, result_data, key); end + + # pkg:gem/graphql#lib/graphql/execution.rb:15 + def ast_nodes=(_ignored); end + + # pkg:gem/graphql#lib/graphql/execution.rb:14 + def path; end + + # pkg:gem/graphql#lib/graphql/execution.rb:14 + def path=(_arg0); end +end # If a field's resolve function returns a {ExecutionError}, # the error will be inserted into the response's `"errors"` key @@ -2511,6 +2517,9 @@ class GraphQL::ExecutionError < ::GraphQL::RuntimeError # pkg:gem/graphql#lib/graphql/execution_error.rb:32 def initialize(message, ast_node: T.unsafe(nil), ast_nodes: T.unsafe(nil), options: T.unsafe(nil), extensions: T.unsafe(nil)); end + # pkg:gem/graphql#lib/graphql/execution_error.rb:39 + def assign_graphql_result(query, result_data, key); end + # @return [GraphQL::Language::Nodes::Field] the field where the error occurred # # pkg:gem/graphql#lib/graphql/execution_error.rb:8 @@ -2567,7 +2576,7 @@ class GraphQL::ExecutionError < ::GraphQL::RuntimeError # @return [Hash] An entry for the response's "errors" key # - # pkg:gem/graphql#lib/graphql/execution_error.rb:40 + # pkg:gem/graphql#lib/graphql/execution_error.rb:44 def to_h; end end @@ -9719,7 +9728,7 @@ class GraphQL::Schema::Field # pkg:gem/graphql#lib/graphql/schema/field.rb:223 def initialize(type: T.unsafe(nil), name: T.unsafe(nil), owner: T.unsafe(nil), null: T.unsafe(nil), description: T.unsafe(nil), comment: T.unsafe(nil), deprecation_reason: T.unsafe(nil), method: T.unsafe(nil), resolve_legacy_instance_method: T.unsafe(nil), resolve_static: T.unsafe(nil), resolve_each: T.unsafe(nil), resolve_batch: T.unsafe(nil), hash_key: T.unsafe(nil), dig: T.unsafe(nil), resolver_method: T.unsafe(nil), connection: T.unsafe(nil), max_page_size: T.unsafe(nil), default_page_size: T.unsafe(nil), scope: T.unsafe(nil), introspection: T.unsafe(nil), camelize: T.unsafe(nil), trace: T.unsafe(nil), complexity: T.unsafe(nil), dataload: T.unsafe(nil), ast_node: T.unsafe(nil), extras: T.unsafe(nil), extensions: T.unsafe(nil), connection_extension: T.unsafe(nil), resolver_class: T.unsafe(nil), subscription_scope: T.unsafe(nil), relay_node_field: T.unsafe(nil), relay_nodes_field: T.unsafe(nil), method_conflict_warning: T.unsafe(nil), broadcastable: T.unsafe(nil), arguments: T.unsafe(nil), directives: T.unsafe(nil), validates: T.unsafe(nil), fallback_value: T.unsafe(nil), dynamic_introspection: T.unsafe(nil), &definition_block); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:674 + # pkg:gem/graphql#lib/graphql/schema/field.rb:673 def authorized?(object, args, context); end # pkg:gem/graphql#lib/graphql/schema/field.rb:667 @@ -9848,7 +9857,7 @@ class GraphQL::Schema::Field # @param ctx [GraphQL::Query::Context] # - # pkg:gem/graphql#lib/graphql/schema/field.rb:829 + # pkg:gem/graphql#lib/graphql/schema/field.rb:828 def fetch_extra(extra_name, ctx); end # pkg:gem/graphql#lib/graphql/schema/field.rb:617 @@ -9942,7 +9951,7 @@ class GraphQL::Schema::Field # @param args [Hash] A symbol-keyed hash of Ruby keyword arguments. (Empty if no args) # @param ctx [GraphQL::Query::Context] # - # pkg:gem/graphql#lib/graphql/schema/field.rb:723 + # pkg:gem/graphql#lib/graphql/schema/field.rb:722 def resolve(object, args, query_ctx); end # @return [Class, nil] The {Schema::Resolver} this field was derived from, if there is one @@ -9955,7 +9964,7 @@ class GraphQL::Schema::Field # pkg:gem/graphql#lib/graphql/schema/field.rb:37 def resolver_method; end - # pkg:gem/graphql#lib/graphql/schema/field.rb:930 + # pkg:gem/graphql#lib/graphql/schema/field.rb:929 def run_next_extensions_before_resolve(objs, args, ctx, extended, idx: T.unsafe(nil), &block); end # @return [Boolean] if true, the return type's `.scope_items` method will be applied to this field's return value @@ -10001,23 +10010,23 @@ class GraphQL::Schema::Field private - # pkg:gem/graphql#lib/graphql/schema/field.rb:978 + # pkg:gem/graphql#lib/graphql/schema/field.rb:977 def apply_own_complexity_to(child_complexity, query, nodes); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:841 + # pkg:gem/graphql#lib/graphql/schema/field.rb:840 def assert_satisfactory_implementation(receiver, method_name, ruby_kwargs); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:955 + # pkg:gem/graphql#lib/graphql/schema/field.rb:954 def run_extensions_before_resolve(obj, args, ctx, extended, idx: T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:996 + # pkg:gem/graphql#lib/graphql/schema/field.rb:995 def set_pagination_extensions(connection_extension:); end # Wrap execution with hooks. # Written iteratively to avoid big stack traces. # @return [Object] Whatever the # - # pkg:gem/graphql#lib/graphql/schema/field.rb:895 + # pkg:gem/graphql#lib/graphql/schema/field.rb:894 def with_extensions(obj, args, ctx); end class << self @@ -10055,33 +10064,33 @@ class GraphQL::Schema::Field::ConnectionExtension < ::GraphQL::Schema::FieldExte def resolve_next(objects:, arguments:, context:); end end -# pkg:gem/graphql#lib/graphql/schema/field.rb:881 +# pkg:gem/graphql#lib/graphql/schema/field.rb:880 class GraphQL::Schema::Field::ExtendedState - # pkg:gem/graphql#lib/graphql/schema/field.rb:882 + # pkg:gem/graphql#lib/graphql/schema/field.rb:881 def initialize(args, object); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def added_extras; end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def added_extras=(_arg0); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def arguments; end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def arguments=(_arg0); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def memos; end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def memos=(_arg0); end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def object; end - # pkg:gem/graphql#lib/graphql/schema/field.rb:889 + # pkg:gem/graphql#lib/graphql/schema/field.rb:888 def object=(_arg0); end end @@ -11395,7 +11404,7 @@ module GraphQL::Schema::Member::HasFields # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:113 def add_field(field_defn, method_conflict_warning: T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:176 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:180 def all_field_definitions; end # Add a field to this object or interface with the given definition @@ -11462,17 +11471,17 @@ module GraphQL::Schema::Member::HasFields # @param new_has_no_fields [Boolean] Call with `true` to make this Object type ignore the requirement to have any defined fields. # @return [void] # - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:161 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:165 def has_no_fields(new_has_no_fields); end # @return [Boolean] `true` if `has_no_fields(true)` was configued # - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:167 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:171 def has_no_fields?; end # @return [Hash GraphQL::Schema::Field, Array>] Fields defined on this class _specifically_, not parent classes # - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:172 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:176 def own_fields; end private @@ -11480,22 +11489,22 @@ module GraphQL::Schema::Member::HasFields # @param field_defn [GraphQL::Schema::Field] # @return [String] A warning to give when this field definition might conflict with a built-in method # - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:314 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:318 def conflict_field_name_warning(field_defn); end - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:280 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:284 def inherited(subclass); end # If `type` is an interface, and `self` has a type membership for `type`, then make sure it's visible. # - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:290 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:294 def visible_interface_implementation?(type, context, warden); end class << self - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:273 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:277 def extended(child_class); end - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:267 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:271 def included(child_class); end end end @@ -11515,25 +11524,25 @@ GraphQL::Schema::Member::HasFields::CONFLICT_FIELD_NAMES = T.let(T.unsafe(nil), # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:102 GraphQL::Schema::Member::HasFields::GRAPHQL_RUBY_KEYWORDS = T.let(T.unsafe(nil), Array) -# pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:188 +# pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:192 module GraphQL::Schema::Member::HasFields::InterfaceMethods # @return [Hash GraphQL::Schema::Field>] Fields on this object, keyed by name, including inherited fields # - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:203 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:207 def fields(context = T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:189 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:193 def get_field(field_name, context = T.unsafe(nil)); end end -# pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:222 +# pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:226 module GraphQL::Schema::Member::HasFields::ObjectMethods # @return [Hash GraphQL::Schema::Field>] Fields on this object, keyed by name, including inherited fields # - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:242 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:246 def fields(context = T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:223 + # pkg:gem/graphql#lib/graphql/schema/member/has_fields.rb:227 def get_field(field_name, context = T.unsafe(nil)); end end @@ -12186,7 +12195,7 @@ class GraphQL::Schema::Resolver # pkg:gem/graphql#lib/graphql/schema/resolver.rb:37 def initialize(object:, context:, field:); end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:101 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:112 def arguments; end # Called after arguments are loaded, but before resolving. @@ -12197,7 +12206,7 @@ class GraphQL::Schema::Resolver # @raise [GraphQL::UnauthorizedError] To signal an authorization failure # @return [Boolean, early_return_data] If `false`, execution will stop (and `early_return_data` will be returned instead, if present.) # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:195 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:206 def authorized?(**inputs); end # pkg:gem/graphql#lib/graphql/schema/resolver.rb:62 @@ -12205,7 +12214,7 @@ class GraphQL::Schema::Resolver # @api private {GraphQL::Schema::Mutation} uses this to clear the dataloader cache # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:160 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:171 def call_resolve(args_hash); end # @return [GraphQL::Query::Context] @@ -12249,6 +12258,12 @@ class GraphQL::Schema::Resolver # pkg:gem/graphql#lib/graphql/schema/resolver.rb:60 def prepared_arguments=(_arg0); end + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:49 + def raw_arguments; end + + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:49 + def raw_arguments=(_arg0); end + # Called before arguments are prepared. # Implement this hook to make checks before doing any work. # @@ -12260,13 +12275,13 @@ class GraphQL::Schema::Resolver # @raise [GraphQL::UnauthorizedError] To signal an authorization failure # @return [Boolean, early_return_data] If `false`, execution will stop (and `early_return_data` will be returned instead, if present.) # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:184 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:195 def ready?(**args); end # Do the work. Everything happens here. # @return [Object] An object corresponding to the return type # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:170 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:181 def resolve(**args); end # This method is _actually_ called by the runtime, @@ -12274,7 +12289,7 @@ class GraphQL::Schema::Resolver # the user-defined `#resolve` method. # @api private # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:109 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:120 def resolve_with_support(**args); end # Called when an object loaded by `loads:` fails the `.authorized?` check for its resolved GraphQL object type. @@ -12284,46 +12299,49 @@ class GraphQL::Schema::Resolver # Any value returned here will be used _instead of_ of the loaded object. # @param err [GraphQL::UnauthorizedError] # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:207 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:222 def unauthorized_object(err); end private - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:213 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:228 def authorize_arguments(args, inputs); end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:259 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:274 def get_argument(name, context = T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:232 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:247 def load_arguments(args); end class << self - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:276 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:291 def all_field_argument_definitions; end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:268 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:283 def any_field_arguments?; end # Add an argument to this field's signature, but # also add some preparation hook methods which will be used for this argument # @see {GraphQL::Schema::Argument#initialize} for the signature # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:417 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:432 def argument(*args, **kwargs, &block); end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:354 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:212 + def authorizes?(context); end + + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:369 def broadcastable(new_broadcastable); end # @return [Boolean, nil] # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:359 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:374 def broadcastable?; end # Specifies the complexity of the field. Defaults to `1` # @return [Integer, Proc] # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:347 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:362 def complexity(new_complexity = T.unsafe(nil)); end # Get or set the `default_page_size:` which will be configured for fields using this resolver @@ -12331,44 +12349,44 @@ class GraphQL::Schema::Resolver # @param default_page_size [Integer, nil] Set a new value # @return [Integer, nil] The `default_page_size` assigned to fields that use this resolver # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:392 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:407 def default_page_size(new_default_page_size = T.unsafe(nil)); end # Registers new extension # @param extension [Class] Extension class # @param options [Hash] Optional extension options # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:426 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:441 def extension(extension, **options); end # @api private # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:432 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:447 def extensions; end # Additional info injected into {#resolve} # @see {GraphQL::Schema::Field#extras} # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:291 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:306 def extras(new_extras = T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:264 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:279 def field_arguments(context = T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:272 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:287 def get_field_argument(name, context = T.unsafe(nil)); end # @return [Boolean] `true` if this resolver or a superclass has an assigned `default_page_size` # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:405 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:420 def has_default_page_size?; end # @return [Boolean] `true` if this resolver or a superclass has an assigned `max_page_size` # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:384 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:399 def has_max_page_size?; end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:451 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:466 def inherited(child_class); end # Get or set the `max_page_size:` which will be configured for fields using this resolver @@ -12376,7 +12394,7 @@ class GraphQL::Schema::Resolver # @param max_page_size [Integer, nil] Set a new value # @return [Integer, nil] The `max_page_size` assigned to fields that use this resolver # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:371 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:386 def max_page_size(new_max_page_size = T.unsafe(nil)); end # If `true` (default), then the return type for this resolver will be nullable. @@ -12385,16 +12403,16 @@ class GraphQL::Schema::Resolver # @see #type which sets the return type of this field and accepts a `null:` option # @param allow_null [Boolean] Whether or not the response can be null # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:304 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:319 def null(allow_null = T.unsafe(nil)); end # Default `:resolve` set below. # @return [Symbol] The method to call on instances of this object to resolve the field # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:282 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:297 def resolve_method(new_method = T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:312 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:327 def resolver_method(new_method_name = T.unsafe(nil)); end # Call this method to get the return type of the field, @@ -12405,17 +12423,17 @@ class GraphQL::Schema::Resolver # @param null [true, false] Whether or not the field may return `nil` # @return [Class] The type which this field returns. # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:327 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:342 def type(new_type = T.unsafe(nil), null: T.unsafe(nil)); end # A non-normalized type configuration, without `null` applied # - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:410 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:425 def type_expr; end private - # pkg:gem/graphql#lib/graphql/schema/resolver.rb:458 + # pkg:gem/graphql#lib/graphql/schema/resolver.rb:473 def own_extensions; end end end @@ -12522,69 +12540,69 @@ class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver # @api private # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:23 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:21 def initialize(object:, context:, field:); end # @return [Subscriptions::Event] This object is used as a representation of this subscription for the backend # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:191 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:189 def event; end # If an argument is flagged with `loads:` and no object is found for it, # remove this subscription (assuming that the object was deleted in the meantime, # or that it became inaccessible). # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:107 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:105 def load_application_object_failed(err); end # Implement the {Resolve} API. # You can implement this if you want code to run for _both_ the initial subscription # and for later updates. Or, implement {#subscribe} and {#update} # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:61 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:59 def resolve(**args); end # Wrap the user-defined `#subscribe` hook # @api private # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:69 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:67 def resolve_subscribe(**args); end # Wrap the user-provided `#update` hook # @api private # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:87 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:85 def resolve_update(**args); end # @api private # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:36 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:34 def resolve_with_support(**args); end # The default implementation returns nothing on subscribe. # Override it to return an object or # `:no_response` to (explicitly) return nothing. # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:81 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:79 def subscribe(args = T.unsafe(nil)); end # @return [Boolean] `true` if {#write_subscription} was called already # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:186 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:184 def subscription_written?; end # Call this to halt execution and remove this subscription from the system # @param update_value [Object] if present, deliver this update before unsubscribing # @return [void] # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:117 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:115 def unsubscribe(update_value = T.unsafe(nil)); end # The default implementation returns the root object. # Override it to return {NO_UPDATE} if you want to # skip updates sometimes. Or override it to return a different object. # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:100 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:98 def update(args = T.unsafe(nil)); end # Calls through to `schema.subscriptions` to register this subscription with the backend. @@ -12597,7 +12615,7 @@ class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver # later in execution. # @return [void] # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:175 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:173 def write_subscription; end class << self @@ -12607,10 +12625,10 @@ class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver # @param optional [Boolean] If true, then don't require `scope:` to be provided to updates to this subscription. # @return [Symbol] # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:127 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:125 def subscription_scope(new_scope = T.unsafe(nil), optional: T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:138 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:136 def subscription_scope_optional?; end # This is called during initial subscription to get a "name" for this subscription. @@ -12630,7 +12648,7 @@ class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver # @param scope [Object, nil] A value corresponding to `.trigger(... scope:)` (for updates) or the `subscription_scope` found in `context` (for initial subscriptions). # @return [String] An identifier corresponding to a stream of updates # - # pkg:gem/graphql#lib/graphql/schema/subscription.rb:162 + # pkg:gem/graphql#lib/graphql/schema/subscription.rb:160 def topic_for(arguments:, field:, scope:); end end end @@ -13452,55 +13470,55 @@ end # # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:15 class GraphQL::Schema::Visibility::Profile - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:60 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:63 def initialize(context:, schema:, visibility:, name: T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:261 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:225 def all_types; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:266 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:230 def all_types_h; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:214 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:178 def argument(owner, arg_name); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:210 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:174 def arguments(owner); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:275 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:239 def directive_exists?(dir_name); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:279 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:243 def directives; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:271 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:235 def enum_values(owner); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:176 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:166 def field(owner, field_name); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:127 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:138 def field_on_visible_interface?(field, owner); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:206 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:170 def fields(owner); end # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:34 def freeze; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:241 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:205 def interfaces(obj_or_int_type); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:285 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:249 def loadable?(t, _ctx); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:289 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:253 def loadable_possible_types(t, _ctx); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:293 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:257 def loaded_types; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:253 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:217 def mutation_root; end # @return [Symbol, nil] @@ -13508,45 +13526,51 @@ class GraphQL::Schema::Visibility::Profile # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:32 def name; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:237 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:201 def possible_types(type); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:306 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:270 def preload; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:249 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:213 def query_root; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:297 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:261 def reachable_type?(type_name); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:257 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:221 def subscription_root; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:151 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:162 def type(type_name); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:302 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:266 def visible_enum_value?(enum_value, _ctx = T.unsafe(nil)); end private - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:363 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:334 + def compute_field(owner, field_name); end + + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:309 + def compute_type(type_name); end + + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:382 def load_all_types; end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:344 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:363 def non_duplicate_items(definitions, visibility_cache); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:402 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:421 def possible_types_for(type); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:359 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:378 def raise_duplicate_definition(first_defn, second_defn); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:387 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:406 def referenced?(type_defn); end - # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:436 + # pkg:gem/graphql#lib/graphql/schema/visibility/profile.rb:455 def visible_field_for(owner, field); end class << self @@ -13953,9 +13977,12 @@ class GraphQL::Schema::Wrapper # pkg:gem/graphql#lib/graphql/schema/wrapper.rb:11 def initialize(of_type); end - # pkg:gem/graphql#lib/graphql/schema/wrapper.rb:19 + # pkg:gem/graphql#lib/graphql/schema/wrapper.rb:25 def ==(other); end + # pkg:gem/graphql#lib/graphql/schema/wrapper.rb:19 + def freeze; end + # @return [Class, Module] The inner type of this wrapping type, the type of which one or more objects may be present. # # pkg:gem/graphql#lib/graphql/schema/wrapper.rb:9 @@ -14047,15 +14074,15 @@ module GraphQL::StaticValidation::ArgumentsAreDefined private - # pkg:gem/graphql#lib/graphql/static_validation/rules/arguments_are_defined.rb:44 + # pkg:gem/graphql#lib/graphql/static_validation/rules/arguments_are_defined.rb:47 def node_type(parent); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/arguments_are_defined.rb:48 + # pkg:gem/graphql#lib/graphql/static_validation/rules/arguments_are_defined.rb:51 def parent_definition(parent); end # TODO smell: these methods are added to all visitors, since they're included in a module. # - # pkg:gem/graphql#lib/graphql/static_validation/rules/arguments_are_defined.rb:31 + # pkg:gem/graphql#lib/graphql/static_validation/rules/arguments_are_defined.rb:34 def parent_name(parent, type_defn); end end @@ -14090,22 +14117,17 @@ class GraphQL::StaticValidation::BaseVisitor < ::GraphQL::Language::StaticVisito # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:5 def initialize(document, context); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:18 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:22 def context; end - # @return [Array] Types whose scope we've entered - # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:21 - def object_types; end - # @return [Array] The nesting of the current position in the AST # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:24 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:25 def path; end private - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:191 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:215 def add_error(error, path: T.unsafe(nil)); end class << self @@ -14114,71 +14136,66 @@ class GraphQL::StaticValidation::BaseVisitor < ::GraphQL::Language::StaticVisito # @param rules [Array] # @return [Class] A class for validating `rules` during visitation # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:32 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:33 def including_rules(rules); end end end -# pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:55 +# pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:56 module GraphQL::StaticValidation::BaseVisitor::ContextMethods # @return [GraphQL::Argument, nil] The most-recently-entered GraphQL::Argument, if currently inside one # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:164 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:204 def argument_definition; end # @return [GraphQL::Directive, nil] The most-recently-entered GraphQL::Directive, if currently inside one # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:159 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:199 def directive_definition; end # @return [GraphQL::Field, nil] The most-recently-entered GraphQL::Field, if currently inside one # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:154 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:194 def field_definition; end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:103 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:137 def on_argument(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:96 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:129 def on_directive(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:79 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:108 def on_field(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:65 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:70 def on_fragment_definition(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:126 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:164 def on_fragment_spread(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:72 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:89 def on_inline_fragment(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:132 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:171 def on_input_object(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:56 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:57 def on_operation_definition(node, parent); end # @return [GraphQL::BaseType] The type which the current type came from # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:149 + # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:189 def parent_type_definition; end # @return [GraphQL::BaseType] The current object type # - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:144 - def type_definition; end - - private - - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:172 - def on_fragment_with_type(node); end - # pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:184 - def push_type(t); end + def type_definition; end end +# pkg:gem/graphql#lib/graphql/static_validation/base_visitor.rb:87 +GraphQL::StaticValidation::BaseVisitor::ContextMethods::INLINE_FRAGMENT_NO_TYPE = T.let(T.unsafe(nil), String) + # Track fragment dependencies for operations # and expose the fragment definitions which # are used by a given operation @@ -14389,7 +14406,7 @@ module GraphQL::StaticValidation::FieldsAreDefinedOnType private - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_are_defined_on_type.rb:34 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_are_defined_on_type.rb:35 def possible_fields(context, parent_type); end end @@ -14423,12 +14440,12 @@ module GraphQL::StaticValidation::FieldsHaveAppropriateSelections # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb:9 def on_field(node, parent); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb:16 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb:15 def on_operation_definition(node, _parent); end private - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb:25 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb:24 def validate_field_selections(ast_node, resolved_type); end end @@ -14454,161 +14471,126 @@ end # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:6 module GraphQL::StaticValidation::FieldsWillMerge - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:17 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:38 def initialize(*_arg0); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:29 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:59 def on_field(node, _parent); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:24 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:52 def on_operation_definition(node, _parent); end private - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:453 - def compared_fragments_key(frag1, frag2, exclusive); end + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:443 + def cached_sub_fields(node, return_type); end + + # Collect all fields from selections, expanding fragment spreads inline. + # Returns a Hash of { response_key => Field | [Field, ...] } + # + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:131 + def collect_fields(selections, owner_type:, parents:); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:36 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:137 + def collect_fields_inner(selections, owner_type:, parents:, response_keys:, visited_fragments:); end + + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:108 def conflicts; end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:51 + # Core algorithm: collect ALL fields (expanding fragments inline) into a flat + # map keyed by response key, then compare within each group. + # + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:118 def conflicts_within_selection_set(node, parent_type); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:391 - def fields_and_fragments_from_selection(node, owner_type:, parents:); end + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:291 + def field_signature(field); end + + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:282 + def fields_same_signature?(f1, f2); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:206 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:303 def find_conflict(response_key, field1, field2, mutually_exclusive: T.unsafe(nil)); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:371 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:457 def find_conflicts_between(response_keys, response_keys2, mutually_exclusive:); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:158 - def find_conflicts_between_fields_and_fragment(fragment_spread, fields, mutually_exclusive:); end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:92 - def find_conflicts_between_fragments(fragment_spread1, fragment_spread2, mutually_exclusive:); end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:312 + # When two fields with the same response key both have sub-selections, + # we need to check those sub-selections against each other. + # + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:413 def find_conflicts_between_sub_selection_sets(field1, field2, mutually_exclusive:); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:190 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:198 def find_conflicts_within(response_keys); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:402 - def find_fields_and_fragments(selections, owner_type:, parents:, fields:, fragment_spreads:); end - # Given two list of parents, find out if they are mutually exclusive - # In this context, `parents` represents the "self scope" of the field, - # what types may be found at this point in the query. # - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:464 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:512 def mutually_exclusive?(parents1, parents2); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:286 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:387 def return_types_conflict?(type1, type2); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:419 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:478 def same_arguments?(field1, field2); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:434 + # Quick check: can the direct children of this selection set possibly conflict? + # If all direct selections are Fields with unique names and no aliases, + # and there are no fragments, then no response key can have >1 field, + # so there are no merge conflicts to check at this level. + # + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:74 + def selections_may_conflict?(selections); end + + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:492 def serialize_arg(arg_value); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:445 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:503 def serialize_field_args(field); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:44 - def setting_errors; end + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:547 + def types_mutually_exclusive?(type1, type2); end end -# pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 -class GraphQL::StaticValidation::FieldsWillMerge::Field < ::Struct - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def definition; end +# pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:19 +class GraphQL::StaticValidation::FieldsWillMerge::Field + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:22 + def initialize(node, definition, owner_type, parents); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def definition=(_); end + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:20 + def definition; end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:20 def node; end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def node=(_); end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:20 def owner_type; end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def owner_type=(_); end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:20 def parents; end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def parents=(_); end - - class << self - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def [](*_arg0); end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def inspect; end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def keyword_init?; end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def members; end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:14 - def new(*_arg0); end - end -end - -# pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 -class GraphQL::StaticValidation::FieldsWillMerge::FragmentSpread < ::Struct - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def name; end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def name=(_); end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def parents; end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def parents=(_); end - - class << self - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def [](*_arg0); end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def inspect; end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def keyword_init?; end - - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def members; end + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:29 + def return_type; end - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:15 - def new(*_arg0); end - end + # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:33 + def unwrapped_return_type; end end # Validates that a selection set is valid if all fields (including spreading any # fragments) either correspond to distinct response names or can be merged # without ambiguity. # -# Original Algorithm: https://github.com/graphql/graphql-js/blob/master/src/validation/rules/OverlappingFieldsCanBeMerged.js +# Optimized algorithm based on: +# https://tech.new-work.se/graphql-overlapping-fields-can-be-merged-fast-ea6e92e0a01 # -# pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:12 +# Instead of comparing fields, fields-vs-fragments, and fragments-vs-fragments +# separately (which leads to exponential recursion through nested fragments), +# we flatten all fragment spreads into a single field map and compare within it. +# +# pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:17 GraphQL::StaticValidation::FieldsWillMerge::NO_ARGS = T.let(T.unsafe(nil), Hash) -# pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge.rb:389 -GraphQL::StaticValidation::FieldsWillMerge::NO_SELECTIONS = T.let(T.unsafe(nil), Array) - # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge_error.rb:4 class GraphQL::StaticValidation::FieldsWillMergeError < ::GraphQL::StaticValidation::Error # pkg:gem/graphql#lib/graphql/static_validation/rules/fields_will_merge_error.rb:8 @@ -15157,15 +15139,18 @@ end # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:4 module GraphQL::StaticValidation::RequiredArgumentsArePresent - # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:10 + # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:5 + def initialize(*_arg0); end + + # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:15 def on_directive(node, _parent); end - # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:5 + # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:10 def on_field(node, _parent); end private - # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:18 + # pkg:gem/graphql#lib/graphql/static_validation/rules/required_arguments_are_present.rb:23 def assert_required_args(ast_node, defn); end end @@ -15364,9 +15349,6 @@ class GraphQL::StaticValidation::ValidationContext # pkg:gem/graphql#lib/graphql/static_validation/validation_context.rb:14 def max_errors; end - # pkg:gem/graphql#lib/graphql/static_validation/validation_context.rb:33 - def object_types(*_arg0, **_arg1, &_arg2); end - # pkg:gem/graphql#lib/graphql/static_validation/validation_context.rb:37 def on_dependency_resolve(&handler); end @@ -15578,7 +15560,7 @@ module GraphQL::StaticValidation::VariablesAreInputTypes private - # pkg:gem/graphql#lib/graphql/static_validation/rules/variables_are_input_types.rb:39 + # pkg:gem/graphql#lib/graphql/static_validation/rules/variables_are_input_types.rb:42 def get_type_name(ast_type); end end @@ -15797,6 +15779,20 @@ class GraphQL::Subscriptions # pkg:gem/graphql#lib/graphql/subscriptions.rb:104 def execute_update(subscription_id, event, object); end + # Called during execution when a subscription operation has finished + # @param query [GraphQL::Query] + # @return [void] + # + # pkg:gem/graphql#lib/graphql/subscriptions.rb:255 + def finish_subscriptions(query); end + + # Called during execution when a new `subscription ...` operation is received + # @param query [GraphQL::Query] + # @return [void] + # + # pkg:gem/graphql#lib/graphql/subscriptions.rb:245 + def initialize_subscriptions(query); end + # Convert a user-provided event name or argument # to the equivalent in GraphQL. # @@ -15855,7 +15851,7 @@ class GraphQL::Subscriptions # @param args [Hash, Array, Any] some GraphQL input value to coerce as `arg_owner` # @return [Any] normalized arguments value # - # pkg:gem/graphql#lib/graphql/subscriptions.rb:250 + # pkg:gem/graphql#lib/graphql/subscriptions.rb:270 def normalize_arguments(event_name, arg_owner, args, context); end class << self @@ -16061,11 +16057,22 @@ end # pkg:gem/graphql#lib/graphql/subscriptions/default_subscription_resolve_extension.rb:4 class GraphQL::Subscriptions::DefaultSubscriptionResolveExtension < ::GraphQL::Schema::FieldExtension - # pkg:gem/graphql#lib/graphql/subscriptions/default_subscription_resolve_extension.rb:20 + # pkg:gem/graphql#lib/graphql/subscriptions/default_subscription_resolve_extension.rb:34 def after_resolve(value:, context:, object:, arguments:, **rest); end + # pkg:gem/graphql#lib/graphql/subscriptions/default_subscription_resolve_extension.rb:38 + def after_resolve_next(values:, context:, objects:, arguments:, **rest); end + # pkg:gem/graphql#lib/graphql/subscriptions/default_subscription_resolve_extension.rb:5 def resolve(context:, object:, arguments:); end + + # pkg:gem/graphql#lib/graphql/subscriptions/default_subscription_resolve_extension.rb:20 + def resolve_next(context:, objects:, arguments:); end + + class << self + # pkg:gem/graphql#lib/graphql/subscriptions/default_subscription_resolve_extension.rb:44 + def write_subscription(field, value, arguments, context); end + end end # This thing can be: @@ -16123,7 +16130,7 @@ class GraphQL::Subscriptions::Event # pkg:gem/graphql#lib/graphql/subscriptions/event.rb:79 def deep_sort_hash_keys(hash_to_sort); end - # pkg:gem/graphql#lib/graphql/subscriptions/event.rb:150 + # pkg:gem/graphql#lib/graphql/subscriptions/event.rb:151 def get_arg_definition(arg_owner, arg_name, context); end # pkg:gem/graphql#lib/graphql/subscriptions/event.rb:105 @@ -19738,6 +19745,9 @@ class GraphQL::UnauthorizedError < ::GraphQL::RuntimeError # pkg:gem/graphql#lib/graphql/unauthorized_error.rb:17 def initialize(message = T.unsafe(nil), object: T.unsafe(nil), type: T.unsafe(nil), context: T.unsafe(nil)); end + # pkg:gem/graphql#lib/graphql/unauthorized_error.rb:33 + def assign_graphql_result(query, result_data, key); end + # pkg:gem/graphql#lib/graphql/unauthorized_error.rb:31 def ast_nodes; end diff --git a/sorbet/rbi/gems/rbi@0.3.9.rbi b/sorbet/rbi/gems/rbi@0.3.10.rbi similarity index 87% rename from sorbet/rbi/gems/rbi@0.3.9.rbi rename to sorbet/rbi/gems/rbi@0.3.10.rbi index e5f2bb649..05af80e91 100644 --- a/sorbet/rbi/gems/rbi@0.3.9.rbi +++ b/sorbet/rbi/gems/rbi@0.3.10.rbi @@ -14,42 +14,42 @@ # pkg:gem/rbi#lib/rbi.rb:7 module RBI; end -# pkg:gem/rbi#lib/rbi/model.rb:833 +# pkg:gem/rbi#lib/rbi/model.rb:862 class RBI::Arg < ::RBI::Node - # pkg:gem/rbi#lib/rbi/model.rb:838 + # pkg:gem/rbi#lib/rbi/model.rb:867 sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(value, loc: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/model.rb:844 + # pkg:gem/rbi#lib/rbi/model.rb:873 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # pkg:gem/rbi#lib/rbi/model.rb:849 + # pkg:gem/rbi#lib/rbi/model.rb:878 sig { returns(::String) } def to_s; end - # pkg:gem/rbi#lib/rbi/model.rb:835 + # pkg:gem/rbi#lib/rbi/model.rb:864 sig { returns(::String) } def value; end end # @abstract # -# pkg:gem/rbi#lib/rbi/model.rb:298 +# pkg:gem/rbi#lib/rbi/model.rb:325 class RBI::Attr < ::RBI::NodeWithComments include ::RBI::Indexable abstract! - # pkg:gem/rbi#lib/rbi/model.rb:316 + # pkg:gem/rbi#lib/rbi/model.rb:353 sig do params( name: ::Symbol, names: T::Array[::Symbol], visibility: ::RBI::Visibility, - sigs: T::Array[::RBI::Sig], + sigs: T.nilable(T::Array[::RBI::Sig]), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment] + comments: T.nilable(T::Array[::RBI::Comment]) ).void end def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end @@ -68,7 +68,7 @@ class RBI::Attr < ::RBI::NodeWithComments # @abstract # - # pkg:gem/rbi#lib/rbi/model.rb:325 + # pkg:gem/rbi#lib/rbi/model.rb:362 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end @@ -84,19 +84,27 @@ class RBI::Attr < ::RBI::NodeWithComments sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # pkg:gem/rbi#lib/rbi/model.rb:300 + # pkg:gem/rbi#lib/rbi/model.rb:327 sig { returns(T::Array[::Symbol]) } def names; end - # pkg:gem/rbi#lib/rbi/model.rb:306 + # pkg:gem/rbi#lib/rbi/model.rb:333 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # pkg:gem/rbi#lib/rbi/model.rb:303 + # pkg:gem/rbi#lib/rbi/model.rb:343 + sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Sig]) } + def sigs=(sigs); end + + # pkg:gem/rbi#lib/rbi/model.rb:338 + sig { returns(T::Boolean) } + def sigs?; end + + # pkg:gem/rbi#lib/rbi/model.rb:330 sig { returns(::RBI::Visibility) } def visibility; end - # pkg:gem/rbi#lib/rbi/model.rb:303 + # pkg:gem/rbi#lib/rbi/model.rb:330 def visibility=(_arg0); end private @@ -133,17 +141,17 @@ class RBI::Attr < ::RBI::NodeWithComments def parse_sig; end end -# pkg:gem/rbi#lib/rbi/model.rb:328 +# pkg:gem/rbi#lib/rbi/model.rb:365 class RBI::AttrAccessor < ::RBI::Attr - # pkg:gem/rbi#lib/rbi/model.rb:337 + # pkg:gem/rbi#lib/rbi/model.rb:374 sig do params( name: ::Symbol, names: ::Symbol, visibility: ::RBI::Visibility, - sigs: T::Array[::RBI::Sig], + sigs: T.nilable(T::Array[::RBI::Sig]), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::AttrAccessor).void) ).void end @@ -163,28 +171,28 @@ class RBI::AttrAccessor < ::RBI::Attr # @override # - # pkg:gem/rbi#lib/rbi/model.rb:344 + # pkg:gem/rbi#lib/rbi/model.rb:381 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:351 + # pkg:gem/rbi#lib/rbi/model.rb:388 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:357 +# pkg:gem/rbi#lib/rbi/model.rb:394 class RBI::AttrReader < ::RBI::Attr - # pkg:gem/rbi#lib/rbi/model.rb:366 + # pkg:gem/rbi#lib/rbi/model.rb:403 sig do params( name: ::Symbol, names: ::Symbol, visibility: ::RBI::Visibility, - sigs: T::Array[::RBI::Sig], + sigs: T.nilable(T::Array[::RBI::Sig]), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::AttrReader).void) ).void end @@ -204,28 +212,28 @@ class RBI::AttrReader < ::RBI::Attr # @override # - # pkg:gem/rbi#lib/rbi/model.rb:373 + # pkg:gem/rbi#lib/rbi/model.rb:410 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:380 + # pkg:gem/rbi#lib/rbi/model.rb:417 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:386 +# pkg:gem/rbi#lib/rbi/model.rb:423 class RBI::AttrWriter < ::RBI::Attr - # pkg:gem/rbi#lib/rbi/model.rb:395 + # pkg:gem/rbi#lib/rbi/model.rb:432 sig do params( name: ::Symbol, names: ::Symbol, visibility: ::RBI::Visibility, - sigs: T::Array[::RBI::Sig], + sigs: T.nilable(T::Array[::RBI::Sig]), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::AttrWriter).void) ).void end @@ -245,13 +253,13 @@ class RBI::AttrWriter < ::RBI::Attr # @override # - # pkg:gem/rbi#lib/rbi/model.rb:402 + # pkg:gem/rbi#lib/rbi/model.rb:439 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:409 + # pkg:gem/rbi#lib/rbi/model.rb:446 sig { override.returns(::String) } def to_s; end end @@ -265,39 +273,35 @@ class RBI::BlankLine < ::RBI::Comment def initialize(loc: T.unsafe(nil)); end end -# pkg:gem/rbi#lib/rbi/model.rb:679 +# pkg:gem/rbi#lib/rbi/model.rb:710 class RBI::BlockParam < ::RBI::Param - # pkg:gem/rbi#lib/rbi/model.rb:681 + # pkg:gem/rbi#lib/rbi/model.rb:712 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::BlockParam).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:693 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - # @override # - # pkg:gem/rbi#lib/rbi/model.rb:688 + # pkg:gem/rbi#lib/rbi/model.rb:719 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:195 +# pkg:gem/rbi#lib/rbi/model.rb:217 class RBI::Class < ::RBI::Scope - # pkg:gem/rbi#lib/rbi/model.rb:203 + # pkg:gem/rbi#lib/rbi/model.rb:230 sig do params( name: ::String, superclass_name: T.nilable(::String), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Class).void) ).void end @@ -311,22 +315,22 @@ class RBI::Class < ::RBI::Scope # @override # - # pkg:gem/rbi#lib/rbi/model.rb:212 + # pkg:gem/rbi#lib/rbi/model.rb:239 sig { override.returns(::String) } def fully_qualified_name; end - # pkg:gem/rbi#lib/rbi/model.rb:197 + # pkg:gem/rbi#lib/rbi/model.rb:219 sig { returns(::String) } def name; end - # pkg:gem/rbi#lib/rbi/model.rb:197 + # pkg:gem/rbi#lib/rbi/model.rb:219 def name=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:200 + # pkg:gem/rbi#lib/rbi/model.rb:222 sig { returns(T.nilable(::String)) } def superclass_name; end - # pkg:gem/rbi#lib/rbi/model.rb:200 + # pkg:gem/rbi#lib/rbi/model.rb:222 def superclass_name=(_arg0); end end @@ -363,40 +367,40 @@ end # end # ~~~ # -# pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:572 +# pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:589 class RBI::ConflictTree < ::RBI::Tree - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:580 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:597 sig { params(left_name: ::String, right_name: ::String).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:574 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:591 sig { returns(::RBI::Tree) } def left; end - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:577 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:594 sig { returns(::String) } def left_name; end - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:574 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:591 def right; end - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:577 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:594 def right_name; end end # Consts # -# pkg:gem/rbi#lib/rbi/model.rb:269 +# pkg:gem/rbi#lib/rbi/model.rb:296 class RBI::Const < ::RBI::NodeWithComments include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:274 + # pkg:gem/rbi#lib/rbi/model.rb:301 sig do params( name: ::String, value: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Const).void) ).void end @@ -408,7 +412,7 @@ class RBI::Const < ::RBI::NodeWithComments sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # pkg:gem/rbi#lib/rbi/model.rb:282 + # pkg:gem/rbi#lib/rbi/model.rb:309 sig { returns(::String) } def fully_qualified_name; end @@ -418,17 +422,17 @@ class RBI::Const < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # pkg:gem/rbi#lib/rbi/model.rb:271 + # pkg:gem/rbi#lib/rbi/model.rb:298 sig { returns(::String) } def name; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:290 + # pkg:gem/rbi#lib/rbi/model.rb:317 sig { override.returns(::String) } def to_s; end - # pkg:gem/rbi#lib/rbi/model.rb:271 + # pkg:gem/rbi#lib/rbi/model.rb:298 def value; end end @@ -438,17 +442,17 @@ class RBI::DuplicateNodeError < ::RBI::Error; end # pkg:gem/rbi#lib/rbi.rb:8 class RBI::Error < ::StandardError; end -# pkg:gem/rbi#lib/rbi/model.rb:726 +# pkg:gem/rbi#lib/rbi/model.rb:752 class RBI::Extend < ::RBI::Mixin include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:728 + # pkg:gem/rbi#lib/rbi/model.rb:754 sig do params( name: ::String, names: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Extend).void) ).void end @@ -456,7 +460,7 @@ class RBI::Extend < ::RBI::Mixin # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:505 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:522 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -468,39 +472,44 @@ class RBI::Extend < ::RBI::Mixin # @override # - # pkg:gem/rbi#lib/rbi/model.rb:735 + # pkg:gem/rbi#lib/rbi/model.rb:761 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:131 +# pkg:gem/rbi#lib/rbi/model.rb:143 class RBI::File - # pkg:gem/rbi#lib/rbi/model.rb:142 + # pkg:gem/rbi#lib/rbi/model.rb:164 sig do params( strictness: T.nilable(::String), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(file: ::RBI::File).void) ).void end def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:150 + # pkg:gem/rbi#lib/rbi/model.rb:172 sig { params(node: ::RBI::Node).void } def <<(node); end - # pkg:gem/rbi#lib/rbi/model.rb:139 + # pkg:gem/rbi#lib/rbi/model.rb:154 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # pkg:gem/rbi#lib/rbi/model.rb:139 - def comments=(_arg0); end + # pkg:gem/rbi#lib/rbi/model.rb:151 + sig { params(comments: T::Array[::RBI::Comment]).returns(T::Array[::RBI::Comment]) } + def comments=(comments); end - # pkg:gem/rbi#lib/rbi/model.rb:155 + # pkg:gem/rbi#lib/rbi/model.rb:159 + sig { returns(T::Boolean) } + def comments?; end + + # pkg:gem/rbi#lib/rbi/model.rb:177 sig { returns(T::Boolean) } def empty?; end - # pkg:gem/rbi#lib/rbi/printer.rb:819 + # pkg:gem/rbi#lib/rbi/printer.rb:877 sig do params( out: T.any(::IO, ::StringIO), @@ -511,29 +520,29 @@ 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 - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1231 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1236 sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void } def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1237 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1242 sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/model.rb:133 + # pkg:gem/rbi#lib/rbi/model.rb:145 sig { returns(::RBI::Tree) } def root; end - # pkg:gem/rbi#lib/rbi/model.rb:133 + # pkg:gem/rbi#lib/rbi/model.rb:145 def root=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:136 + # pkg:gem/rbi#lib/rbi/model.rb:148 sig { returns(T.nilable(::String)) } def strictness; end - # pkg:gem/rbi#lib/rbi/model.rb:136 + # pkg:gem/rbi#lib/rbi/model.rb:148 def strictness=(_arg0); end - # pkg:gem/rbi#lib/rbi/printer.rb:825 + # pkg:gem/rbi#lib/rbi/printer.rb:883 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 @@ -574,64 +583,64 @@ class RBI::Formatter def print_file(file); end end -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:84 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:86 class RBI::Group < ::RBI::Tree - # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:89 + # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:91 sig { params(kind: ::RBI::Group::Kind).void } def initialize(kind); end - # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:86 + # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:88 sig { returns(::RBI::Group::Kind) } def kind; end end -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:94 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:96 class RBI::Group::Kind class << self private - # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:109 + # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:111 def new(*_arg0); end end end -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:101 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:103 RBI::Group::Kind::Attrs = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:107 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:109 RBI::Group::Kind::Consts = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:97 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:99 RBI::Group::Kind::Helpers = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:104 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:106 RBI::Group::Kind::Inits = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:105 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:107 RBI::Group::Kind::Methods = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:99 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:101 RBI::Group::Kind::MixesInClassMethods = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:95 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:97 RBI::Group::Kind::Mixins = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:96 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:98 RBI::Group::Kind::RequiredAncestors = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:100 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:102 RBI::Group::Kind::Sends = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:106 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:108 RBI::Group::Kind::SingletonClasses = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:103 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:105 RBI::Group::Kind::TEnums = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:102 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:104 RBI::Group::Kind::TStructFields = T.let(T.unsafe(nil), RBI::Group::Kind) -# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:98 +# pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:100 RBI::Group::Kind::TypeMembers = T.let(T.unsafe(nil), RBI::Group::Kind) # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:5 @@ -639,16 +648,16 @@ class RBI::GroupNodesError < ::RBI::Error; end # Sorbet's misc. # -# pkg:gem/rbi#lib/rbi/model.rb:1141 +# pkg:gem/rbi#lib/rbi/model.rb:1187 class RBI::Helper < ::RBI::NodeWithComments include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:1146 + # pkg:gem/rbi#lib/rbi/model.rb:1192 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Helper).void) ).void end @@ -656,7 +665,7 @@ class RBI::Helper < ::RBI::NodeWithComments # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:521 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:538 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -666,28 +675,28 @@ class RBI::Helper < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # pkg:gem/rbi#lib/rbi/model.rb:1143 + # pkg:gem/rbi#lib/rbi/model.rb:1189 sig { returns(::String) } def name; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1154 + # pkg:gem/rbi#lib/rbi/model.rb:1200 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:712 +# pkg:gem/rbi#lib/rbi/model.rb:738 class RBI::Include < ::RBI::Mixin include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:714 + # pkg:gem/rbi#lib/rbi/model.rb:740 sig do params( name: ::String, names: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Include).void) ).void end @@ -695,7 +704,7 @@ class RBI::Include < ::RBI::Mixin # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:497 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:514 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -707,7 +716,7 @@ class RBI::Include < ::RBI::Mixin # @override # - # pkg:gem/rbi#lib/rbi/model.rb:721 + # pkg:gem/rbi#lib/rbi/model.rb:747 sig { override.returns(::String) } def to_s; end end @@ -767,98 +776,86 @@ module RBI::Indexable def index_ids; end end -# pkg:gem/rbi#lib/rbi/model.rb:854 +# pkg:gem/rbi#lib/rbi/model.rb:883 class RBI::KwArg < ::RBI::Arg - # pkg:gem/rbi#lib/rbi/model.rb:859 + # pkg:gem/rbi#lib/rbi/model.rb:888 sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(keyword, value, loc: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/model.rb:865 + # pkg:gem/rbi#lib/rbi/model.rb:894 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # pkg:gem/rbi#lib/rbi/model.rb:856 + # pkg:gem/rbi#lib/rbi/model.rb:885 sig { returns(::String) } def keyword; end - # pkg:gem/rbi#lib/rbi/model.rb:870 + # pkg:gem/rbi#lib/rbi/model.rb:899 sig { returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:637 +# pkg:gem/rbi#lib/rbi/model.rb:678 class RBI::KwOptParam < ::RBI::Param - # pkg:gem/rbi#lib/rbi/model.rb:642 + # pkg:gem/rbi#lib/rbi/model.rb:683 sig do params( name: ::String, value: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::KwOptParam).void) ).void end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:655 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - # @override # - # pkg:gem/rbi#lib/rbi/model.rb:650 + # pkg:gem/rbi#lib/rbi/model.rb:691 sig { override.returns(::String) } def to_s; end - # pkg:gem/rbi#lib/rbi/model.rb:639 + # pkg:gem/rbi#lib/rbi/model.rb:680 sig { returns(::String) } def value; end end -# pkg:gem/rbi#lib/rbi/model.rb:618 +# pkg:gem/rbi#lib/rbi/model.rb:664 class RBI::KwParam < ::RBI::Param - # pkg:gem/rbi#lib/rbi/model.rb:620 + # pkg:gem/rbi#lib/rbi/model.rb:666 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::KwParam).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:632 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - # @override # - # pkg:gem/rbi#lib/rbi/model.rb:627 + # pkg:gem/rbi#lib/rbi/model.rb:673 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:660 +# pkg:gem/rbi#lib/rbi/model.rb:696 class RBI::KwRestParam < ::RBI::Param - # pkg:gem/rbi#lib/rbi/model.rb:662 + # pkg:gem/rbi#lib/rbi/model.rb:698 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::KwRestParam).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:674 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - # @override # - # pkg:gem/rbi#lib/rbi/model.rb:669 + # pkg:gem/rbi#lib/rbi/model.rb:705 sig { override.returns(::String) } def to_s; end end @@ -935,67 +932,67 @@ end # Methods and args # -# pkg:gem/rbi#lib/rbi/model.rb:417 +# pkg:gem/rbi#lib/rbi/model.rb:454 class RBI::Method < ::RBI::NodeWithComments include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:442 + # pkg:gem/rbi#lib/rbi/model.rb:491 sig do params( name: ::String, - params: T::Array[::RBI::Param], + params: T.nilable(T::Array[::RBI::Param]), is_singleton: T::Boolean, visibility: ::RBI::Visibility, - sigs: T::Array[::RBI::Sig], + sigs: T.nilable(T::Array[::RBI::Sig]), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Method).void) ).void 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 - # pkg:gem/rbi#lib/rbi/model.rb:462 + # pkg:gem/rbi#lib/rbi/model.rb:511 sig { params(param: ::RBI::Param).void } def <<(param); end - # pkg:gem/rbi#lib/rbi/model.rb:497 + # pkg:gem/rbi#lib/rbi/model.rb:546 sig { params(name: ::String).void } def add_block_param(name); end - # pkg:gem/rbi#lib/rbi/model.rb:487 + # pkg:gem/rbi#lib/rbi/model.rb:536 sig { params(name: ::String, default_value: ::String).void } def add_kw_opt_param(name, default_value); end - # pkg:gem/rbi#lib/rbi/model.rb:482 + # pkg:gem/rbi#lib/rbi/model.rb:531 sig { params(name: ::String).void } def add_kw_param(name); end - # pkg:gem/rbi#lib/rbi/model.rb:492 + # pkg:gem/rbi#lib/rbi/model.rb:541 sig { params(name: ::String).void } def add_kw_rest_param(name); end - # pkg:gem/rbi#lib/rbi/model.rb:472 + # pkg:gem/rbi#lib/rbi/model.rb:521 sig { params(name: ::String, default_value: ::String).void } def add_opt_param(name, default_value); end - # pkg:gem/rbi#lib/rbi/model.rb:467 + # pkg:gem/rbi#lib/rbi/model.rb:516 sig { params(name: ::String).void } def add_param(name); end - # pkg:gem/rbi#lib/rbi/model.rb:477 + # pkg:gem/rbi#lib/rbi/model.rb:526 sig { params(name: ::String).void } def add_rest_param(name); end - # pkg:gem/rbi#lib/rbi/model.rb:510 + # pkg:gem/rbi#lib/rbi/model.rb:559 sig do params( - params: T::Array[::RBI::SigParam], + params: T.nilable(T::Array[::RBI::SigParam]), return_type: T.any(::RBI::Type, ::String), is_abstract: T::Boolean, is_override: T::Boolean, is_overridable: T::Boolean, is_final: T::Boolean, - type_params: T::Array[::String], + type_params: T.nilable(T::Array[::String]), checked: T.nilable(::Symbol), block: T.nilable(T.proc.params(node: ::RBI::Sig).void) ).void @@ -1008,7 +1005,7 @@ class RBI::Method < ::RBI::NodeWithComments sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # pkg:gem/rbi#lib/rbi/model.rb:536 + # pkg:gem/rbi#lib/rbi/model.rb:585 sig { returns(::String) } def fully_qualified_name; end @@ -1018,11 +1015,11 @@ class RBI::Method < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # pkg:gem/rbi#lib/rbi/model.rb:425 + # pkg:gem/rbi#lib/rbi/model.rb:464 sig { returns(T::Boolean) } def is_singleton; end - # pkg:gem/rbi#lib/rbi/model.rb:425 + # pkg:gem/rbi#lib/rbi/model.rb:464 def is_singleton=(_arg0); end # @override @@ -1031,49 +1028,60 @@ class RBI::Method < ::RBI::NodeWithComments sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # pkg:gem/rbi#lib/rbi/model.rb:419 + # pkg:gem/rbi#lib/rbi/model.rb:456 sig { returns(::String) } def name; end - # pkg:gem/rbi#lib/rbi/model.rb:419 + # pkg:gem/rbi#lib/rbi/model.rb:456 def name=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:422 + # pkg:gem/rbi#lib/rbi/model.rb:459 sig { returns(T::Array[::RBI::Param]) } def params; end - # pkg:gem/rbi#lib/rbi/model.rb:431 + # pkg:gem/rbi#lib/rbi/model.rb:470 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # pkg:gem/rbi#lib/rbi/model.rb:431 - def sigs=(_arg0); end + # pkg:gem/rbi#lib/rbi/model.rb:480 + sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Sig]) } + def sigs=(sigs); end + + # pkg:gem/rbi#lib/rbi/model.rb:475 + sig { returns(T::Boolean) } + def sigs?; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:546 + # pkg:gem/rbi#lib/rbi/model.rb:595 sig { override.returns(::String) } def to_s; end - # pkg:gem/rbi#lib/rbi/model.rb:428 + # pkg:gem/rbi#lib/rbi/model.rb:467 sig { returns(::RBI::Visibility) } def visibility; end - # pkg:gem/rbi#lib/rbi/model.rb:428 + # pkg:gem/rbi#lib/rbi/model.rb:467 def visibility=(_arg0); end + + private + + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:496 + sig { params(other: ::RBI::Method).returns(T::Boolean) } + def at_most_one_side_anonymous?(other); end end -# pkg:gem/rbi#lib/rbi/model.rb:1185 +# pkg:gem/rbi#lib/rbi/model.rb:1231 class RBI::MixesInClassMethods < ::RBI::Mixin include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:1192 + # pkg:gem/rbi#lib/rbi/model.rb:1238 sig do params( name: ::String, names: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::MixesInClassMethods).void) ).void end @@ -1081,7 +1089,7 @@ class RBI::MixesInClassMethods < ::RBI::Mixin # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:513 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:530 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -1093,47 +1101,47 @@ class RBI::MixesInClassMethods < ::RBI::Mixin # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1199 + # pkg:gem/rbi#lib/rbi/model.rb:1245 sig { override.returns(::String) } def to_s; end end # @abstract # -# pkg:gem/rbi#lib/rbi/model.rb:701 +# pkg:gem/rbi#lib/rbi/model.rb:727 class RBI::Mixin < ::RBI::NodeWithComments abstract! - # pkg:gem/rbi#lib/rbi/model.rb:706 + # pkg:gem/rbi#lib/rbi/model.rb:732 sig do params( name: ::String, names: T::Array[::String], loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment] + comments: T.nilable(T::Array[::RBI::Comment]) ).void end def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:489 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:506 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # pkg:gem/rbi#lib/rbi/model.rb:703 + # pkg:gem/rbi#lib/rbi/model.rb:729 sig { returns(T::Array[::String]) } def names; end end -# pkg:gem/rbi#lib/rbi/model.rb:175 +# pkg:gem/rbi#lib/rbi/model.rb:197 class RBI::Module < ::RBI::Scope - # pkg:gem/rbi#lib/rbi/model.rb:180 + # pkg:gem/rbi#lib/rbi/model.rb:202 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Module).void) ).void end @@ -1147,15 +1155,15 @@ class RBI::Module < ::RBI::Scope # @override # - # pkg:gem/rbi#lib/rbi/model.rb:188 + # pkg:gem/rbi#lib/rbi/model.rb:210 sig { override.returns(::String) } def fully_qualified_name; end - # pkg:gem/rbi#lib/rbi/model.rb:177 + # pkg:gem/rbi#lib/rbi/model.rb:199 sig { returns(::String) } def name; end - # pkg:gem/rbi#lib/rbi/model.rb:177 + # pkg:gem/rbi#lib/rbi/model.rb:199 def name=(_arg0); end end @@ -1172,7 +1180,6 @@ class RBI::Node # Can `self` and `_other` be merged into a single definition? # # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:302 - sig { params(_other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(_other); end # pkg:gem/rbi#lib/rbi/model.rb:22 @@ -1207,7 +1214,7 @@ class RBI::Node # pkg:gem/rbi#lib/rbi/model.rb:10 def parent_tree=(_arg0); end - # pkg:gem/rbi#lib/rbi/printer.rb:834 + # pkg:gem/rbi#lib/rbi/printer.rb:895 sig do params( out: T.any(::IO, ::StringIO), @@ -1218,7 +1225,7 @@ 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 - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1246 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1251 sig do params( out: T.any(::IO, ::StringIO), @@ -1229,7 +1236,7 @@ class RBI::Node end def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1252 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1257 sig { params(indent: ::Integer, print_locs: T::Boolean, positional_names: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end @@ -1241,7 +1248,7 @@ class RBI::Node sig { params(version: ::Gem::Version).returns(T::Boolean) } def satisfies_version?(version); end - # pkg:gem/rbi#lib/rbi/printer.rb:840 + # pkg:gem/rbi#lib/rbi/printer.rb:901 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 @@ -1252,20 +1259,28 @@ end class RBI::NodeWithComments < ::RBI::Node abstract! - # pkg:gem/rbi#lib/rbi/model.rb:93 - sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + # pkg:gem/rbi#lib/rbi/model.rb:105 + sig { params(loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void } def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/model.rb:99 + # pkg:gem/rbi#lib/rbi/model.rb:111 sig { returns(T::Array[::String]) } def annotations; end - # pkg:gem/rbi#lib/rbi/model.rb:90 + # pkg:gem/rbi#lib/rbi/model.rb:93 sig { returns(T::Array[::RBI::Comment]) } def comments; end # pkg:gem/rbi#lib/rbi/model.rb:90 - def comments=(_arg0); end + sig { params(comments: T::Array[::RBI::Comment]).returns(T::Array[::RBI::Comment]) } + def comments=(comments); end + + # Returns true if this node has any comments, without allocating + # an empty array for nodes that have never had comments set. + # + # pkg:gem/rbi#lib/rbi/model.rb:100 + sig { returns(T::Boolean) } + def comments?; end # @override # @@ -1278,46 +1293,50 @@ class RBI::NodeWithComments < ::RBI::Node def version_requirements; end end -# pkg:gem/rbi#lib/rbi/model.rb:582 +# pkg:gem/rbi#lib/rbi/model.rb:638 class RBI::OptParam < ::RBI::Param - # pkg:gem/rbi#lib/rbi/model.rb:587 + # pkg:gem/rbi#lib/rbi/model.rb:643 sig do params( name: ::String, value: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::OptParam).void) ).void end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:594 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # pkg:gem/rbi#lib/rbi/model.rb:584 + # pkg:gem/rbi#lib/rbi/model.rb:640 sig { returns(::String) } def value; end end # @abstract # -# pkg:gem/rbi#lib/rbi/model.rb:552 +# pkg:gem/rbi#lib/rbi/model.rb:601 class RBI::Param < ::RBI::NodeWithComments abstract! - # pkg:gem/rbi#lib/rbi/model.rb:557 - sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + # pkg:gem/rbi#lib/rbi/model.rb:606 + sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/model.rb:554 + # pkg:gem/rbi#lib/rbi/model.rb:624 + sig { params(other: T.nilable(::Object)).returns(T::Boolean) } + def ==(other); end + + # pkg:gem/rbi#lib/rbi/model.rb:619 + sig { returns(T::Boolean) } + def anonymous?; end + + # pkg:gem/rbi#lib/rbi/model.rb:603 sig { returns(::String) } def name; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:564 + # pkg:gem/rbi#lib/rbi/model.rb:614 sig { override.returns(::String) } def to_s; end end @@ -1602,10 +1621,10 @@ end # pkg:gem/rbi#lib/rbi/printer.rb:7 class RBI::Printer < ::RBI::Visitor - # pkg:gem/rbi#lib/rbi/printer.rb:21 + # pkg:gem/rbi#lib/rbi/printer.rb:25 sig do params( - out: T.any(::IO, ::StringIO), + out: T.any(::IO, ::String, ::StringIO), indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer) @@ -1613,444 +1632,464 @@ 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 - # pkg:gem/rbi#lib/rbi/printer.rb:15 + # pkg:gem/rbi#lib/rbi/printer.rb:19 sig { returns(::Integer) } def current_indent; end - # pkg:gem/rbi#lib/rbi/printer.rb:39 + # pkg:gem/rbi#lib/rbi/printer.rb:48 + sig { returns(::String) } + def current_indent_string; end + + # pkg:gem/rbi#lib/rbi/printer.rb:43 sig { void } def dedent; end - # pkg:gem/rbi#lib/rbi/printer.rb:9 + # pkg:gem/rbi#lib/rbi/printer.rb:13 def in_visibility_group; end - # pkg:gem/rbi#lib/rbi/printer.rb:9 + # pkg:gem/rbi#lib/rbi/printer.rb:13 def in_visibility_group=(_arg0); end - # pkg:gem/rbi#lib/rbi/printer.rb:34 + # pkg:gem/rbi#lib/rbi/printer.rb:38 sig { void } def indent; end - # pkg:gem/rbi#lib/rbi/printer.rb:18 + # pkg:gem/rbi#lib/rbi/printer.rb:22 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # pkg:gem/rbi#lib/rbi/printer.rb:12 + # pkg:gem/rbi#lib/rbi/printer.rb:16 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. # - # pkg:gem/rbi#lib/rbi/printer.rb:45 + # pkg:gem/rbi#lib/rbi/printer.rb:54 sig { params(string: ::String).void } def print(string); end - # pkg:gem/rbi#lib/rbi/printer.rb:9 + # pkg:gem/rbi#lib/rbi/printer.rb:13 sig { returns(T::Boolean) } def print_locs; end - # pkg:gem/rbi#lib/rbi/printer.rb:9 + # pkg:gem/rbi#lib/rbi/printer.rb:13 def print_locs=(_arg0); end # Print a string with indentation and `\n` at the end. # - # pkg:gem/rbi#lib/rbi/printer.rb:65 + # pkg:gem/rbi#lib/rbi/printer.rb:76 sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. # - # pkg:gem/rbi#lib/rbi/printer.rb:51 + # pkg:gem/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. # - # pkg:gem/rbi#lib/rbi/printer.rb:58 + # pkg:gem/rbi#lib/rbi/printer.rb:69 sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:72 + # pkg:gem/rbi#lib/rbi/printer.rb:84 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:84 + # pkg:gem/rbi#lib/rbi/printer.rb:98 sig { override.params(file: ::RBI::File).void } def visit_file(file); end private - # pkg:gem/rbi#lib/rbi/printer.rb:680 + # pkg:gem/rbi#lib/rbi/printer.rb:720 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:638 + # pkg:gem/rbi#lib/rbi/printer.rb:678 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:648 + # pkg:gem/rbi#lib/rbi/printer.rb:688 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:654 + # pkg:gem/rbi#lib/rbi/printer.rb:694 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # pkg:gem/rbi#lib/rbi/printer.rb:736 + # pkg:gem/rbi#lib/rbi/printer.rb:779 sig { params(node: ::RBI::Sig).void } def print_sig_as_block(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:709 + # pkg:gem/rbi#lib/rbi/printer.rb:749 sig { params(node: ::RBI::Sig).void } def print_sig_as_line(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:672 + # pkg:gem/rbi#lib/rbi/printer.rb:712 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end - # pkg:gem/rbi#lib/rbi/printer.rb:796 + # pkg:gem/rbi#lib/rbi/printer.rb:849 sig { params(node: ::RBI::Sig).returns(T::Array[::String]) } def sig_modifiers(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:453 + # pkg:gem/rbi#lib/rbi/printer.rb:489 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:258 + # pkg:gem/rbi#lib/rbi/printer.rb:280 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:241 + # pkg:gem/rbi#lib/rbi/printer.rb:263 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:247 + # pkg:gem/rbi#lib/rbi/printer.rb:269 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:253 + # pkg:gem/rbi#lib/rbi/printer.rb:275 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:138 + # pkg:gem/rbi#lib/rbi/printer.rb:160 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:373 + # pkg:gem/rbi#lib/rbi/printer.rb:408 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:158 + # pkg:gem/rbi#lib/rbi/printer.rb:180 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:121 + # pkg:gem/rbi#lib/rbi/printer.rb:139 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:614 + # pkg:gem/rbi#lib/rbi/printer.rb:654 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:231 + # pkg:gem/rbi#lib/rbi/printer.rb:253 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:385 + # pkg:gem/rbi#lib/rbi/printer.rb:421 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:583 + # pkg:gem/rbi#lib/rbi/printer.rb:623 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:567 + # pkg:gem/rbi#lib/rbi/printer.rb:607 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:379 + # pkg:gem/rbi#lib/rbi/printer.rb:415 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:459 + # pkg:gem/rbi#lib/rbi/printer.rb:495 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:361 + # pkg:gem/rbi#lib/rbi/printer.rb:393 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:355 + # pkg:gem/rbi#lib/rbi/printer.rb:386 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:367 + # pkg:gem/rbi#lib/rbi/printer.rb:401 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:287 + # pkg:gem/rbi#lib/rbi/printer.rb:315 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:577 + # pkg:gem/rbi#lib/rbi/printer.rb:617 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:390 + # pkg:gem/rbi#lib/rbi/printer.rb:426 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:152 + # pkg:gem/rbi#lib/rbi/printer.rb:174 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:343 + # pkg:gem/rbi#lib/rbi/printer.rb:371 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:420 + # pkg:gem/rbi#lib/rbi/printer.rb:456 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:414 + # pkg:gem/rbi#lib/rbi/printer.rb:450 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:408 + # pkg:gem/rbi#lib/rbi/printer.rb:444 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:104 + # pkg:gem/rbi#lib/rbi/printer.rb:118 sig { override.params(node: ::RBI::RBSComment).void } def visit_rbs_comment(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:337 + # pkg:gem/rbi#lib/rbi/printer.rb:365 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:604 + # pkg:gem/rbi#lib/rbi/printer.rb:644 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:349 + # pkg:gem/rbi#lib/rbi/printer.rb:379 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:175 + # pkg:gem/rbi#lib/rbi/printer.rb:197 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:220 + # pkg:gem/rbi#lib/rbi/printer.rb:242 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:624 + # pkg:gem/rbi#lib/rbi/printer.rb:664 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:185 + # pkg:gem/rbi#lib/rbi/printer.rb:207 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:435 + # pkg:gem/rbi#lib/rbi/printer.rb:471 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:465 + # pkg:gem/rbi#lib/rbi/printer.rb:503 sig { override.params(node: ::RBI::Sig).void } def visit_sig(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:486 + # pkg:gem/rbi#lib/rbi/printer.rb:524 sig { override.params(node: ::RBI::SigParam).void } def visit_sig_param(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:170 + # pkg:gem/rbi#lib/rbi/printer.rb:192 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:164 + # pkg:gem/rbi#lib/rbi/printer.rb:186 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:509 + # pkg:gem/rbi#lib/rbi/printer.rb:549 sig { params(node: ::RBI::TStructField).void } def visit_t_struct_field(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:528 + # pkg:gem/rbi#lib/rbi/printer.rb:568 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:534 + # pkg:gem/rbi#lib/rbi/printer.rb:574 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:547 + # pkg:gem/rbi#lib/rbi/printer.rb:587 sig { override.params(node: ::RBI::TEnumValue).void } def visit_tenum_value(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:144 + # pkg:gem/rbi#lib/rbi/printer.rb:166 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:492 + # pkg:gem/rbi#lib/rbi/printer.rb:532 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:498 + # pkg:gem/rbi#lib/rbi/printer.rb:538 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:504 + # pkg:gem/rbi#lib/rbi/printer.rb:544 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:557 + # pkg:gem/rbi#lib/rbi/printer.rb:597 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # pkg:gem/rbi#lib/rbi/printer.rb:425 + # pkg:gem/rbi#lib/rbi/printer.rb:461 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end # @override # - # pkg:gem/rbi#lib/rbi/printer.rb:590 + # pkg:gem/rbi#lib/rbi/printer.rb:630 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end end +# pkg:gem/rbi#lib/rbi/printer.rb:846 +RBI::Printer::EMPTY_MODIFIERS = T.let(T.unsafe(nil), Array) + +# pkg:gem/rbi#lib/rbi/printer.rb:10 +RBI::Printer::INDENT_CACHE = T.let(T.unsafe(nil), Array) + +# Pre-computed indentation strings to avoid allocating " " * indent on every line. +# +# pkg:gem/rbi#lib/rbi/printer.rb:9 +RBI::Printer::MAX_CACHED_INDENT = T.let(T.unsafe(nil), Integer) + # pkg:gem/rbi#lib/rbi/printer.rb:5 class RBI::PrinterError < ::RBI::Error; end -# pkg:gem/rbi#lib/rbi/model.rb:792 +# pkg:gem/rbi#lib/rbi/model.rb:821 class RBI::Private < ::RBI::Visibility - # pkg:gem/rbi#lib/rbi/model.rb:794 + # pkg:gem/rbi#lib/rbi/model.rb:823 sig do params( loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Private).void) ).void end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# pkg:gem/rbi#lib/rbi/model.rb:784 +# pkg:gem/rbi#lib/rbi/model.rb:813 class RBI::Protected < ::RBI::Visibility - # pkg:gem/rbi#lib/rbi/model.rb:786 + # pkg:gem/rbi#lib/rbi/model.rb:815 sig do params( loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Protected).void) ).void end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# pkg:gem/rbi#lib/rbi/model.rb:776 +# pkg:gem/rbi#lib/rbi/model.rb:802 class RBI::Public < ::RBI::Visibility - # pkg:gem/rbi#lib/rbi/model.rb:778 + # pkg:gem/rbi#lib/rbi/model.rb:804 sig do params( loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Public).void) ).void end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end +# Shared default instance to avoid allocating a new Public on every Method/Attr creation. +# +# pkg:gem/rbi#lib/rbi/model.rb:810 +RBI::Public::DEFAULT = T.let(T.unsafe(nil), RBI::Public) + # pkg:gem/rbi#lib/rbi/rbs/method_type_translator.rb:5 module RBI::RBS; end @@ -2109,19 +2148,19 @@ class RBI::RBS::TypeTranslator private - # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:106 + # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:114 sig { params(type: ::RBS::Types::ClassInstance).returns(::RBI::Type) } def translate_class_instance(type); end - # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:114 + # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:122 sig { params(type: ::RBS::Types::Function).returns(::RBI::Type) } def translate_function(type); end - # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:161 + # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:169 sig { params(type_name: ::String).returns(::String) } def translate_t_generic_type(type_name); end - # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:94 + # pkg:gem/rbi#lib/rbi/rbs/type_translator.rb:102 sig { params(type: ::RBS::Types::Alias).returns(::RBI::Type) } def translate_type_alias(type); end end @@ -2565,30 +2604,26 @@ class RBI::RBSPrinter::Error < ::RBI::Error; end # pkg:gem/rbi#lib/rbi/model.rb:5 class RBI::ReplaceNodeError < ::RBI::Error; end -# pkg:gem/rbi#lib/rbi/model.rb:569 +# pkg:gem/rbi#lib/rbi/model.rb:630 class RBI::ReqParam < ::RBI::Param - # pkg:gem/rbi#lib/rbi/model.rb:571 + # pkg:gem/rbi#lib/rbi/model.rb:632 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::ReqParam).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # pkg:gem/rbi#lib/rbi/model.rb:577 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end end -# pkg:gem/rbi#lib/rbi/model.rb:1204 +# pkg:gem/rbi#lib/rbi/model.rb:1250 class RBI::RequiresAncestor < ::RBI::NodeWithComments include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:1209 - sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + # pkg:gem/rbi#lib/rbi/model.rb:1255 + sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end # @override @@ -2597,37 +2632,33 @@ class RBI::RequiresAncestor < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # pkg:gem/rbi#lib/rbi/model.rb:1206 + # pkg:gem/rbi#lib/rbi/model.rb:1252 sig { returns(::String) } def name; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1216 + # pkg:gem/rbi#lib/rbi/model.rb:1262 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:599 +# pkg:gem/rbi#lib/rbi/model.rb:650 class RBI::RestParam < ::RBI::Param - # pkg:gem/rbi#lib/rbi/model.rb:601 + # pkg:gem/rbi#lib/rbi/model.rb:652 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::RestParam).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:613 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - # @override # - # pkg:gem/rbi#lib/rbi/model.rb:608 + # pkg:gem/rbi#lib/rbi/model.rb:659 sig { override.returns(::String) } def to_s; end end @@ -2872,7 +2903,7 @@ class RBI::Rewriters::GroupNodes < ::RBI::Visitor private - # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:35 + # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:37 sig { params(node: ::RBI::Node).returns(::RBI::Group::Kind) } def group_kind(node); end end @@ -3249,19 +3280,19 @@ class RBI::Rewriters::SortNodes < ::RBI::Visitor private - # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:74 + # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:71 sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } def group_rank(kind); end - # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:95 + # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:92 sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } def node_name(node); end - # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:46 + # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:43 sig { params(node: ::RBI::Node).returns(::Integer) } def node_rank(node); end - # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:107 + # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:104 sig { params(node: ::RBI::Node).void } def sort_node_names!(node); end end @@ -3296,7 +3327,7 @@ class RBI::Rewriters::TranslateRBSSigs::Error < ::RBI::Error; end # @abstract # -# pkg:gem/rbi#lib/rbi/model.rb:163 +# pkg:gem/rbi#lib/rbi/model.rb:185 class RBI::Scope < ::RBI::Tree include ::RBI::Indexable @@ -3310,7 +3341,7 @@ class RBI::Scope < ::RBI::Tree # @abstract # - # pkg:gem/rbi#lib/rbi/model.rb:166 + # pkg:gem/rbi#lib/rbi/model.rb:188 sig { abstract.returns(::String) } def fully_qualified_name; end @@ -3322,7 +3353,7 @@ class RBI::Scope < ::RBI::Tree # @override # - # pkg:gem/rbi#lib/rbi/model.rb:170 + # pkg:gem/rbi#lib/rbi/model.rb:192 sig { override.returns(::String) } def to_s; end end @@ -3340,60 +3371,60 @@ end # end # ~~~ # -# pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:603 +# pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:620 class RBI::ScopeConflict < ::RBI::Tree - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:611 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:628 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 - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:605 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:622 sig { returns(::RBI::Scope) } def left; end - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:608 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:625 sig { returns(::String) } def left_name; end - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:605 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:622 def right; end - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:608 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:625 def right_name; end end # Sends # -# pkg:gem/rbi#lib/rbi/model.rb:802 +# pkg:gem/rbi#lib/rbi/model.rb:831 class RBI::Send < ::RBI::NodeWithComments include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:810 + # pkg:gem/rbi#lib/rbi/model.rb:839 sig do params( method: ::String, args: T::Array[::RBI::Arg], loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Send).void) ).void end def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:818 + # pkg:gem/rbi#lib/rbi/model.rb:847 sig { params(arg: ::RBI::Arg).void } def <<(arg); end - # pkg:gem/rbi#lib/rbi/model.rb:823 + # pkg:gem/rbi#lib/rbi/model.rb:852 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # pkg:gem/rbi#lib/rbi/model.rb:807 + # pkg:gem/rbi#lib/rbi/model.rb:836 sig { returns(T::Array[::RBI::Arg]) } def args; end # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:529 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:546 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end @@ -3403,23 +3434,23 @@ class RBI::Send < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # pkg:gem/rbi#lib/rbi/model.rb:804 + # pkg:gem/rbi#lib/rbi/model.rb:833 sig { returns(::String) } def method; end - # pkg:gem/rbi#lib/rbi/model.rb:828 + # pkg:gem/rbi#lib/rbi/model.rb:857 sig { returns(::String) } def to_s; end end # Sorbet's sigs # -# pkg:gem/rbi#lib/rbi/model.rb:877 +# pkg:gem/rbi#lib/rbi/model.rb:906 class RBI::Sig < ::RBI::NodeWithComments - # pkg:gem/rbi#lib/rbi/model.rb:926 + # pkg:gem/rbi#lib/rbi/model.rb:964 sig do params( - params: T::Array[::RBI::SigParam], + params: T.nilable(T::Array[::RBI::SigParam]), return_type: T.any(::RBI::Type, ::String), is_abstract: T::Boolean, is_override: T::Boolean, @@ -3428,133 +3459,141 @@ class RBI::Sig < ::RBI::NodeWithComments allow_incompatible_override: T::Boolean, allow_incompatible_override_visibility: T::Boolean, without_runtime: T::Boolean, - type_params: T::Array[::String], + type_params: T.nilable(T::Array[::String]), checked: T.nilable(::Symbol), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Sig).void) ).void 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), allow_incompatible_override: T.unsafe(nil), allow_incompatible_override_visibility: T.unsafe(nil), without_runtime: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:958 + # pkg:gem/rbi#lib/rbi/model.rb:996 sig { params(param: ::RBI::SigParam).void } def <<(param); end - # pkg:gem/rbi#lib/rbi/model.rb:968 + # pkg:gem/rbi#lib/rbi/model.rb:1006 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # pkg:gem/rbi#lib/rbi/model.rb:963 + # pkg:gem/rbi#lib/rbi/model.rb:1001 sig { params(name: ::String, type: T.any(::RBI::Type, ::String)).void } def add_param(name, type); end - # pkg:gem/rbi#lib/rbi/model.rb:897 + # pkg:gem/rbi#lib/rbi/model.rb:928 sig { returns(T::Boolean) } def allow_incompatible_override; end - # pkg:gem/rbi#lib/rbi/model.rb:897 + # pkg:gem/rbi#lib/rbi/model.rb:928 def allow_incompatible_override=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:900 + # pkg:gem/rbi#lib/rbi/model.rb:931 sig { returns(T::Boolean) } def allow_incompatible_override_visibility; end - # pkg:gem/rbi#lib/rbi/model.rb:900 + # pkg:gem/rbi#lib/rbi/model.rb:931 def allow_incompatible_override_visibility=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:909 + # pkg:gem/rbi#lib/rbi/model.rb:947 sig { returns(T.nilable(::Symbol)) } def checked; end - # pkg:gem/rbi#lib/rbi/model.rb:909 + # pkg:gem/rbi#lib/rbi/model.rb:947 def checked=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:885 + # pkg:gem/rbi#lib/rbi/model.rb:916 sig { returns(T::Boolean) } def is_abstract; end - # pkg:gem/rbi#lib/rbi/model.rb:885 + # pkg:gem/rbi#lib/rbi/model.rb:916 def is_abstract=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:894 + # pkg:gem/rbi#lib/rbi/model.rb:925 sig { returns(T::Boolean) } def is_final; end - # pkg:gem/rbi#lib/rbi/model.rb:894 + # pkg:gem/rbi#lib/rbi/model.rb:925 def is_final=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:891 + # pkg:gem/rbi#lib/rbi/model.rb:922 sig { returns(T::Boolean) } def is_overridable; end - # pkg:gem/rbi#lib/rbi/model.rb:891 + # pkg:gem/rbi#lib/rbi/model.rb:922 def is_overridable=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:888 + # pkg:gem/rbi#lib/rbi/model.rb:919 sig { returns(T::Boolean) } def is_override; end - # pkg:gem/rbi#lib/rbi/model.rb:888 + # pkg:gem/rbi#lib/rbi/model.rb:919 def is_override=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:879 + # pkg:gem/rbi#lib/rbi/model.rb:908 sig { returns(T::Array[::RBI::SigParam]) } def params; end - # pkg:gem/rbi#lib/rbi/model.rb:882 + # pkg:gem/rbi#lib/rbi/model.rb:913 sig { returns(T.any(::RBI::Type, ::String)) } def return_type; end - # pkg:gem/rbi#lib/rbi/model.rb:882 + # pkg:gem/rbi#lib/rbi/model.rb:913 def return_type=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:906 + # pkg:gem/rbi#lib/rbi/model.rb:937 sig { returns(T::Array[::String]) } def type_params; end - # pkg:gem/rbi#lib/rbi/model.rb:903 + # pkg:gem/rbi#lib/rbi/model.rb:942 + sig { returns(T::Boolean) } + def type_params?; end + + # pkg:gem/rbi#lib/rbi/model.rb:934 sig { returns(T::Boolean) } def without_runtime; end - # pkg:gem/rbi#lib/rbi/model.rb:903 + # pkg:gem/rbi#lib/rbi/model.rb:934 def without_runtime=(_arg0); end end -# pkg:gem/rbi#lib/rbi/model.rb:977 +# pkg:gem/rbi#lib/rbi/model.rb:1015 class RBI::SigParam < ::RBI::NodeWithComments - # pkg:gem/rbi#lib/rbi/model.rb:985 + # pkg:gem/rbi#lib/rbi/model.rb:1023 sig do params( name: ::String, type: T.any(::RBI::Type, ::String), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::SigParam).void) ).void end def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:993 + # pkg:gem/rbi#lib/rbi/model.rb:1037 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # pkg:gem/rbi#lib/rbi/model.rb:979 + # pkg:gem/rbi#lib/rbi/model.rb:1032 + sig { returns(T::Boolean) } + def anonymous?; end + + # pkg:gem/rbi#lib/rbi/model.rb:1017 sig { returns(::String) } def name; end - # pkg:gem/rbi#lib/rbi/model.rb:982 + # pkg:gem/rbi#lib/rbi/model.rb:1020 sig { returns(T.any(::RBI::Type, ::String)) } def type; end end -# pkg:gem/rbi#lib/rbi/model.rb:219 +# pkg:gem/rbi#lib/rbi/model.rb:246 class RBI::SingletonClass < ::RBI::Scope - # pkg:gem/rbi#lib/rbi/model.rb:221 + # pkg:gem/rbi#lib/rbi/model.rb:248 sig do params( loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::SingletonClass).void) ).void end @@ -3562,21 +3601,21 @@ class RBI::SingletonClass < ::RBI::Scope # @override # - # pkg:gem/rbi#lib/rbi/model.rb:228 + # pkg:gem/rbi#lib/rbi/model.rb:255 sig { override.returns(::String) } def fully_qualified_name; end end -# pkg:gem/rbi#lib/rbi/model.rb:233 +# pkg:gem/rbi#lib/rbi/model.rb:260 class RBI::Struct < ::RBI::Scope - # pkg:gem/rbi#lib/rbi/model.rb:250 + # pkg:gem/rbi#lib/rbi/model.rb:277 sig do params( name: ::String, members: T::Array[::Symbol], keyword_init: T::Boolean, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(struct: ::RBI::Struct).void) ).void end @@ -3590,55 +3629,55 @@ class RBI::Struct < ::RBI::Scope # @override # - # pkg:gem/rbi#lib/rbi/model.rb:260 + # pkg:gem/rbi#lib/rbi/model.rb:287 sig { override.returns(::String) } def fully_qualified_name; end - # pkg:gem/rbi#lib/rbi/model.rb:241 + # pkg:gem/rbi#lib/rbi/model.rb:268 sig { returns(T::Boolean) } def keyword_init; end - # pkg:gem/rbi#lib/rbi/model.rb:241 + # pkg:gem/rbi#lib/rbi/model.rb:268 def keyword_init=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:238 + # pkg:gem/rbi#lib/rbi/model.rb:265 sig { returns(T::Array[::Symbol]) } def members; end - # pkg:gem/rbi#lib/rbi/model.rb:238 + # pkg:gem/rbi#lib/rbi/model.rb:265 def members=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:235 + # pkg:gem/rbi#lib/rbi/model.rb:262 sig { returns(::String) } def name; end - # pkg:gem/rbi#lib/rbi/model.rb:235 + # pkg:gem/rbi#lib/rbi/model.rb:262 def name=(_arg0); end end # Sorbet's T::Enum # -# pkg:gem/rbi#lib/rbi/model.rb:1088 +# pkg:gem/rbi#lib/rbi/model.rb:1134 class RBI::TEnum < ::RBI::Class - # pkg:gem/rbi#lib/rbi/model.rb:1090 + # pkg:gem/rbi#lib/rbi/model.rb:1136 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(klass: ::RBI::TEnum).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# pkg:gem/rbi#lib/rbi/model.rb:1096 +# pkg:gem/rbi#lib/rbi/model.rb:1142 class RBI::TEnumBlock < ::RBI::Scope - # pkg:gem/rbi#lib/rbi/model.rb:1098 + # pkg:gem/rbi#lib/rbi/model.rb:1144 sig do params( loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::TEnumBlock).void) ).void end @@ -3646,7 +3685,7 @@ class RBI::TEnumBlock < ::RBI::Scope # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1105 + # pkg:gem/rbi#lib/rbi/model.rb:1151 sig { override.returns(::String) } def fully_qualified_name; end @@ -3658,27 +3697,27 @@ class RBI::TEnumBlock < ::RBI::Scope # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1111 + # pkg:gem/rbi#lib/rbi/model.rb:1157 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:1116 +# pkg:gem/rbi#lib/rbi/model.rb:1162 class RBI::TEnumValue < ::RBI::NodeWithComments include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:1121 + # pkg:gem/rbi#lib/rbi/model.rb:1167 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::TEnumValue).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:1128 + # pkg:gem/rbi#lib/rbi/model.rb:1174 sig { returns(::String) } def fully_qualified_name; end @@ -3688,45 +3727,45 @@ class RBI::TEnumValue < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # pkg:gem/rbi#lib/rbi/model.rb:1118 + # pkg:gem/rbi#lib/rbi/model.rb:1164 sig { returns(::String) } def name; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1134 + # pkg:gem/rbi#lib/rbi/model.rb:1180 sig { override.returns(::String) } def to_s; end end # Sorbet's T::Struct # -# pkg:gem/rbi#lib/rbi/model.rb:1000 +# pkg:gem/rbi#lib/rbi/model.rb:1046 class RBI::TStruct < ::RBI::Class - # pkg:gem/rbi#lib/rbi/model.rb:1002 + # pkg:gem/rbi#lib/rbi/model.rb:1048 sig do params( name: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(klass: ::RBI::TStruct).void) ).void end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# pkg:gem/rbi#lib/rbi/model.rb:1032 +# pkg:gem/rbi#lib/rbi/model.rb:1078 class RBI::TStructConst < ::RBI::TStructField include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:1040 + # pkg:gem/rbi#lib/rbi/model.rb:1086 sig do params( name: ::String, type: T.any(::RBI::Type, ::String), default: T.nilable(::String), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::TStructConst).void) ).void end @@ -3734,13 +3773,13 @@ class RBI::TStructConst < ::RBI::TStructField # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:545 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:562 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1047 + # pkg:gem/rbi#lib/rbi/model.rb:1093 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end @@ -3752,75 +3791,75 @@ class RBI::TStructConst < ::RBI::TStructField # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1054 + # pkg:gem/rbi#lib/rbi/model.rb:1100 sig { override.returns(::String) } def to_s; end end # @abstract # -# pkg:gem/rbi#lib/rbi/model.rb:1009 +# pkg:gem/rbi#lib/rbi/model.rb:1055 class RBI::TStructField < ::RBI::NodeWithComments abstract! - # pkg:gem/rbi#lib/rbi/model.rb:1020 + # pkg:gem/rbi#lib/rbi/model.rb:1066 sig do params( name: ::String, type: T.any(::RBI::Type, ::String), default: T.nilable(::String), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment] + comments: T.nilable(T::Array[::RBI::Comment]) ).void end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:537 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:554 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # pkg:gem/rbi#lib/rbi/model.rb:1017 + # pkg:gem/rbi#lib/rbi/model.rb:1063 sig { returns(T.nilable(::String)) } def default; end - # pkg:gem/rbi#lib/rbi/model.rb:1017 + # pkg:gem/rbi#lib/rbi/model.rb:1063 def default=(_arg0); end # @abstract # - # pkg:gem/rbi#lib/rbi/model.rb:1029 + # pkg:gem/rbi#lib/rbi/model.rb:1075 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # pkg:gem/rbi#lib/rbi/model.rb:1011 + # pkg:gem/rbi#lib/rbi/model.rb:1057 sig { returns(::String) } def name; end - # pkg:gem/rbi#lib/rbi/model.rb:1011 + # pkg:gem/rbi#lib/rbi/model.rb:1057 def name=(_arg0); end - # pkg:gem/rbi#lib/rbi/model.rb:1014 + # pkg:gem/rbi#lib/rbi/model.rb:1060 sig { returns(T.any(::RBI::Type, ::String)) } def type; end - # pkg:gem/rbi#lib/rbi/model.rb:1014 + # pkg:gem/rbi#lib/rbi/model.rb:1060 def type=(_arg0); end end -# pkg:gem/rbi#lib/rbi/model.rb:1059 +# pkg:gem/rbi#lib/rbi/model.rb:1105 class RBI::TStructProp < ::RBI::TStructField include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:1067 + # pkg:gem/rbi#lib/rbi/model.rb:1113 sig do params( name: ::String, type: T.any(::RBI::Type, ::String), default: T.nilable(::String), loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::TStructProp).void) ).void end @@ -3828,13 +3867,13 @@ class RBI::TStructProp < ::RBI::TStructField # @override # - # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:553 + # pkg:gem/rbi#lib/rbi/rewriters/merge_trees.rb:570 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1074 + # pkg:gem/rbi#lib/rbi/model.rb:1120 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end @@ -3846,24 +3885,24 @@ class RBI::TStructProp < ::RBI::TStructField # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1081 + # pkg:gem/rbi#lib/rbi/model.rb:1127 sig { override.returns(::String) } def to_s; end end -# pkg:gem/rbi#lib/rbi/model.rb:108 +# pkg:gem/rbi#lib/rbi/model.rb:120 class RBI::Tree < ::RBI::NodeWithComments - # pkg:gem/rbi#lib/rbi/model.rb:113 + # pkg:gem/rbi#lib/rbi/model.rb:125 sig do params( loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::Tree).void) ).void end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:120 + # pkg:gem/rbi#lib/rbi/model.rb:132 sig { params(node: ::RBI::Node).void } def <<(node); end @@ -3879,7 +3918,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(annotation: ::String).void } def deannotate!(annotation); end - # pkg:gem/rbi#lib/rbi/model.rb:126 + # pkg:gem/rbi#lib/rbi/model.rb:138 sig { returns(T::Boolean) } def empty?; end @@ -3895,7 +3934,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { void } def flatten_visibilities!; end - # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:78 + # pkg:gem/rbi#lib/rbi/rewriters/group_nodes.rb:80 sig { void } def group_nodes!; end @@ -3914,11 +3953,11 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:43 + # pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:52 sig { void } def nest_non_public_members!; end - # pkg:gem/rbi#lib/rbi/rewriters/nest_singleton_methods.rb:33 + # pkg:gem/rbi#lib/rbi/rewriters/nest_singleton_methods.rb:41 sig { void } def nest_singleton_methods!; end @@ -3926,7 +3965,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { void } def nest_top_level_members!; end - # pkg:gem/rbi#lib/rbi/model.rb:110 + # pkg:gem/rbi#lib/rbi/model.rb:122 sig { returns(T::Array[::RBI::Node]) } def nodes; end @@ -3934,7 +3973,7 @@ class RBI::Tree < ::RBI::NodeWithComments sig { void } def replace_attributes_with_methods!; end - # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:118 + # pkg:gem/rbi#lib/rbi/rewriters/sort_nodes.rb:115 sig { void } def sort_nodes!; end @@ -4019,7 +4058,7 @@ class RBI::Type sig { abstract.returns(::RBI::Type) } def normalize; end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1261 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1266 sig { returns(::String) } def rbs_string; end @@ -5072,23 +5111,23 @@ class RBI::Type::Void < ::RBI::Type def to_rbi; end end -# pkg:gem/rbi#lib/rbi/model.rb:1159 +# pkg:gem/rbi#lib/rbi/model.rb:1205 class RBI::TypeMember < ::RBI::NodeWithComments include ::RBI::Indexable - # pkg:gem/rbi#lib/rbi/model.rb:1164 + # pkg:gem/rbi#lib/rbi/model.rb:1210 sig do params( name: ::String, value: ::String, loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], + comments: T.nilable(T::Array[::RBI::Comment]), block: T.nilable(T.proc.params(node: ::RBI::TypeMember).void) ).void end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # pkg:gem/rbi#lib/rbi/model.rb:1172 + # pkg:gem/rbi#lib/rbi/model.rb:1218 sig { returns(::String) } def fully_qualified_name; end @@ -5098,17 +5137,17 @@ class RBI::TypeMember < ::RBI::NodeWithComments sig { override.returns(T::Array[::String]) } def index_ids; end - # pkg:gem/rbi#lib/rbi/model.rb:1161 + # pkg:gem/rbi#lib/rbi/model.rb:1207 sig { returns(::String) } def name; end # @override # - # pkg:gem/rbi#lib/rbi/model.rb:1180 + # pkg:gem/rbi#lib/rbi/model.rb:1226 sig { override.returns(::String) } def to_s; end - # pkg:gem/rbi#lib/rbi/model.rb:1161 + # pkg:gem/rbi#lib/rbi/model.rb:1207 def value; end end @@ -5126,11 +5165,11 @@ class RBI::TypePrinter sig { params(node: ::RBI::Type).void } def visit(node); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1112 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1117 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1122 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1127 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end @@ -5146,7 +5185,7 @@ class RBI::TypePrinter sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1189 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1194 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end @@ -5158,7 +5197,7 @@ class RBI::TypePrinter sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1196 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1201 sig { params(type: ::RBI::Type::Module).void } def visit_module(type); end @@ -5170,7 +5209,7 @@ class RBI::TypePrinter sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1162 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1167 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end @@ -5178,7 +5217,7 @@ class RBI::TypePrinter sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1142 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1147 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end @@ -5186,11 +5225,11 @@ class RBI::TypePrinter sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1132 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1137 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1184 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1189 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end @@ -5204,7 +5243,7 @@ class RBI::TypePrinter private - # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1205 + # pkg:gem/rbi#lib/rbi/rbs_printer.rb:1210 sig { params(type_name: ::String).returns(::String) } def translate_t_type(type_name); end end @@ -5240,42 +5279,42 @@ RBI::VERSION = T.let(T.unsafe(nil), String) # @abstract # -# pkg:gem/rbi#lib/rbi/model.rb:743 +# pkg:gem/rbi#lib/rbi/model.rb:769 class RBI::Visibility < ::RBI::NodeWithComments abstract! - # pkg:gem/rbi#lib/rbi/model.rb:748 - sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } + # pkg:gem/rbi#lib/rbi/model.rb:774 + sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void } def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # pkg:gem/rbi#lib/rbi/model.rb:754 + # pkg:gem/rbi#lib/rbi/model.rb:780 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # pkg:gem/rbi#lib/rbi/model.rb:771 + # pkg:gem/rbi#lib/rbi/model.rb:797 sig { returns(T::Boolean) } def private?; end - # pkg:gem/rbi#lib/rbi/model.rb:766 + # pkg:gem/rbi#lib/rbi/model.rb:792 sig { returns(T::Boolean) } def protected?; end - # pkg:gem/rbi#lib/rbi/model.rb:761 + # pkg:gem/rbi#lib/rbi/model.rb:787 sig { returns(T::Boolean) } def public?; end - # pkg:gem/rbi#lib/rbi/model.rb:745 + # pkg:gem/rbi#lib/rbi/model.rb:771 sig { returns(::Symbol) } def visibility; end end -# pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:49 +# pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:58 class RBI::VisibilityGroup < ::RBI::Tree - # pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:54 + # pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:63 sig { params(visibility: ::RBI::Visibility).void } def initialize(visibility); end - # pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:51 + # pkg:gem/rbi#lib/rbi/rewriters/nest_non_public_members.rb:60 sig { returns(::RBI::Visibility) } def visibility; end end diff --git a/sorbet/rbi/gems/spoom@1.7.11.rbi b/sorbet/rbi/gems/spoom@1.7.12.rbi similarity index 99% rename from sorbet/rbi/gems/spoom@1.7.11.rbi rename to sorbet/rbi/gems/spoom@1.7.12.rbi index 7c9f2932a..a436a33ec 100644 --- a/sorbet/rbi/gems/spoom@1.7.11.rbi +++ b/sorbet/rbi/gems/spoom@1.7.12.rbi @@ -55,7 +55,7 @@ module Spoom::BundlerHelper # # Given `"foo"`, returns a string like 'gem "foo", "= 1.2.3"', suitable for inserting into a Gemfile. # - # pkg:gem/spoom#lib/spoom/bundler_helper.rb:16 + # pkg:gem/spoom#lib/spoom/bundler_helper.rb:14 sig { params(gem_name: ::String).returns(::String) } def gem_requirement_from_real_bundle(gem_name); end end @@ -1696,7 +1696,6 @@ class Spoom::Deadcode::ERB < ::Erubi::Engine # @override # # pkg:gem/spoom#lib/spoom/deadcode/erb.rb:91 - sig { override.params(_: T.untyped).void } def add_postamble(_); end # @override @@ -4786,7 +4785,7 @@ class Spoom::Sorbet::Translate::RBSCommentsToSorbetSigs < ::Spoom::Sorbet::Trans private - # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:273 + # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:282 sig do params( node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), @@ -4795,19 +4794,19 @@ class Spoom::Sorbet::Translate::RBSCommentsToSorbetSigs < ::Spoom::Sorbet::Trans end def already_extends?(node, constant_regex); end - # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:151 + # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:157 sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode)).void } def apply_class_annotations(node); end - # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:249 + # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:258 sig { params(annotations: T::Array[::Spoom::RBS::Annotation], sig: ::RBI::Sig).void } def apply_member_annotations(annotations, sig); end - # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:325 + # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:334 sig { params(comments: T::Array[::Prism::Comment]).void } def apply_type_aliases(comments); end - # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:289 + # pkg:gem/spoom#lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb:298 sig { params(comments: T::Array[::Prism::Comment]).returns(T::Array[::Spoom::RBS::TypeAlias]) } def collect_type_aliases(comments); end From c88fe900e6ad3aeb43d3c7353cb00d4649e48499 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Tue, 7 Apr 2026 14:59:55 -0400 Subject: [PATCH 3/3] Remove stale shim --- sorbet/rbi/shims/erb.rbi | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 sorbet/rbi/shims/erb.rbi diff --git a/sorbet/rbi/shims/erb.rbi b/sorbet/rbi/shims/erb.rbi deleted file mode 100644 index 8de00a5b0..000000000 --- a/sorbet/rbi/shims/erb.rbi +++ /dev/null @@ -1,3 +0,0 @@ -# typed: true - -module ERB::Escape; end