From 1d25dba4f64dbbff2bb4fc31da650015f3cf2f61 Mon Sep 17 00:00:00 2001 From: Max VelDink Date: Tue, 9 Jul 2024 13:50:05 -0400 Subject: [PATCH] chore(deps): Bump to Ruby 3.3.4 (#115) --- .ruby-version | 2 +- .tool-versions | 1 - Gemfile.lock | 38 +- sorbet/rbi/gems/minitest-focus@1.4.0.rbi | 26 +- sorbet/rbi/gems/minitest-reporters@1.7.1.rbi | 54 +- ...initest@5.24.0.rbi => minitest@5.24.1.rbi} | 0 sorbet/rbi/gems/psych@5.1.2.rbi | 497 +- sorbet/rbi/gems/rbi@0.1.13.rbi | 3078 ------------ .../gems/{rexml@3.3.0.rbi => rexml@3.3.1.rbi} | 268 +- sorbet/rbi/gems/rubocop@1.64.1.rbi | 4 +- sorbet/rbi/gems/sorbet-result@1.1.0.rbi | 167 +- sorbet/rbi/gems/spoom@1.3.2.rbi | 4421 ----------------- ...tandard@1.39.0.rbi => standard@1.39.1.rbi} | 21 +- sorbet/rbi/gems/tapioca@0.14.4.rbi | 3547 ------------- ...sorbet@0.8.1.rbi => yard-sorbet@0.9.0.rbi} | 64 +- sorbet/tapioca/config.yml | 3 + 16 files changed, 604 insertions(+), 11587 deletions(-) delete mode 100644 .tool-versions rename sorbet/rbi/gems/{minitest@5.24.0.rbi => minitest@5.24.1.rbi} (100%) delete mode 100644 sorbet/rbi/gems/rbi@0.1.13.rbi rename sorbet/rbi/gems/{rexml@3.3.0.rbi => rexml@3.3.1.rbi} (95%) delete mode 100644 sorbet/rbi/gems/spoom@1.3.2.rbi rename sorbet/rbi/gems/{standard@1.39.0.rbi => standard@1.39.1.rbi} (98%) delete mode 100644 sorbet/rbi/gems/tapioca@0.14.4.rbi rename sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi => yard-sorbet@0.9.0.rbi} (90%) diff --git a/.ruby-version b/.ruby-version index 15a2799..a0891f5 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.0 +3.3.4 diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index 3294aed..0000000 --- a/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -ruby 3.3.0 diff --git a/Gemfile.lock b/Gemfile.lock index 7f8e7b1..72efc4e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -19,13 +19,13 @@ GEM reline (>= 0.3.8) erubi (1.13.0) io-console (0.7.2) - irb (1.13.2) + irb (1.14.0) rdoc (>= 4.0.0) reline (>= 0.4.2) json (2.7.2) language_server-protocol (3.17.0.3) lint_roller (1.1.0) - minitest (5.24.0) + minitest (5.24.1) minitest-focus (1.4.0) minitest (>= 4, < 6) minitest-reporters (1.7.1) @@ -52,7 +52,7 @@ GEM regexp_parser (2.9.2) reline (0.5.9) io-console (~> 0.5) - rexml (3.3.0) + rexml (3.3.1) strscan rubocop (1.64.1) json (~> 2.3) @@ -73,24 +73,24 @@ GEM rubocop-sorbet (0.7.8) rubocop (>= 0.90.0) ruby-progressbar (1.13.0) - sorbet (0.5.11444) - sorbet-static (= 0.5.11444) + sorbet (0.5.11475) + sorbet-static (= 0.5.11475) sorbet-result (1.1.0) sorbet-runtime (~> 0.5) - sorbet-runtime (0.5.11444) - sorbet-static (0.5.11444-universal-darwin) - sorbet-static (0.5.11444-x86_64-linux) - sorbet-static-and-runtime (0.5.11444) - sorbet (= 0.5.11444) - sorbet-runtime (= 0.5.11444) + sorbet-runtime (0.5.11475) + sorbet-static (0.5.11475-universal-darwin) + sorbet-static (0.5.11475-x86_64-linux) + sorbet-static-and-runtime (0.5.11475) + sorbet (= 0.5.11475) + sorbet-runtime (= 0.5.11475) sorbet-struct-comparable (1.3.0) sorbet-runtime (>= 0.5) - spoom (1.3.2) + spoom (1.3.3) erubi (>= 1.10.0) - prism (>= 0.19.0) + prism (>= 0.28.0) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) - standard (1.39.0) + standard (1.39.1) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) rubocop (~> 1.64.0) @@ -107,7 +107,7 @@ GEM rubocop-sorbet (~> 0.7.0) stringio (3.1.1) strscan (3.1.0) - tapioca (0.14.4) + tapioca (0.15.0) bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) @@ -119,9 +119,9 @@ GEM thor (1.3.1) unicode-display_width (2.5.0) yard (0.9.36) - yard-sorbet (0.8.1) - sorbet-runtime (>= 0.5) - yard (>= 0.9) + yard-sorbet (0.9.0) + sorbet-runtime + yard zeitwerk (2.6.16) PLATFORMS @@ -145,4 +145,4 @@ DEPENDENCIES tapioca BUNDLED WITH - 2.5.9 + 2.5.15 diff --git a/sorbet/rbi/gems/minitest-focus@1.4.0.rbi b/sorbet/rbi/gems/minitest-focus@1.4.0.rbi index b308b2f..4f66485 100644 --- a/sorbet/rbi/gems/minitest-focus@1.4.0.rbi +++ b/sorbet/rbi/gems/minitest-focus@1.4.0.rbi @@ -7,25 +7,25 @@ # source://minitest-focus//lib/minitest/focus.rb#3 class Minitest::Test < ::Minitest::Runnable - # source://minitest/5.23.1/lib/minitest/test.rb#191 + # source://minitest/5.24.1/lib/minitest/test.rb#191 def capture_exceptions; end - # source://minitest/5.23.1/lib/minitest/test.rb#15 + # source://minitest/5.24.1/lib/minitest/test.rb#15 def class_name; end - # source://minitest/5.23.1/lib/minitest/test.rb#208 + # source://minitest/5.24.1/lib/minitest/test.rb#208 def neuter_exception(e); end - # source://minitest/5.23.1/lib/minitest/test.rb#219 + # source://minitest/5.24.1/lib/minitest/test.rb#219 def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/test.rb#87 + # source://minitest/5.24.1/lib/minitest/test.rb#87 def run; end - # source://minitest/5.23.1/lib/minitest/test.rb#201 + # source://minitest/5.24.1/lib/minitest/test.rb#201 def sanitize_exception(e); end - # source://minitest/5.23.1/lib/minitest/test.rb#233 + # source://minitest/5.24.1/lib/minitest/test.rb#233 def with_info_handler(&block); end class << self @@ -59,22 +59,22 @@ class Minitest::Test < ::Minitest::Runnable # source://minitest-focus//lib/minitest/focus.rb#40 def focus(name = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/test.rb#35 + # source://minitest/5.24.1/lib/minitest/test.rb#35 def i_suck_and_my_tests_are_order_dependent!; end - # source://minitest/5.23.1/lib/minitest/test.rb#26 + # source://minitest/5.24.1/lib/minitest/test.rb#26 def io_lock; end - # source://minitest/5.23.1/lib/minitest/test.rb#26 + # source://minitest/5.24.1/lib/minitest/test.rb#26 def io_lock=(_arg0); end - # source://minitest/5.23.1/lib/minitest/test.rb#48 + # source://minitest/5.24.1/lib/minitest/test.rb#48 def make_my_diffs_pretty!; end - # source://minitest/5.23.1/lib/minitest/test.rb#60 + # source://minitest/5.24.1/lib/minitest/test.rb#60 def parallelize_me!; end - # source://minitest/5.23.1/lib/minitest/test.rb#70 + # source://minitest/5.24.1/lib/minitest/test.rb#70 def runnable_methods; end # Sets a one-off method_added callback to set focus on the method diff --git a/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi b/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi index f60d4f4..438c200 100644 --- a/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi +++ b/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi @@ -8,85 +8,85 @@ # source://minitest-reporters//lib/minitest/reporters.rb#3 module Minitest class << self - # source://minitest/5.24.0/lib/minitest.rb#323 + # source://minitest/5.24.1/lib/minitest.rb#323 def __run(reporter, options); end - # source://minitest/5.24.0/lib/minitest.rb#97 + # source://minitest/5.24.1/lib/minitest.rb#97 def after_run(&block); end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def allow_fork; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def allow_fork=(_arg0); end - # source://minitest/5.24.0/lib/minitest.rb#69 + # source://minitest/5.24.1/lib/minitest.rb#69 def autorun; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def backtrace_filter; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def backtrace_filter=(_arg0); end - # source://minitest/5.24.0/lib/minitest.rb#18 + # source://minitest/5.24.1/lib/minitest.rb#18 def cattr_accessor(name); end - # source://minitest/5.24.0/lib/minitest.rb#1208 + # source://minitest/5.24.1/lib/minitest.rb#1208 def clock_time; end - # source://minitest/5.24.0/lib/minitest.rb#303 + # source://minitest/5.24.1/lib/minitest.rb#303 def empty_run!(options); end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def extensions; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def extensions=(_arg0); end - # source://minitest/5.24.0/lib/minitest.rb#336 + # source://minitest/5.24.1/lib/minitest.rb#336 def filter_backtrace(bt); end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def info_signal; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def info_signal=(_arg0); end - # source://minitest/5.24.0/lib/minitest.rb#125 + # source://minitest/5.24.1/lib/minitest.rb#125 def init_plugins(options); end - # source://minitest/5.24.0/lib/minitest.rb#109 + # source://minitest/5.24.1/lib/minitest.rb#109 def load_plugins; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def parallel_executor; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def parallel_executor=(_arg0); end - # source://minitest/5.24.0/lib/minitest.rb#143 + # source://minitest/5.24.1/lib/minitest.rb#143 def process_args(args = T.unsafe(nil)); end - # source://minitest/5.24.0/lib/minitest.rb#104 + # source://minitest/5.24.1/lib/minitest.rb#104 def register_plugin(name_or_mod); end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def reporter; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def reporter=(_arg0); end - # source://minitest/5.24.0/lib/minitest.rb#269 + # source://minitest/5.24.1/lib/minitest.rb#269 def run(args = T.unsafe(nil)); end - # source://minitest/5.24.0/lib/minitest.rb#1199 + # source://minitest/5.24.1/lib/minitest.rb#1199 def run_one_method(klass, method_name); end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def seed; end - # source://minitest/5.24.0/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def seed=(_arg0); end end end diff --git a/sorbet/rbi/gems/minitest@5.24.0.rbi b/sorbet/rbi/gems/minitest@5.24.1.rbi similarity index 100% rename from sorbet/rbi/gems/minitest@5.24.0.rbi rename to sorbet/rbi/gems/minitest@5.24.1.rbi diff --git a/sorbet/rbi/gems/psych@5.1.2.rbi b/sorbet/rbi/gems/psych@5.1.2.rbi index f3d4c02..a060b60 100644 --- a/sorbet/rbi/gems/psych@5.1.2.rbi +++ b/sorbet/rbi/gems/psych@5.1.2.rbi @@ -5,6 +5,7 @@ # Please instead update this file by running `bin/tapioca gem psych`. +# source://psych//lib/psych/core_ext.rb#2 class Object < ::BasicObject include ::Kernel include ::PP::ObjectMixin @@ -14,11 +15,11 @@ class Object < ::BasicObject # Convert an object to YAML. See Psych.dump for more information on the # available +options+. # - # source://psych//psych/core_ext.rb#12 + # source://psych//lib/psych/core_ext.rb#12 def to_yaml(options = T.unsafe(nil)); end class << self - # source://psych//psych/core_ext.rb#3 + # source://psych//lib/psych/core_ext.rb#3 def yaml_tag(url); end end end @@ -224,26 +225,28 @@ end # # You can instantiate an Emitter manually # Psych::Visitors::ToRuby.new.accept(parser.handler.root.first) # # => "a" +# +# source://psych//lib/psych/versions.rb#3 module Psych class << self - # source://psych//psych.rb#682 + # source://psych//lib/psych.rb#682 def add_builtin_type(type_tag, &block); end # :stopdoc: # - # source://psych//psych.rb#676 + # source://psych//lib/psych.rb#676 def add_domain_type(domain, type_tag, &block); end - # source://psych//psych.rb#692 + # source://psych//lib/psych.rb#692 def add_tag(tag, klass); end - # source://psych//psych.rb#708 + # source://psych//lib/psych.rb#708 def config; end - # source://psych//psych.rb#720 + # source://psych//lib/psych.rb#720 def domain_types; end - # source://psych//psych.rb#732 + # source://psych//lib/psych.rb#732 def domain_types=(value); end # call-seq: @@ -288,7 +291,7 @@ module Psych # # Dump an array to an IO with indentation set # Psych.dump(['a', ['b']], StringIO.new, indentation: 3) # - # source://psych//psych.rb#505 + # source://psych//lib/psych.rb#505 def dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Dump a list of objects as separate documents to a document stream. @@ -297,13 +300,13 @@ module Psych # # Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n" # - # source://psych//psych.rb#595 + # source://psych//lib/psych.rb#595 def dump_stream(*objects); end - # source://psych//psych.rb#716 + # source://psych//lib/psych.rb#716 def dump_tags; end - # source://psych//psych.rb#728 + # source://psych//lib/psych.rb#728 def dump_tags=(value); end # Load +yaml+ in to a Ruby data structure. If multiple documents are @@ -335,7 +338,7 @@ module Psych # Raises a TypeError when `yaml` parameter is NilClass. This method is # similar to `safe_load` except that `Symbol` objects are allowed by default. # - # source://psych//psych.rb#368 + # source://psych//lib/psych.rb#368 def load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Loads the document contained in +filename+. Returns the yaml contained in @@ -343,7 +346,7 @@ module Psych # the specified +fallback+ return value, which defaults to +false+. # See load for options. # - # source://psych//psych.rb#669 + # source://psych//lib/psych.rb#669 def load_file(filename, **kwargs); end # Load multiple documents given in +yaml+. Returns the parsed documents @@ -360,13 +363,13 @@ module Psych # end # list # => ['foo', 'bar'] # - # source://psych//psych.rb#626 + # source://psych//lib/psych.rb#626 def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end - # source://psych//psych.rb#712 + # source://psych//lib/psych.rb#712 def load_tags; end - # source://psych//psych.rb#724 + # source://psych//lib/psych.rb#724 def load_tags=(value); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document. @@ -388,14 +391,14 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//psych.rb#398 + # source://psych//lib/psych.rb#398 def parse(yaml, filename: T.unsafe(nil)); end # Parse a file at +filename+. Returns the Psych::Nodes::Document. # # Raises a Psych::SyntaxError when a YAML syntax error is detected. # - # source://psych//psych.rb#410 + # source://psych//lib/psych.rb#410 def parse_file(filename, fallback: T.unsafe(nil)); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream. @@ -427,15 +430,15 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//psych.rb#452 + # source://psych//lib/psych.rb#452 def parse_stream(yaml, filename: T.unsafe(nil), &block); end # Returns a default parser # - # source://psych//psych.rb#419 + # source://psych//lib/psych.rb#419 def parser; end - # source://psych//psych.rb#688 + # source://psych//lib/psych.rb#688 def remove_type(type_tag); end # call-seq: @@ -500,7 +503,7 @@ module Psych # # Dump an array to an IO with indentation set # Psych.safe_dump(['a', ['b']], StringIO.new, indentation: 3) # - # source://psych//psych.rb#578 + # source://psych//lib/psych.rb#578 def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Safely load the yaml string in +yaml+. By default, only the following @@ -547,7 +550,7 @@ module Psych # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"} # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"} # - # source://psych//psych.rb#322 + # source://psych//lib/psych.rb#322 def safe_load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Safely loads the document contained in +filename+. Returns the yaml contained in @@ -555,12 +558,12 @@ module Psych # the specified +fallback+ return value, which defaults to +false+. # See safe_load for options. # - # source://psych//psych.rb#658 + # source://psych//lib/psych.rb#658 def safe_load_file(filename, **kwargs); end # Dump Ruby +object+ to a JSON string. # - # source://psych//psych.rb#605 + # source://psych//lib/psych.rb#605 def to_json(object); end # Load +yaml+ in to a Ruby data structure. If multiple documents are @@ -595,7 +598,7 @@ module Psych # YAML documents that are supplied via user input. Instead, please use the # load method or the safe_load method. # - # source://psych//psych.rb#271 + # source://psych//lib/psych.rb#271 def unsafe_load(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Load the document contained in +filename+. Returns the yaml contained in @@ -606,99 +609,105 @@ module Psych # YAML documents that are supplied via user input. Instead, please use the # safe_load_file method. # - # source://psych//psych.rb#647 + # source://psych//lib/psych.rb#647 def unsafe_load_file(filename, **kwargs); end end end # Subclasses `BadAlias` for backwards compatibility +# +# source://psych//lib/psych/exception.rb#10 class Psych::AliasesNotEnabled < ::Psych::BadAlias # @return [AliasesNotEnabled] a new instance of AliasesNotEnabled # - # source://psych//psych/exception.rb#11 + # source://psych//lib/psych/exception.rb#11 def initialize; end end # Subclasses `BadAlias` for backwards compatibility +# +# source://psych//lib/psych/exception.rb#17 class Psych::AnchorNotDefined < ::Psych::BadAlias # @return [AnchorNotDefined] a new instance of AnchorNotDefined # - # source://psych//psych/exception.rb#18 + # source://psych//lib/psych/exception.rb#18 def initialize(anchor_name); end end +# source://psych//lib/psych/class_loader.rb#6 class Psych::ClassLoader # @return [ClassLoader] a new instance of ClassLoader # - # source://psych//psych/class_loader.rb#21 + # source://psych//lib/psych/class_loader.rb#21 def initialize; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def big_decimal; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def complex; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def date; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def date_time; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def exception; end - # source://psych//psych/class_loader.rb#25 + # source://psych//lib/psych/class_loader.rb#25 def load(klassname); end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def object; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def psych_omap; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def psych_set; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def range; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def rational; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def regexp; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def struct; end - # source://psych//psych/class_loader.rb#39 + # source://psych//lib/psych/class_loader.rb#39 def symbol; end - # source://psych//psych/class_loader.rb#31 + # source://psych//lib/psych/class_loader.rb#31 def symbolize(sym); end private - # source://psych//psych/class_loader.rb#47 + # source://psych//lib/psych/class_loader.rb#47 def find(klassname); end - # source://psych//psych/class_loader.rb#51 + # source://psych//lib/psych/class_loader.rb#51 def resolve(klassname); end end +# source://psych//lib/psych/class_loader.rb#76 class Psych::ClassLoader::Restricted < ::Psych::ClassLoader # @return [Restricted] a new instance of Restricted # - # source://psych//psych/class_loader.rb#77 + # source://psych//lib/psych/class_loader.rb#77 def initialize(classes, symbols); end - # source://psych//psych/class_loader.rb#83 + # source://psych//lib/psych/class_loader.rb#83 def symbolize(sym); end private - # source://psych//psych/class_loader.rb#95 + # source://psych//lib/psych/class_loader.rb#95 def find(klassname); end end @@ -707,31 +716,33 @@ end # automatically assumes a Psych::Nodes::Mapping is being emitted. Other # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are # called, respectively. +# +# source://psych//lib/psych/coder.rb#9 class Psych::Coder # @return [Coder] a new instance of Coder # - # source://psych//psych/coder.rb#13 + # source://psych//lib/psych/coder.rb#13 def initialize(tag); end - # source://psych//psych/coder.rb#84 + # source://psych//lib/psych/coder.rb#84 def [](k); end - # source://psych//psych/coder.rb#78 + # source://psych//lib/psych/coder.rb#78 def []=(k, v); end - # source://psych//psych/coder.rb#78 + # source://psych//lib/psych/coder.rb#78 def add(k, v); end # Returns the value of attribute implicit. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def implicit; end # Sets the attribute implicit # # @param value the value to set the attribute implicit to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def implicit=(_arg0); end # Emit a map. The coder will be yielded to the block. @@ -739,98 +750,99 @@ class Psych::Coder # @yield [_self] # @yieldparam _self [Psych::Coder] the object that the method was called on # - # source://psych//psych/coder.rb#34 + # source://psych//lib/psych/coder.rb#34 def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end # Emit a map with +value+ # - # source://psych//psych/coder.rb#73 + # source://psych//lib/psych/coder.rb#73 def map=(map); end # Returns the value of attribute object. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def object; end # Sets the attribute object # # @param value the value to set the attribute object to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def object=(_arg0); end # Emit a sequence with +map+ and +tag+ # - # source://psych//psych/coder.rb#54 + # source://psych//lib/psych/coder.rb#54 def represent_map(tag, map); end # Emit an arbitrary object +obj+ and +tag+ # - # source://psych//psych/coder.rb#60 + # source://psych//lib/psych/coder.rb#60 def represent_object(tag, obj); end # Emit a scalar with +value+ and +tag+ # - # source://psych//psych/coder.rb#42 + # source://psych//lib/psych/coder.rb#42 def represent_scalar(tag, value); end # Emit a sequence with +list+ and +tag+ # - # source://psych//psych/coder.rb#48 + # source://psych//lib/psych/coder.rb#48 def represent_seq(tag, list); end - # source://psych//psych/coder.rb#24 + # source://psych//lib/psych/coder.rb#24 def scalar(*args); end # Emit a scalar with +value+ # - # source://psych//psych/coder.rb#67 + # source://psych//lib/psych/coder.rb#67 def scalar=(value); end # Returns the value of attribute seq. # - # source://psych//psych/coder.rb#11 + # source://psych//lib/psych/coder.rb#11 def seq; end # Emit a sequence of +list+ # - # source://psych//psych/coder.rb#90 + # source://psych//lib/psych/coder.rb#90 def seq=(list); end # Returns the value of attribute style. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def style; end # Sets the attribute style # # @param value the value to set the attribute style to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def style=(_arg0); end # Returns the value of attribute tag. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def tag; end # Sets the attribute tag # # @param value the value to set the attribute tag to. # - # source://psych//psych/coder.rb#10 + # source://psych//lib/psych/coder.rb#10 def tag=(_arg0); end # Returns the value of attribute type. # - # source://psych//psych/coder.rb#11 + # source://psych//lib/psych/coder.rb#11 def type; end end +# source://psych//lib/psych/exception.rb#23 class Psych::DisallowedClass < ::Psych::Exception # @return [DisallowedClass] a new instance of DisallowedClass # - # source://psych//psych/exception.rb#24 + # source://psych//lib/psych/exception.rb#24 def initialize(action, klass_name); end end @@ -843,6 +855,8 @@ end # event handlers. # # See Psych::Parser for more details +# +# source://psych//lib/psych/handler.rb#13 class Psych::Handler # Called when an alias is found to +anchor+. +anchor+ will be the name # of the anchor found. @@ -858,13 +872,13 @@ class Psych::Handler # &ponies is the anchor, *ponies is the alias. In this case, alias is # called with "ponies". # - # source://psych//psych/handler.rb#110 + # source://psych//lib/psych/handler.rb#110 def alias(anchor); end # Called when an empty event happens. (Which, as far as I can tell, is # never). # - # source://psych//psych/handler.rb#236 + # source://psych//lib/psych/handler.rb#236 def empty; end # Called with the document ends. +implicit+ is a boolean value indicating @@ -885,27 +899,27 @@ class Psych::Handler # # +implicit+ will be false. # - # source://psych//psych/handler.rb#93 + # source://psych//lib/psych/handler.rb#93 def end_document(implicit); end # Called when a map ends # - # source://psych//psych/handler.rb#230 + # source://psych//lib/psych/handler.rb#230 def end_mapping; end # Called when a sequence ends. # - # source://psych//psych/handler.rb#191 + # source://psych//lib/psych/handler.rb#191 def end_sequence; end # Called when the YAML stream ends # - # source://psych//psych/handler.rb#241 + # source://psych//lib/psych/handler.rb#241 def end_stream; end # Called before each event with line/column information. # - # source://psych//psych/handler.rb#246 + # source://psych//lib/psych/handler.rb#246 def event_location(start_line, start_column, end_line, end_column); end # Called when a scalar +value+ is found. The scalar may have an @@ -944,7 +958,7 @@ class Psych::Handler # ["many lines", nil, nil, true, false, 1 ] # ["many\nnewlines\n", nil, nil, false, true, 4 ] # - # source://psych//psych/handler.rb#150 + # source://psych//lib/psych/handler.rb#150 def scalar(value, anchor, tag, plain, quoted, style); end # Called when the document starts with the declared +version+, @@ -969,7 +983,7 @@ class Psych::Handler # tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]] # implicit # => false # - # source://psych//psych/handler.rb#72 + # source://psych//lib/psych/handler.rb#72 def start_document(version, tag_directives, implicit); end # Called when a map starts. @@ -1002,7 +1016,7 @@ class Psych::Handler # [nil, "tag:yaml.org,2002:map", false, 2 ] # ["pewpew", nil, true, 1 ] # - # source://psych//psych/handler.rb#225 + # source://psych//lib/psych/handler.rb#225 def start_mapping(anchor, tag, implicit, style); end # Called when a sequence is started. @@ -1037,7 +1051,7 @@ class Psych::Handler # [nil, "tag:yaml.org,2002:seq", false, 2 ] # ["pewpew", nil, true, 1 ] # - # source://psych//psych/handler.rb#186 + # source://psych//lib/psych/handler.rb#186 def start_sequence(anchor, tag, implicit, style); end # Called with +encoding+ when the YAML stream starts. This method is @@ -1045,61 +1059,64 @@ class Psych::Handler # # See the constants in Psych::Parser for the possible values of +encoding+. # - # source://psych//psych/handler.rb#47 + # source://psych//lib/psych/handler.rb#47 def start_stream(encoding); end # Is this handler a streaming handler? # # @return [Boolean] # - # source://psych//psych/handler.rb#251 + # source://psych//lib/psych/handler.rb#251 def streaming?; end end # Configuration options for dumping YAML. +# +# source://psych//lib/psych/handler.rb#16 class Psych::Handler::DumperOptions # @return [DumperOptions] a new instance of DumperOptions # - # source://psych//psych/handler.rb#19 + # source://psych//lib/psych/handler.rb#19 def initialize; end # Returns the value of attribute canonical. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def canonical; end # Sets the attribute canonical # # @param value the value to set the attribute canonical to. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def canonical=(_arg0); end # Returns the value of attribute indentation. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def indentation; end # Sets the attribute indentation # # @param value the value to set the attribute indentation to. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def indentation=(_arg0); end # Returns the value of attribute line_width. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def line_width; end # Sets the attribute line_width # # @param value the value to set the attribute line_width to. # - # source://psych//psych/handler.rb#17 + # source://psych//lib/psych/handler.rb#17 def line_width=(_arg0); end end +# source://psych//lib/psych/json/stream.rb#7 class Psych::JSON::Stream < ::Psych::Visitors::JSONTree include ::Psych::Streaming extend ::Psych::Streaming::ClassMethods @@ -1133,28 +1150,30 @@ end # # Psych uses Psych::Parser in combination with Psych::TreeBuilder to # construct an AST of the parsed YAML document. +# +# source://psych//lib/psych/parser.rb#33 class Psych::Parser # Creates a new Psych::Parser instance with +handler+. YAML events will # be called on +handler+. See Psych::Parser for more details. # # @return [Parser] a new instance of Parser # - # source://psych//psych/parser.rb#47 + # source://psych//lib/psych/parser.rb#47 def initialize(handler = T.unsafe(nil)); end # Set the encoding for this parser to +encoding+ # - # source://psych//psych/parser.rb#41 + # source://psych//lib/psych/parser.rb#41 def external_encoding=(_arg0); end # The handler on which events will be called # - # source://psych//psych/parser.rb#38 + # source://psych//lib/psych/parser.rb#38 def handler; end # The handler on which events will be called # - # source://psych//psych/parser.rb#38 + # source://psych//lib/psych/parser.rb#38 def handler=(_arg0); end # call-seq: @@ -1165,49 +1184,51 @@ class Psych::Parser # # See Psych::Parser and Psych::Parser#handler # - # source://psych//psych/parser.rb#61 + # source://psych//lib/psych/parser.rb#61 def parse(yaml, path = T.unsafe(nil)); end end # Scan scalars for built in types +# +# source://psych//lib/psych/scalar_scanner.rb#6 class Psych::ScalarScanner # Create a new scanner # # @return [ScalarScanner] a new instance of ScalarScanner # - # source://psych//psych/scalar_scanner.rb#30 + # source://psych//lib/psych/scalar_scanner.rb#30 def initialize(class_loader, strict_integer: T.unsafe(nil)); end # Returns the value of attribute class_loader. # - # source://psych//psych/scalar_scanner.rb#27 + # source://psych//lib/psych/scalar_scanner.rb#27 def class_loader; end # Parse and return an int from +string+ # - # source://psych//psych/scalar_scanner.rb#109 + # source://psych//lib/psych/scalar_scanner.rb#109 def parse_int(string); end # Parse and return a Time from +string+ # - # source://psych//psych/scalar_scanner.rb#115 + # source://psych//lib/psych/scalar_scanner.rb#115 def parse_time(string); end # Tokenize +string+ returning the Ruby object # - # source://psych//psych/scalar_scanner.rb#37 + # source://psych//lib/psych/scalar_scanner.rb#37 def tokenize(string); end end # Same as above, but allows commas. # Not to YML spec, but kept for backwards compatibility # -# source://psych//psych/scalar_scanner.rb#22 +# source://psych//lib/psych/scalar_scanner.rb#22 Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp) # Taken from http://yaml.org/type/int.html # -# source://psych//psych/scalar_scanner.rb#15 +# source://psych//lib/psych/scalar_scanner.rb#15 Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp) # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML, @@ -1229,75 +1250,81 @@ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp) # stream.start do |em| # em.push(:foo => 'bar') # end +# +# source://psych//lib/psych/stream.rb#24 class Psych::Stream < ::Psych::Visitors::YAMLTree include ::Psych::Streaming extend ::Psych::Streaming::ClassMethods end +# source://psych//lib/psych/stream.rb#25 class Psych::Stream::Emitter < ::Psych::Emitter - # source://psych//psych/stream.rb#26 + # source://psych//lib/psych/stream.rb#26 def end_document(implicit_end = T.unsafe(nil)); end # @return [Boolean] # - # source://psych//psych/stream.rb#30 + # source://psych//lib/psych/stream.rb#30 def streaming?; end end +# source://psych//lib/psych/streaming.rb#3 module Psych::Streaming # Start streaming using +encoding+ # - # source://psych//psych/streaming.rb#18 + # source://psych//lib/psych/streaming.rb#18 def start(encoding = T.unsafe(nil)); end private - # source://psych//psych/streaming.rb#25 + # source://psych//lib/psych/streaming.rb#25 def register(target, obj); end end +# source://psych//lib/psych/streaming.rb#4 module Psych::Streaming::ClassMethods # Create a new streaming emitter. Emitter will print to +io+. See # Psych::Stream for an example. # - # source://psych//psych/streaming.rb#8 + # source://psych//lib/psych/streaming.rb#8 def new(io); end end +# source://psych//lib/psych/syntax_error.rb#5 class Psych::SyntaxError < ::Psych::Exception # @return [SyntaxError] a new instance of SyntaxError # - # source://psych//psych/syntax_error.rb#8 + # source://psych//lib/psych/syntax_error.rb#8 def initialize(file, line, col, offset, problem, context); end # Returns the value of attribute column. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def column; end # Returns the value of attribute context. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def context; end # Returns the value of attribute file. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def file; end # Returns the value of attribute line. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def line; end # Returns the value of attribute offset. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def offset; end # Returns the value of attribute problem. # - # source://psych//psych/syntax_error.rb#6 + # source://psych//lib/psych/syntax_error.rb#6 def problem; end end @@ -1312,15 +1339,17 @@ end # # See Psych::Handler for documentation on the event methods used in this # class. +# +# source://psych//lib/psych/tree_builder.rb#17 class Psych::TreeBuilder < ::Psych::Handler # Create a new TreeBuilder instance # # @return [TreeBuilder] a new instance of TreeBuilder # - # source://psych//psych/tree_builder.rb#22 + # source://psych//lib/psych/tree_builder.rb#22 def initialize; end - # source://psych//psych/tree_builder.rb#103 + # source://psych//lib/psych/tree_builder.rb#103 def alias(anchor); end # Handles end_document events with +version+, +tag_directives+, @@ -1328,27 +1357,27 @@ class Psych::TreeBuilder < ::Psych::Handler # # See Psych::Handler#start_document # - # source://psych//psych/tree_builder.rb#77 + # source://psych//lib/psych/tree_builder.rb#77 def end_document(implicit_end = T.unsafe(nil)); end - # source://psych//psych/tree_builder.rb#52 + # source://psych//lib/psych/tree_builder.rb#52 def end_mapping; end - # source://psych//psych/tree_builder.rb#52 + # source://psych//lib/psych/tree_builder.rb#52 def end_sequence; end - # source://psych//psych/tree_builder.rb#90 + # source://psych//lib/psych/tree_builder.rb#90 def end_stream; end - # source://psych//psych/tree_builder.rb#33 + # source://psych//lib/psych/tree_builder.rb#33 def event_location(start_line, start_column, end_line, end_column); end # Returns the root node for the built tree # - # source://psych//psych/tree_builder.rb#19 + # source://psych//lib/psych/tree_builder.rb#19 def root; end - # source://psych//psych/tree_builder.rb#96 + # source://psych//lib/psych/tree_builder.rb#96 def scalar(value, anchor, tag, plain, quoted, style); end # Handles start_document events with +version+, +tag_directives+, @@ -1356,176 +1385,181 @@ class Psych::TreeBuilder < ::Psych::Handler # # See Psych::Handler#start_document # - # source://psych//psych/tree_builder.rb#65 + # source://psych//lib/psych/tree_builder.rb#65 def start_document(version, tag_directives, implicit); end - # source://psych//psych/tree_builder.rb#45 + # source://psych//lib/psych/tree_builder.rb#45 def start_mapping(anchor, tag, implicit, style); end - # source://psych//psych/tree_builder.rb#45 + # source://psych//lib/psych/tree_builder.rb#45 def start_sequence(anchor, tag, implicit, style); end - # source://psych//psych/tree_builder.rb#84 + # source://psych//lib/psych/tree_builder.rb#84 def start_stream(encoding); end private - # source://psych//psych/tree_builder.rb#116 + # source://psych//lib/psych/tree_builder.rb#116 def pop; end - # source://psych//psych/tree_builder.rb#111 + # source://psych//lib/psych/tree_builder.rb#111 def push(value); end - # source://psych//psych/tree_builder.rb#132 + # source://psych//lib/psych/tree_builder.rb#132 def set_end_location(node); end - # source://psych//psych/tree_builder.rb#122 + # source://psych//lib/psych/tree_builder.rb#122 def set_location(node); end - # source://psych//psych/tree_builder.rb#127 + # source://psych//lib/psych/tree_builder.rb#127 def set_start_location(node); end end # The version of Psych you are using # -# source://psych//psych/versions.rb#5 +# source://psych//lib/psych/versions.rb#5 Psych::VERSION = T.let(T.unsafe(nil), String) +# source://psych//lib/psych/visitors/depth_first.rb#4 class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor # @return [DepthFirst] a new instance of DepthFirst # - # source://psych//psych/visitors/depth_first.rb#5 + # source://psych//lib/psych/visitors/depth_first.rb#5 def initialize(block); end private - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def nary(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#20 def terminal(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#20 def visit_Psych_Nodes_Alias(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Document(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Mapping(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych//lib/psych/visitors/depth_first.rb#20 def visit_Psych_Nodes_Scalar(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Sequence(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych//lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Stream(o); end end +# source://psych//lib/psych/visitors/yaml_tree.rb#540 class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree # @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree # - # source://psych//psych/visitors/yaml_tree.rb#552 + # source://psych//lib/psych/visitors/yaml_tree.rb#552 def initialize(emitter, ss, options); end - # source://psych//psych/visitors/yaml_tree.rb#565 + # source://psych//lib/psych/visitors/yaml_tree.rb#565 def accept(target); end - # source://psych//psych/visitors/yaml_tree.rb#577 + # source://psych//lib/psych/visitors/yaml_tree.rb#577 def visit_Symbol(sym); end end -# source://psych//psych/visitors/yaml_tree.rb#541 +# source://psych//lib/psych/visitors/yaml_tree.rb#541 Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash) # This class walks a YAML AST, converting each node to Ruby +# +# source://psych//lib/psych/visitors/to_ruby.rb#14 class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor # @return [ToRuby] a new instance of ToRuby # - # source://psych//psych/visitors/to_ruby.rb#23 + # source://psych//lib/psych/visitors/to_ruby.rb#23 def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end - # source://psych//psych/visitors/to_ruby.rb#34 + # source://psych//lib/psych/visitors/to_ruby.rb#34 def accept(target); end # Returns the value of attribute class_loader. # - # source://psych//psych/visitors/to_ruby.rb#21 + # source://psych//lib/psych/visitors/to_ruby.rb#21 def class_loader; end - # source://psych//psych/visitors/to_ruby.rb#327 + # source://psych//lib/psych/visitors/to_ruby.rb#327 def visit_Psych_Nodes_Alias(o); end - # source://psych//psych/visitors/to_ruby.rb#319 + # source://psych//lib/psych/visitors/to_ruby.rb#319 def visit_Psych_Nodes_Document(o); end - # source://psych//psych/visitors/to_ruby.rb#165 + # source://psych//lib/psych/visitors/to_ruby.rb#165 def visit_Psych_Nodes_Mapping(o); end - # source://psych//psych/visitors/to_ruby.rb#129 + # source://psych//lib/psych/visitors/to_ruby.rb#129 def visit_Psych_Nodes_Scalar(o); end - # source://psych//psych/visitors/to_ruby.rb#133 + # source://psych//lib/psych/visitors/to_ruby.rb#133 def visit_Psych_Nodes_Sequence(o); end - # source://psych//psych/visitors/to_ruby.rb#323 + # source://psych//lib/psych/visitors/to_ruby.rb#323 def visit_Psych_Nodes_Stream(o); end private - # source://psych//psych/visitors/to_ruby.rb#395 + # source://psych//lib/psych/visitors/to_ruby.rb#395 def deduplicate(key); end - # source://psych//psych/visitors/to_ruby.rb#51 + # source://psych//lib/psych/visitors/to_ruby.rb#51 def deserialize(o); end - # source://psych//psych/visitors/to_ruby.rb#412 + # source://psych//lib/psych/visitors/to_ruby.rb#412 def init_with(o, h, node); end - # source://psych//psych/visitors/to_ruby.rb#404 + # source://psych//lib/psych/visitors/to_ruby.rb#404 def merge_key(hash, key, val); end - # source://psych//psych/visitors/to_ruby.rb#333 + # source://psych//lib/psych/visitors/to_ruby.rb#333 def register(node, object); end - # source://psych//psych/visitors/to_ruby.rb#338 + # source://psych//lib/psych/visitors/to_ruby.rb#338 def register_empty(object); end # Convert +klassname+ to a Class # - # source://psych//psych/visitors/to_ruby.rb#425 + # source://psych//lib/psych/visitors/to_ruby.rb#425 def resolve_class(klassname); end - # source://psych//psych/visitors/to_ruby.rb#407 + # source://psych//lib/psych/visitors/to_ruby.rb#407 def revive(klass, node); end - # source://psych//psych/visitors/to_ruby.rb#344 + # source://psych//lib/psych/visitors/to_ruby.rb#344 def revive_hash(hash, o, tagged = T.unsafe(nil)); end class << self - # source://psych//psych/visitors/to_ruby.rb#15 + # source://psych//lib/psych/visitors/to_ruby.rb#15 def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end end end +# source://psych//lib/psych/visitors/visitor.rb#4 class Psych::Visitors::Visitor - # source://psych//psych/visitors/visitor.rb#5 + # source://psych//lib/psych/visitors/visitor.rb#5 def accept(target); end private - # source://psych//psych/visitors/visitor.rb#19 + # source://psych//lib/psych/visitors/visitor.rb#19 def dispatch; end - # source://psych//psych/visitors/visitor.rb#29 + # source://psych//lib/psych/visitors/visitor.rb#29 def visit(target); end class << self # @api private # - # source://psych//psych/visitors/visitor.rb#12 + # source://psych//lib/psych/visitors/visitor.rb#12 def dispatch_cache; end end end @@ -1535,198 +1569,201 @@ end # builder = Psych::Visitors::YAMLTree.new # builder << { :foo => 'bar' } # builder.tree # => #>>>>>> right -# end -# ~~~ -# -# source://rbi//lib/rbi/rewriters/merge_trees.rb#589 -class RBI::ConflictTree < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#596 - sig { params(left_name: ::String, right_name: ::String).void } - def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#607 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 - sig { returns(::RBI::Tree) } - def left; end - - # @return [Tree] - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 - def right; end -end - -# Consts -# -# source://rbi//lib/rbi/model.rb#312 -class RBI::Const < ::RBI::NodeWithComments - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#327 - sig do - params( - name: ::String, - value: ::String, - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::Const).void) - ).void - end - def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/printer.rb#335 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#335 - sig { returns(::String) } - def fully_qualified_name; end - - # source://rbi//lib/rbi/index.rb#103 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#316 - sig { returns(::String) } - def name; end - - # source://rbi//lib/rbi/model.rb#342 - sig { override.returns(::String) } - def to_s; end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#316 - def value; end -end - -# source://rbi//lib/rbi/model.rb#889 -class RBI::Extend < ::RBI::Mixin - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#901 - sig do - params( - name: ::String, - names: ::String, - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::Extend).void) - ).void - end - def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#502 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/index.rb#143 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#907 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/model.rb#137 -class RBI::File - # source://rbi//lib/rbi/model.rb#156 - sig do - params( - strictness: T.nilable(::String), - comments: 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 - - # source://rbi//lib/rbi/model.rb#164 - sig { params(node: ::RBI::Node).void } - def <<(node); end - - # source://rbi//lib/rbi/printer.rb#105 - sig { params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#147 - sig { returns(T::Array[::RBI::Comment]) } - def comments; end - - # @return [Array] - # - # source://rbi//lib/rbi/model.rb#147 - def comments=(_arg0); end - - # source://rbi//lib/rbi/model.rb#169 - sig { returns(T::Boolean) } - def empty?; end - - # source://rbi//lib/rbi/printer.rb#129 - sig do - params( - out: T.any(::IO, ::StringIO), - indent: ::Integer, - print_locs: T::Boolean, - max_line_length: T.nilable(::Integer) - ).void - end - def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - - # source://rbi//lib/rbi/model.rb#141 - sig { returns(::RBI::Tree) } - def root; end - - # @return [Tree] - # - # source://rbi//lib/rbi/model.rb#141 - def root=(_arg0); end - - # source://rbi//lib/rbi/model.rb#144 - sig { returns(T.nilable(::String)) } - def strictness; end - - # @return [String, nil] - # - # source://rbi//lib/rbi/model.rb#144 - def strictness=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#135 - sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } - def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end -end - -# source://rbi//lib/rbi/formatter.rb#5 -class RBI::Formatter - # source://rbi//lib/rbi/formatter.rb#36 - sig do - params( - add_sig_templates: T::Boolean, - group_nodes: T::Boolean, - max_line_length: T.nilable(::Integer), - nest_singleton_methods: T::Boolean, - nest_non_public_methods: T::Boolean, - sort_nodes: T::Boolean - ).void - end - def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_methods: T.unsafe(nil), sort_nodes: T.unsafe(nil)); end - - # source://rbi//lib/rbi/formatter.rb#15 - sig { params(add_sig_templates: T::Boolean).returns(T::Boolean) } - def add_sig_templates=(add_sig_templates); end - - # source://rbi//lib/rbi/formatter.rb#59 - sig { params(file: ::RBI::File).void } - def format_file(file); end - - # source://rbi//lib/rbi/formatter.rb#64 - sig { params(tree: ::RBI::Tree).void } - def format_tree(tree); end - - # source://rbi//lib/rbi/formatter.rb#18 - sig { params(group_nodes: T::Boolean).returns(T::Boolean) } - def group_nodes=(group_nodes); end - - # source://rbi//lib/rbi/formatter.rb#24 - sig { returns(T.nilable(::Integer)) } - def max_line_length; end - - # @return [Integer, nil] - # - # source://rbi//lib/rbi/formatter.rb#24 - def max_line_length=(_arg0); end - - # source://rbi//lib/rbi/formatter.rb#21 - sig { params(nest_non_public_methods: T::Boolean).returns(T::Boolean) } - def nest_non_public_methods=(nest_non_public_methods); end - - # source://rbi//lib/rbi/formatter.rb#12 - sig { params(nest_singleton_methods: T::Boolean).returns(T::Boolean) } - def nest_singleton_methods=(nest_singleton_methods); end - - # source://rbi//lib/rbi/formatter.rb#53 - sig { params(file: ::RBI::File).returns(::String) } - def print_file(file); end - - # source://rbi//lib/rbi/formatter.rb#9 - sig { params(sort_nodes: T::Boolean).returns(T::Boolean) } - def sort_nodes=(sort_nodes); end -end - -# source://rbi//lib/rbi/rewriters/group_nodes.rb#88 -class RBI::Group < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/group_nodes.rb#95 - sig { params(kind: ::RBI::Group::Kind).void } - def initialize(kind); end - - # source://rbi//lib/rbi/printer.rb#838 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/group_nodes.rb#92 - sig { returns(::RBI::Group::Kind) } - def kind; end -end - -# source://rbi//lib/rbi/rewriters/group_nodes.rb#100 -class RBI::Group::Kind < ::T::Enum - enums do - Mixins = new - RequiredAncestors = new - Helpers = new - TypeMembers = new - MixesInClassMethods = new - Sends = new - Attrs = new - TStructFields = new - TEnums = new - Inits = new - Methods = new - SingletonClasses = new - Consts = new - end -end - -# Sorbet's misc. -# -# source://rbi//lib/rbi/model.rb#1372 -class RBI::Helper < ::RBI::NodeWithComments - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1386 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::Helper).void) - ).void - end - def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/printer.rb#825 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#520 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/index.rb#173 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#1376 - sig { returns(::String) } - def name; end - - # source://rbi//lib/rbi/model.rb#1393 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/model.rb#866 -class RBI::Include < ::RBI::Mixin - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#878 - sig do - params( - name: ::String, - names: ::String, - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::Include).void) - ).void - end - def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#493 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/index.rb#133 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#884 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/index.rb#5 -class RBI::Index < ::RBI::Visitor - # source://rbi//lib/rbi/index.rb#21 - sig { void } - def initialize; end - - # source://rbi//lib/rbi/index.rb#32 - sig { params(id: ::String).returns(T::Array[::RBI::Node]) } - def [](id); end - - # source://rbi//lib/rbi/index.rb#37 - sig { params(nodes: ::RBI::Node).void } - def index(*nodes); end - - # source://rbi//lib/rbi/index.rb#27 - sig { returns(T::Array[::String]) } - def keys; end - - # source://rbi//lib/rbi/index.rb#42 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - private - - # source://rbi//lib/rbi/index.rb#59 - sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void } - def index_node(node); end - - class << self - # source://rbi//lib/rbi/index.rb#13 - sig { params(node: ::RBI::Node).returns(::RBI::Index) } - def index(*node); end - end -end - -# A Node that can be referred to by a unique ID inside an index -# -# @abstract Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/index.rb#74 -module RBI::Indexable - interface! - - # Unique IDs that refer to this node. - # - # Some nodes can have multiple ids, for example an attribute accessor matches the ID of the - # getter and the setter. - # - # @abstract - # - # source://rbi//lib/rbi/index.rb#85 - sig { abstract.returns(T::Array[::String]) } - def index_ids; end -end - -# source://rbi//lib/rbi/model.rb#1069 -class RBI::KwArg < ::RBI::Arg - # source://rbi//lib/rbi/model.rb#1082 - sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } - def initialize(keyword, value, loc: T.unsafe(nil)); end - - # source://rbi//lib/rbi/model.rb#1088 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#622 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1073 - sig { returns(::String) } - def keyword; end - - # source://rbi//lib/rbi/model.rb#1093 - sig { returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/model.rb#755 -class RBI::KwOptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#770 - sig do - params( - name: ::String, - value: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#782 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#513 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#518 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#777 - sig { override.returns(::String) } - def to_s; end - - # source://rbi//lib/rbi/model.rb#759 - sig { returns(::String) } - def value; end -end - -# source://rbi//lib/rbi/model.rb#728 -class RBI::KwParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#739 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#750 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#498 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#503 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#745 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/model.rb#787 -class RBI::KwRestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#798 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#809 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#528 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#533 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#804 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/loc.rb#5 -class RBI::Loc - # source://rbi//lib/rbi/loc.rb#38 - sig do - params( - file: T.nilable(::String), - begin_line: T.nilable(::Integer), - end_line: T.nilable(::Integer), - begin_column: T.nilable(::Integer), - end_column: T.nilable(::Integer) - ).void - end - def initialize(file: T.unsafe(nil), begin_line: T.unsafe(nil), end_line: T.unsafe(nil), begin_column: T.unsafe(nil), end_column: T.unsafe(nil)); end - - # @return [Integer, nil] - # - # source://rbi//lib/rbi/loc.rb#27 - def begin_column; end - - # source://rbi//lib/rbi/loc.rb#27 - sig { returns(T.nilable(::Integer)) } - def begin_line; end - - # @return [Integer, nil] - # - # source://rbi//lib/rbi/loc.rb#27 - def end_column; end - - # @return [Integer, nil] - # - # source://rbi//lib/rbi/loc.rb#27 - def end_line; end - - # source://rbi//lib/rbi/loc.rb#24 - sig { returns(T.nilable(::String)) } - def file; end - - # source://rbi//lib/rbi/loc.rb#56 - sig { returns(T.nilable(::String)) } - def source; end - - # source://rbi//lib/rbi/loc.rb#47 - sig { returns(::String) } - def to_s; end - - class << self - # source://rbi//lib/rbi/loc.rb#12 - sig { params(file: ::String, prism_location: ::Prism::Location).returns(::RBI::Loc) } - def from_prism(file, prism_location); end - end -end - -# A tree that _might_ contain conflicts -# -# source://rbi//lib/rbi/rewriters/merge_trees.rb#330 -class RBI::MergeTree < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#344 - sig do - params( - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - conflicts: T::Array[::RBI::Rewriters::Merge::Conflict], - block: T.nilable(T.proc.params(node: ::RBI::Tree).void) - ).void - end - def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#334 - sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } - def conflicts; end -end - -# Methods and args -# -# source://rbi//lib/rbi/model.rb#483 -class RBI::Method < ::RBI::NodeWithComments - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#513 - sig do - params( - name: ::String, - params: T::Array[::RBI::Param], - is_singleton: T::Boolean, - visibility: ::RBI::Visibility, - sigs: T::Array[::RBI::Sig], - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#533 - sig { params(param: ::RBI::Param).void } - def <<(param); end - - # source://rbi//lib/rbi/printer.rb#384 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#568 - sig { params(name: ::String).void } - def add_block_param(name); end - - # source://rbi//lib/rbi/model.rb#558 - sig { params(name: ::String, default_value: ::String).void } - def add_kw_opt_param(name, default_value); end - - # source://rbi//lib/rbi/model.rb#553 - sig { params(name: ::String).void } - def add_kw_param(name); end - - # source://rbi//lib/rbi/model.rb#563 - sig { params(name: ::String).void } - def add_kw_rest_param(name); end - - # source://rbi//lib/rbi/model.rb#543 - sig { params(name: ::String, default_value: ::String).void } - def add_opt_param(name, default_value); end - - # source://rbi//lib/rbi/model.rb#538 - sig { params(name: ::String).void } - def add_param(name); end - - # source://rbi//lib/rbi/model.rb#548 - sig { params(name: ::String).void } - def add_rest_param(name); end - - # source://rbi//lib/rbi/model.rb#585 - sig do - params( - params: T::Array[::RBI::SigParam], - return_type: T.nilable(::String), - is_abstract: T::Boolean, - is_override: T::Boolean, - is_overridable: T::Boolean, - is_final: T::Boolean, - type_params: T::Array[::String], - checked: T.nilable(::Symbol), - block: T.proc.params(node: ::RBI::Sig).void - ).void - end - def add_sig(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#461 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#611 - sig { returns(::String) } - def fully_qualified_name; end - - # source://rbi//lib/rbi/index.rb#123 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/printer.rb#437 - sig { returns(T::Boolean) } - def inline_params?; end - - # source://rbi//lib/rbi/model.rb#493 - sig { returns(T::Boolean) } - def is_singleton; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#493 - def is_singleton=(_arg0); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#470 - sig { override.params(other: ::RBI::Node).void } - def merge_with(other); end - - # source://rbi//lib/rbi/model.rb#487 - sig { returns(::String) } - def name; end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#487 - def name=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#432 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/model.rb#490 - sig { returns(T::Array[::RBI::Param]) } - def params; end - - # source://rbi//lib/rbi/model.rb#499 - sig { returns(T::Array[::RBI::Sig]) } - def sigs; end - - # @return [Array] - # - # source://rbi//lib/rbi/model.rb#499 - def sigs=(_arg0); end - - # source://rbi//lib/rbi/model.rb#620 - sig { override.returns(::String) } - def to_s; end - - # source://rbi//lib/rbi/model.rb#496 - sig { returns(::RBI::Visibility) } - def visibility; end - - # @return [Visibility] - # - # source://rbi//lib/rbi/model.rb#496 - def visibility=(_arg0); end -end - -# source://rbi//lib/rbi/model.rb#1433 -class RBI::MixesInClassMethods < ::RBI::Mixin - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1445 - sig do - params( - name: ::String, - names: ::String, - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::MixesInClassMethods).void) - ).void - end - def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#511 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/index.rb#153 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#1451 - sig { override.returns(::String) } - def to_s; end -end - -# Mixins -# -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#843 -class RBI::Mixin < ::RBI::NodeWithComments - abstract! - - # source://rbi//lib/rbi/model.rb#860 - sig do - params( - name: ::String, - names: T::Array[::String], - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment] - ).void - end - def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#558 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#484 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#850 - sig { returns(T::Array[::String]) } - def names; end -end - -# source://rbi//lib/rbi/model.rb#190 -class RBI::Module < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#204 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::Module).void) - ).void - end - def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#385 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#211 - sig { override.returns(::String) } - def fully_qualified_name; end - - # source://rbi//lib/rbi/model.rb#194 - sig { returns(::String) } - def name; end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#194 - def name=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#270 - sig { override.params(v: ::RBI::Printer).void } - def print_header(v); end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#5 -class RBI::Node - abstract! - - # source://rbi//lib/rbi/model.rb#18 - sig { params(loc: T.nilable(::RBI::Loc)).void } - def initialize(loc: T.unsafe(nil)); end - - # @abstract - # - # source://rbi//lib/rbi/printer.rb#146 - sig { abstract.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # Can `self` and `_other` be merged into a single definition? - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#287 - sig { params(_other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(_other); end - - # source://rbi//lib/rbi/model.rb#24 - sig { void } - def detach; end - - # source://rbi//lib/rbi/rewriters/group_nodes.rb#48 - sig { returns(::RBI::Group::Kind) } - def group_kind; end - - # source://rbi//lib/rbi/model.rb#15 - sig { returns(T.nilable(::RBI::Loc)) } - def loc; end - - # @return [Loc, nil] - # - # source://rbi//lib/rbi/model.rb#15 - def loc=(_arg0); end - - # Merge `self` and `other` into a single definition - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#293 - sig { params(other: ::RBI::Node).void } - def merge_with(other); end - - # source://rbi//lib/rbi/printer.rb#179 - sig { returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#296 - sig { returns(T.nilable(::RBI::ConflictTree)) } - def parent_conflict_tree; end - - # source://rbi//lib/rbi/model.rb#46 - sig { returns(T.nilable(::RBI::Scope)) } - def parent_scope; end - - # source://rbi//lib/rbi/model.rb#12 - sig { returns(T.nilable(::RBI::Tree)) } - def parent_tree; end - - # @return [Tree, nil] - # - # source://rbi//lib/rbi/model.rb#12 - def parent_tree=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#156 - sig do - params( - out: T.any(::IO, ::StringIO), - indent: ::Integer, - print_locs: T::Boolean, - max_line_length: T.nilable(::Integer) - ).void - end - def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#169 - sig { params(v: ::RBI::Printer).void } - def print_blank_line_before(v); end - - # source://rbi//lib/rbi/model.rb#33 - sig { params(node: ::RBI::Node).void } - def replace(node); end - - # source://rbi//lib/rbi/rewriters/filter_versions.rb#94 - sig { params(version: ::Gem::Version).returns(T::Boolean) } - def satisfies_version?(version); end - - # source://rbi//lib/rbi/printer.rb#162 - sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } - def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#83 -class RBI::NodeWithComments < ::RBI::Node - abstract! - - # source://rbi//lib/rbi/model.rb#93 - sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } - def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://rbi//lib/rbi/model.rb#99 - sig { returns(T::Array[::String]) } - def annotations; end - - # source://rbi//lib/rbi/model.rb#90 - sig { returns(T::Array[::RBI::Comment]) } - def comments; end - - # @return [Array] - # - # source://rbi//lib/rbi/model.rb#90 - def comments=(_arg0); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#311 - sig { override.params(other: ::RBI::Node).void } - def merge_with(other); end - - # source://rbi//lib/rbi/printer.rb#188 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/rewriters/filter_versions.rb#104 - sig { returns(T::Array[::Gem::Requirement]) } - def version_requirements; end -end - -# source://rbi//lib/rbi/model.rb#674 -class RBI::OptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#689 - sig do - params( - name: ::String, - value: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#696 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#468 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#473 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#678 - sig { returns(::String) } - def value; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#625 -class RBI::Param < ::RBI::NodeWithComments - abstract! - - # source://rbi//lib/rbi/model.rb#641 - sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } - def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#446 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#459 - sig { returns(T::Array[::String]) } - def comments_lines; end - - # source://rbi//lib/rbi/model.rb#632 - sig { returns(::String) } - def name; end - - # source://rbi//lib/rbi/printer.rb#451 - sig { params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#647 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/parser.rb#7 -class RBI::ParseError < ::StandardError - # source://rbi//lib/rbi/parser.rb#14 - sig { params(message: ::String, location: ::RBI::Loc).void } - def initialize(message, location); end - - # source://rbi//lib/rbi/parser.rb#11 - sig { returns(::RBI::Loc) } - def location; end -end - -# source://rbi//lib/rbi/parser.rb#53 -class RBI::Parser - # source://rbi//lib/rbi/parser.rb#88 - sig { params(path: ::String).returns(::RBI::Tree) } - def parse_file(path); end - - # source://rbi//lib/rbi/parser.rb#83 - sig { params(string: ::String).returns(::RBI::Tree) } - def parse_string(string); end - - private - - # source://rbi//lib/rbi/parser.rb#95 - sig { params(source: ::String, file: ::String).returns(::RBI::Tree) } - def parse(source, file:); end - - class << self - # source://rbi//lib/rbi/parser.rb#65 - sig { params(path: ::String).returns(::RBI::Tree) } - def parse_file(path); end - - # source://rbi//lib/rbi/parser.rb#70 - sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) } - def parse_files(paths); end - - # source://rbi//lib/rbi/parser.rb#60 - sig { params(string: ::String).returns(::RBI::Tree) } - def parse_string(string); end - - # source://rbi//lib/rbi/parser.rb#76 - sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) } - def parse_strings(strings); end - end -end - -# source://rbi//lib/rbi/parser.rb#791 -class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor - # source://rbi//lib/rbi/parser.rb#798 - sig { params(content: ::String, file: ::String).void } - def initialize(content, file:); end - - # source://rbi//lib/rbi/parser.rb#795 - sig { returns(::RBI::Sig) } - def current; end - - # source://rbi//lib/rbi/parser.rb#850 - sig { override.params(node: ::Prism::AssocNode).void } - def visit_assoc_node(node); end - - # source://rbi//lib/rbi/parser.rb#805 - sig { override.params(node: ::Prism::CallNode).void } - def visit_call_node(node); end -end - -# source://rbi//lib/rbi/parser.rb#153 -class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor - # source://rbi//lib/rbi/parser.rb#163 - sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void } - def initialize(source, comments:, file:); end - - # source://rbi//lib/rbi/parser.rb#160 - sig { returns(T.nilable(::Prism::Node)) } - def last_node; end - - # source://rbi//lib/rbi/parser.rb#157 - sig { returns(::RBI::Tree) } - def tree; end - - # source://rbi//lib/rbi/parser.rb#299 - sig { params(node: ::Prism::CallNode).void } - def visit_call_node(node); end - - # source://rbi//lib/rbi/parser.rb#176 - sig { override.params(node: ::Prism::ClassNode).void } - def visit_class_node(node); end - - # source://rbi//lib/rbi/parser.rb#208 - sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void } - def visit_constant_assign(node); end - - # source://rbi//lib/rbi/parser.rb#201 - sig { override.params(node: ::Prism::ConstantPathWriteNode).void } - def visit_constant_path_write_node(node); end - - # source://rbi//lib/rbi/parser.rb#194 - sig { override.params(node: ::Prism::ConstantWriteNode).void } - def visit_constant_write_node(node); end - - # source://rbi//lib/rbi/parser.rb#241 - sig { override.params(node: ::Prism::DefNode).void } - def visit_def_node(node); end - - # source://rbi//lib/rbi/parser.rb#255 - sig { override.params(node: ::Prism::ModuleNode).void } - def visit_module_node(node); end - - # source://rbi//lib/rbi/parser.rb#272 - sig { override.params(node: ::Prism::ProgramNode).void } - def visit_program_node(node); end - - # source://rbi//lib/rbi/parser.rb#283 - sig { override.params(node: ::Prism::SingletonClassNode).void } - def visit_singleton_class_node(node); end - - private - - # Collect all the remaining comments within a node - # - # source://rbi//lib/rbi/parser.rb#467 - sig { params(node: ::Prism::Node).void } - def collect_dangling_comments(node); end - - # Collect all the remaining comments after visiting the tree - # - # source://rbi//lib/rbi/parser.rb#485 - sig { void } - def collect_orphan_comments; end - - # source://rbi//lib/rbi/parser.rb#508 - sig { returns(::RBI::Tree) } - def current_scope; end - - # source://rbi//lib/rbi/parser.rb#513 - sig { returns(T::Array[::RBI::Sig]) } - def current_sigs; end - - # source://rbi//lib/rbi/parser.rb#520 - sig { returns(T::Array[::RBI::Comment]) } - def current_sigs_comments; end - - # source://rbi//lib/rbi/parser.rb#527 - sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) } - def node_comments(node); end - - # source://rbi//lib/rbi/parser.rb#545 - sig { params(node: ::Prism::Comment).returns(::RBI::Comment) } - def parse_comment(node); end - - # source://rbi//lib/rbi/parser.rb#574 - sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) } - def parse_params(node); end - - # source://rbi//lib/rbi/parser.rb#550 - sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) } - def parse_send_args(node); end - - # source://rbi//lib/rbi/parser.rb#648 - sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) } - def parse_sig(node); end - - # source://rbi//lib/rbi/parser.rb#658 - sig do - params( - node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode) - ).returns(T.nilable(::RBI::Struct)) - end - def parse_struct(node); end - - # source://rbi//lib/rbi/parser.rb#708 - sig { params(send: ::Prism::CallNode).void } - def parse_tstruct_field(send); end - - # source://rbi//lib/rbi/parser.rb#745 - sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) } - def parse_visibility(name, node); end - - # source://rbi//lib/rbi/parser.rb#759 - sig { void } - def separate_header_comments; end - - # source://rbi//lib/rbi/parser.rb#769 - sig { void } - def set_root_tree_loc; end - - # source://rbi//lib/rbi/parser.rb#783 - sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } - def type_variable_definition?(node); end -end - -# source://rbi//lib/rbi/parser.rb#122 -class RBI::Parser::Visitor < ::Prism::Visitor - # source://rbi//lib/rbi/parser.rb#126 - sig { params(source: ::String, file: ::String).void } - def initialize(source, file:); end - - private - - # source://rbi//lib/rbi/parser.rb#136 - sig { params(node: ::Prism::Node).returns(::RBI::Loc) } - def node_loc(node); end - - # source://rbi//lib/rbi/parser.rb#141 - sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::String)) } - def node_string(node); end - - # source://rbi//lib/rbi/parser.rb#148 - sig { params(node: ::Prism::Node).returns(::String) } - def node_string!(node); end -end - -# source://rbi//lib/rbi/printer.rb#5 -class RBI::Printer < ::RBI::Visitor - # source://rbi//lib/rbi/printer.rb#28 - sig do - params( - out: T.any(::IO, ::StringIO), - indent: ::Integer, - print_locs: T::Boolean, - max_line_length: T.nilable(::Integer) - ).void - end - def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#15 - sig { returns(::Integer) } - def current_indent; end - - # source://rbi//lib/rbi/printer.rb#46 - sig { void } - def dedent; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/printer.rb#9 - def in_visibility_group; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/printer.rb#9 - def in_visibility_group=(_arg0); end - - # Printing - # - # source://rbi//lib/rbi/printer.rb#41 - sig { void } - def indent; end - - # source://rbi//lib/rbi/printer.rb#18 - sig { returns(T.nilable(::Integer)) } - def max_line_length; end - - # source://rbi//lib/rbi/printer.rb#12 - sig { returns(T.nilable(::RBI::Node)) } - def previous_node; end - - # Print a string without indentation nor `\n` at the end. - # - # source://rbi//lib/rbi/printer.rb#52 - sig { params(string: ::String).void } - def print(string); end - - # source://rbi//lib/rbi/printer.rb#9 - sig { returns(T::Boolean) } - def print_locs; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/printer.rb#9 - def print_locs=(_arg0); end - - # Print a string with indentation and `\n` at the end. - # - # source://rbi//lib/rbi/printer.rb#72 - sig { params(string: ::String).void } - def printl(string); end - - # Print a string without indentation but with a `\n` at the end. - # - # source://rbi//lib/rbi/printer.rb#58 - sig { params(string: T.nilable(::String)).void } - def printn(string = T.unsafe(nil)); end - - # Print a string with indentation but without a `\n` at the end. - # - # source://rbi//lib/rbi/printer.rb#65 - sig { params(string: T.nilable(::String)).void } - def printt(string = T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#83 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - # source://rbi//lib/rbi/printer.rb#90 - sig { override.params(nodes: T::Array[::RBI::Node]).void } - def visit_all(nodes); end - - # source://rbi//lib/rbi/printer.rb#78 - sig { params(file: ::RBI::File).void } - def visit_file(file); end -end - -# source://rbi//lib/rbi/model.rb#982 -class RBI::Private < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#992 - sig do - params( - loc: T.nilable(::RBI::Loc), - comments: 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 - -# source://rbi//lib/rbi/model.rb#966 -class RBI::Protected < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#976 - sig do - params( - loc: T.nilable(::RBI::Loc), - comments: 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 - -# source://rbi//lib/rbi/model.rb#950 -class RBI::Public < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#960 - sig do - params( - loc: T.nilable(::RBI::Loc), - comments: 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 - -# source://rbi//lib/rbi/model.rb#652 -class RBI::ReqParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#663 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#669 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end -end - -# source://rbi//lib/rbi/model.rb#1456 -class RBI::RequiresAncestor < ::RBI::NodeWithComments - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1469 - sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } - def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#870 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/index.rb#163 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#1460 - sig { returns(::String) } - def name; end - - # source://rbi//lib/rbi/model.rb#1475 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/model.rb#701 -class RBI::RestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#712 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#723 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#483 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#488 - sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # source://rbi//lib/rbi/model.rb#718 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#5 -module RBI::Rewriters; end - -# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6 -class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#10 - sig { params(with_todo_comment: T::Boolean).void } - def initialize(with_todo_comment: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#16 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - private - - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#30 - sig { params(attr: ::RBI::Attr).void } - def add_attr_sig(attr); end - - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#45 - sig { params(method: ::RBI::Method).void } - def add_method_sig(method); end - - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#56 - sig { params(node: ::RBI::NodeWithComments).void } - def add_todo_comment(node); end -end - -# source://rbi//lib/rbi/rewriters/annotate.rb#6 -class RBI::Rewriters::Annotate < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/annotate.rb#10 - sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } - def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/annotate.rb#18 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - private - - # source://rbi//lib/rbi/rewriters/annotate.rb#31 - sig { params(node: ::RBI::NodeWithComments).void } - def annotate_node(node); end - - # source://rbi//lib/rbi/rewriters/annotate.rb#38 - sig { params(node: ::RBI::Node).returns(T::Boolean) } - def root?(node); end -end - -# source://rbi//lib/rbi/rewriters/deannotate.rb#6 -class RBI::Rewriters::Deannotate < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/deannotate.rb#10 - sig { params(annotation: ::String).void } - def initialize(annotation); end - - # source://rbi//lib/rbi/rewriters/deannotate.rb#16 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - private - - # source://rbi//lib/rbi/rewriters/deannotate.rb#27 - sig { params(node: ::RBI::NodeWithComments).void } - def deannotate_node(node); end -end - -# Take a gem version and filter out all RBI that is not relevant to that version based on @version annotations -# in comments. As an example: -# -# ~~~rb -# tree = Parser.parse_string(<<~RBI) -# class Foo -# # @version > 0.3.0 -# def bar -# end -# -# # @version <= 0.3.0 -# def bar(arg1) -# end -# end -# RBI -# -# Rewriters::FilterVersions.filter(tree, Gem::Version.new("0.3.1")) -# -# assert_equal(<<~RBI, tree.string) -# class Foo -# # @version > 0.3.0 -# def bar -# end -# end -# RBI -# ~~~ -# -# Supported operators: -# - equals `=` -# - not equals `!=` -# - greater than `>` -# - greater than or equal to `>=` -# - less than `<` -# - less than or equal to `<=` -# - pessimistic or twiddle-wakka`~>` -# -# And/or logic: -# - "And" logic: put multiple versions on the same line -# - e.g. `@version > 0.3.0, <1.0.0` means version must be greater than 0.3.0 AND less than 1.0.0 -# - "Or" logic: put multiple versions on subsequent lines -# - e.g. the following means version must be less than 0.3.0 OR greater than 1.0.0 -# ``` -# # @version < 0.3.0 -# # @version > 1.0.0 -# ``` -# Prerelease versions: -# - Prerelease versions are considered less than their non-prerelease counterparts -# - e.g. `0.4.0-prerelease` is less than `0.4.0` -# -# RBI with no versions: -# - RBI with no version annotations are automatically counted towards ALL versions -# -# source://rbi//lib/rbi/rewriters/filter_versions.rb#57 -class RBI::Rewriters::FilterVersions < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/filter_versions.rb#73 - sig { params(version: ::Gem::Version).void } - def initialize(version); end - - # source://rbi//lib/rbi/rewriters/filter_versions.rb#79 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - class << self - # source://rbi//lib/rbi/rewriters/filter_versions.rb#66 - sig { params(tree: ::RBI::Tree, version: ::Gem::Version).void } - def filter(tree, version); end - end -end - -# source://rbi//lib/rbi/rewriters/filter_versions.rb#60 -RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String) - -# source://rbi//lib/rbi/rewriters/group_nodes.rb#6 -class RBI::Rewriters::GroupNodes < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/group_nodes.rb#10 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end -end - -# Merge two RBI trees together -# -# Be this `Tree`: -# ~~~rb -# class Foo -# attr_accessor :a -# def m; end -# C = 10 -# end -# ~~~ -# -# Merged with this one: -# ~~~rb -# class Foo -# attr_reader :a -# def m(x); end -# C = 10 -# end -# ~~~ -# -# Compatible definitions are merged together while incompatible definitions are moved into a `ConflictTree`: -# ~~~rb -# class Foo -# <<<<<<< left -# attr_accessor :a -# def m; end -# ======= -# attr_reader :a -# def m(x); end -# >>>>>>> right -# C = 10 -# end -# ~~~ -# -# source://rbi//lib/rbi/rewriters/merge_trees.rb#39 -class RBI::Rewriters::Merge - # source://rbi//lib/rbi/rewriters/merge_trees.rb#70 - sig { params(left_name: ::String, right_name: ::String, keep: ::RBI::Rewriters::Merge::Keep).void } - def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#79 - sig { params(tree: ::RBI::Tree).void } - def merge(tree); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#67 - sig { returns(::RBI::MergeTree) } - def tree; end - - class << self - # source://rbi//lib/rbi/rewriters/merge_trees.rb#54 - sig do - params( - left: ::RBI::Tree, - right: ::RBI::Tree, - left_name: ::String, - right_name: ::String, - keep: ::RBI::Rewriters::Merge::Keep - ).returns(::RBI::MergeTree) - end - def merge_trees(left, right, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - end -end - -# Used for logging / error displaying purpose -# -# source://rbi//lib/rbi/rewriters/merge_trees.rb#86 -class RBI::Rewriters::Merge::Conflict < ::T::Struct - const :left, ::RBI::Node - const :right, ::RBI::Node - const :left_name, ::String - const :right_name, ::String - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#95 - sig { returns(::String) } - def to_s; end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# Merge adjacent conflict trees -# -# Transform this: -# ~~~rb -# class Foo -# <<<<<<< left -# def m1; end -# ======= -# def m1(a); end -# >>>>>>> right -# <<<<<<< left -# def m2(a); end -# ======= -# def m2; end -# >>>>>>> right -# end -# ~~~ -# -# Into this: -# ~~~rb -# class Foo -# <<<<<<< left -# def m1; end -# def m2(a); end -# ======= -# def m1(a); end -# def m2; end -# >>>>>>> right -# end -# ~~~ -# -# source://rbi//lib/rbi/rewriters/merge_trees.rb#245 -class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#252 - sig { override.params(nodes: T::Array[::RBI::Node]).void } - def visit_all(nodes); end - - private - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#273 - sig { params(left: ::RBI::Tree, right: ::RBI::Tree).void } - def merge_conflict_trees(left, right); end -end - -# source://rbi//lib/rbi/rewriters/merge_trees.rb#42 -class RBI::Rewriters::Merge::Keep < ::T::Enum - enums do - NONE = new - LEFT = new - RIGHT = new - end -end - -# source://rbi//lib/rbi/rewriters/merge_trees.rb#100 -class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/merge_trees.rb#107 - sig do - params( - output: ::RBI::Tree, - left_name: ::String, - right_name: ::String, - keep: ::RBI::Rewriters::Merge::Keep - ).void - end - def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#104 - sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } - def conflicts; end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#119 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - private - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#168 - sig { returns(::RBI::Tree) } - def current_scope; end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 - sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void } - def make_conflict_scope(left, right); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#192 - sig { params(left: ::RBI::Node, right: ::RBI::Node).void } - def make_conflict_tree(left, right); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#173 - sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) } - def previous_definition(node); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#204 - sig { params(left: ::RBI::Scope, right: ::RBI::Scope).returns(::RBI::Scope) } - def replace_scope_header(left, right); end -end - -# source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#6 -class RBI::Rewriters::NestNonPublicMethods < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#10 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end -end - -# source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6 -class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#10 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end -end - -# Remove all definitions existing in the index from the current tree -# -# Let's create an `Index` from two different `Tree`s: -# ~~~rb -# tree1 = Parse.parse_string(<<~RBI) -# class Foo -# def foo; end -# end -# RBI -# -# tree2 = Parse.parse_string(<<~RBI) -# FOO = 10 -# RBI -# -# index = Index.index(tree1, tree2) -# ~~~ -# -# We can use `RemoveKnownDefinitions` to remove the definitions found in the `index` from the `Tree` to clean: -# ~~~rb -# tree_to_clean = Parser.parse_string(<<~RBI) -# class Foo -# def foo; end -# def bar; end -# end -# FOO = 10 -# BAR = 42 -# RBI -# -# cleaned_tree, operations = RemoveKnownDefinitions.remove(tree_to_clean, index) -# -# assert_equal(<<~RBI, cleaned_tree) -# class Foo -# def bar; end -# end -# BAR = 42 -# RBI -# -# assert_equal(<<~OPERATIONS, operations.join("\n")) -# Deleted ::Foo#foo at -:2:2-2-16 (duplicate from -:2:2-2:16) -# Deleted ::FOO at -:5:0-5:8 (duplicate from -:1:0-1:8) -# OPERATIONS -# ~~~ -# -# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#48 -class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#55 - sig { params(index: ::RBI::Index).void } - def initialize(index); end - - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#52 - sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) } - def operations; end - - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#83 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#78 - sig { params(nodes: T::Array[::RBI::Node]).void } - def visit_all(nodes); end - - private - - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#111 - sig { params(node: ::RBI::Node, previous: ::RBI::Node).returns(T::Boolean) } - def can_delete_node?(node, previous); end - - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#129 - sig { params(node: ::RBI::Node, previous: ::RBI::Node).void } - def delete_node(node, previous); end - - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#102 - sig { params(node: ::RBI::Indexable).returns(T.nilable(::RBI::Node)) } - def previous_definition_for(node); end - - class << self - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#70 - sig do - params( - tree: ::RBI::Tree, - index: ::RBI::Index - ).returns([::RBI::Tree, T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]]) - end - def remove(tree, index); end - end -end - -# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#134 -class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct - const :deleted_node, ::RBI::Node - const :duplicate_of, ::RBI::Node - - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#141 - sig { returns(::String) } - def to_s; end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://rbi//lib/rbi/rewriters/sort_nodes.rb#6 -class RBI::Rewriters::SortNodes < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#10 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - private - - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#73 - sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } - def group_rank(kind); end - - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#94 - sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } - def node_name(node); end - - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#45 - sig { params(node: ::RBI::Node).returns(::Integer) } - def node_rank(node); end - - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#106 - sig { params(node: ::RBI::Node).void } - def sort_node_names!(node); end -end - -# Scopes -# -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#176 -class RBI::Scope < ::RBI::Tree - include ::RBI::Indexable - - abstract! - - # source://rbi//lib/rbi/printer.rb#242 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # Duplicate `self` scope without its body - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#356 - sig { returns(T.self_type) } - def dup_empty; end - - # @abstract - # - # source://rbi//lib/rbi/model.rb#182 - sig { abstract.returns(::String) } - def fully_qualified_name; end - - # source://rbi//lib/rbi/index.rb#93 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/printer.rb#256 - sig { params(v: ::RBI::Printer).void } - def print_body(v); end - - # @abstract - # - # source://rbi//lib/rbi/printer.rb#253 - sig { abstract.params(v: ::RBI::Printer).void } - def print_header(v); end - - # source://rbi//lib/rbi/model.rb#185 - sig { override.returns(::String) } - def to_s; end -end - -# A conflict between two scope headers -# -# Is rendered as a merge conflict between `left` and` right` for scope definitions: -# ~~~rb -# <<<<<<< left -# class Foo -# ======= -# module Foo -# >>>>>>> right -# def m1; end -# end -# ~~~ -# -# source://rbi//lib/rbi/rewriters/merge_trees.rb#628 -class RBI::ScopeConflict < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#642 - sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void } - def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#651 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#632 - sig { returns(::RBI::Scope) } - def left; end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#667 - sig { override.returns(T::Boolean) } - def oneline?; end - - # @return [Scope] - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#632 - def right; end -end - -# Sends -# -# source://rbi//lib/rbi/model.rb#1000 -class RBI::Send < ::RBI::NodeWithComments - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1018 - sig do - params( - method: ::String, - args: T::Array[::RBI::Arg], - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#1026 - sig { params(arg: ::RBI::Arg).void } - def <<(arg); end - - # source://rbi//lib/rbi/model.rb#1031 - sig { params(other: T.nilable(::Object)).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#592 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1007 - sig { returns(T::Array[::RBI::Arg]) } - def args; end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#529 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/index.rb#193 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#1004 - sig { returns(::String) } - def method; end - - # source://rbi//lib/rbi/model.rb#1036 - sig { returns(::String) } - def to_s; end -end - -# Sorbet's sigs -# -# source://rbi//lib/rbi/model.rb#1100 -class RBI::Sig < ::RBI::Node - # source://rbi//lib/rbi/model.rb#1132 - sig do - params( - params: T::Array[::RBI::SigParam], - return_type: T.nilable(::String), - is_abstract: T::Boolean, - is_override: T::Boolean, - is_overridable: T::Boolean, - is_final: T::Boolean, - type_params: T::Array[::String], - checked: T.nilable(::Symbol), - loc: T.nilable(::RBI::Loc), - 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), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/model.rb#1157 - sig { params(param: ::RBI::SigParam).void } - def <<(param); end - - # source://rbi//lib/rbi/model.rb#1167 - sig { params(other: ::Object).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#633 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1162 - sig { params(name: ::String, type: ::String).void } - def add_param(name, type); end - - # source://rbi//lib/rbi/model.rb#1116 - sig { returns(T.nilable(::Symbol)) } - def checked; end - - # @return [Symbol, nil] - # - # source://rbi//lib/rbi/model.rb#1116 - def checked=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#656 - sig { returns(T::Boolean) } - def inline_params?; end - - # source://rbi//lib/rbi/model.rb#1110 - sig { returns(T::Boolean) } - def is_abstract; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#1110 - def is_abstract=(_arg0); end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#1110 - def is_final; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#1110 - def is_final=(_arg0); end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#1110 - def is_overridable; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#1110 - def is_overridable=(_arg0); end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#1110 - def is_override; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#1110 - def is_override=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#651 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/model.rb#1104 - sig { returns(T::Array[::RBI::SigParam]) } - def params; end - - # source://rbi//lib/rbi/model.rb#1107 - sig { returns(T.nilable(::String)) } - def return_type; end - - # @return [String, nil] - # - # source://rbi//lib/rbi/model.rb#1107 - def return_type=(_arg0); end - - # source://rbi//lib/rbi/model.rb#1113 - sig { returns(T::Array[::String]) } - def type_params; end - - private - - # source://rbi//lib/rbi/printer.rb#698 - sig { params(v: ::RBI::Printer).void } - def print_as_block(v); end - - # source://rbi//lib/rbi/printer.rb#674 - sig { params(v: ::RBI::Printer).void } - def print_as_line(v); end - - # source://rbi//lib/rbi/printer.rb#663 - sig { returns(T::Array[::String]) } - def sig_modifiers; end -end - -# source://rbi//lib/rbi/model.rb#1176 -class RBI::SigParam < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#1191 - sig do - params( - name: ::String, - type: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#1199 - sig { params(other: ::Object).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#751 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#764 - sig { returns(T::Array[::String]) } - def comments_lines; end - - # source://rbi//lib/rbi/model.rb#1180 - sig { returns(::String) } - def name; end - - # source://rbi//lib/rbi/printer.rb#756 - sig { params(v: ::RBI::Printer, last: T::Boolean).void } - def print_comment_leading_space(v, last:); end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#1180 - def type; end -end - -# source://rbi//lib/rbi/model.rb#251 -class RBI::SingletonClass < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#261 - sig do - params( - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::SingletonClass).void) - ).void - end - def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/model.rb#267 - sig { override.returns(::String) } - def fully_qualified_name; end - - # source://rbi//lib/rbi/printer.rb#321 - sig { override.params(v: ::RBI::Printer).void } - def print_header(v); end -end - -# source://rbi//lib/rbi/model.rb#272 -class RBI::Struct < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#294 - sig do - params( - name: ::String, - members: T::Array[::Symbol], - keyword_init: T::Boolean, - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(struct: ::RBI::Struct).void) - ).void - end - def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#394 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#303 - sig { override.returns(::String) } - def fully_qualified_name; end - - # source://rbi//lib/rbi/model.rb#282 - sig { returns(T::Boolean) } - def keyword_init; end - - # @return [Boolean] - # - # source://rbi//lib/rbi/model.rb#282 - def keyword_init=(_arg0); end - - # source://rbi//lib/rbi/model.rb#279 - sig { returns(T::Array[::Symbol]) } - def members; end - - # @return [Array] - # - # source://rbi//lib/rbi/model.rb#279 - def members=(_arg0); end - - # source://rbi//lib/rbi/model.rb#276 - sig { returns(::String) } - def name; end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#276 - def name=(_arg0); end - - # source://rbi//lib/rbi/printer.rb#300 - sig { override.params(v: ::RBI::Printer).void } - def print_header(v); end -end - -# Sorbet's T::Enum -# -# source://rbi//lib/rbi/model.rb#1317 -class RBI::TEnum < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1328 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - -# source://rbi//lib/rbi/model.rb#1334 -class RBI::TEnumBlock < ::RBI::NodeWithComments - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1348 - sig do - params( - names: T::Array[::String], - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::TEnumBlock).void) - ).void - end - def initialize(names = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/model.rb#1360 - sig { params(name: ::String).void } - def <<(name); end - - # source://rbi//lib/rbi/printer.rb#795 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1355 - sig { returns(T::Boolean) } - def empty?; end - - # source://rbi//lib/rbi/index.rb#223 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#556 - sig { override.params(other: ::RBI::Node).void } - def merge_with(other); end - - # source://rbi//lib/rbi/model.rb#1338 - sig { returns(T::Array[::String]) } - def names; end - - # source://rbi//lib/rbi/model.rb#1365 - sig { override.returns(::String) } - def to_s; end -end - -# Sorbet's T::Struct -# -# source://rbi//lib/rbi/model.rb#1206 -class RBI::TStruct < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1217 - sig do - params( - name: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - -# source://rbi//lib/rbi/model.rb#1255 -class RBI::TStructConst < ::RBI::TStructField - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1268 - sig do - params( - name: ::String, - type: ::String, - default: T.nilable(::String), - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::TStructConst).void) - ).void - end - def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#547 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#1274 - sig { override.returns(T::Array[::String]) } - def fully_qualified_names; end - - # source://rbi//lib/rbi/index.rb#203 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#1280 - sig { override.returns(::String) } - def to_s; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#1223 -class RBI::TStructField < ::RBI::NodeWithComments - abstract! - - # source://rbi//lib/rbi/model.rb#1244 - sig do - params( - name: ::String, - type: ::String, - default: T.nilable(::String), - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment] - ).void - end - def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://rbi//lib/rbi/printer.rb#773 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#538 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#1233 - sig { returns(T.nilable(::String)) } - def default; end - - # @return [String, nil] - # - # source://rbi//lib/rbi/model.rb#1233 - def default=(_arg0); end - - # @abstract - # - # source://rbi//lib/rbi/model.rb#1252 - sig { abstract.returns(T::Array[::String]) } - def fully_qualified_names; end - - # source://rbi//lib/rbi/model.rb#1230 - sig { returns(::String) } - def name; end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#1230 - def name=(_arg0); end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#1230 - def type; end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#1230 - def type=(_arg0); end -end - -# source://rbi//lib/rbi/model.rb#1285 -class RBI::TStructProp < ::RBI::TStructField - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1298 - sig do - params( - name: ::String, - type: ::String, - default: T.nilable(::String), - loc: T.nilable(::RBI::Loc), - comments: T::Array[::RBI::Comment], - block: T.nilable(T.proc.params(node: ::RBI::TStructProp).void) - ).void - end - def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#570 - sig { override.params(other: ::RBI::Node).returns(T::Boolean) } - def compatible_with?(other); end - - # source://rbi//lib/rbi/model.rb#1304 - sig { override.returns(T::Array[::String]) } - def fully_qualified_names; end - - # source://rbi//lib/rbi/index.rb#213 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#1310 - sig { override.returns(::String) } - def to_s; end -end - -# source://rbi//lib/rbi/model.rb#106 -class RBI::Tree < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#119 - sig do - params( - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/model.rb#126 - sig { params(node: ::RBI::Node).void } - def <<(node); end - - # source://rbi//lib/rbi/printer.rb#226 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#66 - sig { params(with_todo_comment: T::Boolean).void } - def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/annotate.rb#49 - sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } - def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#38 - sig do - params( - name: ::String, - superclass_name: T.nilable(::String), - block: T.nilable(T.proc.params(scope: ::RBI::Scope).void) - ).returns(::RBI::Scope) - end - def create_class(name, superclass_name: T.unsafe(nil), &block); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#45 - sig { params(name: ::String, value: ::String).void } - def create_constant(name, value:); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#55 - sig { params(name: ::String).void } - def create_extend(name); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#50 - sig { params(name: ::String).void } - def create_include(name); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#89 - sig do - params( - name: ::String, - parameters: T::Array[::RBI::TypedParam], - return_type: ::String, - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - end - def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#113 - sig do - params( - name: ::String, - sigs: T::Array[::RBI::Sig], - parameters: T::Array[::RBI::Param], - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - end - def create_method_with_sigs(name, sigs:, parameters: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#60 - sig { params(name: ::String).void } - def create_mixes_in_class_methods(name); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#25 - sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } - def create_module(name, &block); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#9 - sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } - def create_path(constant, &block); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#135 - sig do - params( - parameters: T::Hash[T.any(::String, ::Symbol), ::String], - type_parameters: T::Array[::String], - return_type: ::String - ).returns(::RBI::Sig) - end - def create_sig(parameters:, type_parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#74 - sig do - params( - name: ::String, - type: ::String, - variance: ::Symbol, - fixed: T.nilable(::String), - upper: T.nilable(::String), - lower: T.nilable(::String) - ).void - end - def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/deannotate.rb#41 - sig { params(annotation: ::String).void } - def deannotate!(annotation); end - - # source://rbi//lib/rbi/model.rb#132 - sig { returns(T::Boolean) } - def empty?; end - - # source://rbi//lib/rbi/rewriters/filter_versions.rb#118 - sig { params(version: ::Gem::Version).void } - def filter_versions!(version); end - - # source://rbi//lib/rbi/rewriters/group_nodes.rb#38 - sig { void } - def group_nodes!; end - - # source://rbi//lib/rbi/index.rb#68 - sig { returns(::RBI::Index) } - def index; end - - # source://rbi//lib/rbi/rewriters/merge_trees.rb#324 - sig do - params( - other: ::RBI::Tree, - left_name: ::String, - right_name: ::String, - keep: ::RBI::Rewriters::Merge::Keep - ).returns(::RBI::MergeTree) - end - def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - - # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#46 - sig { void } - def nest_non_public_methods!; end - - # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#36 - sig { void } - def nest_singleton_methods!; end - - # source://rbi//lib/rbi/model.rb#110 - sig { returns(T::Array[::RBI::Node]) } - def nodes; end - - # source://rbi//lib/rbi/printer.rb#233 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#119 - sig { void } - def sort_nodes!; end - - private - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#150 - sig { params(node: ::RBI::Node).returns(::RBI::Node) } - def create_node(node); end - - # source://tapioca/0.14.2/lib/tapioca/rbi_ext/model.rb#145 - sig { returns(T::Hash[::String, ::RBI::Node]) } - def nodes_cache; end -end - -# source://rbi//lib/rbi/model.rb#1398 -class RBI::TypeMember < ::RBI::NodeWithComments - include ::RBI::Indexable - - # source://rbi//lib/rbi/model.rb#1413 - sig do - params( - name: ::String, - value: ::String, - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi//lib/rbi/printer.rb#812 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#1421 - sig { returns(::String) } - def fully_qualified_name; end - - # source://rbi//lib/rbi/index.rb#183 - sig { override.returns(T::Array[::String]) } - def index_ids; end - - # source://rbi//lib/rbi/model.rb#1402 - sig { returns(::String) } - def name; end - - # source://rbi//lib/rbi/model.rb#1428 - sig { override.returns(::String) } - def to_s; end - - # @return [String] - # - # source://rbi//lib/rbi/model.rb#1402 - def value; end -end - -# source://rbi//lib/rbi/parser.rb#20 -class RBI::UnexpectedParserError < ::StandardError - # source://rbi//lib/rbi/parser.rb#27 - sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void } - def initialize(parent_exception, last_location); end - - # source://rbi//lib/rbi/parser.rb#24 - sig { returns(::RBI::Loc) } - def last_location; end - - # source://rbi//lib/rbi/parser.rb#34 - sig { params(io: T.any(::IO, ::StringIO)).void } - def print_debug(io: T.unsafe(nil)); end -end - -# source://rbi//lib/rbi/version.rb#5 -RBI::VERSION = T.let(T.unsafe(nil), String) - -# Visibility -# -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#914 -class RBI::Visibility < ::RBI::NodeWithComments - abstract! - - # source://rbi//lib/rbi/model.rb#924 - sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } - def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://rbi//lib/rbi/model.rb#930 - sig { params(other: ::RBI::Visibility).returns(T::Boolean) } - def ==(other); end - - # source://rbi//lib/rbi/printer.rb#579 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/model.rb#945 - sig { returns(T::Boolean) } - def private?; end - - # source://rbi//lib/rbi/model.rb#940 - sig { returns(T::Boolean) } - def protected?; end - - # source://rbi//lib/rbi/model.rb#935 - sig { returns(T::Boolean) } - def public?; end - - # source://rbi//lib/rbi/model.rb#921 - sig { returns(::Symbol) } - def visibility; end -end - -# source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#52 -class RBI::VisibilityGroup < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#59 - sig { params(visibility: ::RBI::Visibility).void } - def initialize(visibility); end - - # source://rbi//lib/rbi/printer.rb#848 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi//lib/rbi/printer.rb#861 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#56 - sig { returns(::RBI::Visibility) } - def visibility; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/visitor.rb#5 -class RBI::Visitor - abstract! - - # @abstract - # - # source://rbi//lib/rbi/visitor.rb#12 - sig { abstract.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end - - # source://rbi//lib/rbi/visitor.rb#15 - sig { params(nodes: T::Array[::RBI::Node]).void } - def visit_all(nodes); end -end diff --git a/sorbet/rbi/gems/rexml@3.3.0.rbi b/sorbet/rbi/gems/rexml@3.3.1.rbi similarity index 95% rename from sorbet/rbi/gems/rexml@3.3.0.rbi rename to sorbet/rbi/gems/rexml@3.3.1.rbi index 594b904..940a06b 100644 --- a/sorbet/rbi/gems/rexml@3.3.0.rbi +++ b/sorbet/rbi/gems/rexml@3.3.1.rbi @@ -227,7 +227,7 @@ end # A class that defines the set of Attributes of an Element and provides # operations for accessing elements in that set. # -# source://rexml//lib/rexml/element.rb#2141 +# source://rexml//lib/rexml/element.rb#2128 class REXML::Attributes < ::Hash # :call-seq: # new(element) @@ -248,7 +248,7 @@ class REXML::Attributes < ::Hash # # @return [Attributes] a new instance of Attributes # - # source://rexml//lib/rexml/element.rb#2160 + # source://rexml//lib/rexml/element.rb#2147 def initialize(element); end # :call-seq: @@ -271,7 +271,7 @@ class REXML::Attributes < ::Hash # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' # attrs.include?('baz') # => true # - # source://rexml//lib/rexml/element.rb#2537 + # source://rexml//lib/rexml/element.rb#2524 def <<(attribute); end # :call-seq: @@ -295,7 +295,7 @@ class REXML::Attributes < ::Hash # # Related: get_attribute (returns an \Attribute object). # - # source://rexml//lib/rexml/element.rb#2185 + # source://rexml//lib/rexml/element.rb#2172 def [](name); end # :call-seq: @@ -321,7 +321,7 @@ class REXML::Attributes < ::Hash # attrs['baz:att'] = nil # attrs.include?('baz:att') # => false # - # source://rexml//lib/rexml/element.rb#2369 + # source://rexml//lib/rexml/element.rb#2356 def []=(name, value); end # :call-seq: @@ -344,7 +344,7 @@ class REXML::Attributes < ::Hash # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3' # attrs.include?('baz') # => true # - # source://rexml//lib/rexml/element.rb#2537 + # source://rexml//lib/rexml/element.rb#2524 def add(attribute); end # :call-seq: @@ -375,7 +375,7 @@ class REXML::Attributes < ::Hash # attrs.delete(attr) # => # => # attrs.delete(attr) # => # => # - # source://rexml//lib/rexml/element.rb#2490 + # source://rexml//lib/rexml/element.rb#2477 def delete(attribute); end # :call-seq: @@ -394,7 +394,7 @@ class REXML::Attributes < ::Hash # attrs = ele.attributes # attrs.delete_all('att') # => [att='<'] # - # source://rexml//lib/rexml/element.rb#2559 + # source://rexml//lib/rexml/element.rb#2546 def delete_all(name); end # :call-seq: @@ -419,7 +419,7 @@ class REXML::Attributes < ::Hash # ["bar:att", "2"] # ["att", "<"] # - # source://rexml//lib/rexml/element.rb#2287 + # source://rexml//lib/rexml/element.rb#2274 def each; end # :call-seq: @@ -444,7 +444,7 @@ class REXML::Attributes < ::Hash # [REXML::Attribute, bar:att='2'] # [REXML::Attribute, att='<'] # - # source://rexml//lib/rexml/element.rb#2254 + # source://rexml//lib/rexml/element.rb#2241 def each_attribute; end # :call-seq: @@ -466,7 +466,7 @@ class REXML::Attributes < ::Hash # attrs.get_attribute('att') # => att='<' # attrs.get_attribute('nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#2313 + # source://rexml//lib/rexml/element.rb#2300 def get_attribute(name); end # :call-seq: @@ -486,7 +486,7 @@ class REXML::Attributes < ::Hash # attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1' # attrs.get_attribute_ns('http://foo', 'nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#2585 + # source://rexml//lib/rexml/element.rb#2572 def get_attribute_ns(namespace, name); end # :call-seq: @@ -503,7 +503,7 @@ class REXML::Attributes < ::Hash # ele = d.root.elements['//ele'] # => # ele.attributes.length # => 3 # - # source://rexml//lib/rexml/element.rb#2225 + # source://rexml//lib/rexml/element.rb#2212 def length; end # :call-seq: @@ -515,7 +515,7 @@ class REXML::Attributes < ::Hash # d = REXML::Document.new(xml_string) # d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"} # - # source://rexml//lib/rexml/element.rb#2446 + # source://rexml//lib/rexml/element.rb#2433 def namespaces; end # :call-seq: @@ -529,7 +529,7 @@ class REXML::Attributes < ::Hash # d = REXML::Document.new(xml_string) # d.root.attributes.prefixes # => ["x", "y"] # - # source://rexml//lib/rexml/element.rb#2421 + # source://rexml//lib/rexml/element.rb#2408 def prefixes; end # :call-seq: @@ -546,7 +546,7 @@ class REXML::Attributes < ::Hash # ele = d.root.elements['//ele'] # => # ele.attributes.length # => 3 # - # source://rexml//lib/rexml/element.rb#2225 + # source://rexml//lib/rexml/element.rb#2212 def size; end # :call-seq: @@ -565,7 +565,7 @@ class REXML::Attributes < ::Hash # attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<'] # attrs.first.class # => REXML::Attribute # - # source://rexml//lib/rexml/element.rb#2207 + # source://rexml//lib/rexml/element.rb#2194 def to_a; end end @@ -1578,7 +1578,7 @@ end # #attributes:: Returns the REXML::Attributes object for the element. # #context:: Returns or sets the context hash for the element. # -# source://rexml//lib/rexml/element.rb#279 +# source://rexml//lib/rexml/element.rb#271 class REXML::Element < ::REXML::Parent include ::REXML::XMLTokens include ::REXML::Namespace @@ -1621,7 +1621,7 @@ class REXML::Element < ::REXML::Parent # # @return [Element] a new instance of Element # - # source://rexml//lib/rexml/element.rb#327 + # source://rexml//lib/rexml/element.rb#319 def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end # :call-seq: @@ -1663,7 +1663,7 @@ class REXML::Element < ::REXML::Parent # root[:attr] # => "value" # root[:nosuch] # => nil # - # source://rexml//lib/rexml/element.rb#1245 + # source://rexml//lib/rexml/element.rb#1237 def [](name_or_index); end # :call-seq: @@ -1692,7 +1692,7 @@ class REXML::Element < ::REXML::Parent # e.add_attribute(a) # => attr='VALUE' # e['attr'] # => "VALUE" # - # source://rexml//lib/rexml/element.rb#1349 + # source://rexml//lib/rexml/element.rb#1336 def add_attribute(key, value = T.unsafe(nil)); end # :call-seq: @@ -1718,7 +1718,7 @@ class REXML::Element < ::REXML::Parent # a = [['foo' => 'bar'], ['baz' => 'bat']] # e.add_attributes(a) # - # source://rexml//lib/rexml/element.rb#1380 + # source://rexml//lib/rexml/element.rb#1367 def add_attributes(hash); end # :call-seq: @@ -1755,7 +1755,7 @@ class REXML::Element < ::REXML::Parent # e0.add_element(e1, {'bat' => '0', 'bam' => '1'}) # e0[1] # => # - # source://rexml//lib/rexml/element.rb#731 + # source://rexml//lib/rexml/element.rb#723 def add_element(element, attrs = T.unsafe(nil)); end # :call-seq: @@ -1776,7 +1776,7 @@ class REXML::Element < ::REXML::Parent # e.add_namespace('baz', 'bat') # e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"} # - # source://rexml//lib/rexml/element.rb#654 + # source://rexml//lib/rexml/element.rb#646 def add_namespace(prefix, uri = T.unsafe(nil)); end # :call-seq: @@ -1818,7 +1818,7 @@ class REXML::Element < ::REXML::Parent # a.add_text(REXML::Text.new('baz')) # a.to_a # => ["foo", , "bar", "baz", "baz"] # - # source://rexml//lib/rexml/element.rb#1146 + # source://rexml//lib/rexml/element.rb#1138 def add_text(text); end # :call-seq: @@ -1850,13 +1850,13 @@ class REXML::Element < ::REXML::Parent # document.root.attribute("x") # => x='x' # document.root.attribute("x", "a") # => a:x='a:x' # - # source://rexml//lib/rexml/element.rb#1286 + # source://rexml//lib/rexml/element.rb#1278 def attribute(name, namespace = T.unsafe(nil)); end # Mechanisms for accessing attributes and child elements of this # element. # - # source://rexml//lib/rexml/element.rb#286 + # source://rexml//lib/rexml/element.rb#278 def attributes; end # :call-seq: @@ -1875,7 +1875,7 @@ class REXML::Element < ::REXML::Parent # cds.frozen? # => true # cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData] # - # source://rexml//lib/rexml/element.rb#1424 + # source://rexml//lib/rexml/element.rb#1411 def cdatas; end # :call-seq: @@ -1888,7 +1888,7 @@ class REXML::Element < ::REXML::Parent # e.add_attributes({'bar' => 0, 'baz' => 1}) # e.clone # => # - # source://rexml//lib/rexml/element.rb#391 + # source://rexml//lib/rexml/element.rb#383 def clone; end # :call-seq: @@ -1908,19 +1908,19 @@ class REXML::Element < ::REXML::Parent # cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment] # cs.map {|c| c.to_s } # => ["foo", "bar"] # - # source://rexml//lib/rexml/element.rb#1445 + # source://rexml//lib/rexml/element.rb#1432 def comments; end # The context holds information about the processing environment, such as # whitespace handling. # - # source://rexml//lib/rexml/element.rb#289 + # source://rexml//lib/rexml/element.rb#281 def context; end # The context holds information about the processing environment, such as # whitespace handling. # - # source://rexml//lib/rexml/element.rb#289 + # source://rexml//lib/rexml/element.rb#281 def context=(_arg0); end # :call-seq: @@ -1934,7 +1934,7 @@ class REXML::Element < ::REXML::Parent # e.delete_attribute('bar') # => # e.delete_attribute('bar') # => nil # - # source://rexml//lib/rexml/element.rb#1399 + # source://rexml//lib/rexml/element.rb#1386 def delete_attribute(key); end # :call-seq: @@ -1974,7 +1974,7 @@ class REXML::Element < ::REXML::Parent # a.delete_element('//c') # => # a.delete_element('//c') # => nil # - # source://rexml//lib/rexml/element.rb#777 + # source://rexml//lib/rexml/element.rb#769 def delete_element(element); end # :call-seq: @@ -1999,7 +1999,7 @@ class REXML::Element < ::REXML::Parent # d.root.delete_namespace('nosuch') # d.to_s # => "" # - # source://rexml//lib/rexml/element.rb#686 + # source://rexml//lib/rexml/element.rb#678 def delete_namespace(namespace = T.unsafe(nil)); end # :call-seq: @@ -2023,7 +2023,7 @@ class REXML::Element < ::REXML::Parent # # Related: #root, #root_node. # - # source://rexml//lib/rexml/element.rb#478 + # source://rexml//lib/rexml/element.rb#470 def document; end # :call-seq: @@ -2042,7 +2042,7 @@ class REXML::Element < ::REXML::Parent # ... # # - # source://rexml//lib/rexml/element.rb#929 + # source://rexml//lib/rexml/element.rb#921 def each_element(xpath = T.unsafe(nil), &block); end # :call-seq: @@ -2094,7 +2094,7 @@ class REXML::Element < ::REXML::Parent # # # - # source://rexml//lib/rexml/element.rb#846 + # source://rexml//lib/rexml/element.rb#838 def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end # :call-seq: @@ -2144,13 +2144,13 @@ class REXML::Element < ::REXML::Parent # # ... # - # source://rexml//lib/rexml/element.rb#903 + # source://rexml//lib/rexml/element.rb#895 def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end # Mechanisms for accessing attributes and child elements of this # element. # - # source://rexml//lib/rexml/element.rb#286 + # source://rexml//lib/rexml/element.rb#278 def elements; end # :call-seq: @@ -2168,7 +2168,7 @@ class REXML::Element < ::REXML::Parent # d = REXML::Document.new(xml_string) # d.root.get_elements('//a') # => [ ... , ] # - # source://rexml//lib/rexml/element.rb#948 + # source://rexml//lib/rexml/element.rb#940 def get_elements(xpath); end # :call-seq: @@ -2188,7 +2188,7 @@ class REXML::Element < ::REXML::Parent # # d.root.get_text(1) # => "this is bold!" # - # source://rexml//lib/rexml/element.rb#1052 + # source://rexml//lib/rexml/element.rb#1044 def get_text(path = T.unsafe(nil)); end # :call-seq: @@ -2203,7 +2203,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1319 + # source://rexml//lib/rexml/element.rb#1306 def has_attributes?; end # :call-seq: @@ -2220,7 +2220,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#793 + # source://rexml//lib/rexml/element.rb#785 def has_elements?; end # :call-seq: @@ -2237,7 +2237,7 @@ class REXML::Element < ::REXML::Parent # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1001 + # source://rexml//lib/rexml/element.rb#993 def has_text?; end # :call-seq: @@ -2247,7 +2247,7 @@ class REXML::Element < ::REXML::Parent # # See {Element Context}[../doc/rexml/context_rdoc.html]. # - # source://rexml//lib/rexml/element.rb#516 + # source://rexml//lib/rexml/element.rb#508 def ignore_whitespace_nodes; end # :call-seq: @@ -2271,7 +2271,7 @@ class REXML::Element < ::REXML::Parent # e.add_element(REXML::Element.new('baz')) # e.inspect # => " ... " # - # source://rexml//lib/rexml/element.rb#366 + # source://rexml//lib/rexml/element.rb#358 def inspect; end # :call-seq: @@ -2291,7 +2291,7 @@ class REXML::Element < ::REXML::Parent # is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction] # is.map {|i| i.to_s } # => ["", ""] # - # source://rexml//lib/rexml/element.rb#1466 + # source://rexml//lib/rexml/element.rb#1453 def instructions; end # :call-seq: @@ -2314,7 +2314,7 @@ class REXML::Element < ::REXML::Parent # b.namespace('y') # => "2" # b.namespace('nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#621 + # source://rexml//lib/rexml/element.rb#613 def namespace(prefix = T.unsafe(nil)); end # :call-seq: @@ -2336,7 +2336,7 @@ class REXML::Element < ::REXML::Parent # d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"} # d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"} # - # source://rexml//lib/rexml/element.rb#594 + # source://rexml//lib/rexml/element.rb#586 def namespaces; end # :call-seq: @@ -2349,7 +2349,7 @@ class REXML::Element < ::REXML::Parent # d.root.elements['b'].next_element #-> # d.root.elements['c'].next_element #-> nil # - # source://rexml//lib/rexml/element.rb#962 + # source://rexml//lib/rexml/element.rb#954 def next_element; end # :call-seq: @@ -2361,7 +2361,7 @@ class REXML::Element < ::REXML::Parent # a = d.root # => # a.node_type # => :element # - # source://rexml//lib/rexml/element.rb#1167 + # source://rexml//lib/rexml/element.rb#1159 def node_type; end # :call-seq: @@ -2383,7 +2383,7 @@ class REXML::Element < ::REXML::Parent # d.elements['//b'].prefixes # => ["x", "y"] # d.elements['//c'].prefixes # => ["x", "y", "z"] # - # source://rexml//lib/rexml/element.rb#568 + # source://rexml//lib/rexml/element.rb#560 def prefixes; end # :call-seq: @@ -2396,7 +2396,7 @@ class REXML::Element < ::REXML::Parent # d.root.elements['c'].previous_element #-> # d.root.elements['b'].previous_element #-> nil # - # source://rexml//lib/rexml/element.rb#978 + # source://rexml//lib/rexml/element.rb#970 def previous_element; end # :call-seq: @@ -2409,7 +2409,7 @@ class REXML::Element < ::REXML::Parent # The evaluation is tested against +expanded_name+, and so is namespace # sensitive. # - # source://rexml//lib/rexml/element.rb#536 + # source://rexml//lib/rexml/element.rb#528 def raw; end # :call-seq: @@ -2429,7 +2429,7 @@ class REXML::Element < ::REXML::Parent # # Related: #root_node, #document. # - # source://rexml//lib/rexml/element.rb#451 + # source://rexml//lib/rexml/element.rb#443 def root; end # :call-seq: @@ -2467,7 +2467,7 @@ class REXML::Element < ::REXML::Parent # # Related: #root, #document. # - # source://rexml//lib/rexml/element.rb#430 + # source://rexml//lib/rexml/element.rb#422 def root_node; end # :call-seq: @@ -2494,7 +2494,7 @@ class REXML::Element < ::REXML::Parent # Note also that the text note is retrieved by method get_text, # and so is always normalized text. # - # source://rexml//lib/rexml/element.rb#1029 + # source://rexml//lib/rexml/element.rb#1021 def text(path = T.unsafe(nil)); end # :call-seq: @@ -2522,7 +2522,7 @@ class REXML::Element < ::REXML::Parent # # d.root.text = nil #-> '' # - # source://rexml//lib/rexml/element.rb#1088 + # source://rexml//lib/rexml/element.rb#1080 def text=(text); end # :call-seq: @@ -2537,7 +2537,7 @@ class REXML::Element < ::REXML::Parent # ts.map {|t| t.class } # => [REXML::Text, REXML::Text] # ts.map {|t| t.to_s } # => ["text", "more"] # - # source://rexml//lib/rexml/element.rb#1482 + # source://rexml//lib/rexml/element.rb#1469 def texts; end # :call-seq: @@ -2551,7 +2551,7 @@ class REXML::Element < ::REXML::Parent # The evaluation is tested against the element's +expanded_name+, # and so is namespace-sensitive. # - # source://rexml//lib/rexml/element.rb#493 + # source://rexml//lib/rexml/element.rb#485 def whitespace; end # == DEPRECATED @@ -2577,7 +2577,7 @@ class REXML::Element < ::REXML::Parent # doc.write( out ) #-> doc is written to the string 'out' # doc.write( $stdout ) #-> doc written to the console # - # source://rexml//lib/rexml/element.rb#1508 + # source://rexml//lib/rexml/element.rb#1495 def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end # :call-seq: @@ -2600,17 +2600,17 @@ class REXML::Element < ::REXML::Parent # e = REXML::Element.new('foo') # e.xpath # => "foo" # - # source://rexml//lib/rexml/element.rb#1191 + # source://rexml//lib/rexml/element.rb#1183 def xpath; end private - # source://rexml//lib/rexml/element.rb#1525 + # source://rexml//lib/rexml/element.rb#1512 def __to_xpath_helper(node); end # A private helper method # - # source://rexml//lib/rexml/element.rb#1540 + # source://rexml//lib/rexml/element.rb#1527 def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end end @@ -2664,7 +2664,7 @@ end # elements = d.root.elements # elements # => # ... > # -# source://rexml//lib/rexml/element.rb#1595 +# source://rexml//lib/rexml/element.rb#1582 class REXML::Elements include ::Enumerable @@ -2681,7 +2681,7 @@ class REXML::Elements # # @return [Elements] a new instance of Elements # - # source://rexml//lib/rexml/element.rb#1608 + # source://rexml//lib/rexml/element.rb#1595 def initialize(parent); end # :call-seq: @@ -2746,7 +2746,7 @@ class REXML::Elements # element.parent # => ... # element.context # => {:raw=>:all} # - # source://rexml//lib/rexml/element.rb#1925 + # source://rexml//lib/rexml/element.rb#1912 def <<(element = T.unsafe(nil)); end # :call-seq: @@ -2802,7 +2802,7 @@ class REXML::Elements # eles[4, 'book'] # => ... # eles[5, 'book'] # => nil # - # source://rexml//lib/rexml/element.rb#1680 + # source://rexml//lib/rexml/element.rb#1667 def [](index, name = T.unsafe(nil)); end # :call-seq: @@ -2841,7 +2841,7 @@ class REXML::Elements # eles[50] = REXML::Text.new('bar') # => "bar" # eles.size # => 5 # - # source://rexml//lib/rexml/element.rb#1735 + # source://rexml//lib/rexml/element.rb#1722 def []=(index, element); end # :call-seq: @@ -2906,7 +2906,7 @@ class REXML::Elements # element.parent # => ... # element.context # => {:raw=>:all} # - # source://rexml//lib/rexml/element.rb#1925 + # source://rexml//lib/rexml/element.rb#1912 def add(element = T.unsafe(nil)); end # :call-seq: @@ -2926,7 +2926,7 @@ class REXML::Elements # xpath = '//book [@category="web"]' # elements.collect(xpath) {|element| element.size } # => [17, 9] # - # source://rexml//lib/rexml/element.rb#1988 + # source://rexml//lib/rexml/element.rb#1975 def collect(xpath = T.unsafe(nil)); end # :call-seq: @@ -2970,7 +2970,7 @@ class REXML::Elements # elements.delete('//book [@category="children"]') # => ... # elements.delete('//nosuch') # => nil # - # source://rexml//lib/rexml/element.rb#1825 + # source://rexml//lib/rexml/element.rb#1812 def delete(element); end # :call-seq: @@ -2990,7 +2990,7 @@ class REXML::Elements # elements.size # => 0 # elements.delete_all('//book') # => [] # - # source://rexml//lib/rexml/element.rb#1851 + # source://rexml//lib/rexml/element.rb#1838 def delete_all(xpath); end # :call-seq: @@ -3021,7 +3021,7 @@ class REXML::Elements # ... # ... # - # source://rexml//lib/rexml/element.rb#1967 + # source://rexml//lib/rexml/element.rb#1954 def each(xpath = T.unsafe(nil)); end # :call-seq: @@ -3036,7 +3036,7 @@ class REXML::Elements # # @return [Boolean] # - # source://rexml//lib/rexml/element.rb#1755 + # source://rexml//lib/rexml/element.rb#1742 def empty?; end # :call-seq: @@ -3053,7 +3053,7 @@ class REXML::Elements # elements.index(ele_4) # => 3 # elements.index(ele_3) # => -1 # - # source://rexml//lib/rexml/element.rb#1773 + # source://rexml//lib/rexml/element.rb#1760 def index(element); end # :call-seq: @@ -3133,7 +3133,7 @@ class REXML::Elements # total += element.size # end # => 26 # - # source://rexml//lib/rexml/element.rb#2073 + # source://rexml//lib/rexml/element.rb#2060 def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end # :call-seq: @@ -3147,7 +3147,7 @@ class REXML::Elements # elements = REXML::Elements.new(d.root) # elements.parent == d.root # => true # - # source://rexml//lib/rexml/element.rb#1623 + # source://rexml//lib/rexml/element.rb#1610 def parent; end # :call-seq: @@ -3159,7 +3159,7 @@ class REXML::Elements # d.root.elements.size # => 3 # Three elements. # d.root.size # => 6 # Three elements plus three text nodes.. # - # source://rexml//lib/rexml/element.rb#2097 + # source://rexml//lib/rexml/element.rb#2084 def size; end # :call-seq: @@ -3180,14 +3180,14 @@ class REXML::Elements # # elements.to_a('//c') # => [] # - # source://rexml//lib/rexml/element.rb#2121 + # source://rexml//lib/rexml/element.rb#2108 def to_a(xpath = T.unsafe(nil)); end private # Private helper class. Removes quotes from quoted strings # - # source://rexml//lib/rexml/element.rb#2129 + # source://rexml//lib/rexml/element.rb#2116 def literalize(name); end end @@ -3454,47 +3454,47 @@ end # A Source that wraps an IO. See the Source class for method # documentation # -# source://rexml//lib/rexml/source.rb#176 +# source://rexml//lib/rexml/source.rb#182 class REXML::IOSource < ::REXML::Source # block_size has been deprecated # # @return [IOSource] a new instance of IOSource # - # source://rexml//lib/rexml/source.rb#180 + # source://rexml//lib/rexml/source.rb#186 def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#258 + # source://rexml//lib/rexml/source.rb#264 def current_line; end # @return [Boolean] # - # source://rexml//lib/rexml/source.rb#253 + # source://rexml//lib/rexml/source.rb#259 def empty?; end - # source://rexml//lib/rexml/source.rb#230 + # source://rexml//lib/rexml/source.rb#236 def ensure_buffer; end # Note: When specifying a string for 'pattern', it must not include '>' except in the following formats: # - ">" # - "XXX>" (X is any string excluding '>') # - # source://rexml//lib/rexml/source.rb#237 + # source://rexml//lib/rexml/source.rb#243 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#201 + # source://rexml//lib/rexml/source.rb#207 def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#212 + # source://rexml//lib/rexml/source.rb#218 def read_until(term); end private - # source://rexml//lib/rexml/source.rb#300 + # source://rexml//lib/rexml/source.rb#306 def encoding_updated; end - # source://rexml//lib/rexml/source.rb#280 + # source://rexml//lib/rexml/source.rb#286 def readline(term = T.unsafe(nil)); end end @@ -3889,36 +3889,34 @@ end # # source://rexml//lib/rexml/parsers/baseparser.rb#40 class REXML::Parsers::BaseParser - include ::REXML::Parsers::BaseParser::Private - # @return [BaseParser] a new instance of BaseParser # - # source://rexml//lib/rexml/parsers/baseparser.rb#139 + # source://rexml//lib/rexml/parsers/baseparser.rb#145 def initialize(source); end - # source://rexml//lib/rexml/parsers/baseparser.rb#144 + # source://rexml//lib/rexml/parsers/baseparser.rb#151 def add_listener(listener); end # Returns true if there are no more events # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#170 + # source://rexml//lib/rexml/parsers/baseparser.rb#177 def empty?; end - # source://rexml//lib/rexml/parsers/baseparser.rb#463 + # source://rexml//lib/rexml/parsers/baseparser.rb#486 def entity(reference, entities); end # Returns true if there are more events. Synonymous with !empty? # # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#175 + # source://rexml//lib/rexml/parsers/baseparser.rb#182 def has_next?; end # Escapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#474 + # source://rexml//lib/rexml/parsers/baseparser.rb#497 def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end # Peek at the +depth+ event in the stack. The first element on the stack @@ -3928,59 +3926,59 @@ class REXML::Parsers::BaseParser # event, so you can effectively pre-parse the entire document (pull the # entire thing into memory) using this method. # - # source://rexml//lib/rexml/parsers/baseparser.rb#191 + # source://rexml//lib/rexml/parsers/baseparser.rb#198 def peek(depth = T.unsafe(nil)); end - # source://rexml//lib/rexml/parsers/baseparser.rb#160 + # source://rexml//lib/rexml/parsers/baseparser.rb#167 def position; end # Returns the next event. This is a +PullEvent+ object. # - # source://rexml//lib/rexml/parsers/baseparser.rb#206 + # source://rexml//lib/rexml/parsers/baseparser.rb#213 def pull; end # Returns the value of attribute source. # - # source://rexml//lib/rexml/parsers/baseparser.rb#148 + # source://rexml//lib/rexml/parsers/baseparser.rb#155 def source; end - # source://rexml//lib/rexml/parsers/baseparser.rb#150 + # source://rexml//lib/rexml/parsers/baseparser.rb#157 def stream=(source); end # Unescapes all possible entities # - # source://rexml//lib/rexml/parsers/baseparser.rb#490 + # source://rexml//lib/rexml/parsers/baseparser.rb#513 def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end # Push an event back on the head of the stream. This method # has (theoretically) infinite depth. # - # source://rexml//lib/rexml/parsers/baseparser.rb#181 + # source://rexml//lib/rexml/parsers/baseparser.rb#188 def unshift(token); end private # @return [Boolean] # - # source://rexml//lib/rexml/parsers/baseparser.rb#519 + # source://rexml//lib/rexml/parsers/baseparser.rb#542 def need_source_encoding_update?(xml_declaration_encoding); end - # source://rexml//lib/rexml/parsers/baseparser.rb#630 + # source://rexml//lib/rexml/parsers/baseparser.rb#653 def parse_attributes(prefixes, curr_ns); end - # source://rexml//lib/rexml/parsers/baseparser.rb#538 + # source://rexml//lib/rexml/parsers/baseparser.rb#561 def parse_id(base_error_message, accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#566 + # source://rexml//lib/rexml/parsers/baseparser.rb#589 def parse_id_invalid_details(accept_external_id:, accept_public_id:); end - # source://rexml//lib/rexml/parsers/baseparser.rb#525 + # source://rexml//lib/rexml/parsers/baseparser.rb#548 def parse_name(base_error_message); end - # source://rexml//lib/rexml/parsers/baseparser.rb#604 + # source://rexml//lib/rexml/parsers/baseparser.rb#627 def process_instruction(start_position); end - # source://rexml//lib/rexml/parsers/baseparser.rb#214 + # source://rexml//lib/rexml/parsers/baseparser.rb#223 def pull_event; end end @@ -3999,9 +3997,18 @@ module REXML::Parsers::BaseParser::Private; end # source://rexml//lib/rexml/parsers/baseparser.rb#130 REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp) +# source://rexml//lib/rexml/parsers/baseparser.rb#135 +REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml//lib/rexml/parsers/baseparser.rb#136 +REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp) + # source://rexml//lib/rexml/parsers/baseparser.rb#129 REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp) +# source://rexml//lib/rexml/parsers/baseparser.rb#137 +REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash) + # source://rexml//lib/rexml/parsers/baseparser.rb#134 REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp) @@ -4221,7 +4228,6 @@ end # source://rexml//lib/rexml/source.rb#51 class REXML::Source include ::REXML::Encoding - include ::REXML::Source::Private # Constructor # value, overriding all encoding detection @@ -4238,17 +4244,20 @@ class REXML::Source # source://rexml//lib/rexml/source.rb#83 def buffer; end - # source://rexml//lib/rexml/source.rb#87 + # source://rexml//lib/rexml/source.rb#93 def buffer_encoding=(encoding); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#136 + # source://rexml//lib/rexml/source.rb#142 def current_line; end + # source://rexml//lib/rexml/source.rb#87 + def drop_parsed_content; end + # @return [Boolean] true if the Source is exhausted # - # source://rexml//lib/rexml/source.rb#131 + # source://rexml//lib/rexml/source.rb#137 def empty?; end # Returns the value of attribute encoding. @@ -4259,10 +4268,10 @@ class REXML::Source # Inherited from Encoding # Overridden to support optimized en/decoding # - # source://rexml//lib/rexml/source.rb#93 + # source://rexml//lib/rexml/source.rb#99 def encoding=(enc); end - # source://rexml//lib/rexml/source.rb#111 + # source://rexml//lib/rexml/source.rb#117 def ensure_buffer; end # The line number of the last consumed text @@ -4270,36 +4279,39 @@ class REXML::Source # source://rexml//lib/rexml/source.rb#54 def line; end - # source://rexml//lib/rexml/source.rb#114 + # source://rexml//lib/rexml/source.rb#120 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#122 + # source://rexml//lib/rexml/source.rb#128 def position; end - # source://rexml//lib/rexml/source.rb#126 + # source://rexml//lib/rexml/source.rb#132 def position=(pos); end - # source://rexml//lib/rexml/source.rb#98 + # source://rexml//lib/rexml/source.rb#104 def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#101 + # source://rexml//lib/rexml/source.rb#107 def read_until(term); end private - # source://rexml//lib/rexml/source.rb#145 + # source://rexml//lib/rexml/source.rb#151 def detect_encoding; end - # source://rexml//lib/rexml/source.rb#163 + # source://rexml//lib/rexml/source.rb#169 def encoding_updated; end end # source://rexml//lib/rexml/source.rb#57 module REXML::Source::Private; end -# source://rexml//lib/rexml/source.rb#58 +# source://rexml//lib/rexml/source.rb#59 REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash) +# source://rexml//lib/rexml/source.rb#58 +REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer) + # Represents text nodes in an XML document # # source://rexml//lib/rexml/text.rb#11 diff --git a/sorbet/rbi/gems/rubocop@1.64.1.rbi b/sorbet/rbi/gems/rubocop@1.64.1.rbi index c9eefbd..1b8a762 100644 --- a/sorbet/rbi/gems/rubocop@1.64.1.rbi +++ b/sorbet/rbi/gems/rubocop@1.64.1.rbi @@ -769,7 +769,7 @@ class RuboCop::CommentConfig # @return [CommentConfig] a new instance of CommentConfig # - # source://standard/1.39.0/lib/standard/rubocop/ext.rb#20 + # source://standard/1.39.1/lib/standard/rubocop/ext.rb#20 def initialize(processed_source); end # @return [Boolean] @@ -17009,7 +17009,7 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment extend ::RuboCop::Cop::AutoCorrector - # source://standard/1.39.0/lib/standard/rubocop/ext.rb#4 + # source://standard/1.39.1/lib/standard/rubocop/ext.rb#4 def message(_); end # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 diff --git a/sorbet/rbi/gems/sorbet-result@1.1.0.rbi b/sorbet/rbi/gems/sorbet-result@1.1.0.rbi index e3e6ef9..0a28e6f 100644 --- a/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +++ b/sorbet/rbi/gems/sorbet-result@1.1.0.rbi @@ -8,101 +8,104 @@ # source://sorbet-result//lib/minitest/result_assertions.rb#6 module Minitest class << self - # source://minitest/5.23.1/lib/minitest.rb#197 + # source://minitest/5.24.1/lib/minitest.rb#323 def __run(reporter, options); end - # source://minitest/5.23.1/lib/minitest.rb#97 + # source://minitest/5.24.1/lib/minitest.rb#97 def after_run(&block); end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def allow_fork; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def allow_fork=(_arg0); end - # source://minitest/5.23.1/lib/minitest.rb#69 + # source://minitest/5.24.1/lib/minitest.rb#69 def autorun; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def backtrace_filter; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def backtrace_filter=(_arg0); end - # source://minitest/5.23.1/lib/minitest.rb#18 + # source://minitest/5.24.1/lib/minitest.rb#18 def cattr_accessor(name); end - # source://minitest/5.23.1/lib/minitest.rb#1178 + # source://minitest/5.24.1/lib/minitest.rb#1208 def clock_time; end - # source://minitest/5.23.1/lib/minitest.rb#177 + # source://minitest/5.24.1/lib/minitest.rb#303 def empty_run!(options); end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def extensions; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def extensions=(_arg0); end - # source://minitest/5.23.1/lib/minitest.rb#306 + # source://minitest/5.24.1/lib/minitest.rb#336 def filter_backtrace(bt); end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def info_signal; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def info_signal=(_arg0); end - # source://minitest/5.23.1/lib/minitest.rb#101 + # source://minitest/5.24.1/lib/minitest.rb#125 def init_plugins(options); end - # source://minitest/5.23.1/lib/minitest.rb#108 + # source://minitest/5.24.1/lib/minitest.rb#109 def load_plugins; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def parallel_executor; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def parallel_executor=(_arg0); end - # source://minitest/5.23.1/lib/minitest.rb#210 + # source://minitest/5.24.1/lib/minitest.rb#143 def process_args(args = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#104 + def register_plugin(name_or_mod); end + + # source://minitest/5.24.1/lib/minitest.rb#19 def reporter; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def reporter=(_arg0); end - # source://minitest/5.23.1/lib/minitest.rb#143 + # source://minitest/5.24.1/lib/minitest.rb#269 def run(args = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest.rb#1169 + # source://minitest/5.24.1/lib/minitest.rb#1199 def run_one_method(klass, method_name); end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def seed; end - # source://minitest/5.23.1/lib/minitest.rb#19 + # source://minitest/5.24.1/lib/minitest.rb#19 def seed=(_arg0); end end end # source://sorbet-result//lib/minitest/result_assertions.rb#7 module Minitest::Assertions - # source://minitest/5.23.1/lib/minitest/assertions.rb#188 + # source://minitest/5.24.1/lib/minitest/assertions.rb#188 def _synchronize; end - # source://minitest/5.23.1/lib/minitest/assertions.rb#201 + # source://minitest/5.24.1/lib/minitest/assertions.rb#201 def _where; end - # source://minitest/5.23.1/lib/minitest/assertions.rb#178 + # source://minitest/5.24.1/lib/minitest/assertions.rb#178 def assert(test, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#195 + # source://minitest/5.24.1/lib/minitest/assertions.rb#195 def assert_empty(obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#221 + # source://minitest/5.24.1/lib/minitest/assertions.rb#221 def assert_equal(exp, act, msg = T.unsafe(nil)); end # Fails unless exp is equal to error @@ -115,40 +118,40 @@ module Minitest::Assertions # source://sorbet-result//lib/minitest/result_assertions.rb#14 def assert_failure(result); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#242 + # source://minitest/5.24.1/lib/minitest/assertions.rb#242 def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#254 + # source://minitest/5.24.1/lib/minitest/assertions.rb#254 def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#261 + # source://minitest/5.24.1/lib/minitest/assertions.rb#261 def assert_includes(collection, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#272 + # source://minitest/5.24.1/lib/minitest/assertions.rb#272 def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#283 + # source://minitest/5.24.1/lib/minitest/assertions.rb#283 def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#293 + # source://minitest/5.24.1/lib/minitest/assertions.rb#293 def assert_match(matcher, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/mock.rb#250 + # source://minitest/5.24.1/lib/minitest/mock.rb#250 def assert_mock(mock); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#305 + # source://minitest/5.24.1/lib/minitest/assertions.rb#305 def assert_nil(obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#315 + # source://minitest/5.24.1/lib/minitest/assertions.rb#315 def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#333 + # source://minitest/5.24.1/lib/minitest/assertions.rb#333 def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#357 + # source://minitest/5.24.1/lib/minitest/assertions.rb#357 def assert_path_exists(path, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#376 + # source://minitest/5.24.1/lib/minitest/assertions.rb#376 def assert_pattern; end # Fails unless exp is equal to payload @@ -156,22 +159,22 @@ module Minitest::Assertions # source://sorbet-result//lib/minitest/result_assertions.rb#19 def assert_payload(exp, result); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#397 + # source://minitest/5.24.1/lib/minitest/assertions.rb#397 def assert_predicate(o1, op, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#424 + # source://minitest/5.24.1/lib/minitest/assertions.rb#424 def assert_raises(*exp); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#456 + # source://minitest/5.24.1/lib/minitest/assertions.rb#456 def assert_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#466 + # source://minitest/5.24.1/lib/minitest/assertions.rb#466 def assert_same(exp, act, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#479 + # source://minitest/5.24.1/lib/minitest/assertions.rb#479 def assert_send(send_ary, m = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#493 + # source://minitest/5.24.1/lib/minitest/assertions.rb#493 def assert_silent; end # Fails unless Result is a Success @@ -179,46 +182,46 @@ module Minitest::Assertions # source://sorbet-result//lib/minitest/result_assertions.rb#9 def assert_success(result); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#502 + # source://minitest/5.24.1/lib/minitest/assertions.rb#502 def assert_throws(sym, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#543 + # source://minitest/5.24.1/lib/minitest/assertions.rb#543 def capture_io; end - # source://minitest/5.23.1/lib/minitest/assertions.rb#576 + # source://minitest/5.24.1/lib/minitest/assertions.rb#576 def capture_subprocess_io; end - # source://minitest/5.23.1/lib/minitest/assertions.rb#59 + # source://minitest/5.24.1/lib/minitest/assertions.rb#59 def diff(exp, act); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#608 + # source://minitest/5.24.1/lib/minitest/assertions.rb#608 def exception_details(e, msg); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#624 + # source://minitest/5.24.1/lib/minitest/assertions.rb#624 def fail_after(y, m, d, msg); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#631 + # source://minitest/5.24.1/lib/minitest/assertions.rb#631 def flunk(msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#639 + # source://minitest/5.24.1/lib/minitest/assertions.rb#639 def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#129 + # source://minitest/5.24.1/lib/minitest/assertions.rb#129 def mu_pp(obj); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#152 + # source://minitest/5.24.1/lib/minitest/assertions.rb#152 def mu_pp_for_diff(obj); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#650 + # source://minitest/5.24.1/lib/minitest/assertions.rb#650 def pass(_msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#657 + # source://minitest/5.24.1/lib/minitest/assertions.rb#657 def refute(test, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#665 + # source://minitest/5.24.1/lib/minitest/assertions.rb#665 def refute_empty(obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#676 + # source://minitest/5.24.1/lib/minitest/assertions.rb#676 def refute_equal(exp, act, msg = T.unsafe(nil)); end # Fails if exp is equal to error @@ -231,34 +234,34 @@ module Minitest::Assertions # source://sorbet-result//lib/minitest/result_assertions.rb#34 def refute_failure(result); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#688 + # source://minitest/5.24.1/lib/minitest/assertions.rb#688 def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#700 + # source://minitest/5.24.1/lib/minitest/assertions.rb#700 def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#707 + # source://minitest/5.24.1/lib/minitest/assertions.rb#707 def refute_includes(collection, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#718 + # source://minitest/5.24.1/lib/minitest/assertions.rb#718 def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#728 + # source://minitest/5.24.1/lib/minitest/assertions.rb#728 def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#736 + # source://minitest/5.24.1/lib/minitest/assertions.rb#736 def refute_match(matcher, obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#746 + # source://minitest/5.24.1/lib/minitest/assertions.rb#746 def refute_nil(obj, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#781 + # source://minitest/5.24.1/lib/minitest/assertions.rb#781 def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#790 + # source://minitest/5.24.1/lib/minitest/assertions.rb#790 def refute_path_exists(path, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#763 + # source://minitest/5.24.1/lib/minitest/assertions.rb#763 def refute_pattern; end # Fails if exp is equal to payload @@ -266,13 +269,13 @@ module Minitest::Assertions # source://sorbet-result//lib/minitest/result_assertions.rb#39 def refute_payload(exp, result); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#804 + # source://minitest/5.24.1/lib/minitest/assertions.rb#804 def refute_predicate(o1, op, msg = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#813 + # source://minitest/5.24.1/lib/minitest/assertions.rb#813 def refute_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#822 + # source://minitest/5.24.1/lib/minitest/assertions.rb#822 def refute_same(exp, act, msg = T.unsafe(nil)); end # Fails if Result is a Success @@ -280,23 +283,23 @@ module Minitest::Assertions # source://sorbet-result//lib/minitest/result_assertions.rb#29 def refute_success(result); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#835 + # source://minitest/5.24.1/lib/minitest/assertions.rb#835 def skip(msg = T.unsafe(nil), _ignored = T.unsafe(nil)); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#847 + # source://minitest/5.24.1/lib/minitest/assertions.rb#847 def skip_until(y, m, d, msg); end - # source://minitest/5.23.1/lib/minitest/assertions.rb#856 + # source://minitest/5.24.1/lib/minitest/assertions.rb#856 def skipped?; end - # source://minitest/5.23.1/lib/minitest/assertions.rb#104 + # source://minitest/5.24.1/lib/minitest/assertions.rb#104 def things_to_diff(exp, act); end class << self - # source://minitest/5.23.1/lib/minitest/assertions.rb#29 + # source://minitest/5.24.1/lib/minitest/assertions.rb#29 def diff; end - # source://minitest/5.23.1/lib/minitest/assertions.rb#47 + # source://minitest/5.24.1/lib/minitest/assertions.rb#47 def diff=(o); end end end diff --git a/sorbet/rbi/gems/spoom@1.3.2.rbi b/sorbet/rbi/gems/spoom@1.3.2.rbi deleted file mode 100644 index 9ea7bf5..0000000 --- a/sorbet/rbi/gems/spoom@1.3.2.rbi +++ /dev/null @@ -1,4421 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `spoom` gem. -# Please instead update this file by running `bin/tapioca gem spoom`. - - -# source://spoom//lib/spoom.rb#7 -module Spoom; end - -# source://spoom//lib/spoom/cli/helper.rb#9 -module Spoom::Cli; end - -# source://spoom//lib/spoom/cli/deadcode.rb#8 -class Spoom::Cli::Deadcode < ::Thor - include ::Spoom::Colorize - include ::Spoom::Cli::Helper - - # source://spoom//lib/spoom/cli/deadcode.rb#52 - sig { params(paths: ::String).void } - def deadcode(*paths); end - - def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli/deadcode.rb#150 - def remove(location_string); end -end - -# source://spoom//lib/spoom/cli/helper.rb#10 -module Spoom::Cli::Helper - include ::Spoom::Colorize - - requires_ancestor { Thor } - - # source://spoom//lib/spoom/cli/helper.rb#139 - sig { params(string: ::String).returns(::String) } - def blue(string); end - - # Is the `--color` option true? - # - # source://spoom//lib/spoom/cli/helper.rb#103 - sig { returns(T::Boolean) } - def color?; end - - # Colorize a string if `color?` - # - # source://spoom//lib/spoom/cli/helper.rb#132 - sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } - def colorize(string, *color); end - - # Returns the context at `--path` (by default the current working directory) - # - # source://spoom//lib/spoom/cli/helper.rb#71 - sig { returns(::Spoom::Context) } - def context; end - - # Raise if `spoom` is not ran inside a context with a `sorbet/config` file - # - # source://spoom//lib/spoom/cli/helper.rb#77 - sig { returns(::Spoom::Context) } - def context_requiring_sorbet!; end - - # source://spoom//lib/spoom/cli/helper.rb#144 - sig { params(string: ::String).returns(::String) } - def cyan(string); end - - # Return the path specified through `--path` - # - # source://spoom//lib/spoom/cli/helper.rb#92 - sig { returns(::String) } - def exec_path; end - - # source://spoom//lib/spoom/cli/helper.rb#149 - sig { params(string: ::String).returns(::String) } - def gray(string); end - - # source://spoom//lib/spoom/cli/helper.rb#154 - sig { params(string: ::String).returns(::String) } - def green(string); end - - # source://spoom//lib/spoom/cli/helper.rb#108 - sig { params(string: ::String).returns(::String) } - def highlight(string); end - - # source://spoom//lib/spoom/cli/helper.rb#159 - sig { params(string: ::String).returns(::String) } - def red(string); end - - # Print `message` on `$stdout` - # - # source://spoom//lib/spoom/cli/helper.rb#20 - sig { params(message: ::String).void } - def say(message); end - - # Print `message` on `$stderr` - # - # The message is prefixed by a status (default: `Error`). - # - # source://spoom//lib/spoom/cli/helper.rb#39 - sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } - def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end - - # Print `message` on `$stderr` - # - # The message is prefixed by a status (default: `Warning`). - # - # source://spoom//lib/spoom/cli/helper.rb#59 - sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } - def say_warning(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli/helper.rb#164 - sig { params(string: ::String).returns(::String) } - def yellow(string); end -end - -# source://spoom//lib/spoom/cli.rb#12 -class Spoom::Cli::Main < ::Thor - include ::Spoom::Colorize - include ::Spoom::Cli::Helper - - # source://spoom//lib/spoom/cli.rb#101 - def __print_version; end - - # source://spoom//lib/spoom/cli.rb#58 - sig { params(directory: ::String).void } - def bump(directory = T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli.rb#65 - def coverage(*args); end - - # source://thor/1.3.1/lib/thor.rb#334 - def deadcode(*args); end - - # source://spoom//lib/spoom/cli.rb#75 - def lsp(*args); end - - # source://thor/1.3.1/lib/thor.rb#334 - def srb(*args); end - - # source://spoom//lib/spoom/cli.rb#94 - def tc(*paths_to_select); end - - class << self - # @return [Boolean] - # - # source://spoom//lib/spoom/cli.rb#108 - def exit_on_failure?; end - end -end - -# source://spoom//lib/spoom/cli.rb#81 -Spoom::Cli::Main::SORT_CODE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/cli.rb#83 -Spoom::Cli::Main::SORT_ENUM = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/cli.rb#82 -Spoom::Cli::Main::SORT_LOC = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/cli/srb/bump.rb#9 -module Spoom::Cli::Srb; end - -# source://spoom//lib/spoom/cli/srb/bump.rb#10 -class Spoom::Cli::Srb::Bump < ::Thor - include ::Spoom::Colorize - include ::Spoom::Cli::Helper - - # source://spoom//lib/spoom/cli/srb/bump.rb#50 - sig { params(directory: ::String).void } - def bump(directory = T.unsafe(nil)); end - - def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli/srb/bump.rb#171 - def print_changes(files, command:, from: T.unsafe(nil), to: T.unsafe(nil), dry: T.unsafe(nil), path: T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli/srb/bump.rb#193 - def undo_changes(files, from_strictness); end -end - -# source://spoom//lib/spoom/cli/srb/coverage.rb#10 -class Spoom::Cli::Srb::Coverage < ::Thor - include ::Spoom::Colorize - include ::Spoom::Cli::Helper - - # source://spoom//lib/spoom/cli/srb/coverage.rb#199 - def bundle_install(path, sha); end - - def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli/srb/coverage.rb#211 - def message_no_data(file); end - - # source://spoom//lib/spoom/cli/srb/coverage.rb#174 - def open(file = T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli/srb/coverage.rb#190 - def parse_time(string, option); end - - # source://spoom//lib/spoom/cli/srb/coverage.rb#143 - def report; end - - # source://spoom//lib/spoom/cli/srb/coverage.rb#21 - def snapshot; end - - # source://spoom//lib/spoom/cli/srb/coverage.rb#43 - def timeline; end -end - -# source://spoom//lib/spoom/cli/srb/coverage.rb#13 -Spoom::Cli::Srb::Coverage::DATA_DIR = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/cli/srb/lsp.rb#11 -class Spoom::Cli::Srb::LSP < ::Thor - include ::Spoom::Colorize - include ::Spoom::Cli::Helper - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#45 - def defs(file, line, col); end - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#55 - def find(query); end - - def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#31 - def hover(file, line, col); end - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#16 - def list; end - - # source://spoom//lib/spoom/cli/srb/lsp.rb#104 - def lsp_client; end - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#75 - def refs(file, line, col); end - - # source://spoom//lib/spoom/cli/srb/lsp.rb#127 - def run(&block); end - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#85 - def sigs(file, line, col); end - - # source://spoom//lib/spoom/cli/srb/lsp.rb#119 - def symbol_printer; end - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#65 - def symbols(file); end - - # source://spoom//lib/spoom/cli/srb/lsp.rb#152 - def to_uri(path); end - - # TODO: options, filter, limit, kind etc.. filter rbi - # - # source://spoom//lib/spoom/cli/srb/lsp.rb#95 - def types(file, line, col); end -end - -# source://spoom//lib/spoom/cli/srb.rb#12 -class Spoom::Cli::Srb::Main < ::Thor - # source://thor/1.3.1/lib/thor.rb#334 - def bump(*args); end - - # source://thor/1.3.1/lib/thor.rb#334 - def coverage(*args); end - - def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - - # source://thor/1.3.1/lib/thor.rb#334 - def lsp(*args); end - - # source://thor/1.3.1/lib/thor.rb#334 - def tc(*args); end -end - -# source://spoom//lib/spoom/cli/srb/tc.rb#7 -class Spoom::Cli::Srb::Tc < ::Thor - include ::Spoom::Colorize - include ::Spoom::Cli::Helper - - # source://spoom//lib/spoom/cli/srb/tc.rb#132 - def colorize_message(message); end - - # source://spoom//lib/spoom/cli/srb/tc.rb#123 - def format_error(error, format); end - - def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - - # source://spoom//lib/spoom/cli/srb/tc.rb#27 - def tc(*paths_to_select); end -end - -# source://spoom//lib/spoom/cli/srb/tc.rb#16 -Spoom::Cli::Srb::Tc::DEFAULT_FORMAT = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/cli/srb/tc.rb#12 -Spoom::Cli::Srb::Tc::SORT_CODE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/cli/srb/tc.rb#14 -Spoom::Cli::Srb::Tc::SORT_ENUM = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/cli/srb/tc.rb#13 -Spoom::Cli::Srb::Tc::SORT_LOC = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/colors.rb#5 -class Spoom::Color < ::T::Enum - enums do - CLEAR = new - BOLD = new - BLACK = new - RED = new - GREEN = new - YELLOW = new - BLUE = new - MAGENTA = new - CYAN = new - WHITE = new - LIGHT_BLACK = new - LIGHT_RED = new - LIGHT_GREEN = new - LIGHT_YELLOW = new - LIGHT_BLUE = new - LIGHT_MAGENTA = new - LIGHT_CYAN = new - LIGHT_WHITE = new - end - - # source://spoom//lib/spoom/colors.rb#32 - sig { returns(::String) } - def ansi_code; end -end - -# source://spoom//lib/spoom/colors.rb#37 -module Spoom::Colorize - # source://spoom//lib/spoom/colors.rb#41 - sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } - def set_color(string, *color); end -end - -# An abstraction to a Ruby project context -# -# A context maps to a directory in the file system. -# It is used to manipulate files and run commands in the context of this directory. -# -# source://spoom//lib/spoom/context/bundle.rb#5 -class Spoom::Context - include ::Spoom::Context::Bundle - include ::Spoom::Context::Exec - include ::Spoom::Context::FileSystem - include ::Spoom::Context::Git - include ::Spoom::Context::Sorbet - - # Create a new context about `absolute_path` - # - # The directory will not be created if it doesn't exist. - # Call `#make!` to create it. - # - # source://spoom//lib/spoom/context.rb#51 - sig { params(absolute_path: ::String).void } - def initialize(absolute_path); end - - # The absolute path to the directory this context is about - # - # source://spoom//lib/spoom/context.rb#44 - sig { returns(::String) } - def absolute_path; end - - class << self - # Create a new context in the system's temporary directory - # - # `name` is used as prefix to the temporary directory name. - # The directory will be created if it doesn't exist. - # - # source://spoom//lib/spoom/context.rb#37 - sig { params(name: T.nilable(::String)).returns(T.attached_class) } - def mktmp!(name = T.unsafe(nil)); end - end -end - -# Bundle features for a context -# -# source://spoom//lib/spoom/context/bundle.rb#7 -module Spoom::Context::Bundle - requires_ancestor { Spoom::Context } - - # Run a command with `bundle` in this context directory - # - # source://spoom//lib/spoom/context/bundle.rb#33 - sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } - def bundle(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end - - # Run a command `bundle exec` in this context directory - # - # source://spoom//lib/spoom/context/bundle.rb#46 - sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } - def bundle_exec(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end - - # Run `bundle install` in this context directory - # - # source://spoom//lib/spoom/context/bundle.rb#40 - sig { params(version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } - def bundle_install!(version: T.unsafe(nil), capture_err: T.unsafe(nil)); end - - # Get `gem` version from the `Gemfile.lock` content - # - # Returns `nil` if `gem` cannot be found in the Gemfile. - # - # source://spoom//lib/spoom/context/bundle.rb#62 - sig { params(gem: ::String).returns(T.nilable(::String)) } - def gem_version_from_gemfile_lock(gem); end - - # source://spoom//lib/spoom/context/bundle.rb#51 - sig { returns(T::Hash[::String, ::Bundler::LazySpecification]) } - def gemfile_lock_specs; end - - # Read the contents of the Gemfile in this context directory - # - # source://spoom//lib/spoom/context/bundle.rb#15 - sig { returns(T.nilable(::String)) } - def read_gemfile; end - - # Read the contents of the Gemfile.lock in this context directory - # - # source://spoom//lib/spoom/context/bundle.rb#21 - sig { returns(T.nilable(::String)) } - def read_gemfile_lock; end - - # Set the `contents` of the Gemfile in this context directory - # - # source://spoom//lib/spoom/context/bundle.rb#27 - sig { params(contents: ::String, append: T::Boolean).void } - def write_gemfile!(contents, append: T.unsafe(nil)); end -end - -# Execution features for a context -# -# source://spoom//lib/spoom/context/exec.rb#27 -module Spoom::Context::Exec - requires_ancestor { Spoom::Context } - - # Run a command in this context directory - # - # source://spoom//lib/spoom/context/exec.rb#35 - sig { params(command: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) } - def exec(command, capture_err: T.unsafe(nil)); end -end - -# File System features for a context -# -# source://spoom//lib/spoom/context/file_system.rb#7 -module Spoom::Context::FileSystem - requires_ancestor { Spoom::Context } - - # Returns the absolute path to `relative_path` in the context's directory - # - # source://spoom//lib/spoom/context/file_system.rb#15 - sig { params(relative_path: ::String).returns(::String) } - def absolute_path_to(relative_path); end - - # source://spoom//lib/spoom/context/file_system.rb#53 - sig do - params( - allow_extensions: T::Array[::String], - allow_mime_types: T::Array[::String], - exclude_patterns: T::Array[::String] - ).returns(T::Array[::String]) - end - def collect_files(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end - - # Delete this context and its content - # - # Warning: it will `rm -rf` the context directory on the file system. - # - # source://spoom//lib/spoom/context/file_system.rb#105 - sig { void } - def destroy!; end - - # Does the context directory at `absolute_path` exist and is a directory? - # - # source://spoom//lib/spoom/context/file_system.rb#21 - sig { returns(T::Boolean) } - def exist?; end - - # Does `relative_path` point to an existing file in this context directory? - # - # source://spoom//lib/spoom/context/file_system.rb#65 - sig { params(relative_path: ::String).returns(T::Boolean) } - def file?(relative_path); end - - # List all files in this context matching `pattern` - # - # source://spoom//lib/spoom/context/file_system.rb#34 - sig { params(pattern: ::String).returns(T::Array[::String]) } - def glob(pattern = T.unsafe(nil)); end - - # List all files at the top level of this context directory - # - # source://spoom//lib/spoom/context/file_system.rb#42 - sig { returns(T::Array[::String]) } - def list; end - - # Create the context directory at `absolute_path` - # - # source://spoom//lib/spoom/context/file_system.rb#27 - sig { void } - def mkdir!; end - - # Move the file or directory from `from_relative_path` to `to_relative_path` - # - # source://spoom//lib/spoom/context/file_system.rb#95 - sig { params(from_relative_path: ::String, to_relative_path: ::String).void } - def move!(from_relative_path, to_relative_path); end - - # Return the contents of the file at `relative_path` in this context directory - # - # Will raise if the file doesn't exist. - # - # source://spoom//lib/spoom/context/file_system.rb#73 - sig { params(relative_path: ::String).returns(::String) } - def read(relative_path); end - - # Remove the path at `relative_path` (recursive + force) in this context directory - # - # source://spoom//lib/spoom/context/file_system.rb#89 - sig { params(relative_path: ::String).void } - def remove!(relative_path); end - - # Write `contents` in the file at `relative_path` in this context directory - # - # Append to the file if `append` is true. - # - # source://spoom//lib/spoom/context/file_system.rb#81 - sig { params(relative_path: ::String, contents: ::String, append: T::Boolean).void } - def write!(relative_path, contents = T.unsafe(nil), append: T.unsafe(nil)); end -end - -# Git features for a context -# -# source://spoom//lib/spoom/context/git.rb#35 -module Spoom::Context::Git - requires_ancestor { Spoom::Context } - - # Run a command prefixed by `git` in this context directory - # - # source://spoom//lib/spoom/context/git.rb#43 - sig { params(command: ::String).returns(::Spoom::ExecResult) } - def git(command); end - - # Run `git checkout` in this context directory - # - # source://spoom//lib/spoom/context/git.rb#62 - sig { params(ref: ::String).returns(::Spoom::ExecResult) } - def git_checkout!(ref: T.unsafe(nil)); end - - # Run `git checkout -b ` in this context directory - # - # source://spoom//lib/spoom/context/git.rb#68 - sig { params(branch_name: ::String, ref: T.nilable(::String)).returns(::Spoom::ExecResult) } - def git_checkout_new_branch!(branch_name, ref: T.unsafe(nil)); end - - # Run `git add . && git commit` in this context directory - # - # source://spoom//lib/spoom/context/git.rb#78 - sig { params(message: ::String, time: ::Time, allow_empty: T::Boolean).returns(::Spoom::ExecResult) } - def git_commit!(message: T.unsafe(nil), time: T.unsafe(nil), allow_empty: T.unsafe(nil)); end - - # Get the current git branch in this context directory - # - # source://spoom//lib/spoom/context/git.rb#89 - sig { returns(T.nilable(::String)) } - def git_current_branch; end - - # Run `git diff` in this context directory - # - # source://spoom//lib/spoom/context/git.rb#98 - sig { params(arg: ::String).returns(::Spoom::ExecResult) } - def git_diff(*arg); end - - # Run `git init` in this context directory - # - # Warning: passing a branch will run `git init -b ` which is only available in git 2.28+. - # In older versions, use `git_init!` followed by `git("checkout -b ")`. - # - # source://spoom//lib/spoom/context/git.rb#52 - sig { params(branch: T.nilable(::String)).returns(::Spoom::ExecResult) } - def git_init!(branch: T.unsafe(nil)); end - - # Get the last commit in the currently checked out branch - # - # source://spoom//lib/spoom/context/git.rb#104 - sig { params(short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) } - def git_last_commit(short_sha: T.unsafe(nil)); end - - # source://spoom//lib/spoom/context/git.rb#115 - sig { params(arg: ::String).returns(::Spoom::ExecResult) } - def git_log(*arg); end - - # Run `git push ` in this context directory - # - # source://spoom//lib/spoom/context/git.rb#121 - sig { params(remote: ::String, ref: ::String, force: T::Boolean).returns(::Spoom::ExecResult) } - def git_push!(remote, ref, force: T.unsafe(nil)); end - - # source://spoom//lib/spoom/context/git.rb#126 - sig { params(arg: ::String).returns(::Spoom::ExecResult) } - def git_show(*arg); end - - # Is there uncommitted changes in this context directory? - # - # source://spoom//lib/spoom/context/git.rb#132 - sig { params(path: ::String).returns(T::Boolean) } - def git_workdir_clean?(path: T.unsafe(nil)); end -end - -# Sorbet features for a context -# -# source://spoom//lib/spoom/context/sorbet.rb#7 -module Spoom::Context::Sorbet - requires_ancestor { Spoom::Context } - - # Does this context has a `sorbet/config` file? - # - # source://spoom//lib/spoom/context/sorbet.rb#119 - sig { returns(T::Boolean) } - def has_sorbet_config?; end - - # Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil) - # - # source://spoom//lib/spoom/context/sorbet.rb#142 - sig { params(relative_path: ::String).returns(T.nilable(::String)) } - def read_file_strictness(relative_path); end - - # Read the contents of `sorbet/config` in this context directory - # - # source://spoom//lib/spoom/context/sorbet.rb#130 - sig { returns(::String) } - def read_sorbet_config; end - - # source://spoom//lib/spoom/context/sorbet.rb#124 - sig { returns(::Spoom::Sorbet::Config) } - def sorbet_config; end - - # Get the commit introducing the `sorbet/config` file - # - # source://spoom//lib/spoom/context/sorbet.rb#148 - sig { returns(T.nilable(::Spoom::Git::Commit)) } - def sorbet_intro_commit; end - - # Get the commit removing the `sorbet/config` file - # - # source://spoom//lib/spoom/context/sorbet.rb#160 - sig { returns(T.nilable(::Spoom::Git::Commit)) } - def sorbet_removal_commit; end - - # Run `bundle exec srb` in this context directory - # - # source://spoom//lib/spoom/context/sorbet.rb#15 - sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } - def srb(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - - # List all files typechecked by Sorbet from its `config` - # - # source://spoom//lib/spoom/context/sorbet.rb#65 - sig { params(with_config: T.nilable(::Spoom::Sorbet::Config), include_rbis: T::Boolean).returns(T::Array[::String]) } - def srb_files(with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end - - # List all files typechecked by Sorbet from its `config` that matches `strictness` - # - # source://spoom//lib/spoom/context/sorbet.rb#104 - sig do - params( - strictness: ::String, - with_config: T.nilable(::Spoom::Sorbet::Config), - include_rbis: T::Boolean - ).returns(T::Array[::String]) - end - def srb_files_with_strictness(strictness, with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end - - # source://spoom//lib/spoom/context/sorbet.rb#45 - sig do - params( - arg: ::String, - sorbet_bin: T.nilable(::String), - capture_err: T::Boolean - ).returns(T.nilable(T::Hash[::String, ::Integer])) - end - def srb_metrics(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - - # source://spoom//lib/spoom/context/sorbet.rb#33 - sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } - def srb_tc(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - - # source://spoom//lib/spoom/context/sorbet.rb#110 - sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(T.nilable(::String)) } - def srb_version(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - - # Set the `contents` of `sorbet/config` in this context directory - # - # source://spoom//lib/spoom/context/sorbet.rb#136 - sig { params(contents: ::String, append: T::Boolean).void } - def write_sorbet_config!(contents, append: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/snapshot.rb#5 -module Spoom::Coverage - class << self - # source://spoom//lib/spoom/coverage.rb#103 - sig { params(context: ::Spoom::Context).returns(::Spoom::FileTree) } - def file_tree(context); end - - # source://spoom//lib/spoom/coverage.rb#83 - sig do - params( - context: ::Spoom::Context, - snapshots: T::Array[::Spoom::Coverage::Snapshot], - palette: ::Spoom::Coverage::D3::ColorPalette - ).returns(::Spoom::Coverage::Report) - end - def report(context, snapshots, palette:); end - - # source://spoom//lib/spoom/coverage.rb#16 - sig do - params( - context: ::Spoom::Context, - rbi: T::Boolean, - sorbet_bin: T.nilable(::String) - ).returns(::Spoom::Coverage::Snapshot) - end - def snapshot(context, rbi: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end - end -end - -# source://spoom//lib/spoom/coverage/report.rb#88 -module Spoom::Coverage::Cards; end - -# source://spoom//lib/spoom/coverage/report.rb#89 -class Spoom::Coverage::Cards::Card < ::Spoom::Coverage::Template - # source://spoom//lib/spoom/coverage/report.rb#98 - sig { params(template: ::String, title: T.nilable(::String), body: T.nilable(::String)).void } - def initialize(template: T.unsafe(nil), title: T.unsafe(nil), body: T.unsafe(nil)); end - - # @return [String, nil] - # - # source://spoom//lib/spoom/coverage/report.rb#95 - def body; end - - # source://spoom//lib/spoom/coverage/report.rb#95 - sig { returns(T.nilable(::String)) } - def title; end -end - -# source://spoom//lib/spoom/coverage/report.rb#92 -Spoom::Coverage::Cards::Card::TEMPLATE = T.let(T.unsafe(nil), String) - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/coverage/report.rb#105 -class Spoom::Coverage::Cards::Erb < ::Spoom::Coverage::Cards::Card - abstract! - - # source://spoom//lib/spoom/coverage/report.rb#112 - sig { void } - def initialize; end - - # @abstract - # - # source://spoom//lib/spoom/coverage/report.rb#120 - sig { abstract.returns(::String) } - def erb; end - - # source://spoom//lib/spoom/coverage/report.rb#115 - sig { override.returns(::String) } - def html; end -end - -# source://spoom//lib/spoom/coverage/report.rb#153 -class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card - # source://spoom//lib/spoom/coverage/report.rb#164 - sig do - params( - file_tree: ::Spoom::FileTree, - nodes_strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], - nodes_strictness_scores: T::Hash[::Spoom::FileTree::Node, ::Float], - title: ::String - ).void - end - def initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/report.rb#123 -class Spoom::Coverage::Cards::Snapshot < ::Spoom::Coverage::Cards::Card - # source://spoom//lib/spoom/coverage/report.rb#132 - sig { params(snapshot: ::Spoom::Coverage::Snapshot, title: ::String).void } - def initialize(snapshot:, title: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/report.rb#143 - sig { returns(::Spoom::Coverage::D3::Pie::Calls) } - def pie_calls; end - - # source://spoom//lib/spoom/coverage/report.rb#138 - sig { returns(::Spoom::Coverage::D3::Pie::Sigils) } - def pie_sigils; end - - # source://spoom//lib/spoom/coverage/report.rb#148 - sig { returns(::Spoom::Coverage::D3::Pie::Sigs) } - def pie_sigs; end - - # source://spoom//lib/spoom/coverage/report.rb#129 - sig { returns(::Spoom::Coverage::Snapshot) } - def snapshot; end -end - -# source://spoom//lib/spoom/coverage/report.rb#126 -Spoom::Coverage::Cards::Snapshot::TEMPLATE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/coverage/report.rb#240 -class Spoom::Coverage::Cards::SorbetIntro < ::Spoom::Coverage::Cards::Erb - # source://spoom//lib/spoom/coverage/report.rb#244 - sig { params(sorbet_intro_commit: T.nilable(::String), sorbet_intro_date: T.nilable(::Time)).void } - def initialize(sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/report.rb#250 - sig { override.returns(::String) } - def erb; end -end - -# source://spoom//lib/spoom/coverage/report.rb#177 -class Spoom::Coverage::Cards::Timeline < ::Spoom::Coverage::Cards::Card - # source://spoom//lib/spoom/coverage/report.rb#181 - sig { params(title: ::String, timeline: ::Spoom::Coverage::D3::Timeline).void } - def initialize(title:, timeline:); end -end - -# source://spoom//lib/spoom/coverage/report.rb#194 -class Spoom::Coverage::Cards::Timeline::Calls < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#198 - sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } - def initialize(snapshots:, title: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/report.rb#212 -class Spoom::Coverage::Cards::Timeline::RBIs < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#216 - sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } - def initialize(snapshots:, title: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/report.rb#230 -class Spoom::Coverage::Cards::Timeline::Runtimes < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#234 - sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } - def initialize(snapshots:, title: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/report.rb#185 -class Spoom::Coverage::Cards::Timeline::Sigils < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#189 - sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } - def initialize(snapshots:, title: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/report.rb#203 -class Spoom::Coverage::Cards::Timeline::Sigs < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#207 - sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } - def initialize(snapshots:, title: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/report.rb#221 -class Spoom::Coverage::Cards::Timeline::Versions < ::Spoom::Coverage::Cards::Timeline - # source://spoom//lib/spoom/coverage/report.rb#225 - sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } - def initialize(snapshots:, title: T.unsafe(nil)); end -end - -# source://spoom//lib/spoom/coverage/d3/base.rb#6 -module Spoom::Coverage::D3 - class << self - # source://spoom//lib/spoom/coverage/d3.rb#61 - sig { params(palette: ::Spoom::Coverage::D3::ColorPalette).returns(::String) } - def header_script(palette); end - - # source://spoom//lib/spoom/coverage/d3.rb#21 - sig { returns(::String) } - def header_style; end - end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/coverage/d3/base.rb#7 -class Spoom::Coverage::D3::Base - abstract! - - # source://spoom//lib/spoom/coverage/d3/base.rb#17 - sig { params(id: ::String, data: T.untyped).void } - def initialize(id, data); end - - # source://spoom//lib/spoom/coverage/d3/base.rb#37 - sig { returns(::String) } - def html; end - - # source://spoom//lib/spoom/coverage/d3/base.rb#14 - sig { returns(::String) } - def id; end - - # @abstract - # - # source://spoom//lib/spoom/coverage/d3/base.rb#50 - sig { abstract.returns(::String) } - def script; end - - # source://spoom//lib/spoom/coverage/d3/base.rb#45 - sig { returns(::String) } - def tooltip; end - - class << self - # source://spoom//lib/spoom/coverage/d3/base.rb#31 - sig { returns(::String) } - def header_script; end - - # source://spoom//lib/spoom/coverage/d3/base.rb#26 - sig { returns(::String) } - def header_style; end - end -end - -# source://spoom//lib/spoom/coverage/d3.rb#12 -Spoom::Coverage::D3::COLOR_FALSE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/coverage/d3.rb#11 -Spoom::Coverage::D3::COLOR_IGNORE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/coverage/d3.rb#14 -Spoom::Coverage::D3::COLOR_STRICT = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/coverage/d3.rb#15 -Spoom::Coverage::D3::COLOR_STRONG = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/coverage/d3.rb#13 -Spoom::Coverage::D3::COLOR_TRUE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/coverage/d3/circle_map.rb#9 -class Spoom::Coverage::D3::CircleMap < ::Spoom::Coverage::D3::Base - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#59 - sig { override.returns(::String) } - def script; end - - class << self - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#40 - sig { returns(::String) } - def header_script; end - - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#14 - sig { returns(::String) } - def header_style; end - end -end - -# source://spoom//lib/spoom/coverage/d3/circle_map.rb#148 -class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#159 - sig do - params( - id: ::String, - file_tree: ::Spoom::FileTree, - nodes_strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], - nodes_scores: T::Hash[::Spoom::FileTree::Node, ::Float] - ).void - end - def initialize(id, file_tree, nodes_strictnesses, nodes_scores); end - - # source://spoom//lib/spoom/coverage/d3/circle_map.rb#166 - sig { params(node: ::Spoom::FileTree::Node).returns(T::Hash[::Symbol, T.untyped]) } - def tree_node_to_json(node); end -end - -# source://spoom//lib/spoom/coverage/d3.rb#103 -class Spoom::Coverage::D3::ColorPalette < ::T::Struct - prop :ignore, ::String - prop :false, ::String - prop :true, ::String - prop :strict, ::String - prop :strong, ::String - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/coverage/d3/pie.rb#9 -class Spoom::Coverage::D3::Pie < ::Spoom::Coverage::D3::Base - abstract! - - # source://spoom//lib/spoom/coverage/d3/pie.rb#16 - sig { params(id: ::String, title: ::String, data: T.untyped).void } - def initialize(id, title, data); end - - # source://spoom//lib/spoom/coverage/d3/pie.rb#56 - sig { override.returns(::String) } - def script; end - - class << self - # source://spoom//lib/spoom/coverage/d3/pie.rb#43 - sig { returns(::String) } - def header_script; end - - # source://spoom//lib/spoom/coverage/d3/pie.rb#25 - sig { returns(::String) } - def header_style; end - end -end - -# source://spoom//lib/spoom/coverage/d3/pie.rb#141 -class Spoom::Coverage::D3::Pie::Calls < ::Spoom::Coverage::D3::Pie - # source://spoom//lib/spoom/coverage/d3/pie.rb#145 - sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } - def initialize(id, title, snapshot); end - - # source://spoom//lib/spoom/coverage/d3/pie.rb#150 - sig { override.returns(::String) } - def tooltip; end -end - -# source://spoom//lib/spoom/coverage/d3/pie.rb#123 -class Spoom::Coverage::D3::Pie::Sigils < ::Spoom::Coverage::D3::Pie - # source://spoom//lib/spoom/coverage/d3/pie.rb#127 - sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } - def initialize(id, title, snapshot); end - - # source://spoom//lib/spoom/coverage/d3/pie.rb#132 - sig { override.returns(::String) } - def tooltip; end -end - -# source://spoom//lib/spoom/coverage/d3/pie.rb#159 -class Spoom::Coverage::D3::Pie::Sigs < ::Spoom::Coverage::D3::Pie - # source://spoom//lib/spoom/coverage/d3/pie.rb#163 - sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } - def initialize(id, title, snapshot); end - - # source://spoom//lib/spoom/coverage/d3/pie.rb#172 - sig { override.returns(::String) } - def tooltip; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/coverage/d3/timeline.rb#9 -class Spoom::Coverage::D3::Timeline < ::Spoom::Coverage::D3::Base - abstract! - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#16 - sig { params(id: ::String, data: T.untyped, keys: T::Array[::String]).void } - def initialize(id, data, keys); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#187 - sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } - def area(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#203 - sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } - def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - - # @abstract - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#126 - sig { abstract.returns(::String) } - def plot; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#217 - sig { params(y: ::String).returns(::String) } - def points(y:); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#101 - sig { override.returns(::String) } - def script; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#129 - sig { returns(::String) } - def x_scale; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#145 - sig { returns(::String) } - def x_ticks; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#158 - sig { params(min: ::String, max: ::String, ticks: ::String).returns(::String) } - def y_scale(min:, max:, ticks:); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#174 - sig { params(ticks: ::String, format: ::String, padding: ::Integer).returns(::String) } - def y_ticks(ticks:, format:, padding:); end - - class << self - # source://spoom//lib/spoom/coverage/d3/timeline.rb#79 - sig { returns(::String) } - def header_script; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#25 - sig { returns(::String) } - def header_style; end - end -end - -# source://spoom//lib/spoom/coverage/d3/timeline.rb#448 -class Spoom::Coverage::D3::Timeline::Calls < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#452 - sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } - def initialize(id, snapshots); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#466 - sig { override.returns(::String) } - def tooltip; end -end - -# source://spoom//lib/spoom/coverage/d3/timeline.rb#505 -class Spoom::Coverage::D3::Timeline::RBIs < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#509 - sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } - def initialize(id, snapshots); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#577 - sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } - def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#617 - sig { override.returns(::String) } - def plot; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#537 - sig { override.returns(::String) } - def script; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#523 - sig { override.returns(::String) } - def tooltip; end -end - -# source://spoom//lib/spoom/coverage/d3/timeline.rb#282 -class Spoom::Coverage::D3::Timeline::Runtimes < ::Spoom::Coverage::D3::Timeline - # source://spoom//lib/spoom/coverage/d3/timeline.rb#286 - sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } - def initialize(id, snapshots); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#311 - sig { override.returns(::String) } - def plot; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#298 - sig { override.returns(::String) } - def tooltip; end -end - -# source://spoom//lib/spoom/coverage/d3/timeline.rb#421 -class Spoom::Coverage::D3::Timeline::Sigils < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#425 - sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } - def initialize(id, snapshots); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#439 - sig { override.returns(::String) } - def tooltip; end -end - -# source://spoom//lib/spoom/coverage/d3/timeline.rb#475 -class Spoom::Coverage::D3::Timeline::Sigs < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom//lib/spoom/coverage/d3/timeline.rb#479 - sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } - def initialize(id, snapshots); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#496 - sig { override.returns(::String) } - def tooltip; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/coverage/d3/timeline.rb#329 -class Spoom::Coverage::D3::Timeline::Stacked < ::Spoom::Coverage::D3::Timeline - abstract! - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#388 - sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } - def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#377 - sig { override.returns(::String) } - def plot; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#336 - sig { override.returns(::String) } - def script; end -end - -# source://spoom//lib/spoom/coverage/d3/timeline.rb#232 -class Spoom::Coverage::D3::Timeline::Versions < ::Spoom::Coverage::D3::Timeline - # source://spoom//lib/spoom/coverage/d3/timeline.rb#236 - sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } - def initialize(id, snapshots); end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#263 - sig { override.returns(::String) } - def plot; end - - # source://spoom//lib/spoom/coverage/d3/timeline.rb#249 - sig { override.returns(::String) } - def tooltip; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/coverage/report.rb#38 -class Spoom::Coverage::Page < ::Spoom::Coverage::Template - abstract! - - # source://spoom//lib/spoom/coverage/report.rb#53 - sig { params(title: ::String, palette: ::Spoom::Coverage::D3::ColorPalette, template: ::String).void } - def initialize(title:, palette:, template: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/report.rb#75 - sig { returns(::String) } - def body_html; end - - # @abstract - # - # source://spoom//lib/spoom/coverage/report.rb#80 - sig { abstract.returns(T::Array[::Spoom::Coverage::Cards::Card]) } - def cards; end - - # source://spoom//lib/spoom/coverage/report.rb#83 - sig { returns(::String) } - def footer_html; end - - # source://spoom//lib/spoom/coverage/report.rb#70 - sig { returns(::String) } - def header_html; end - - # source://spoom//lib/spoom/coverage/report.rb#65 - sig { returns(::String) } - def header_script; end - - # source://spoom//lib/spoom/coverage/report.rb#60 - sig { returns(::String) } - def header_style; end - - # source://spoom//lib/spoom/coverage/report.rb#50 - sig { returns(::Spoom::Coverage::D3::ColorPalette) } - def palette; end - - # source://spoom//lib/spoom/coverage/report.rb#47 - sig { returns(::String) } - def title; end -end - -# source://spoom//lib/spoom/coverage/report.rb#44 -Spoom::Coverage::Page::TEMPLATE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/coverage/report.rb#261 -class Spoom::Coverage::Report < ::Spoom::Coverage::Page - # source://spoom//lib/spoom/coverage/report.rb#276 - sig do - params( - project_name: ::String, - palette: ::Spoom::Coverage::D3::ColorPalette, - snapshots: T::Array[::Spoom::Coverage::Snapshot], - file_tree: ::Spoom::FileTree, - nodes_strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], - nodes_strictness_scores: T::Hash[::Spoom::FileTree::Node, ::Float], - sorbet_intro_commit: T.nilable(::String), - sorbet_intro_date: T.nilable(::Time) - ).void - end - def initialize(project_name:, palette:, snapshots:, file_tree:, nodes_strictnesses:, nodes_strictness_scores:, sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/report.rb#308 - sig { override.returns(T::Array[::Spoom::Coverage::Cards::Card]) } - def cards; end - - # source://spoom//lib/spoom/coverage/report.rb#297 - sig { override.returns(::String) } - def header_html; end -end - -# source://spoom//lib/spoom/coverage/snapshot.rb#6 -class Spoom::Coverage::Snapshot < ::T::Struct - prop :timestamp, ::Integer, default: T.unsafe(nil) - prop :version_static, T.nilable(::String), default: T.unsafe(nil) - prop :version_runtime, T.nilable(::String), default: T.unsafe(nil) - prop :duration, ::Integer, default: T.unsafe(nil) - prop :commit_sha, T.nilable(::String), default: T.unsafe(nil) - prop :commit_timestamp, T.nilable(::Integer), default: T.unsafe(nil) - prop :files, ::Integer, default: T.unsafe(nil) - prop :rbi_files, ::Integer, default: T.unsafe(nil) - prop :modules, ::Integer, default: T.unsafe(nil) - prop :classes, ::Integer, default: T.unsafe(nil) - prop :singleton_classes, ::Integer, default: T.unsafe(nil) - prop :methods_without_sig, ::Integer, default: T.unsafe(nil) - prop :methods_with_sig, ::Integer, default: T.unsafe(nil) - prop :calls_untyped, ::Integer, default: T.unsafe(nil) - prop :calls_typed, ::Integer, default: T.unsafe(nil) - prop :sigils, T::Hash[::String, ::Integer], default: T.unsafe(nil) - prop :methods_with_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) - prop :methods_without_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) - prop :sigils_excluding_rbis, T::Hash[::String, ::Integer], default: T.unsafe(nil) - - # source://spoom//lib/spoom/coverage/snapshot.rb#33 - sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } - def print(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end - - # source://spoom//lib/spoom/coverage/snapshot.rb#39 - sig { params(arg: T.untyped).returns(::String) } - def to_json(*arg); end - - class << self - # source://spoom//lib/spoom/coverage/snapshot.rb#47 - sig { params(json: ::String).returns(::Spoom::Coverage::Snapshot) } - def from_json(json); end - - # source://spoom//lib/spoom/coverage/snapshot.rb#52 - sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } - def from_obj(obj); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# The strictness name as found in the Sorbet metrics file -# -# source://spoom//lib/spoom/coverage/snapshot.rb#30 -Spoom::Coverage::Snapshot::STRICTNESSES = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/coverage/snapshot.rb#95 -class Spoom::Coverage::SnapshotPrinter < ::Spoom::Printer - # source://spoom//lib/spoom/coverage/snapshot.rb#99 - sig { params(snapshot: ::Spoom::Coverage::Snapshot).void } - def print_snapshot(snapshot); end - - private - - # source://spoom//lib/spoom/coverage/snapshot.rb#158 - sig { params(value: T.nilable(::Integer), total: T.nilable(::Integer)).returns(::String) } - def percent(value, total); end - - # source://spoom//lib/spoom/coverage/snapshot.rb#147 - sig { params(hash: T::Hash[::String, ::Integer], total: ::Integer).void } - def print_map(hash, total); end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/coverage/report.rb#10 -class Spoom::Coverage::Template - abstract! - - # Create a new template from an Erb file path - # - # source://spoom//lib/spoom/coverage/report.rb#18 - sig { params(template: ::String).void } - def initialize(template:); end - - # source://spoom//lib/spoom/coverage/report.rb#23 - sig { returns(::String) } - def erb; end - - # source://spoom//lib/spoom/coverage/report.rb#33 - sig { returns(::Binding) } - def get_binding; end - - # source://spoom//lib/spoom/coverage/report.rb#28 - sig { returns(::String) } - def html; end -end - -# source://spoom//lib/spoom/deadcode/visitor.rb#5 -module Spoom::Deadcode - class << self - # source://spoom//lib/spoom/deadcode.rb#81 - sig do - params( - index: ::Spoom::Deadcode::Index, - erb: ::String, - file: ::String, - plugins: T::Array[::Spoom::Deadcode::Plugins::Base] - ).void - end - def index_erb(index, erb, file:, plugins: T.unsafe(nil)); end - - # source://spoom//lib/spoom/deadcode.rb#67 - sig do - params( - index: ::Spoom::Deadcode::Index, - node: ::Prism::Node, - ruby: ::String, - file: ::String, - plugins: T::Array[::Spoom::Deadcode::Plugins::Base] - ).void - end - def index_node(index, node, ruby, file:, plugins: T.unsafe(nil)); end - - # source://spoom//lib/spoom/deadcode.rb#75 - sig do - params( - index: ::Spoom::Deadcode::Index, - ruby: ::String, - file: ::String, - plugins: T::Array[::Spoom::Deadcode::Plugins::Base] - ).void - end - def index_ruby(index, ruby, file:, plugins: T.unsafe(nil)); end - - # source://spoom//lib/spoom/deadcode/plugins.rb#75 - sig { params(context: ::Spoom::Context).returns(T::Array[::Spoom::Deadcode::Plugins::Base]) } - def load_custom_plugins(context); end - - # source://spoom//lib/spoom/deadcode.rb#43 - sig { params(ruby: ::String, file: ::String).returns(::Prism::Node) } - def parse_ruby(ruby, file:); end - - # source://spoom//lib/spoom/deadcode/plugins.rb#61 - sig { params(context: ::Spoom::Context).returns(T::Array[::Spoom::Deadcode::Plugins::Base]) } - def plugins_from_gemfile_lock(context); end - end -end - -# source://spoom//lib/spoom/deadcode/plugins.rb#26 -Spoom::Deadcode::DEFAULT_CUSTOM_PLUGINS_PATH = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/deadcode/plugins.rb#28 -Spoom::Deadcode::DEFAULT_PLUGINS = T.let(T.unsafe(nil), Set) - -# A definition is a class, module, method, constant, etc. being defined in the code -# -# source://spoom//lib/spoom/deadcode/definition.rb#7 -class Spoom::Deadcode::Definition < ::T::Struct - const :kind, ::Spoom::Deadcode::Definition::Kind - const :name, ::String - const :full_name, ::String - const :location, ::Spoom::Deadcode::Location - const :status, ::Spoom::Deadcode::Definition::Status, default: T.unsafe(nil) - - # source://spoom//lib/spoom/deadcode/definition.rb#78 - sig { void } - def alive!; end - - # Status - # - # source://spoom//lib/spoom/deadcode/definition.rb#73 - sig { returns(T::Boolean) } - def alive?; end - - # Kind - # - # source://spoom//lib/spoom/deadcode/definition.rb#41 - sig { returns(T::Boolean) } - def attr_reader?; end - - # source://spoom//lib/spoom/deadcode/definition.rb#46 - sig { returns(T::Boolean) } - def attr_writer?; end - - # source://spoom//lib/spoom/deadcode/definition.rb#51 - sig { returns(T::Boolean) } - def class?; end - - # source://spoom//lib/spoom/deadcode/definition.rb#56 - sig { returns(T::Boolean) } - def constant?; end - - # source://spoom//lib/spoom/deadcode/definition.rb#83 - sig { returns(T::Boolean) } - def dead?; end - - # source://spoom//lib/spoom/deadcode/definition.rb#93 - sig { void } - def ignored!; end - - # source://spoom//lib/spoom/deadcode/definition.rb#88 - sig { returns(T::Boolean) } - def ignored?; end - - # source://spoom//lib/spoom/deadcode/definition.rb#61 - sig { returns(T::Boolean) } - def method?; end - - # source://spoom//lib/spoom/deadcode/definition.rb#66 - sig { returns(T::Boolean) } - def module?; end - - # Utils - # - # source://spoom//lib/spoom/deadcode/definition.rb#100 - sig { params(args: T.untyped).returns(::String) } - def to_json(*args); end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/deadcode/definition.rb#10 -class Spoom::Deadcode::Definition::Kind < ::T::Enum - enums do - AttrReader = new - AttrWriter = new - Class = new - Constant = new - Method = new - Module = new - end -end - -# source://spoom//lib/spoom/deadcode/definition.rb#21 -class Spoom::Deadcode::Definition::Status < ::T::Enum - enums do - ALIVE = new - DEAD = new - IGNORED = new - end -end - -# Custom engine to handle ERB templates as used by Rails -# -# source://spoom//lib/spoom/deadcode/erb.rb#29 -class Spoom::Deadcode::ERB < ::Erubi::Engine - # source://spoom//lib/spoom/deadcode/erb.rb#33 - sig { params(input: T.untyped, properties: T.untyped).void } - def initialize(input, properties = T.unsafe(nil)); end - - private - - # source://spoom//lib/spoom/deadcode/erb.rb#83 - sig { override.params(code: T.untyped).void } - def add_code(code); end - - # source://spoom//lib/spoom/deadcode/erb.rb#66 - sig { override.params(indicator: T.untyped, code: T.untyped).void } - def add_expression(indicator, code); end - - # source://spoom//lib/spoom/deadcode/erb.rb#89 - sig { override.params(_: T.untyped).void } - def add_postamble(_); end - - # source://spoom//lib/spoom/deadcode/erb.rb#48 - sig { override.params(text: T.untyped).void } - def add_text(text); end - - # source://spoom//lib/spoom/deadcode/erb.rb#95 - sig { params(src: T.untyped).void } - def flush_newline_if_pending(src); end -end - -# source://spoom//lib/spoom/deadcode/erb.rb#63 -Spoom::Deadcode::ERB::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp) - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/deadcode.rb#21 -class Spoom::Deadcode::Error < ::Spoom::Error - abstract! -end - -# source://spoom//lib/spoom/deadcode/index.rb#6 -class Spoom::Deadcode::Index - # source://spoom//lib/spoom/deadcode/index.rb#16 - sig { void } - def initialize; end - - # source://spoom//lib/spoom/deadcode/index.rb#51 - sig { returns(T::Array[::Spoom::Deadcode::Definition]) } - def all_definitions; end - - # source://spoom//lib/spoom/deadcode/index.rb#56 - sig { returns(T::Array[::Spoom::Deadcode::Reference]) } - def all_references; end - - # Indexing - # - # source://spoom//lib/spoom/deadcode/index.rb#24 - sig { params(definition: ::Spoom::Deadcode::Definition).void } - def define(definition); end - - # source://spoom//lib/spoom/deadcode/index.rb#10 - sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Definition]]) } - def definitions; end - - # Utils - # - # source://spoom//lib/spoom/deadcode/index.rb#46 - sig { params(name: ::String).returns(T::Array[::Spoom::Deadcode::Definition]) } - def definitions_for_name(name); end - - # Mark all definitions having a reference of the same name as `alive` - # - # To be called once all the files have been indexed and all the definitions and references discovered. - # - # source://spoom//lib/spoom/deadcode/index.rb#37 - sig { void } - def finalize!; end - - # source://spoom//lib/spoom/deadcode/index.rb#29 - sig { params(reference: ::Spoom::Deadcode::Reference).void } - def reference(reference); end - - # source://spoom//lib/spoom/deadcode/index.rb#13 - sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Reference]]) } - def references; end -end - -# source://spoom//lib/spoom/deadcode/indexer.rb#6 -class Spoom::Deadcode::Indexer < ::Spoom::Deadcode::Visitor - # source://spoom//lib/spoom/deadcode/indexer.rb#16 - sig do - params( - path: ::String, - source: ::String, - index: ::Spoom::Deadcode::Index, - plugins: T::Array[::Spoom::Deadcode::Plugins::Base] - ).void - end - def initialize(path, source, index, plugins: T.unsafe(nil)); end - - # Context - # - # source://spoom//lib/spoom/deadcode/indexer.rb#408 - sig { returns(::Prism::Node) } - def current_node; end - - # Definition indexing - # - # source://spoom//lib/spoom/deadcode/indexer.rb#322 - sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void } - def define_attr_reader(name, full_name, node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#334 - sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void } - def define_attr_writer(name, full_name, node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#346 - sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void } - def define_class(name, full_name, node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#358 - sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void } - def define_constant(name, full_name, node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#370 - sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void } - def define_method(name, full_name, node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#382 - sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void } - def define_module(name, full_name, node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#13 - sig { returns(::Spoom::Deadcode::Index) } - def index; end - - # source://spoom//lib/spoom/deadcode/indexer.rb#453 - sig { returns(T.nilable(::String)) } - def last_sig; end - - # source://spoom//lib/spoom/deadcode/indexer.rb#427 - sig { returns(T.nilable(::Prism::BlockNode)) } - def nesting_block; end - - # source://spoom//lib/spoom/deadcode/indexer.rb#432 - sig { returns(T.nilable(::Prism::CallNode)) } - def nesting_call; end - - # source://spoom//lib/spoom/deadcode/indexer.rb#422 - sig { returns(T.nilable(::Prism::ClassNode)) } - def nesting_class; end - - # source://spoom//lib/spoom/deadcode/indexer.rb#437 - sig { returns(T.nilable(::String)) } - def nesting_class_name; end - - # source://spoom//lib/spoom/deadcode/indexer.rb#445 - sig { returns(T.nilable(::String)) } - def nesting_class_superclass_name; end - - # source://spoom//lib/spoom/deadcode/indexer.rb#413 - sig { type_parameters(:N).params(type: T::Class[T.type_parameter(:N)]).returns(T.nilable(T.type_parameter(:N))) } - def nesting_node(type); end - - # Node utils - # - # source://spoom//lib/spoom/deadcode/indexer.rb#464 - sig { params(node: ::Prism::Node).returns(::Spoom::Deadcode::Location) } - def node_location(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#10 - sig { returns(::String) } - def path; end - - # Reference indexing - # - # source://spoom//lib/spoom/deadcode/indexer.rb#396 - sig { params(name: ::String, node: ::Prism::Node).void } - def reference_constant(name, node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#401 - sig { params(name: ::String, node: ::Prism::Node).void } - def reference_method(name, node); end - - # Visit - # - # source://spoom//lib/spoom/deadcode/indexer.rb#35 - sig { override.params(node: T.nilable(::Prism::Node)).void } - def visit(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#45 - sig { override.params(node: ::Prism::AliasMethodNode).void } - def visit_alias_method_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#50 - sig { override.params(node: ::Prism::AndNode).void } - def visit_and_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#56 - sig { override.params(node: ::Prism::BlockArgumentNode).void } - def visit_block_argument_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#67 - sig { override.params(node: ::Prism::CallAndWriteNode).void } - def visit_call_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#91 - sig { override.params(node: ::Prism::CallNode).void } - def visit_call_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#75 - sig { override.params(node: ::Prism::CallOperatorWriteNode).void } - def visit_call_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#83 - sig { override.params(node: ::Prism::CallOrWriteNode).void } - def visit_call_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#104 - sig { override.params(node: ::Prism::ClassNode).void } - def visit_class_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#137 - sig { override.params(node: ::Prism::ConstantAndWriteNode).void } - def visit_constant_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#143 - sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } - def visit_constant_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#149 - sig { override.params(node: ::Prism::ConstantOrWriteNode).void } - def visit_constant_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#155 - sig { override.params(node: ::Prism::ConstantPathWriteNode).void } - def visit_constant_path_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#173 - sig { override.params(node: ::Prism::ConstantReadNode).void } - def visit_constant_read_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#178 - sig { override.params(node: ::Prism::ConstantWriteNode).void } - def visit_constant_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#186 - sig { override.params(node: ::Prism::DefNode).void } - def visit_def_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#194 - sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } - def visit_local_variable_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#202 - sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } - def visit_local_variable_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#210 - sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } - def visit_local_variable_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#218 - sig { override.params(node: ::Prism::LocalVariableWriteNode).void } - def visit_local_variable_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#224 - sig { override.params(node: ::Prism::ModuleNode).void } - def visit_module_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#254 - sig { override.params(node: ::Prism::MultiWriteNode).void } - def visit_multi_write_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#268 - sig { override.params(node: ::Prism::OrNode).void } - def visit_or_node(node); end - - # source://spoom//lib/spoom/deadcode/indexer.rb#274 - sig { params(send: ::Spoom::Deadcode::Send).void } - def visit_send(send); end -end - -# source://spoom//lib/spoom/deadcode.rb#29 -class Spoom::Deadcode::IndexerError < ::Spoom::Deadcode::Error - # source://spoom//lib/spoom/deadcode.rb#33 - sig { params(message: ::String, parent: ::Exception).void } - def initialize(message, parent:); end -end - -# source://spoom//lib/spoom/deadcode/location.rb#6 -class Spoom::Deadcode::Location - include ::Comparable - - # source://spoom//lib/spoom/deadcode/location.rb#54 - sig do - params( - file: ::String, - start_line: ::Integer, - start_column: ::Integer, - end_line: ::Integer, - end_column: ::Integer - ).void - end - def initialize(file, start_line, start_column, end_line, end_column); end - - # source://spoom//lib/spoom/deadcode/location.rb#74 - sig { override.params(other: ::BasicObject).returns(T.nilable(::Integer)) } - def <=>(other); end - - # @return [Integer] - # - # source://spoom//lib/spoom/deadcode/location.rb#43 - def end_column; end - - # @return [Integer] - # - # source://spoom//lib/spoom/deadcode/location.rb#43 - def end_line; end - - # source://spoom//lib/spoom/deadcode/location.rb#40 - sig { returns(::String) } - def file; end - - # source://spoom//lib/spoom/deadcode/location.rb#63 - sig { params(other: ::Spoom::Deadcode::Location).returns(T::Boolean) } - def include?(other); end - - # @return [Integer] - # - # source://spoom//lib/spoom/deadcode/location.rb#43 - def start_column; end - - # source://spoom//lib/spoom/deadcode/location.rb#43 - sig { returns(::Integer) } - def start_line; end - - # source://spoom//lib/spoom/deadcode/location.rb#81 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/deadcode/location.rb#34 - sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Deadcode::Location) } - def from_prism(file, location); end - - # @raise [LocationError] - # - # source://spoom//lib/spoom/deadcode/location.rb#17 - sig { params(location_string: ::String).returns(::Spoom::Deadcode::Location) } - def from_string(location_string); end - end -end - -# source://spoom//lib/spoom/deadcode/location.rb#11 -class Spoom::Deadcode::Location::LocationError < ::Spoom::Error; end - -# source://spoom//lib/spoom/deadcode/plugins.rb#36 -Spoom::Deadcode::PLUGINS_FOR_GEM = T.let(T.unsafe(nil), Hash) - -# source://spoom//lib/spoom/deadcode.rb#27 -class Spoom::Deadcode::ParserError < ::Spoom::Deadcode::Error; end - -# source://spoom//lib/spoom/deadcode/plugins/base.rb#8 -module Spoom::Deadcode::Plugins; end - -# source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#7 -class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#11 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end -end - -# source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#7 -class Spoom::Deadcode::Plugins::ActionMailerPreview < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#13 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end -end - -# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7 -class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#31 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#36 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end -end - -# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#10 -Spoom::Deadcode::Plugins::ActionPack::CALLBACKS = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/deadcode/plugins/active_job.rb#7 -class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base; end - -# source://spoom//lib/spoom/deadcode/plugins/active_model.rb#7 -class Spoom::Deadcode::Plugins::ActiveModel < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#14 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end -end - -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#7 -class Spoom::Deadcode::Plugins::ActiveRecord < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#74 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end -end - -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#64 -Spoom::Deadcode::Plugins::ActiveRecord::ARRAY_METHODS = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#20 -Spoom::Deadcode::Plugins::ActiveRecord::CALLBACKS = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#49 -Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7 -class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#22 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end -end - -# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#19 -Spoom::Deadcode::Plugins::ActiveSupport::SETUP_AND_TEARDOWN_METHODS = T.let(T.unsafe(nil), Array) - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/deadcode/plugins/base.rb#9 -class Spoom::Deadcode::Plugins::Base - abstract! - - # Do not override this method, use `on_define_accessor` instead. - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#150 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_accessor(indexer, definition); end - - # Do not override this method, use `on_define_class` instead. - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#174 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_class(indexer, definition); end - - # Do not override this method, use `on_define_constant` instead. - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#204 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_constant(indexer, definition); end - - # Do not override this method, use `on_define_method` instead. - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#232 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_method(indexer, definition); end - - # Do not override this method, use `on_define_module` instead. - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#258 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def internal_on_define_module(indexer, definition); end - - # Do not override this method, use `on_send` instead. - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#284 - sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def internal_on_send(indexer, send); end - - # Called when an accessor is defined. - # - # Will be called when the indexer processes a `attr_reader`, `attr_writer` or `attr_accessor` node. - # Note that when this method is called, the definition for the node has already been added to the index. - # It is still possible to ignore it from the plugin: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_accessor(indexer, definition) - # definition.ignored! if definition.name == "foo" - # end - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#144 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_accessor(indexer, definition); end - - # Called when a class is defined. - # - # Will be called when the indexer processes a `class` node. - # Note that when this method is called, the definition for the node has already been added to the index. - # It is still possible to ignore it from the plugin: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_class(indexer, definition) - # definition.ignored! if definition.name == "Foo" - # end - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#168 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_class(indexer, definition); end - - # Called when a constant is defined. - # - # Will be called when the indexer processes a `CONST =` node. - # Note that when this method is called, the definition for the node has already been added to the index. - # It is still possible to ignore it from the plugin: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_constant(indexer, definition) - # definition.ignored! if definition.name == "FOO" - # end - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#198 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_constant(indexer, definition); end - - # Called when a method is defined. - # - # Will be called when the indexer processes a `def` or `defs` node. - # Note that when this method is called, the definition for the node has already been added to the index. - # It is still possible to ignore it from the plugin: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_method(indexer, definition) - # super # So the `ignore_method_names` DSL is still applied - # - # definition.ignored! if definition.name == "foo" - # end - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#226 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end - - # Called when a module is defined. - # - # Will be called when the indexer processes a `module` node. - # Note that when this method is called, the definition for the node has already been added to the index. - # It is still possible to ignore it from the plugin: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_define_module(indexer, definition) - # definition.ignored! if definition.name == "Foo" - # end - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#252 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_module(indexer, definition); end - - # Called when a send is being processed - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # def on_send(indexer, send) - # return unless send.name == "dsl_method" - # return if send.args.empty? - # - # method_name = send.args.first.slice.delete_prefix(":") - # indexer.reference_method(method_name, send.node) - # end - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#278 - sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end - - private - - # Plugin utils - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#339 - sig { params(name: ::String).returns(::String) } - def camelize(name); end - - # DSL support - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#293 - sig { params(name: T.nilable(::String)).returns(T::Boolean) } - def ignored_class_name?(name); end - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#307 - sig { params(name: ::String).returns(T::Boolean) } - def ignored_constant_name?(name); end - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#312 - sig { params(name: ::String).returns(T::Boolean) } - def ignored_method_name?(name); end - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#317 - sig { params(name: ::String).returns(T::Boolean) } - def ignored_module_name?(name); end - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#322 - sig { params(name: ::String, names_variable: ::Symbol, patterns_variable: ::Symbol).returns(T::Boolean) } - def ignored_name?(name, names_variable, patterns_variable); end - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#300 - sig { params(superclass_name: T.nilable(::String)).returns(T::Boolean) } - def ignored_subclass?(superclass_name); end - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#327 - sig { params(const: ::Symbol).returns(T::Set[::String]) } - def names(const); end - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#332 - sig { params(const: ::Symbol).returns(T::Array[::Regexp]) } - def patterns(const); end - - class << self - # Mark classes directly subclassing a class matching `names` as ignored. - # - # Names can be either strings or regexps: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # ignore_classes_inheriting_from( - # "Foo", - # "Bar", - # /Baz.*/, - # ) - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#52 - sig { params(names: T.any(::Regexp, ::String)).void } - def ignore_classes_inheriting_from(*names); end - - # Mark classes matching `names` as ignored. - # - # Names can be either strings or regexps: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # ignore_class_names( - # "Foo", - # "Bar", - # /Baz.*/, - # ) - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#34 - sig { params(names: T.any(::Regexp, ::String)).void } - def ignore_classes_named(*names); end - - # Mark constants matching `names` as ignored. - # - # Names can be either strings or regexps: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # ignore_class_names( - # "FOO", - # "BAR", - # /BAZ.*/, - # ) - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#70 - sig { params(names: T.any(::Regexp, ::String)).void } - def ignore_constants_named(*names); end - - # Mark methods matching `names` as ignored. - # - # Names can be either strings or regexps: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # ignore_method_names( - # "foo", - # "bar", - # /baz.*/, - # ) - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#88 - sig { params(names: T.any(::Regexp, ::String)).void } - def ignore_methods_named(*names); end - - # Mark modules matching `names` as ignored. - # - # Names can be either strings or regexps: - # - # ~~~rb - # class MyPlugin < Spoom::Deadcode::Plugins::Base - # ignore_class_names( - # "Foo", - # "Bar", - # /Baz.*/, - # ) - # end - # ~~~ - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#106 - sig { params(names: T.any(::Regexp, ::String)).void } - def ignore_modules_named(*names); end - - private - - # source://spoom//lib/spoom/deadcode/plugins/base.rb#113 - sig do - params( - names: T::Array[T.any(::Regexp, ::String)], - names_variable: ::Symbol, - patterns_variable: ::Symbol - ).void - end - def save_names_and_patterns(names, names_variable, patterns_variable); end - end -end - -# source://spoom//lib/spoom/deadcode/plugins/graphql.rb#7 -class Spoom::Deadcode::Plugins::GraphQL < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#28 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end -end - -# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7 -class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#22 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end -end - -# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7 -class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#11 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_class(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#16 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_module(indexer, definition); end - - private - - # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#23 - sig { params(indexer: ::Spoom::Deadcode::Indexer).returns(T::Boolean) } - def used_as_namespace?(indexer); end -end - -# source://spoom//lib/spoom/deadcode/plugins/rspec.rb#7 -class Spoom::Deadcode::Plugins::RSpec < ::Spoom::Deadcode::Plugins::Base; end - -# source://spoom//lib/spoom/deadcode/plugins/rails.rb#7 -class Spoom::Deadcode::Plugins::Rails < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/rails.rb#13 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_class(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/rails.rb#18 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_module(indexer, definition); end - - private - - # source://spoom//lib/spoom/deadcode/plugins/rails.rb#25 - sig { params(indexer: ::Spoom::Deadcode::Indexer).returns(T::Boolean) } - def file_is_helper?(indexer); end -end - -# source://spoom//lib/spoom/deadcode/plugins/rake.rb#7 -class Spoom::Deadcode::Plugins::Rake < ::Spoom::Deadcode::Plugins::Base; end - -# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#7 -class Spoom::Deadcode::Plugins::Rubocop < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#18 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_constant(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#23 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end - - private - - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#30 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def rubocop_constant?(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#35 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def rubocop_method?(indexer, definition); end -end - -# source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#10 -Spoom::Deadcode::Plugins::Rubocop::RUBOCOP_CONSTANTS = T.let(T.unsafe(nil), Set) - -# source://spoom//lib/spoom/deadcode/plugins/ruby.rb#7 -class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#24 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void } - def on_send(indexer, send); end - - private - - # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#43 - sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void } - def reference_symbol_as_constant(indexer, send, node); end -end - -# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#7 -class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#11 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_constant(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#16 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end - - private - - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#34 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def sorbet_enum_constant?(indexer, definition); end - - # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#23 - sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) } - def sorbet_type_member?(indexer, definition); end -end - -# source://spoom//lib/spoom/deadcode/plugins/thor.rb#7 -class Spoom::Deadcode::Plugins::Thor < ::Spoom::Deadcode::Plugins::Base - # source://spoom//lib/spoom/deadcode/plugins/thor.rb#13 - sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void } - def on_define_method(indexer, definition); end -end - -# A reference is a call to a method or a constant -# -# source://spoom//lib/spoom/deadcode/reference.rb#7 -class Spoom::Deadcode::Reference < ::T::Struct - const :kind, ::Spoom::Deadcode::Reference::Kind - const :name, ::String - const :location, ::Spoom::Deadcode::Location - - # Kind - # - # source://spoom//lib/spoom/deadcode/reference.rb#24 - sig { returns(T::Boolean) } - def constant?; end - - # source://spoom//lib/spoom/deadcode/reference.rb#29 - sig { returns(T::Boolean) } - def method?; end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/deadcode/reference.rb#10 -class Spoom::Deadcode::Reference::Kind < ::T::Enum - enums do - Constant = new - Method = new - end -end - -# source://spoom//lib/spoom/deadcode/remover.rb#6 -class Spoom::Deadcode::Remover - # source://spoom//lib/spoom/deadcode/remover.rb#12 - sig { params(context: ::Spoom::Context).void } - def initialize(context); end - - # source://spoom//lib/spoom/deadcode/remover.rb#17 - sig do - params( - kind: T.nilable(::Spoom::Deadcode::Definition::Kind), - location: ::Spoom::Deadcode::Location - ).returns(::String) - end - def remove_location(kind, location); end -end - -# source://spoom//lib/spoom/deadcode/remover.rb#9 -class Spoom::Deadcode::Remover::Error < ::Spoom::Error; end - -# source://spoom//lib/spoom/deadcode/remover.rb#372 -class Spoom::Deadcode::Remover::NodeContext - # source://spoom//lib/spoom/deadcode/remover.rb#392 - sig do - params( - source: ::String, - comments: T::Hash[::Integer, ::Prism::Comment], - node: ::Prism::Node, - nesting: T::Array[::Prism::Node] - ).void - end - def initialize(source, comments, node, nesting); end - - # source://spoom//lib/spoom/deadcode/remover.rb#506 - sig { params(node: ::Prism::Node).returns(T::Array[::Prism::Comment]) } - def attached_comments(node); end - - # source://spoom//lib/spoom/deadcode/remover.rb#534 - sig { returns(T.nilable(::Prism::CallNode)) } - def attached_sig; end - - # source://spoom//lib/spoom/deadcode/remover.rb#521 - sig { returns(T::Array[::Prism::Node]) } - def attached_sigs; end - - # source://spoom//lib/spoom/deadcode/remover.rb#376 - sig { returns(T::Hash[::Integer, ::Prism::Comment]) } - def comments; end - - # source://spoom//lib/spoom/deadcode/remover.rb#494 - sig { params(start_line: ::Integer, end_line: ::Integer).returns(T::Array[::Prism::Comment]) } - def comments_between_lines(start_line, end_line); end - - # source://spoom//lib/spoom/deadcode/remover.rb#382 - sig { returns(T::Array[::Prism::Node]) } - def nesting; end - - # @return [Array] - # - # source://spoom//lib/spoom/deadcode/remover.rb#382 - def nesting=(_arg0); end - - # source://spoom//lib/spoom/deadcode/remover.rb#444 - sig { returns(T.nilable(::Prism::Node)) } - def next_node; end - - # source://spoom//lib/spoom/deadcode/remover.rb#433 - sig { returns(T::Array[::Prism::Node]) } - def next_nodes; end - - # source://spoom//lib/spoom/deadcode/remover.rb#379 - sig { returns(::Prism::Node) } - def node; end - - # source://spoom//lib/spoom/deadcode/remover.rb#408 - sig { returns(::Spoom::Deadcode::Remover::NodeContext) } - def parent_context; end - - # source://spoom//lib/spoom/deadcode/remover.rb#400 - sig { returns(::Prism::Node) } - def parent_node; end - - # source://spoom//lib/spoom/deadcode/remover.rb#428 - sig { returns(T.nilable(::Prism::Node)) } - def previous_node; end - - # source://spoom//lib/spoom/deadcode/remover.rb#417 - sig { returns(T::Array[::Prism::Node]) } - def previous_nodes; end - - # source://spoom//lib/spoom/deadcode/remover.rb#449 - sig { returns(T.nilable(::Spoom::Deadcode::Remover::NodeContext)) } - def sclass_context; end - - # source://spoom//lib/spoom/deadcode/remover.rb#482 - sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } - def sorbet_extend_sig?(node); end - - # source://spoom//lib/spoom/deadcode/remover.rb#477 - sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } - def sorbet_signature?(node); end -end - -# source://spoom//lib/spoom/deadcode/remover.rb#549 -class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Deadcode::Visitor - # source://spoom//lib/spoom/deadcode/remover.rb#621 - sig { params(location: ::Spoom::Deadcode::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void } - def initialize(location, kind); end - - # source://spoom//lib/spoom/deadcode/remover.rb#615 - sig { returns(T.nilable(::Prism::Node)) } - def node; end - - # source://spoom//lib/spoom/deadcode/remover.rb#618 - sig { returns(T::Array[::Prism::Node]) } - def nodes_nesting; end - - # source://spoom//lib/spoom/deadcode/remover.rb#630 - sig { override.params(node: T.nilable(::Prism::Node)).void } - def visit(node); end - - class << self - # source://spoom//lib/spoom/deadcode/remover.rb#556 - sig do - params( - source: ::String, - location: ::Spoom::Deadcode::Location, - kind: T.nilable(::Spoom::Deadcode::Definition::Kind) - ).returns(::Spoom::Deadcode::Remover::NodeContext) - end - def find(source, location, kind); end - - # source://spoom//lib/spoom/deadcode/remover.rb#590 - sig { params(node: ::Prism::Node, kind: ::Spoom::Deadcode::Definition::Kind).returns(T::Boolean) } - def node_match_kind?(node, kind); end - end -end - -# source://spoom//lib/spoom/deadcode/remover.rb#29 -class Spoom::Deadcode::Remover::NodeRemover - # source://spoom//lib/spoom/deadcode/remover.rb#36 - sig do - params( - source: ::String, - kind: T.nilable(::Spoom::Deadcode::Definition::Kind), - location: ::Spoom::Deadcode::Location - ).void - end - def initialize(source, kind, location); end - - # source://spoom//lib/spoom/deadcode/remover.rb#46 - sig { void } - def apply_edit; end - - # source://spoom//lib/spoom/deadcode/remover.rb#33 - sig { returns(::String) } - def new_source; end - - private - - # source://spoom//lib/spoom/deadcode/remover.rb#153 - sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } - def delete_attr_accessor(context); end - - # source://spoom//lib/spoom/deadcode/remover.rb#331 - sig { params(start_char: ::Integer, end_char: ::Integer).void } - def delete_chars(start_char, end_char); end - - # source://spoom//lib/spoom/deadcode/remover.rb#73 - sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } - def delete_constant_assignment(context); end - - # source://spoom//lib/spoom/deadcode/remover.rb#324 - sig { params(start_line: ::Integer, end_line: ::Integer).void } - def delete_lines(start_line, end_line); end - - # source://spoom//lib/spoom/deadcode/remover.rb#261 - sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } - def delete_node_and_comments_and_sigs(context); end - - # source://spoom//lib/spoom/deadcode/remover.rb#218 - sig do - params( - node: ::Prism::Node, - send_context: ::Spoom::Deadcode::Remover::NodeContext, - was_removed: T::Boolean - ).void - end - def insert_accessor(node, send_context, was_removed:); end - - # source://spoom//lib/spoom/deadcode/remover.rb#336 - sig { params(start_char: ::Integer, end_char: ::Integer, replacement: ::String).void } - def replace_chars(start_char, end_char, replacement); end - - # source://spoom//lib/spoom/deadcode/remover.rb#341 - sig do - params( - node: ::Prism::CallNode, - name: ::String, - kind: T.nilable(::Spoom::Deadcode::Definition::Kind) - ).returns(::String) - end - def transform_sig(node, name:, kind:); end -end - -# An abstraction to simplify handling of Prism::CallNode nodes. -# -# source://spoom//lib/spoom/deadcode/send.rb#7 -class Spoom::Deadcode::Send < ::T::Struct - const :node, ::Prism::CallNode - const :name, ::String - const :recv, T.nilable(::Prism::Node), default: T.unsafe(nil) - const :args, T::Array[::Prism::Node], default: T.unsafe(nil) - const :block, T.nilable(::Prism::Node), default: T.unsafe(nil) - - # source://spoom//lib/spoom/deadcode/send.rb#21 - sig do - type_parameters(:T) - .params( - arg_type: T::Class[T.type_parameter(:T)], - block: T.proc.params(arg: T.type_parameter(:T)).void - ).void - end - def each_arg(arg_type, &block); end - - # source://spoom//lib/spoom/deadcode/send.rb#28 - sig { params(block: T.proc.params(key: ::Prism::Node, value: T.nilable(::Prism::Node)).void).void } - def each_arg_assoc(&block); end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/deadcode/visitor.rb#6 -class Spoom::Deadcode::Visitor < ::Prism::Visitor - # source://spoom//lib/spoom/deadcode/visitor.rb#15 - sig { override.params(node: ::Prism::AliasGlobalVariableNode).void } - def visit_alias_global_variable_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#20 - sig { override.params(node: ::Prism::AliasMethodNode).void } - def visit_alias_method_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#25 - sig { override.params(node: ::Prism::AlternationPatternNode).void } - def visit_alternation_pattern_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#30 - sig { override.params(node: ::Prism::AndNode).void } - def visit_and_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#35 - sig { override.params(node: ::Prism::ArgumentsNode).void } - def visit_arguments_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#40 - sig { override.params(node: ::Prism::ArrayNode).void } - def visit_array_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#45 - sig { override.params(node: ::Prism::ArrayPatternNode).void } - def visit_array_pattern_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#50 - sig { override.params(node: ::Prism::AssocNode).void } - def visit_assoc_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#55 - sig { override.params(node: ::Prism::AssocSplatNode).void } - def visit_assoc_splat_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#60 - sig { override.params(node: ::Prism::BackReferenceReadNode).void } - def visit_back_reference_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#65 - sig { override.params(node: ::Prism::BeginNode).void } - def visit_begin_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#70 - sig { override.params(node: ::Prism::BlockArgumentNode).void } - def visit_block_argument_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#75 - sig { override.params(node: ::Prism::BlockLocalVariableNode).void } - def visit_block_local_variable_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#80 - sig { override.params(node: ::Prism::BlockNode).void } - def visit_block_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#85 - sig { override.params(node: ::Prism::BlockParameterNode).void } - def visit_block_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#90 - sig { override.params(node: ::Prism::BlockParametersNode).void } - def visit_block_parameters_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#95 - sig { override.params(node: ::Prism::BreakNode).void } - def visit_break_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#100 - sig { override.params(node: ::Prism::CallAndWriteNode).void } - def visit_call_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#105 - sig { override.params(node: ::Prism::CallNode).void } - def visit_call_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#110 - sig { override.params(node: ::Prism::CallOperatorWriteNode).void } - def visit_call_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#115 - sig { override.params(node: ::Prism::CallOrWriteNode).void } - def visit_call_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#120 - sig { override.params(node: ::Prism::CallTargetNode).void } - def visit_call_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#125 - sig { override.params(node: ::Prism::CapturePatternNode).void } - def visit_capture_pattern_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#130 - sig { override.params(node: ::Prism::CaseMatchNode).void } - def visit_case_match_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#135 - sig { override.params(node: ::Prism::CaseNode).void } - def visit_case_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#10 - sig { override.params(node: ::Prism::Node).void } - def visit_child_nodes(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#140 - sig { override.params(node: ::Prism::ClassNode).void } - def visit_class_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#145 - sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void } - def visit_class_variable_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#150 - sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void } - def visit_class_variable_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#155 - sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void } - def visit_class_variable_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#160 - sig { override.params(node: ::Prism::ClassVariableReadNode).void } - def visit_class_variable_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#165 - sig { override.params(node: ::Prism::ClassVariableTargetNode).void } - def visit_class_variable_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#170 - sig { override.params(node: ::Prism::ClassVariableWriteNode).void } - def visit_class_variable_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#175 - sig { override.params(node: ::Prism::ConstantAndWriteNode).void } - def visit_constant_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#180 - sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } - def visit_constant_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#185 - sig { override.params(node: ::Prism::ConstantOrWriteNode).void } - def visit_constant_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#190 - sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void } - def visit_constant_path_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#195 - sig { override.params(node: ::Prism::ConstantPathNode).void } - def visit_constant_path_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#200 - sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void } - def visit_constant_path_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#205 - sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void } - def visit_constant_path_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#210 - sig { override.params(node: ::Prism::ConstantPathTargetNode).void } - def visit_constant_path_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#215 - sig { override.params(node: ::Prism::ConstantPathWriteNode).void } - def visit_constant_path_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#220 - sig { override.params(node: ::Prism::ConstantReadNode).void } - def visit_constant_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#225 - sig { override.params(node: ::Prism::ConstantTargetNode).void } - def visit_constant_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#230 - sig { override.params(node: ::Prism::ConstantWriteNode).void } - def visit_constant_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#235 - sig { override.params(node: ::Prism::DefNode).void } - def visit_def_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#240 - sig { override.params(node: ::Prism::DefinedNode).void } - def visit_defined_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#245 - sig { override.params(node: ::Prism::ElseNode).void } - def visit_else_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#250 - sig { override.params(node: ::Prism::EmbeddedStatementsNode).void } - def visit_embedded_statements_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#255 - sig { override.params(node: ::Prism::EmbeddedVariableNode).void } - def visit_embedded_variable_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#260 - sig { override.params(node: ::Prism::EnsureNode).void } - def visit_ensure_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#265 - sig { override.params(node: ::Prism::FalseNode).void } - def visit_false_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#270 - sig { override.params(node: ::Prism::FindPatternNode).void } - def visit_find_pattern_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#275 - sig { override.params(node: ::Prism::FlipFlopNode).void } - def visit_flip_flop_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#280 - sig { override.params(node: ::Prism::FloatNode).void } - def visit_float_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#285 - sig { override.params(node: ::Prism::ForNode).void } - def visit_for_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#290 - sig { override.params(node: ::Prism::ForwardingArgumentsNode).void } - def visit_forwarding_arguments_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#295 - sig { override.params(node: ::Prism::ForwardingParameterNode).void } - def visit_forwarding_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#300 - sig { override.params(node: ::Prism::ForwardingSuperNode).void } - def visit_forwarding_super_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#305 - sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void } - def visit_global_variable_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#310 - sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void } - def visit_global_variable_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#315 - sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void } - def visit_global_variable_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#320 - sig { override.params(node: ::Prism::GlobalVariableReadNode).void } - def visit_global_variable_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#325 - sig { override.params(node: ::Prism::GlobalVariableTargetNode).void } - def visit_global_variable_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#330 - sig { override.params(node: ::Prism::GlobalVariableWriteNode).void } - def visit_global_variable_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#335 - sig { override.params(node: ::Prism::HashNode).void } - def visit_hash_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#340 - sig { override.params(node: ::Prism::HashPatternNode).void } - def visit_hash_pattern_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#345 - sig { override.params(node: ::Prism::IfNode).void } - def visit_if_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#350 - sig { override.params(node: ::Prism::ImaginaryNode).void } - def visit_imaginary_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#355 - sig { override.params(node: ::Prism::ImplicitNode).void } - def visit_implicit_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#360 - sig { override.params(node: ::Prism::ImplicitRestNode).void } - def visit_implicit_rest_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#365 - sig { override.params(node: ::Prism::InNode).void } - def visit_in_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#370 - sig { override.params(node: ::Prism::IndexAndWriteNode).void } - def visit_index_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#375 - sig { override.params(node: ::Prism::IndexOperatorWriteNode).void } - def visit_index_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#380 - sig { override.params(node: ::Prism::IndexOrWriteNode).void } - def visit_index_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#385 - sig { override.params(node: ::Prism::IndexTargetNode).void } - def visit_index_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#390 - sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void } - def visit_instance_variable_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#395 - sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void } - def visit_instance_variable_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#400 - sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void } - def visit_instance_variable_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#405 - sig { override.params(node: ::Prism::InstanceVariableReadNode).void } - def visit_instance_variable_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#410 - sig { override.params(node: ::Prism::InstanceVariableTargetNode).void } - def visit_instance_variable_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#415 - sig { override.params(node: ::Prism::InstanceVariableWriteNode).void } - def visit_instance_variable_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#420 - sig { override.params(node: ::Prism::IntegerNode).void } - def visit_integer_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#425 - sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void } - def visit_interpolated_match_last_line_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#430 - sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void } - def visit_interpolated_regular_expression_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#435 - sig { override.params(node: ::Prism::InterpolatedStringNode).void } - def visit_interpolated_string_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#440 - sig { override.params(node: ::Prism::InterpolatedSymbolNode).void } - def visit_interpolated_symbol_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#445 - sig { override.params(node: ::Prism::InterpolatedXStringNode).void } - def visit_interpolated_x_string_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#450 - sig { override.params(node: ::Prism::KeywordHashNode).void } - def visit_keyword_hash_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#455 - sig { override.params(node: ::Prism::KeywordRestParameterNode).void } - def visit_keyword_rest_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#460 - sig { override.params(node: ::Prism::LambdaNode).void } - def visit_lambda_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#465 - sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } - def visit_local_variable_and_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#470 - sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } - def visit_local_variable_operator_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#475 - sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } - def visit_local_variable_or_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#480 - sig { override.params(node: ::Prism::LocalVariableReadNode).void } - def visit_local_variable_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#485 - sig { override.params(node: ::Prism::LocalVariableTargetNode).void } - def visit_local_variable_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#490 - sig { override.params(node: ::Prism::LocalVariableWriteNode).void } - def visit_local_variable_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#495 - sig { override.params(node: ::Prism::MatchLastLineNode).void } - def visit_match_last_line_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#500 - sig { override.params(node: ::Prism::MatchPredicateNode).void } - def visit_match_predicate_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#505 - sig { override.params(node: ::Prism::MatchRequiredNode).void } - def visit_match_required_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#510 - sig { override.params(node: ::Prism::MatchWriteNode).void } - def visit_match_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#515 - sig { override.params(node: ::Prism::MissingNode).void } - def visit_missing_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#520 - sig { override.params(node: ::Prism::ModuleNode).void } - def visit_module_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#525 - sig { override.params(node: ::Prism::MultiTargetNode).void } - def visit_multi_target_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#530 - sig { override.params(node: ::Prism::MultiWriteNode).void } - def visit_multi_write_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#535 - sig { override.params(node: ::Prism::NextNode).void } - def visit_next_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#540 - sig { override.params(node: ::Prism::NilNode).void } - def visit_nil_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#545 - sig { override.params(node: ::Prism::NoKeywordsParameterNode).void } - def visit_no_keywords_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#550 - sig { override.params(node: ::Prism::NumberedParametersNode).void } - def visit_numbered_parameters_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#555 - sig { override.params(node: ::Prism::NumberedReferenceReadNode).void } - def visit_numbered_reference_read_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#560 - sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void } - def visit_optional_keyword_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#565 - sig { override.params(node: ::Prism::OptionalParameterNode).void } - def visit_optional_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#570 - sig { override.params(node: ::Prism::OrNode).void } - def visit_or_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#575 - sig { override.params(node: ::Prism::ParametersNode).void } - def visit_parameters_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#580 - sig { override.params(node: ::Prism::ParenthesesNode).void } - def visit_parentheses_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#585 - sig { override.params(node: ::Prism::PinnedExpressionNode).void } - def visit_pinned_expression_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#590 - sig { override.params(node: ::Prism::PinnedVariableNode).void } - def visit_pinned_variable_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#595 - sig { override.params(node: ::Prism::PostExecutionNode).void } - def visit_post_execution_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#600 - sig { override.params(node: ::Prism::PreExecutionNode).void } - def visit_pre_execution_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#605 - sig { override.params(node: ::Prism::ProgramNode).void } - def visit_program_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#610 - sig { override.params(node: ::Prism::RangeNode).void } - def visit_range_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#615 - sig { override.params(node: ::Prism::RationalNode).void } - def visit_rational_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#620 - sig { override.params(node: ::Prism::RedoNode).void } - def visit_redo_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#625 - sig { override.params(node: ::Prism::RegularExpressionNode).void } - def visit_regular_expression_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#630 - sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void } - def visit_required_keyword_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#635 - sig { override.params(node: ::Prism::RequiredParameterNode).void } - def visit_required_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#640 - sig { override.params(node: ::Prism::RescueModifierNode).void } - def visit_rescue_modifier_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#645 - sig { override.params(node: ::Prism::RescueNode).void } - def visit_rescue_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#650 - sig { override.params(node: ::Prism::RestParameterNode).void } - def visit_rest_parameter_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#655 - sig { override.params(node: ::Prism::RetryNode).void } - def visit_retry_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#660 - sig { override.params(node: ::Prism::ReturnNode).void } - def visit_return_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#665 - sig { override.params(node: ::Prism::SelfNode).void } - def visit_self_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#670 - sig { override.params(node: ::Prism::SingletonClassNode).void } - def visit_singleton_class_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#675 - sig { override.params(node: ::Prism::SourceEncodingNode).void } - def visit_source_encoding_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#680 - sig { override.params(node: ::Prism::SourceFileNode).void } - def visit_source_file_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#685 - sig { override.params(node: ::Prism::SourceLineNode).void } - def visit_source_line_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#690 - sig { override.params(node: ::Prism::SplatNode).void } - def visit_splat_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#695 - sig { override.params(node: ::Prism::StatementsNode).void } - def visit_statements_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#700 - sig { override.params(node: ::Prism::StringNode).void } - def visit_string_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#705 - sig { override.params(node: ::Prism::SuperNode).void } - def visit_super_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#710 - sig { override.params(node: ::Prism::SymbolNode).void } - def visit_symbol_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#715 - sig { override.params(node: ::Prism::TrueNode).void } - def visit_true_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#720 - sig { override.params(node: ::Prism::UndefNode).void } - def visit_undef_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#725 - sig { override.params(node: ::Prism::UnlessNode).void } - def visit_unless_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#730 - sig { override.params(node: ::Prism::UntilNode).void } - def visit_until_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#735 - sig { override.params(node: ::Prism::WhenNode).void } - def visit_when_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#740 - sig { override.params(node: ::Prism::WhileNode).void } - def visit_while_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#745 - sig { override.params(node: ::Prism::XStringNode).void } - def visit_x_string_node(node); end - - # source://spoom//lib/spoom/deadcode/visitor.rb#750 - sig { override.params(node: ::Prism::YieldNode).void } - def visit_yield_node(node); end -end - -# source://spoom//lib/spoom.rb#12 -class Spoom::Error < ::StandardError; end - -# source://spoom//lib/spoom/context/exec.rb#5 -class Spoom::ExecResult < ::T::Struct - const :out, ::String - const :err, T.nilable(::String) - const :status, T::Boolean - const :exit_code, ::Integer - - # source://spoom//lib/spoom/context/exec.rb#14 - sig { returns(::String) } - def to_s; end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/file_collector.rb#5 -class Spoom::FileCollector - # Initialize a new file collector - # - # If `allow_extensions` is empty, all files are collected. - # If `allow_extensions` is an array of extensions, only files with one of these extensions are collected. - # - # If `allow_mime_types` is empty, all files are collected. - # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in - # the list. - # - # source://spoom//lib/spoom/file_collector.rb#26 - sig do - params( - allow_extensions: T::Array[::String], - allow_mime_types: T::Array[::String], - exclude_patterns: T::Array[::String] - ).void - end - def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end - - # source://spoom//lib/spoom/file_collector.rb#9 - sig { returns(T::Array[::String]) } - def files; end - - # source://spoom//lib/spoom/file_collector.rb#39 - sig { params(path: ::String).void } - def visit_path(path); end - - # source://spoom//lib/spoom/file_collector.rb#34 - sig { params(paths: T::Array[::String]).void } - def visit_paths(paths); end - - private - - # source://spoom//lib/spoom/file_collector.rb#56 - sig { params(path: ::String).returns(::String) } - def clean_path(path); end - - # source://spoom//lib/spoom/file_collector.rb#73 - sig { params(path: ::String).returns(T::Boolean) } - def excluded_file?(path); end - - # source://spoom//lib/spoom/file_collector.rb#88 - sig { params(path: ::String).returns(T::Boolean) } - def excluded_path?(path); end - - # source://spoom//lib/spoom/file_collector.rb#97 - sig { params(path: ::String).returns(T.nilable(::String)) } - def mime_type_for(path); end - - # source://spoom//lib/spoom/file_collector.rb#68 - sig { params(path: ::String).void } - def visit_directory(path); end - - # source://spoom//lib/spoom/file_collector.rb#61 - sig { params(path: ::String).void } - def visit_file(path); end -end - -# Build a file hierarchy from a set of file paths. -# -# source://spoom//lib/spoom/file_tree.rb#6 -class Spoom::FileTree - # source://spoom//lib/spoom/file_tree.rb#10 - sig { params(paths: T::Enumerable[::String]).void } - def initialize(paths = T.unsafe(nil)); end - - # Add a `path` to the tree - # - # This will create all nodes until the root of `path`. - # - # source://spoom//lib/spoom/file_tree.rb#25 - sig { params(path: ::String).returns(::Spoom::FileTree::Node) } - def add_path(path); end - - # Add all `paths` to the tree - # - # source://spoom//lib/spoom/file_tree.rb#17 - sig { params(paths: T::Enumerable[::String]).void } - def add_paths(paths); end - - # All the nodes in this tree - # - # source://spoom//lib/spoom/file_tree.rb#45 - sig { returns(T::Array[::Spoom::FileTree::Node]) } - def nodes; end - - # Return a map of typing scores for each node in the tree - # - # source://spoom//lib/spoom/file_tree.rb#59 - sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } - def nodes_strictness_scores(context); end - - # All the paths in this tree - # - # source://spoom//lib/spoom/file_tree.rb#53 - sig { returns(T::Array[::String]) } - def paths; end - - # Return a map of typing scores for each path in the tree - # - # source://spoom//lib/spoom/file_tree.rb#67 - sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) } - def paths_strictness_scores(context); end - - # source://spoom//lib/spoom/file_tree.rb#72 - sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void } - def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end - - # All root nodes - # - # source://spoom//lib/spoom/file_tree.rb#39 - sig { returns(T::Array[::Spoom::FileTree::Node]) } - def roots; end -end - -# A visitor that collects all the nodes in a tree -# -# source://spoom//lib/spoom/file_tree.rb#124 -class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#131 - sig { void } - def initialize; end - - # source://spoom//lib/spoom/file_tree.rb#128 - sig { returns(T::Array[::Spoom::FileTree::Node]) } - def nodes; end - - # source://spoom//lib/spoom/file_tree.rb#137 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end -end - -# A visitor that collects the typing score of each node in a tree -# -# source://spoom//lib/spoom/file_tree.rb#167 -class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses - # source://spoom//lib/spoom/file_tree.rb#174 - sig { params(context: ::Spoom::Context).void } - def initialize(context); end - - # source://spoom//lib/spoom/file_tree.rb#171 - sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } - def scores; end - - # source://spoom//lib/spoom/file_tree.rb#181 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end - - private - - # source://spoom//lib/spoom/file_tree.rb#190 - sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } - def node_score(node); end - - # source://spoom//lib/spoom/file_tree.rb#199 - sig { params(strictness: T.nilable(::String)).returns(::Float) } - def strictness_score(strictness); end -end - -# A visitor that collects the strictness of each node in a tree -# -# source://spoom//lib/spoom/file_tree.rb#144 -class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#151 - sig { params(context: ::Spoom::Context).void } - def initialize(context); end - - # source://spoom//lib/spoom/file_tree.rb#148 - sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } - def strictnesses; end - - # source://spoom//lib/spoom/file_tree.rb#158 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end -end - -# A node representing either a file or a directory inside a FileTree -# -# source://spoom//lib/spoom/file_tree.rb#78 -class Spoom::FileTree::Node < ::T::Struct - const :parent, T.nilable(::Spoom::FileTree::Node) - const :name, ::String - const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) - - # Full path to this node from root - # - # source://spoom//lib/spoom/file_tree.rb#92 - sig { returns(::String) } - def path; end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# An internal class used to print a FileTree -# -# See `FileTree#print` -# -# source://spoom//lib/spoom/file_tree.rb#212 -class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor - # source://spoom//lib/spoom/file_tree.rb#222 - sig do - params( - strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], - out: T.any(::IO, ::StringIO), - colors: T::Boolean - ).void - end - def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end - - # source://spoom//lib/spoom/file_tree.rb#230 - sig { override.params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end - - private - - # source://spoom//lib/spoom/file_tree.rb#255 - sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } - def strictness_color(strictness); end -end - -# An abstract visitor for FileTree -# -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/file_tree.rb#101 -class Spoom::FileTree::Visitor - abstract! - - # source://spoom//lib/spoom/file_tree.rb#113 - sig { params(node: ::Spoom::FileTree::Node).void } - def visit_node(node); end - - # source://spoom//lib/spoom/file_tree.rb#118 - sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } - def visit_nodes(nodes); end - - # source://spoom//lib/spoom/file_tree.rb#108 - sig { params(tree: ::Spoom::FileTree).void } - def visit_tree(tree); end -end - -# source://spoom//lib/spoom/context/git.rb#5 -module Spoom::Git; end - -# source://spoom//lib/spoom/context/git.rb#6 -class Spoom::Git::Commit < ::T::Struct - const :sha, ::String - const :time, ::Time - - # source://spoom//lib/spoom/context/git.rb#27 - sig { returns(::Integer) } - def timestamp; end - - class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - - # Parse a line formatted as `%h %at` into a `Commit` - # - # source://spoom//lib/spoom/context/git.rb#14 - sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } - def parse_line(string); end - end -end - -# source://spoom//lib/spoom/sorbet/lsp/base.rb#5 -module Spoom::LSP; end - -# source://spoom//lib/spoom/sorbet/lsp.rb#13 -class Spoom::LSP::Client - # source://spoom//lib/spoom/sorbet/lsp.rb#17 - sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } - def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#229 - sig { void } - def close; end - - # source://spoom//lib/spoom/sorbet/lsp.rb#131 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } - def definitions(uri, line, column); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#212 - sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } - def document_symbols(uri); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#89 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } - def hover(uri, line, column); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#27 - sig { returns(::Integer) } - def next_id; end - - # LSP requests - # - # @raise [Error::AlreadyOpen] - # - # source://spoom//lib/spoom/sorbet/lsp.rb#72 - sig { params(workspace_path: ::String).void } - def open(workspace_path); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#54 - sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } - def read; end - - # @raise [Error::BadHeaders] - # - # source://spoom//lib/spoom/sorbet/lsp.rb#43 - sig { returns(T.nilable(::String)) } - def read_raw; end - - # source://spoom//lib/spoom/sorbet/lsp.rb#173 - sig do - params( - uri: ::String, - line: ::Integer, - column: ::Integer, - include_decl: T::Boolean - ).returns(T::Array[::Spoom::LSP::Location]) - end - def references(uri, line, column, include_decl = T.unsafe(nil)); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#37 - sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } - def send(message); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#32 - sig { params(json_string: ::String).void } - def send_raw(json_string); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#110 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } - def signatures(uri, line, column); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#197 - sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } - def symbols(query); end - - # source://spoom//lib/spoom/sorbet/lsp.rb#152 - sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } - def type_definitions(uri, line, column); end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 -class Spoom::LSP::Diagnostic < ::T::Struct - include ::Spoom::LSP::PrintableSymbol - - const :range, ::Spoom::LSP::Range - const :code, ::Integer - const :message, ::String - const :information, ::Object - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#202 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#207 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#191 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } - def from_json(json); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 -class Spoom::LSP::DocumentSymbol < ::T::Struct - include ::Spoom::LSP::PrintableSymbol - - const :name, ::String - const :detail, T.nilable(::String) - const :kind, ::Integer - const :location, T.nilable(::Spoom::LSP::Location) - const :range, T.nilable(::Spoom::LSP::Range) - const :children, T::Array[::Spoom::LSP::DocumentSymbol] - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#240 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#272 - sig { returns(::String) } - def kind_string; end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#267 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#227 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } - def from_json(json); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#276 -Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) - -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 -class Spoom::LSP::Error < ::StandardError; end - -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#7 -class Spoom::LSP::Error::AlreadyOpen < ::Spoom::LSP::Error; end - -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#8 -class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end - -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 -class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#32 - sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } - def initialize(uri, diagnostics); end - - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#17 - sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } - def diagnostics; end - - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#14 - sig { returns(::String) } - def uri; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#23 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } - def from_json(json); end - end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19 -class Spoom::LSP::Hover < ::T::Struct - include ::Spoom::LSP::PrintableSymbol - - const :contents, ::String - const :range, T.nilable(T::Range[T.untyped]) - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#39 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#30 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } - def from_json(json); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#112 -class Spoom::LSP::Location < ::T::Struct - include ::Spoom::LSP::PrintableSymbol - - const :uri, ::String - const :range, ::Spoom::LSP::Range - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#138 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#123 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } - def from_json(json); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# A general message as defined by JSON-RPC. -# -# The language server protocol always uses `"2.0"` as the `jsonrpc` version. -# -# source://spoom//lib/spoom/sorbet/lsp/base.rb#12 -class Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#16 - sig { void } - def initialize; end - - # source://spoom//lib/spoom/sorbet/lsp/base.rb#21 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def as_json; end - - # source://spoom//lib/spoom/sorbet/lsp/base.rb#29 - sig { params(args: T.untyped).returns(::String) } - def to_json(*args); end -end - -# A notification message. -# -# A processed notification message must not send a response back. They work like events. -# -# source://spoom//lib/spoom/sorbet/lsp/base.rb#58 -class Spoom::LSP::Notification < ::Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#68 - sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } - def initialize(method, params); end - - # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 - sig { returns(::String) } - def method; end - - # source://spoom//lib/spoom/sorbet/lsp/base.rb#65 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def params; end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#50 -class Spoom::LSP::Position < ::T::Struct - include ::Spoom::LSP::PrintableSymbol - - const :line, ::Integer - const :char, ::Integer - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#70 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#75 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#61 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } - def from_json(json); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# @abstract Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9 -module Spoom::LSP::PrintableSymbol - interface! - - # @abstract - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 - sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#80 -class Spoom::LSP::Range < ::T::Struct - include ::Spoom::LSP::PrintableSymbol - - const :start, ::Spoom::LSP::Position - const :end, ::Spoom::LSP::Position - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#100 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#107 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } - def from_json(json); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# A request message to describe a request between the client and the server. -# -# Every processed request must send a response back to the sender of the request. -# -# source://spoom//lib/spoom/sorbet/lsp/base.rb#37 -class Spoom::LSP::Request < ::Spoom::LSP::Message - # source://spoom//lib/spoom/sorbet/lsp/base.rb#47 - sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } - def initialize(id, method, params); end - - # source://spoom//lib/spoom/sorbet/lsp/base.rb#41 - sig { returns(::Integer) } - def id; end - - # source://spoom//lib/spoom/sorbet/lsp/base.rb#44 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def params; end -end - -# source://spoom//lib/spoom/sorbet/lsp/errors.rb#40 -class Spoom::LSP::ResponseError < ::Spoom::LSP::Error - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#63 - sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } - def initialize(code, message, data); end - - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#44 - sig { returns(::Integer) } - def code; end - - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#47 - sig { returns(T::Hash[T.untyped, T.untyped]) } - def data; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/errors.rb#53 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } - def from_json(json); end - end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#143 -class Spoom::LSP::SignatureHelp < ::T::Struct - include ::Spoom::LSP::PrintableSymbol - - const :label, T.nilable(::String) - const :doc, ::Object - const :params, T::Array[T.untyped] - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 - sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } - def accept_printer(printer); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#173 - sig { returns(::String) } - def to_s; end - - class << self - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 - sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } - def from_json(json); end - - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#309 -class Spoom::LSP::SymbolPrinter < ::Spoom::Printer - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#326 - sig do - params( - out: T.any(::IO, ::StringIO), - colors: T::Boolean, - indent_level: ::Integer, - prefix: T.nilable(::String) - ).void - end - def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#348 - sig { params(uri: ::String).returns(::String) } - def clean_uri(uri); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 - sig { returns(T.nilable(::String)) } - def prefix; end - - # @return [String, nil] - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#316 - def prefix=(_arg0); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#356 - sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } - def print_list(objects); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#336 - sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } - def print_object(object); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#343 - sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } - def print_objects(objects); end - - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 - sig { returns(T::Set[::Integer]) } - def seen; end -end - -# source://spoom//lib/spoom/printer.rb#7 -class Spoom::Printer - include ::Spoom::Colorize - - # source://spoom//lib/spoom/printer.rb#17 - sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } - def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end - - # Colorize `string` with color if `@colors` - # - # source://spoom//lib/spoom/printer.rb#78 - sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } - def colorize(string, *color); end - - # Decrease indent level - # - # source://spoom//lib/spoom/printer.rb#31 - sig { void } - def dedent; end - - # Increase indent level - # - # source://spoom//lib/spoom/printer.rb#25 - sig { void } - def indent; end - - # source://spoom//lib/spoom/printer.rb#14 - sig { returns(T.any(::IO, ::StringIO)) } - def out; end - - # @return [IO, StringIO] - # - # source://spoom//lib/spoom/printer.rb#14 - def out=(_arg0); end - - # Print `string` into `out` - # - # source://spoom//lib/spoom/printer.rb#37 - sig { params(string: T.nilable(::String)).void } - def print(string); end - - # Print `string` colored with `color` into `out` - # - # Does not use colors unless `@colors`. - # - # source://spoom//lib/spoom/printer.rb#47 - sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } - def print_colored(string, *color); end - - # Print `string` with indent and newline - # - # source://spoom//lib/spoom/printer.rb#62 - sig { params(string: T.nilable(::String)).void } - def printl(string); end - - # Print a new line into `out` - # - # source://spoom//lib/spoom/printer.rb#56 - sig { void } - def printn; end - - # Print an indent space into `out` - # - # source://spoom//lib/spoom/printer.rb#72 - sig { void } - def printt; end -end - -# source://spoom//lib/spoom.rb#10 -Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/config.rb#5 -module Spoom::Sorbet; end - -# source://spoom//lib/spoom/sorbet.rb#39 -Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet.rb#36 -Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) - -# Parse Sorbet config files -# -# Parses a Sorbet config file: -# -# ```ruby -# config = Spoom::Sorbet::Config.parse_file("sorbet/config") -# puts config.paths # "." -# ``` -# -# Parses a Sorbet config string: -# -# ```ruby -# config = Spoom::Sorbet::Config.parse_string(<<~CONFIG) -# a -# --file=b -# --ignore=c -# CONFIG -# puts config.paths # "a", "b" -# puts config.ignore # "c" -# ``` -# -# source://spoom//lib/spoom/sorbet/config.rb#26 -class Spoom::Sorbet::Config - # source://spoom//lib/spoom/sorbet/config.rb#38 - sig { void } - def initialize; end - - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def allowed_extensions; end - - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def allowed_extensions=(_arg0); end - - # source://spoom//lib/spoom/sorbet/config.rb#46 - sig { returns(::Spoom::Sorbet::Config) } - def copy; end - - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def ignore; end - - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def ignore=(_arg0); end - - # source://spoom//lib/spoom/sorbet/config.rb#35 - sig { returns(T::Boolean) } - def no_stdlib; end - - # @return [Boolean] - # - # source://spoom//lib/spoom/sorbet/config.rb#35 - def no_stdlib=(_arg0); end - - # Returns self as a string of options that can be passed to Sorbet - # - # Example: - # ~~~rb - # config = Sorbet::Config.new - # config.paths << "/foo" - # config.paths << "/bar" - # config.ignore << "/baz" - # config.allowed_extensions << ".rb" - # - # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" - # ~~~ - # - # source://spoom//lib/spoom/sorbet/config.rb#68 - sig { returns(::String) } - def options_string; end - - # source://spoom//lib/spoom/sorbet/config.rb#32 - sig { returns(T::Array[::String]) } - def paths; end - - # @return [Array] - # - # source://spoom//lib/spoom/sorbet/config.rb#32 - def paths=(_arg0); end - - class << self - # source://spoom//lib/spoom/sorbet/config.rb#81 - sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } - def parse_file(sorbet_config_path); end - - # source://spoom//lib/spoom/sorbet/config.rb#86 - sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } - def parse_string(sorbet_config); end - - private - - # source://spoom//lib/spoom/sorbet/config.rb#150 - sig { params(line: ::String).returns(::String) } - def parse_option(line); end - end -end - -# source://spoom//lib/spoom/sorbet/config.rb#29 -Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/sorbet.rb#14 -class Spoom::Sorbet::Error < ::StandardError - # source://spoom//lib/spoom/sorbet.rb#29 - sig { params(message: ::String, result: ::Spoom::ExecResult).void } - def initialize(message, result); end - - # source://spoom//lib/spoom/sorbet.rb#21 - sig { returns(::Spoom::ExecResult) } - def result; end -end - -# source://spoom//lib/spoom/sorbet.rb#17 -class Spoom::Sorbet::Error::Killed < ::Spoom::Sorbet::Error; end - -# source://spoom//lib/spoom/sorbet.rb#18 -class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end - -# source://spoom//lib/spoom/sorbet/errors.rb#6 -module Spoom::Sorbet::Errors - class << self - # source://spoom//lib/spoom/sorbet/errors.rb#13 - sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } - def sort_errors_by_code(errors); end - end -end - -# source://spoom//lib/spoom/sorbet/errors.rb#7 -Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/errors.rb#125 -class Spoom::Sorbet::Errors::Error - include ::Comparable - - # source://spoom//lib/spoom/sorbet/errors.rb#151 - sig do - params( - file: T.nilable(::String), - line: T.nilable(::Integer), - message: T.nilable(::String), - code: T.nilable(::Integer), - more: T::Array[::String] - ).void - end - def initialize(file, line, message, code, more = T.unsafe(nil)); end - - # By default errors are sorted by location - # - # source://spoom//lib/spoom/sorbet/errors.rb#162 - sig { params(other: T.untyped).returns(::Integer) } - def <=>(other); end - - # @return [Integer, nil] - # - # source://spoom//lib/spoom/sorbet/errors.rb#133 - def code; end - - # source://spoom//lib/spoom/sorbet/errors.rb#130 - sig { returns(T.nilable(::String)) } - def file; end - - # Other files associated with the error - # - # source://spoom//lib/spoom/sorbet/errors.rb#140 - sig { returns(T::Set[::String]) } - def files_from_error_sections; end - - # source://spoom//lib/spoom/sorbet/errors.rb#133 - sig { returns(T.nilable(::Integer)) } - def line; end - - # @return [String, nil] - # - # source://spoom//lib/spoom/sorbet/errors.rb#130 - def message; end - - # source://spoom//lib/spoom/sorbet/errors.rb#136 - sig { returns(T::Array[::String]) } - def more; end - - # source://spoom//lib/spoom/sorbet/errors.rb#169 - sig { returns(::String) } - def to_s; end -end - -# Parse errors from Sorbet output -# -# source://spoom//lib/spoom/sorbet/errors.rb#18 -class Spoom::Sorbet::Errors::Parser - # source://spoom//lib/spoom/sorbet/errors.rb#43 - sig { params(error_url_base: ::String).void } - def initialize(error_url_base: T.unsafe(nil)); end - - # source://spoom//lib/spoom/sorbet/errors.rb#50 - sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } - def parse(output); end - - private - - # source://spoom//lib/spoom/sorbet/errors.rb#114 - sig { params(line: ::String).void } - def append_error(line); end - - # source://spoom//lib/spoom/sorbet/errors.rb#106 - sig { void } - def close_error; end - - # source://spoom//lib/spoom/sorbet/errors.rb#73 - sig { params(error_url_base: ::String).returns(::Regexp) } - def error_line_match_regexp(error_url_base); end - - # source://spoom//lib/spoom/sorbet/errors.rb#90 - sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } - def match_error_line(line); end - - # source://spoom//lib/spoom/sorbet/errors.rb#99 - sig { params(error: ::Spoom::Sorbet::Errors::Error).void } - def open_error(error); end - - class << self - # source://spoom//lib/spoom/sorbet/errors.rb#36 - sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } - def parse_string(output, error_url_base: T.unsafe(nil)); end - end -end - -# source://spoom//lib/spoom/sorbet/errors.rb#21 -Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/sorbet.rb#37 -Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet.rb#38 -Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet.rb#41 -Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer) - -# source://spoom//lib/spoom/sorbet/metrics.rb#8 -module Spoom::Sorbet::MetricsParser - class << self - # source://spoom//lib/spoom/sorbet/metrics.rb#15 - sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } - def parse_file(path, prefix = T.unsafe(nil)); end - - # source://spoom//lib/spoom/sorbet/metrics.rb#25 - sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } - def parse_hash(obj, prefix = T.unsafe(nil)); end - - # source://spoom//lib/spoom/sorbet/metrics.rb#20 - sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } - def parse_string(string, prefix = T.unsafe(nil)); end - end -end - -# source://spoom//lib/spoom/sorbet/metrics.rb#9 -Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet.rb#42 -Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) - -# source://spoom//lib/spoom/sorbet/sigils.rb#9 -module Spoom::Sorbet::Sigils - class << self - # changes the sigil in the file at the passed path to the specified new strictness - # - # source://spoom//lib/spoom/sorbet/sigils.rb#72 - sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } - def change_sigil_in_file(path, new_strictness); end - - # changes the sigil to have a new strictness in a list of files - # - # source://spoom//lib/spoom/sorbet/sigils.rb#83 - sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } - def change_sigil_in_files(path_list, new_strictness); end - - # returns a string containing the strictness of a sigil in a file at the passed path - # * returns nil if no sigil - # - # source://spoom//lib/spoom/sorbet/sigils.rb#63 - sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } - def file_strictness(path); end - - # returns the full sigil comment string for the passed strictness - # - # source://spoom//lib/spoom/sorbet/sigils.rb#38 - sig { params(strictness: ::String).returns(::String) } - def sigil_string(strictness); end - - # returns the strictness of a sigil in the passed file content string (nil if no sigil) - # - # source://spoom//lib/spoom/sorbet/sigils.rb#50 - sig { params(content: ::String).returns(T.nilable(::String)) } - def strictness_in_content(content); end - - # returns a string which is the passed content but with the sigil updated to a new strictness - # - # source://spoom//lib/spoom/sorbet/sigils.rb#56 - sig { params(content: ::String, new_strictness: ::String).returns(::String) } - def update_sigil(content, new_strictness); end - - # returns true if the passed string is a valid strictness (else false) - # - # source://spoom//lib/spoom/sorbet/sigils.rb#44 - sig { params(strictness: ::String).returns(T::Boolean) } - def valid_strictness?(strictness); end - end -end - -# source://spoom//lib/spoom/sorbet/sigils.rb#31 -Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) - -# source://spoom//lib/spoom/sorbet/sigils.rb#13 -Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/sigils.rb#12 -Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/sigils.rb#17 -Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/sigils.rb#15 -Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/sigils.rb#16 -Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/sigils.rb#14 -Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) - -# source://spoom//lib/spoom/sorbet/sigils.rb#19 -Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/timeline.rb#5 -class Spoom::Timeline - # source://spoom//lib/spoom/timeline.rb#9 - sig { params(context: ::Spoom::Context, from: ::Time, to: ::Time).void } - def initialize(context, from, to); end - - # Return one commit for each date in `dates` - # - # source://spoom//lib/spoom/timeline.rb#36 - sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } - def commits_for_dates(dates); end - - # Return all months between `from` and `to` - # - # source://spoom//lib/spoom/timeline.rb#23 - sig { returns(T::Array[::Time]) } - def months; end - - # Return one commit for each month between `from` and `to` - # - # source://spoom//lib/spoom/timeline.rb#17 - sig { returns(T::Array[::Spoom::Git::Commit]) } - def ticks; end -end - -# source://spoom//lib/spoom/version.rb#5 -Spoom::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/standard@1.39.0.rbi b/sorbet/rbi/gems/standard@1.39.1.rbi similarity index 98% rename from sorbet/rbi/gems/standard@1.39.0.rbi rename to sorbet/rbi/gems/standard@1.39.1.rbi index d15bf68..95055af 100644 --- a/sorbet/rbi/gems/standard@1.39.0.rbi +++ b/sorbet/rbi/gems/standard@1.39.1.rbi @@ -557,24 +557,24 @@ class Standard::Lsp::Routes # source://standard//lib/standard/lsp/routes.rb#38 def handle_initialized(request); end - # source://standard//lib/standard/lsp/routes.rb#122 + # source://standard//lib/standard/lsp/routes.rb#129 def handle_method_missing(request); end # source://standard//lib/standard/lsp/routes.rb#42 def handle_shutdown(request); end - # source://standard//lib/standard/lsp/routes.rb#114 + # source://standard//lib/standard/lsp/routes.rb#121 def handle_unsupported_method(request, method = T.unsafe(nil)); end private - # source://standard//lib/standard/lsp/routes.rb#155 + # source://standard//lib/standard/lsp/routes.rb#162 def diagnostic(file_uri, text); end - # source://standard//lib/standard/lsp/routes.rb#134 + # source://standard//lib/standard/lsp/routes.rb#141 def format_file(file_uri); end - # source://standard//lib/standard/lsp/routes.rb#130 + # source://standard//lib/standard/lsp/routes.rb#137 def uri_to_path(uri); end class << self @@ -583,6 +583,9 @@ class Standard::Lsp::Routes end end +# source://standard//lib/standard/lsp/routes.rb#75 +Standard::Lsp::Routes::CONFIGURATION_FILE_PATTERNS = T.let(T.unsafe(nil), Array) + # source://standard//lib/standard/lsp/server.rb#9 Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity @@ -618,7 +621,7 @@ end class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner # @return [StdinRubocopRunner] a new instance of StdinRubocopRunner # - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#19 + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#21 def initialize(config); end # Returns the value of attribute config_for_working_directory. @@ -626,7 +629,7 @@ class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10 def config_for_working_directory; end - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#50 + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#52 def formatted_source; end # Returns the value of attribute offenses. @@ -634,12 +637,12 @@ class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8 def offenses; end - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#33 + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#35 def run(path, contents); end private - # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#56 + # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#58 def file_finished(_file, offenses); end end diff --git a/sorbet/rbi/gems/tapioca@0.14.4.rbi b/sorbet/rbi/gems/tapioca@0.14.4.rbi deleted file mode 100644 index 43cf2bc..0000000 --- a/sorbet/rbi/gems/tapioca@0.14.4.rbi +++ /dev/null @@ -1,3547 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `tapioca` gem. -# Please instead update this file by running `bin/tapioca gem tapioca`. - - -class Bundler::Dependency < ::Gem::Dependency - include ::Tapioca::BundlerExt::AutoRequireHook -end - -# source://tapioca//lib/tapioca/helpers/git_attributes.rb#4 -class GitAttributes - class << self - # source://tapioca//lib/tapioca/helpers/git_attributes.rb#9 - sig { params(path: ::Pathname).void } - def create_generated_attribute_file(path); end - - # source://tapioca//lib/tapioca/helpers/git_attributes.rb#16 - sig { params(path: ::Pathname).void } - def create_vendored_attribute_file(path); end - - private - - # source://tapioca//lib/tapioca/helpers/git_attributes.rb#25 - sig { params(path: ::Pathname, content: ::String).void } - def create_gitattributes_file(path, content); end - end -end - -# We need to do the alias-method-chain dance since Bootsnap does the same, -# and prepended modules and alias-method-chain don't play well together. -# -# So, why does Bootsnap do alias-method-chain and not prepend? Glad you asked! -# That's because RubyGems does alias-method-chain for Kernel#require and such, -# so, if Bootsnap were to do prepend, it might end up breaking RubyGems. -# -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#68 -class Module - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#101 - def append_features(constant); end - - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#71 - def autoload(const_name, path); end - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#111 - def extend_object(obj); end - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#91 - def prepend_features(constant); end -end - -# source://tapioca//lib/tapioca/rbi_ext/model.rb#4 -module RBI; end - -# source://tapioca//lib/tapioca/rbi_ext/model.rb#5 -class RBI::Tree < ::RBI::NodeWithComments - # source://rbi/0.1.13/lib/rbi/model.rb#119 - sig do - params( - loc: T.nilable(::RBI::Loc), - comments: 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 - - # source://rbi/0.1.13/lib/rbi/model.rb#126 - sig { params(node: ::RBI::Node).void } - def <<(node); end - - # source://rbi/0.1.13/lib/rbi/printer.rb#226 - sig { override.params(v: ::RBI::Printer).void } - def accept_printer(v); end - - # source://rbi/0.1.13/lib/rbi/rewriters/add_sig_templates.rb#66 - sig { params(with_todo_comment: T::Boolean).void } - def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - - # source://rbi/0.1.13/lib/rbi/rewriters/annotate.rb#49 - sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } - def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#38 - sig do - params( - name: ::String, - superclass_name: T.nilable(::String), - block: T.nilable(T.proc.params(scope: ::RBI::Scope).void) - ).returns(::RBI::Scope) - end - def create_class(name, superclass_name: T.unsafe(nil), &block); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#45 - sig { params(name: ::String, value: ::String).void } - def create_constant(name, value:); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#55 - sig { params(name: ::String).void } - def create_extend(name); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#50 - sig { params(name: ::String).void } - def create_include(name); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#89 - sig do - params( - name: ::String, - parameters: T::Array[::RBI::TypedParam], - return_type: ::String, - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - end - def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#113 - sig do - params( - name: ::String, - sigs: T::Array[::RBI::Sig], - parameters: T::Array[::RBI::Param], - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - end - def create_method_with_sigs(name, sigs:, parameters: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#60 - sig { params(name: ::String).void } - def create_mixes_in_class_methods(name); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#25 - sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } - def create_module(name, &block); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#9 - sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } - def create_path(constant, &block); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#135 - sig do - params( - parameters: T::Hash[T.any(::String, ::Symbol), ::String], - type_parameters: T::Array[::String], - return_type: ::String - ).returns(::RBI::Sig) - end - def create_sig(parameters:, type_parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#74 - sig do - params( - name: ::String, - type: ::String, - variance: ::Symbol, - fixed: T.nilable(::String), - upper: T.nilable(::String), - lower: T.nilable(::String) - ).void - end - def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - - # source://rbi/0.1.13/lib/rbi/rewriters/deannotate.rb#41 - sig { params(annotation: ::String).void } - def deannotate!(annotation); end - - # source://rbi/0.1.13/lib/rbi/model.rb#132 - sig { returns(T::Boolean) } - def empty?; end - - # source://rbi/0.1.13/lib/rbi/rewriters/filter_versions.rb#118 - sig { params(version: ::Gem::Version).void } - def filter_versions!(version); end - - # source://rbi/0.1.13/lib/rbi/rewriters/group_nodes.rb#38 - sig { void } - def group_nodes!; end - - # source://rbi/0.1.13/lib/rbi/index.rb#68 - sig { returns(::RBI::Index) } - def index; end - - # source://rbi/0.1.13/lib/rbi/rewriters/merge_trees.rb#324 - sig do - params( - other: ::RBI::Tree, - left_name: ::String, - right_name: ::String, - keep: ::RBI::Rewriters::Merge::Keep - ).returns(::RBI::MergeTree) - end - def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - - # source://rbi/0.1.13/lib/rbi/rewriters/nest_non_public_methods.rb#46 - sig { void } - def nest_non_public_methods!; end - - # source://rbi/0.1.13/lib/rbi/rewriters/nest_singleton_methods.rb#36 - sig { void } - def nest_singleton_methods!; end - - # source://rbi/0.1.13/lib/rbi/model.rb#110 - sig { returns(T::Array[::RBI::Node]) } - def nodes; end - - # source://rbi/0.1.13/lib/rbi/printer.rb#233 - sig { override.returns(T::Boolean) } - def oneline?; end - - # source://rbi/0.1.13/lib/rbi/rewriters/sort_nodes.rb#119 - sig { void } - def sort_nodes!; end - - private - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#150 - sig { params(node: ::RBI::Node).returns(::RBI::Node) } - def create_node(node); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#145 - sig { returns(T::Hash[::String, ::RBI::Node]) } - def nodes_cache; end -end - -# source://tapioca//lib/tapioca/rbi_ext/model.rb#160 -class RBI::TypedParam < ::T::Struct - const :param, ::RBI::Param - const :type, ::String - - class << self - # source://sorbet-runtime/0.5.11444/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#5 -module T::Generic - include ::Kernel - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#13 - def [](*types); end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#47 - def has_attached_class!(variance = T.unsafe(nil), &bounds_proc); end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#21 - def type_member(variance = T.unsafe(nil), &bounds_proc); end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#34 - def type_template(variance = T.unsafe(nil), &bounds_proc); end -end - -# This module intercepts calls to generic type instantiations and type variable definitions. -# Tapioca stores the data from those calls in a `GenericTypeRegistry` which can then be used -# to look up the original call details when we are trying to do code generation. -# -# We are interested in the data of the `[]`, `type_member` and `type_template` calls which -# are all needed to generate good generic information at runtime. -# -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#12 -module T::Generic::TypeStoragePatch - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#13 - def [](*types); end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#47 - def has_attached_class!(variance = T.unsafe(nil), &bounds_proc); end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#21 - def type_member(variance = T.unsafe(nil), &bounds_proc); end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#34 - def type_template(variance = T.unsafe(nil), &bounds_proc); end -end - -# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#28 -module T::Private::Methods - class << self - # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#30 - def finalize_proc(decl); end - end -end - -class T::Private::Methods::Declaration < ::Struct - def bind; end - def bind=(_); end - def checked; end - def checked=(_); end - def finalized; end - def finalized=(_); end - def mod; end - def mod=(_); end - def mode; end - def mode=(_); end - def on_failure; end - def on_failure=(_); end - def override_allow_incompatible; end - def override_allow_incompatible=(_); end - def params; end - def params=(_); end - def raw; end - def raw=(_); end - def returns; end - def returns=(_); end - def type_parameters; end - def type_parameters=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -class T::Private::Methods::DeclarationBlock < ::Struct - def blk; end - def blk=(_); end - def final; end - def final=(_); end - def loc; end - def loc=(_); end - def mod; end - def mod=(_); end - def raw; end - def raw=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#29 -module T::Private::Methods::ProcBindPatch - # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#30 - def finalize_proc(decl); end -end - -class T::Types::Proc < ::T::Types::Base; end - -# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#6 -module T::Types::ProcBindPatch - # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#7 - def initialize(arg_types, returns, bind = T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#15 - def name; end -end - -# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#6 -class T::Types::Simple < ::T::Types::Base - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#70 - def name; end -end - -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#65 -module T::Types::Simple::GenericPatch - # This method intercepts calls to the `name` method for simple types, so that - # it can ask the name to the type if the type is generic, since, by this point, - # we've created a clone of that type with the `name` method returning the - # appropriate name for that specific concrete type. - # - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#70 - def name; end -end - -# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#7 -module T::Types::Simple::NamePatch - # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#10 - def name; end - - # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#16 - def qualified_name_of(constant); end -end - -# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#8 -T::Types::Simple::NamePatch::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#87 -module T::Utils::Private - class << self - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#89 - def coerce_and_check_module_types(val, check_val, check_module_type); end - end -end - -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#88 -module T::Utils::Private::PrivateCoercePatch - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#89 - def coerce_and_check_module_types(val, check_val, check_module_type); end -end - -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#4 -module Tapioca - class << self - # source://tapioca//lib/tapioca.rb#19 - sig do - type_parameters(:Result) - .params( - blk: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end - def silence_warnings(&blk); end - end -end - -# source://tapioca//lib/tapioca.rb#37 -Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#5 -module Tapioca::BundlerExt; end - -# This is a module that gets prepended to `Bundler::Dependency` and -# makes sure even gems marked as `require: false` are required during -# `Bundler.require`. -# -# source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#9 -module Tapioca::BundlerExt::AutoRequireHook - requires_ancestor { Bundler::Dependency } - - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#46 - sig { returns(T.untyped) } - def autorequire; end - - class << self - # @return [Boolean] - # - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#26 - def enabled?; end - - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#22 - sig { params(name: T.untyped).returns(T::Boolean) } - def excluded?(name); end - - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#36 - sig do - type_parameters(:Result) - .params( - exclude: T::Array[::String], - blk: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end - def override_require_false(exclude:, &blk); end - end -end - -# source://tapioca//lib/tapioca.rb#60 -Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#59 -Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#58 -Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/cli.rb#5 -class Tapioca::Cli < ::Thor - include ::Tapioca::CliHelper - include ::Tapioca::ConfigHelper - include ::Tapioca::EnvHelper - - # source://tapioca//lib/tapioca/cli.rb#366 - def __print_version; end - - # source://tapioca//lib/tapioca/cli.rb#348 - def annotations; end - - # source://tapioca//lib/tapioca/cli.rb#320 - def check_shims; end - - # source://tapioca//lib/tapioca/cli.rb#46 - def configure; end - - # source://tapioca//lib/tapioca/cli.rb#147 - def dsl(*constant_or_paths); end - - # @raise [MalformattedArgumentError] - # - # source://tapioca//lib/tapioca/cli.rb#264 - def gem(*gems); end - - # source://tapioca//lib/tapioca/cli.rb#27 - def init; end - - # source://tapioca//lib/tapioca/cli.rb#57 - def require; end - - # source://tapioca//lib/tapioca/cli.rb#74 - def todo; end - - private - - # source://tapioca//lib/tapioca/cli.rb#380 - def print_init_next_steps; end - - class << self - # source://tapioca//lib/tapioca/cli.rb#372 - def exit_on_failure?; end - end -end - -# source://tapioca//lib/tapioca/cli.rb#10 -Tapioca::Cli::FILE_HEADER_OPTION_DESC = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/helpers/cli_helper.rb#5 -module Tapioca::CliHelper - requires_ancestor { Thor::Shell } - - # source://tapioca//lib/tapioca/helpers/cli_helper.rb#33 - sig { params(options: T::Hash[::Symbol, T.untyped]).returns(T.nilable(::String)) } - def netrc_file(options); end - - # source://tapioca//lib/tapioca/helpers/cli_helper.rb#26 - sig { params(options: T::Hash[::Symbol, T.untyped]).returns(::Tapioca::RBIFormatter) } - def rbi_formatter(options); end - - # source://tapioca//lib/tapioca/helpers/cli_helper.rb#12 - sig { params(message: ::String, color: T.any(::Symbol, T::Array[::Symbol])).void } - def say_error(message = T.unsafe(nil), *color); end -end - -# source://tapioca//lib/tapioca/commands.rb#5 -module Tapioca::Commands; end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/commands/abstract_dsl.rb#6 -class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracker - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIFilesHelper - - abstract! - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#33 - sig do - params( - requested_constants: T::Array[::String], - requested_paths: T::Array[::Pathname], - outpath: ::Pathname, - only: T::Array[::String], - exclude: T::Array[::String], - file_header: T::Boolean, - tapioca_path: ::String, - skip_constant: T::Array[::String], - quiet: T::Boolean, - verbose: T::Boolean, - number_of_workers: T.nilable(::Integer), - auto_strictness: T::Boolean, - gem_dir: ::String, - rbi_formatter: ::Tapioca::RBIFormatter, - app_root: ::String, - halt_upon_load_error: T::Boolean, - compiler_options: T::Hash[::String, T.untyped] - ).void - end - def initialize(requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, skip_constant: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil), compiler_options: T.unsafe(nil)); end - - private - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#100 - sig { returns(T::Array[::String]) } - def all_requested_constants; end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#293 - sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } - def build_error_for_files(cause, files); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#217 - sig do - params( - constant_name: ::String, - rbi: ::RBI::File, - outpath: ::Pathname, - quiet: T::Boolean - ).returns(T.nilable(::Pathname)) - end - def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#154 - sig { params(constant_names: T::Array[::String], ignore_missing: T::Boolean).returns(T::Array[::Module]) } - def constantize(constant_names, ignore_missing: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#177 - sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } - def constantize_compilers(compiler_names); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#353 - sig { returns(T::Array[::String]) } - def constants_from_requested_paths; end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#123 - sig { returns(::Tapioca::Dsl::Pipeline) } - def create_pipeline; end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#256 - sig { params(constant_name: ::String).returns(::Pathname) } - def dsl_rbi_filename(constant_name); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#140 - sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) } - def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#348 - sig { params(constant: ::String).returns(::String) } - def generate_command_for(constant); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#76 - sig { params(outpath: ::Pathname, quiet: T::Boolean).returns(T::Set[::Pathname]) } - def generate_dsl_rbi_files(outpath, quiet:); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#113 - sig { void } - def load_application; end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#235 - sig { params(dir: ::Pathname).void } - def perform_dsl_verification(dir); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#108 - sig { returns(::Tapioca::Dsl::Pipeline) } - def pipeline; end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#244 - sig { params(files: T::Set[::Pathname]).void } - def purge_stale_dsl_rbi_files(files); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#343 - sig { params(constant: ::String).returns(::String) } - def rbi_filename_for(constant); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#324 - sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } - def rbi_files_in(path); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#302 - sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } - def report_diff_and_exit_if_out_of_date(diff, command); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#197 - sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) } - def resolve(name); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#331 - sig { params(class_name: ::String).returns(::String) } - def underscore(class_name); end - - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#261 - sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } - def verify_dsl_rbi(tmp_dir:); end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/commands/abstract_gem.rb#6 -class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIFilesHelper - - abstract! - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#32 - sig do - params( - gem_names: T::Array[::String], - exclude: T::Array[::String], - include_dependencies: T::Boolean, - prerequire: T.nilable(::String), - postrequire: ::String, - typed_overrides: T::Hash[::String, ::String], - outpath: ::Pathname, - file_header: T::Boolean, - include_doc: T::Boolean, - include_loc: T::Boolean, - include_exported_rbis: T::Boolean, - number_of_workers: T.nilable(::Integer), - auto_strictness: T::Boolean, - dsl_dir: ::String, - rbi_formatter: ::Tapioca::RBIFormatter, - halt_upon_load_error: T::Boolean - ).void - end - def initialize(gem_names:, exclude:, include_dependencies:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - - private - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#223 - sig { returns(T::Array[::String]) } - def added_rbis; end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#284 - sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } - def build_error_for_files(cause, files); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#110 - sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } - def compile_gem_rbi(gem); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#218 - sig { params(gem_name: ::String).returns(::Pathname) } - def existing_rbi(gem_name); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266 - sig { returns(T::Hash[::String, ::String]) } - def existing_rbis; end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#230 - sig { params(gem_name: ::String).returns(::Pathname) } - def expected_rbi(gem_name); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#272 - sig { returns(T::Hash[::String, ::String]) } - def expected_rbis; end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#98 - sig do - params( - gem: ::Tapioca::Gemfile::GemSpec, - dependencies: T::Array[::Tapioca::Gemfile::GemSpec] - ).returns(T::Array[::Tapioca::Gemfile::GemSpec]) - end - def gem_dependencies(gem, dependencies = T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#235 - sig { params(gem_name: ::String).returns(T::Boolean) } - def gem_rbi_exists?(gem_name); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#279 - sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } - def gem_rbi_filename(gem_name, version); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#77 - sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } - def gems_to_generate(gem_names); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#289 - sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void } - def merge_with_exported_rbi(gem, file); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#260 - sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } - def move(old_filename, new_filename); end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#170 - sig { void } - def perform_additions; end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#143 - sig { void } - def perform_removals; end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#213 - sig { returns(T::Array[::String]) } - def removed_rbis; end - - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#240 - sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } - def report_diff_and_exit_if_out_of_date(diff, command); end -end - -# source://tapioca//lib/tapioca/commands/annotations.rb#6 -class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/annotations.rb#18 - sig do - params( - central_repo_root_uris: T::Array[::String], - auth: T.nilable(::String), - netrc_file: T.nilable(::String), - central_repo_index_path: ::String, - typed_overrides: T::Hash[::String, ::String] - ).void - end - def initialize(central_repo_root_uris:, auth: T.unsafe(nil), netrc_file: T.unsafe(nil), central_repo_index_path: T.unsafe(nil), typed_overrides: T.unsafe(nil)); end - - private - - # source://tapioca//lib/tapioca/commands/annotations.rb#193 - sig { params(name: ::String, content: ::String).returns(::String) } - def add_header(name, content); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#213 - sig { params(name: ::String, content: ::String).returns(::String) } - def apply_typed_override(name, content); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#39 - sig { override.void } - def execute; end - - # source://tapioca//lib/tapioca/commands/annotations.rb#136 - sig { params(repo_uris: T::Array[::String], gem_name: ::String).void } - def fetch_annotation(repo_uris, gem_name); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#113 - sig { params(gem_names: T::Array[::String]).returns(T::Array[::String]) } - def fetch_annotations(gem_names); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#152 - sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } - def fetch_file(repo_uri, path); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#169 - sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } - def fetch_http_file(repo_uri, path); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#102 - sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) } - def fetch_index(repo_uri, repo_number:); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#81 - sig { returns(T::Hash[::String, Tapioca::RepoIndex]) } - def fetch_indexes; end - - # source://tapioca//lib/tapioca/commands/annotations.rb#161 - sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } - def fetch_local_file(repo_uri, path); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#50 - sig { returns(T::Array[::String]) } - def list_gemfile_gems; end - - # source://tapioca//lib/tapioca/commands/annotations.rb#225 - sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) } - def merge_files(gem_name, contents); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#60 - sig { params(project_gems: T::Array[::String]).void } - def remove_expired_annotations(project_gems); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#252 - sig { returns(T::Hash[::String, T.nilable(::String)]) } - def repo_tokens; end - - # source://tapioca//lib/tapioca/commands/annotations.rb#280 - sig { params(path: ::String, repo_uri: ::String, message: ::String).void } - def say_http_error(path, repo_uri, message:); end - - # source://tapioca//lib/tapioca/commands/annotations.rb#264 - sig { params(repo_uri: ::String).returns(T.nilable(::String)) } - def token_for(repo_uri); end -end - -# source://tapioca//lib/tapioca/commands/check_shims.rb#6 -class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIFilesHelper - - # source://tapioca//lib/tapioca/commands/check_shims.rb#22 - sig do - params( - gem_rbi_dir: ::String, - dsl_rbi_dir: ::String, - annotations_rbi_dir: ::String, - shim_rbi_dir: ::String, - todo_rbi_file: ::String, - payload: T::Boolean, - number_of_workers: T.nilable(::Integer) - ).void - end - def initialize(gem_rbi_dir:, dsl_rbi_dir:, annotations_rbi_dir:, shim_rbi_dir:, todo_rbi_file:, payload:, number_of_workers:); end - - private - - # source://tapioca//lib/tapioca/commands/check_shims.rb#44 - sig { override.void } - def execute; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/commands/command.rb#6 -class Tapioca::Commands::Command - include ::Thor::Base - include ::Thor::Invocation - include ::Thor::Shell - include ::Tapioca::CliHelper - extend ::Thor::Base::ClassMethods - extend ::Thor::Invocation::ClassMethods - - abstract! - - # source://tapioca//lib/tapioca/commands/command.rb#20 - sig { void } - def initialize; end - - # source://thor/1.3.1/lib/thor/base.rb#155 - sig { returns(::Thor::Actions) } - def file_writer; end - - # source://tapioca//lib/tapioca/commands/command.rb#25 - sig(:final) { void } - def run; end - - private - - # source://tapioca//lib/tapioca/commands/command.rb#53 - sig do - params( - path: T.any(::Pathname, ::String), - content: ::String, - force: T::Boolean, - skip: T::Boolean, - verbose: T::Boolean - ).void - end - def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/commands/command.rb#37 - sig { params(command: ::Symbol, args: ::String).returns(::String) } - def default_command(command, *args); end - - # @abstract - # - # source://tapioca//lib/tapioca/commands/command.rb#34 - sig { abstract.void } - def execute; end - - # source://tapioca//lib/tapioca/commands/command.rb#63 - sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void } - def remove_file(path, verbose: T.unsafe(nil)); end -end - -# source://tapioca//lib/tapioca/commands/command.rb#10 -class Tapioca::Commands::Command::FileWriter < ::Thor - include ::Thor::Actions - extend ::Thor::Actions::ClassMethods -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/commands/command_without_tracker.rb#6 -class Tapioca::Commands::CommandWithoutTracker < ::Tapioca::Commands::Command - abstract! - - # source://tapioca//lib/tapioca/commands/command_without_tracker.rb#12 - sig { void } - def initialize; end -end - -# source://tapioca//lib/tapioca/commands/configure.rb#6 -class Tapioca::Commands::Configure < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/configure.rb#14 - sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void } - def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end - - private - - # source://tapioca//lib/tapioca/commands/configure.rb#79 - sig { void } - def create_binstub; end - - # source://tapioca//lib/tapioca/commands/configure.rb#69 - sig { void } - def create_post_require; end - - # source://tapioca//lib/tapioca/commands/configure.rb#40 - sig { void } - def create_sorbet_config; end - - # source://tapioca//lib/tapioca/commands/configure.rb#50 - sig { void } - def create_tapioca_config; end - - # source://tapioca//lib/tapioca/commands/configure.rb#32 - sig { override.void } - def execute; end - - # source://tapioca//lib/tapioca/commands/configure.rb#92 - sig { returns(::Bundler::Installer) } - def installer; end - - # source://tapioca//lib/tapioca/commands/configure.rb#97 - sig { returns(T.any(::Bundler::StubSpecification, ::Gem::Specification)) } - def spec; end -end - -# source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#6 -class Tapioca::Commands::DslCompilerList < ::Tapioca::Commands::AbstractDsl - private - - # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#10 - sig { override.void } - def execute; end -end - -# source://tapioca//lib/tapioca/commands/dsl_generate.rb#6 -class Tapioca::Commands::DslGenerate < ::Tapioca::Commands::AbstractDsl - private - - # source://tapioca//lib/tapioca/commands/dsl_generate.rb#10 - sig { override.void } - def execute; end -end - -# source://tapioca//lib/tapioca/commands/dsl_verify.rb#6 -class Tapioca::Commands::DslVerify < ::Tapioca::Commands::AbstractDsl - private - - # source://tapioca//lib/tapioca/commands/dsl_verify.rb#10 - sig { override.void } - def execute; end -end - -# source://tapioca//lib/tapioca/commands/gem_generate.rb#6 -class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem - private - - # source://tapioca//lib/tapioca/commands/gem_generate.rb#10 - sig { override.void } - def execute; end -end - -# source://tapioca//lib/tapioca/commands/gem_sync.rb#6 -class Tapioca::Commands::GemSync < ::Tapioca::Commands::AbstractGem - private - - # source://tapioca//lib/tapioca/commands/gem_sync.rb#10 - sig { override.void } - def execute; end -end - -# source://tapioca//lib/tapioca/commands/gem_verify.rb#6 -class Tapioca::Commands::GemVerify < ::Tapioca::Commands::AbstractGem - private - - # source://tapioca//lib/tapioca/commands/gem_verify.rb#10 - sig { override.void } - def execute; end - - # source://tapioca//lib/tapioca/commands/gem_verify.rb#17 - sig { void } - def perform_sync_verification; end -end - -# source://tapioca//lib/tapioca/commands/require.rb#6 -class Tapioca::Commands::Require < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/require.rb#13 - sig { params(requires_path: ::String, sorbet_config_path: ::String).void } - def initialize(requires_path:, sorbet_config_path:); end - - private - - # source://tapioca//lib/tapioca/commands/require.rb#23 - sig { override.void } - def execute; end -end - -# source://tapioca//lib/tapioca/commands/todo.rb#6 -class Tapioca::Commands::Todo < ::Tapioca::Commands::CommandWithoutTracker - include ::Tapioca::SorbetHelper - - # source://tapioca//lib/tapioca/commands/todo.rb#26 - sig { params(todo_file: ::String, file_header: T::Boolean).void } - def initialize(todo_file:, file_header:); end - - # source://tapioca//lib/tapioca/commands/todo.rb#34 - sig { void } - def run_with_deprecation; end - - private - - # source://tapioca//lib/tapioca/commands/todo.rb#44 - sig { override.void } - def execute; end - - # source://tapioca//lib/tapioca/commands/todo.rb#68 - sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) } - def rbi(constants, command:); end - - # source://tapioca//lib/tapioca/commands/todo.rb#88 - sig { returns(T::Array[::String]) } - def unresolved_constants; end -end - -# source://tapioca//lib/tapioca/commands/todo.rb#9 -Tapioca::Commands::Todo::DEPRECATION_MESSAGE = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/helpers/config_helper.rb#5 -module Tapioca::ConfigHelper - requires_ancestor { Thor } - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#18 - sig { params(args: T.untyped, local_options: T.untyped, config: T.untyped).void } - def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#12 - sig { returns(::String) } - def command_name; end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#15 - sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } - def defaults; end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#34 - sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } - def options; end - - private - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#153 - sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) } - def build_error(msg); end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#178 - sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) } - def build_error_message(config_file, errors); end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#56 - sig do - params( - options: ::Thor::CoreExt::HashWithIndifferentAccess - ).returns(::Thor::CoreExt::HashWithIndifferentAccess) - end - def config_options(options); end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#46 - sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void } - def filter_defaults(options); end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#196 - sig do - params( - options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess) - ).returns(::Thor::CoreExt::HashWithIndifferentAccess) - end - def merge_options(*options); end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#70 - sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void } - def validate_config!(config_file, config); end - - # source://tapioca//lib/tapioca/helpers/config_helper.rb#102 - sig do - params( - command_options: T::Hash[::Symbol, ::Thor::Option], - config_key: ::String, - config_options: T::Hash[T.untyped, T.untyped] - ).returns(T::Array[::Tapioca::ConfigHelper::ConfigError]) - end - def validate_config_options(command_options, config_key, config_options); end -end - -# source://tapioca//lib/tapioca/helpers/config_helper.rb#148 -class Tapioca::ConfigHelper::ConfigError < ::T::Struct - const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] - - class << self - # source://sorbet-runtime/0.5.11444/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://tapioca//lib/tapioca/helpers/config_helper.rb#143 -class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct - const :message, ::String - const :colors, T::Array[::Symbol] - - class << self - # source://sorbet-runtime/0.5.11444/lib/types/struct.rb#13 - def inherited(s); end - end -end - -# source://tapioca//lib/tapioca.rb#44 -Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#40 -Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#56 -Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#41 -Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#46 -Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) - -# source://tapioca//lib/tapioca.rb#38 -Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#39 -Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/rbi_formatter.rb#31 -Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) - -# source://tapioca//lib/tapioca.rb#55 -Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer) - -# source://tapioca//lib/tapioca.rb#42 -Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#43 -Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/dsl/compilers.rb#5 -module Tapioca::Dsl; end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/dsl/compiler.rb#6 -class Tapioca::Dsl::Compiler - extend T::Generic - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIHelper - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - extend ::Tapioca::Runtime::AttachedClassOf - extend ::Tapioca::Runtime::Reflection - - abstract! - - ConstantType = type_member { { upper: Module } } - - # source://tapioca//lib/tapioca/dsl/compiler.rb#74 - sig do - params( - pipeline: ::Tapioca::Dsl::Pipeline, - root: ::RBI::Tree, - constant: ConstantType, - options: T::Hash[::String, T.untyped] - ).void - end - def initialize(pipeline, root, constant, options = T.unsafe(nil)); end - - # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`. - # - # source://tapioca//lib/tapioca/dsl/compiler.rb#92 - sig { params(error: ::String).void } - def add_error(error); end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#83 - sig { params(compiler_name: ::String).returns(T::Boolean) } - def compiler_enabled?(compiler_name); end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#20 - sig { returns(ConstantType) } - def constant; end - - # @abstract - # - # source://tapioca//lib/tapioca/dsl/compiler.rb#88 - sig { abstract.void } - def decorate; end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#26 - sig { returns(T::Hash[::String, T.untyped]) } - def options; end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#23 - sig { returns(::RBI::Tree) } - def root; end - - private - - # source://tapioca//lib/tapioca/dsl/compiler.rb#141 - sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) } - def compile_method_parameters_to_rbi(method_def); end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#177 - sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) } - def compile_method_return_type_to_rbi(method_def); end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#131 - sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void } - def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end - - # Get the types of each parameter from a method signature - # - # source://tapioca//lib/tapioca/dsl/compiler.rb#105 - sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) } - def parameters_types_from_signature(method_def, signature); end - - class << self - # @abstract - # - # source://tapioca//lib/tapioca/dsl/compiler.rb#37 - sig { abstract.returns(T::Enumerable[::Module]) } - def gather_constants; end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#32 - sig { params(constant: ::Module).returns(T::Boolean) } - def handles?(constant); end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#40 - sig { returns(T::Set[::Module]) } - def processable_constants; end - - private - - # source://tapioca//lib/tapioca/dsl/compiler.rb#50 - sig { returns(T::Enumerable[T::Class[T.anything]]) } - def all_classes; end - - # source://tapioca//lib/tapioca/dsl/compiler.rb#58 - sig { returns(T::Enumerable[::Module]) } - def all_modules; end - end -end - -# source://tapioca//lib/tapioca/dsl/compilers.rb#6 -module Tapioca::Dsl::Compilers; end - -# DSL compilers are either built-in to Tapioca and live under the -# `Tapioca::Dsl::Compilers` namespace (i.e. this namespace), and -# can be referred to by just using the class name, or they live in -# a different namespace and can only be referred to using their fully -# qualified name. This constant encapsulates that dual lookup when -# a compiler needs to be resolved by name. -# -# source://tapioca//lib/tapioca/dsl/compilers.rb#13 -Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array) - -# source://tapioca//lib/tapioca/dsl/pipeline.rb#6 -class Tapioca::Dsl::Pipeline - # source://tapioca//lib/tapioca/dsl/pipeline.rb#39 - sig do - params( - requested_constants: T::Array[::Module], - requested_paths: T::Array[::Pathname], - requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], - excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], - error_handler: T.proc.params(error: ::String).void, - skipped_constants: T::Array[::Module], - number_of_workers: T.nilable(::Integer), - compiler_options: T::Hash[::String, T.untyped] - ).void - end - def initialize(requested_constants:, requested_paths: T.unsafe(nil), requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), skipped_constants: T.unsafe(nil), number_of_workers: T.unsafe(nil), compiler_options: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#10 - sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } - def active_compilers; end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#102 - sig { params(error: ::String).void } - def add_error(error); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#107 - sig { params(compiler_name: ::String).returns(T::Boolean) } - def compiler_enabled?(compiler_name); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#116 - sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } - def compilers; end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#22 - sig { returns(T.proc.params(error: ::String).void) } - def error_handler; end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#25 - sig { returns(T::Array[::String]) } - def errors; end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#13 - sig { returns(T::Array[::Module]) } - def requested_constants; end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#16 - sig { returns(T::Array[::Pathname]) } - def requested_paths; end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#67 - sig do - type_parameters(:T) - .params( - blk: T.proc.params(constant: ::Module, rbi: ::RBI::File).returns(T.type_parameter(:T)) - ).returns(T::Array[T.type_parameter(:T)]) - end - def run(&blk); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#19 - sig { returns(T::Array[::Module]) } - def skipped_constants; end - - private - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#223 - sig { void } - def abort_if_pending_migrations!; end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#168 - sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) } - def filter_anonymous_and_reloaded_constants(constants); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#133 - sig do - params( - requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], - excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)] - ).returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) - end - def gather_active_compilers(requested_compilers, excluded_compilers); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#147 - sig do - params( - requested_constants: T::Array[::Module], - requested_paths: T::Array[::Pathname], - skipped_constants: T::Array[::Module] - ).returns(T::Set[::Module]) - end - def gather_constants(requested_constants, requested_paths, skipped_constants); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#197 - sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } - def rbi_for_constant(constant); end - - # source://tapioca//lib/tapioca/dsl/pipeline.rb#216 - sig { params(error: ::String).returns(T.noreturn) } - def report_error(error); end -end - -# source://tapioca//lib/tapioca/helpers/env_helper.rb#5 -module Tapioca::EnvHelper - requires_ancestor { Thor } - - # source://tapioca//lib/tapioca/helpers/env_helper.rb#12 - sig { params(options: T::Hash[::Symbol, T.untyped]).void } - def set_environment(options); end -end - -class Tapioca::Error < ::StandardError; end - -# source://tapioca//lib/tapioca/executor.rb#5 -class Tapioca::Executor - # source://tapioca//lib/tapioca/executor.rb#11 - sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void } - def initialize(queue, number_of_workers: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/executor.rb#28 - sig do - type_parameters(:T) - .params( - block: T.proc.params(item: T.untyped).returns(T.type_parameter(:T)) - ).returns(T::Array[T.type_parameter(:T)]) - end - def run_in_parallel(&block); end - - private - - # source://tapioca//lib/tapioca/executor.rb#37 - sig { returns(::Integer) } - def max_processors; end -end - -# source://tapioca//lib/tapioca/executor.rb#8 -Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer) - -# source://tapioca//lib/tapioca/gem/events.rb#5 -module Tapioca::Gem; end - -# source://tapioca//lib/tapioca/gem/events.rb#77 -class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#84 - sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } - def initialize(symbol, constant, node); end - - # source://tapioca//lib/tapioca/gem/events.rb#81 - sig { returns(::RBI::Const) } - def node; end -end - -# source://tapioca//lib/tapioca/gem/events.rb#26 -class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event - # source://tapioca//lib/tapioca/gem/events.rb#36 - sig { params(symbol: ::String, constant: ::BasicObject).void } - def initialize(symbol, constant); end - - # source://tapioca//lib/tapioca/gem/events.rb#33 - sig { returns(::BasicObject) } - def constant; end - - # source://tapioca//lib/tapioca/gem/events.rb#30 - sig { returns(::String) } - def symbol; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/gem/events.rb#6 -class Tapioca::Gem::Event - abstract! -end - -# source://tapioca//lib/tapioca/gem/events.rb#43 -class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound - # source://tapioca//lib/tapioca/gem/events.rb#52 - sig { params(symbol: ::String, constant: ::Module).void } - def initialize(symbol, constant); end - - # source://tapioca//lib/tapioca/gem/events.rb#47 - sig { override.returns(::Module) } - def constant; end -end - -# source://tapioca//lib/tapioca/gem/events.rb#103 -class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end - -# source://tapioca//lib/tapioca/gem/listeners/base.rb#6 -module Tapioca::Gem::Listeners; end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/gem/listeners/base.rb#7 -class Tapioca::Gem::Listeners::Base - abstract! - - # source://tapioca//lib/tapioca/gem/listeners/base.rb#14 - sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } - def initialize(pipeline); end - - # source://tapioca//lib/tapioca/gem/listeners/base.rb#19 - sig { params(event: ::Tapioca::Gem::NodeAdded).void } - def dispatch(event); end - - private - - # source://tapioca//lib/tapioca/gem/listeners/base.rb#49 - sig { params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/base.rb#37 - sig { params(event: ::Tapioca::Gem::ConstNodeAdded).void } - def on_const(event); end - - # source://tapioca//lib/tapioca/gem/listeners/base.rb#45 - sig { params(event: ::Tapioca::Gem::MethodNodeAdded).void } - def on_method(event); end - - # source://tapioca//lib/tapioca/gem/listeners/base.rb#41 - sig { params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#7 -class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#31 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#15 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#7 -class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#60 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#55 - sig { params(location: ::String).returns(T::Boolean) } - def mixed_in_by_gem?(location); end - - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#15 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/methods.rb#7 -class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIHelper - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#35 - sig do - params( - tree: ::RBI::Tree, - module_name: ::String, - mod: ::Module, - for_visibility: T::Array[::Symbol], - attached_class: T.nilable(::Module) - ).void - end - def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil), attached_class: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#71 - sig do - params( - tree: ::RBI::Tree, - symbol_name: ::String, - constant: ::Module, - method: T.nilable(::UnboundMethod), - visibility: ::RBI::Visibility - ).void - end - def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#211 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#204 - sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) } - def initialize_method_for(constant); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#172 - sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) } - def method_names_by_visibility(mod); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#196 - sig { params(attached_class: T.nilable(::Module), method_name: ::Symbol).returns(T.nilable(T::Boolean)) } - def method_new_in_abstract_class?(attached_class, method_name); end - - # Check whether the method is defined by the constant. - # - # In most cases, it works to check that the constant is the method owner. However, - # in the case that a method is also defined in a module prepended to the constant, it - # will be owned by the prepended module, not the constant. - # - # This method implements a better way of checking whether a constant defines a method. - # It walks up the ancestor tree via the `super_method` method; if any of the super - # methods are owned by the constant, it means that the constant declares the method. - # - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#158 - sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) } - def method_owned_by_constant?(method, constant); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#16 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#181 - sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) } - def struct_method?(constant, method_name); end -end - -# source://tapioca//lib/tapioca/gem/listeners/mixins.rb#7 -class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#42 - sig do - params( - tree: ::RBI::Tree, - constant: ::Module, - mods: T::Array[::Module], - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type - ).void - end - def add_mixins(tree, constant, mods, mixin_type); end - - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#84 - sig { params(mixin_name: ::String).returns(T::Boolean) } - def filtered_mixin?(mixin_name); end - - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#91 - sig { params(constant: ::Module).returns(T::Array[::Module]) } - def interesting_ancestors_of(constant); end - - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#75 - sig do - params( - constant: ::Module, - mixin: ::Module, - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type - ).returns(T::Boolean) - end - def mixed_in_by_gem?(constant, mixin, mixin_type); end - - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#15 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#7 -class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#20 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#15 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#7 -class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base - private - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#25 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#13 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#7 -class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#27 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#15 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#7 -class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIHelper - - private - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#33 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#14 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#7 -class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base - private - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#23 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#13 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#7 -class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIHelper - - private - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#26 - sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) } - def compile_signature(signature, parameters); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#79 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#18 - sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } - def on_method(event); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#68 - sig { params(signature: T.untyped).returns(T::Boolean) } - def signature_final?(signature); end -end - -# source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#13 -Tapioca::Gem::Listeners::SorbetSignatures::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp) - -# source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#7 -class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#27 - sig { params(tree: ::RBI::Tree, constant: ::Module).void } - def compile_type_variable_declarations(tree, constant); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#63 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#50 - sig { params(type_variable: ::Tapioca::TypeVariableModule).returns(T.nilable(::RBI::Node)) } - def node_from_type_variable(type_variable); end - - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#15 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/source_location.rb#7 -class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base - private - - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#41 - sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void } - def add_source_location_comment(node, file, line); end - - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#13 - sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } - def on_const(event); end - - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#35 - sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } - def on_method(event); end - - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#19 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#7 -class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - private - - # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#36 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#15 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#7 -class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#27 - sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } - def initialize(pipeline); end - - private - - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#55 - sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } - def documentation_comments(name, sigs: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#99 - sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } - def ignore?(event); end - - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#36 - sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } - def on_const(event); end - - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46 - sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } - def on_method(event); end - - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#41 - sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } - def on_scope(event); end -end - -# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#10 -Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) - -# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#24 -Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array) - -# source://tapioca//lib/tapioca/gem/events.rb#105 -class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#130 - sig do - params( - symbol: ::String, - constant: ::Module, - method: ::UnboundMethod, - node: ::RBI::Method, - signature: T.untyped, - parameters: T::Array[[::Symbol, ::String]] - ).void - end - def initialize(symbol, constant, method, node, signature, parameters); end - - # source://tapioca//lib/tapioca/gem/events.rb#109 - sig { returns(::UnboundMethod) } - def method; end - - # source://tapioca//lib/tapioca/gem/events.rb#112 - sig { returns(::RBI::Method) } - def node; end - - # source://tapioca//lib/tapioca/gem/events.rb#118 - sig { returns(T::Array[[::Symbol, ::String]]) } - def parameters; end - - # source://tapioca//lib/tapioca/gem/events.rb#115 - sig { returns(T.untyped) } - def signature; end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/gem/events.rb#57 -class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event - abstract! - - # source://tapioca//lib/tapioca/gem/events.rb#70 - sig { params(symbol: ::String, constant: ::Module).void } - def initialize(symbol, constant); end - - # source://tapioca//lib/tapioca/gem/events.rb#67 - sig { returns(::Module) } - def constant; end - - # source://tapioca//lib/tapioca/gem/events.rb#64 - sig { returns(::String) } - def symbol; end -end - -# source://tapioca//lib/tapioca/gem/pipeline.rb#6 -class Tapioca::Gem::Pipeline - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - include ::Tapioca::SorbetHelper - include ::Tapioca::RBIHelper - - # source://tapioca//lib/tapioca/gem/pipeline.rb#17 - sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean, include_loc: T::Boolean).void } - def initialize(gem, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#48 - sig { returns(::RBI::Tree) } - def compile; end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#119 - sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) } - def constant_in_gem?(name); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#14 - sig { returns(::Tapioca::Gemfile::GemSpec) } - def gem; end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#137 - sig { params(method: ::UnboundMethod).returns(T::Boolean) } - def method_in_gem?(method); end - - # Helpers - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#147 - sig { params(constant: ::Module).returns(T.nilable(::String)) } - def name_of(constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#71 - sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } - def push_const(symbol, constant, node); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#61 - sig { params(symbol: ::String, constant: ::BasicObject).void } - def push_constant(symbol, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#66 - sig { params(symbol: ::String, constant: ::Module).void } - def push_foreign_constant(symbol, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#85 - sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } - def push_foreign_scope(symbol, constant, node); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#99 - sig do - params( - symbol: ::String, - constant: ::Module, - method: ::UnboundMethod, - node: ::RBI::Method, - signature: T.untyped, - parameters: T::Array[[::Symbol, ::String]] - ).void - end - def push_method(symbol, constant, method, node, signature, parameters); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#78 - sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } - def push_scope(symbol, constant, node); end - - # Events handling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#56 - sig { params(symbol: ::String).void } - def push_symbol(symbol); end - - # Constants and properties filtering - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#106 - sig { params(symbol_name: ::String).returns(T::Boolean) } - def symbol_in_payload?(symbol_name); end - - private - - # source://tapioca//lib/tapioca/gem/pipeline.rb#440 - sig { params(name: ::String).void } - def add_to_alias_namespace(name); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#445 - sig { params(name: ::String).returns(T::Boolean) } - def alias_namespaced?(name); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#244 - sig { params(name: ::String, constant: ::Module).void } - def compile_alias(name, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#230 - sig { params(symbol: ::String, constant: ::BasicObject).void } - def compile_constant(symbol, constant); end - - # Compiling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#219 - sig { params(symbol: ::String, constant: ::Module).void } - def compile_foreign_constant(symbol, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#298 - sig { params(name: ::String, constant: ::Module).void } - def compile_module(name, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#265 - sig { params(name: ::String, value: ::BasicObject).void } - def compile_object(name, value); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#309 - sig { params(name: ::String, constant: ::Module).returns(::RBI::Scope) } - def compile_scope(name, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#323 - sig { params(constant: T::Class[T.anything]).returns(T.nilable(::String)) } - def compile_superclass(constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#421 - sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) } - def defined_in_gem?(constant, strict: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#177 - sig { params(event: ::Tapioca::Gem::Event).void } - def dispatch(event); end - - # Helpers - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#464 - sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) } - def generic_name_of(constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#433 - sig { params(constant: ::Module).returns(T::Set[::String]) } - def get_file_candidates(constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#162 - sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } - def load_bootstrap_symbols(gem); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#480 - sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) } - def name_of_proxy_target(constant, class_name); end - - # Events handling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#172 - sig { returns(::Tapioca::Gem::Event) } - def next_event; end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#200 - sig { params(event: ::Tapioca::Gem::ConstantFound).void } - def on_constant(event); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#212 - sig { params(event: ::Tapioca::Gem::NodeAdded).void } - def on_node(event); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#191 - sig { params(event: ::Tapioca::Gem::SymbolFound).void } - def on_symbol(event); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#452 - sig { params(name: ::String).void } - def seen!(name); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#457 - sig { params(name: ::String).returns(T::Boolean) } - def seen?(name); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#391 - sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } - def skip_alias?(name, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#379 - sig { params(name: ::String, constant: T.anything).returns(T::Boolean) } - def skip_constant?(name, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#408 - sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } - def skip_foreign_constant?(name, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#413 - sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } - def skip_module?(name, constant); end - - # source://tapioca//lib/tapioca/gem/pipeline.rb#400 - sig { params(name: ::String, constant: ::BasicObject).returns(T::Boolean) } - def skip_object?(name, constant); end - - # Constants and properties filtering - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#374 - sig { params(name: ::String).returns(T::Boolean) } - def skip_symbol?(name); end -end - -# this looks something like: -# "(eval at /path/to/file.rb:123)" -# and we are just interested in the "/path/to/file.rb" part -# -# source://tapioca//lib/tapioca/gem/pipeline.rb#116 -Tapioca::Gem::Pipeline::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp) - -# source://tapioca//lib/tapioca/gem/pipeline.rb#11 -Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) - -# source://tapioca//lib/tapioca/gem/events.rb#90 -class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#97 - sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } - def initialize(symbol, constant, node); end - - # source://tapioca//lib/tapioca/gem/events.rb#94 - sig { returns(::RBI::Scope) } - def node; end -end - -# source://tapioca//lib/tapioca/gem/events.rb#13 -class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event - # source://tapioca//lib/tapioca/gem/events.rb#20 - sig { params(symbol: ::String).void } - def initialize(symbol); end - - # source://tapioca//lib/tapioca/gem/events.rb#17 - sig { returns(::String) } - def symbol; end -end - -# source://tapioca//lib/tapioca/helpers/gem_helper.rb#5 -module Tapioca::GemHelper - # source://tapioca//lib/tapioca/helpers/gem_helper.rb#9 - sig { params(app_dir: T.any(::Pathname, ::String), full_gem_path: ::String).returns(T::Boolean) } - def gem_in_app_dir?(app_dir, full_gem_path); end - - # source://tapioca//lib/tapioca/helpers/gem_helper.rb#17 - sig { params(full_gem_path: ::String).returns(T::Boolean) } - def gem_in_bundle_path?(full_gem_path); end - - # source://tapioca//lib/tapioca/helpers/gem_helper.rb#22 - sig { params(full_gem_path: ::String).returns(T::Boolean) } - def gem_in_ruby_path?(full_gem_path); end - - # source://tapioca//lib/tapioca/helpers/gem_helper.rb#27 - sig { params(path: T.any(::Pathname, ::String)).returns(::String) } - def to_realpath(path); end - - private - - # source://tapioca//lib/tapioca/helpers/gem_helper.rb#36 - sig { params(path: T.any(::Pathname, ::String), dir: T.any(::Pathname, ::String)).returns(T::Boolean) } - def path_in_dir?(path, dir); end -end - -# source://tapioca//lib/tapioca/gemfile.rb#7 -class Tapioca::Gemfile - # source://tapioca//lib/tapioca/gemfile.rb#27 - sig { params(excluded_gems: T::Array[::String]).void } - def initialize(excluded_gems); end - - # source://tapioca//lib/tapioca/gemfile.rb#18 - sig { returns(::Bundler::Definition) } - def definition; end - - # source://tapioca//lib/tapioca/gemfile.rb#21 - sig { returns(T::Array[::Tapioca::Gemfile::GemSpec]) } - def dependencies; end - - # source://tapioca//lib/tapioca/gemfile.rb#40 - sig { params(gem_name: ::String).returns(T.nilable(::Tapioca::Gemfile::GemSpec)) } - def gem(gem_name); end - - # source://tapioca//lib/tapioca/gemfile.rb#24 - sig { returns(T::Array[::String]) } - def missing_specs; end - - # source://tapioca//lib/tapioca/gemfile.rb#45 - sig { void } - def require_bundle; end - - private - - # source://tapioca//lib/tapioca/gemfile.rb#92 - sig { returns(::String) } - def dir; end - - # source://tapioca//lib/tapioca/gemfile.rb#54 - sig { returns(::File) } - def gemfile; end - - # source://tapioca//lib/tapioca/gemfile.rb#87 - sig { returns(T::Array[::Symbol]) } - def groups; end - - # source://tapioca//lib/tapioca/gemfile.rb#57 - sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) } - def load_dependencies; end - - # @return [File] - # - # source://tapioca//lib/tapioca/gemfile.rb#54 - def lockfile; end - - # source://tapioca//lib/tapioca/gemfile.rb#68 - sig { returns([T::Enumerable[T.any(::Bundler::StubSpecification, ::Gem::Specification)], T::Array[::String]]) } - def materialize_deps; end - - # source://tapioca//lib/tapioca/gemfile.rb#82 - sig { returns(::Bundler::Runtime) } - def runtime; end -end - -# source://tapioca//lib/tapioca/gemfile.rb#96 -class Tapioca::Gemfile::GemSpec - include ::Tapioca::GemHelper - - # source://tapioca//lib/tapioca/gemfile.rb#136 - sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void } - def initialize(spec); end - - # source://tapioca//lib/tapioca/gemfile.rb#146 - sig { params(other: ::BasicObject).returns(T::Boolean) } - def ==(other); end - - # source://tapioca//lib/tapioca/gemfile.rb#171 - sig { params(path: ::String).returns(T::Boolean) } - def contains_path?(path); end - - # source://tapioca//lib/tapioca/gemfile.rb#161 - sig { returns(T::Array[::Gem::Dependency]) } - def dependencies; end - - # source://tapioca//lib/tapioca/gemfile.rb#201 - sig { returns(T::Boolean) } - def export_rbi_files?; end - - # source://tapioca//lib/tapioca/gemfile.rb#196 - sig { returns(T::Array[::String]) } - def exported_rbi_files; end - - # source://tapioca//lib/tapioca/gemfile.rb#206 - sig { returns(::RBI::MergeTree) } - def exported_rbi_tree; end - - # source://tapioca//lib/tapioca/gemfile.rb#133 - sig { returns(T::Array[::Pathname]) } - def files; end - - # source://tapioca//lib/tapioca/gemfile.rb#130 - sig { returns(::String) } - def full_gem_path; end - - # source://tapioca//lib/tapioca/gemfile.rb#151 - sig { params(gemfile_dir: ::String).returns(T::Boolean) } - def ignore?(gemfile_dir); end - - # source://tapioca//lib/tapioca/gemfile.rb#156 - sig { returns(::String) } - def name; end - - # source://tapioca//lib/tapioca/gemfile.rb#180 - sig { void } - def parse_yard_docs; end - - # source://tapioca//lib/tapioca/gemfile.rb#166 - sig { returns(::String) } - def rbi_file_name; end - - # source://tapioca//lib/tapioca/gemfile.rb#218 - sig { params(file: ::Pathname).returns(::Pathname) } - def relative_path_for(file); end - - # @return [String] - # - # source://tapioca//lib/tapioca/gemfile.rb#130 - def version; end - - private - - # source://tapioca//lib/tapioca/gemfile.rb#229 - sig { returns(T::Array[::Pathname]) } - def collect_files; end - - # source://tapioca//lib/tapioca/gemfile.rb#244 - sig { returns(T.nilable(T::Boolean)) } - def default_gem?; end - - # source://tapioca//lib/tapioca/gemfile.rb#303 - sig { returns(T::Boolean) } - def gem_ignored?; end - - # source://tapioca//lib/tapioca/gemfile.rb#282 - sig { params(path: ::String).returns(T::Boolean) } - def has_parent_gemspec?(path); end - - # source://tapioca//lib/tapioca/gemfile.rb#249 - sig { returns(::Regexp) } - def require_paths_prefix_matcher; end - - # source://tapioca//lib/tapioca/gemfile.rb#261 - sig { params(file: ::String).returns(::Pathname) } - def resolve_to_ruby_lib_dir(file); end - - # source://tapioca//lib/tapioca/gemfile.rb#275 - sig { returns(::String) } - def version_string; end - - class << self - # source://tapioca//lib/tapioca/gemfile.rb#104 - sig { returns(T::Hash[::String, ::Tapioca::Gemfile::GemSpec]) } - def spec_lookup_by_file_path; end - end -end - -# source://tapioca//lib/tapioca/gemfile.rb#116 -Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) - -# source://tapioca//lib/tapioca/gemfile.rb#10 -Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) } - -# source://tapioca//lib/tapioca/loaders/loader.rb#5 -module Tapioca::Loaders; end - -# source://tapioca//lib/tapioca/loaders/dsl.rb#6 -class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader - # source://tapioca//lib/tapioca/loaders/dsl.rb#38 - sig do - params( - tapioca_path: ::String, - eager_load: T::Boolean, - app_root: ::String, - halt_upon_load_error: T::Boolean - ).void - end - def initialize(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/loaders/dsl.rb#27 - sig { override.void } - def load; end - - protected - - # source://tapioca//lib/tapioca/loaders/dsl.rb#81 - sig { void } - def load_application; end - - # source://tapioca//lib/tapioca/loaders/dsl.rb#63 - sig { void } - def load_dsl_compilers; end - - # source://tapioca//lib/tapioca/loaders/dsl.rb#48 - sig { void } - def load_dsl_extensions; end - - class << self - # source://tapioca//lib/tapioca/loaders/dsl.rb#15 - sig do - params( - tapioca_path: ::String, - eager_load: T::Boolean, - app_root: ::String, - halt_upon_load_error: T::Boolean - ).void - end - def load_application(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - end -end - -# source://tapioca//lib/tapioca/loaders/gem.rb#6 -class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader - # source://tapioca//lib/tapioca/loaders/gem.rb#49 - sig do - params( - bundle: ::Tapioca::Gemfile, - prerequire: T.nilable(::String), - postrequire: ::String, - default_command: ::String, - halt_upon_load_error: T::Boolean - ).void - end - def initialize(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:); end - - # source://tapioca//lib/tapioca/loaders/gem.rb#34 - sig { override.void } - def load; end - - protected - - # source://tapioca//lib/tapioca/loaders/gem.rb#80 - sig { params(file: ::String, error: ::LoadError).void } - def explain_failed_require(file, error); end - - # source://tapioca//lib/tapioca/loaders/gem.rb#60 - sig { void } - def require_gem_file; end - - class << self - # source://tapioca//lib/tapioca/loaders/gem.rb#21 - sig do - params( - bundle: ::Tapioca::Gemfile, - prerequire: T.nilable(::String), - postrequire: ::String, - default_command: ::String, - halt_upon_load_error: T::Boolean - ).void - end - def load_application(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:); end - end -end - -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://tapioca//lib/tapioca/loaders/loader.rb#6 -class Tapioca::Loaders::Loader - include ::Thor::Base - include ::Thor::Invocation - include ::Thor::Shell - include ::Tapioca::CliHelper - include ::Tapioca::GemHelper - extend ::Thor::Base::ClassMethods - extend ::Thor::Invocation::ClassMethods - - abstract! - - # @abstract - # - # source://tapioca//lib/tapioca/loaders/loader.rb#17 - sig { abstract.void } - def load; end - - private - - # Rails 7.2 renamed `eager_load_paths` to `all_eager_load_paths`, which maintains the same original functionality. - # The `eager_load_paths` method still exists, but doesn't return all paths anymore and causes Tapioca to miss some - # engine paths. The following commit is the change: - # https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664 - # - # @param engine [T.class_of(Rails::Engine)] - # @return [Array] - # - # source://sorbet-runtime/0.5.11444/lib/types/private/methods/_methods.rb#257 - def eager_load_paths(*args, **_arg1, &blk); end - - # source://tapioca//lib/tapioca/loaders/loader.rb#188 - sig { void } - def eager_load_rails_app; end - - # @return [Array] - # - # source://tapioca//lib/tapioca/loaders/loader.rb#167 - def engines; end - - # source://tapioca//lib/tapioca/loaders/loader.rb#29 - sig do - params( - gemfile: ::Tapioca::Gemfile, - initialize_file: T.nilable(::String), - require_file: T.nilable(::String), - halt_upon_load_error: T::Boolean - ).void - end - def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end - - # source://tapioca//lib/tapioca/loaders/loader.rb#125 - sig { void } - def load_engines_in_classic_mode; end - - # source://tapioca//lib/tapioca/loaders/loader.rb#103 - sig { void } - def load_engines_in_zeitwerk_mode; end - - # source://tapioca//lib/tapioca/loaders/loader.rb#49 - sig do - params( - environment_load: T::Boolean, - eager_load: T::Boolean, - app_root: ::String, - halt_upon_load_error: T::Boolean - ).void - end - def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/loaders/loader.rb#78 - sig { void } - def load_rails_engines; end - - # source://tapioca//lib/tapioca/loaders/loader.rb#209 - sig { params(file: T.nilable(::String)).void } - def require_helper(file); end - - # source://tapioca//lib/tapioca/loaders/loader.rb#92 - def run_initializers; end - - # source://tapioca//lib/tapioca/loaders/loader.rb#181 - sig { params(path: ::String).void } - def safe_require(path); end - - # source://tapioca//lib/tapioca/loaders/loader.rb#150 - sig { params(blk: T.proc.void).void } - def with_rails_application(&blk); end - - # source://tapioca//lib/tapioca/loaders/loader.rb#143 - sig { returns(T::Boolean) } - def zeitwerk_mode?; end -end - -# source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#5 -module Tapioca::RBIFilesHelper - requires_ancestor { Tapioca::SorbetHelper } - requires_ancestor { Thor::Shell } - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#48 - sig do - params( - index: ::RBI::Index, - shim_rbi_dir: ::String, - todo_rbi_file: ::String - ).returns(T::Hash[::String, T::Array[::RBI::Node]]) - end - def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#13 - sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void } - def index_rbi(index, kind, file); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#25 - sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void } - def index_rbis(index, kind, dir, number_of_workers:); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#65 - sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) } - def location_to_payload_url(loc, path_prefix:); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#86 - sig do - params( - command: ::String, - gem_dir: ::String, - dsl_dir: ::String, - auto_strictness: T::Boolean, - gems: T::Array[::Tapioca::Gemfile::GemSpec], - compilers: T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)] - ).void - end - def validate_rbi_files(command:, gem_dir:, dsl_dir:, auto_strictness:, gems: T.unsafe(nil), compilers: T.unsafe(nil)); end - - private - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#223 - sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) } - def extract_empty_scopes(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#228 - sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) } - def extract_methods_and_attrs(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#238 - sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) } - def extract_mixins(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#248 - sig do - params( - nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)] - ).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) - end - def extract_nodes_with_sigs(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#216 - sig do - params( - nodes: T::Array[::RBI::Node], - shim_rbi_dir: ::String, - todo_rbi_file: ::String - ).returns(T::Array[::RBI::Node]) - end - def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#280 - sig { params(path: ::String).returns(::String) } - def gem_name_from_rbi_path(path); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#155 - sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void } - def parse_and_index_files(index, files, number_of_workers:); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#171 - sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) } - def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#253 - sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void } - def update_gem_rbis_strictnesses(errors, gem_dir); end -end - -# source://tapioca//lib/tapioca/rbi_formatter.rb#5 -class Tapioca::RBIFormatter < ::RBI::Formatter - # source://tapioca//lib/tapioca/rbi_formatter.rb#24 - sig { params(file: ::RBI::File).void } - def write_empty_body_comment!(file); end - - # source://tapioca//lib/tapioca/rbi_formatter.rb#15 - sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void } - def write_header!(file, command, reason: T.unsafe(nil)); end -end - -# source://tapioca//lib/tapioca/helpers/rbi_helper.rb#5 -module Tapioca::RBIHelper - include ::Tapioca::SorbetHelper - extend ::Tapioca::SorbetHelper - extend ::Tapioca::RBIHelper - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#91 - sig { params(type: ::String).returns(::String) } - def as_nilable_type(type); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100 - sig { params(type: ::String).returns(::String) } - def as_non_nilable_type(type); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#72 - sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } - def create_block_param(name, type:); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#62 - sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } - def create_kw_opt_param(name, type:, default:); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#57 - sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } - def create_kw_param(name, type:); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#67 - sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } - def create_kw_rest_param(name, type:); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#47 - sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } - def create_opt_param(name, type:, default:); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#42 - sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } - def create_param(name, type:); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#52 - sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } - def create_rest_param(name, type:); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#77 - sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) } - def create_typed_param(param, type); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#82 - sig { params(sig_string: ::String).returns(::String) } - def sanitize_signature_types(sig_string); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#109 - sig { params(name: ::String).returns(T::Boolean) } - def valid_method_name?(name); end - - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#123 - sig { params(name: ::String).returns(T::Boolean) } - def valid_parameter_name?(name); end - - class << self - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#23 - sig do - params( - type: ::String, - variance: ::Symbol, - fixed: T.nilable(::String), - upper: T.nilable(::String), - lower: T.nilable(::String) - ).returns(::String) - end - def serialize_type_variable(type, variance, fixed, upper, lower); end - end -end - -# source://tapioca//lib/tapioca/repo_index.rb#5 -class Tapioca::RepoIndex - # source://tapioca//lib/tapioca/repo_index.rb#26 - sig { void } - def initialize; end - - # source://tapioca//lib/tapioca/repo_index.rb#31 - sig { params(gem_name: ::String).void } - def <<(gem_name); end - - # source://tapioca//lib/tapioca/repo_index.rb#36 - sig { returns(T::Enumerable[::String]) } - def gems; end - - # source://tapioca//lib/tapioca/repo_index.rb#41 - sig { params(gem_name: ::String).returns(T::Boolean) } - def has_gem?(gem_name); end - - class << self - # source://tapioca//lib/tapioca/repo_index.rb#18 - sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) } - def from_hash(hash); end - - # source://tapioca//lib/tapioca/repo_index.rb#13 - sig { params(json: ::String).returns(Tapioca::RepoIndex) } - def from_json(json); end - end -end - -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#5 -module Tapioca::Runtime; end - -# This module should only be included when running versions of Ruby -# older than 3.2. Because the Class#attached_object method is not -# available, it implements finding the attached class of a singleton -# class by iterating through ObjectSpace. -module Tapioca::Runtime::AttachedClassOf - # source://tapioca//lib/tapioca/runtime/attached_class_of_32.rb#14 - sig { params(singleton_class: ::Class).returns(T.nilable(::Module)) } - def attached_class_of(singleton_class); end -end - -# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#6 -class Tapioca::Runtime::DynamicMixinCompiler - include ::Tapioca::Runtime::AttachedClassOf - include ::Tapioca::Runtime::Reflection - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#20 - sig { params(constant: ::Module).void } - def initialize(constant); end - - # @return [Array] - # - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 - def class_attribute_predicates; end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 - sig { returns(T::Array[::Symbol]) } - def class_attribute_readers; end - - # @return [Array] - # - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 - def class_attribute_writers; end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#137 - sig { params(tree: ::RBI::Tree).void } - def compile_class_attributes(tree); end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#180 - sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) } - def compile_mixes_in_class_methods(tree); end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 - sig { returns(T::Array[::Module]) } - def dynamic_extends; end - - # @return [Array] - # - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 - def dynamic_includes; end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#132 - sig { returns(T::Boolean) } - def empty_attributes?; end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#222 - sig { params(qualified_mixin_name: ::String).returns(T::Boolean) } - def filtered_mixin?(qualified_mixin_name); end - - # @return [Array] - # - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 - def instance_attribute_predicates; end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 - sig { returns(T::Array[::Symbol]) } - def instance_attribute_readers; end - - # @return [Array] - # - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 - def instance_attribute_writers; end - - # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#215 - sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) } - def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end -end - -# This class is responsible for storing and looking up information related to generic types. -# -# The class stores 2 different kinds of data, in two separate lookup tables: -# 1. a lookup of generic type instances by name: `@generic_instances` -# 2. a lookup of type variable serializer by constant and type variable -# instance: `@type_variables` -# -# By storing the above data, we can cheaply query each constant against this registry -# to see if it declares any generic type variables. This becomes a simple lookup in the -# `@type_variables` hash table with the given constant. -# -# If there is no entry, then we can cheaply know that we can skip generic type -# information generation for this type. -# -# On the other hand, if we get a result, then the result will be a hash of type -# variable to type variable serializers. This allows us to associate type variables -# to the constant names that represent them, easily. -# -# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#23 -module Tapioca::Runtime::GenericTypeRegistry - class << self - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80 - sig { params(instance: ::Object).returns(T::Boolean) } - def generic_type_instance?(instance); end - - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#85 - sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) } - def lookup_type_variables(constant); end - - # This method is responsible for building the name of the instantiated concrete type - # and cloning the given constant so that we can return a type that is the same - # as the current type but is a different instance and has a different name method. - # - # We cache those cloned instances by their name in `@generic_instances`, so that - # we don't keep instantiating a new type every single time it is referenced. - # For example, `[Foo[Integer], Foo[Integer], Foo[Integer], Foo[String]]` will only - # result in 2 clones (1 for `Foo[Integer]` and another for `Foo[String]`) and - # 2 hash lookups (for the other two `Foo[Integer]`s). - # - # This method returns the created or cached clone of the constant. - # - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#65 - sig { params(constant: T.untyped, types: T.untyped).returns(::Module) } - def register_type(constant, types); end - - # This method is called from intercepted calls to `type_member` and `type_template`. - # We get passed all the arguments to those methods, as well as the `T::Types::TypeVariable` - # instance generated by the Sorbet defined `type_member`/`type_template` call on `T::Generic`. - # - # This method creates a `String` with that data and stores it in the - # `@type_variables` lookup table, keyed by the `constant` and `type_variable`. - # - # Finally, the original `type_variable` is returned from this method, so that the caller - # can return it from the original methods as well. - # - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#104 - sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void } - def register_type_variable(constant, type_variable); end - - private - - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#113 - sig { params(constant: ::Module, name: ::String).returns(::Module) } - def create_generic_type(constant, name); end - - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#155 - sig { params(constant: T::Class[T.anything]).returns(T::Class[T.anything]) } - def create_safe_subclass(constant); end - - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#182 - sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) } - def lookup_or_initialize_type_variables(constant); end - end -end - -# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#34 -class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#38 - sig { params(raw_type: ::Module, underlying_type: ::Module).void } - def initialize(raw_type, underlying_type); end - - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45 - sig { params(obj: T.untyped).returns(T::Boolean) } - def valid?(obj); end -end - -module Tapioca::Runtime::Reflection - include ::Tapioca::Runtime::AttachedClassOf - extend ::Tapioca::Runtime::AttachedClassOf - extend ::Tapioca::Runtime::Reflection - - # source://tapioca//lib/tapioca/runtime/reflection.rb#196 - sig { params(constant: ::Module).returns(T.untyped) } - def abstract_type_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#77 - sig { params(constant: ::Module).returns(T::Array[::Module]) } - def ancestors_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#92 - sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) } - def are_equal?(object, other); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#56 - sig { params(object: ::BasicObject).returns(T::Class[T.anything]) } - def class_of(object); end - - # @param constant [BasicObject] - # @return [Boolean] - # - # source://tapioca//lib/tapioca/runtime/reflection.rb#38 - def constant_defined?(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#49 - sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) } - def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#61 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } - def constants_of(constant); end - - # Returns an array with all classes that are < than the supplied class. - # - # class C; end - # descendants_of(C) # => [] - # - # class B < C; end - # descendants_of(C) # => [B] - # - # class A < B; end - # descendants_of(C) # => [B, A] - # - # class D < C; end - # descendants_of(C) # => [B, A, D] - # - # source://tapioca//lib/tapioca/runtime/reflection.rb#167 - sig do - type_parameters(:U) - .params( - klass: T.all(T.type_parameter(:U), T::Class[T.anything]) - ).returns(T::Array[T.type_parameter(:U)]) - end - def descendants_of(klass); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#189 - sig { params(constant: ::Module).returns(T::Set[::String]) } - def file_candidates_for(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#202 - sig { params(constant: ::Module).returns(T::Boolean) } - def final_module?(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#112 - sig { params(constant: ::Module).returns(T::Array[::Module]) } - def inherited_ancestors_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#145 - sig { params(constant: ::Module, method: ::Symbol).returns(::Method) } - def method_of(constant, method); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#66 - sig { params(constant: ::Module).returns(T.nilable(::String)) } - def name_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#140 - sig { params(type: ::T::Types::Base).returns(::String) } - def name_of_type(type); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#87 - sig { params(object: ::BasicObject).returns(::Integer) } - def object_id_of(object); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#107 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } - def private_instance_methods_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#102 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } - def protected_instance_methods_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#97 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } - def public_instance_methods_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#121 - sig { params(constant: ::Module).returns(T.nilable(::String)) } - def qualified_name_of(constant); end - - # Examines the call stack to identify the closest location where a "require" is performed - # by searching for the label "". If none is found, it returns the location - # labeled "
", which is the original call site. - # - # source://tapioca//lib/tapioca/runtime/reflection.rb#179 - sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) } - def resolve_loc(locations); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#207 - sig { params(constant: ::Module).returns(T::Boolean) } - def sealed_module?(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#133 - sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } - def signature_of(method); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#72 - sig { params(constant: ::Module).returns(T::Class[T.anything]) } - def singleton_class_of(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#82 - sig { params(constant: T::Class[T.anything]).returns(T.nilable(T::Class[T.anything])) } - def superclass_of(constant); end - - private - - # source://tapioca//lib/tapioca/runtime/reflection.rb#244 - sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) } - def child_module_for_parent_with_name(parent, name); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#260 - sig { params(name: ::String).returns(T::Boolean) } - def has_aliased_namespace?(name); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#255 - sig { params(method: ::UnboundMethod).returns(T::Boolean) } - def method_defined_by_forwardable_module?(method); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#230 - sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } - def methods_for(constant); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#214 - sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } - def relevant_methods_for(constant); end -end - -# source://tapioca//lib/tapioca/runtime/reflection.rb#25 -Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#21 -Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#22 -Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#28 -Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#32 -Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#23 -Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#27 -Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#31 -Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#30 -Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#29 -Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#35 -Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#24 -Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/reflection.rb#26 -Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) - -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#6 -module Tapioca::Runtime::Trackers - class << self - # source://tapioca//lib/tapioca/runtime/trackers.rb#34 - sig { void } - def disable_all!; end - - # source://tapioca//lib/tapioca/runtime/trackers.rb#39 - sig { params(tracker: ::Tapioca::Runtime::Trackers::Tracker).void } - def register_tracker(tracker); end - - # source://tapioca//lib/tapioca/runtime/trackers.rb#21 - sig do - type_parameters(:Return) - .params( - blk: T.proc.returns(T.type_parameter(:Return)) - ).returns(T.type_parameter(:Return)) - end - def with_trackers_enabled(&blk); end - end -end - -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#7 -module Tapioca::Runtime::Trackers::Autoload - extend ::Tapioca::Runtime::Trackers::Tracker - - class << self - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#19 - sig { void } - def eager_load_all!; end - - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#31 - sig { params(constant_name: ::String).void } - def register(constant_name); end - - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#42 - sig do - type_parameters(:Result) - .params( - block: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end - def with_disabled_exits(&block); end - end -end - -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#11 -Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc) - -# Registers a TracePoint immediately upon load to track points at which -# classes and modules are opened for definition. This is used to track -# correspondence between classes/modules and files, as this information isn't -# available in the ruby runtime without extra accounting. -module Tapioca::Runtime::Trackers::ConstantDefinition - extend ::Tapioca::Runtime::Trackers::Tracker - extend ::Tapioca::Runtime::AttachedClassOf - extend ::Tapioca::Runtime::Reflection - - class << self - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#61 - def build_constant_location(tp, locations); end - - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#55 - def disable!; end - - # Returns the files in which this class or module was opened. Doesn't know - # about situations where the class was opened prior to +require+ing, - # or where metaprogramming was used via +eval+, etc. - # - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#71 - def files_for(klass); end - - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#75 - def locations_for(klass); end - end -end - -module Tapioca::Runtime::Trackers::Mixin - extend ::Tapioca::Runtime::Trackers::Tracker - - class << self - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#56 - sig do - params( - mixin: ::Module - ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) - end - def constants_with_mixin(mixin); end - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#61 - sig do - params( - mixin: ::Module, - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, - constant: ::Module - ).returns(T.nilable(::String)) - end - def mixin_location(mixin, mixin_type, constant); end - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#35 - sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void } - def register(constant, mixin, mixin_type); end - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#43 - def resolve_to_attached_class(constant, mixin, mixin_type); end - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#30 - sig do - type_parameters(:Result) - .params( - block: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end - def with_disabled_registration(&block); end - - private - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#76 - sig do - params( - mixin: ::Module - ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) - end - def find_or_initialize_mixin_lookup(mixin); end - - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#68 - sig do - params( - constant: ::Module, - mixin: ::Module, - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, - location: ::String - ).void - end - def register_with_location(constant, mixin, mixin_type, location); end - end -end - -class Tapioca::Runtime::Trackers::Mixin::Type < ::T::Enum - enums do - Prepend = new - Include = new - Extend = new - end -end - -# source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#7 -module Tapioca::Runtime::Trackers::RequiredAncestor - extend ::Tapioca::Runtime::Trackers::Tracker - - class << self - # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#15 - sig { params(requiring: ::T::Helpers, block: T.proc.void).void } - def register(requiring, block); end - - # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#23 - sig { params(mod: ::Module).returns(T::Array[T.proc.void]) } - def required_ancestors_blocks_by(mod); end - - # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#28 - sig { params(mod: ::Module).returns(T::Array[T.untyped]) } - def required_ancestors_by(mod); end - end -end - -# @abstract Subclasses must implement the `abstract` methods below. -module Tapioca::Runtime::Trackers::Tracker - abstract! - - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#26 - sig { void } - def disable!; end - - # @return [Boolean] - # - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#30 - def enabled?; end - - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#34 - def with_disabled_tracker(&block); end - - class << self - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#17 - sig { params(base: T.all(::Module, ::Tapioca::Runtime::Trackers::Tracker)).void } - def extended(base); end - end -end - -# source://tapioca//lib/tapioca.rb#33 -Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#32 -Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5 -module Tapioca::SorbetHelper - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#32 - sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) } - def sorbet(*sorbet_args); end - - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#37 - sig { returns(::String) } - def sorbet_path; end - - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#44 - sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) } - def sorbet_supports?(feature, version: T.unsafe(nil)); end -end - -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#24 -Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash) - -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#13 -Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname) - -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18 -Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#8 -Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification) - -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#20 -Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#22 -Tapioca::SorbetHelper::SPOOM_CONTEXT = T.let(T.unsafe(nil), Spoom::Context) - -# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#5 -module Tapioca::Static; end - -# source://tapioca//lib/tapioca/static/requires_compiler.rb#6 -class Tapioca::Static::RequiresCompiler - # source://tapioca//lib/tapioca/static/requires_compiler.rb#10 - sig { params(sorbet_path: ::String).void } - def initialize(sorbet_path); end - - # source://tapioca//lib/tapioca/static/requires_compiler.rb#15 - sig { returns(::String) } - def compile; end - - private - - # source://tapioca//lib/tapioca/static/requires_compiler.rb#29 - sig { params(config: ::Spoom::Sorbet::Config).returns(T::Array[::String]) } - def collect_files(config); end - - # source://tapioca//lib/tapioca/static/requires_compiler.rb#44 - sig { params(file_path: ::String).returns(T::Enumerable[::String]) } - def collect_requires(file_path); end - - # source://tapioca//lib/tapioca/static/requires_compiler.rb#51 - sig { params(config: ::Spoom::Sorbet::Config, file_path: ::Pathname).returns(T::Boolean) } - def file_ignored_by_sorbet?(config, file_path); end - - # source://tapioca//lib/tapioca/static/requires_compiler.rb#80 - sig { params(path: ::Pathname).returns(T::Array[::String]) } - def path_parts(path); end -end - -# source://tapioca//lib/tapioca/static/symbol_loader.rb#6 -module Tapioca::Static::SymbolLoader - extend ::Tapioca::SorbetHelper - extend ::Tapioca::Runtime::AttachedClassOf - extend ::Tapioca::Runtime::Reflection - - class << self - # source://tapioca//lib/tapioca/static/symbol_loader.rb#23 - sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } - def engine_symbols(gem); end - - # source://tapioca//lib/tapioca/static/symbol_loader.rb#48 - sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } - def gem_symbols(gem); end - - # source://tapioca//lib/tapioca/static/symbol_loader.rb#13 - sig { returns(T::Set[::String]) } - def payload_symbols; end - - # source://tapioca//lib/tapioca/static/symbol_loader.rb#53 - sig { params(paths: T::Array[::Pathname]).returns(T::Set[::String]) } - def symbols_from_paths(paths); end - - private - - # @return [Array] - # - # source://sorbet-runtime/0.5.11444/lib/types/private/methods/_methods.rb#257 - def engines(*args, **_arg1, &blk); end - - # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 - sig { params(input: ::String, table_type: ::String).returns(::String) } - def symbol_table_json_from(input, table_type: T.unsafe(nil)); end - end -end - -# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#6 -class Tapioca::Static::SymbolTableParser - # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#30 - sig { void } - def initialize; end - - # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#65 - sig { params(name: ::String).returns(::String) } - def fully_qualified_name(name); end - - # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#36 - sig { params(object: T::Hash[::String, T.untyped]).void } - def parse_object(object); end - - # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#27 - sig { returns(T::Set[::String]) } - def symbols; end - - class << self - # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#15 - sig { params(json_string: ::String).returns(T::Set[::String]) } - def parse_json(json_string); end - end -end - -# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9 -Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array) - -# source://tapioca//lib/tapioca.rb#35 -Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca.rb#34 -Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#108 -class Tapioca::TypeVariable < ::T::Types::TypeVariable - # @return [TypeVariable] a new instance of TypeVariable - # - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#109 - def initialize(name, variance); end - - # Returns the value of attribute name. - # - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#114 - def name; end -end - -# This is subclassing from `Module` so that instances of this type will be modules. -# The reason why we want that is because that means those instances will automatically -# get bound to the constant names they are assigned to by Ruby. As a result, we don't -# need to do any matching of constants to type variables to bind their names, Ruby will -# do that automatically for us and we get the `name` method for free from `Module`. -# -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#122 -class Tapioca::TypeVariableModule < ::Module - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#146 - sig do - params( - context: ::Module, - type: ::Tapioca::TypeVariableModule::Type, - variance: ::Symbol, - bounds_proc: T.nilable(T.proc.returns(T::Hash[::Symbol, T.untyped])) - ).void - end - def initialize(context, type, variance, bounds_proc); end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#181 - sig { returns(::Tapioca::TypeVariable) } - def coerce_to_type_variable; end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#161 - sig { returns(T::Boolean) } - def fixed?; end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#155 - sig { returns(T.nilable(::String)) } - def name; end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#166 - sig { returns(::String) } - def serialize; end - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#136 - sig { returns(::Tapioca::TypeVariableModule::Type) } - def type; end - - private - - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#188 - sig { returns(T::Hash[::Symbol, T.untyped]) } - def bounds; end -end - -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#133 -Tapioca::TypeVariableModule::DEFAULT_BOUNDS_PROC = T.let(T.unsafe(nil), Proc) - -# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#125 -class Tapioca::TypeVariableModule::Type < ::T::Enum - enums do - Member = new - Template = new - HasAttachedClass = new - end -end - -# source://tapioca//lib/tapioca/version.rb#5 -Tapioca::VERSION = T.let(T.unsafe(nil), String) - -# source://tapioca//lib/tapioca/helpers/source_uri.rb#7 -class URI::Source < ::URI::File - # source://tapioca//lib/tapioca/helpers/source_uri.rb#58 - sig { params(v: T.nilable(::String)).returns(T::Boolean) } - def check_host(v); end - - # source://uri/0.13.0/uri/generic.rb#243 - def gem_name; end - - # source://tapioca//lib/tapioca/helpers/source_uri.rb#25 - sig { returns(T.nilable(::String)) } - def gem_version; end - - # source://uri/0.13.0/uri/generic.rb#283 - def line_number; end - - # source://tapioca//lib/tapioca/helpers/source_uri.rb#51 - sig { params(v: T.nilable(::String)).void } - def set_path(v); end - - # source://tapioca//lib/tapioca/helpers/source_uri.rb#70 - sig { returns(::String) } - def to_s; end - - class << self - # source://tapioca//lib/tapioca/helpers/source_uri.rb#38 - sig do - params( - gem_name: ::String, - gem_version: T.nilable(::String), - path: ::String, - line_number: T.nilable(::String) - ).returns(::URI::Source) - end - def build(gem_name:, gem_version:, path:, line_number:); end - end -end - -# source://tapioca//lib/tapioca/helpers/source_uri.rb#10 -URI::Source::COMPONENT = T.let(T.unsafe(nil), Array) diff --git a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi similarity index 90% rename from sorbet/rbi/gems/yard-sorbet@0.8.1.rbi rename to sorbet/rbi/gems/yard-sorbet@0.9.0.rbi index 933d6e8..7f07f6f 100644 --- a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +++ b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi @@ -36,7 +36,7 @@ end # source://yard-sorbet//lib/yard-sorbet/handlers.rb#7 module YARDSorbet::Handlers; end -# Apllies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present). +# Applies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present). # # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7 class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base @@ -95,7 +95,7 @@ end # # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9 class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base - # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#23 + # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#21 sig { void } def process; end @@ -121,7 +121,7 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#73 sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void } - def document_attr_methods(method_objects); end + def document_attrs(method_objects); end # An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr* # declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr* @@ -131,7 +131,7 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) } def merged_into_attr?(attr_node); end - # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#78 + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#76 sig do params( attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode), @@ -141,15 +141,15 @@ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base end def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end - # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#99 + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#97 sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void } def parse_params(node, docstring); end - # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#109 + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#107 sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void } def parse_return(node, docstring); end - # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#87 + # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#85 sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void } def parse_sig(docstring, include_params: T.unsafe(nil)); end @@ -223,27 +223,27 @@ class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base sig { returns(T::Boolean) } def immutable?; end - # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#44 + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#42 sig { params(kwd: ::String).returns(T.nilable(::String)) } def kw_arg(kwd); end - # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#49 + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#45 sig { params(name: ::String).returns(::YARDSorbet::TStructProp) } def make_prop(name); end - # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60 + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#56 sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) } def params; end # Register the field explicitly as an attribute. # - # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#66 + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60 sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void } def register_attrs(object, name); end # Store the prop for use in the constructor definition # - # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#74 + # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#68 sig { params(prop: ::YARDSorbet::TStructProp).void } def update_state(prop); end end @@ -267,13 +267,19 @@ module YARDSorbet::NodeUtils end def bfs_traverse(node, &_blk); end - # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#32 + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#31 sig { params(node: ::YARD::Parser::Ruby::AstNode).void } def delete_node(node); end + # Enqueue the eligible children of a node in the BFS queue + # + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#35 + sig { params(queue: ::Thread::Queue, node: ::YARD::Parser::Ruby::AstNode).void } + def enqueue_children(queue, node); end + # Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like # - # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#38 + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#48 sig do params( node: ::YARD::Parser::Ruby::AstNode @@ -285,17 +291,17 @@ module YARDSorbet::NodeUtils # # @raise [IndexError] if the node does not have an adjacent sibling (ascending) # - # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#45 + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#53 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) } def sibling_node(node); end - # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#52 + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#60 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) } def sigable_node?(node); end # @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names # - # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#63 + # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#71 sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) } def validated_attribute_names(attr_node); end end @@ -329,43 +335,43 @@ module YARDSorbet::SigToYARD private - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#61 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#58 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) } def build_generic_type(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#70 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#67 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } def convert_aref(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#82 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#79 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } def convert_array(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#90 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#87 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } def convert_collection(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#97 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#94 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } def convert_hash(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#105 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#102 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } def convert_list(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#31 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#28 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } def convert_node(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#43 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#40 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) } def convert_node_type(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#110 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#107 sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) } def convert_t_method(node); end - # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#121 + # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#118 sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) } def convert_unknown(node); end end @@ -382,7 +388,7 @@ class YARDSorbet::TStructProp < ::T::Struct const :types, T::Array[::String] class << self - # source://sorbet-runtime/0.5.11391/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11475/lib/types/struct.rb#13 def inherited(s); end end end @@ -404,7 +410,7 @@ module YARDSorbet::TagUtils # Create or update a `YARD` tag with type information # - # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#30 + # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#28 sig do params( docstring: ::YARD::Docstring, diff --git a/sorbet/tapioca/config.yml b/sorbet/tapioca/config.yml index 306486f..4cb8c5b 100644 --- a/sorbet/tapioca/config.yml +++ b/sorbet/tapioca/config.yml @@ -1,4 +1,7 @@ gem: exclude: - rdoc + - spoom + - tapioca + - rbi workers: 5