diff --git a/Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi b/Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi deleted file mode 100644 index f61e06845c..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/byebug@11.1.3.rbi +++ /dev/null @@ -1,36 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `byebug` gem. -# Please instead update this file by running `bin/tapioca gem byebug`. - -# Reopen main module to define the library version -# -# source://byebug//lib/byebug/attacher.rb#6 -module Byebug - class << self - # Starts byebug, and stops at the first line of user's code. - # - # source://byebug//lib/byebug/attacher.rb#10 - def attach; end - - # source://byebug//lib/byebug/attacher.rb#21 - def spawn(host = T.unsafe(nil), port = T.unsafe(nil)); end - end -end - -# Adds a `byebug` method to the Kernel module. -# -# Dropping a `byebug` call anywhere in your code, you get a debug prompt. -# -# source://byebug//lib/byebug/attacher.rb#34 -module Kernel - # source://byebug//lib/byebug/attacher.rb#35 - def byebug; end - - # source://byebug//lib/byebug/attacher.rb#35 - def debugger; end - - # source://byebug//lib/byebug/attacher.rb#41 - def remote_byebug(host = T.unsafe(nil), port = T.unsafe(nil)); end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi b/Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi deleted file mode 100644 index 0ada31cfb6..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/coderay@1.1.3.rbi +++ /dev/null @@ -1,3426 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `coderay` gem. -# Please instead update this file by running `bin/tapioca gem coderay`. - -# = CodeRay Library -# -# CodeRay is a Ruby library for syntax highlighting. -# -# I try to make CodeRay easy to use and intuitive, but at the same time fully -# featured, complete, fast and efficient. -# -# See README. -# -# It consists mainly of -# * the main engine: CodeRay (Scanners::Scanner, Tokens, Encoders::Encoder) -# * the plugin system: PluginHost, Plugin -# * the scanners in CodeRay::Scanners -# * the encoders in CodeRay::Encoders -# * the styles in CodeRay::Styles -# -# Here's a fancy graphic to light up this gray docu: -# -# http://cycnus.de/raindark/coderay/scheme.png -# -# == Documentation -# -# See CodeRay, Encoders, Scanners, Tokens. -# -# == Usage -# -# Remember you need RubyGems to use CodeRay, unless you have it in your load -# path. Run Ruby with -rubygems option if required. -# -# === Highlight Ruby code in a string as html -# -# require 'coderay' -# print CodeRay.scan('puts "Hello, world!"', :ruby).html -# -# # prints something like this: -# puts "Hello, world!" -# -# -# === Highlight C code from a file in a html div -# -# require 'coderay' -# print CodeRay.scan(File.read('ruby.h'), :c).div -# print CodeRay.scan_file('ruby.h').html.div -# -# You can include this div in your page. The used CSS styles can be printed with -# -# % coderay_stylesheet -# -# === Highlight without typing too much -# -# If you are one of the hasty (or lazy, or extremely curious) people, just run this file: -# -# % ruby -rubygems /path/to/coderay/coderay.rb > example.html -# -# and look at the file it created in your browser. -# -# = CodeRay Module -# -# The CodeRay module provides convenience methods for the engine. -# -# * The +lang+ and +format+ arguments select Scanner and Encoder to use. These are -# simply lower-case symbols, like :python or :html. -# * All methods take an optional hash as last parameter, +options+, that is send to -# the Encoder / Scanner. -# * Input and language are always sorted in this order: +code+, +lang+. -# (This is in alphabetical order, if you need a mnemonic ;) -# -# You should be able to highlight everything you want just using these methods; -# so there is no need to dive into CodeRay's deep class hierarchy. -# -# The examples in the demo directory demonstrate common cases using this interface. -# -# = Basic Access Ways -# -# Read this to get a general view what CodeRay provides. -# -# == Scanning -# -# Scanning means analysing an input string, splitting it up into Tokens. -# Each Token knows about what type it is: string, comment, class name, etc. -# -# Each +lang+ (language) has its own Scanner; for example, :ruby code is -# handled by CodeRay::Scanners::Ruby. -# -# CodeRay.scan:: Scan a string in a given language into Tokens. -# This is the most common method to use. -# CodeRay.scan_file:: Scan a file and guess the language using FileType. -# -# The Tokens object you get from these methods can encode itself; see Tokens. -# -# == Encoding -# -# Encoding means compiling Tokens into an output. This can be colored HTML or -# LaTeX, a textual statistic or just the number of non-whitespace tokens. -# -# Each Encoder provides output in a specific +format+, so you select Encoders via -# formats like :html or :statistic. -# -# CodeRay.encode:: Scan and encode a string in a given language. -# CodeRay.encode_tokens:: Encode the given tokens. -# CodeRay.encode_file:: Scan a file, guess the language using FileType and encode it. -# -# == All-in-One Encoding -# -# CodeRay.encode:: Highlight a string with a given input and output format. -# -# == Instanciating -# -# You can use an Encoder instance to highlight multiple inputs. This way, the setup -# for this Encoder must only be done once. -# -# CodeRay.encoder:: Create an Encoder instance with format and options. -# CodeRay.scanner:: Create an Scanner instance for lang, with '' as default code. -# -# To make use of CodeRay.scanner, use CodeRay::Scanner::code=. -# -# The scanning methods provide more flexibility; we recommend to use these. -# -# == Reusing Scanners and Encoders -# -# If you want to re-use scanners and encoders (because that is faster), see -# CodeRay::Duo for the most convenient (and recommended) interface. -# -# source://coderay//lib/coderay.rb#126 -module CodeRay - class << self - # Assuming the path is a subpath of lib/coderay/ - # - # source://coderay//lib/coderay.rb#133 - def coderay_path(*path); end - - # Encode a string. - # - # This scans +code+ with the the Scanner for +lang+ and then - # encodes it with the Encoder for +format+. - # +options+ will be passed to the Encoder. - # - # See CodeRay::Encoder.encode. - # - # source://coderay//lib/coderay.rb#196 - def encode(code, lang, format, options = T.unsafe(nil)); end - - # Encodes +filename+ (a path to a code file) with the Scanner for +lang+. - # - # See CodeRay.scan_file. - # Notice that the second argument is the output +format+, not the input language. - # - # Example: - # require 'coderay' - # page = CodeRay.encode_file 'some_c_code.c', :html - # - # source://coderay//lib/coderay.rb#221 - def encode_file(filename, format, options = T.unsafe(nil)); end - - # Encode pre-scanned Tokens. - # Use this together with CodeRay.scan: - # - # require 'coderay' - # - # # Highlight a short Ruby code example in a HTML span - # tokens = CodeRay.scan '1 + 2', :ruby - # puts CodeRay.encode_tokens(tokens, :span) - # - # source://coderay//lib/coderay.rb#209 - def encode_tokens(tokens, format, options = T.unsafe(nil)); end - - # Finds the Encoder class for +format+ and creates an instance, passing - # +options+ to it. - # - # Example: - # require 'coderay' - # - # stats = CodeRay.encoder(:statistic) - # stats.encode("puts 17 + 4\n", :ruby) - # - # puts '%d out of %d tokens have the kind :integer.' % [ - # stats.type_stats[:integer].count, - # stats.real_token_count - # ] - # #-> 2 out of 4 tokens have the kind :integer. - # - # source://coderay//lib/coderay.rb#260 - def encoder(format, options = T.unsafe(nil)); end - - # Extract the options for the scanner from the +options+ hash. - # - # Returns an empty Hash if :scanner_options is not set. - # - # This is used if a method like CodeRay.encode has to provide options - # for Encoder _and_ scanner. - # - # source://coderay//lib/coderay.rb#278 - def get_scanner_options(options); end - - # Highlight a string into a HTML
. - # - # CSS styles use classes, so you have to include a stylesheet - # in your output. - # - # See encode. - # - # source://coderay//lib/coderay.rb#232 - def highlight(code, lang, options = T.unsafe(nil), format = T.unsafe(nil)); end - - # Highlight a file into a HTML
. - # - # CSS styles use classes, so you have to include a stylesheet - # in your output. - # - # See encode. - # - # source://coderay//lib/coderay.rb#242 - def highlight_file(filename, options = T.unsafe(nil), format = T.unsafe(nil)); end - - # Scans the given +code+ (a String) with the Scanner for +lang+. - # - # This is a simple way to use CodeRay. Example: - # require 'coderay' - # page = CodeRay.scan("puts 'Hello, world!'", :ruby).html - # - # See also demo/demo_simple. - # - # source://coderay//lib/coderay.rb#168 - def scan(code, lang, options = T.unsafe(nil), &block); end - - # Scans +filename+ (a path to a code file) with the Scanner for +lang+. - # - # If +lang+ is :auto or omitted, the CodeRay::FileType module is used to - # determine it. If it cannot find out what type it is, it uses - # CodeRay::Scanners::Text. - # - # Calls CodeRay.scan. - # - # Example: - # require 'coderay' - # page = CodeRay.scan_file('some_c_code.c').html - # - # source://coderay//lib/coderay.rb#183 - def scan_file(filename, lang = T.unsafe(nil), options = T.unsafe(nil), &block); end - - # Finds the Scanner class for +lang+ and creates an instance, passing - # +options+ to it. - # - # See Scanner.new. - # - # source://coderay//lib/coderay.rb#268 - def scanner(lang, options = T.unsafe(nil), &block); end - end -end - -# source://coderay//lib/coderay.rb#130 -CodeRay::CODERAY_PATH = T.let(T.unsafe(nil), String) - -# = Duo -# -# A Duo is a convenient way to use CodeRay. You just create a Duo, -# giving it a lang (language of the input code) and a format (desired -# output format), and call Duo#highlight with the code. -# -# Duo makes it easy to re-use both scanner and encoder for a repetitive -# task. It also provides a very easy interface syntax: -# -# require 'coderay' -# CodeRay::Duo[:python, :div].highlight 'import this' -# -# Until you want to do uncommon things with CodeRay, I recommend to use -# this method, since it takes care of everything. -# -# source://coderay//lib/coderay/duo.rb#17 -class CodeRay::Duo - # Create a new Duo, holding a lang and a format to highlight code. - # - # simple: - # CodeRay::Duo[:ruby, :html].highlight 'bla 42' - # - # with options: - # CodeRay::Duo[:ruby, :html, :hint => :debug].highlight '????::??' - # - # alternative syntax without options: - # CodeRay::Duo[:ruby => :statistic].encode 'class << self; end' - # - # alternative syntax with options: - # CodeRay::Duo[{ :ruby => :statistic }, :do => :something].encode 'abc' - # - # The options are forwarded to scanner and encoder - # (see CodeRay.get_scanner_options). - # - # @return [Duo] a new instance of Duo - # - # source://coderay//lib/coderay/duo.rb#37 - def initialize(lang = T.unsafe(nil), format = T.unsafe(nil), options = T.unsafe(nil)); end - - # Tokenize and highlight the code using +scanner+ and +encoder+. - # Allows to use Duo like a proc object: - # - # CodeRay::Duo[:python => :yaml].call(code) - # - # or, in Ruby 1.9 and later: - # - # CodeRay::Duo[:python => :yaml].(code) - # - # source://coderay//lib/coderay/duo.rb#64 - def call(code, options = T.unsafe(nil)); end - - # Tokenize and highlight the code using +scanner+ and +encoder+. - # - # source://coderay//lib/coderay/duo.rb#64 - def encode(code, options = T.unsafe(nil)); end - - # The encoder of the duo. Only created once. - # - # source://coderay//lib/coderay/duo.rb#59 - def encoder; end - - # Returns the value of attribute format. - # - # source://coderay//lib/coderay/duo.rb#19 - def format; end - - # Sets the attribute format - # - # @param value the value to set the attribute format to. - # - # source://coderay//lib/coderay/duo.rb#19 - def format=(_arg0); end - - # Tokenize and highlight the code using +scanner+ and +encoder+. - # - # source://coderay//lib/coderay/duo.rb#64 - def highlight(code, options = T.unsafe(nil)); end - - # Returns the value of attribute lang. - # - # source://coderay//lib/coderay/duo.rb#19 - def lang; end - - # Sets the attribute lang - # - # @param value the value to set the attribute lang to. - # - # source://coderay//lib/coderay/duo.rb#19 - def lang=(_arg0); end - - # Returns the value of attribute options. - # - # source://coderay//lib/coderay/duo.rb#19 - def options; end - - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://coderay//lib/coderay/duo.rb#19 - def options=(_arg0); end - - # The scanner of the duo. Only created once. - # - # source://coderay//lib/coderay/duo.rb#54 - def scanner; end - - class << self - # To allow calls like Duo[:ruby, :html].highlight. - def [](*_arg0); end - end -end - -# This module holds the Encoder class and its subclasses. -# For example, the HTML encoder is named CodeRay::Encoders::HTML -# can be found in coderay/encoders/html. -# -# Encoders also provides methods and constants for the register -# mechanism and the [] method that returns the Encoder class -# belonging to the given format. -# -# source://coderay//lib/coderay/encoders.rb#10 -module CodeRay::Encoders - extend ::CodeRay::PluginHost -end - -# A simple Filter that removes all tokens of the :comment kind. -# -# Alias: +remove_comments+ -# -# Usage: -# CodeRay.scan('print # foo', :ruby).comment_filter.text -# #-> "print " -# -# See also: TokenKindFilter, LinesOfCode -# -# source://coderay//lib/coderay/encoders/comment_filter.rb#15 -class CodeRay::Encoders::CommentFilter < ::CodeRay::Encoders::TokenKindFilter; end - -# source://coderay//lib/coderay/encoders/comment_filter.rb#19 -CodeRay::Encoders::CommentFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# Returns the number of tokens. -# -# Text and block tokens are counted. -# -# source://coderay//lib/coderay/encoders/count.rb#7 -class CodeRay::Encoders::Count < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/count.rb#29 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/count.rb#29 - def begin_line(kind); end - - # source://coderay//lib/coderay/encoders/count.rb#29 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/count.rb#29 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/count.rb#25 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/count.rb#19 - def finish(options); end - - # source://coderay//lib/coderay/encoders/count.rb#13 - def setup(options); end -end - -# = Debug Encoder -# -# Fast encoder producing simple debug output. -# -# It is readable and diff-able and is used for testing. -# -# You cannot fully restore the tokens information from the -# output, because consecutive :space tokens are merged. -# -# See also: Scanners::Debug -# -# source://coderay//lib/coderay/encoders/debug.rb#14 -class CodeRay::Encoders::Debug < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/debug.rb#30 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/debug.rb#38 - def begin_line(kind); end - - # source://coderay//lib/coderay/encoders/debug.rb#34 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/debug.rb#42 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/debug.rb#20 - def text_token(text, kind); end -end - -# source://coderay//lib/coderay/encoders/debug.rb#18 -CodeRay::Encoders::Debug::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# = Debug Lint Encoder -# -# Debug encoder with additional checks for: -# -# - empty tokens -# - incorrect nesting -# -# It will raise an InvalidTokenStream exception when any of the above occurs. -# -# See also: Encoders::Debug -# -# source://coderay//lib/coderay/encoders/debug_lint.rb#16 -class CodeRay::Encoders::DebugLint < ::CodeRay::Encoders::Debug - # source://coderay//lib/coderay/encoders/debug_lint.rb#26 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/debug_lint.rb#37 - def begin_line(kind); end - - # @raise [Lint::IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/debug_lint.rb#31 - def end_group(kind); end - - # @raise [Lint::IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/debug_lint.rb#42 - def end_line(kind); end - - # @raise [Lint::EmptyToken] - # - # source://coderay//lib/coderay/encoders/debug_lint.rb#20 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/debug_lint.rb#55 - def finish(options); end - - # source://coderay//lib/coderay/encoders/debug_lint.rb#50 - def setup(options); end -end - -# Wraps HTML output into a DIV element, using inline styles by default. -# -# See Encoders::HTML for available options. -# -# source://coderay//lib/coderay/encoders/div.rb#9 -class CodeRay::Encoders::Div < ::CodeRay::Encoders::HTML; end - -# source://coderay//lib/coderay/encoders/div.rb#15 -CodeRay::Encoders::Div::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/div.rb#11 -CodeRay::Encoders::Div::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# = Encoder -# -# The Encoder base class. Together with Scanner and -# Tokens, it forms the highlighting triad. -# -# Encoder instances take a Tokens object and do something with it. -# -# The most common Encoder is surely the HTML encoder -# (CodeRay::Encoders::HTML). It highlights the code in a colorful -# html page. -# If you want the highlighted code in a div or a span instead, -# use its subclasses Div and Span. -# -# source://coderay//lib/coderay/encoders/encoder.rb#16 -class CodeRay::Encoders::Encoder - extend ::CodeRay::Plugin - - # Creates a new Encoder. - # +options+ is saved and used for all encode operations, as long - # as you don't overwrite it there by passing additional options. - # - # Encoder objects provide three encode methods: - # - encode simply takes a +code+ string and a +lang+ - # - encode_tokens expects a +tokens+ object instead - # - # Each method has an optional +options+ parameter. These are - # added to the options you passed at creation. - # - # @return [Encoder] a new instance of Encoder - # - # source://coderay//lib/coderay/encoders/encoder.rb#55 - def initialize(options = T.unsafe(nil)); end - - # source://coderay//lib/coderay/encoders/encoder.rb#87 - def <<(token); end - - # Starts a token group with the given +kind+. - # - # source://coderay//lib/coderay/encoders/encoder.rb#123 - def begin_group(kind); end - - # Starts a new line token group with the given +kind+. - # - # source://coderay//lib/coderay/encoders/encoder.rb#131 - def begin_line(kind); end - - # Encode the given +code+ using the Scanner for +lang+. - # - # source://coderay//lib/coderay/encoders/encoder.rb#70 - def encode(code, lang, options = T.unsafe(nil)); end - - # Encode a Tokens object. - # - # source://coderay//lib/coderay/encoders/encoder.rb#61 - def encode_tokens(tokens, options = T.unsafe(nil)); end - - # Ends a token group with the given +kind+. - # - # source://coderay//lib/coderay/encoders/encoder.rb#127 - def end_group(kind); end - - # Ends a new line token group with the given +kind+. - # - # source://coderay//lib/coderay/encoders/encoder.rb#135 - def end_line(kind); end - - # The default file extension for this encoder. - # - # source://coderay//lib/coderay/encoders/encoder.rb#83 - def file_extension; end - - # Encode the given +code+ using the Scanner for +lang+. - # You can use highlight instead of encode, if that seems - # more clear to you. - # - # source://coderay//lib/coderay/encoders/encoder.rb#70 - def highlight(code, lang, options = T.unsafe(nil)); end - - # The options you gave the Encoder at creating. - # - # source://coderay//lib/coderay/encoders/encoder.rb#43 - def options; end - - # The options you gave the Encoder at creating. - # - # source://coderay//lib/coderay/encoders/encoder.rb#43 - def options=(_arg0); end - - # The options you gave the Encoder at creating. - # - # source://coderay//lib/coderay/encoders/encoder.rb#43 - def scanner; end - - # The options you gave the Encoder at creating. - # - # source://coderay//lib/coderay/encoders/encoder.rb#43 - def scanner=(_arg0); end - - # Called for each text token ([text, kind]), where text is a String. - # - # source://coderay//lib/coderay/encoders/encoder.rb#118 - def text_token(text, kind); end - - # Called with +content+ and +kind+ of the currently scanned token. - # For simple scanners, it's enougth to implement this method. - # - # By default, it calls text_token, begin_group, end_group, begin_line, - # or end_line, depending on the +content+. - # - # source://coderay//lib/coderay/encoders/encoder.rb#100 - def token(content, kind); end - - # Do the encoding. - # - # The already created +tokens+ object must be used; it must be a - # Tokens object. - # - # source://coderay//lib/coderay/encoders/encoder.rb#168 - def tokens(tokens, options = T.unsafe(nil)); end - - protected - - # Do the encoding. - # - # The already created +tokens+ object must be used; it must be a - # Tokens object. - # - # source://coderay//lib/coderay/encoders/encoder.rb#168 - def compile(tokens, options = T.unsafe(nil)); end - - # Called with merged options after encoding starts. - # The return value is the result of encoding, typically @out. - # - # source://coderay//lib/coderay/encoders/encoder.rb#160 - def finish(options); end - - # source://coderay//lib/coderay/encoders/encoder.rb#148 - def get_output(options); end - - # Append data.to_s to the output. Returns the argument. - # - # source://coderay//lib/coderay/encoders/encoder.rb#153 - def output(data); end - - # Called with merged options before encoding starts. - # Sets @out to an empty string. - # - # See the HTML Encoder for an example of option caching. - # - # source://coderay//lib/coderay/encoders/encoder.rb#144 - def setup(options); end - - class << self - # If FILE_EXTENSION isn't defined, this method returns the - # downcase class name instead. - # - # source://coderay//lib/coderay/encoders/encoder.rb#24 - def const_missing(sym); end - - # The default file extension for output file of this encoder class. - # - # source://coderay//lib/coderay/encoders/encoder.rb#33 - def file_extension; end - end -end - -# Subclasses are to store their default options in this constant. -# -# source://coderay//lib/coderay/encoders/encoder.rb#40 -CodeRay::Encoders::Encoder::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/helpers/plugin.rb#41 -CodeRay::Encoders::Encoder::PLUGIN_HOST = CodeRay::Encoders - -# A Filter encoder has another Tokens instance as output. -# It can be subclass to select, remove, or modify tokens in the stream. -# -# Subclasses of Filter are called "Filters" and can be chained. -# -# == Options -# -# === :tokens -# -# The Tokens object which will receive the output. -# -# Default: Tokens.new -# -# See also: TokenKindFilter -# -# source://coderay//lib/coderay/encoders/filter.rb#18 -class CodeRay::Encoders::Filter < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/filter.rb#39 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/filter.rb#43 - def begin_line(kind); end - - # source://coderay//lib/coderay/encoders/filter.rb#47 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/filter.rb#51 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/filter.rb#35 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/filter.rb#29 - def finish(options); end - - # source://coderay//lib/coderay/encoders/filter.rb#23 - def setup(options); end -end - -# = HTML Encoder -# -# This is CodeRay's most important highlighter: -# It provides save, fast XHTML generation and CSS support. -# -# == Usage -# -# require 'coderay' -# puts CodeRay.scan('Some /code/', :ruby).html #-> a HTML page -# puts CodeRay.scan('Some /code/', :ruby).html(:wrap => :span) -# #-> Some /code/ -# puts CodeRay.scan('Some /code/', :ruby).span #-> the same -# -# puts CodeRay.scan('Some code', :ruby).html( -# :wrap => nil, -# :line_numbers => :inline, -# :css => :style -# ) -# -# == Options -# -# === :tab_width -# Convert \t characters to +n+ spaces (a number or false.) -# false will keep tab characters untouched. -# -# Default: 8 -# -# === :css -# How to include the styles; can be :class or :style. -# -# Default: :class -# -# === :wrap -# Wrap in :page, :div, :span or nil. -# -# You can also use Encoders::Div and Encoders::Span. -# -# Default: nil -# -# === :title -# -# The title of the HTML page (works only when :wrap is set to :page.) -# -# Default: 'CodeRay output' -# -# === :break_lines -# -# Split multiline blocks at line breaks. -# Forced to true if :line_numbers option is set to :inline. -# -# Default: false -# -# === :line_numbers -# Include line numbers in :table, :inline, or nil (no line numbers) -# -# Default: nil -# -# === :line_number_anchors -# Adds anchors and links to the line numbers. Can be false (off), true (on), -# or a prefix string that will be prepended to the anchor name. -# -# The prefix must consist only of letters, digits, and underscores. -# -# Default: true, default prefix name: "line" -# -# === :line_number_start -# Where to start with line number counting. -# -# Default: 1 -# -# === :bold_every -# Make every +n+-th number appear bold. -# -# Default: 10 -# -# === :highlight_lines -# -# Highlights certain line numbers. -# Can be any Enumerable, typically just an Array or Range, of numbers. -# -# Bolding is deactivated when :highlight_lines is set. It only makes sense -# in combination with :line_numbers. -# -# Default: nil -# -# === :hint -# Include some information into the output using the title attribute. -# Can be :info (show token kind on mouse-over), :info_long (with full path) -# or :debug (via inspect). -# -# Default: false -# -# source://coderay//lib/coderay/encoders/html.rb#97 -class CodeRay::Encoders::HTML < ::CodeRay::Encoders::Encoder - # token groups, eg. strings - # - # source://coderay//lib/coderay/encoders/html.rb#235 - def begin_group(kind); end - - # whole lines to be highlighted, eg. a deleted line in a diff - # - # source://coderay//lib/coderay/encoders/html.rb#247 - def begin_line(kind); end - - # Returns the value of attribute css. - # - # source://coderay//lib/coderay/encoders/html.rb#126 - def css; end - - # source://coderay//lib/coderay/encoders/html.rb#241 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/html.rb#261 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/html.rb#221 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/html.rb#316 - def break_lines(text, style); end - - # source://coderay//lib/coderay/encoders/html.rb#310 - def check_group_nesting(name, kind); end - - # source://coderay//lib/coderay/encoders/html.rb#268 - def check_options!(options); end - - # source://coderay//lib/coderay/encoders/html.rb#324 - def close_span; end - - # source://coderay//lib/coderay/encoders/html.rb#280 - def css_class_for_kinds(kinds); end - - # source://coderay//lib/coderay/encoders/html.rb#195 - def finish(options); end - - # source://coderay//lib/coderay/encoders/html.rb#289 - def make_span_for_kinds(method, hint); end - - # source://coderay//lib/coderay/encoders/html.rb#172 - def setup(options); end - - # source://coderay//lib/coderay/encoders/html.rb#284 - def style_for_kinds(kinds); end - - class << self - # source://coderay//lib/coderay/encoders/html.rb#130 - def make_html_escape_hash; end - - # Generate a hint about the given +kinds+ in a +hint+ style. - # - # +hint+ may be :info, :info_long or :debug. - # - # source://coderay//lib/coderay/encoders/html.rb#157 - def token_path_to_hint(hint, kinds); end - end -end - -# source://coderay//lib/coderay/encoders/html/css.rb#5 -class CodeRay::Encoders::HTML::CSS - # @return [CSS] a new instance of CSS - # - # source://coderay//lib/coderay/encoders/html/css.rb#13 - def initialize(style = T.unsafe(nil)); end - - # source://coderay//lib/coderay/encoders/html/css.rb#23 - def get_style_for_css_classes(css_classes); end - - # Returns the value of attribute stylesheet. - # - # source://coderay//lib/coderay/encoders/html/css.rb#7 - def stylesheet; end - - private - - # source://coderay//lib/coderay/encoders/html/css.rb#49 - def parse(stylesheet); end - - class << self - # source://coderay//lib/coderay/encoders/html/css.rb#9 - def load_stylesheet(style = T.unsafe(nil)); end - end -end - -# source://coderay//lib/coderay/encoders/html/css.rb#36 -CodeRay::Encoders::HTML::CSS::CSS_CLASS_PATTERN = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/encoders/html.rb#103 -CodeRay::Encoders::HTML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/html.rb#101 -CodeRay::Encoders::HTML::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# source://coderay//lib/coderay/encoders/html.rb#143 -CodeRay::Encoders::HTML::HTML_ESCAPE = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/html.rb#144 -CodeRay::Encoders::HTML::HTML_ESCAPE_PATTERN = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/encoders/html/numbering.rb#6 -module CodeRay::Encoders::HTML::Numbering - class << self - # source://coderay//lib/coderay/encoders/html/numbering.rb#8 - def number!(output, mode = T.unsafe(nil), options = T.unsafe(nil)); end - end -end - -# This module is included in the output String of the HTML Encoder. -# -# It provides methods like wrap, div, page etc. -# -# Remember to use #clone instead of #dup to keep the modules the object was -# extended with. -# -# TODO: Rewrite this without monkey patching. -# -# source://coderay//lib/coderay/encoders/html/output.rb#14 -module CodeRay::Encoders::HTML::Output - # source://coderay//lib/coderay/encoders/html/output.rb#57 - def apply_title!(title); end - - # Returns the value of attribute css. - # - # source://coderay//lib/coderay/encoders/html/output.rb#16 - def css; end - - # Sets the attribute css - # - # @param value the value to set the attribute css to. - # - # source://coderay//lib/coderay/encoders/html/output.rb#16 - def css=(_arg0); end - - # source://coderay//lib/coderay/encoders/html/output.rb#86 - def stylesheet(in_tag = T.unsafe(nil)); end - - # source://coderay//lib/coderay/encoders/html/output.rb#62 - def wrap!(element, *args); end - - # source://coderay//lib/coderay/encoders/html/output.rb#52 - def wrap_in!(template); end - - # source://coderay//lib/coderay/encoders/html/output.rb#47 - def wrapped_in; end - - # Sets the attribute wrapped_in - # - # @param value the value to set the attribute wrapped_in to. - # - # source://coderay//lib/coderay/encoders/html/output.rb#50 - def wrapped_in=(_arg0); end - - # @return [Boolean] - # - # source://coderay//lib/coderay/encoders/html/output.rb#43 - def wrapped_in?(element); end - - class << self - # Raises an exception if an object that doesn't respond to to_str is extended by Output, - # to prevent users from misuse. Use Module#remove_method to disable. - # - # source://coderay//lib/coderay/encoders/html/output.rb#22 - def extended(o); end - - # source://coderay//lib/coderay/encoders/html/output.rb#26 - def make_stylesheet(css, in_tag = T.unsafe(nil)); end - - # source://coderay//lib/coderay/encoders/html/output.rb#36 - def page_template_for_css(css); end - end -end - -# source://coderay//lib/coderay/encoders/html/output.rb#117 -CodeRay::Encoders::HTML::Output::DIV = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) - -# source://coderay//lib/coderay/encoders/html/output.rb#130 -CodeRay::Encoders::HTML::Output::PAGE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) - -# source://coderay//lib/coderay/encoders/html/output.rb#115 -CodeRay::Encoders::HTML::Output::SPAN = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) - -# source://coderay//lib/coderay/encoders/html/output.rb#123 -CodeRay::Encoders::HTML::Output::TABLE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template) - -# -- don't include the templates in docu -# -# source://coderay//lib/coderay/encoders/html/output.rb#92 -class CodeRay::Encoders::HTML::Output::Template < ::String - # source://coderay//lib/coderay/encoders/html/output.rb#104 - def apply(target, replacement); end - - class << self - # source://coderay//lib/coderay/encoders/html/output.rb#94 - def wrap!(str, template, target); end - end -end - -# source://coderay//lib/coderay/encoders/html.rb#146 -CodeRay::Encoders::HTML::TOKEN_KIND_TO_INFO = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/html.rb#150 -CodeRay::Encoders::HTML::TRANSPARENT_TOKEN_KINDS = T.let(T.unsafe(nil), Set) - -# A simple JSON Encoder. -# -# Example: -# CodeRay.scan('puts "Hello world!"', :ruby).json -# yields -# [ -# {"type"=>"text", "text"=>"puts", "kind"=>"ident"}, -# {"type"=>"text", "text"=>" ", "kind"=>"space"}, -# {"type"=>"block", "action"=>"open", "kind"=>"string"}, -# {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"}, -# {"type"=>"text", "text"=>"Hello world!", "kind"=>"content"}, -# {"type"=>"text", "text"=>"\"", "kind"=>"delimiter"}, -# {"type"=>"block", "action"=>"close", "kind"=>"string"}, -# ] -# -# source://coderay//lib/coderay/encoders/json.rb#18 -class CodeRay::Encoders::JSON < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/json.rb#64 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/json.rb#72 - def begin_line(kind); end - - # source://coderay//lib/coderay/encoders/json.rb#68 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/json.rb#76 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/json.rb#60 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/json.rb#49 - def append(data); end - - # source://coderay//lib/coderay/encoders/json.rb#45 - def finish(options); end - - # source://coderay//lib/coderay/encoders/json.rb#38 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/json.rb#35 -CodeRay::Encoders::JSON::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# Counts the LoC (Lines of Code). Returns an Integer >= 0. -# -# Alias: +loc+ -# -# Everything that is not comment, markup, doctype/shebang, or an empty line, -# is considered to be code. -# -# For example, -# * HTML files not containing JavaScript have 0 LoC -# * in a Java class without comments, LoC is the number of non-empty lines -# -# A Scanner class should define the token kinds that are not code in the -# KINDS_NOT_LOC constant, which defaults to [:comment, :doctype]. -# -# source://coderay//lib/coderay/encoders/lines_of_code.rb#17 -class CodeRay::Encoders::LinesOfCode < ::CodeRay::Encoders::TokenKindFilter - protected - - # source://coderay//lib/coderay/encoders/lines_of_code.rb#38 - def finish(options); end - - # source://coderay//lib/coderay/encoders/lines_of_code.rb#25 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/lines_of_code.rb#21 -CodeRay::Encoders::LinesOfCode::NON_EMPTY_LINE = T.let(T.unsafe(nil), Regexp) - -# = Lint Encoder -# -# Checks for: -# -# - empty tokens -# - incorrect nesting -# -# It will raise an InvalidTokenStream exception when any of the above occurs. -# -# See also: Encoders::DebugLint -# -# source://coderay//lib/coderay/encoders/lint.rb#14 -class CodeRay::Encoders::Lint < ::CodeRay::Encoders::Debug - # source://coderay//lib/coderay/encoders/lint.rb#28 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/lint.rb#37 - def begin_line(kind); end - - # @raise [IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/lint.rb#32 - def end_group(kind); end - - # @raise [IncorrectTokenGroupNesting] - # - # source://coderay//lib/coderay/encoders/lint.rb#41 - def end_line(kind); end - - # @raise [EmptyToken] - # - # source://coderay//lib/coderay/encoders/lint.rb#23 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/lint.rb#52 - def finish(options); end - - # source://coderay//lib/coderay/encoders/lint.rb#48 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/lint.rb#19 -class CodeRay::Encoders::Lint::EmptyToken < ::CodeRay::Encoders::Lint::InvalidTokenStream; end - -# source://coderay//lib/coderay/encoders/lint.rb#21 -class CodeRay::Encoders::Lint::IncorrectTokenGroupNesting < ::CodeRay::Encoders::Lint::InvalidTokenStream; end - -# source://coderay//lib/coderay/encoders/lint.rb#18 -class CodeRay::Encoders::Lint::InvalidTokenStream < ::StandardError; end - -# source://coderay//lib/coderay/encoders/lint.rb#20 -class CodeRay::Encoders::Lint::UnknownTokenKind < ::CodeRay::Encoders::Lint::InvalidTokenStream; end - -# = Null Encoder -# -# Does nothing and returns an empty string. -# -# source://coderay//lib/coderay/encoders/null.rb#7 -class CodeRay::Encoders::Null < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/null.rb#11 - def text_token(text, kind); end -end - -# Wraps the output into a HTML page, using CSS classes and -# line numbers in the table format by default. -# -# See Encoders::HTML for available options. -# -# source://coderay//lib/coderay/encoders/page.rb#10 -class CodeRay::Encoders::Page < ::CodeRay::Encoders::HTML; end - -# source://coderay//lib/coderay/encoders/page.rb#16 -CodeRay::Encoders::Page::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/page.rb#12 -CodeRay::Encoders::Page::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# Wraps HTML output into a SPAN element, using inline styles by default. -# -# See Encoders::HTML for available options. -# -# source://coderay//lib/coderay/encoders/span.rb#9 -class CodeRay::Encoders::Span < ::CodeRay::Encoders::HTML; end - -# source://coderay//lib/coderay/encoders/span.rb#15 -CodeRay::Encoders::Span::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/span.rb#11 -CodeRay::Encoders::Span::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# Makes a statistic for the given tokens. -# -# Alias: +stats+ -# -# source://coderay//lib/coderay/encoders/statistic.rb#7 -class CodeRay::Encoders::Statistic < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/statistic.rb#70 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/statistic.rb#78 - def begin_line(kind); end - - # source://coderay//lib/coderay/encoders/statistic.rb#86 - def block_token(action, kind); end - - # source://coderay//lib/coderay/encoders/statistic.rb#74 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/statistic.rb#82 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/statistic.rb#11 - def real_token_count; end - - # source://coderay//lib/coderay/encoders/statistic.rb#62 - def text_token(text, kind); end - - # source://coderay//lib/coderay/encoders/statistic.rb#11 - def type_stats; end - - protected - - # source://coderay//lib/coderay/encoders/statistic.rb#42 - def finish(options); end - - # source://coderay//lib/coderay/encoders/statistic.rb#17 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/statistic.rb#24 -CodeRay::Encoders::Statistic::STATS = T.let(T.unsafe(nil), String) - -# source://coderay//lib/coderay/encoders/statistic.rb#38 -CodeRay::Encoders::Statistic::TOKEN_TYPES_ROW = T.let(T.unsafe(nil), String) - -# source://coderay//lib/coderay/encoders/statistic.rb#13 -class CodeRay::Encoders::Statistic::TypeStats < ::Struct - # Returns the value of attribute count - # - # @return [Object] the current value of count - def count; end - - # Sets the attribute count - # - # @param value [Object] the value to set the attribute count to. - # @return [Object] the newly set value - def count=(_); end - - # Returns the value of attribute size - # - # @return [Object] the current value of size - def size; end - - # Sets the attribute size - # - # @param value [Object] the value to set the attribute size to. - # @return [Object] the newly set value - def size=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://coderay//lib/coderay/encoders/terminal.rb#17 -class CodeRay::Encoders::Terminal < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/terminal.rb#156 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/terminal.rb#156 - def begin_line(kind); end - - # source://coderay//lib/coderay/encoders/terminal.rb#162 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/terminal.rb#172 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/terminal.rb#141 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/terminal.rb#133 - def setup(options); end - - private - - # source://coderay//lib/coderay/encoders/terminal.rb#179 - def open_token(kind); end -end - -# source://coderay//lib/coderay/encoders/terminal.rb#21 -CodeRay::Encoders::Terminal::TOKEN_COLORS = T.let(T.unsafe(nil), Hash) - -# Concats the tokens into a single string, resulting in the original -# code string if no tokens were removed. -# -# Alias: +plain+, +plaintext+ -# -# == Options -# -# === :separator -# A separator string to join the tokens. -# -# Default: empty String -# -# source://coderay//lib/coderay/encoders/text.rb#15 -class CodeRay::Encoders::Text < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/text.rb#25 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/text.rb#36 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/text.rb#21 -CodeRay::Encoders::Text::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/text.rb#19 -CodeRay::Encoders::Text::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# A Filter that selects tokens based on their token kind. -# -# == Options -# -# === :exclude -# -# One or many symbols (in an Array) which shall be excluded. -# -# Default: [] -# -# === :include -# -# One or many symbols (in an array) which shall be included. -# -# Default: :all, which means all tokens are included. -# -# Exclusion wins over inclusion. -# -# See also: CommentFilter -# -# source://coderay//lib/coderay/encoders/token_kind_filter.rb#25 -class CodeRay::Encoders::TokenKindFilter < ::CodeRay::Encoders::Filter - # Add the token group to the output stream if +kind+ matches the - # conditions. - # - # If it does not, all tokens inside the group are excluded from the - # stream, even if their kinds match. - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#66 - def begin_group(kind); end - - # See +begin_group+. - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#77 - def begin_line(kind); end - - # Take care of re-enabling the delegation of tokens to the output stream - # if an exluded group has ended. - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#89 - def end_group(kind); end - - # See +end_group+. - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#99 - def end_line(kind); end - - # Add the token to the output stream if +kind+ matches the conditions. - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#57 - def text_token(text, kind); end - - protected - - # @return [Boolean] - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#49 - def include_group?(kind); end - - # @return [Boolean] - # - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#45 - def include_text_token?(text, kind); end - - # source://coderay//lib/coderay/encoders/token_kind_filter.rb#35 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/token_kind_filter.rb#29 -CodeRay::Encoders::TokenKindFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# = XML Encoder -# -# Uses REXML. Very slow. -# -# source://coderay//lib/coderay/encoders/xml.rb#7 -class CodeRay::Encoders::XML < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/xml.rb#58 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/xml.rb#62 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/xml.rb#38 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/xml.rb#31 - def finish(options); end - - # source://coderay//lib/coderay/encoders/xml.rb#22 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/xml.rb#15 -CodeRay::Encoders::XML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/encoders/xml.rb#11 -CodeRay::Encoders::XML::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# = YAML Encoder -# -# Slow. -# -# source://coderay//lib/coderay/encoders/yaml.rb#9 -class CodeRay::Encoders::YAML < ::CodeRay::Encoders::Encoder - # source://coderay//lib/coderay/encoders/yaml.rb#31 - def begin_group(kind); end - - # source://coderay//lib/coderay/encoders/yaml.rb#39 - def begin_line(kind); end - - # source://coderay//lib/coderay/encoders/yaml.rb#35 - def end_group(kind); end - - # source://coderay//lib/coderay/encoders/yaml.rb#43 - def end_line(kind); end - - # source://coderay//lib/coderay/encoders/yaml.rb#27 - def text_token(text, kind); end - - protected - - # source://coderay//lib/coderay/encoders/yaml.rb#22 - def finish(options); end - - # source://coderay//lib/coderay/encoders/yaml.rb#16 - def setup(options); end -end - -# source://coderay//lib/coderay/encoders/yaml.rb#13 -CodeRay::Encoders::YAML::FILE_EXTENSION = T.let(T.unsafe(nil), String) - -# = FileType -# -# A simple filetype recognizer. -# -# == Usage -# -# # determine the type of the given -# lang = FileType[file_name] -# -# # return :text if the file type is unknown -# lang = FileType.fetch file_name, :text -# -# # try the shebang line, too -# lang = FileType.fetch file_name, :text, true -# -# source://coderay//lib/coderay/helpers/file_type.rb#17 -module CodeRay::FileType - class << self - # Try to determine the file type of the file. - # - # +filename+ is a relative or absolute path to a file. - # - # The file itself is only accessed when +read_shebang+ is set to true. - # That means you can get filetypes from files that don't exist. - # - # source://coderay//lib/coderay/helpers/file_type.rb#29 - def [](filename, read_shebang = T.unsafe(nil)); end - - # This works like Hash#fetch. - # - # If the filetype cannot be found, the +default+ value - # is returned. - # - # source://coderay//lib/coderay/helpers/file_type.rb#50 - def fetch(filename, default = T.unsafe(nil), read_shebang = T.unsafe(nil)); end - - protected - - # source://coderay//lib/coderay/helpers/file_type.rb#66 - def type_from_shebang(filename); end - end -end - -# source://coderay//lib/coderay/helpers/file_type.rb#79 -CodeRay::FileType::TypeFromExt = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/helpers/file_type.rb#139 -CodeRay::FileType::TypeFromName = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/helpers/file_type.rb#137 -CodeRay::FileType::TypeFromShebang = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/helpers/file_type.rb#19 -class CodeRay::FileType::UnknownFileType < ::Exception; end - -# = Plugin -# -# Plugins have to include this module. -# -# IMPORTANT: Use extend for this module. -# -# See CodeRay::PluginHost for examples. -# -# source://coderay//lib/coderay/helpers/plugin.rb#10 -module CodeRay::Plugin - # source://coderay//lib/coderay/helpers/plugin.rb#46 - def aliases; end - - # The PluginHost for this Plugin class. - # - # source://coderay//lib/coderay/helpers/plugin.rb#39 - def plugin_host(host = T.unsafe(nil)); end - - # Returns the value of attribute plugin_id. - # - # source://coderay//lib/coderay/helpers/plugin.rb#12 - def plugin_id; end - - # Register this class for the given +id+. - # - # Example: - # class MyPlugin < PluginHost::BaseClass - # register_for :my_id - # ... - # end - # - # See PluginHost.register. - # - # source://coderay//lib/coderay/helpers/plugin.rb#23 - def register_for(id); end - - # Returns the title of the plugin, or sets it to the - # optional argument +title+. - # - # source://coderay//lib/coderay/helpers/plugin.rb#30 - def title(title = T.unsafe(nil)); end -end - -# = PluginHost -# -# A simple subclass/subfolder plugin system. -# -# Example: -# class Generators -# extend PluginHost -# plugin_path 'app/generators' -# end -# -# class Generator -# extend Plugin -# PLUGIN_HOST = Generators -# end -# -# class FancyGenerator < Generator -# register_for :fancy -# end -# -# Generators[:fancy] #-> FancyGenerator -# # or -# CodeRay.require_plugin 'Generators/fancy' -# # or -# Generators::Fancy -# -# source://coderay//lib/coderay/helpers/plugin_host.rb#27 -module CodeRay::PluginHost - # Returns the Plugin for +id+. - # - # Example: - # yaml_plugin = MyPluginHost[:yaml] - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#49 - def [](id, *args, &blk); end - - # Returns an array of all Plugins. - # - # Note: This loads all plugins using load_all. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#151 - def all_plugins; end - - # Tries to +load+ the missing plugin by translating +const+ to the - # underscore form (eg. LinesOfCode becomes lines_of_code). - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#61 - def const_missing(const); end - - # Define the default plugin to use when no plugin is found - # for a given id, or return the default plugin. - # - # See also map. - # - # class MyColorHost < PluginHost - # map :navy => :dark_blue - # default :gray - # end - # - # MyColorHost.default # loads and returns the Gray plugin - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#114 - def default(id = T.unsafe(nil)); end - - # Returns an array of all .rb files in the plugin path. - # - # The extension .rb is not included. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#140 - def list; end - - # Returns the Plugin for +id+. - # - # Example: - # yaml_plugin = MyPluginHost[:yaml] - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#49 - def load(id, *args, &blk); end - - # Loads all plugins using list and load. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#39 - def load_all; end - - # Loads the map file (see map). - # - # This is done automatically when plugin_path is called. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#159 - def load_plugin_map; end - - # Map a plugin_id to another. - # - # Usage: Put this in a file plugin_path/_map.rb. - # - # class MyColorHost < PluginHost - # map :navy => :dark_blue, - # :maroon => :brown, - # :luna => :moon - # end - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#95 - def map(hash); end - - # A Hash of plugion_id => Plugin pairs. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#133 - def plugin_hash; end - - # The path where the plugins can be found. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#79 - def plugin_path(*args); end - - # Every plugin must register itself for +id+ by calling register_for, - # which calls this method. - # - # See Plugin#register_for. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#128 - def register(plugin, id); end - - protected - - # Return a plugin hash that automatically loads plugins. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#172 - def make_plugin_hash; end - - # Returns the expected path to the plugin file for the given id. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#196 - def path_to(plugin_id); end - - # Converts +id+ to a valid plugin ID String, or returns +nil+. - # - # Raises +ArgumentError+ for all other objects, or if the - # given String includes non-alphanumeric characters (\W). - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#204 - def validate_id(id); end - - class << self - # Adds the module/class to the PLUGIN_HOSTS list. - # - # source://coderay//lib/coderay/helpers/plugin_host.rb#72 - def extended(mod); end - end -end - -# source://coderay//lib/coderay/helpers/plugin_host.rb#33 -class CodeRay::PluginHost::HostNotFound < ::LoadError; end - -# source://coderay//lib/coderay/helpers/plugin_host.rb#35 -CodeRay::PluginHost::PLUGIN_HOSTS = T.let(T.unsafe(nil), Array) - -# dummy hash -# -# source://coderay//lib/coderay/helpers/plugin_host.rb#36 -CodeRay::PluginHost::PLUGIN_HOSTS_BY_ID = T.let(T.unsafe(nil), Hash) - -# Raised if Encoders::[] fails because: -# * a file could not be found -# * the requested Plugin is not registered -# -# source://coderay//lib/coderay/helpers/plugin_host.rb#32 -class CodeRay::PluginHost::PluginNotFound < ::LoadError; end - -# = Scanners -# -# This module holds the Scanner class and its subclasses. -# For example, the Ruby scanner is named CodeRay::Scanners::Ruby -# can be found in coderay/scanners/ruby. -# -# Scanner also provides methods and constants for the register -# mechanism and the [] method that returns the Scanner class -# belonging to the given lang. -# -# See PluginHost. -# -# source://coderay//lib/coderay/scanners.rb#18 -module CodeRay::Scanners - extend ::CodeRay::PluginHost -end - -# Scanner for C. -# -# source://coderay//lib/coderay/scanners/c.rb#5 -class CodeRay::Scanners::C < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/c.rb#44 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/c.rb#27 -CodeRay::Scanners::C::DIRECTIVES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/c.rb#39 -CodeRay::Scanners::C::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/c.rb#33 -CodeRay::Scanners::C::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/c.rb#10 -CodeRay::Scanners::C::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/c.rb#23 -CodeRay::Scanners::C::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/c.rb#17 -CodeRay::Scanners::C::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/c.rb#40 -CodeRay::Scanners::C::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# Scanner for C++. -# -# Aliases: +cplusplus+, c++ -CodeRay::Scanners::CPlusPlus = CodeRay::Scanners::Text - -# source://coderay//lib/coderay/scanners/css.rb#4 -class CodeRay::Scanners::CSS < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/css.rb#55 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/css.rb#50 - def setup; end -end - -# source://coderay//lib/coderay/scanners/css.rb#8 -CodeRay::Scanners::CSS::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/css.rb#16 -module CodeRay::Scanners::CSS::RE; end - -# source://coderay//lib/coderay/scanners/css.rb#31 -CodeRay::Scanners::CSS::RE::AtKeyword = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#45 -CodeRay::Scanners::CSS::RE::AttributeSelector = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#43 -CodeRay::Scanners::CSS::RE::Class = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#38 -CodeRay::Scanners::CSS::RE::Dimension = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#19 -CodeRay::Scanners::CSS::RE::Escape = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#40 -CodeRay::Scanners::CSS::RE::Function = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#17 -CodeRay::Scanners::CSS::RE::Hex = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#26 -CodeRay::Scanners::CSS::RE::HexColor = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#42 -CodeRay::Scanners::CSS::RE::Id = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#30 -CodeRay::Scanners::CSS::RE::Ident = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#20 -CodeRay::Scanners::CSS::RE::NMChar = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#21 -CodeRay::Scanners::CSS::RE::NMStart = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#29 -CodeRay::Scanners::CSS::RE::Name = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#28 -CodeRay::Scanners::CSS::RE::Num = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#32 -CodeRay::Scanners::CSS::RE::Percentage = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#44 -CodeRay::Scanners::CSS::RE::PseudoClass = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#24 -CodeRay::Scanners::CSS::RE::String = T.let(T.unsafe(nil), Regexp) - -# TODO: buggy regexp -# -# source://coderay//lib/coderay/scanners/css.rb#22 -CodeRay::Scanners::CSS::RE::String1 = T.let(T.unsafe(nil), Regexp) - -# TODO: buggy regexp -# -# source://coderay//lib/coderay/scanners/css.rb#23 -CodeRay::Scanners::CSS::RE::String2 = T.let(T.unsafe(nil), Regexp) - -# differs from standard because it allows uppercase hex too -# -# source://coderay//lib/coderay/scanners/css.rb#18 -CodeRay::Scanners::CSS::RE::Unicode = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/css.rb#36 -CodeRay::Scanners::CSS::RE::Unit = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#6 -class CodeRay::Scanners::Clojure < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/clojure.rb#145 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/clojure.rb#95 -CodeRay::Scanners::Clojure::BASIC_IDENTIFIER = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#133 -CodeRay::Scanners::Clojure::COMPLEX10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#134 -CodeRay::Scanners::Clojure::COMPLEX16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#136 -CodeRay::Scanners::Clojure::COMPLEX2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#135 -CodeRay::Scanners::Clojure::COMPLEX8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#16 -CodeRay::Scanners::Clojure::CORE_FORMS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/clojure.rb#120 -CodeRay::Scanners::Clojure::DECIMAL = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#98 -CodeRay::Scanners::Clojure::DIGIT = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#99 -CodeRay::Scanners::Clojure::DIGIT10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#100 -CodeRay::Scanners::Clojure::DIGIT16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#102 -CodeRay::Scanners::Clojure::DIGIT2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#101 -CodeRay::Scanners::Clojure::DIGIT8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#107 -CodeRay::Scanners::Clojure::EXACTNESS = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#110 -CodeRay::Scanners::Clojure::EXP = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#109 -CodeRay::Scanners::Clojure::EXP_MARK = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#96 -CodeRay::Scanners::Clojure::IDENTIFIER = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#85 -CodeRay::Scanners::Clojure::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/clojure.rb#129 -CodeRay::Scanners::Clojure::IMAG10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#130 -CodeRay::Scanners::Clojure::IMAG16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#132 -CodeRay::Scanners::Clojure::IMAG2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#131 -CodeRay::Scanners::Clojure::IMAG8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#90 -CodeRay::Scanners::Clojure::KEYWORD_NEXT_TOKEN_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/clojure.rb#141 -CodeRay::Scanners::Clojure::NUM = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#137 -CodeRay::Scanners::Clojure::NUM10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#138 -CodeRay::Scanners::Clojure::NUM16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#140 -CodeRay::Scanners::Clojure::NUM2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#139 -CodeRay::Scanners::Clojure::NUM8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#78 -CodeRay::Scanners::Clojure::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/clojure.rb#112 -CodeRay::Scanners::Clojure::PREFIX10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#113 -CodeRay::Scanners::Clojure::PREFIX16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#115 -CodeRay::Scanners::Clojure::PREFIX2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#114 -CodeRay::Scanners::Clojure::PREFIX8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#106 -CodeRay::Scanners::Clojure::RADIX10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#103 -CodeRay::Scanners::Clojure::RADIX16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#105 -CodeRay::Scanners::Clojure::RADIX2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#104 -CodeRay::Scanners::Clojure::RADIX8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#125 -CodeRay::Scanners::Clojure::REAL10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#126 -CodeRay::Scanners::Clojure::REAL16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#128 -CodeRay::Scanners::Clojure::REAL2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#127 -CodeRay::Scanners::Clojure::REAL8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#108 -CodeRay::Scanners::Clojure::SIGN = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#11 -CodeRay::Scanners::Clojure::SPECIAL_FORMS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/clojure.rb#111 -CodeRay::Scanners::Clojure::SUFFIX = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#97 -CodeRay::Scanners::Clojure::SYMBOL = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#116 -CodeRay::Scanners::Clojure::UINT10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#117 -CodeRay::Scanners::Clojure::UINT16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#119 -CodeRay::Scanners::Clojure::UINT2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#118 -CodeRay::Scanners::Clojure::UINT8 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#121 -CodeRay::Scanners::Clojure::UREAL10 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#122 -CodeRay::Scanners::Clojure::UREAL16 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#124 -CodeRay::Scanners::Clojure::UREAL2 = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/clojure.rb#123 -CodeRay::Scanners::Clojure::UREAL8 = T.let(T.unsafe(nil), Regexp) - -# = Debug Scanner -# -# Interprets the output of the Encoders::Debug encoder (basically the inverse function). -# -# source://coderay//lib/coderay/scanners/debug.rb#9 -class CodeRay::Scanners::Debug < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/debug.rb#21 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/debug.rb#16 - def setup; end -end - -# Scanner for the Delphi language (Object Pascal). -# -# Alias: +pascal+ -# -# source://coderay//lib/coderay/scanners/delphi.rb#7 -class CodeRay::Scanners::Delphi < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/delphi.rb#45 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/delphi.rb#25 -CodeRay::Scanners::Delphi::DIRECTIVES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/delphi.rb#36 -CodeRay::Scanners::Delphi::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) - -# source://coderay//lib/coderay/scanners/delphi.rb#12 -CodeRay::Scanners::Delphi::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/delphi.rb#40 -CodeRay::Scanners::Delphi::NAME_FOLLOWS = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) - -# Scanner for output of the diff command. -# -# Alias: +patch+ -# -# source://coderay//lib/coderay/scanners/diff.rb#7 -class CodeRay::Scanners::Diff < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/diff.rb#19 - def scan_tokens(encoder, options); end - - private - - # source://coderay//lib/coderay/scanners/diff.rb#204 - def diff(a, b); end -end - -# source://coderay//lib/coderay/scanners/diff.rb#12 -CodeRay::Scanners::Diff::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# Scanner for HTML ERB templates. -# -# source://coderay//lib/coderay/scanners/erb.rb#8 -class CodeRay::Scanners::ERB < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/erb.rb#38 - def reset_instance; end - - # source://coderay//lib/coderay/scanners/erb.rb#43 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/erb.rb#33 - def setup; end -end - -# source://coderay//lib/coderay/scanners/erb.rb#15 -CodeRay::Scanners::ERB::ERB_RUBY_BLOCK = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/erb.rb#13 -CodeRay::Scanners::ERB::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/erb.rb#27 -CodeRay::Scanners::ERB::START_OF_ERB = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/go.rb#4 -class CodeRay::Scanners::Go < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/go.rb#50 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/go.rb#45 -CodeRay::Scanners::Go::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/go.rb#39 -CodeRay::Scanners::Go::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# http://golang.org/ref/spec#Keywords -# -# source://coderay//lib/coderay/scanners/go.rb#10 -CodeRay::Scanners::Go::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/go.rb#29 -CodeRay::Scanners::Go::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/go.rb#34 -CodeRay::Scanners::Go::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array) - -# http://golang.org/ref/spec#Types -# -# source://coderay//lib/coderay/scanners/go.rb#19 -CodeRay::Scanners::Go::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/go.rb#46 -CodeRay::Scanners::Go::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# Scanner for Groovy. -# -# source://coderay//lib/coderay/scanners/groovy.rb#7 -class CodeRay::Scanners::Groovy < ::CodeRay::Scanners::Java - protected - - # source://coderay//lib/coderay/scanners/groovy.rb#43 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/groovy.rb#39 - def setup; end -end - -# source://coderay//lib/coderay/scanners/groovy.rb#24 -CodeRay::Scanners::Groovy::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# TODO: check list of keywords -# -# source://coderay//lib/coderay/scanners/groovy.rb#12 -CodeRay::Scanners::Groovy::GROOVY_KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/groovy.rb#18 -CodeRay::Scanners::Groovy::GROOVY_MAGIC_VARIABLES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/groovy.rb#20 -CodeRay::Scanners::Groovy::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/groovy.rb#15 -CodeRay::Scanners::Groovy::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/groovy.rb#26 -CodeRay::Scanners::Groovy::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# TODO: interpretation inside ', ", / -# -# source://coderay//lib/coderay/scanners/groovy.rb#29 -CodeRay::Scanners::Groovy::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/groovy.rb#25 -CodeRay::Scanners::Groovy::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/haml.rb#8 -class CodeRay::Scanners::HAML < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/haml.rb#24 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/haml.rb#17 - def setup; end -end - -# source://coderay//lib/coderay/scanners/haml.rb#13 -CodeRay::Scanners::HAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# HTML Scanner -# -# Alias: +xhtml+ -# -# See also: Scanners::XML -# -# source://coderay//lib/coderay/scanners/html.rb#9 -class CodeRay::Scanners::HTML < ::CodeRay::Scanners::Scanner - # source://coderay//lib/coderay/scanners/html.rb#62 - def reset; end - - protected - - # source://coderay//lib/coderay/scanners/html.rb#83 - def scan_css(encoder, code, state = T.unsafe(nil)); end - - # source://coderay//lib/coderay/scanners/html.rb#76 - def scan_java_script(encoder, code); end - - # source://coderay//lib/coderay/scanners/html.rb#90 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/html.rb#70 - def setup; end -end - -# source://coderay//lib/coderay/scanners/html.rb#39 -CodeRay::Scanners::HTML::ATTR_NAME = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/html.rb#42 -CodeRay::Scanners::HTML::ENTITY = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/html.rb#20 -CodeRay::Scanners::HTML::EVENT_ATTRIBUTES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/html.rb#41 -CodeRay::Scanners::HTML::HEX = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/html.rb#35 -CodeRay::Scanners::HTML::IN_ATTRIBUTE = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) - -# source://coderay//lib/coderay/scanners/html.rb#13 -CodeRay::Scanners::HTML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/html.rb#57 -CodeRay::Scanners::HTML::PLAIN_STRING_CONTENT = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/html.rb#40 -CodeRay::Scanners::HTML::TAG_END = T.let(T.unsafe(nil), Regexp) - -# Scanner for JSON (JavaScript Object Notation). -# -# source://coderay//lib/coderay/scanners/json.rb#5 -class CodeRay::Scanners::JSON < ::CodeRay::Scanners::Scanner - protected - - # See http://json.org/ for a definition of the JSON lexic/grammar. - # - # source://coderay//lib/coderay/scanners/json.rb#26 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/json.rb#21 - def setup; end -end - -# source://coderay//lib/coderay/scanners/json.rb#15 -CodeRay::Scanners::JSON::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/json.rb#17 -CodeRay::Scanners::JSON::KEY = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/json.rb#10 -CodeRay::Scanners::JSON::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/json.rb#16 -CodeRay::Scanners::JSON::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# Scanner for Java. -# -# source://coderay//lib/coderay/scanners/java.rb#5 -class CodeRay::Scanners::Java < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/java.rb#51 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/java/builtin_types.rb#4 -module CodeRay::Scanners::Java::BuiltinTypes; end - -# source://coderay//lib/coderay/scanners/java/builtin_types.rb#7 -CodeRay::Scanners::Java::BuiltinTypes::List = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java.rb#19 -CodeRay::Scanners::Java::CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java.rb#25 -CodeRay::Scanners::Java::DIRECTIVES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java.rb#40 -CodeRay::Scanners::Java::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/java.rb#47 -CodeRay::Scanners::Java::IDENT = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/java.rb#30 -CodeRay::Scanners::Java::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html -# -# source://coderay//lib/coderay/scanners/java.rb#12 -CodeRay::Scanners::Java::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java.rb#20 -CodeRay::Scanners::Java::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java.rb#18 -CodeRay::Scanners::Java::RESERVED = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java.rb#42 -CodeRay::Scanners::Java::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/java.rb#21 -CodeRay::Scanners::Java::TYPES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java.rb#41 -CodeRay::Scanners::Java::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# Scanner for JavaScript. -# -# Aliases: +ecmascript+, +ecma_script+, +javascript+ -# -# source://coderay//lib/coderay/scanners/java_script.rb#7 -class CodeRay::Scanners::JavaScript < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/java_script.rb#224 - def reset_instance; end - - # source://coderay//lib/coderay/scanners/java_script.rb#61 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/java_script.rb#57 - def setup; end - - # source://coderay//lib/coderay/scanners/java_script.rb#229 - def xml_scanner; end -end - -# source://coderay//lib/coderay/scanners/java_script.rb#42 -CodeRay::Scanners::JavaScript::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/java_script.rb#36 -CodeRay::Scanners::JavaScript::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# The actual JavaScript keywords. -# -# source://coderay//lib/coderay/scanners/java_script.rb#13 -CodeRay::Scanners::JavaScript::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java_script.rb#24 -CodeRay::Scanners::JavaScript::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/java_script.rb#50 -CodeRay::Scanners::JavaScript::KEY_CHECK_PATTERN = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/java_script.rb#22 -CodeRay::Scanners::JavaScript::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java_script.rb#18 -CodeRay::Scanners::JavaScript::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java_script.rb#44 -CodeRay::Scanners::JavaScript::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# Reserved for future use. -# -# source://coderay//lib/coderay/scanners/java_script.rb#29 -CodeRay::Scanners::JavaScript::RESERVED_WORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/java_script.rb#45 -CodeRay::Scanners::JavaScript::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/java_script.rb#43 -CodeRay::Scanners::JavaScript::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# Scanner for the Lua[http://lua.org] programming lanuage. -# -# The language’s complete syntax is defined in -# {the Lua manual}[http://www.lua.org/manual/5.2/manual.html], -# which is what this scanner tries to conform to. -# -# source://coderay//lib/coderay/scanners/lua.rb#11 -class CodeRay::Scanners::Lua < ::CodeRay::Scanners::Scanner - protected - - # CodeRay entry hook. Starts parsing. - # - # source://coderay//lib/coderay/scanners/lua.rb#60 - def scan_tokens(encoder, options); end - - # Scanner initialization. - # - # source://coderay//lib/coderay/scanners/lua.rb#54 - def setup; end -end - -# Automatic token kind selection for normal words. -# -# source://coderay//lib/coderay/scanners/lua.rb#46 -CodeRay::Scanners::Lua::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# Keywords used in Lua. -# -# source://coderay//lib/coderay/scanners/lua.rb#18 -CodeRay::Scanners::Lua::KEYWORDS = T.let(T.unsafe(nil), Array) - -# Constants set by the Lua core. -# -# source://coderay//lib/coderay/scanners/lua.rb#25 -CodeRay::Scanners::Lua::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# The expressions contained in this array are parts of Lua’s `basic' -# library. Although it’s not entirely necessary to load that library, -# it is highly recommended and one would have to provide own implementations -# of some of these expressions if one does not do so. They however aren’t -# keywords, neither are they constants, but nearly predefined, so they -# get tagged as `predefined' rather than anything else. -# -# This list excludes values of form `_UPPERCASE' because the Lua manual -# requires such identifiers to be reserved by Lua anyway and they are -# highlighted directly accordingly, without the need for specific -# identifiers to be listed here. -# -# source://coderay//lib/coderay/scanners/lua.rb#38 -CodeRay::Scanners::Lua::PREDEFINED_EXPRESSIONS = T.let(T.unsafe(nil), Array) - -# Scanner for PHP. -# -# Original by Stefan Walk. -# -# source://coderay//lib/coderay/scanners/php.rb#10 -class CodeRay::Scanners::PHP < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/php.rb#23 - def reset_instance; end - - # source://coderay//lib/coderay/scanners/php.rb#234 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/php.rb#19 - def setup; end -end - -# source://coderay//lib/coderay/scanners/php.rb#15 -CodeRay::Scanners::PHP::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#197 -module CodeRay::Scanners::PHP::RE; end - -# source://coderay//lib/coderay/scanners/php.rb#211 -CodeRay::Scanners::PHP::RE::HTML_INDICATOR = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/php.rb#213 -CodeRay::Scanners::PHP::RE::IDENTIFIER = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/php.rb#216 -CodeRay::Scanners::PHP::RE::OPERATOR = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/php.rb#206 -CodeRay::Scanners::PHP::RE::PHP_END = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/php.rb#199 -CodeRay::Scanners::PHP::RE::PHP_START = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/php.rb#214 -CodeRay::Scanners::PHP::RE::VARIABLE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/php.rb#28 -module CodeRay::Scanners::PHP::Words; end - -# according to http://php.net/quickref.php on 2009-04-21; -# all functions with _ excluded (module functions) and selected additional functions -# -# source://coderay//lib/coderay/scanners/php.rb#50 -CodeRay::Scanners::PHP::Words::BUILTIN_FUNCTIONS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#46 -CodeRay::Scanners::PHP::Words::CLASSES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#145 -CodeRay::Scanners::PHP::Words::CONSTANTS = T.let(T.unsafe(nil), Array) - -# TODO: more built-in PHP functions? -# -# source://coderay//lib/coderay/scanners/php.rb#140 -CodeRay::Scanners::PHP::Words::EXCEPTIONS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#184 -CodeRay::Scanners::PHP::Words::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) - -# according to http://www.php.net/manual/en/reserved.keywords.php -# -# source://coderay//lib/coderay/scanners/php.rb#31 -CodeRay::Scanners::PHP::Words::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#41 -CodeRay::Scanners::PHP::Words::LANGUAGE_CONSTRUCTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#178 -CodeRay::Scanners::PHP::Words::PREDEFINED = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#39 -CodeRay::Scanners::PHP::Words::TYPES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/php.rb#193 -CodeRay::Scanners::PHP::Words::VARIABLE_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# Scanner for Python. Supports Python 3. -# -# Based on pygments' PythonLexer, see -# http://dev.pocoo.org/projects/pygments/browser/pygments/lexers/agile.py. -# -# source://coderay//lib/coderay/scanners/python.rb#8 -class CodeRay::Scanners::Python < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/python.rb#103 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/python.rb#86 -CodeRay::Scanners::Python::DEF_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/python.rb#91 -CodeRay::Scanners::Python::DESCRIPTOR = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/python.rb#97 -CodeRay::Scanners::Python::DOCSTRING_COMING = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/python.rb#65 -CodeRay::Scanners::Python::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/python.rb#57 -CodeRay::Scanners::Python::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/python.rb#13 -CodeRay::Scanners::Python::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/python.rb#64 -CodeRay::Scanners::Python::NAME = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/python.rb#21 -CodeRay::Scanners::Python::OLD_KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/python.rb#68 -CodeRay::Scanners::Python::OPERATOR = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/python.rb#37 -CodeRay::Scanners::Python::PREDEFINED_EXCEPTIONS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/python.rb#25 -CodeRay::Scanners::Python::PREDEFINED_METHODS_AND_TYPES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/python.rb#52 -CodeRay::Scanners::Python::PREDEFINED_VARIABLES_AND_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/python.rb#82 -CodeRay::Scanners::Python::STRING_CONTENT_REGEXP = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/python.rb#78 -CodeRay::Scanners::Python::STRING_DELIMITER_REGEXP = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/python.rb#66 -CodeRay::Scanners::Python::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# = Raydebug Scanner -# -# Highlights the output of the Encoders::Debug encoder. -# -# source://coderay//lib/coderay/scanners/raydebug.rb#9 -class CodeRay::Scanners::Raydebug < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/raydebug.rb#22 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/raydebug.rb#17 - def setup; end -end - -# This scanner is really complex, since Ruby _is_ a complex language! -# -# It tries to highlight 100% of all common code, -# and 90% of strange codes. -# -# It is optimized for HTML highlighting, and is not very useful for -# parsing or pretty printing. -# -# source://coderay//lib/coderay/scanners/ruby.rb#11 -class CodeRay::Scanners::Ruby < ::CodeRay::Scanners::Scanner - # source://coderay//lib/coderay/scanners/ruby.rb#19 - def interpreted_string_state; end - - protected - - # source://coderay//lib/coderay/scanners/ruby.rb#29 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/ruby.rb#25 - def setup; end -end - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#5 -module CodeRay::Scanners::Ruby::Patterns; end - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#72 -CodeRay::Scanners::Ruby::Patterns::BINARY = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#106 -CodeRay::Scanners::Ruby::Patterns::CHARACTER = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#55 -CodeRay::Scanners::Ruby::Patterns::CLASS_VARIABLE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#96 -CodeRay::Scanners::Ruby::Patterns::CONTROL_META_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#132 -CodeRay::Scanners::Ruby::Patterns::DATA = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#69 -CodeRay::Scanners::Ruby::Patterns::DECIMAL = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#102 -CodeRay::Scanners::Ruby::Patterns::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#74 -CodeRay::Scanners::Ruby::Patterns::EXPONENT = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#168 -CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_INTERPRETED = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#161 -CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_KIND = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#160 -CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_START = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#76 -CodeRay::Scanners::Ruby::Patterns::FLOAT_OR_INT = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#75 -CodeRay::Scanners::Ruby::Patterns::FLOAT_SUFFIX = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#57 -CodeRay::Scanners::Ruby::Patterns::GLOBAL_VARIABLE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#116 -CodeRay::Scanners::Ruby::Patterns::HEREDOC_OPEN = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#71 -CodeRay::Scanners::Ruby::Patterns::HEXADECIMAL = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#38 -CodeRay::Scanners::Ruby::Patterns::IDENT = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#28 -CodeRay::Scanners::Ruby::Patterns::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#54 -CodeRay::Scanners::Ruby::Patterns::INSTANCE_VARIABLE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#7 -CodeRay::Scanners::Ruby::Patterns::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#151 -CodeRay::Scanners::Ruby::Patterns::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#32 -CodeRay::Scanners::Ruby::Patterns::KEYWORD_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#53 -CodeRay::Scanners::Ruby::Patterns::METHOD_AFTER_DOT = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#40 -CodeRay::Scanners::Ruby::Patterns::METHOD_NAME = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#52 -CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_EX = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#41 -CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OPERATOR = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#87 -CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OR_SYMBOL = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#51 -CodeRay::Scanners::Ruby::Patterns::METHOD_SUFFIX = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#77 -CodeRay::Scanners::Ruby::Patterns::NUMERIC = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#56 -CodeRay::Scanners::Ruby::Patterns::OBJECT_VARIABLE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#70 -CodeRay::Scanners::Ruby::Patterns::OCTAL = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#17 -CodeRay::Scanners::Ruby::Patterns::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#58 -CodeRay::Scanners::Ruby::Patterns::PREFIX_VARIABLE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#61 -CodeRay::Scanners::Ruby::Patterns::QUOTE_TO_TYPE = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#67 -CodeRay::Scanners::Ruby::Patterns::REGEXP_MODIFIERS = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#126 -CodeRay::Scanners::Ruby::Patterns::RUBYDOC = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#138 -CodeRay::Scanners::Ruby::Patterns::RUBYDOC_OR_DATA = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#89 -CodeRay::Scanners::Ruby::Patterns::SIMPLE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#79 -CodeRay::Scanners::Ruby::Patterns::SYMBOL = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#142 -CodeRay::Scanners::Ruby::Patterns::VALUE_FOLLOWS = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/patterns.rb#59 -CodeRay::Scanners::Ruby::Patterns::VARIABLE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/ruby/string_state.rb#8 -class CodeRay::Scanners::Ruby::StringState < ::Struct - # @return [StringState] a new instance of StringState - # - # source://coderay//lib/coderay/scanners/ruby/string_state.rb#48 - def initialize(kind, interpreted, delim, heredoc = T.unsafe(nil)); end - - # source://coderay//lib/coderay/scanners/ruby/string_state.rb#63 - def heredoc_pattern(delim, interpreted, indented); end - - class << self - # source://coderay//lib/coderay/scanners/ruby/string_state.rb#40 - def simple_key_pattern(delim); end - end -end - -# source://coderay//lib/coderay/scanners/ruby/string_state.rb#10 -CodeRay::Scanners::Ruby::StringState::CLOSING_PAREN = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/ruby/string_state.rb#17 -CodeRay::Scanners::Ruby::StringState::STRING_PATTERN = T.let(T.unsafe(nil), Hash) - -# by Josh Goebel -# -# source://coderay//lib/coderay/scanners/sql.rb#5 -class CodeRay::Scanners::SQL < ::CodeRay::Scanners::Scanner - # source://coderay//lib/coderay/scanners/sql.rb#66 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/sql.rb#23 -CodeRay::Scanners::SQL::COMMANDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/sql.rb#38 -CodeRay::Scanners::SQL::DIRECTIVES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/sql.rb#55 -CodeRay::Scanners::SQL::ESCAPE = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/sql.rb#46 -CodeRay::Scanners::SQL::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring) - -# source://coderay//lib/coderay/scanners/sql.rb#9 -CodeRay::Scanners::SQL::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/sql.rb#18 -CodeRay::Scanners::SQL::OBJECTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/sql.rb#44 -CodeRay::Scanners::SQL::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/sql.rb#36 -CodeRay::Scanners::SQL::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/sql.rb#28 -CodeRay::Scanners::SQL::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/scanners/sql.rb#60 -CodeRay::Scanners::SQL::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/sql.rb#58 -CodeRay::Scanners::SQL::STRING_PREFIXES = T.let(T.unsafe(nil), Regexp) - -# source://coderay//lib/coderay/scanners/sql.rb#56 -CodeRay::Scanners::SQL::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp) - -# A scanner for Sass. -# -# source://coderay//lib/coderay/scanners/sass.rb#5 -class CodeRay::Scanners::Sass < ::CodeRay::Scanners::CSS - protected - - # source://coderay//lib/coderay/scanners/sass.rb#16 - def scan_tokens(encoder, options); end - - # source://coderay//lib/coderay/scanners/sass.rb#12 - def setup; end -end - -# = Scanner -# -# The base class for all Scanners. -# -# It is a subclass of Ruby's great +StringScanner+, which -# makes it easy to access the scanning methods inside. -# -# It is also +Enumerable+, so you can use it like an Array of -# Tokens: -# -# require 'coderay' -# -# c_scanner = CodeRay::Scanners[:c].new "if (*p == '{') nest++;" -# -# for text, kind in c_scanner -# puts text if kind == :operator -# end -# -# # prints: (*==)++; -# -# OK, this is a very simple example :) -# You can also use +map+, +any?+, +find+ and even +sort_by+, -# if you want. -# -# source://coderay//lib/coderay/scanners/scanner.rb#29 -class CodeRay::Scanners::Scanner < ::StringScanner - include ::Enumerable - extend ::CodeRay::Plugin - - # Create a new Scanner. - # - # * +code+ is the input String and is handled by the superclass - # StringScanner. - # * +options+ is a Hash with Symbols as keys. - # It is merged with the default options of the class (you can - # overwrite default options here.) - # - # Else, a Tokens object is used. - # - # @return [Scanner] a new instance of Scanner - # - # source://coderay//lib/coderay/scanners/scanner.rb#125 - def initialize(code = T.unsafe(nil), options = T.unsafe(nil)); end - - # The string in binary encoding. - # - # To be used with #pos, which is the index of the byte the scanner - # will scan next. - # - # source://coderay//lib/coderay/scanners/scanner.rb#218 - def binary_string; end - - # The current column position of the scanner, starting with 1. - # See also: #line. - # - # source://coderay//lib/coderay/scanners/scanner.rb#209 - def column(pos = T.unsafe(nil)); end - - # Traverse the tokens. - # - # source://coderay//lib/coderay/scanners/scanner.rb#192 - def each(&block); end - - # the default file extension for this scanner - # - # source://coderay//lib/coderay/scanners/scanner.rb#160 - def file_extension; end - - # the Plugin ID for this scanner - # - # source://coderay//lib/coderay/scanners/scanner.rb#155 - def lang; end - - # The current line position of the scanner, starting with 1. - # See also: #column. - # - # Beware, this is implemented inefficiently. It should be used - # for debugging only. - # - # source://coderay//lib/coderay/scanners/scanner.rb#202 - def line(pos = T.unsafe(nil)); end - - # Sets back the scanner. Subclasses should redefine the reset_instance - # method instead of this one. - # - # source://coderay//lib/coderay/scanners/scanner.rb#142 - def reset; end - - # Returns the value of attribute state. - # - # source://coderay//lib/coderay/scanners/scanner.rb#44 - def state; end - - # Sets the attribute state - # - # @param value the value to set the attribute state to. - # - # source://coderay//lib/coderay/scanners/scanner.rb#44 - def state=(_arg0); end - - # Set a new string to be scanned. - # - # source://coderay//lib/coderay/scanners/scanner.rb#148 - def string=(code); end - - # Scan the code and returns all tokens in a Tokens object. - # - # source://coderay//lib/coderay/scanners/scanner.rb#165 - def tokenize(source = T.unsafe(nil), options = T.unsafe(nil)); end - - # Cache the result of tokenize. - # - # source://coderay//lib/coderay/scanners/scanner.rb#187 - def tokens; end - - protected - - # Scanner error with additional status information - # - # @raise [ScanError] - # - # source://coderay//lib/coderay/scanners/scanner.rb#314 - def raise_inspect(message, tokens, state = T.unsafe(nil), ambit = T.unsafe(nil), backtrace = T.unsafe(nil)); end - - # source://coderay//lib/coderay/scanners/scanner.rb#289 - def raise_inspect_arguments(message, tokens, state, ambit); end - - # Resets the scanner. - # - # source://coderay//lib/coderay/scanners/scanner.rb#265 - def reset_instance; end - - # Shorthand for scan_until(/\z/). - # This method also avoids a JRuby 1.9 mode bug. - # - # source://coderay//lib/coderay/scanners/scanner.rb#328 - def scan_rest; end - - # This is the central method, and commonly the only one a - # subclass implements. - # - # Subclasses must implement this method; it must return +tokens+ - # and must only use Tokens#<< for storing scanned tokens! - # - # @raise [NotImplementedError] - # - # source://coderay//lib/coderay/scanners/scanner.rb#260 - def scan_tokens(tokens, options); end - - # source://coderay//lib/coderay/scanners/scanner.rb#305 - def scanner_state_info(state); end - - # source://coderay//lib/coderay/scanners/scanner.rb#239 - def set_string_from_source(source); end - - # source://coderay//lib/coderay/scanners/scanner.rb#250 - def set_tokens_from_options(options); end - - # Can be implemented by subclasses to do some initialization - # that has to be done once per instance. - # - # Use reset for initialization that has to be done once per - # scan. - # - # source://coderay//lib/coderay/scanners/scanner.rb#236 - def setup; end - - # source://coderay//lib/coderay/scanners/scanner.rb#322 - def tokens_last(tokens, n); end - - # source://coderay//lib/coderay/scanners/scanner.rb#318 - def tokens_size(tokens); end - - class << self - # The encoding used internally by this scanner. - # - # source://coderay//lib/coderay/scanners/scanner.rb#71 - def encoding(name = T.unsafe(nil)); end - - # The typical filename suffix for this scanner's language. - # - # source://coderay//lib/coderay/scanners/scanner.rb#66 - def file_extension(extension = T.unsafe(nil)); end - - # The lang of this Scanner class, which is equal to its Plugin ID. - # - # source://coderay//lib/coderay/scanners/scanner.rb#76 - def lang; end - - # Normalizes the given code into a string with UNIX newlines, in the - # scanner's internal encoding, with invalid and undefined charachters - # replaced by placeholders. Always returns a new object. - # - # source://coderay//lib/coderay/scanners/scanner.rb#51 - def normalize(code); end - - protected - - # source://coderay//lib/coderay/scanners/scanner.rb#82 - def encode_with_encoding(code, target_encoding); end - - # source://coderay//lib/coderay/scanners/scanner.rb#100 - def guess_encoding(s); end - - # source://coderay//lib/coderay/scanners/scanner.rb#96 - def to_unix(code); end - end -end - -# The default options for all scanner classes. -# -# Define @default_options for subclasses. -# -# source://coderay//lib/coderay/scanners/scanner.rb#40 -CodeRay::Scanners::Scanner::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/scanners/scanner.rb#42 -CodeRay::Scanners::Scanner::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# source://coderay//lib/coderay/helpers/plugin.rb#41 -CodeRay::Scanners::Scanner::PLUGIN_HOST = CodeRay::Scanners - -# source://coderay//lib/coderay/scanners/scanner.rb#299 -CodeRay::Scanners::Scanner::SCANNER_STATE_INFO = T.let(T.unsafe(nil), String) - -# source://coderay//lib/coderay/scanners/scanner.rb#271 -CodeRay::Scanners::Scanner::SCAN_ERROR_MESSAGE = T.let(T.unsafe(nil), String) - -# Raised if a Scanner fails while scanning -# -# source://coderay//lib/coderay/scanners/scanner.rb#35 -class CodeRay::Scanners::Scanner::ScanError < ::StandardError; end - -# source://coderay//lib/coderay/scanners/taskpaper.rb#4 -class CodeRay::Scanners::Taskpaper < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/taskpaper.rb#11 - def scan_tokens(encoder, options); end -end - -# Scanner for plain text. -# -# Yields just one token of the kind :plain. -# -# Alias: +plaintext+, +plain+ -# -# source://coderay//lib/coderay/scanners/text.rb#9 -class CodeRay::Scanners::Text < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/text.rb#18 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/text.rb#14 -CodeRay::Scanners::Text::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array) - -# Scanner for XML. -# -# Currently this is the same scanner as Scanners::HTML. -# -# source://coderay//lib/coderay/scanners/xml.rb#9 -class CodeRay::Scanners::XML < ::CodeRay::Scanners::HTML; end - -# Scanner for YAML. -# -# Based on the YAML scanner from Syntax by Jamis Buck. -# -# source://coderay//lib/coderay/scanners/yaml.rb#7 -class CodeRay::Scanners::YAML < ::CodeRay::Scanners::Scanner - protected - - # source://coderay//lib/coderay/scanners/yaml.rb#16 - def scan_tokens(encoder, options); end -end - -# source://coderay//lib/coderay/scanners/yaml.rb#12 -CodeRay::Scanners::YAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Symbol) - -# This module holds the Style class and its subclasses. -# -# See Plugin. -# -# source://coderay//lib/coderay/styles.rb#6 -module CodeRay::Styles - extend ::CodeRay::PluginHost -end - -# A colorful theme using CSS 3 colors (with alpha channel). -# -# source://coderay//lib/coderay/styles/alpha.rb#5 -class CodeRay::Styles::Alpha < ::CodeRay::Styles::Style; end - -# source://coderay//lib/coderay/styles/alpha.rb#14 -CodeRay::Styles::Alpha::CSS_MAIN_STYLES = T.let(T.unsafe(nil), String) - -# source://coderay//lib/coderay/styles/alpha.rb#53 -CodeRay::Styles::Alpha::TOKEN_COLORS = T.let(T.unsafe(nil), String) - -# Base class for styles. -# -# Styles are used by Encoders::HTML to colorize tokens. -# -# source://coderay//lib/coderay/styles/style.rb#8 -class CodeRay::Styles::Style - extend ::CodeRay::Plugin -end - -# source://coderay//lib/coderay/styles/style.rb#12 -CodeRay::Styles::Style::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - -# source://coderay//lib/coderay/helpers/plugin.rb#41 -CodeRay::Styles::Style::PLUGIN_HOST = CodeRay::Styles - -# A Hash of all known token kinds and their associated CSS classes. -# -# source://coderay//lib/coderay/token_kinds.rb#4 -CodeRay::TokenKinds = T.let(T.unsafe(nil), Hash) - -# The Tokens class represents a list of tokens returned from -# a Scanner. It's actually just an Array with a few helper methods. -# -# A token itself is not a special object, just two elements in an Array: -# * the _token_ _text_ (the original source of the token in a String) or -# a _token_ _action_ (begin_group, end_group, begin_line, end_line) -# * the _token_ _kind_ (a Symbol representing the type of the token) -# -# It looks like this: -# -# ..., '# It looks like this', :comment, ... -# ..., '3.1415926', :float, ... -# ..., '$^', :error, ... -# -# Some scanners also yield sub-tokens, represented by special -# token actions, for example :begin_group and :end_group. -# -# The Ruby scanner, for example, splits "a string" into: -# -# [ -# :begin_group, :string, -# '"', :delimiter, -# 'a string', :content, -# '"', :delimiter, -# :end_group, :string -# ] -# -# Tokens can be used to save the output of a Scanners in a simple -# Ruby object that can be send to an Encoder later: -# -# tokens = CodeRay.scan('price = 2.59', :ruby).tokens -# tokens.encode(:html) -# tokens.html -# CodeRay.encoder(:html).encode_tokens(tokens) -# -# Tokens gives you the power to handle pre-scanned code very easily: -# You can serialize it to a JSON string and store it in a database, pass it -# around to encode it more than once, send it to other algorithms... -# -# source://coderay//lib/coderay/tokens.rb#43 -class CodeRay::Tokens < ::Array - # source://coderay//lib/coderay/tokens.rb#156 - def begin_group(kind); end - - # source://coderay//lib/coderay/tokens.rb#158 - def begin_line(kind); end - - # Return the actual number of tokens. - # - # source://coderay//lib/coderay/tokens.rb#151 - def count; end - - # Encode the tokens using encoder. - # - # encoder can be - # * a plugin name like :html oder 'statistic' - # * an Encoder object - # - # options are passed to the encoder. - # - # source://coderay//lib/coderay/tokens.rb#56 - def encode(encoder, options = T.unsafe(nil)); end - - # source://coderay//lib/coderay/tokens.rb#157 - def end_group(kind); end - - # source://coderay//lib/coderay/tokens.rb#159 - def end_line(kind); end - - # Redirects unknown methods to encoder calls. - # - # For example, if you call +tokens.html+, the HTML encoder - # is used to highlight the tokens. - # - # source://coderay//lib/coderay/tokens.rb#70 - def method_missing(meth, options = T.unsafe(nil)); end - - # The Scanner instance that created the tokens. - # - # source://coderay//lib/coderay/tokens.rb#47 - def scanner; end - - # The Scanner instance that created the tokens. - # - # source://coderay//lib/coderay/tokens.rb#47 - def scanner=(_arg0); end - - # Split the tokens into parts of the given +sizes+. - # - # The result will be an Array of Tokens objects. The parts have - # the text size specified by the parameter. In addition, each - # part closes all opened tokens. This is useful to insert tokens - # betweem them. - # - # This method is used by @Scanner#tokenize@ when called with an Array - # of source strings. The Diff encoder uses it for inline highlighting. - # - # source://coderay//lib/coderay/tokens.rb#85 - def split_into_parts(*sizes); end - - def text_token(*_arg0); end - - # Turn tokens into a string by concatenating them. - # - # source://coderay//lib/coderay/tokens.rb#62 - def to_s; end - - def tokens(*_arg0); end -end - -# The result of a scan operation is a TokensProxy, but should act like Tokens. -# -# This proxy makes it possible to use the classic CodeRay.scan.encode API -# while still providing the benefits of direct streaming. -# -# source://coderay//lib/coderay/tokens_proxy.rb#7 -class CodeRay::TokensProxy - # Create a new TokensProxy with the arguments of CodeRay.scan. - # - # @return [TokensProxy] a new instance of TokensProxy - # - # source://coderay//lib/coderay/tokens_proxy.rb#12 - def initialize(input, lang, options = T.unsafe(nil), block = T.unsafe(nil)); end - - # Returns the value of attribute block. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def block; end - - # Sets the attribute block - # - # @param value the value to set the attribute block to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def block=(_arg0); end - - # Overwrite Struct#each. - # - # source://coderay//lib/coderay/tokens_proxy.rb#48 - def each(*args, &blk); end - - # Call CodeRay.encode if +encoder+ is a Symbol; - # otherwise, convert the receiver to tokens and call encoder.encode_tokens. - # - # source://coderay//lib/coderay/tokens_proxy.rb#21 - def encode(encoder, options = T.unsafe(nil)); end - - # Returns the value of attribute input. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def input; end - - # Sets the attribute input - # - # @param value the value to set the attribute input to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def input=(_arg0); end - - # Returns the value of attribute lang. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def lang; end - - # Sets the attribute lang - # - # @param value the value to set the attribute lang to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def lang=(_arg0); end - - # Tries to call encode; - # delegates to tokens otherwise. - # - # source://coderay//lib/coderay/tokens_proxy.rb#31 - def method_missing(method, *args, &blk); end - - # Returns the value of attribute options. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def options; end - - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://coderay//lib/coderay/tokens_proxy.rb#9 - def options=(_arg0); end - - # A (cached) scanner instance to use for the scan task. - # - # source://coderay//lib/coderay/tokens_proxy.rb#43 - def scanner; end - - # The (cached) result of the tokenized input; a Tokens instance. - # - # source://coderay//lib/coderay/tokens_proxy.rb#38 - def tokens; end -end - -# source://coderay//lib/coderay/version.rb#2 -CodeRay::VERSION = T.let(T.unsafe(nil), String) - -# = WordList -# -# A Hash subclass designed for mapping word lists to token types. -# -# A WordList is a Hash with some additional features. -# It is intended to be used for keyword recognition. -# -# WordList is optimized to be used in Scanners, -# typically to decide whether a given ident is a special token. -# -# For case insensitive words use WordList::CaseIgnoring. -# -# Example: -# -# # define word arrays -# RESERVED_WORDS = %w[ -# asm break case continue default do else -# ] -# -# PREDEFINED_TYPES = %w[ -# int long short char void -# ] -# -# # make a WordList -# IDENT_KIND = WordList.new(:ident). -# add(RESERVED_WORDS, :reserved). -# add(PREDEFINED_TYPES, :predefined_type) -# -# ... -# -# def scan_tokens tokens, options -# ... -# -# elsif scan(/[A-Za-z_][A-Za-z_0-9]*/) -# # use it -# kind = IDENT_KIND[match] -# ... -# -# source://coderay//lib/coderay/helpers/word_list.rb#40 -class CodeRay::WordList < ::Hash - # Create a new WordList with +default+ as default value. - # - # @return [WordList] a new instance of WordList - # - # source://coderay//lib/coderay/helpers/word_list.rb#43 - def initialize(default = T.unsafe(nil)); end - - # Add words to the list and associate them with +value+. - # - # Returns +self+, so you can concat add calls. - # - # source://coderay//lib/coderay/helpers/word_list.rb#50 - def add(words, value = T.unsafe(nil)); end -end - -# A CaseIgnoring WordList is like a WordList, only that -# keys are compared case-insensitively (normalizing keys using +downcase+). -# -# source://coderay//lib/coderay/helpers/word_list.rb#60 -class CodeRay::WordList::CaseIgnoring < ::CodeRay::WordList - # source://coderay//lib/coderay/helpers/word_list.rb#62 - def [](key); end - - # source://coderay//lib/coderay/helpers/word_list.rb#66 - def []=(key, value); end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi b/Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi deleted file mode 100644 index 1b39ed4724..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/commander@4.6.0.rbi +++ /dev/null @@ -1,1243 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `commander` gem. -# Please instead update this file by running `bin/tapioca gem commander`. - -# source://commander//lib/commander/core_ext/array.rb#3 -class Array - include ::Enumerable - - class << self - # Split _string_ into an array. Used in - # conjunction with HighLine's #ask, or #ask_for_array - # methods, which must respond to #parse. - # - # This method allows escaping of whitespace. For example - # the arguments foo bar\ baz will become ['foo', 'bar baz'] - # - # === Example - # - # # ask invokes Array#parse - # list = ask 'Favorite cookies:', Array - # - # # or use ask_for_CLASS - # list = ask_for_array 'Favorite cookies: ' - # - # source://commander//lib/commander/core_ext/array.rb#21 - def parse(string); end - end -end - -# source://commander//lib/commander/blank.rb#3 -module Blank - class << self - # @private - # - # source://commander//lib/commander/blank.rb#4 - def included(base); end - end -end - -# source://commander//lib/commander/version.rb#3 -module Commander - private - - # source://commander//lib/commander/configure.rb#4 - def configure(*configuration_opts, &configuration_block); end - - class << self - # source://commander//lib/commander/configure.rb#4 - def configure(*configuration_opts, &configuration_block); end - end -end - -# source://commander//lib/commander/command.rb#6 -class Commander::Command - # Initialize new command with specified _name_. - # - # @return [Command] a new instance of Command - # - # source://commander//lib/commander/command.rb#40 - def initialize(name); end - - # Handle execution of command. The handler may be a class, - # object, or block (see examples below). - # - # === Examples - # - # # Simple block handling - # c.when_called do |args, options| - # # do something - # end - # - # # Create inst of Something and pass args / options - # c.when_called MyLib::Command::Something - # - # # Create inst of Something and use arbitrary method - # c.when_called MyLib::Command::Something, :some_method - # - # # Pass an object to handle callback (requires method symbol) - # c.when_called SomeObject, :some_method - # - # source://commander//lib/commander/command.rb#142 - def action(*args, &block); end - - # Call the commands when_called block with _args_. - # - # source://commander//lib/commander/command.rb#181 - def call(args = T.unsafe(nil)); end - - # Returns the value of attribute description. - # - # source://commander//lib/commander/command.rb#7 - def description; end - - # Sets the attribute description - # - # @param value the value to set the attribute description to. - # - # source://commander//lib/commander/command.rb#7 - def description=(_arg0); end - - # Add a usage example for this command. - # - # Usage examples are later displayed in help documentation - # created by the help formatters. - # - # === Examples - # - # command :something do |c| - # c.example "Should do something", "my_command something" - # end - # - # source://commander//lib/commander/command.rb#59 - def example(description, command); end - - # Returns the value of attribute examples. - # - # source://commander//lib/commander/command.rb#7 - def examples; end - - # Sets the attribute examples - # - # @param value the value to set the attribute examples to. - # - # source://commander//lib/commander/command.rb#7 - def examples=(_arg0); end - - # Returns the value of attribute global_options. - # - # source://commander//lib/commander/command.rb#8 - def global_options; end - - # source://commander//lib/commander/command.rb#215 - def inspect; end - - # Returns the value of attribute name. - # - # source://commander//lib/commander/command.rb#7 - def name; end - - # Sets the attribute name - # - # @param value the value to set the attribute name to. - # - # source://commander//lib/commander/command.rb#7 - def name=(_arg0); end - - # Add an option. - # - # Options are parsed via OptionParser so view it - # for additional usage documentation. A block may optionally be - # passed to handle the option, otherwise the _options_ struct seen below - # contains the results of this option. This handles common formats such as: - # - # -h, --help options.help # => bool - # --[no-]feature options.feature # => bool - # --large-switch options.large_switch # => bool - # --file FILE options.file # => file passed - # --list WORDS options.list # => array - # --date [DATE] options.date # => date or nil when optional argument not set - # - # === Examples - # - # command :something do |c| - # c.option '--recursive', 'Do something recursively' - # c.option '--file FILE', 'Specify a file' - # c.option('--info', 'Display info') { puts "handle with block" } - # c.option '--[no-]feature', 'With or without feature' - # c.option '--list FILES', Array, 'List the files specified' - # - # c.when_called do |args, options| - # do_something_recursively if options.recursive - # do_something_with_file options.file if options.file - # end - # end - # - # === Help Formatters - # - # This method also parses the arguments passed in order to determine - # which were switches, and which were descriptions for the - # option which can later be used within help formatters - # using option[:switches] and option[:description]. - # - # === Input Parsing - # - # Since Commander utilizes OptionParser you can pre-parse and evaluate - # option arguments. Simply require 'optparse/time', or 'optparse/date', as these - # objects must respond to #parse. - # - # c.option '--time TIME', Time - # c.option '--date [DATE]', Date - # - # source://commander//lib/commander/command.rb#110 - def option(*args, &block); end - - # Option proxy proc used when a block is not explicitly passed - # via the #option method. This allows commander to auto-populate - # and work with option values. - # - # source://commander//lib/commander/command.rb#211 - def option_proc(switches); end - - # Returns the value of attribute options. - # - # source://commander//lib/commander/command.rb#7 - def options; end - - # Sets the attribute options - # - # @param value the value to set the attribute options to. - # - # source://commander//lib/commander/command.rb#7 - def options=(_arg0); end - - # Parses options and calls associated procs, - # returning the arguments remaining. - # - # source://commander//lib/commander/command.rb#166 - def parse_options_and_call_procs(*args); end - - # Creates an Options instance populated with the option values - # collected by the #option_proc. - # - # source://commander//lib/commander/command.rb#197 - def proxy_option_struct; end - - # Returns the value of attribute proxy_options. - # - # source://commander//lib/commander/command.rb#7 - def proxy_options; end - - # Sets the attribute proxy_options - # - # @param value the value to set the attribute proxy_options to. - # - # source://commander//lib/commander/command.rb#7 - def proxy_options=(_arg0); end - - # Run the command with _args_. - # - # * parses options, call option blocks - # * invokes when_called proc - # - # source://commander//lib/commander/command.rb#156 - def run(*args); end - - # Returns the value of attribute summary. - # - # source://commander//lib/commander/command.rb#7 - def summary; end - - # Sets the attribute summary - # - # @param value the value to set the attribute summary to. - # - # source://commander//lib/commander/command.rb#7 - def summary=(_arg0); end - - # Returns the value of attribute syntax. - # - # source://commander//lib/commander/command.rb#7 - def syntax; end - - # Sets the attribute syntax - # - # @param value the value to set the attribute syntax to. - # - # source://commander//lib/commander/command.rb#7 - def syntax=(_arg0); end - - # Handle execution of command. The handler may be a class, - # object, or block (see examples below). - # - # === Examples - # - # # Simple block handling - # c.when_called do |args, options| - # # do something - # end - # - # # Create inst of Something and pass args / options - # c.when_called MyLib::Command::Something - # - # # Create inst of Something and use arbitrary method - # c.when_called MyLib::Command::Something, :some_method - # - # # Pass an object to handle callback (requires method symbol) - # c.when_called SomeObject, :some_method - # - # source://commander//lib/commander/command.rb#142 - def when_called(*args, &block); end -end - -# Options struct. -# -# source://commander//lib/commander/command.rb#13 -class Commander::Command::Options - include ::Blank - - # @return [Options] a new instance of Options - # - # source://commander//lib/commander/command.rb#16 - def initialize; end - - # source://commander//lib/commander/command.rb#20 - def __hash__; end - - # source://commander//lib/commander/command.rb#28 - def default(defaults = T.unsafe(nil)); end - - # source://commander//lib/commander/command.rb#32 - def inspect; end - - # source://commander//lib/commander/command.rb#24 - def method_missing(meth, *args); end -end - -# source://commander//lib/commander/delegates.rb#4 -module Commander::Delegates - # source://commander//lib/commander/delegates.rb#17 - def add_command(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def alias_command(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def always_trace!(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def command(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def default_command(*args, &block); end - - # source://commander//lib/commander/delegates.rb#23 - def defined_commands(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def global_option(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def never_trace!(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def program(*args, &block); end - - # source://commander//lib/commander/delegates.rb#17 - def run!(*args, &block); end -end - -# = Help Formatter -# -# Commander's help formatters control the output when -# either the help command, or --help switch are called. -# The default formatter is Commander::HelpFormatter::Terminal. -# -# source://commander//lib/commander/help_formatters.rb#4 -module Commander::HelpFormatter - private - - # source://commander//lib/commander/help_formatters.rb#47 - def indent(amount, text); end - - class << self - # source://commander//lib/commander/help_formatters.rb#47 - def indent(amount, text); end - end -end - -# source://commander//lib/commander/help_formatters/base.rb#12 -class Commander::HelpFormatter::Base - # @return [Base] a new instance of Base - # - # source://commander//lib/commander/help_formatters/base.rb#13 - def initialize(runner); end - - # source://commander//lib/commander/help_formatters/base.rb#17 - def render; end - - # source://commander//lib/commander/help_formatters/base.rb#21 - def render_command(command); end -end - -# source://commander//lib/commander/help_formatters.rb#9 -class Commander::HelpFormatter::Context - # @return [Context] a new instance of Context - # - # source://commander//lib/commander/help_formatters.rb#10 - def initialize(target); end - - # No-op, override in subclasses. - # - # source://commander//lib/commander/help_formatters.rb#21 - def decorate_binding(_bind); end - - # source://commander//lib/commander/help_formatters.rb#14 - def get_binding; end -end - -# source://commander//lib/commander/help_formatters.rb#25 -class Commander::HelpFormatter::ProgramContext < ::Commander::HelpFormatter::Context - # source://commander//lib/commander/help_formatters.rb#26 - def decorate_binding(bind); end - - # source://commander//lib/commander/help_formatters.rb#35 - def max_aliases_length(bind); end - - # source://commander//lib/commander/help_formatters.rb#31 - def max_command_length(bind); end - - # source://commander//lib/commander/help_formatters.rb#39 - def max_key_length(hash, default = T.unsafe(nil)); end -end - -# source://commander//lib/commander/help_formatters/terminal.rb#7 -class Commander::HelpFormatter::Terminal < ::Commander::HelpFormatter::Base - # source://commander//lib/commander/help_formatters/terminal.rb#8 - def render; end - - # source://commander//lib/commander/help_formatters/terminal.rb#12 - def render_command(command); end - - # source://commander//lib/commander/help_formatters/terminal.rb#16 - def template(name); end -end - -# source://commander//lib/commander/help_formatters/terminal_compact.rb#7 -class Commander::HelpFormatter::TerminalCompact < ::Commander::HelpFormatter::Terminal - # source://commander//lib/commander/help_formatters/terminal_compact.rb#8 - def template(name); end -end - -# source://commander//lib/commander/methods.rb#4 -module Commander::Methods - include ::Commander::UI - include ::Commander::UI::AskForClass - include ::Commander::Delegates -end - -# source://commander//lib/commander/platform.rb#4 -module Commander::Platform - class << self - # @return [Boolean] - # - # source://commander//lib/commander/platform.rb#5 - def jruby?; end - end -end - -# source://commander//lib/commander/runner.rb#6 -class Commander::Runner - # Initialize a new command runner. Optionally - # supplying _args_ for mocking, or arbitrary usage. - # - # @return [Runner] a new instance of Runner - # - # source://commander//lib/commander/runner.rb#21 - def initialize(args = T.unsafe(nil)); end - - # Get active command within arguments passed to this runner. - # - # source://commander//lib/commander/runner.rb#223 - def active_command; end - - # Add a command object to this runner. - # - # source://commander//lib/commander/runner.rb#200 - def add_command(command); end - - # Check if command _name_ is an alias. - # - # @return [Boolean] - # - # source://commander//lib/commander/runner.rb#207 - def alias?(name); end - - # Alias command _name_ with _alias_name_. Optionally _args_ may be passed - # as if they were being passed straight to the original command via the command-line. - # - # source://commander//lib/commander/runner.rb#184 - def alias_command(alias_name, name, *args); end - - # Enable tracing on all executions (bypasses --trace) - # - # source://commander//lib/commander/runner.rb#89 - def always_trace!; end - - # Return arguments without the command name. - # - # source://commander//lib/commander/runner.rb#255 - def args_without_command_name; end - - # Creates and yields a command instance when a block is passed. - # Otherwise attempts to return the command, raising InvalidCommandError when - # it does not exist. - # - # === Examples - # - # command :my_command do |c| - # c.when_called do |args| - # # Code - # end - # end - # - # @yield [add_command(Commander::Command.new(name))] - # - # source://commander//lib/commander/runner.rb#161 - def command(name, &block); end - - # Check if a command _name_ exists. - # - # @return [Boolean] - # - # source://commander//lib/commander/runner.rb#214 - def command_exists?(name); end - - # Attempts to locate a command name from within the arguments. - # Supports multi-word commands, using the largest possible match. - # Returns the default command, if no valid commands found in the args. - # - # source://commander//lib/commander/runner.rb#232 - def command_name_from_args; end - - # Returns the value of attribute commands. - # - # source://commander//lib/commander/runner.rb#15 - def commands; end - - # Creates default commands such as 'help' which is - # essentially the same as using the --help switch. - # - # source://commander//lib/commander/runner.rb#287 - def create_default_commands; end - - # Default command _name_ to be used when no other - # command is found in the arguments. - # - # source://commander//lib/commander/runner.rb#193 - def default_command(name); end - - # expand switches of the style '--[no-]blah' into both their - # '--blah' and '--no-blah' variants, so that they can be - # properly detected and removed - # - # source://commander//lib/commander/runner.rb#358 - def expand_optionally_negative_switches(switches); end - - # Add a global option; follows the same syntax as Command#option - # This would be used for switches such as --version, --trace, etc. - # - # source://commander//lib/commander/runner.rb#170 - def global_option(*args, &block); end - - # Returns a proc allowing for commands to inherit global options. - # This functionality works whether a block is present for the global - # option or not, so simple switches such as --verbose can be used - # without a block, and used throughout all commands. - # - # source://commander//lib/commander/runner.rb#393 - def global_option_proc(switches, &block); end - - # Help formatter instance. - # - # source://commander//lib/commander/runner.rb#248 - def help_formatter; end - - # Returns hash of help formatter alias defaults. - # - # source://commander//lib/commander/runner.rb#266 - def help_formatter_alias_defaults; end - - # Returns the value of attribute help_formatter_aliases. - # - # source://commander//lib/commander/runner.rb#15 - def help_formatter_aliases; end - - # Hide the trace option from the help menus and don't add it as a global option - # - # source://commander//lib/commander/runner.rb#97 - def never_trace!; end - - # Returns the value of attribute options. - # - # source://commander//lib/commander/runner.rb#15 - def options; end - - # Parse global command options. - # - # source://commander//lib/commander/runner.rb#372 - def parse_global_options; end - - # source://commander//lib/commander/runner.rb#131 - def program(key, *args, &block); end - - # Returns hash of program defaults. - # - # source://commander//lib/commander/runner.rb#275 - def program_defaults; end - - # Removes global _options_ from _args_. This prevents an invalid - # option error from occurring when options are parsed - # again for the command. - # - # source://commander//lib/commander/runner.rb#322 - def remove_global_options(options, args); end - - # Raises a CommandError when the program any of the _keys_ are not present, or empty. - # - # source://commander//lib/commander/runner.rb#405 - def require_program(*keys); end - - # Raises InvalidCommandError when a _command_ is not found. - # - # source://commander//lib/commander/runner.rb#313 - def require_valid_command(command = T.unsafe(nil)); end - - # Run command parsing and execution process. - # - # source://commander//lib/commander/runner.rb#40 - def run!; end - - # Run the active command. - # - # source://commander//lib/commander/runner.rb#439 - def run_active_command; end - - # source://commander//lib/commander/runner.rb#448 - def say(*args); end - - # Returns array of valid command names found within _args_. - # - # source://commander//lib/commander/runner.rb#239 - def valid_command_names_from(*args); end - - # Return program version. - # - # source://commander//lib/commander/runner.rb#82 - def version; end - - private - - # Attempts to locate a command name from within the provided arguments. - # Supports multi-word commands, using the largest possible match. - # - # source://commander//lib/commander/runner.rb#458 - def longest_valid_command_name_from(args); end - - class << self - # Return singleton Runner instance. - # - # source://commander//lib/commander/runner.rb#33 - def instance; end - - # Return switches and description separated from the _args_ passed. - # - # source://commander//lib/commander/runner.rb#414 - def separate_switches_from_description(*args); end - - # Attempts to generate a method name symbol from +switch+. - # For example: - # - # -h # => :h - # --trace # => :trace - # --some-switch # => :some_switch - # --[no-]feature # => :feature - # --file FILE # => :file - # --list of,things # => :list - # - # source://commander//lib/commander/runner.rb#432 - def switch_to_sym(switch); end - end -end - -# -- -# Exceptions -# ++ -# -# source://commander//lib/commander/runner.rb#11 -class Commander::Runner::CommandError < ::StandardError; end - -# source://commander//lib/commander/runner.rb#13 -class Commander::Runner::InvalidCommandError < ::Commander::Runner::CommandError; end - -# = User Interaction -# -# Commander's user interaction module mixes in common -# methods which extend HighLine's functionality such -# as a #password method rather than calling #ask directly. -# -# source://commander//lib/commander/user_interaction.rb#14 -module Commander::UI - private - - # Execute apple _script_. - # - # source://commander//lib/commander/user_interaction.rb#193 - def applescript(script); end - - # Prompt an editor for input. Optionally supply initial - # _input_ which is written to the editor. - # - # _preferred_editor_ can be hinted. - # - # === Examples - # - # ask_editor # => prompts EDITOR with no input - # ask_editor('foo') # => prompts EDITOR with default text of 'foo' - # ask_editor('foo', 'mate -w') # => prompts TextMate with default text of 'foo' - # - # source://commander//lib/commander/user_interaction.rb#256 - def ask_editor(input = T.unsafe(nil), preferred_editor = T.unsafe(nil)); end - - # Find an editor available in path. Optionally supply the _preferred_ - # editor. Returns the name as a string, nil if none is available. - # - # source://commander//lib/commander/user_interaction.rb#237 - def available_editor(preferred = T.unsafe(nil)); end - - # Choose from a set array of _choices_. - # - # source://commander//lib/commander/user_interaction.rb#43 - def choose(message = T.unsafe(nil), *choices, &block); end - - # 'Say' something using the specified color - # - # === Examples - # color 'I am blue', :blue - # color 'I am bold', :bold - # color 'White on Red', :white, :on_red - # - # === Notes - # You may use: - # * color: black blue cyan green magenta red white yellow - # * style: blink bold clear underline - # * highligh: on_ - # - # source://commander//lib/commander/user_interaction.rb#117 - def color(*args); end - - # Converse with speech recognition. - # - # Currently a "poorman's" DSL to utilize applescript and - # the MacOS speech recognition server. - # - # === Examples - # - # case converse 'What is the best food?', :cookies => 'Cookies', :unknown => 'Nothing' - # when :cookies - # speak 'o.m.g. you are awesome!' - # else - # case converse 'That is lame, shall I convince you cookies are the best?', :yes => 'Ok', :no => 'No', :maybe => 'Maybe another time' - # when :yes - # speak 'Well you see, cookies are just fantastic.' - # else - # speak 'Ok then, bye.' - # end - # end - # - # === Notes - # - # * MacOS only - # - # source://commander//lib/commander/user_interaction.rb#168 - def converse(prompt, responses = T.unsafe(nil)); end - - # Enable paging of output after called. - # - # source://commander//lib/commander/user_interaction.rb#272 - def enable_paging; end - - # Normalize IO streams, allowing for redirection of - # +input+ and/or +output+, for example: - # - # $ foo # => read from terminal I/O - # $ foo in # => read from 'in' file, output to terminal output stream - # $ foo in out # => read from 'in' file, output to 'out' file - # $ foo < in > out # => equivalent to above (essentially) - # - # Optionally a +block+ may be supplied, in which case - # IO will be reset once the block has executed. - # - # === Examples - # - # command :foo do |c| - # c.syntax = 'foo [input] [output]' - # c.when_called do |args, options| - # # or io(args.shift, args.shift) - # io *args - # str = $stdin.gets - # puts 'input was: ' + str.inspect - # end - # end - # - # source://commander//lib/commander/user_interaction.rb#222 - def io(input = T.unsafe(nil), output = T.unsafe(nil), &block); end - - # 'Log' an _action_ to the terminal. This is typically used - # for verbose output regarding actions performed. For example: - # - # create path/to/file.rb - # remove path/to/old_file.rb - # remove path/to/old_file2.rb - # - # source://commander//lib/commander/user_interaction.rb#57 - def log(action, *args); end - - # Ask the user for a password. Specify a custom - # _message_ other than 'Password: ' or override the - # default _mask_ of '*'. - # - # source://commander//lib/commander/user_interaction.rb#34 - def password(message = T.unsafe(nil), mask = T.unsafe(nil)); end - - # Output progress while iterating _arr_. - # - # === Examples - # - # uris = %w( http://vision-media.ca http://google.com ) - # progress uris, :format => "Remaining: :time_remaining" do |uri| - # res = open uri - # end - # - # source://commander//lib/commander/user_interaction.rb#316 - def progress(arr, options = T.unsafe(nil)); end - - # Substitute _hash_'s keys with their associated values in _str_. - # - # source://commander//lib/commander/user_interaction.rb#376 - def replace_tokens(str, hash); end - - # 'Say' something using the ERROR color (red). - # - # === Examples - # say_error 'Everything is not fine' - # say_error 'It is not ok', 'This is not ok too' - # - # source://commander//lib/commander/user_interaction.rb#97 - def say_error(*args); end - - # 'Say' something using the OK color (green). - # - # === Examples - # say_ok 'Everything is fine' - # say_ok 'It is ok', 'This is ok too' - # - # source://commander//lib/commander/user_interaction.rb#69 - def say_ok(*args); end - - # 'Say' something using the WARNING color (yellow). - # - # === Examples - # say_warning 'This is a warning' - # say_warning 'Be careful', 'Think about it' - # - # source://commander//lib/commander/user_interaction.rb#83 - def say_warning(*args); end - - # Speak _message_ using _voice_ at a speaking rate of _rate_ - # - # Voice defaults to 'Alex', which is one of the better voices. - # Speaking rate defaults to 175 words per minute - # - # === Examples - # - # speak 'What is your favorite food? ' - # food = ask 'favorite food?: ' - # speak "Wow, I like #{food} too. We have so much in common." - # speak "I like #{food} as well!", "Victoria", 190 - # - # === Notes - # - # * MacOS only - # - # source://commander//lib/commander/user_interaction.rb#139 - def speak(message, voice = T.unsafe(nil), rate = T.unsafe(nil)); end - - class << self - # Execute apple _script_. - # - # source://commander//lib/commander/user_interaction.rb#193 - def applescript(script); end - - # Prompt an editor for input. Optionally supply initial - # _input_ which is written to the editor. - # - # _preferred_editor_ can be hinted. - # - # === Examples - # - # ask_editor # => prompts EDITOR with no input - # ask_editor('foo') # => prompts EDITOR with default text of 'foo' - # ask_editor('foo', 'mate -w') # => prompts TextMate with default text of 'foo' - # - # source://commander//lib/commander/user_interaction.rb#256 - def ask_editor(input = T.unsafe(nil), preferred_editor = T.unsafe(nil)); end - - # Find an editor available in path. Optionally supply the _preferred_ - # editor. Returns the name as a string, nil if none is available. - # - # source://commander//lib/commander/user_interaction.rb#237 - def available_editor(preferred = T.unsafe(nil)); end - - # Choose from a set array of _choices_. - # - # source://commander//lib/commander/user_interaction.rb#43 - def choose(message = T.unsafe(nil), *choices, &block); end - - # 'Say' something using the specified color - # - # === Examples - # color 'I am blue', :blue - # color 'I am bold', :bold - # color 'White on Red', :white, :on_red - # - # === Notes - # You may use: - # * color: black blue cyan green magenta red white yellow - # * style: blink bold clear underline - # * highligh: on_ - # - # source://commander//lib/commander/user_interaction.rb#117 - def color(*args); end - - # Converse with speech recognition. - # - # Currently a "poorman's" DSL to utilize applescript and - # the MacOS speech recognition server. - # - # === Examples - # - # case converse 'What is the best food?', :cookies => 'Cookies', :unknown => 'Nothing' - # when :cookies - # speak 'o.m.g. you are awesome!' - # else - # case converse 'That is lame, shall I convince you cookies are the best?', :yes => 'Ok', :no => 'No', :maybe => 'Maybe another time' - # when :yes - # speak 'Well you see, cookies are just fantastic.' - # else - # speak 'Ok then, bye.' - # end - # end - # - # === Notes - # - # * MacOS only - # - # source://commander//lib/commander/user_interaction.rb#168 - def converse(prompt, responses = T.unsafe(nil)); end - - # Enable paging of output after called. - # - # source://commander//lib/commander/user_interaction.rb#272 - def enable_paging; end - - # Normalize IO streams, allowing for redirection of - # +input+ and/or +output+, for example: - # - # $ foo # => read from terminal I/O - # $ foo in # => read from 'in' file, output to terminal output stream - # $ foo in out # => read from 'in' file, output to 'out' file - # $ foo < in > out # => equivalent to above (essentially) - # - # Optionally a +block+ may be supplied, in which case - # IO will be reset once the block has executed. - # - # === Examples - # - # command :foo do |c| - # c.syntax = 'foo [input] [output]' - # c.when_called do |args, options| - # # or io(args.shift, args.shift) - # io *args - # str = $stdin.gets - # puts 'input was: ' + str.inspect - # end - # end - # - # source://commander//lib/commander/user_interaction.rb#222 - def io(input = T.unsafe(nil), output = T.unsafe(nil), &block); end - - # 'Log' an _action_ to the terminal. This is typically used - # for verbose output regarding actions performed. For example: - # - # create path/to/file.rb - # remove path/to/old_file.rb - # remove path/to/old_file2.rb - # - # source://commander//lib/commander/user_interaction.rb#57 - def log(action, *args); end - - # Ask the user for a password. Specify a custom - # _message_ other than 'Password: ' or override the - # default _mask_ of '*'. - # - # source://commander//lib/commander/user_interaction.rb#34 - def password(message = T.unsafe(nil), mask = T.unsafe(nil)); end - - # Output progress while iterating _arr_. - # - # === Examples - # - # uris = %w( http://vision-media.ca http://google.com ) - # progress uris, :format => "Remaining: :time_remaining" do |uri| - # res = open uri - # end - # - # source://commander//lib/commander/user_interaction.rb#316 - def progress(arr, options = T.unsafe(nil)); end - - # Substitute _hash_'s keys with their associated values in _str_. - # - # source://commander//lib/commander/user_interaction.rb#376 - def replace_tokens(str, hash); end - - # 'Say' something using the ERROR color (red). - # - # === Examples - # say_error 'Everything is not fine' - # say_error 'It is not ok', 'This is not ok too' - # - # source://commander//lib/commander/user_interaction.rb#97 - def say_error(*args); end - - # 'Say' something using the OK color (green). - # - # === Examples - # say_ok 'Everything is fine' - # say_ok 'It is ok', 'This is ok too' - # - # source://commander//lib/commander/user_interaction.rb#69 - def say_ok(*args); end - - # 'Say' something using the WARNING color (yellow). - # - # === Examples - # say_warning 'This is a warning' - # say_warning 'Be careful', 'Think about it' - # - # source://commander//lib/commander/user_interaction.rb#83 - def say_warning(*args); end - - # Speak _message_ using _voice_ at a speaking rate of _rate_ - # - # Voice defaults to 'Alex', which is one of the better voices. - # Speaking rate defaults to 175 words per minute - # - # === Examples - # - # speak 'What is your favorite food? ' - # food = ask 'favorite food?: ' - # speak "Wow, I like #{food} too. We have so much in common." - # speak "I like #{food} as well!", "Victoria", 190 - # - # === Notes - # - # * MacOS only - # - # source://commander//lib/commander/user_interaction.rb#139 - def speak(message, voice = T.unsafe(nil), rate = T.unsafe(nil)); end - end -end - -# Implements ask_for_CLASS methods. -# -# source://commander//lib/commander/user_interaction.rb#325 -module Commander::UI::AskForClass - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_array(prompt); end - - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_file(prompt); end - - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_float(prompt); end - - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_integer(prompt); end - - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_pathname(prompt); end - - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_regexp(prompt); end - - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_string(prompt); end - - # source://commander//lib/commander/user_interaction.rb#330 - def ask_for_symbol(prompt); end - - # source://commander//lib/commander/user_interaction.rb#335 - def method_missing(method_name, *arguments, &block); end - - private - - # @return [Boolean] - # - # source://commander//lib/commander/user_interaction.rb#368 - def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end -end - -# source://commander//lib/commander/user_interaction.rb#326 -Commander::UI::AskForClass::DEPRECATED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# = Progress Bar -# -# Terminal progress bar utility. In its most basic form -# requires that the developer specifies when the bar should -# be incremented. Note that a hash of tokens may be passed to -# #increment, (or returned when using Object#progress). -# -# uris = %w( -# http://vision-media.ca -# http://yahoo.com -# http://google.com -# ) -# -# bar = Commander::UI::ProgressBar.new uris.length, options -# threads = [] -# uris.each do |uri| -# threads << Thread.new do -# begin -# res = open uri -# bar.increment :uri => uri -# rescue Exception => e -# bar.increment :uri => "#{uri} failed" -# end -# end -# end -# threads.each { |t| t.join } -# -# The Object method #progress is also available: -# -# progress uris, :width => 10 do |uri| -# res = open uri -# { :uri => uri } # Can now use :uri within :format option -# end -# -# source://commander//lib/commander/user_interaction.rb#418 -class Commander::UI::ProgressBar - # Creates a new progress bar. - # - # === Options - # - # :title Title, defaults to "Progress" - # :width Width of :progress_bar - # :progress_str Progress string, defaults to "=" - # :incomplete_str Incomplete bar string, defaults to '.' - # :format Defaults to ":title |:progress_bar| :percent_complete% complete " - # :tokens Additional tokens replaced within the format string - # :complete_message Defaults to "Process complete" - # - # === Tokens - # - # :title - # :percent_complete - # :progress_bar - # :step - # :steps_remaining - # :total_steps - # :time_elapsed - # :time_remaining - # - # @return [ProgressBar] a new instance of ProgressBar - # - # source://commander//lib/commander/user_interaction.rb#444 - def initialize(total, options = T.unsafe(nil)); end - - # Whether or not the operation has completed. - # - # @return [Boolean] - # - # source://commander//lib/commander/user_interaction.rb#534 - def completed?; end - - # Erase previous terminal line. - # - # source://commander//lib/commander/user_interaction.rb#551 - def erase_line; end - - # Whether or not the operation is complete, and we have finished. - # - # @return [Boolean] - # - # source://commander//lib/commander/user_interaction.rb#527 - def finished?; end - - # Generates tokens for this step. - # - # source://commander//lib/commander/user_interaction.rb#497 - def generate_tokens; end - - # Increment progress. Optionally pass _tokens_ which - # can be displayed in the output format. - # - # source://commander//lib/commander/user_interaction.rb#542 - def increment(tokens = T.unsafe(nil)); end - - # Completion percentage. - # - # source://commander//lib/commander/user_interaction.rb#458 - def percent_complete; end - - # Formatted progress bar. - # - # source://commander//lib/commander/user_interaction.rb#490 - def progress_bar; end - - # Output the progress bar. - # - # source://commander//lib/commander/user_interaction.rb#513 - def show; end - - # Number of steps left. - # - # source://commander//lib/commander/user_interaction.rb#483 - def steps_remaining; end - - # Time that has elapsed since the operation started. - # - # source://commander//lib/commander/user_interaction.rb#469 - def time_elapsed; end - - # Estimated time remaining. - # - # source://commander//lib/commander/user_interaction.rb#476 - def time_remaining; end -end - -# source://commander//lib/commander/version.rb#4 -Commander::VERSION = T.let(T.unsafe(nil), String) - -# source://commander//lib/commander/core_ext/object.rb#3 -class Object < ::BasicObject - include ::Kernel - include ::PP::ObjectMixin - - # Return the current binding. - # - # source://commander//lib/commander/core_ext/object.rb#7 - def get_binding; end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.1.rbi b/Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.1.rbi deleted file mode 100644 index f4ea9b43c2..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +++ /dev/null @@ -1,1130 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `diff-lcs` gem. -# Please instead update this file by running `bin/tapioca gem diff-lcs`. - -# source://diff-lcs//lib/diff/lcs.rb#3 -module Diff; end - -# == How Diff Works (by Mark-Jason Dominus) -# -# I once read an article written by the authors of +diff+; they said that they -# hard worked very hard on the algorithm until they found the right one. -# -# I think what they ended up using (and I hope someone will correct me, because -# I am not very confident about this) was the `longest common subsequence' -# method. In the LCS problem, you have two sequences of items: -# -# a b c d f g h j q z -# a b c d e f g i j k r x y z -# -# and you want to find the longest sequence of items that is present in both -# original sequences in the same order. That is, you want to find a new -# sequence *S* which can be obtained from the first sequence by deleting some -# items, and from the second sequence by deleting other items. You also want -# *S* to be as long as possible. In this case *S* is: -# -# a b c d f g j z -# -# From there it's only a small step to get diff-like output: -# -# e h i k q r x y -# + - + + - + + + -# -# This module solves the LCS problem. It also includes a canned function to -# generate +diff+-like output. -# -# It might seem from the example above that the LCS of two sequences is always -# pretty obvious, but that's not always the case, especially when the two -# sequences have many repeated elements. For example, consider -# -# a x b y c z p d q -# a b c a x b y c z -# -# A naive approach might start by matching up the +a+ and +b+ that appear at -# the beginning of each sequence, like this: -# -# a x b y c z p d q -# a b c a b y c z -# -# This finds the common subsequence +a b c z+. But actually, the LCS is +a x b -# y c z+: -# -# a x b y c z p d q -# a b c a x b y c z -# -# source://diff-lcs//lib/diff/lcs.rb#51 -module Diff::LCS - # Returns the difference set between +self+ and +other+. See Diff::LCS#diff. - # - # source://diff-lcs//lib/diff/lcs.rb#75 - def diff(other, callbacks = T.unsafe(nil), &block); end - - # Returns an Array containing the longest common subsequence(s) between - # +self+ and +other+. See Diff::LCS#lcs. - # - # lcs = seq1.lcs(seq2) - # - # A note when using objects: Diff::LCS only works properly when each object - # can be used as a key in a Hash, which typically means that the objects must - # implement Object#eql? in a way that two identical values compare - # identically for key purposes. That is: - # - # O.new('a').eql?(O.new('a')) == true - # - # source://diff-lcs//lib/diff/lcs.rb#70 - def lcs(other, &block); end - - # Attempts to patch +self+ with the provided +patchset+. A new sequence based - # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts - # to autodiscover the direction of the patch. - # - # source://diff-lcs//lib/diff/lcs.rb#101 - def patch(patchset); end - - # Attempts to patch +self+ with the provided +patchset+. A new sequence based - # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Does no - # patch direction autodiscovery. - # - # source://diff-lcs//lib/diff/lcs.rb#109 - def patch!(patchset); end - - # Attempts to patch +self+ with the provided +patchset+, using #patch!. If - # the sequence this is used on supports #replace, the value of +self+ will be - # replaced. See Diff::LCS#patch. Does no patch direction autodiscovery. - # - # source://diff-lcs//lib/diff/lcs.rb#123 - def patch_me(patchset); end - - # Returns the balanced ("side-by-side") difference set between +self+ and - # +other+. See Diff::LCS#sdiff. - # - # source://diff-lcs//lib/diff/lcs.rb#81 - def sdiff(other, callbacks = T.unsafe(nil), &block); end - - # Traverses the discovered longest common subsequences between +self+ and - # +other+ using the alternate, balanced algorithm. See - # Diff::LCS#traverse_balanced. - # - # source://diff-lcs//lib/diff/lcs.rb#94 - def traverse_balanced(other, callbacks = T.unsafe(nil), &block); end - - # Traverses the discovered longest common subsequences between +self+ and - # +other+. See Diff::LCS#traverse_sequences. - # - # source://diff-lcs//lib/diff/lcs.rb#87 - def traverse_sequences(other, callbacks = T.unsafe(nil), &block); end - - # Attempts to patch +self+ with the provided +patchset+. A new sequence based - # on +self+ and the +patchset+ will be created. See Diff::LCS#patch. Attempts - # to autodiscover the direction of the patch. - # - # source://diff-lcs//lib/diff/lcs.rb#101 - def unpatch(patchset); end - - # Attempts to unpatch +self+ with the provided +patchset+. A new sequence - # based on +self+ and the +patchset+ will be created. See Diff::LCS#unpatch. - # Does no patch direction autodiscovery. - # - # source://diff-lcs//lib/diff/lcs.rb#116 - def unpatch!(patchset); end - - # Attempts to unpatch +self+ with the provided +patchset+, using #unpatch!. - # If the sequence this is used on supports #replace, the value of +self+ will - # be replaced. See Diff::LCS#unpatch. Does no patch direction autodiscovery. - # - # source://diff-lcs//lib/diff/lcs.rb#134 - def unpatch_me(patchset); end - - class << self - # :yields: seq1[i] for each matched - # - # source://diff-lcs//lib/diff/lcs.rb#144 - def LCS(seq1, seq2, &block); end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#52 - def callbacks_for(callbacks); end - - # #diff computes the smallest set of additions and deletions necessary to - # turn the first sequence into the second, and returns a description of these - # changes. - # - # See Diff::LCS::DiffCallbacks for the default behaviour. An alternate - # behaviour may be implemented with Diff::LCS::ContextDiffCallbacks. If a - # Class argument is provided for +callbacks+, #diff will attempt to - # initialise it. If the +callbacks+ object (possibly initialised) responds to - # #finish, it will be called. - # - # source://diff-lcs//lib/diff/lcs.rb#168 - def diff(seq1, seq2, callbacks = T.unsafe(nil), &block); end - - # :yields: seq1[i] for each matched - # - # source://diff-lcs//lib/diff/lcs.rb#144 - def lcs(seq1, seq2, &block); end - - # Applies a +patchset+ to the sequence +src+ according to the +direction+ - # (:patch or :unpatch), producing a new sequence. - # - # If the +direction+ is not specified, Diff::LCS::patch will attempt to - # discover the direction of the +patchset+. - # - # A +patchset+ can be considered to apply forward (:patch) if the - # following expression is true: - # - # patch(s1, diff(s1, s2)) -> s2 - # - # A +patchset+ can be considered to apply backward (:unpatch) if the - # following expression is true: - # - # patch(s2, diff(s1, s2)) -> s1 - # - # If the +patchset+ contains no changes, the +src+ value will be returned as - # either src.dup or +src+. A +patchset+ can be deemed as having no - # changes if the following predicate returns true: - # - # patchset.empty? or - # patchset.flatten(1).all? { |change| change.unchanged? } - # - # === Patchsets - # - # A +patchset+ is always an enumerable sequence of changes, hunks of changes, - # or a mix of the two. A hunk of changes is an enumerable sequence of - # changes: - # - # [ # patchset - # # change - # [ # hunk - # # change - # ] - # ] - # - # The +patch+ method accepts patchsets that are enumerable sequences - # containing either Diff::LCS::Change objects (or a subclass) or the array - # representations of those objects. Prior to application, array - # representations of Diff::LCS::Change objects will be reified. - # - # source://diff-lcs//lib/diff/lcs.rb#626 - def patch(src, patchset, direction = T.unsafe(nil)); end - - # Given a set of patchset, convert the current version to the next version. - # Does no auto-discovery. - # - # source://diff-lcs//lib/diff/lcs.rb#736 - def patch!(src, patchset); end - - # #sdiff computes all necessary components to show two sequences and their - # minimized differences side by side, just like the Unix utility - # sdiff does: - # - # old < - - # same same - # before | after - # - > new - # - # See Diff::LCS::SDiffCallbacks for the default behaviour. An alternate - # behaviour may be implemented with Diff::LCS::ContextDiffCallbacks. If a - # Class argument is provided for +callbacks+, #diff will attempt to - # initialise it. If the +callbacks+ object (possibly initialised) responds to - # #finish, it will be called. - # - # Each element of a returned array is a Diff::LCS::ContextChange object, - # which can be implicitly converted to an array. - # - # Diff::LCS.sdiff(a, b).each do |action, (old_pos, old_element), (new_pos, new_element)| - # case action - # when '!' - # # replace - # when '-' - # # delete - # when '+' - # # insert - # end - # end - # - # source://diff-lcs//lib/diff/lcs.rb#200 - def sdiff(seq1, seq2, callbacks = T.unsafe(nil), &block); end - - # #traverse_balanced is an alternative to #traverse_sequences. It uses a - # different algorithm to iterate through the entries in the computed longest - # common subsequence. Instead of viewing the changes as insertions or - # deletions from one of the sequences, #traverse_balanced will report - # changes between the sequences. - # - # The arguments to #traverse_balanced are the two sequences to traverse and a - # callback object, like this: - # - # traverse_balanced(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new) - # - # #sdiff is implemented with #traverse_balanced. - # - # == Callback Methods - # - # Optional callback methods are emphasized. - # - # callbacks#match:: Called when +a+ and +b+ are pointing to - # common elements in +A+ and +B+. - # callbacks#discard_a:: Called when +a+ is pointing to an - # element not in +B+. - # callbacks#discard_b:: Called when +b+ is pointing to an - # element not in +A+. - # callbacks#change:: Called when +a+ and +b+ are pointing to - # the same relative position, but - # A[a] and B[b] are not - # the same; a change has - # occurred. - # - # #traverse_balanced might be a bit slower than #traverse_sequences, - # noticable only while processing huge amounts of data. - # - # == Algorithm - # - # a---+ - # v - # A = a b c e h j l m n p - # B = b c d e f j k l m r s t - # ^ - # b---+ - # - # === Matches - # - # If there are two arrows (+a+ and +b+) pointing to elements of sequences +A+ - # and +B+, the arrows will initially point to the first elements of their - # respective sequences. #traverse_sequences will advance the arrows through - # the sequences one element at a time, calling a method on the user-specified - # callback object before each advance. It will advance the arrows in such a - # way that if there are elements A[i] and B[j] which are - # both equal and part of the longest common subsequence, there will be some - # moment during the execution of #traverse_sequences when arrow +a+ is - # pointing to A[i] and arrow +b+ is pointing to B[j]. When - # this happens, #traverse_sequences will call callbacks#match and - # then it will advance both arrows. - # - # === Discards - # - # Otherwise, one of the arrows is pointing to an element of its sequence that - # is not part of the longest common subsequence. #traverse_sequences will - # advance that arrow and will call callbacks#discard_a or - # callbacks#discard_b, depending on which arrow it advanced. - # - # === Changes - # - # If both +a+ and +b+ point to elements that are not part of the longest - # common subsequence, then #traverse_sequences will try to call - # callbacks#change and advance both arrows. If - # callbacks#change is not implemented, then - # callbacks#discard_a and callbacks#discard_b will be - # called in turn. - # - # The methods for callbacks#match, callbacks#discard_a, - # callbacks#discard_b, and callbacks#change are invoked - # with an event comprising the action ("=", "+", "-", or "!", respectively), - # the indicies +i+ and +j+, and the elements A[i] and B[j]. - # Return values are discarded by #traverse_balanced. - # - # === Context - # - # Note that +i+ and +j+ may not be the same index position, even if +a+ and - # +b+ are considered to be pointing to matching or changed elements. - # - # source://diff-lcs//lib/diff/lcs.rb#475 - def traverse_balanced(seq1, seq2, callbacks = T.unsafe(nil)); end - - # #traverse_sequences is the most general facility provided by this module; - # #diff and #lcs are implemented as calls to it. - # - # The arguments to #traverse_sequences are the two sequences to traverse, and - # a callback object, like this: - # - # traverse_sequences(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new) - # - # == Callback Methods - # - # Optional callback methods are emphasized. - # - # callbacks#match:: Called when +a+ and +b+ are pointing to - # common elements in +A+ and +B+. - # callbacks#discard_a:: Called when +a+ is pointing to an - # element not in +B+. - # callbacks#discard_b:: Called when +b+ is pointing to an - # element not in +A+. - # callbacks#finished_a:: Called when +a+ has reached the end of - # sequence +A+. - # callbacks#finished_b:: Called when +b+ has reached the end of - # sequence +B+. - # - # == Algorithm - # - # a---+ - # v - # A = a b c e h j l m n p - # B = b c d e f j k l m r s t - # ^ - # b---+ - # - # If there are two arrows (+a+ and +b+) pointing to elements of sequences +A+ - # and +B+, the arrows will initially point to the first elements of their - # respective sequences. #traverse_sequences will advance the arrows through - # the sequences one element at a time, calling a method on the user-specified - # callback object before each advance. It will advance the arrows in such a - # way that if there are elements A[i] and B[j] which are - # both equal and part of the longest common subsequence, there will be some - # moment during the execution of #traverse_sequences when arrow +a+ is - # pointing to A[i] and arrow +b+ is pointing to B[j]. When - # this happens, #traverse_sequences will call callbacks#match and - # then it will advance both arrows. - # - # Otherwise, one of the arrows is pointing to an element of its sequence that - # is not part of the longest common subsequence. #traverse_sequences will - # advance that arrow and will call callbacks#discard_a or - # callbacks#discard_b, depending on which arrow it advanced. If both - # arrows point to elements that are not part of the longest common - # subsequence, then #traverse_sequences will advance arrow +a+ and call the - # appropriate callback, then it will advance arrow +b+ and call the appropriate - # callback. - # - # The methods for callbacks#match, callbacks#discard_a, and - # callbacks#discard_b are invoked with an event comprising the - # action ("=", "+", or "-", respectively), the indicies +i+ and +j+, and the - # elements A[i] and B[j]. Return values are discarded by - # #traverse_sequences. - # - # === End of Sequences - # - # If arrow +a+ reaches the end of its sequence before arrow +b+ does, - # #traverse_sequence will try to call callbacks#finished_a with the - # last index and element of +A+ (A[-1]) and the current index and - # element of +B+ (B[j]). If callbacks#finished_a does not - # exist, then callbacks#discard_b will be called on each element of - # +B+ until the end of the sequence is reached (the call will be done with - # A[-1] and B[j] for each element). - # - # If +b+ reaches the end of +B+ before +a+ reaches the end of +A+, - # callbacks#finished_b will be called with the current index and - # element of +A+ (A[i]) and the last index and element of +B+ - # (A[-1]). Again, if callbacks#finished_b does not exist on - # the callback object, then callbacks#discard_a will be called on - # each element of +A+ until the end of the sequence is reached (A[i] - # and B[-1]). - # - # There is a chance that one additional callbacks#discard_a or - # callbacks#discard_b will be called after the end of the sequence - # is reached, if +a+ has not yet reached the end of +A+ or +b+ has not yet - # reached the end of +B+. - # - # source://diff-lcs//lib/diff/lcs.rb#285 - def traverse_sequences(seq1, seq2, callbacks = T.unsafe(nil)); end - - # Given a set of patchset, convert the current version to the prior version. - # Does no auto-discovery. - # - # source://diff-lcs//lib/diff/lcs.rb#730 - def unpatch!(src, patchset); end - - private - - # source://diff-lcs//lib/diff/lcs/internals.rb#4 - def diff_traversal(method, seq1, seq2, callbacks, &block); end - end -end - -# An alias for DefaultCallbacks that is used in -# Diff::LCS#traverse_balanced. -# -# Diff::LCS.LCS(seq1, seq2, Diff::LCS::BalancedCallbacks) -# -# source://diff-lcs//lib/diff/lcs/callbacks.rb#50 -Diff::LCS::BalancedCallbacks = Diff::LCS::DefaultCallbacks - -# A block is an operation removing, adding, or changing a group of items. -# Basically, this is just a list of changes, where each change adds or -# deletes a single item. Used by bin/ldiff. -# -# source://diff-lcs//lib/diff/lcs/block.rb#6 -class Diff::LCS::Block - # @return [Block] a new instance of Block - # - # source://diff-lcs//lib/diff/lcs/block.rb#9 - def initialize(chunk); end - - # Returns the value of attribute changes. - # - # source://diff-lcs//lib/diff/lcs/block.rb#7 - def changes; end - - # source://diff-lcs//lib/diff/lcs/block.rb#21 - def diff_size; end - - # Returns the value of attribute insert. - # - # source://diff-lcs//lib/diff/lcs/block.rb#7 - def insert; end - - # source://diff-lcs//lib/diff/lcs/block.rb#25 - def op; end - - # Returns the value of attribute remove. - # - # source://diff-lcs//lib/diff/lcs/block.rb#7 - def remove; end -end - -# Represents a simplistic (non-contextual) change. Represents the removal or -# addition of an element from either the old or the new sequenced -# enumerable. -# -# source://diff-lcs//lib/diff/lcs/change.rb#6 -class Diff::LCS::Change - include ::Comparable - - # @return [Change] a new instance of Change - # - # source://diff-lcs//lib/diff/lcs/change.rb#27 - def initialize(*args); end - - # source://diff-lcs//lib/diff/lcs/change.rb#65 - def <=>(other); end - - # source://diff-lcs//lib/diff/lcs/change.rb#58 - def ==(other); end - - # Returns the action this Change represents. - # - # source://diff-lcs//lib/diff/lcs/change.rb#20 - def action; end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/change.rb#72 - def adding?; end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/change.rb#84 - def changed?; end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/change.rb#76 - def deleting?; end - - # Returns the sequence element of the Change. - # - # source://diff-lcs//lib/diff/lcs/change.rb#25 - def element; end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/change.rb#88 - def finished_a?; end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/change.rb#92 - def finished_b?; end - - # source://diff-lcs//lib/diff/lcs/change.rb#34 - def inspect(*_args); end - - # Returns the position of the Change. - # - # source://diff-lcs//lib/diff/lcs/change.rb#23 - def position; end - - # source://diff-lcs//lib/diff/lcs/change.rb#38 - def to_a; end - - # source://diff-lcs//lib/diff/lcs/change.rb#38 - def to_ary; end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/change.rb#80 - def unchanged?; end - - class << self - # source://diff-lcs//lib/diff/lcs/change.rb#44 - def from_a(arr); end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/change.rb#15 - def valid_action?(action); end - end -end - -# source://diff-lcs//lib/diff/lcs/change.rb#7 -Diff::LCS::Change::IntClass = Integer - -# The only actions valid for changes are '+' (add), '-' (delete), '=' -# (no change), '!' (changed), '<' (tail changes from first sequence), or -# '>' (tail changes from second sequence). The last two ('<>') are only -# found with Diff::LCS::diff and Diff::LCS::sdiff. -# -# source://diff-lcs//lib/diff/lcs/change.rb#13 -Diff::LCS::Change::VALID_ACTIONS = T.let(T.unsafe(nil), Array) - -# Represents a contextual change. Contains the position and values of the -# elements in the old and the new sequenced enumerables as well as the action -# taken. -# -# source://diff-lcs//lib/diff/lcs/change.rb#101 -class Diff::LCS::ContextChange < ::Diff::LCS::Change - # @return [ContextChange] a new instance of ContextChange - # - # source://diff-lcs//lib/diff/lcs/change.rb#114 - def initialize(*args); end - - # source://diff-lcs//lib/diff/lcs/change.rb#166 - def <=>(other); end - - # source://diff-lcs//lib/diff/lcs/change.rb#157 - def ==(other); end - - # Returns the new element being changed. - # - # source://diff-lcs//lib/diff/lcs/change.rb#112 - def new_element; end - - # Returns the new position being changed. - # - # source://diff-lcs//lib/diff/lcs/change.rb#108 - def new_position; end - - # Returns the old element being changed. - # - # source://diff-lcs//lib/diff/lcs/change.rb#110 - def old_element; end - - # Returns the old position being changed. - # - # source://diff-lcs//lib/diff/lcs/change.rb#106 - def old_position; end - - # source://diff-lcs//lib/diff/lcs/change.rb#122 - def to_a; end - - # source://diff-lcs//lib/diff/lcs/change.rb#122 - def to_ary; end - - class << self - # source://diff-lcs//lib/diff/lcs/change.rb#132 - def from_a(arr); end - - # Simplifies a context change for use in some diff callbacks. '<' actions - # are converted to '-' and '>' actions are converted to '+'. - # - # source://diff-lcs//lib/diff/lcs/change.rb#138 - def simplify(event); end - end -end - -# This will produce a compound array of contextual diff change objects. Each -# element in the #diffs array is a "hunk" array, where each element in each -# "hunk" array is a single change. Each change is a Diff::LCS::ContextChange -# that contains both the old index and new index values for the change. The -# "hunk" provides the full context for the changes. Both old and new objects -# will be presented for changed objects. +nil+ will be substituted for a -# discarded object. -# -# seq1 = %w(a b c e h j l m n p) -# seq2 = %w(b c d e f j k l m r s t) -# -# diffs = Diff::LCS.diff(seq1, seq2, Diff::LCS::ContextDiffCallbacks) -# # This example shows a simplified array format. -# # [ [ [ '-', [ 0, 'a' ], [ 0, nil ] ] ], # 1 -# # [ [ '+', [ 3, nil ], [ 2, 'd' ] ] ], # 2 -# # [ [ '-', [ 4, 'h' ], [ 4, nil ] ], # 3 -# # [ '+', [ 5, nil ], [ 4, 'f' ] ] ], -# # [ [ '+', [ 6, nil ], [ 6, 'k' ] ] ], # 4 -# # [ [ '-', [ 8, 'n' ], [ 9, nil ] ], # 5 -# # [ '+', [ 9, nil ], [ 9, 'r' ] ], -# # [ '-', [ 9, 'p' ], [ 10, nil ] ], -# # [ '+', [ 10, nil ], [ 10, 's' ] ], -# # [ '+', [ 10, nil ], [ 11, 't' ] ] ] ] -# -# The five hunks shown are comprised of individual changes; if there is a -# related set of changes, they are still shown individually. -# -# This callback can also be used with Diff::LCS#sdiff, which will produce -# results like: -# -# diffs = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextCallbacks) -# # This example shows a simplified array format. -# # [ [ [ "-", [ 0, "a" ], [ 0, nil ] ] ], # 1 -# # [ [ "+", [ 3, nil ], [ 2, "d" ] ] ], # 2 -# # [ [ "!", [ 4, "h" ], [ 4, "f" ] ] ], # 3 -# # [ [ "+", [ 6, nil ], [ 6, "k" ] ] ], # 4 -# # [ [ "!", [ 8, "n" ], [ 9, "r" ] ], # 5 -# # [ "!", [ 9, "p" ], [ 10, "s" ] ], -# # [ "+", [ 10, nil ], [ 11, "t" ] ] ] ] -# -# The five hunks are still present, but are significantly shorter in total -# presentation, because changed items are shown as changes ("!") instead of -# potentially "mismatched" pairs of additions and deletions. -# -# The result of this operation is similar to that of -# Diff::LCS::SDiffCallbacks. They may be compared as: -# -# s = Diff::LCS.sdiff(seq1, seq2).reject { |e| e.action == "=" } -# c = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextDiffCallbacks).flatten(1) -# -# s == c # -> true -# -# === Use -# -# This callback object must be initialised and can be used by the -# Diff::LCS#diff or Diff::LCS#sdiff methods. -# -# cbo = Diff::LCS::ContextDiffCallbacks.new -# Diff::LCS.LCS(seq1, seq2, cbo) -# cbo.finish -# -# Note that the call to #finish is absolutely necessary, or the last set of -# changes will not be visible. Alternatively, can be used as: -# -# cbo = Diff::LCS::ContextDiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) } -# -# The necessary #finish call will be made. -# -# === Simplified Array Format -# -# The simplified array format used in the example above can be obtained -# with: -# -# require 'pp' -# pp diffs.map { |e| e.map { |f| f.to_a } } -# -# source://diff-lcs//lib/diff/lcs/callbacks.rb#225 -class Diff::LCS::ContextDiffCallbacks < ::Diff::LCS::DiffCallbacks - # source://diff-lcs//lib/diff/lcs/callbacks.rb#234 - def change(event); end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#226 - def discard_a(event); end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#230 - def discard_b(event); end -end - -# This callback object implements the default set of callback events, -# which only returns the event itself. Note that #finished_a and -# #finished_b are not implemented -- I haven't yet figured out where they -# would be useful. -# -# Note that this is intended to be called as is, e.g., -# -# Diff::LCS.LCS(seq1, seq2, Diff::LCS::DefaultCallbacks) -# -# source://diff-lcs//lib/diff/lcs/callbacks.rb#14 -class Diff::LCS::DefaultCallbacks - class << self - # Called when both the old and new values have changed. - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#32 - def change(event); end - - # Called when the old value is discarded in favour of the new value. - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#22 - def discard_a(event); end - - # Called when the new value is discarded in favour of the old value. - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#27 - def discard_b(event); end - - # Called when two items match. - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#17 - def match(event); end - - private - - def new(*_arg0); end - end -end - -# This will produce a compound array of simple diff change objects. Each -# element in the #diffs array is a +hunk+ or +hunk+ array, where each -# element in each +hunk+ array is a single Change object representing the -# addition or removal of a single element from one of the two tested -# sequences. The +hunk+ provides the full context for the changes. -# -# diffs = Diff::LCS.diff(seq1, seq2) -# # This example shows a simplified array format. -# # [ [ [ '-', 0, 'a' ] ], # 1 -# # [ [ '+', 2, 'd' ] ], # 2 -# # [ [ '-', 4, 'h' ], # 3 -# # [ '+', 4, 'f' ] ], -# # [ [ '+', 6, 'k' ] ], # 4 -# # [ [ '-', 8, 'n' ], # 5 -# # [ '-', 9, 'p' ], -# # [ '+', 9, 'r' ], -# # [ '+', 10, 's' ], -# # [ '+', 11, 't' ] ] ] -# -# There are five hunks here. The first hunk says that the +a+ at position 0 -# of the first sequence should be deleted ('-'). The second hunk -# says that the +d+ at position 2 of the second sequence should be inserted -# ('+'). The third hunk says that the +h+ at position 4 of the -# first sequence should be removed and replaced with the +f+ from position 4 -# of the second sequence. The other two hunks are described similarly. -# -# === Use -# -# This callback object must be initialised and is used by the Diff::LCS#diff -# method. -# -# cbo = Diff::LCS::DiffCallbacks.new -# Diff::LCS.LCS(seq1, seq2, cbo) -# cbo.finish -# -# Note that the call to #finish is absolutely necessary, or the last set of -# changes will not be visible. Alternatively, can be used as: -# -# cbo = Diff::LCS::DiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) } -# -# The necessary #finish call will be made. -# -# === Simplified Array Format -# -# The simplified array format used in the example above can be obtained -# with: -# -# require 'pp' -# pp diffs.map { |e| e.map { |f| f.to_a } } -# -# source://diff-lcs//lib/diff/lcs/callbacks.rb#108 -class Diff::LCS::DiffCallbacks - # :yields: self - # - # @return [DiffCallbacks] a new instance of DiffCallbacks - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#112 - def initialize; end - - # Returns the difference set collected during the diff process. - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#110 - def diffs; end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#135 - def discard_a(event); end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#139 - def discard_b(event); end - - # Finalizes the diff process. If an unprocessed hunk still exists, then it - # is appended to the diff list. - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#127 - def finish; end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#131 - def match(_event); end - - private - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#143 - def finish_hunk; end -end - -# A Hunk is a group of Blocks which overlap because of the context surrounding -# each block. (So if we're not using context, every hunk will contain one -# block.) Used in the diff program (bin/ldiff). -# -# source://diff-lcs//lib/diff/lcs/hunk.rb#8 -class Diff::LCS::Hunk - # Create a hunk using references to both the old and new data, as well as the - # piece of data. - # - # @return [Hunk] a new instance of Hunk - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#16 - def initialize(data_old, data_new, piece, flag_context, file_length_difference); end - - # Returns the value of attribute blocks. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#62 - def blocks; end - - # Returns a diff string based on a format. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#115 - def diff(format, last = T.unsafe(nil)); end - - # Returns the value of attribute end_new. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#64 - def end_new; end - - # Returns the value of attribute end_old. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#64 - def end_old; end - - # Returns the value of attribute file_length_difference. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#65 - def file_length_difference; end - - # Change the "start" and "end" fields to note that context should be added - # to this hunk. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#69 - def flag_context; end - - # source://diff-lcs//lib/diff/lcs/hunk.rb#71 - def flag_context=(context); end - - # Merges this hunk and the provided hunk together if they overlap. Returns - # a truthy value so that if there is no overlap, you can know the merge - # was skipped. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#97 - def merge(hunk); end - - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#331 - def missing_last_newline?(data); end - - # Determines whether there is an overlap between this hunk and the - # provided hunk. This will be true if the difference between the two hunks - # start or end positions is within one position of each other. - # - # @return [Boolean] - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#109 - def overlaps?(hunk); end - - # Returns the value of attribute start_new. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#63 - def start_new; end - - # Returns the value of attribute start_old. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#63 - def start_old; end - - # Merges this hunk and the provided hunk together if they overlap. Returns - # a truthy value so that if there is no overlap, you can know the merge - # was skipped. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#97 - def unshift(hunk); end - - private - - # source://diff-lcs//lib/diff/lcs/hunk.rb#214 - def context_diff(last = T.unsafe(nil)); end - - # Generate a range of item numbers to print. Only print 1 number if the - # range has only one item in it. Otherwise, it's 'start,end' - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#298 - def context_range(mode, op, last = T.unsafe(nil)); end - - # source://diff-lcs//lib/diff/lcs/hunk.rb#276 - def ed_diff(format, _last = T.unsafe(nil)); end - - # source://diff-lcs//lib/diff/lcs/hunk.rb#344 - def encode(literal, target_encoding = T.unsafe(nil)); end - - # source://diff-lcs//lib/diff/lcs/hunk.rb#348 - def encode_as(string, *args); end - - # Note that an old diff can't have any context. Therefore, we know that - # there's only one block in the hunk. - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#134 - def old_diff(_last = T.unsafe(nil)); end - - # source://diff-lcs//lib/diff/lcs/hunk.rb#159 - def unified_diff(last = T.unsafe(nil)); end - - # Generate a range of item numbers to print for unified diff. Print number - # where block starts, followed by number of lines in the block - # (don't print number of lines if it's 1) - # - # source://diff-lcs//lib/diff/lcs/hunk.rb#316 - def unified_range(mode, last); end -end - -# source://diff-lcs//lib/diff/lcs/hunk.rb#10 -Diff::LCS::Hunk::ED_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash) - -# source://diff-lcs//lib/diff/lcs/hunk.rb#9 -Diff::LCS::Hunk::OLD_DIFF_OP_ACTION = T.let(T.unsafe(nil), Hash) - -# source://diff-lcs//lib/diff/lcs/internals.rb#29 -module Diff::LCS::Internals - class << self - # This method will analyze the provided patchset to provide a single-pass - # normalization (conversion of the array form of Diff::LCS::Change objects to - # the object form of same) and detection of whether the patchset represents - # changes to be made. - # - # source://diff-lcs//lib/diff/lcs/internals.rb#102 - def analyze_patchset(patchset, depth = T.unsafe(nil)); end - - # Examine the patchset and the source to see in which direction the - # patch should be applied. - # - # WARNING: By default, this examines the whole patch, so this could take - # some time. This also works better with Diff::LCS::ContextChange or - # Diff::LCS::Change as its source, as an array will cause the creation - # of one of the above. - # - # source://diff-lcs//lib/diff/lcs/internals.rb#147 - def intuit_diff_direction(src, patchset, limit = T.unsafe(nil)); end - - # Compute the longest common subsequence between the sequenced - # Enumerables +a+ and +b+. The result is an array whose contents is such - # that - # - # result = Diff::LCS::Internals.lcs(a, b) - # result.each_with_index do |e, i| - # assert_equal(a[i], b[e]) unless e.nil? - # end - # - # source://diff-lcs//lib/diff/lcs/internals.rb#41 - def lcs(a, b); end - - private - - # If +vector+ maps the matching elements of another collection onto this - # Enumerable, compute the inverse of +vector+ that maps this Enumerable - # onto the collection. (Currently unused.) - # - # source://diff-lcs//lib/diff/lcs/internals.rb#286 - def inverse_vector(a, vector); end - - # Returns a hash mapping each element of an Enumerable to the set of - # positions it occupies in the Enumerable, optionally restricted to the - # elements specified in the range of indexes specified by +interval+. - # - # source://diff-lcs//lib/diff/lcs/internals.rb#298 - def position_hash(enum, interval); end - - # Find the place at which +value+ would normally be inserted into the - # Enumerable. If that place is already occupied by +value+, do nothing - # and return +nil+. If the place does not exist (i.e., it is off the end - # of the Enumerable), add it to the end. Otherwise, replace the element - # at that point with +value+. It is assumed that the Enumerable's values - # are numeric. - # - # This operation preserves the sort order. - # - # source://diff-lcs//lib/diff/lcs/internals.rb#252 - def replace_next_larger(enum, value, last_index = T.unsafe(nil)); end - end -end - -# This will produce a simple array of diff change objects. Each element in -# the #diffs array is a single ContextChange. In the set of #diffs provided -# by SDiffCallbacks, both old and new objects will be presented for both -# changed and unchanged objects. +nil+ will be substituted -# for a discarded object. -# -# The diffset produced by this callback, when provided to Diff::LCS#sdiff, -# will compute and display the necessary components to show two sequences -# and their minimized differences side by side, just like the Unix utility -# +sdiff+. -# -# same same -# before | after -# old < - -# - > new -# -# seq1 = %w(a b c e h j l m n p) -# seq2 = %w(b c d e f j k l m r s t) -# -# diffs = Diff::LCS.sdiff(seq1, seq2) -# # This example shows a simplified array format. -# # [ [ "-", [ 0, "a"], [ 0, nil ] ], -# # [ "=", [ 1, "b"], [ 0, "b" ] ], -# # [ "=", [ 2, "c"], [ 1, "c" ] ], -# # [ "+", [ 3, nil], [ 2, "d" ] ], -# # [ "=", [ 3, "e"], [ 3, "e" ] ], -# # [ "!", [ 4, "h"], [ 4, "f" ] ], -# # [ "=", [ 5, "j"], [ 5, "j" ] ], -# # [ "+", [ 6, nil], [ 6, "k" ] ], -# # [ "=", [ 6, "l"], [ 7, "l" ] ], -# # [ "=", [ 7, "m"], [ 8, "m" ] ], -# # [ "!", [ 8, "n"], [ 9, "r" ] ], -# # [ "!", [ 9, "p"], [ 10, "s" ] ], -# # [ "+", [ 10, nil], [ 11, "t" ] ] ] -# -# The result of this operation is similar to that of -# Diff::LCS::ContextDiffCallbacks. They may be compared as: -# -# s = Diff::LCS.sdiff(seq1, seq2).reject { |e| e.action == "=" } -# c = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextDiffCallbacks).flatten(1) -# -# s == c # -> true -# -# === Use -# -# This callback object must be initialised and is used by the Diff::LCS#sdiff -# method. -# -# cbo = Diff::LCS::SDiffCallbacks.new -# Diff::LCS.LCS(seq1, seq2, cbo) -# -# As with the other initialisable callback objects, -# Diff::LCS::SDiffCallbacks can be initialised with a block. As there is no -# "fininishing" to be done, this has no effect on the state of the object. -# -# cbo = Diff::LCS::SDiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) } -# -# === Simplified Array Format -# -# The simplified array format used in the example above can be obtained -# with: -# -# require 'pp' -# pp diffs.map { |e| e.to_a } -# -# source://diff-lcs//lib/diff/lcs/callbacks.rb#303 -class Diff::LCS::SDiffCallbacks - # :yields: self - # - # @return [SDiffCallbacks] a new instance of SDiffCallbacks - # @yield [_self] - # @yieldparam _self [Diff::LCS::SDiffCallbacks] the object that the method was called on - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#307 - def initialize; end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#324 - def change(event); end - - # Returns the difference set collected during the diff process. - # - # source://diff-lcs//lib/diff/lcs/callbacks.rb#305 - def diffs; end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#316 - def discard_a(event); end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#320 - def discard_b(event); end - - # source://diff-lcs//lib/diff/lcs/callbacks.rb#312 - def match(event); end -end - -# An alias for DefaultCallbacks that is used in -# Diff::LCS#traverse_sequences. -# -# Diff::LCS.LCS(seq1, seq2, Diff::LCS::SequenceCallbacks) -# -# source://diff-lcs//lib/diff/lcs/callbacks.rb#44 -Diff::LCS::SequenceCallbacks = Diff::LCS::DefaultCallbacks - -# source://diff-lcs//lib/diff/lcs.rb#52 -Diff::LCS::VERSION = T.let(T.unsafe(nil), String) diff --git a/Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi b/Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi deleted file mode 100644 index d62d1db0cd..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/docile@1.4.0.rbi +++ /dev/null @@ -1,376 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `docile` gem. -# Please instead update this file by running `bin/tapioca gem docile`. - -# Docile keeps your Ruby DSLs tame and well-behaved. -# -# source://docile//lib/docile/version.rb#3 -module Docile - extend ::Docile::Execution - - private - - # Execute a block in the context of an object whose methods represent the - # commands in a DSL. - # - # Use this method to execute an *imperative* DSL, which means that: - # - # 1. Each command mutates the state of the DSL context object - # 2. The return value of each command is ignored - # 3. The final return value is the original context object - # - # @example Use a String as a DSL - # Docile.dsl_eval("Hello, world!") do - # reverse! - # upcase! - # end - # #=> "!DLROW ,OLLEH" - # @example Use an Array as a DSL - # Docile.dsl_eval([]) do - # push 1 - # push 2 - # pop - # push 3 - # end - # #=> [1, 3] - # @note Use with an *imperative* DSL (commands modify the context object) - # @param dsl [Object] context object whose methods make up the DSL - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed against the - # `dsl` context object - # @return [Object] the `dsl` context object after executing the block - # - # source://docile//lib/docile.rb#45 - def dsl_eval(dsl, *args, **_arg2, &block); end - - # Execute a block in the context of an immutable object whose methods, - # and the methods of their return values, represent the commands in a DSL. - # - # Use this method to execute a *functional* DSL, which means that: - # - # 1. The original DSL context object is never mutated - # 2. Each command returns the next DSL context object - # 3. The final return value is the value returned by the last command - # - # @example Use a frozen String as a DSL - # Docile.dsl_eval_immutable("I'm immutable!".freeze) do - # reverse - # upcase - # end - # #=> "!ELBATUMMI M'I" - # @example Use a Float as a DSL - # Docile.dsl_eval_immutable(84.5) do - # fdiv(2) - # floor - # end - # #=> 42 - # @note Use with a *functional* DSL (commands return successor - # context objects) - # @param dsl [Object] immutable context object whose methods make up the - # initial DSL - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed against the - # `dsl` context object and successor return values - # @return [Object] the return value of the final command in the block - # - # source://docile//lib/docile.rb#128 - def dsl_eval_immutable(dsl, *args, **_arg2, &block); end - - # Execute a block in the context of an object whose methods represent the - # commands in a DSL, and return *the block's return value*. - # - # Use this method to execute an *imperative* DSL, which means that: - # - # 1. Each command mutates the state of the DSL context object - # 2. The return value of each command is ignored - # 3. The final return value is the original context object - # - # @example Use a String as a DSL - # Docile.dsl_eval_with_block_return("Hello, world!") do - # reverse! - # upcase! - # first - # end - # #=> "!" - # @example Use an Array as a DSL - # Docile.dsl_eval_with_block_return([]) do - # push "a" - # push "b" - # pop - # push "c" - # length - # end - # #=> 2 - # @note Use with an *imperative* DSL (commands modify the context object) - # @param dsl [Object] context object whose methods make up the DSL - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed against the - # `dsl` context object - # @return [Object] the return value from executing the block - # - # source://docile//lib/docile.rb#87 - def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end - - class << self - # Execute a block in the context of an object whose methods represent the - # commands in a DSL. - # - # Use this method to execute an *imperative* DSL, which means that: - # - # 1. Each command mutates the state of the DSL context object - # 2. The return value of each command is ignored - # 3. The final return value is the original context object - # - # @example Use a String as a DSL - # Docile.dsl_eval("Hello, world!") do - # reverse! - # upcase! - # end - # #=> "!DLROW ,OLLEH" - # @example Use an Array as a DSL - # Docile.dsl_eval([]) do - # push 1 - # push 2 - # pop - # push 3 - # end - # #=> [1, 3] - # @note Use with an *imperative* DSL (commands modify the context object) - # @param dsl [Object] context object whose methods make up the DSL - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed against the - # `dsl` context object - # @return [Object] the `dsl` context object after executing the block - # - # source://docile//lib/docile.rb#45 - def dsl_eval(dsl, *args, **_arg2, &block); end - - # Execute a block in the context of an immutable object whose methods, - # and the methods of their return values, represent the commands in a DSL. - # - # Use this method to execute a *functional* DSL, which means that: - # - # 1. The original DSL context object is never mutated - # 2. Each command returns the next DSL context object - # 3. The final return value is the value returned by the last command - # - # @example Use a frozen String as a DSL - # Docile.dsl_eval_immutable("I'm immutable!".freeze) do - # reverse - # upcase - # end - # #=> "!ELBATUMMI M'I" - # @example Use a Float as a DSL - # Docile.dsl_eval_immutable(84.5) do - # fdiv(2) - # floor - # end - # #=> 42 - # @note Use with a *functional* DSL (commands return successor - # context objects) - # @param dsl [Object] immutable context object whose methods make up the - # initial DSL - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed against the - # `dsl` context object and successor return values - # @return [Object] the return value of the final command in the block - # - # source://docile//lib/docile.rb#128 - def dsl_eval_immutable(dsl, *args, **_arg2, &block); end - - # Execute a block in the context of an object whose methods represent the - # commands in a DSL, and return *the block's return value*. - # - # Use this method to execute an *imperative* DSL, which means that: - # - # 1. Each command mutates the state of the DSL context object - # 2. The return value of each command is ignored - # 3. The final return value is the original context object - # - # @example Use a String as a DSL - # Docile.dsl_eval_with_block_return("Hello, world!") do - # reverse! - # upcase! - # first - # end - # #=> "!" - # @example Use an Array as a DSL - # Docile.dsl_eval_with_block_return([]) do - # push "a" - # push "b" - # pop - # push "c" - # length - # end - # #=> 2 - # @note Use with an *imperative* DSL (commands modify the context object) - # @param dsl [Object] context object whose methods make up the DSL - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed against the - # `dsl` context object - # @return [Object] the return value from executing the block - # - # source://docile//lib/docile.rb#87 - def dsl_eval_with_block_return(dsl, *args, **_arg2, &block); end - end -end - -# This is used to remove entries pointing to Docile's source files -# from {Exception#backtrace} and {Exception#backtrace_locations}. -# -# If {NoMethodError} is caught then the exception object will be extended -# by this module to add filter functionalities. -# -# @api private -# -# source://docile//lib/docile/backtrace_filter.rb#11 -module Docile::BacktraceFilter - # @api private - # - # source://docile//lib/docile/backtrace_filter.rb#14 - def backtrace; end - - # @api private - # - # source://docile//lib/docile/backtrace_filter.rb#19 - def backtrace_locations; end -end - -# @api private -# -# source://docile//lib/docile/backtrace_filter.rb#12 -Docile::BacktraceFilter::FILTER_PATTERN = T.let(T.unsafe(nil), Regexp) - -# Operates in the same manner as {FallbackContextProxy}, but replacing -# the primary `receiver` object with the result of each proxied method. -# -# This is useful for implementing DSL evaluation for immutable context -# objects. -# -# -# @api private -# @see Docile.dsl_eval_immutable -# -# source://docile//lib/docile/chaining_fallback_context_proxy.rb#19 -class Docile::ChainingFallbackContextProxy < ::Docile::FallbackContextProxy - # Proxy methods as in {FallbackContextProxy#method_missing}, replacing - # `receiver` with the returned value. - # - # @api private - # - # source://docile//lib/docile/chaining_fallback_context_proxy.rb#20 - def method_missing(method, *args, **_arg2, &block); end -end - -# A namespace for functions relating to the execution of a block against a -# proxy object. -# -# @api private -# -# source://docile//lib/docile/execution.rb#8 -module Docile::Execution - private - - # Execute a block in the context of an object whose methods represent the - # commands in a DSL, using a specific proxy class. - # - # @api private - # @param dsl [Object] context object whose methods make up the - # (initial) DSL - # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed - # @return [Object] the return value of the block - # - # source://docile//lib/docile/execution.rb#19 - def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end - - class << self - # Execute a block in the context of an object whose methods represent the - # commands in a DSL, using a specific proxy class. - # - # @api private - # @param dsl [Object] context object whose methods make up the - # (initial) DSL - # @param proxy_type [FallbackContextProxy, ChainingFallbackContextProxy] which class to instantiate as proxy context - # @param args [Array] arguments to be passed to the block - # @param block [Proc] the block of DSL commands to be executed - # @return [Object] the return value of the block - # - # source://docile//lib/docile/execution.rb#19 - def exec_in_proxy_context(dsl, proxy_type, *args, **_arg3, &block); end - end -end - -# A proxy object with a primary receiver as well as a secondary -# fallback receiver. -# -# Will attempt to forward all method calls first to the primary receiver, -# and then to the fallback receiver if the primary does not handle that -# method. -# -# This is useful for implementing DSL evaluation in the context of an object. -# -# -# @api private -# @see Docile.dsl_eval -# -# source://docile//lib/docile/fallback_context_proxy.rb#20 -class Docile::FallbackContextProxy - # @api private - # @param receiver [Object] the primary proxy target to which all methods - # initially will be forwarded - # @param fallback [Object] the fallback proxy target to which any methods - # not handled by `receiver` will be forwarded - # @return [FallbackContextProxy] a new instance of FallbackContextProxy - # - # source://docile//lib/docile/fallback_context_proxy.rb#46 - def initialize(receiver, fallback); end - - # @api private - # @return [Array] Instance variable names, excluding - # {NON_PROXIED_INSTANCE_VARIABLES} - # - # source://docile//lib/docile/fallback_context_proxy.rb#85 - def instance_variables; end - - # Proxy all methods, excluding {NON_PROXIED_METHODS}, first to `receiver` - # and then to `fallback` if not found. - # - # @api private - # - # source://docile//lib/docile/fallback_context_proxy.rb#91 - def method_missing(method, *args, **_arg2, &block); end -end - -# The set of methods which will **not** fallback from the block's context -# to the dsl object. -# -# @api private -# -# source://docile//lib/docile/fallback_context_proxy.rb#30 -Docile::FallbackContextProxy::NON_FALLBACK_METHODS = T.let(T.unsafe(nil), Set) - -# The set of instance variables which are local to this object and hidden. -# All other instance variables will be copied in and out of this object -# from the scope in which this proxy was created. -# -# @api private -# -# source://docile//lib/docile/fallback_context_proxy.rb#35 -Docile::FallbackContextProxy::NON_PROXIED_INSTANCE_VARIABLES = T.let(T.unsafe(nil), Set) - -# The set of methods which will **not** be proxied, but instead answered -# by this object directly. -# -# @api private -# -# source://docile//lib/docile/fallback_context_proxy.rb#23 -Docile::FallbackContextProxy::NON_PROXIED_METHODS = T.let(T.unsafe(nil), Set) - -# The current version of this library -# -# source://docile//lib/docile/version.rb#5 -Docile::VERSION = T.let(T.unsafe(nil), String) diff --git a/Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi b/Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi deleted file mode 100644 index 3b036aba94..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/hana@1.3.7.rbi +++ /dev/null @@ -1,157 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `hana` gem. -# Please instead update this file by running `bin/tapioca gem hana`. - -# source://hana//lib/hana.rb#3 -module Hana; end - -# source://hana//lib/hana.rb#56 -class Hana::Patch - # @return [Patch] a new instance of Patch - # - # source://hana//lib/hana.rb#88 - def initialize(is); end - - # source://hana//lib/hana.rb#94 - def apply(doc); end - - private - - # @raise [MissingTargetException] - # - # source://hana//lib/hana.rb#107 - def add(ins, doc); end - - # source://hana//lib/hana.rb#223 - def add_op(dest, key, obj); end - - # @raise [ObjectOperationOnArrayException] - # - # source://hana//lib/hana.rb#214 - def check_index(obj, key); end - - # @raise [MissingTargetException] - # - # source://hana//lib/hana.rb#144 - def copy(ins, doc); end - - # source://hana//lib/hana.rb#202 - def get_path(ins); end - - # @raise [MissingTargetException] - # - # source://hana//lib/hana.rb#128 - def move(ins, doc); end - - # source://hana//lib/hana.rb#193 - def remove(ins, doc); end - - # source://hana//lib/hana.rb#180 - def replace(ins, doc); end - - # source://hana//lib/hana.rb#232 - def rm_op(obj, key); end - - # source://hana//lib/hana.rb#170 - def test(ins, doc); end -end - -# source://hana//lib/hana.rb#57 -class Hana::Patch::Exception < ::StandardError; end - -# source://hana//lib/hana.rb#104 -Hana::Patch::FROM = T.let(T.unsafe(nil), String) - -# source://hana//lib/hana.rb#60 -class Hana::Patch::FailedTestException < ::Hana::Patch::Exception - # @return [FailedTestException] a new instance of FailedTestException - # - # source://hana//lib/hana.rb#63 - def initialize(path, value); end - - # Returns the value of attribute path. - # - # source://hana//lib/hana.rb#61 - def path; end - - # Sets the attribute path - # - # @param value the value to set the attribute path to. - # - # source://hana//lib/hana.rb#61 - def path=(_arg0); end - - # Returns the value of attribute value. - # - # source://hana//lib/hana.rb#61 - def value; end - - # Sets the attribute value - # - # @param value the value to set the attribute value to. - # - # source://hana//lib/hana.rb#61 - def value=(_arg0); end -end - -# source://hana//lib/hana.rb#79 -class Hana::Patch::IndexError < ::Hana::Patch::Exception; end - -# source://hana//lib/hana.rb#76 -class Hana::Patch::InvalidObjectOperationException < ::Hana::Patch::Exception; end - -# source://hana//lib/hana.rb#85 -class Hana::Patch::InvalidPath < ::Hana::Patch::Exception; end - -# source://hana//lib/hana.rb#82 -class Hana::Patch::MissingTargetException < ::Hana::Patch::Exception; end - -# source://hana//lib/hana.rb#73 -class Hana::Patch::ObjectOperationOnArrayException < ::Hana::Patch::Exception; end - -# source://hana//lib/hana.rb#70 -class Hana::Patch::OutOfBoundsException < ::Hana::Patch::Exception; end - -# source://hana//lib/hana.rb#92 -Hana::Patch::VALID = T.let(T.unsafe(nil), Hash) - -# source://hana//lib/hana.rb#105 -Hana::Patch::VALUE = T.let(T.unsafe(nil), String) - -# source://hana//lib/hana.rb#6 -class Hana::Pointer - include ::Enumerable - - # @return [Pointer] a new instance of Pointer - # - # source://hana//lib/hana.rb#15 - def initialize(path); end - - # source://hana//lib/hana.rb#19 - def each(&block); end - - # source://hana//lib/hana.rb#21 - def eval(object); end - - class << self - # source://hana//lib/hana.rb#27 - def eval(list, object); end - - # source://hana//lib/hana.rb#39 - def parse(path); end - end -end - -# source://hana//lib/hana.rb#25 -Hana::Pointer::ESC = T.let(T.unsafe(nil), Hash) - -# source://hana//lib/hana.rb#9 -class Hana::Pointer::Exception < ::StandardError; end - -# source://hana//lib/hana.rb#12 -class Hana::Pointer::FormatError < ::Hana::Pointer::Exception; end - -# source://hana//lib/hana.rb#4 -Hana::VERSION = T.let(T.unsafe(nil), String) diff --git a/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi b/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi deleted file mode 100644 index 1b18ddcabe..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi +++ /dev/null @@ -1,3820 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `highline` gem. -# Please instead update this file by running `bin/tapioca gem highline`. - -# A HighLine object is a "high-level line oriented" shell over an input and an -# output stream. HighLine simplifies common console interaction, effectively -# replacing {Kernel#puts} and {Kernel#gets}. User code can simply specify the -# question to ask and any details about user interaction, then leave the rest -# of the work to HighLine. When {HighLine#ask} returns, you'll have the answer -# you requested, even if HighLine had to ask many times, validate results, -# perform range checking, convert types, etc. -# -# @example Basic usage -# cli = HighLine.new -# answer = cli.ask "What do you think?" -# puts "You have answered: #{answer}" -# -# source://highline//lib/highline/terminal.rb#14 -class HighLine - include ::HighLine::BuiltinStyles - include ::HighLine::CustomErrors - extend ::HighLine::BuiltinStyles::ClassMethods - extend ::SingleForwardable - - # Create an instance of HighLine connected to the given _input_ - # and _output_ streams. - # - # @param input [IO] the default input stream for HighLine. - # @param output [IO] the default output stream for HighLine. - # @param wrap_at [Integer] all statements outputed through - # HighLine will be wrapped to this column size if set. - # @param page_at [Integer] page size and paginating. - # @param indent_size [Integer] indentation size in spaces. - # @param indent_level [Integer] how deep is indentated. - # @return [HighLine] a new instance of HighLine - # - # source://highline//lib/highline.rb#102 - def initialize(input = T.unsafe(nil), output = T.unsafe(nil), wrap_at = T.unsafe(nil), page_at = T.unsafe(nil), indent_size = T.unsafe(nil), indent_level = T.unsafe(nil)); end - - # A shortcut to HighLine.ask() a question that only accepts "yes" or "no" - # answers ("y" and "n" are allowed) and returns +true+ or +false+ - # (+true+ for "yes"). If provided a +true+ value, _character_ will cause - # HighLine to fetch a single character response. A block can be provided - # to further configure the question as in HighLine.ask() - # - # Raises EOFError if input is exhausted. - # - # @param yes_or_no_question [String] a question that accepts yes and no as - # answers - # @param character [Boolean, :getc] character mode to be passed to - # Question#character - # @see Question#character - # - # source://highline//lib/highline.rb#193 - def agree(yes_or_no_question, character = T.unsafe(nil)); end - - # This method is the primary interface for user input. Just provide a - # _question_ to ask the user, the _answer_type_ you want returned, and - # optionally a code block setting up details of how you want the question - # handled. See {#say} for details on the format of _question_, and - # {Question} for more information about _answer_type_ and what's - # valid in the code block. - # - # Raises EOFError if input is exhausted. - # - # @param template_or_question [String, Question] what to ask - # @param answer_type [Class] to what class to convert the answer - # @param details to be passed to Question.new - # @return answer converted to the class in answer_type - # - # source://highline//lib/highline.rb#217 - def ask(template_or_question, answer_type = T.unsafe(nil), &details); end - - # This method is HighLine's menu handler. For simple usage, you can just - # pass all the menu items you wish to display. At that point, choose() will - # build and display a menu, walk the user through selection, and return - # their choice among the provided items. You might use this in a case - # statement for quick and dirty menus. - # - # However, choose() is capable of much more. If provided, a block will be - # passed a HighLine::Menu object to configure. Using this method, you can - # customize all the details of menu handling from index display, to building - # a complete shell-like menuing system. See HighLine::Menu for all the - # methods it responds to. - # - # Raises EOFError if input is exhausted. - # - # @param items [Array] - # @param details [Proc] to be passed to Menu.new - # @return [String] answer - # - # source://highline//lib/highline.rb#245 - def choose(*items, &details); end - - # This method provides easy access to ANSI color sequences, without the user - # needing to remember to CLEAR at the end of each sequence. Just pass the - # _string_ to color, followed by a list of _colors_ you would like it to be - # affected by. The _colors_ can be HighLine class constants, or symbols - # (:blue for BLUE, for example). A CLEAR will automatically be embedded to - # the end of the returned String. - # - # This method returns the original _string_ unchanged if use_color? - # is +false+. - # - # @example - # cli = HighLine.new - # cli.color("Sustainable", :green, :bold) - # # => "\e[32m\e[1mSustainable\e[0m" - # - # # As class method (delegating to HighLine.default_instance) - # HighLine.color("Sustainable", :green, :bold) - # @param string [String] string to be colored - # @param colors [Array] array of colors like [:red, :blue] - # @return [String] (ANSI escaped) colored string - # - # source://highline//lib/highline.rb#321 - def color(string, *colors); end - - # In case you just want the color code, without the embedding and - # the CLEAR sequence. - # - # @example - # s = HighLine.Style(:red, :blue) - # s.code # => "\e[31m\e[34m" - # - # HighLine.color_code(:red, :blue) # => "\e[31m\e[34m" - # - # cli = HighLine.new - # cli.color_code(:red, :blue) # => "\e[31m\e[34m" - # @param colors [Array] - # @return [String] ANSI escape code for the given colors. - # - # source://highline//lib/highline.rb#341 - def color_code(*colors); end - - # Get response each character per turn - # - # @param question [Question] - # @return [String] response - # - # source://highline//lib/highline.rb#607 - def get_response_character_mode(question); end - - # Get response using #getc - # - # @param question [Question] - # @return [String] response - # - # source://highline//lib/highline.rb#597 - def get_response_getc_mode(question); end - - # Get response one line at time - # - # @param question [Question] - # @return [String] response - # - # source://highline//lib/highline.rb#514 - def get_response_line_mode(question); end - - # Executes block or outputs statement with indentation - # - # @param increase [Integer] how much to increase indentation - # @param statement [Statement, String] to be said - # @param multiline [Boolean] - # @return [void] - # @see #multi_indent - # - # source://highline//lib/highline.rb#431 - def indent(increase = T.unsafe(nil), statement = T.unsafe(nil), multiline = T.unsafe(nil)); end - - # @return [Integer] The indentation level - # - # source://highline//lib/highline.rb#158 - def indent_level; end - - # @return [Integer] The indentation level - # - # source://highline//lib/highline.rb#158 - def indent_level=(_arg0); end - - # @return [Integer] The indentation size in characters - # - # source://highline//lib/highline.rb#155 - def indent_size; end - - # @return [Integer] The indentation size in characters - # - # source://highline//lib/highline.rb#155 - def indent_size=(_arg0); end - - # Outputs indentation with current settings - # - # source://highline//lib/highline.rb#419 - def indentation; end - - # @return [IO] the default input stream for a HighLine instance - # - # source://highline//lib/highline.rb#161 - def input; end - - # When gathering a Hash with {QuestionAsker#gather_hash}, - # it tracks the current key being asked. - # - # @todo We should probably move this into the HighLine::Question - # object. - # - # source://highline//lib/highline.rb#171 - def key; end - - # When gathering a Hash with {QuestionAsker#gather_hash}, - # it tracks the current key being asked. - # - # @todo We should probably move this into the HighLine::Question - # object. - # - # source://highline//lib/highline.rb#171 - def key=(_arg0); end - - # Renders a list of itens using a {ListRenderer} - # - # @param items [Array] - # @param mode [Symbol] - # @param option - # @return [String] - # @see ListRenderer#initialize ListRenderer#initialize for parameter details - # - # source://highline//lib/highline.rb#358 - def list(items, mode = T.unsafe(nil), option = T.unsafe(nil)); end - - # @return [Boolean] Indentation over multiple lines - # - # source://highline//lib/highline.rb#152 - def multi_indent; end - - # @return [Boolean] Indentation over multiple lines - # - # source://highline//lib/highline.rb#152 - def multi_indent=(_arg0); end - - # Creates a new HighLine instance with the same options - # - # source://highline//lib/highline.rb#485 - def new_scope; end - - # Outputs newline - # - # source://highline//lib/highline.rb#450 - def newline; end - - # @return [IO] the default output stream for a HighLine instance - # - # source://highline//lib/highline.rb#164 - def output; end - - # Returns the number of columns for the console, or a default it they cannot - # be determined. - # - # source://highline//lib/highline.rb#458 - def output_cols; end - - # Returns the number of rows for the console, or a default if they cannot be - # determined. - # - # source://highline//lib/highline.rb#469 - def output_rows; end - - # @return [Integer] The current row setting for paging output. - # - # source://highline//lib/highline.rb#149 - def page_at; end - - # Set to an integer value to cause HighLine to page output lines over the - # indicated line limit. When +nil+, the default, no paging occurs. If - # set to :auto, HighLine will attempt to determine the rows available - # for the @output or use a sensible default. - # - # source://highline//lib/highline.rb#412 - def page_at=(setting); end - - # Call #puts on the HighLine's output stream - # - # @param args [String] same args for Kernel#puts - # - # source://highline//lib/highline.rb#478 - def puts(*args); end - - # Renders a statement using {HighLine::Statement} - # - # @param statement [String] any string - # @return [Statement] rendered statement - # - # source://highline//lib/highline.rb#392 - def render_statement(statement); end - - # Resets the use of color. - # - # source://highline//lib/highline.rb#133 - def reset_use_color; end - - # The basic output method for HighLine objects. If the provided _statement_ - # ends with a space or tab character, a newline will not be appended (output - # will be flush()ed). All other cases are passed straight to Kernel.puts(). - # - # The _statement_ argument is processed as an ERb template, supporting - # embedded Ruby code. The template is evaluated within a HighLine - # instance's binding for providing easy access to the ANSI color constants - # and the HighLine#color() method. - # - # @param statement [Statement, String] what to be said - # - # source://highline//lib/highline.rb#373 - def say(statement); end - - # Convenience method to craft a lambda suitable for - # beind used in autocompletion operations by {#choose} - # - # @return [lambda] lambda to be used in autocompletion operations - # - # source://highline//lib/highline.rb#285 - def shell_style_lambda(menu); end - - # System specific that responds to #initialize_system_extensions, - # #terminal_size, #raw_no_echo_mode, #restore_mode, #get_character. - # It polymorphically handles specific cases for different platforms. - # - # @return [HighLine::Terminal] - # - # source://highline//lib/highline.rb#177 - def terminal; end - - # Pass +false+ to turn off HighLine's EOF tracking. - # - # source://highline//lib/highline.rb#138 - def track_eof; end - - # Pass +false+ to turn off HighLine's EOF tracking. - # - # source://highline//lib/highline.rb#138 - def track_eof=(_arg0); end - - # Returns true if HighLine is currently tracking EOF for input. - # - # @return [Boolean] - # - # source://highline//lib/highline.rb#141 - def track_eof?; end - - # Remove color codes from a string. - # - # @param string [String] to be decolorized - # @return [String] without the ANSI escape sequence (colors) - # - # source://highline//lib/highline.rb#348 - def uncolor(string); end - - # Set it to false to disable ANSI coloring - # - # source://highline//lib/highline.rb#125 - def use_color; end - - # Set it to false to disable ANSI coloring - # - # source://highline//lib/highline.rb#125 - def use_color=(_arg0); end - - # Returns truethy if HighLine instance is currently using color escapes. - # - # @return [Boolean] - # - # source://highline//lib/highline.rb#128 - def use_color?; end - - # @return [Integer] The current column setting for wrapping output. - # - # source://highline//lib/highline.rb#146 - def wrap_at; end - - # Set to an integer value to cause HighLine to wrap output lines at the - # indicated character limit. When +nil+, the default, no wrapping occurs. If - # set to :auto, HighLine will attempt to determine the columns - # available for the @output or use a sensible default. - # - # source://highline//lib/highline.rb#402 - def wrap_at=(setting); end - - private - - # source://highline//lib/highline.rb#628 - def actual_length(text); end - - # Adds a layer of scope (new_scope) to ask a question inside a - # question, without destroying instance data - # - # source://highline//lib/highline.rb#494 - def confirm(question); end - - # Check to see if there's already a HighLine.default_instance or if - # this is the first time the method is called (eg: at - # HighLine.default_instance initialization). - # If there's already one, copy use_color settings. - # This is here most to help migrate code from HighLine 1.7.x to 2.0.x - # - # @return [Boolean] - # - # source://highline//lib/highline.rb#639 - def default_use_color; end - - # source://highline//lib/highline.rb#620 - def erase_current_line; end - - # Read a line of input from the input stream and process whitespace as - # requested by the Question object. - # - # If Question's _readline_ property is set, that library will be used to - # fetch input. *WARNING*: This ignores the currently set input stream. - # - # Raises EOFError if input is exhausted. - # - # source://highline//lib/highline.rb#531 - def get_line(question); end - - # source://highline//lib/highline.rb#535 - def get_line_raw_no_echo_mode(question); end - - # source://highline//lib/highline.rb#575 - def ignore_arrow_key; end - - # source://highline//lib/highline.rb#507 - def last_answer(answers); end - - # @return [Boolean] - # - # source://highline//lib/highline.rb#586 - def line_overflow_for_question?(line, question); end - - # source://highline//lib/highline.rb#590 - def output_erase_char; end - - # source://highline//lib/highline.rb#581 - def say_last_char_or_echo_char(line, question); end - - # source://highline//lib/highline.rb#566 - def say_new_line_or_overwrite(question); end - - # A helper method used by HighLine::Question.verify_match - # for finding whether a list of answers match or differ - # from each other. - # - # source://highline//lib/highline.rb#503 - def unique_answers(list); end - - class << self - # Returns a HighLine::String from any given String. - # - # @param s [String] - # @return [HighLine::String] from the given string. - # - # source://highline//lib/highline/string_extensions.rb#7 - def String(s); end - - # Creates a style using {.find_or_create_style} or - # {.find_or_create_style_list} - # - # @param args [Array] style properties - # @return [Style] - # - # source://highline//lib/highline/style.rb#16 - def Style(*args); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def agree(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def ask(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def choose(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def color(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def color_code(*args, **_arg1, &block); end - - # Pass ColorScheme to set a HighLine color scheme. - # - # source://highline//lib/highline.rb#58 - def color_scheme; end - - # Pass ColorScheme to set a HighLine color scheme. - # - # source://highline//lib/highline.rb#58 - def color_scheme=(_arg0); end - - # Adds color support to the base String class - # - # source://highline//lib/highline/string_extensions.rb#127 - def colorize_strings; end - - # Returns the value of attribute default_instance. - # - # source://highline//lib/highline.rb#55 - def default_instance; end - - # Sets the attribute default_instance - # - # @param value the value to set the attribute default_instance to. - # - # source://highline//lib/highline.rb#55 - def default_instance=(_arg0); end - - # Search for a Style with the given properties and return it. - # If there's no matched Style, it creates one. - # You can pass a Style, String or a Hash. - # - # @param arg [Style, String, Hash] style properties - # @return [Style] found or creted Style - # - # source://highline//lib/highline/style.rb#30 - def find_or_create_style(arg); end - - # Find a Style list or create a new one. - # - # @example Creating a Style list of the combined RED and BOLD styles. - # style_list = HighLine.find_or_create_style_list(:red, :bold) - # @param args [Array] an Array of Symbols of each style - # that will be on the style list. - # @return [Style] Style list - # - # source://highline//lib/highline/style.rb#62 - def find_or_create_style_list(*args); end - - # Reset HighLine to default. - # Clears Style index and resets color_scheme and use_color settings. - # - # source://highline//lib/highline.rb#72 - def reset; end - - # Reset color scheme to default (+nil+) - # - # source://highline//lib/highline.rb#66 - def reset_color_scheme; end - - # source://forwardable/1.3.2/forwardable.rb#229 - def reset_use_color(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def say(*args, **_arg1, &block); end - - # For checking if the current version of HighLine supports RGB colors - # Usage: HighLine.supports_rgb_color? rescue false - # using rescue for compatibility with older versions - # Note: color usage also depends on HighLine.use_color being set - # TODO: Discuss removing this method - # - # @return [Boolean] - # - # source://highline//lib/highline.rb#83 - def supports_rgb_color?; end - - # source://forwardable/1.3.2/forwardable.rb#229 - def track_eof=(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def track_eof?(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def uncolor(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def use_color=(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def use_color?(*args, **_arg1, &block); end - - # Returns +true+ if HighLine is currently using a color scheme. - # - # @return [Boolean] - # - # source://highline//lib/highline.rb#61 - def using_color_scheme?; end - end -end - -# Builtin Styles that are included at HighLine initialization. -# It has the basic styles like :bold and :underline. -# -# source://highline//lib/highline/builtin_styles.rb#6 -module HighLine::BuiltinStyles - mixes_in_class_methods ::HighLine::BuiltinStyles::ClassMethods - - class << self - # Included callback - # - # @param base [Class, Module] base class - # - # source://highline//lib/highline/builtin_styles.rb#9 - def included(base); end - end -end - -# The builtin styles basic colors like black, red, green. -# -# source://highline//lib/highline/builtin_styles.rb#69 -HighLine::BuiltinStyles::BASIC_COLORS = T.let(T.unsafe(nil), Array) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BLACK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::BLACK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::BLINK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::BLINK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BLUE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::BLUE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::BOLD = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::BOLD_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_BLACK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_BLACK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_BLUE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_BLUE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_CYAN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_CYAN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_GRAY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_GRAY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_GREEN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_GREEN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_GREY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_GREY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_MAGENTA = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_MAGENTA_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_NONE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_NONE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_RED = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_RED_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_WHITE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_WHITE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::BRIGHT_YELLOW = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#77 -HighLine::BuiltinStyles::BRIGHT_YELLOW_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::CLEAR = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::CLEAR_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# The builtin styles' colors like LIGHT_RED and BRIGHT_BLUE. -# -# source://highline//lib/highline/builtin_styles.rb#85 -HighLine::BuiltinStyles::COLORS = T.let(T.unsafe(nil), Array) - -# A Hash with the basic colors an their ANSI escape codes. -# -# source://highline//lib/highline/builtin_styles.rb#41 -HighLine::BuiltinStyles::COLOR_LIST = T.let(T.unsafe(nil), Hash) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::CONCEALED = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::CONCEALED_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::CYAN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::CYAN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# BuiltinStyles class methods to be extended. -# -# source://highline//lib/highline/builtin_styles.rb#96 -module HighLine::BuiltinStyles::ClassMethods - # const_missing callback for automatically respond to - # builtin constants (without explicitly defining them) - # - # @param name [Symbol] missing constant name - # @raise [NameError] - # - # source://highline//lib/highline/builtin_styles.rb#103 - def const_missing(name); end -end - -# Regexp to match against RGB style constant names. -# -# source://highline//lib/highline/builtin_styles.rb#98 -HighLine::BuiltinStyles::ClassMethods::RGB_COLOR_PATTERN = T.let(T.unsafe(nil), Regexp) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::DARK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::DARK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::ERASE_CHAR = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::ERASE_CHAR_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::ERASE_LINE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::ERASE_LINE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::GRAY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::GRAY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::GREEN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::GREEN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::GREY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::GREY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_BLACK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_BLACK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_BLUE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_BLUE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_CYAN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_CYAN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_GRAY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_GRAY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_GREEN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_GREEN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_GREY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_GREY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_MAGENTA = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_MAGENTA_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_NONE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_NONE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_RED = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_RED_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_WHITE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_WHITE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::LIGHT_YELLOW = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#81 -HighLine::BuiltinStyles::LIGHT_YELLOW_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::MAGENTA = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::MAGENTA_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::NONE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::NONE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BLACK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BLACK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BLUE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BLUE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_BLACK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_BLACK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_BLUE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_BLUE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_CYAN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_CYAN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_GRAY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_GRAY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_GREEN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_GREEN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_GREY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_GREY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_MAGENTA = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_MAGENTA_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_NONE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_NONE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_RED = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_RED_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_WHITE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_WHITE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_BRIGHT_YELLOW = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_BRIGHT_YELLOW_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_CYAN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_CYAN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_GRAY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_GRAY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_GREEN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_GREEN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_GREY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_GREY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_BLACK = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_BLACK_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_BLUE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_BLUE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_CYAN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_CYAN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_GRAY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_GRAY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_GREEN = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_GREEN_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_GREY = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_GREY_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_MAGENTA = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_MAGENTA_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_NONE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_NONE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_RED = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_RED_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_WHITE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_WHITE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_LIGHT_YELLOW = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_LIGHT_YELLOW_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_MAGENTA = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_MAGENTA_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_NONE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_NONE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_RED = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_RED_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_WHITE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_WHITE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#90 -HighLine::BuiltinStyles::ON_YELLOW = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#89 -HighLine::BuiltinStyles::ON_YELLOW_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::RED = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::RED_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::RESET = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::RESET_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::REVERSE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::REVERSE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# Basic Style names like CLEAR, BOLD, UNDERLINE -# -# source://highline//lib/highline/builtin_styles.rb#37 -HighLine::BuiltinStyles::STYLES = T.let(T.unsafe(nil), Array) - -# Basic styles' ANSI escape codes like :bold => "\e[1m" -# -# source://highline//lib/highline/builtin_styles.rb#14 -HighLine::BuiltinStyles::STYLE_LIST = T.let(T.unsafe(nil), Hash) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::UNDERLINE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::UNDERLINE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#31 -HighLine::BuiltinStyles::UNDERSCORE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#32 -HighLine::BuiltinStyles::UNDERSCORE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::WHITE = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::WHITE_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# source://highline//lib/highline/builtin_styles.rb#88 -HighLine::BuiltinStyles::YELLOW = T.let(T.unsafe(nil), String) - -# source://highline//lib/highline/builtin_styles.rb#65 -HighLine::BuiltinStyles::YELLOW_STYLE = T.let(T.unsafe(nil), HighLine::Style) - -# ColorScheme objects encapsulate a named set of colors to be used in the -# {HighLine.color} method call. For example, by applying a ColorScheme that -# has a :warning color then the following could be used: -# -# color("This is a warning", :warning) -# -# A ColorScheme contains named sets of HighLine color constants. -# -# @example Instantiating a color scheme, applying it to HighLine, -# and using it: -# ft = HighLine::ColorScheme.new do |cs| -# cs[:headline] = [ :bold, :yellow, :on_black ] -# cs[:horizontal_line] = [ :bold, :white ] -# cs[:even_row] = [ :green ] -# cs[:odd_row] = [ :magenta ] -# end -# -# HighLine.color_scheme = ft -# say("<%= color('Headline', :headline) %>") -# say("<%= color('-'*20, :horizontal_line) %>") -# i = true -# ("A".."D").each do |row| -# if i then -# say("<%= color('#{row}', :even_row ) %>") -# else -# say("<%= color('#{row}', :odd_row) %>") -# end -# i = !i -# end -# -# source://highline//lib/highline/color_scheme.rb#44 -class HighLine::ColorScheme - # Create an instance of HighLine::ColorScheme. The customization can - # happen as a passed in Hash or via the yielded block. Keys are - # converted to :symbols and values are converted to HighLine - # constants. - # - # @param h [Hash] - # @return [ColorScheme] a new instance of ColorScheme - # @yield [_self] - # @yieldparam _self [HighLine::ColorScheme] the object that the method was called on - # - # source://highline//lib/highline/color_scheme.rb#52 - def initialize(h = T.unsafe(nil)); end - - # Allow the scheme to be accessed like a Hash. - # - # @param color_tag [#to_sym] - # @return [Style] - # - # source://highline//lib/highline/color_scheme.rb#76 - def [](color_tag); end - - # Allow the scheme to be set like a Hash. - # - # @param color_tag [#to_sym] - # @param constants [Array] Array of Style symbols - # - # source://highline//lib/highline/color_scheme.rb#96 - def []=(color_tag, constants); end - - # Retrieve the original form of the scheme - # - # @param color_tag [#to_sym] - # - # source://highline//lib/highline/color_scheme.rb#82 - def definition(color_tag); end - - # Does this color scheme include the given tag name? - # - # @param color_tag [#to_sym] - # @return [Boolean] - # - # source://highline//lib/highline/color_scheme.rb#69 - def include?(color_tag); end - - # Retrieve the keys in the scheme - # - # @return [Array] of keys - # - # source://highline//lib/highline/color_scheme.rb#89 - def keys; end - - # Load multiple colors from key/value pairs. - # - # @param h [Hash] - # - # source://highline//lib/highline/color_scheme.rb#60 - def load_from_hash(h); end - - # Retrieve the color scheme hash (in original definition format) - # - # @return [Hash] scheme as Hash. It may be reused in a new ColorScheme. - # - # source://highline//lib/highline/color_scheme.rb#105 - def to_hash; end - - private - - # Return a normalized representation of a color setting. - # - # source://highline//lib/highline/color_scheme.rb#120 - def to_constant(v); end - - # Return a normalized representation of a color name. - # - # source://highline//lib/highline/color_scheme.rb#115 - def to_symbol(t); end -end - -# Internal HighLine errors. -# -# source://highline//lib/highline/custom_errors.rb#5 -module HighLine::CustomErrors; end - -# An error that responds to :explanation_key -# -# source://highline//lib/highline/custom_errors.rb#11 -class HighLine::CustomErrors::ExplainableError < ::StandardError - # Explanation key as Symbol or nil. Used to - # select the proper error message to be displayed. - # - # @return [nil, Symbol] explanation key to get the - # proper error message. - # - # source://highline//lib/highline/custom_errors.rb#12 - def explanation_key; end -end - -# Unavailable auto complete error -# -# source://highline//lib/highline/custom_errors.rb#51 -class HighLine::CustomErrors::NoAutoCompleteMatch < ::HighLine::CustomErrors::ExplainableError - # Explanation key as Symbol or nil. Used to - # select the proper error message to be displayed. - # - # @return [nil, Symbol] explanation key to get the - # proper error message. - # - # source://highline//lib/highline/custom_errors.rb#52 - def explanation_key; end -end - -# Unconfirmed Question error -# -# source://highline//lib/highline/custom_errors.rb#43 -class HighLine::CustomErrors::NoConfirmationQuestionError < ::HighLine::CustomErrors::ExplainableError - # Explanation key as Symbol or nil. Used to - # select the proper error message to be displayed. - # - # @return [nil, Symbol] explanation key to get the - # proper error message. - # - # source://highline//lib/highline/custom_errors.rb#44 - def explanation_key; end -end - -# Out of Range Question error -# -# source://highline//lib/highline/custom_errors.rb#35 -class HighLine::CustomErrors::NotInRangeQuestionError < ::HighLine::CustomErrors::ExplainableError - # Explanation key as Symbol or nil. Used to - # select the proper error message to be displayed. - # - # @return [nil, Symbol] explanation key to get the - # proper error message. - # - # source://highline//lib/highline/custom_errors.rb#36 - def explanation_key; end -end - -# Invalid Question error -# -# source://highline//lib/highline/custom_errors.rb#27 -class HighLine::CustomErrors::NotValidQuestionError < ::HighLine::CustomErrors::ExplainableError - # Explanation key as Symbol or nil. Used to - # select the proper error message to be displayed. - # - # @return [nil, Symbol] explanation key to get the - # proper error message. - # - # source://highline//lib/highline/custom_errors.rb#28 - def explanation_key; end -end - -# Bare Question error -# -# source://highline//lib/highline/custom_errors.rb#19 -class HighLine::CustomErrors::QuestionError < ::HighLine::CustomErrors::ExplainableError - # Explanation key as Symbol or nil. Used to - # select the proper error message to be displayed. - # - # @return [nil, Symbol] explanation key to get the - # proper error message. - # - # source://highline//lib/highline/custom_errors.rb#20 - def explanation_key; end -end - -# List class with some convenience methods like {#col_down}. -# -# source://highline//lib/highline/list.rb#5 -class HighLine::List - # @option options - # @option options - # @option options - # @param items [#to_a] an array of items to compose the list. - # @param options [Hash] a hash of options to tailor the list. - # @return [List] a new instance of List - # - # source://highline//lib/highline/list.rb#61 - def initialize(items, options = T.unsafe(nil)); end - - # Slice the list by rows and transpose it. - # - # @return [self] - # - # source://highline//lib/highline/list.rb#81 - def col_down; end - - # Content are distributed first by column in col down mode. - # - # @example A two columns array like this: - # [ [ "a", "b" ], - # [ "c", "d" ], - # [ "e", "f" ], - # [ "g", "h" ], - # [ "i", "j" ] ] - # @example In col down mode will be like this: - # [ [ "a", "f"], - # [ "b", "g"], - # [ "c", "h"], - # [ "d", "i"], - # [ "e", "j"] ] - # @return [Boolean] - # @see #transpose_mode - # - # source://highline//lib/highline/list.rb#53 - def col_down_mode; end - - # Number of columns for each list row. - # - # @return [Integer] - # - # source://highline//lib/highline/list.rb#14 - def cols; end - - # Set the cols number. - # - # @return [self] - # - # source://highline//lib/highline/list.rb#104 - def cols=(cols); end - - # Original given *items* argument. - # It's frozen at initialization time and - # all later transformations will happen on {#list}. - # - # @return [Array] - # - # source://highline//lib/highline/list.rb#10 - def items; end - - # Returns an Array representation of the list - # in its current state. - # - # @return [Array] @list.dup - # - # source://highline//lib/highline/list.rb#112 - def list; end - - # Returns the row join string size. - # Useful for calculating the actual size of - # rendered list. - # - # @return [Integer] - # - # source://highline//lib/highline/list.rb#148 - def row_join_str_size; end - - # The String that will be used to join each - # cell of the list and stringfying it. - # - # @return [String] defaults to " " (space) - # - # source://highline//lib/highline/list.rb#136 - def row_join_string; end - - # Set the {#row_join_string}. - # - # @see #row_join_string - # - # source://highline//lib/highline/list.rb#142 - def row_join_string=(_arg0); end - - # Slice the list by cols based on the {#cols} param. - # - # @return [self] - # - # source://highline//lib/highline/list.rb#97 - def slice_by_cols; end - - # Slice the list by rows. The row count is calculated - # indirectly based on the {#cols} param and the items count. - # - # @return [self] - # - # source://highline//lib/highline/list.rb#90 - def slice_by_rows; end - - # Returns an Array representation of the list - # in its current state. - # - # @return [Array] @list.dup - # - # source://highline//lib/highline/list.rb#117 - def to_a; end - - # Stringfies the list in its current state. - # It joins each individual _cell_ with the current - # {#row_join_string} between them. - # It joins each individual row with a - # newline character. So the returned String is - # suitable to be directly outputed - # to the screen, preserving row/columns divisions. - # - # @return [String] - # - # source://highline//lib/highline/list.rb#129 - def to_s; end - - # Transpose the (already sliced by rows) list, - # turning its rows into columns. - # - # @return [self] - # - # source://highline//lib/highline/list.rb#72 - def transpose; end - - # Columns turn into rows in transpose mode. - # - # @example A two columns array like this: - # [ [ "a", "b" ], - # [ "c", "d" ], - # [ "e", "f" ], - # [ "g", "h" ], - # [ "i", "j" ] ] - # @example When in transpose mode will be like this: - # [ [ "a", "c", "e", "g", "i" ], - # [ "b", "d", "f", "h", "j" ] ] - # @return [Boolean] - # @see #col_down_mode - # - # source://highline//lib/highline/list.rb#32 - def transpose_mode; end - - private - - # source://highline//lib/highline/list.rb#154 - def build; end - - # source://highline//lib/highline/list.rb#161 - def items_sliced_by_cols; end - - # source://highline//lib/highline/list.rb#165 - def items_sliced_by_rows; end - - # source://highline//lib/highline/list.rb#169 - def row_count; end - - # source://highline//lib/highline/list.rb#173 - def stringfy(row); end -end - -# This class is a utility for quickly and easily laying out lists -# to be used by HighLine. -# -# source://highline//lib/highline/list_renderer.rb#12 -class HighLine::ListRenderer - # The only required parameters are _items_ and _highline_. - # Recognized modes are: - # - # :columns_across:: _items_ will be placed in columns, - # flowing from left to right. If given, - # _option_ is the number of columns to be - # used. When absent, columns will be - # determined based on _wrap_at_ or a - # default of 80 characters. - # :columns_down:: Identical to :columns_across, - # save flow goes down. - # :uneven_columns_across:: Like :columns_across but each - # column is sized independently. - # :uneven_columns_down:: Like :columns_down but each - # column is sized independently. - # :inline:: All _items_ are placed on a single - # line. The last two _items_ are - # separated by _option_ or a default of - # " or ". All other _items_ are - # separated by ", ". - # :rows:: The default mode. Each of the _items_ - # is placed on its own line. The _option_ - # parameter is ignored in this mode. - # - # Each member of the _items_ Array is passed through ERb and thus can - # contain their own expansions. Color escape expansions do not contribute to - # the final field width. - # - # @param items [Array] the Array of items to list - # @param mode [Symbol] controls how that list is formed - # @param option has different effects, depending on the _mode_. - # @param highline [HighLine] a HighLine instance to direct the output to. - # @return [ListRenderer] a new instance of ListRenderer - # - # source://highline//lib/highline/list_renderer.rb#62 - def initialize(items, mode = T.unsafe(nil), option = T.unsafe(nil), highline); end - - # @return [HighLine] context - # - # source://highline//lib/highline/list_renderer.rb#27 - def highline; end - - # Items list - # - # @return [Array] - # - # source://highline//lib/highline/list_renderer.rb#15 - def items; end - - # @return [Symbol] the current mode the List is being rendered - # @see #initialize for more details see mode parameter of #initialize - # - # source://highline//lib/highline/list_renderer.rb#19 - def mode; end - - # Changes the behaviour of some modes. Example, in :inline mode - # the option is treated as the 'end separator' (defaults to " or ") - # - # @return option parameter that changes the behaviour of some modes. - # - # source://highline//lib/highline/list_renderer.rb#24 - def option; end - - # Render the list using the appropriate mode and options. - # - # @return [String] rendered list as String - # - # source://highline//lib/highline/list_renderer.rb#71 - def render; end - - private - - # source://highline//lib/highline/list_renderer.rb#212 - def actual_length(text); end - - # source://highline//lib/highline/list_renderer.rb#195 - def actual_lengths_for(line); end - - # source://highline//lib/highline/list_renderer.rb#243 - def col_count; end - - # source://highline//lib/highline/list_renderer.rb#238 - def col_count_calculate; end - - # source://highline//lib/highline/list_renderer.rb#180 - def get_col_widths(lines); end - - # source://highline//lib/highline/list_renderer.rb#185 - def get_row_widths(lines); end - - # source://highline//lib/highline/list_renderer.rb#189 - def get_segment_widths(lines); end - - # @return [Boolean] - # - # source://highline//lib/highline/list_renderer.rb#207 - def inside_line_size_limit?(widths); end - - # source://highline//lib/highline/list_renderer.rb#216 - def items_max_length; end - - # source://highline//lib/highline/list_renderer.rb#224 - def line_size_limit; end - - # source://highline//lib/highline/list_renderer.rb#120 - def list_columns_across_mode; end - - # source://highline//lib/highline/list_renderer.rb#124 - def list_columns_down_mode; end - - # source://highline//lib/highline/list_renderer.rb#106 - def list_default_mode; end - - # source://highline//lib/highline/list_renderer.rb#110 - def list_inline_mode; end - - # source://highline//lib/highline/list_renderer.rb#148 - def list_uneven_columns_down_mode; end - - # source://highline//lib/highline/list_renderer.rb#132 - def list_uneven_columns_mode(list = T.unsafe(nil)); end - - # source://highline//lib/highline/list_renderer.rb#220 - def max_length(items); end - - # source://highline//lib/highline/list_renderer.rb#253 - def pad_char; end - - # source://highline//lib/highline/list_renderer.rb#153 - def pad_uneven_rows(list, widths); end - - # source://highline//lib/highline/list_renderer.rb#92 - def render_list_items(items); end - - # source://highline//lib/highline/list_renderer.rb#174 - def right_pad_field(field, width); end - - # source://highline//lib/highline/list_renderer.rb#168 - def right_pad_row(row, widths); end - - # source://highline//lib/highline/list_renderer.rb#247 - def right_padded_items; end - - # source://highline//lib/highline/list_renderer.rb#257 - def row_count; end - - # source://highline//lib/highline/list_renderer.rb#234 - def row_join_str_size; end - - # source://highline//lib/highline/list_renderer.rb#228 - def row_join_string; end - - # Sets the attribute row_join_string - # - # @param value the value to set the attribute row_join_string to. - # - # source://highline//lib/highline/list_renderer.rb#232 - def row_join_string=(_arg0); end - - # source://highline//lib/highline/list_renderer.rb#164 - def row_to_s(row); end - - # source://highline//lib/highline/list_renderer.rb#160 - def stringfy_list(list); end - - # source://highline//lib/highline/list_renderer.rb#201 - def transpose(lines); end -end - -# Menu objects encapsulate all the details of a call to -# {HighLine#choose HighLine#choose}. -# Using the accessors and {Menu#choice} and {Menu#choices}, the block passed -# to {HighLine#choose} can detail all aspects of menu display and control. -# -# source://highline//lib/highline/menu/item.rb#6 -class HighLine::Menu < ::HighLine::Question - # Create an instance of HighLine::Menu. All customization is done - # through the passed block, which should call accessors, {#choice} and - # {#choices} as needed to define the Menu. Note that Menus are also - # {HighLine::Question Questions}, so all that functionality is available - # to the block as well. - # - # @example Implicit menu creation through HighLine#choose - # cli = HighLine.new - # answer = cli.choose do |menu| - # menu.prompt = "Please choose your favorite programming language? " - # menu.choice(:ruby) { say("Good choice!") } - # menu.choices(:python, :perl) { say("Not from around here, are you?") } - # end - # @return [Menu] a new instance of Menu - # @yield [_self] - # @yieldparam _self [HighLine::Menu] the object that the method was called on - # - # source://highline//lib/highline/menu.rb#52 - def initialize; end - - # Adds an item directly to the menu. If you want more configuration - # or options, use this method - # - # @param item [Menu::Item] item containing choice fields and more - # @return [void] - # - # source://highline//lib/highline/menu.rb#217 - def add_item(item); end - - # source://highline//lib/highline/menu.rb#390 - def all_items; end - - # This method helps reduce the namespaces in the original call, - # which would look like this: HighLine::Menu::Item.new(...) - # With #build_item, it looks like this: menu.build_item(...) - # - # @param *args splat args, the same args you would pass to an - # initialization of HighLine::Menu::Item - # @return [HighLine::Menu::Item] the menu item - # - # source://highline//lib/highline/menu.rb#206 - def build_item(*args); end - - # Adds _name_ to the list of available menu items. Menu items will be - # displayed in the order they are added. - # - # An optional _action_ can be associated with this name and if provided, - # it will be called if the item is selected. The result of the method - # will be returned, unless _nil_on_handled_ is set (when you would get - # +nil+ instead). In _shell_ mode, a provided block will be passed the - # command chosen and any details that followed the command. Otherwise, - # just the command is passed. The @highline variable is set to - # the current HighLine context before the action code is called and can - # thus be used for adding output and the like. - # - # @example Use of help string on menu items - # cli = HighLine.new - # cli.choose do |menu| - # menu.shell = true - # - # menu.choice(:load, text: 'Load a file', - # help: "Load a file using your favourite editor.") - # menu.choice(:save, help: "Save data in file.") - # menu.choice(:quit, help: "Exit program.") - # - # menu.help("rules", "The rules of this system are as follows...") - # end - # @example Implicit menu creation through HighLine#choose - # cli = HighLine.new - # answer = cli.choose do |menu| - # menu.prompt = "Please choose your favorite programming language? " - # menu.choice(:ruby) { say("Good choice!") } - # menu.choices(:python, :perl) { say("Not from around here, are you?") } - # end - # @param name [#to_s] menu item title/header/name to be displayed. - # @param action [Proc] callback action to be run when the item is selected. - # @param help [String] help/hint string to be displayed. - # @return [void] - # - # source://highline//lib/highline/menu.rb#191 - def choice(name, help = T.unsafe(nil), text = T.unsafe(nil), &action); end - - # A shortcut for multiple calls to the sister method {#choice}. Be - # warned: An _action_ set here will apply to *all* provided - # _names_. This is considered to be a feature, so you can easily - # hand-off interface processing to a different chunk of code. - # choice has more options available to you, like longer text or help (and - # of course, individual actions) - # - # @example Implicit menu creation through HighLine#choose - # cli = HighLine.new - # answer = cli.choose do |menu| - # menu.prompt = "Please choose your favorite programming language? " - # menu.choice(:ruby) { say("Good choice!") } - # menu.choices(:python, :perl) { say("Not from around here, are you?") } - # end - # @param names [Array<#to_s>] menu item titles/headers/names to be - # displayed. - # @param action [Proc] callback action to be run when the item is selected. - # @return [void] - # - # source://highline//lib/highline/menu.rb#237 - def choices(*names, &action); end - - # source://highline//lib/highline/menu.rb#495 - def decorate_index(index); end - - # source://highline//lib/highline/menu.rb#512 - def decorate_item(text, ix); end - - # source://highline//lib/highline/menu.rb#418 - def find_item_from_selection(items, selection); end - - # This attribute is passed directly on as the mode to HighLine.list() by - # all the preset layouts. See that method for appropriate settings. - # - # source://highline//lib/highline/menu.rb#116 - def flow; end - - # This attribute is passed directly on as the mode to HighLine.list() by - # all the preset layouts. See that method for appropriate settings. - # - # source://highline//lib/highline/menu.rb#116 - def flow=(_arg0); end - - # source://highline//lib/highline/menu.rb#457 - def gather_selected(highline_context, selections, details = T.unsafe(nil)); end - - # Returns the menu item referenced by its title/header/name. - # - # @param selection [String] menu's title/header/name - # - # source://highline//lib/highline/menu.rb#434 - def get_item_by_letter(items, selection); end - - # Returns the menu item referenced by its index - # - # @param selection [Integer] menu item's index. - # - # source://highline//lib/highline/menu.rb#428 - def get_item_by_number(items, selection); end - - # Used by all the preset layouts to display title and/or introductory - # information, when set. Defaults to +nil+. - # - # source://highline//lib/highline/menu.rb#127 - def header; end - - # Used by all the preset layouts to display title and/or introductory - # information, when set. Defaults to +nil+. - # - # source://highline//lib/highline/menu.rb#127 - def header=(_arg0); end - - # Used to set help for arbitrary topics. Use the topic "help" - # to override the default message. Mainly for internal use. - # - # @param topic [String] the menu item header/title/name to be associated - # with a help message. - # @param help [String] the help message to be associated with the menu - # item/title/name. - # - # source://highline//lib/highline/menu.rb#317 - def help(topic, help); end - - # Identical to {#choice}, but the item will not be listed for the user. - # - # @param name [#to_s] menu item title/header/name to be displayed. - # @param help [String] help/hint string to be displayed. - # @param action [Proc] callback action to be run when the item is selected. - # @return [void] - # @see #choice - # - # source://highline//lib/highline/menu.rb#248 - def hidden(name, help = T.unsafe(nil), &action); end - - # An _index_ to append to each menu item in display. See - # Menu.index=() for details. - # - # source://highline//lib/highline/menu.rb#92 - def index; end - - # Sets the indexing style for this Menu object. Indexes are appended to - # menu items, when displayed in list form. The available settings are: - # - # :number:: Menu items will be indexed numerically, starting - # with 1. This is the default method of indexing. - # :letter:: Items will be indexed alphabetically, starting - # with a. - # :none:: No index will be appended to menu items. - # any String:: Will be used as the literal _index_. - # - # Setting the _index_ to :none or a literal String also adjusts - # _index_suffix_ to a single space and _select_by_ to :name. - # Because of this, you should make a habit of setting the _index_ first. - # - # source://highline//lib/highline/menu.rb#269 - def index=(style); end - - # The color of the index when displaying the menu. See Style class for - # available colors. - # - # source://highline//lib/highline/menu.rb#158 - def index_color; end - - # The color of the index when displaying the menu. See Style class for - # available colors. - # - # source://highline//lib/highline/menu.rb#158 - def index_color=(_arg0); end - - # The String placed between an _index_ and a menu item. Defaults to - # ". ". Switches to " ", when _index_ is set to a String (like "-"). - # - # source://highline//lib/highline/menu.rb#97 - def index_suffix; end - - # The String placed between an _index_ and a menu item. Defaults to - # ". ". Switches to " ", when _index_ is set to a String (like "-"). - # - # source://highline//lib/highline/menu.rb#97 - def index_suffix=(_arg0); end - - # Initializes the help system by adding a :help choice, some - # action code, and the default help listing. - # - # source://highline//lib/highline/menu.rb#283 - def init_help; end - - # An ERb _layout_ to use when displaying this Menu object. See - # Menu.layout=() for details. - # - # source://highline//lib/highline/menu.rb#137 - def layout; end - - # Setting a _layout_ with this method also adjusts some other attributes - # of the Menu object, to ideal defaults for the chosen _layout_. To - # account for that, you probably want to set a _layout_ first in your - # configuration block, if needed. - # - # Accepted settings for _layout_ are: - # - # :list:: The default _layout_. The _header_ if set - # will appear at the top on its own line with - # a trailing colon. Then the list of menu - # items will follow. Finally, the _prompt_ - # will be used as the ask()-like question. - # :one_line:: A shorter _layout_ that fits on one line. - # The _header_ comes first followed by a - # colon and spaces, then the _prompt_ with menu - # items between trailing parenthesis. - # :menu_only:: Just the menu items, followed up by a likely - # short _prompt_. - # any ERb String:: Will be taken as the literal _layout_. This - # String can access header, - # menu and prompt, but is - # otherwise evaluated in the TemplateRenderer - # context so each method is properly delegated. - # - # If set to either :one_line, or :menu_only, _index_ - # will default to :none and _flow_ will default to - # :inline. - # - # source://highline//lib/highline/menu.rb#350 - def layout=(new_layout); end - - # This setting is passed on as the third parameter to HighLine.list() - # by all the preset layouts. See that method for details of its - # effects. Defaults to +nil+. - # - # source://highline//lib/highline/menu.rb#122 - def list_option; end - - # This setting is passed on as the third parameter to HighLine.list() - # by all the preset layouts. See that method for details of its - # effects. Defaults to +nil+. - # - # source://highline//lib/highline/menu.rb#122 - def list_option=(_arg0); end - - # source://highline//lib/highline/menu.rb#376 - def map_items_by_index; end - - # source://highline//lib/highline/menu.rb#386 - def map_items_by_name; end - - # source://highline//lib/highline/menu.rb#517 - def mark_for_decoration(text, ix); end - - # When +true+, any selected item handled by provided action code will - # return +nil+, instead of the results to the action code. This may - # prove handy when dealing with mixed menus where only the names of - # items without any code (and +nil+, of course) will be returned. - # Defaults to +false+. - # - # source://highline//lib/highline/menu.rb#153 - def nil_on_handled; end - - # When +true+, any selected item handled by provided action code will - # return +nil+, instead of the results to the action code. This may - # prove handy when dealing with mixed menus where only the names of - # items without any code (and +nil+, of course) will be returned. - # Defaults to +false+. - # - # source://highline//lib/highline/menu.rb#153 - def nil_on_handled=(_arg0); end - - # This method returns all possible options for auto-completion, based - # on the settings of _index_ and _select_by_. - # - # source://highline//lib/highline/menu.rb#365 - def options; end - - # source://highline//lib/highline/menu.rb#557 - def parse_list; end - - # Used by all the preset layouts to ask the actual question to fetch a - # menu selection from the user. Defaults to "? ". - # - # source://highline//lib/highline/menu.rb#132 - def prompt; end - - # Used by all the preset layouts to ask the actual question to fetch a - # menu selection from the user. Defaults to "? ". - # - # source://highline//lib/highline/menu.rb#132 - def prompt=(_arg0); end - - # This method processes the auto-completed user selection, based on the - # rules for this Menu object. If an action was provided for the - # selection, it will be executed as described in {#choice}. - # - # @param highline_context [HighLine] a HighLine instance to be used - # as context. - # @param selection [String, Integer] index or title of the selected - # menu item. - # @param details additional parameter to be passed when in shell mode. - # @return [nil, Object] if @nil_on_handled is set it returns +nil+, - # else it returns the action return value. - # - # source://highline//lib/highline/menu.rb#406 - def select(highline_context, selection, details = T.unsafe(nil)); end - - # The _select_by_ attribute controls how the user is allowed to pick a - # menu item. The available choices are: - # - # :index:: The user is allowed to type the numerical - # or alphabetical index for their selection. - # :index_or_name:: Allows both methods from the - # :index option and the - # :name option. - # :name:: Menu items are selected by typing a portion - # of the item name that will be - # auto-completed. - # - # source://highline//lib/highline/menu.rb#111 - def select_by; end - - # The _select_by_ attribute controls how the user is allowed to pick a - # menu item. The available choices are: - # - # :index:: The user is allowed to type the numerical - # or alphabetical index for their selection. - # :index_or_name:: Allows both methods from the - # :index option and the - # :name option. - # :name:: Menu items are selected by typing a portion - # of the item name that will be - # auto-completed. - # - # source://highline//lib/highline/menu.rb#111 - def select_by=(_arg0); end - - # When set to +true+, responses are allowed to be an entire line of - # input, including details beyond the command itself. Only the first - # "word" of input will be matched against the menu choices, but both the - # command selected and the rest of the line will be passed to provided - # action blocks. Defaults to +false+. - # - # source://highline//lib/highline/menu.rb#145 - def shell; end - - # When set to +true+, responses are allowed to be an entire line of - # input, including details beyond the command itself. Only the first - # "word" of input will be matched against the menu choices, but both the - # command selected and the rest of the line will be passed to provided - # action blocks. Defaults to +false+. - # - # source://highline//lib/highline/menu.rb#145 - def shell=(_arg0); end - - # source://highline//lib/highline/menu.rb#562 - def show_default_if_any; end - - # Allows Menu objects to pass as Arrays, for use with HighLine.list(). - # This method returns all menu items to be displayed, complete with - # indexes. - # - # source://highline//lib/highline/menu.rb#508 - def to_ary; end - - # Allows Menu to behave as a String, just like Question. Returns the - # _layout_ to be rendered, which is used by HighLine.say(). - # - # source://highline//lib/highline/menu.rb#535 - def to_s; end - - # This method will update the intelligent responses to account for - # Menu specific differences. Calls the superclass' (Question's) - # build_responses method, overriding its default arguments to specify - # 'options' will be used to populate choice lists. - # - # source://highline//lib/highline/menu.rb#572 - def update_responses; end - - # source://highline//lib/highline/menu.rb#471 - def value_for_array_selections(items, selections, details); end - - # source://highline//lib/highline/menu.rb#484 - def value_for_hash_selections(items, selections, details); end - - # source://highline//lib/highline/menu.rb#444 - def value_for_selected_item(item, details); end - - class << self - # Returns the value of attribute index_color. - # - # source://highline//lib/highline/menu.rb#34 - def index_color; end - - # Sets the attribute index_color - # - # @param value the value to set the attribute index_color to. - # - # source://highline//lib/highline/menu.rb#26 - def index_color=(_arg0); end - end -end - -# Represents an Item of a HighLine::Menu. -# -# source://highline//lib/highline/menu/item.rb#7 -class HighLine::Menu::Item - # @option attributes - # @option attributes - # @option attributes - # @param name [String] The name that is matched against the user input - # @param attributes [Hash] options Hash to tailor menu item to your needs - # @return [Item] a new instance of Item - # - # source://highline//lib/highline/menu/item.rb#19 - def initialize(name, attributes); end - - # Returns the value of attribute action. - # - # source://highline//lib/highline/menu/item.rb#8 - def action; end - - # Returns the value of attribute help. - # - # source://highline//lib/highline/menu/item.rb#8 - def help; end - - # source://highline//lib/highline/menu/item.rb#26 - def item_help; end - - # Returns the value of attribute name. - # - # source://highline//lib/highline/menu/item.rb#8 - def name; end - - # Returns the value of attribute text. - # - # source://highline//lib/highline/menu/item.rb#8 - def text; end -end - -# Take the task of paginating some piece of text given a HighLine context -# -# source://highline//lib/highline/paginator.rb#5 -class HighLine::Paginator - # Returns a HighLine::Paginator instance where you can - # call {#page_print} on it. - # - # @example - # HighLine::Paginator.new(highline).page_print(statement) - # @param highline [HighLine] context - # @return [Paginator] a new instance of Paginator - # - # source://highline//lib/highline/paginator.rb#14 - def initialize(highline); end - - # Ask user if they wish to continue paging output. Allows them to - # type "q" to cancel the paging process. - # - # @return [Boolean] - # - # source://highline//lib/highline/paginator.rb#45 - def continue_paging?; end - - # @return [HighLine] HighLine context - # - # source://highline//lib/highline/paginator.rb#7 - def highline; end - - # Page print a series of at most _page_at_ lines for _output_. After each - # page is printed, HighLine will pause until the user presses enter/return - # then display the next page of data. - # - # Note that the final page of _output_ is *not* printed, but returned - # instead. This is to support any special handling for the final sequence. - # - # @param text [String] text to be paginated - # @return [String] last line if paging is aborted - # - # source://highline//lib/highline/paginator.rb#28 - def page_print(text); end -end - -# Question objects contain all the details of a single invocation of -# HighLine.ask(). The object is initialized by the parameters passed to -# HighLine.ask() and then queried to make sure each step of the input -# process is handled according to the users wishes. -# -# source://highline//lib/highline/question/answer_converter.rb#6 -class HighLine::Question - include ::HighLine::CustomErrors - - # Create an instance of HighLine::Question. Expects a _template_ to ask - # (can be "") and an _answer_type_ to convert the answer to. - # The _answer_type_ parameter must be a type recognized by - # Question.convert(). If given, a block is yielded the new Question - # object to allow custom initialization. - # - # @param template [String] any String - # @param answer_type [Class] the type the answer will be converted to it. - # @return [Question] a new instance of Question - # @yield [_self] - # @yieldparam _self [HighLine::Question] the object that the method was called on - # - # source://highline//lib/highline/question.rb#52 - def initialize(template, answer_type); end - - # Used to control range checks for answer. - # - # source://highline//lib/highline/question.rb#146 - def above; end - - # Used to control range checks for answer. - # - # source://highline//lib/highline/question.rb#146 - def above=(_arg0); end - - # The answer, set by HighLine#ask - # - # source://highline//lib/highline/question.rb#80 - def answer; end - - # The answer, set by HighLine#ask - # - # source://highline//lib/highline/question.rb#80 - def answer=(_arg0); end - - # Returns the provided _answer_string_ or the default answer for this - # Question if a default was set and the answer is empty. - # - # @param answer_string [String] - # @return [String] the answer itself or a default message. - # - # source://highline//lib/highline/question.rb#240 - def answer_or_default(answer_string); end - - # The type that will be used to convert this answer. - # - # source://highline//lib/highline/question.rb#83 - def answer_type; end - - # The type that will be used to convert this answer. - # - # source://highline//lib/highline/question.rb#83 - def answer_type=(_arg0); end - - # Provides the String to be asked when at an error situation. - # It may be just the question itself (repeat on error). - # - # @return [self] if :ask_on_error on responses Hash is set to :question - # @return [String] if :ask_on_error on responses Hash is set to - # something else - # - # source://highline//lib/highline/question.rb#566 - def ask_on_error_msg; end - - # Used to control range checks for answer. - # - # source://highline//lib/highline/question.rb#146 - def below; end - - # Used to control range checks for answer. - # - # source://highline//lib/highline/question.rb#146 - def below=(_arg0); end - - # Called late in the initialization process to build intelligent - # responses based on the details of this Question object. - # Also used by Menu#update_responses. - # - # @param message_source [Class] Array or String for example. - # Same as {#answer_type}. - # @return [Hash] responses Hash winner (new and old merge). - # - # source://highline//lib/highline/question.rb#254 - def build_responses(message_source = T.unsafe(nil)); end - - # When updating the responses hash, it generates the new one. - # - # @param message_source [Class] Array or String for example. - # Same as {#answer_type}. - # @return [Hash] responses hash - # - # source://highline//lib/highline/question.rb#273 - def build_responses_new_hash(message_source); end - - # Used to control character case processing for the answer to this question. - # See HighLine::Question.change_case() for acceptable settings. - # - # source://highline//lib/highline/question.rb#136 - def case; end - - # Used to control character case processing for the answer to this question. - # See HighLine::Question.change_case() for acceptable settings. - # - # source://highline//lib/highline/question.rb#136 - def case=(_arg0); end - - # Returns the provided _answer_string_ after changing character case by - # the rules of this Question. Valid settings for whitespace are: - # - # +nil+:: Do not alter character case. - # (Default.) - # :up:: Calls upcase(). - # :upcase:: Calls upcase(). - # :down:: Calls downcase(). - # :downcase:: Calls downcase(). - # :capitalize:: Calls capitalize(). - # - # An unrecognized choice (like :none) is treated as +nil+. - # - # @param answer_string [String] - # @return [String] upcased, downcased, capitalized - # or unchanged answer String. - # - # source://highline//lib/highline/question.rb#318 - def change_case(answer_string); end - - # Can be set to +true+ to use HighLine's cross-platform character reader - # instead of fetching an entire line of input. (Note: HighLine's character - # reader *ONLY* supports STDIN on Windows and Unix.) Can also be set to - # :getc to use that method on the input stream. - # - # *WARNING*: The _echo_ and _overwrite_ attributes for a question are - # ignored when using the :getc method. - # - # source://highline//lib/highline/question.rb#95 - def character; end - - # Can be set to +true+ to use HighLine's cross-platform character reader - # instead of fetching an entire line of input. (Note: HighLine's character - # reader *ONLY* supports STDIN on Windows and Unix.) Can also be set to - # :getc to use that method on the input stream. - # - # *WARNING*: The _echo_ and _overwrite_ attributes for a question are - # ignored when using the :getc method. - # - # source://highline//lib/highline/question.rb#95 - def character=(_arg0); end - - # Run {#in_range?} and raise an error if not succesful - # - # @raise [NotInRangeQuestionError] - # - # source://highline//lib/highline/question.rb#364 - def check_range; end - - # Try to auto complete answer_string - # - # @param answer_string [String] - # @raise [NoAutoCompleteMatch] - # @return [String] - # - # source://highline//lib/highline/question.rb#371 - def choices_complete(answer_string); end - - # For Auto-completion - # - # source://highline//lib/highline/question.rb#85 - def completion; end - - # For Auto-completion - # - # source://highline//lib/highline/question.rb#85 - def completion=(_arg0); end - - # Asks a yes or no confirmation question, to ensure a user knows what - # they have just agreed to. The confirm attribute can be set to : - # +true+ : In this case the question will be, "Are you sure?". - # Proc : The Proc is yielded the answer given. The Proc must - # output a string which is then used as the confirm - # question. - # String : The String must use ERB syntax. The String is - # evaluated with access to question and answer and - # is then used as the confirm question. - # When set to +false+ or +nil+ (the default), answers are not confirmed. - # - # source://highline//lib/highline/question.rb#160 - def confirm; end - - # Asks a yes or no confirmation question, to ensure a user knows what - # they have just agreed to. The confirm attribute can be set to : - # +true+ : In this case the question will be, "Are you sure?". - # Proc : The Proc is yielded the answer given. The Proc must - # output a string which is then used as the confirm - # question. - # String : The String must use ERB syntax. The String is - # evaluated with access to question and answer and - # is then used as the confirm question. - # When set to +false+ or +nil+ (the default), answers are not confirmed. - # - # source://highline//lib/highline/question.rb#160 - def confirm=(_arg0); end - - # Returns the String to be shown when asking for an answer confirmation. - # - # @param highline [HighLine] context - # @return [String] default "Are you sure?" if {#confirm} is +true+ - # @return [String] {#confirm} rendered as a template if it is a String - # - # source://highline//lib/highline/question.rb#543 - def confirm_question(highline); end - - # Transforms the given _answer_string_ into the expected type for this - # Question. Currently supported conversions are: - # - # [...]:: Answer must be a member of the passed Array. - # Auto-completion is used to expand partial - # answers. - # lambda {...}:: Answer is passed to lambda for conversion. - # Date:: Date.parse() is called with answer. - # DateTime:: DateTime.parse() is called with answer. - # File:: The entered file name is auto-completed in - # terms of _directory_ + _glob_, opened, and - # returned. - # Float:: Answer is converted with Kernel.Float(). - # Integer:: Answer is converted with Kernel.Integer(). - # +nil+:: Answer is left in String format. (Default.) - # Pathname:: Same as File, save that a Pathname object is - # returned. - # String:: Answer is converted with Kernel.String(). - # HighLine::String:: Answer is converted with HighLine::String() - # Regexp:: Answer is fed to Regexp.new(). - # Symbol:: The method to_sym() is called on answer and - # the result returned. - # any other Class:: The answer is passed on to - # Class.parse(). - # - # This method throws ArgumentError, if the conversion cannot be - # completed for any reason. - # - # source://highline//lib/highline/question.rb#359 - def convert; end - - # Used to provide a default answer to this question. - # - # source://highline//lib/highline/question.rb#138 - def default; end - - # Used to provide a default answer to this question. - # - # source://highline//lib/highline/question.rb#138 - def default=(_arg0); end - - # source://highline//lib/highline/question.rb#263 - def default_responses_hash; end - - # The directory from which a user will be allowed to select files, when - # File or Pathname is specified as an _answer_type_. Initially set to - # Pathname.new(File.expand_path(File.dirname($0))). - # - # source://highline//lib/highline/question.rb#193 - def directory; end - - # The directory from which a user will be allowed to select files, when - # File or Pathname is specified as an _answer_type_. Initially set to - # Pathname.new(File.expand_path(File.dirname($0))). - # - # source://highline//lib/highline/question.rb#193 - def directory=(_arg0); end - - # Can be set to +true+ or +false+ to control whether or not input will - # be echoed back to the user. A setting of +true+ will cause echo to - # match input, but any other true value will be treated as a String to - # echo for each character typed. - # - # This requires HighLine's character reader. See the _character_ - # attribute for details. - # - # *Note*: When using HighLine to manage echo on Unix based systems, we - # recommend installing the termios gem. Without it, it's possible to type - # fast enough to have letters still show up (when reading character by - # character only). - # - # source://highline//lib/highline/question.rb#116 - def echo; end - - # Can be set to +true+ or +false+ to control whether or not input will - # be echoed back to the user. A setting of +true+ will cause echo to - # match input, but any other true value will be treated as a String to - # echo for each character typed. - # - # This requires HighLine's character reader. See the _character_ - # attribute for details. - # - # *Note*: When using HighLine to manage echo on Unix based systems, we - # recommend installing the termios gem. Without it, it's possible to type - # fast enough to have letters still show up (when reading character by - # character only). - # - # source://highline//lib/highline/question.rb#116 - def echo=(_arg0); end - - # Returns an English explanation of the current range settings. - # - # source://highline//lib/highline/question.rb#381 - def expected_range; end - - # source://highline//lib/highline/question.rb#292 - def final_response(error); end - - # This is the actual responses hash that gets used in determining output - # Notice that we give @user_responses precedence over the responses - # generated internally via build_response - # - # source://highline//lib/highline/question.rb#288 - def final_responses; end - - # Returns _first_answer_, which will be unset following this call. - # - # source://highline//lib/highline/question.rb#397 - def first_answer; end - - # When set to a non *nil* value, this will be tried as an answer to the - # question. If this answer passes validations, it will become the result - # without the user ever being prompted. Otherwise this value is discarded, - # and this Question is resolved as a normal call to HighLine.ask(). - # - # source://highline//lib/highline/question.rb#187 - def first_answer=(_arg0); end - - # Returns true if _first_answer_ is set. - # - # @return [Boolean] - # - # source://highline//lib/highline/question.rb#404 - def first_answer?; end - - # Convert to String, remove whitespace and change case - # when necessary - # - # @param answer_string [String] - # @return [String] converted String - # - # source://highline//lib/highline/question.rb#462 - def format_answer(answer_string); end - - # When set, the user will be prompted for multiple answers which will - # be collected into an Array or Hash and returned as the final answer. - # - # You can set _gather_ to an Integer to have an Array of exactly that - # many answers collected, or a String/Regexp to match an end input which - # will not be returned in the Array. - # - # Optionally _gather_ can be set to a Hash. In this case, the question - # will be asked once for each key and the answers will be returned in a - # Hash, mapped by key. The @key variable is set before each - # question is evaluated, so you can use it in your question. - # - # source://highline//lib/highline/question.rb#174 - def gather; end - - # When set, the user will be prompted for multiple answers which will - # be collected into an Array or Hash and returned as the final answer. - # - # You can set _gather_ to an Integer to have an Array of exactly that - # many answers collected, or a String/Regexp to match an end input which - # will not be returned in the Array. - # - # Optionally _gather_ can be set to a Hash. In this case, the question - # will be asked once for each key and the answers will be returned in a - # Hash, mapped by key. The @key variable is set before each - # question is evaluated, so you can use it in your question. - # - # source://highline//lib/highline/question.rb#174 - def gather=(_arg0); end - - # Returns an echo string that is adequate for this Question settings. - # - # @param response [String] - # @return [String] the response itself if {#echo} is +true+. - # @return [String] echo character if {#echo} is truethy. Mainly a String. - # @return [String] empty string if {#echo} is falsy. - # - # source://highline//lib/highline/question.rb#590 - def get_echo_for_response(response); end - - # Return a line or character of input, as requested for this question. - # Character input will be returned as a single character String, - # not an Integer. - # - # This question's _first_answer_ will be returned instead of input, if set. - # - # Raises EOFError if input is exhausted. - # - # @param highline [HighLine] context - # @return [String] a character or line - # - # source://highline//lib/highline/question.rb#515 - def get_response(highline); end - - # Uses {#get_response} but returns a default answer - # using {#answer_or_default} in case no answers was - # returned. - # - # @param highline [HighLine] context - # @return [String] - # - # source://highline//lib/highline/question.rb#535 - def get_response_or_default(highline); end - - # The glob pattern used to limit file selection when File or Pathname is - # specified as an _answer_type_. Initially set to "*". - # - # source://highline//lib/highline/question.rb#198 - def glob; end - - # The glob pattern used to limit file selection when File or Pathname is - # specified as an _answer_type_. Initially set to "*". - # - # source://highline//lib/highline/question.rb#198 - def glob=(_arg0); end - - # If set, answer must pass an include?() check on this object. - # - # source://highline//lib/highline/question.rb#148 - def in; end - - # If set, answer must pass an include?() check on this object. - # - # source://highline//lib/highline/question.rb#148 - def in=(_arg0); end - - # Returns +true+ if the _answer_object_ is greater than the _above_ - # attribute, less than the _below_ attribute and include?()ed in the - # _in_ attribute. Otherwise, +false+ is returned. Any +nil+ attributes - # are not checked. - # - # @return [Boolean] - # - # source://highline//lib/highline/question.rb#414 - def in_range?; end - - # Allows you to set a character limit for input. - # - # *WARNING*: This option forces a character by character read. - # - # source://highline//lib/highline/question.rb#101 - def limit; end - - # Allows you to set a character limit for input. - # - # *WARNING*: This option forces a character by character read. - # - # source://highline//lib/highline/question.rb#101 - def limit=(_arg0); end - - # When set to +true+ the question is asked, but output does not progress to - # the next line. The Cursor is moved back to the beginning of the question - # line and it is cleared so that all the contents of the line disappear from - # the screen. - # - # source://highline//lib/highline/question.rb#232 - def overwrite; end - - # When set to +true+ the question is asked, but output does not progress to - # the next line. The Cursor is moved back to the beginning of the question - # line and it is cleared so that all the contents of the line disappear from - # the screen. - # - # source://highline//lib/highline/question.rb#232 - def overwrite=(_arg0); end - - # Use the Readline library to fetch input. This allows input editing as - # well as keeping a history. In addition, tab will auto-complete - # within an Array of choices or a file listing. - # - # *WARNING*: This option is incompatible with all of HighLine's - # character reading modes and it causes HighLine to ignore the - # specified _input_ stream. - # - # source://highline//lib/highline/question.rb#126 - def readline; end - - # Use the Readline library to fetch input. This allows input editing as - # well as keeping a history. In addition, tab will auto-complete - # within an Array of choices or a file listing. - # - # *WARNING*: This option is incompatible with all of HighLine's - # character reading modes and it causes HighLine to ignore the - # specified _input_ stream. - # - # source://highline//lib/highline/question.rb#126 - def readline=(_arg0); end - - # Returns the provided _answer_string_ after processing whitespace by - # the rules of this Question. Valid settings for whitespace are: - # - # +nil+:: Do not alter whitespace. - # :strip:: Calls strip(). (Default.) - # :chomp:: Calls chomp(). - # :collapse:: Collapses all whitespace runs to a - # single space. - # :strip_and_collapse:: Calls strip(), then collapses all - # whitespace runs to a single space. - # :chomp_and_collapse:: Calls chomp(), then collapses all - # whitespace runs to a single space. - # :remove:: Removes all whitespace. - # - # An unrecognized choice (like :none) is treated as +nil+. - # - # This process is skipped for single character input. - # - # @param answer_string [String] - # @return [String] answer string with whitespaces removed - # - # source://highline//lib/highline/question.rb#441 - def remove_whitespace(answer_string); end - - # A Hash that stores the various responses used by HighLine to notify - # the user. The currently used responses and their purpose are as - # follows: - # - # :ambiguous_completion:: Used to notify the user of an - # ambiguous answer the auto-completion - # system cannot resolve. - # :ask_on_error:: This is the question that will be - # redisplayed to the user in the event - # of an error. Can be set to - # :question to repeat the - # original question. - # :invalid_type:: The error message shown when a type - # conversion fails. - # :no_completion:: Used to notify the user that their - # selection does not have a valid - # auto-completion match. - # :not_in_range:: Used to notify the user that a - # provided answer did not satisfy - # the range requirement tests. - # :not_valid:: The error message shown when - # validation checks fail. - # - # source://highline//lib/highline/question.rb#223 - def responses; end - - # Returns an Array of valid answers to this question. These answers are - # only known when _answer_type_ is set to an Array of choices, File, or - # Pathname. Any other time, this method will return an empty Array. - # - # source://highline//lib/highline/question.rb#473 - def selection; end - - # readline() needs to handle its own output, but readline only supports - # full line reading. Therefore if question.echo is anything but true, - # the prompt will not be issued. And we have to account for that now. - # Also, JRuby-1.7's ConsoleReader.readLine() needs to be passed the prompt - # to handle line editing properly. - # - # @param highline [HighLine] context - # @return [void] - # - # source://highline//lib/highline/question.rb#581 - def show_question(highline); end - - # The ERb template of the question to be asked. - # - # source://highline//lib/highline/question.rb#77 - def template; end - - # The ERb template of the question to be asked. - # - # source://highline//lib/highline/question.rb#77 - def template=(_arg0); end - - # Stringifies the template to be asked. - # - # source://highline//lib/highline/question.rb#486 - def to_s; end - - # Returns +true+ if the provided _answer_string_ is accepted by the - # _validate_ attribute or +false+ if it's not. - # - # It's important to realize that an answer is validated after whitespace - # and case handling. - # - # @return [Boolean] - # - # source://highline//lib/highline/question.rb#497 - def valid_answer?; end - - # If set to a Regexp, the answer must match (before type conversion). - # Can also be set to a Proc which will be called with the provided - # answer to validate with a +true+ or +false+ return. - # - # source://highline//lib/highline/question.rb#144 - def validate; end - - # If set to a Regexp, the answer must match (before type conversion). - # Can also be set to a Proc which will be called with the provided - # answer to validate with a +true+ or +false+ return. - # - # source://highline//lib/highline/question.rb#144 - def validate=(_arg0); end - - # When set to +true+ multiple entries will be collected according to - # the setting for _gather_, except they will be required to match - # each other. Multiple identical entries will return a single answer. - # - # source://highline//lib/highline/question.rb#180 - def verify_match; end - - # When set to +true+ multiple entries will be collected according to - # the setting for _gather_, except they will be required to match - # each other. Multiple identical entries will return a single answer. - # - # source://highline//lib/highline/question.rb#180 - def verify_match=(_arg0); end - - # Used to control whitespace processing for the answer to this question. - # See HighLine::Question.remove_whitespace() for acceptable settings. - # - # source://highline//lib/highline/question.rb#131 - def whitespace; end - - # Used to control whitespace processing for the answer to this question. - # See HighLine::Question.remove_whitespace() for acceptable settings. - # - # source://highline//lib/highline/question.rb#131 - def whitespace=(_arg0); end - - private - - # Adds the default choice to the end of question between |...|. - # Trailing whitespace is preserved so the function of HighLine.say() is - # not affected. - # - # source://highline//lib/highline/question.rb#610 - def append_default; end - - # source://highline//lib/highline/question.rb#622 - def choice_error_str(message_source); end - - class << self - # If _template_or_question_ is already a Question object just return it. - # If not, build it. - # - # @param template_or_question [String, Question] what to ask - # @param answer_type [Class] to what class to convert the answer - # @param details to be passed to Question.new - # @return [Question] - # - # source://highline//lib/highline/question.rb#35 - def build(template_or_question, answer_type = T.unsafe(nil), &details); end - end -end - -# It provides all answer conversion flow. -# -# source://highline//lib/highline/question/answer_converter.rb#8 -class HighLine::Question::AnswerConverter - extend ::Forwardable - - # It should be initialized with a Question object. - # The class will get the answer from {Question#answer} - # and then convert it to the proper {Question#answer_type}. - # It is mainly used by {Question#convert} - # - # @param question [Question] - # @return [AnswerConverter] a new instance of AnswerConverter - # - # source://highline//lib/highline/question/answer_converter.rb#21 - def initialize(question); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def answer(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def answer=(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def answer_type(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def check_range(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def choices_complete(*args, **_arg1, &block); end - - # Based on the given Question object's settings, - # it makes the conversion and returns the answer. - # - # @return [Object] the converted answer. - # - # source://highline//lib/highline/question/answer_converter.rb#28 - def convert; end - - # source://forwardable/1.3.2/forwardable.rb#229 - def directory(*args, **_arg1, &block); end - - # @return [Array] answer converted to an Array - # - # source://highline//lib/highline/question/answer_converter.rb#80 - def to_array; end - - # @return [File] answer converted to a File - # - # source://highline//lib/highline/question/answer_converter.rb#68 - def to_file; end - - # @return [Float] answer converted to a Float - # - # source://highline//lib/highline/question/answer_converter.rb#53 - def to_float; end - - # @return [Integer] answer converted to an Integer - # - # source://highline//lib/highline/question/answer_converter.rb#48 - def to_integer; end - - # @return [Pathname] answer converted to an Pathname - # - # source://highline//lib/highline/question/answer_converter.rb#74 - def to_pathname; end - - # @return [Proc] answer converted to an Proc - # - # source://highline//lib/highline/question/answer_converter.rb#86 - def to_proc; end - - # @return [Regexp] answer converted to a Regexp - # - # source://highline//lib/highline/question/answer_converter.rb#63 - def to_regexp; end - - # @return [HighLine::String] answer converted to a HighLine::String - # - # source://highline//lib/highline/question/answer_converter.rb#37 - def to_string; end - - # @return [Symbol] answer converted to an Symbol - # - # source://highline//lib/highline/question/answer_converter.rb#58 - def to_symbol; end - - private - - # source://highline//lib/highline/question/answer_converter.rb#92 - def convert_by_answer_type; end -end - -# Deals with the task of "asking" a question -# -# source://highline//lib/highline/question_asker.rb#5 -class HighLine::QuestionAsker - include ::HighLine::CustomErrors - - # To do its work QuestionAsker needs a Question - # to be asked and a HighLine context where to - # direct output. - # - # @param question [Question] question to be asked - # @param highline [HighLine] context - # @return [QuestionAsker] a new instance of QuestionAsker - # - # source://highline//lib/highline/question_asker.rb#17 - def initialize(question, highline); end - - # Gets just one answer, as opposed to #gather_answers - # - # @return [String] answer - # - # source://highline//lib/highline/question_asker.rb#26 - def ask_once; end - - # Collects an Array/Hash full of answers as described in - # HighLine::Question.gather(). - # - # @return [Array, Hash] answers - # - # source://highline//lib/highline/question_asker.rb#68 - def gather_answers; end - - # Gather multiple values and store them on a Hash - # with keys provided by the Hash on {Question#gather} - # - # @return [Hash] - # - # source://highline//lib/highline/question_asker.rb#106 - def gather_hash; end - - # Gather multiple integer values based on {Question#gather} count - # - # @return [Array] answers - # - # source://highline//lib/highline/question_asker.rb#87 - def gather_integer; end - - # Gather multiple values until any of them matches the - # {Question#gather} Regexp. - # - # @return [Array] answers - # - # source://highline//lib/highline/question_asker.rb#96 - def gather_regexp; end - - # @return [Question] question to be asked - # - # source://highline//lib/highline/question_asker.rb#7 - def question; end - - private - - # source://highline//lib/highline/question_asker.rb#131 - def answer_matches_regex(answer); end - - # Delegate to Highline - # - # source://highline//lib/highline/question_asker.rb#117 - def explain_error(explanation_key); end - - # source://highline//lib/highline/question_asker.rb#139 - def gather_answers_based_on_type; end - - # source://highline//lib/highline/question_asker.rb#122 - def gather_with_array; end -end - -# A sample ColorScheme. -# -# source://highline//lib/highline/color_scheme.rb#131 -class HighLine::SampleColorScheme < ::HighLine::ColorScheme - # Builds the sample scheme with settings for :critical, - # :error, :warning, :notice, :info, - # :debug, :row_even, and :row_odd colors. - # - # @return [SampleColorScheme] a new instance of SampleColorScheme - # - # source://highline//lib/highline/color_scheme.rb#147 - def initialize(_h = T.unsafe(nil)); end -end - -# source://highline//lib/highline/color_scheme.rb#132 -HighLine::SampleColorScheme::SAMPLE_SCHEME = T.let(T.unsafe(nil), Hash) - -# This class handles proper formatting based -# on a HighLine context, applying wrapping, -# pagination, indentation and color rendering -# when necessary. It's used by {HighLine#render_statement} -# -# @see HighLine#render_statement -# -# source://highline//lib/highline/statement.rb#13 -class HighLine::Statement - # It needs the input String and the HighLine context - # - # @param source [#to_s] - # @param highline [HighLine] context - # @return [Statement] a new instance of Statement - # - # source://highline//lib/highline/statement.rb#28 - def initialize(source, highline); end - - # The HighLine context - # - # @return [HighLine] - # - # source://highline//lib/highline/statement.rb#19 - def highline; end - - # The source object to be stringfied and formatted. - # - # source://highline//lib/highline/statement.rb#15 - def source; end - - # Returns the formated statement. - # Applies wrapping, pagination, indentation and color rendering - # based on HighLine instance settings. - # - # @return [String] formated statement - # - # source://highline//lib/highline/statement.rb#38 - def statement; end - - # The stringfied source object - # - # @return [String] - # - # source://highline//lib/highline/statement.rb#23 - def template_string; end - - # Returns the formated statement. - # Applies wrapping, pagination, indentation and color rendering - # based on HighLine instance settings. - # Delegates to {#statement} - # - # @return [String] formated statement - # - # source://highline//lib/highline/statement.rb#44 - def to_s; end - - private - - # source://highline//lib/highline/statement.rb#58 - def format_statement; end - - # source://highline//lib/highline/statement.rb#72 - def render_template; end - - # source://highline//lib/highline/statement.rb#54 - def stringfy(template_string); end - - # source://highline//lib/highline/statement.rb#80 - def template; end - - class << self - # source://highline//lib/highline/statement.rb#48 - def const_missing(constant); end - end -end - -# HighLine::String is a subclass of String with convenience methods added -# for colorization. -# -# Available convenience methods include: -# * 'color' method e.g. highline_string.color(:bright_blue, -# :underline) -# * colors e.g. highline_string.magenta -# * RGB colors e.g. highline_string.rgb_ff6000 -# or highline_string.rgb(255,96,0) -# * background colors e.g. highline_string.on_magenta -# * RGB background colors e.g. highline_string.on_rgb_ff6000 -# or highline_string.on_rgb(255,96,0) -# * styles e.g. highline_string.underline -# -# Additionally, convenience methods can be chained, for instance the -# following are equivalent: -# highline_string.bright_blue.blink.underline -# highline_string.color(:bright_blue, :blink, :underline) -# HighLine.color(highline_string, :bright_blue, :blink, :underline) -# -# For those less squeamish about possible conflicts, the same convenience -# methods can be added to the built-in String class, as follows: -# -# require 'highline' -# Highline.colorize_strings -# -# source://highline//lib/highline/string.rb#33 -class HighLine::String < ::String - include ::HighLine::StringExtensions - - def black; end - def blink; end - def blue; end - def bold; end - def bright_black; end - def bright_blue; end - def bright_cyan; end - def bright_gray; end - def bright_green; end - def bright_grey; end - def bright_magenta; end - def bright_none; end - def bright_red; end - def bright_white; end - def bright_yellow; end - def clear; end - - # source://highline//lib/highline/string_extensions.rb#33 - def color(*args); end - - def concealed; end - def cyan; end - def dark; end - - # source://highline//lib/highline/string_extensions.rb#33 - def foreground(*args); end - - def gray; end - def green; end - def grey; end - def light_black; end - def light_blue; end - def light_cyan; end - def light_gray; end - def light_green; end - def light_grey; end - def light_magenta; end - def light_none; end - def light_red; end - def light_white; end - def light_yellow; end - def magenta; end - - # source://highline//lib/highline/string_extensions.rb#62 - def method_missing(method, *_args); end - - def none; end - - # source://highline//lib/highline/string_extensions.rb#39 - def on(arg); end - - def on_black; end - def on_blue; end - def on_bright_black; end - def on_bright_blue; end - def on_bright_cyan; end - def on_bright_gray; end - def on_bright_green; end - def on_bright_grey; end - def on_bright_magenta; end - def on_bright_none; end - def on_bright_red; end - def on_bright_white; end - def on_bright_yellow; end - def on_cyan; end - def on_gray; end - def on_green; end - def on_grey; end - def on_light_black; end - def on_light_blue; end - def on_light_cyan; end - def on_light_gray; end - def on_light_green; end - def on_light_grey; end - def on_light_magenta; end - def on_light_none; end - def on_light_red; end - def on_light_white; end - def on_light_yellow; end - def on_magenta; end - def on_none; end - def on_red; end - - # source://highline//lib/highline/string_extensions.rb#55 - def on_rgb(*colors); end - - def on_white; end - def on_yellow; end - def red; end - def reset; end - def reverse; end - - # source://highline//lib/highline/string_extensions.rb#49 - def rgb(*colors); end - - # source://highline//lib/highline/string_extensions.rb#44 - def uncolor; end - - def underline; end - def underscore; end - def white; end - def yellow; end - - private - - # source://highline//lib/highline/string_extensions.rb#71 - def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end - - # source://highline//lib/highline/string_extensions.rb#77 - def setup_color_code(*colors); end -end - -# HighLine extensions for String class. -# Included by HighLine::String. -# -# source://highline//lib/highline/string_extensions.rb#13 -module HighLine::StringExtensions - class << self - # At include time, it defines all basic builtin styles. - # - # @param base [Class, Module] base Class/Module - # - # source://highline//lib/highline/string_extensions.rb#96 - def define_builtin_style_methods(base); end - - # At include time, it defines all basic style - # support method like #color, #on, #uncolor, - # #rgb, #on_rgb and the #method_missing callback - # - # @param base [Class, Module] the base class/module - # @return [void] - # - # source://highline//lib/highline/string_extensions.rb#29 - def define_style_support_methods(base); end - - # Included hook. Actions to take when being included. - # - # @param base [Class, Module] base class - # - # source://highline//lib/highline/string_extensions.rb#18 - def included(base); end - end -end - -# source://highline//lib/highline/string_extensions.rb#14 -HighLine::StringExtensions::STYLE_METHOD_NAME_PATTERN = T.let(T.unsafe(nil), Regexp) - -# ANSI styles to be used by HighLine. -# -# source://highline//lib/highline/style.rb#68 -class HighLine::Style - # Single color/styles have :name, :code, :rgb (possibly), :builtin - # Compound styles have :name, :list, :builtin - # - # @param defn [Hash] options for the Style to be created. - # @return [Style] a new instance of Style - # - # source://highline//lib/highline/style.rb#204 - def initialize(defn = T.unsafe(nil)); end - - # @return [Integer] the BLUE component of the rgb code - # - # source://highline//lib/highline/style.rb#261 - def blue; end - - # @return [Style] a brighter version of this Style - # - # source://highline//lib/highline/style.rb#296 - def bright; end - - # @return [Boolean] true if the Style is builtin or not. - # - # source://highline//lib/highline/style.rb#198 - def builtin; end - - # @return [Boolean] true if the Style is builtin or not. - # - # source://highline//lib/highline/style.rb#198 - def builtin=(_arg0); end - - # @return [String] all codes of the Style list joined together - # (if a Style list) - # @return [String] the Style code - # - # source://highline//lib/highline/style.rb#242 - def code; end - - # Uses the Style definition to add ANSI color escape codes - # to a a given String - # - # @param string [String] to be colored - # @return [String] an ANSI colored string - # - # source://highline//lib/highline/style.rb#235 - def color(string); end - - # Duplicate current Style using the same definition used to create it. - # - # @return [Style] duplicated Style - # - # source://highline//lib/highline/style.rb#222 - def dup; end - - # @return [Integer] the GREEN component of the rgb code - # - # source://highline//lib/highline/style.rb#256 - def green; end - - # @return [Style] a lighter version of this Style - # - # source://highline//lib/highline/style.rb#301 - def light; end - - # When a compound Style, returns a list of its components. - # - # @return [Array] components of a Style list - # - # source://highline//lib/highline/style.rb#192 - def list; end - - # Style name - # - # @return [Symbol] the name of the Style - # - # source://highline//lib/highline/style.rb#188 - def name; end - - # Uses the color as background and return a new style. - # - # @return [Style] - # - # source://highline//lib/highline/style.rb#290 - def on; end - - # @return [Integer] the RED component of the rgb code - # - # source://highline//lib/highline/style.rb#251 - def red; end - - # @return [Array] the three numerical rgb codes. Ex: [10, 12, 127] - # - # source://highline//lib/highline/style.rb#195 - def rgb; end - - # @return [Array] the three numerical rgb codes. Ex: [10, 12, 127] - # - # source://highline//lib/highline/style.rb#195 - def rgb=(_arg0); end - - # @return [Hash] the definition used to create this Style - # - # source://highline//lib/highline/style.rb#227 - def to_hash; end - - # Duplicate Style with some minor changes - # - # @param new_name [Symbol] - # @param options [Hash] Style attributes to be changed - # @return [Style] new Style with changed attributes - # - # source://highline//lib/highline/style.rb#269 - def variant(new_name, options = T.unsafe(nil)); end - - private - - # source://highline//lib/highline/style.rb#307 - def create_bright_variant(variant_name); end - - # source://highline//lib/highline/style.rb#321 - def find_style(name); end - - class << self - # From an ANSI number (color escape code), craft an 'rgb_hex' code of it - # - # @param ansi_number [Integer] ANSI escape code - # @return [String] all color codes joined as {.rgb_hex} - # - # source://highline//lib/highline/style.rb#157 - def ansi_rgb_to_hex(ansi_number); end - - # Clear all custom Styles, restoring the Style index to - # builtin styles only. - # - # @return [void] - # - # source://highline//lib/highline/style.rb#92 - def clear_index; end - - # @return [Hash] list of all cached Style codes - # - # source://highline//lib/highline/style.rb#175 - def code_index; end - - # Index the given style. - # Uses @code_index (Hash) as repository. - # - # @param style [Style] - # @return [Style] the given style - # - # source://highline//lib/highline/style.rb#73 - def index(style); end - - # @return [Hash] list of all cached Styles - # - # source://highline//lib/highline/style.rb#170 - def list; end - - # Search for or create a new Style from the colors provided. - # - # @example Creating a new Style based on rgb code - # rgb_style = HighLine::Style.rgb(9, 10, 11) - # - # rgb_style.name # => :rgb_090a0b - # rgb_style.code # => "\e[38;5;16m" - # rgb_style.rgb # => [9, 10, 11] - # @param colors [Array] color codes - # @return [Style] a Style with the rgb colors provided. - # - # source://highline//lib/highline/style.rb#133 - def rgb(*colors); end - - # Converts all given color codes to hexadecimal and - # join them in a single string. If any given color code - # is already a String, doesn't perform any convertion. - # - # @example - # HighLine::Style.rgb_hex(9, 10, "11") # => "090a11" - # @param colors [Array] color codes - # @return [String] all color codes joined - # - # source://highline//lib/highline/style.rb#107 - def rgb_hex(*colors); end - - # Returns the rgb number to be used as escape code on ANSI terminals. - # - # @param parts [Array] three numerical codes for red, green - # and blue - # @return [Numeric] to be used as escape code on ANSI terminals - # - # source://highline//lib/highline/style.rb#147 - def rgb_number(*parts); end - - # Split an rgb code string into its 3 numerical compounds. - # - # @example - # HighLine::Style.rgb_parts("090A0B") # => [9, 10, 11] - # @param hex [String] rgb code string like "010F0F" - # @return [Array] numerical compounds like [1, 15, 15] - # - # source://highline//lib/highline/style.rb#119 - def rgb_parts(hex); end - - # Remove any ANSI color escape sequence of the given String. - # - # @param string [String] - # @return [String] - # - # source://highline//lib/highline/style.rb#182 - def uncolor(string); end - end -end - -# Renders an erb template taking a {Question} and a {HighLine} instance -# as context. -# -# source://highline//lib/highline/template_renderer.rb#8 -class HighLine::TemplateRenderer - extend ::Forwardable - - # Initializes the TemplateRenderer object with its template and - # HighLine and Question contexts. - # - # @param template [ERB] ERB template. - # @param source [Question] question object. - # @param highline [HighLine] HighLine instance. - # @return [TemplateRenderer] a new instance of TemplateRenderer - # - # source://highline//lib/highline/template_renderer.rb#30 - def initialize(template, source, highline); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def answer(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def answer_type(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def color(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def header(*args, **_arg1, &block); end - - # @return [HighLine] HighLine instance used as context - # - # source://highline//lib/highline/template_renderer.rb#21 - def highline; end - - # source://forwardable/1.3.2/forwardable.rb#229 - def key(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def list(*args, **_arg1, &block); end - - # @return [Question, Menu] {#source} attribute. - # - # source://highline//lib/highline/template_renderer.rb#51 - def menu; end - - # Returns an error message when the called method - # is not available. - # - # @return [String] error message. - # - # source://highline//lib/highline/template_renderer.rb#44 - def method_missing(method, *args); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def prompt(*args, **_arg1, &block); end - - # @return [String] rendered template - # - # source://highline//lib/highline/template_renderer.rb#37 - def render; end - - # @return [Question, Menu] Question instance used as context - # - # source://highline//lib/highline/template_renderer.rb#18 - def source; end - - # @return [ERB] ERB template being rendered - # - # source://highline//lib/highline/template_renderer.rb#15 - def template; end - - class << self - # If some constant is missing at this TemplateRenderer instance, - # get it from HighLine. Useful to get color and style contants. - # - # @param name [Symbol] automatically passed constant's name as Symbol - # - # source://highline//lib/highline/template_renderer.rb#58 - def const_missing(name); end - end -end - -# Basic Terminal class which HighLine will direct -# input and output to. -# The specialized Terminals all decend from this HighLine::Terminal class -# -# source://highline//lib/highline/terminal.rb#18 -class HighLine::Terminal - # Creates a terminal instance based on given input and output streams. - # - # @param input [IO] input stream - # @param output [IO] output stream - # @return [Terminal] a new instance of Terminal - # - # source://highline//lib/highline/terminal.rb#46 - def initialize(input, output); end - - # Returns the class name as String. Useful for debuggin. - # - # @return [String] class name. Ex: "HighLine::Terminal::IOConsole" - # - # source://highline//lib/highline/terminal.rb#162 - def character_mode; end - - # Get one character from the terminal - # - # @return [String] one character - # - # source://highline//lib/highline/terminal.rb#78 - def get_character; end - - # Get one line from the terminal and format accordling. - # Use readline if question has readline mode set. - # - # @param question [HighLine::Question] - # @param highline [HighLine] - # - # source://highline//lib/highline/terminal.rb#84 - def get_line(question, highline); end - - # Get one line from terminal using default #gets method. - # - # @param highline [HighLine] - # @raise [EOFError] - # - # source://highline//lib/highline/terminal.rb#135 - def get_line_default(highline); end - - # Get one line using #readline_read - # - # @param question [HighLine::Question] - # @param highline [HighLine] - # - # source://highline//lib/highline/terminal.rb#97 - def get_line_with_readline(question, highline); end - - # An initialization callback. - # It is called by {.get_terminal}. - # - # source://highline//lib/highline/terminal.rb#53 - def initialize_system_extensions; end - - # @return [IO] input stream - # - # source://highline//lib/highline/terminal.rb#38 - def input; end - - # Running on JRuby? - # - # @return [Boolean] - # - # source://highline//lib/highline/terminal.rb#144 - def jruby?; end - - # @return [IO] output stream - # - # source://highline//lib/highline/terminal.rb#41 - def output; end - - # Enter Raw No Echo mode. - # - # source://highline//lib/highline/terminal.rb#62 - def raw_no_echo_mode; end - - # Yieds a block to be executed in Raw No Echo mode and - # then restore the terminal state. - # - # source://highline//lib/highline/terminal.rb#66 - def raw_no_echo_mode_exec; end - - # Use readline to read one line - # - # @param question [HighLine::Question] question from where to get - # autocomplete candidate strings - # - # source://highline//lib/highline/terminal.rb#112 - def readline_read(question); end - - # Restore terminal to its default mode - # - # source://highline//lib/highline/terminal.rb#74 - def restore_mode; end - - # Running on Rubinius? - # - # @return [Boolean] - # - # source://highline//lib/highline/terminal.rb#149 - def rubinius?; end - - # @return [Array] two value terminal - # size like [columns, lines] - # - # source://highline//lib/highline/terminal.rb#57 - def terminal_size; end - - # Running on Windows? - # - # @return [Boolean] - # - # source://highline//lib/highline/terminal.rb#154 - def windows?; end - - private - - # Restores terminal state using shell stty command. - # - # source://highline//lib/highline/terminal.rb#186 - def restore_stty; end - - # Yield a block using stty shell commands to preserve the terminal state. - # - # source://highline//lib/highline/terminal.rb#169 - def run_preserving_stty; end - - # Saves terminal state using shell stty command. - # - # source://highline//lib/highline/terminal.rb#177 - def save_stty; end - - class << self - # Probe for and return a suitable Terminal instance - # - # @param input [IO] input stream - # @param output [IO] output stream - # - # source://highline//lib/highline/terminal.rb#22 - def get_terminal(input, output); end - end -end - -# io/console option for HighLine::Terminal. -# It's the most used terminal. -# TODO: We're rescuing when not a terminal. -# We should make a more robust implementation. -# -# source://highline//lib/highline/terminal/io_console.rb#10 -class HighLine::Terminal::IOConsole < ::HighLine::Terminal - # Get one character from the terminal - # - # @return [String] one character - # - # source://highline//lib/highline/terminal/io_console.rb#29 - def get_character; end - - # Enter Raw No Echo mode. - # - # source://highline//lib/highline/terminal/io_console.rb#17 - def raw_no_echo_mode; end - - # Restore terminal to its default mode - # - # source://highline//lib/highline/terminal/io_console.rb#23 - def restore_mode; end - - # @return [Array] two value terminal - # size like [columns, lines] - # - # source://highline//lib/highline/terminal/io_console.rb#11 - def terminal_size; end -end - -# The version of the installed library. -# -# source://highline//lib/highline/version.rb#5 -HighLine::VERSION = T.let(T.unsafe(nil), String) - -# A simple Wrapper module that is aware of ANSI escape codes. -# It compensates for the ANSI escape codes so it works on the -# actual (visual) line length. -# -# source://highline//lib/highline/wrapper.rb#9 -module HighLine::Wrapper - class << self - # Returns the length of the passed +string_with_escapes+, minus and color - # sequence escapes. - # - # @param string_with_escapes [String] any ANSI colored String - # @return [Integer] length based on the visual size of the String - # (without the escape codes) - # - # source://highline//lib/highline/wrapper.rb#49 - def actual_length(string_with_escapes); end - - # Wrap a sequence of _lines_ at _wrap_at_ characters per line. Existing - # newlines will not be affected by this process, but additional newlines - # may be added. - # - # @param text [String] text to be wrapped - # @param wrap_at [#to_i] column count to wrap the text into - # - # source://highline//lib/highline/wrapper.rb#17 - def wrap(text, wrap_at); end - end -end - -# When requiring 'highline/import' HighLine adds {#or_ask} to Object so -# it is globally available. -# -# source://highline//lib/highline/import.rb#30 -class Object < ::BasicObject - include ::Kernel - include ::PP::ObjectMixin - - # Tries this object as a _first_answer_ for a HighLine::Question. See that - # attribute for details. - # - # *Warning*: This Object will be passed to String() before set. - # - # @param args [Array<#to_s>] - # @param details [lambda] block to be called with the question - # instance as argument. - # @return [String] answer - # - # source://highline//lib/highline/import.rb#41 - def or_ask(*args, &details); end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/hpricot@0.8.6.rbi b/Library/Homebrew/sorbet/rbi/gems/hpricot@0.8.6.rbi deleted file mode 100644 index 373773f4d6..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/hpricot@0.8.6.rbi +++ /dev/null @@ -1,1772 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `hpricot` gem. -# Please instead update this file by running `bin/tapioca gem hpricot`. - -# source://hpricot//lib/hpricot/tag.rb#1 -module Hpricot - class << self - # Hpricot::XML parses input, disregarding all the HTML rules - # and returning a document tree. - # - # source://hpricot//lib/hpricot/parse.rb#20 - def XML(input = T.unsafe(nil), opts = T.unsafe(nil), &blk); end - - def buffer_size; end - def buffer_size=(_arg0); end - - # source://hpricot//lib/hpricot/builder.rb#15 - def build(ele = T.unsafe(nil), assigns = T.unsafe(nil), &blk); end - - def css(_arg0, _arg1, _arg2); end - - # :stopdoc: - # - # source://hpricot//lib/hpricot/parse.rb#27 - def make(input = T.unsafe(nil), opts = T.unsafe(nil), &blk); end - - # Hpricot.parse parses input and return a document tree. - # represented by Hpricot::Doc. - # - # source://hpricot//lib/hpricot/parse.rb#14 - def parse(input = T.unsafe(nil), opts = T.unsafe(nil), &blk); end - - def scan(*_arg0); end - - # XML unescape - # - # source://hpricot//lib/hpricot/builder.rb#8 - def uxs(str); end - end -end - -# Common sets of attributes. -# -# source://hpricot//lib/hpricot/tags.rb#7 -Hpricot::AttrCore = T.let(T.unsafe(nil), Array) - -# source://hpricot//lib/hpricot/tags.rb#9 -Hpricot::AttrEvents = T.let(T.unsafe(nil), Array) - -# source://hpricot//lib/hpricot/tags.rb#11 -Hpricot::AttrFocus = T.let(T.unsafe(nil), Array) - -# source://hpricot//lib/hpricot/tags.rb#12 -Hpricot::AttrHAlign = T.let(T.unsafe(nil), Array) - -# source://hpricot//lib/hpricot/tags.rb#8 -Hpricot::AttrI18n = T.let(T.unsafe(nil), Array) - -# source://hpricot//lib/hpricot/tags.rb#13 -Hpricot::AttrVAlign = T.let(T.unsafe(nil), Array) - -# source://hpricot//lib/hpricot/tag.rb#41 -class Hpricot::Attributes - # @return [Attributes] a new instance of Attributes - # - # source://hpricot//lib/hpricot/tag.rb#43 - def initialize(e); end - - # source://hpricot//lib/hpricot/tag.rb#46 - def [](k); end - - # source://hpricot//lib/hpricot/tag.rb#49 - def []=(k, v); end - - # Returns the value of attribute element. - # - # source://hpricot//lib/hpricot/tag.rb#42 - def element; end - - # Sets the attribute element - # - # @param value the value to set the attribute element to. - # - # source://hpricot//lib/hpricot/tag.rb#42 - def element=(_arg0); end - - # source://hpricot//lib/hpricot/tag.rb#65 - def inspect; end - - # source://hpricot//lib/hpricot/tag.rb#52 - def to_hash; end - - # source://hpricot//lib/hpricot/tag.rb#62 - def to_s; end -end - -# source://hpricot//lib/hpricot/tags.rb#14 -Hpricot::Attrs = T.let(T.unsafe(nil), Array) - -# BlankSlate provides an abstract base class with no predefined -# methods (except for \_\_send__ and \_\_id__). -# BlankSlate is useful as a base class when writing classes that -# depend upon method_missing (e.g. dynamic proxies). -# -# source://hpricot//lib/hpricot/blankslate.rb#17 -class Hpricot::BlankSlate - class << self - # Hide the method named +name+ in the BlankSlate class. Don't - # hide +instance_eval+ or any method beginning with "__". - # - # source://hpricot//lib/hpricot/blankslate.rb#22 - def hide(name); end - end -end - -# source://hpricot//lib/hpricot/tag.rb#124 -class Hpricot::BogusETag - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Leaf - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - include ::Hpricot::BogusETag::Trav - - # @return [BogusETag] a new instance of BogusETag - # - # source://hpricot//lib/hpricot/tag.rb#125 - def initialize(name); end - - def clear_raw; end - - # source://hpricot//lib/hpricot/tag.rb#126 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/inspect.rb#90 - def pretty_print(q); end - - def raw_string; end -end - -# source://hpricot//lib/hpricot/modules.rb#36 -module Hpricot::BogusETag::Trav - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav -end - -# source://hpricot//lib/hpricot/builder.rb#24 -module Hpricot::Builder - # Write a +string+ to the HTML stream without escaping it. - # - # source://hpricot//lib/hpricot/builder.rb#55 - def <<(string); end - - def a(*args, &block); end - def abbr(*args, &block); end - def acronym(*args, &block); end - - # source://hpricot//lib/hpricot/builder.rb#42 - def add_child(ele); end - - def address(*args, &block); end - def applet(*args, &block); end - def area(*args, &block); end - def b(*args, &block); end - def base(*args, &block); end - def basefont(*args, &block); end - def bdo(*args, &block); end - def big(*args, &block); end - def blockquote(*args, &block); end - def body(*args, &block); end - def br(*args, &block); end - - # source://hpricot//lib/hpricot/builder.rb#121 - def build(*a, &b); end - - def button(*args, &block); end - def caption(*args, &block); end - def center(*args, &block); end - def cite(*args, &block); end - def code(*args, &block); end - def col(*args, &block); end - def colgroup(*args, &block); end - - # Write a +string+ to the HTML stream without escaping it. - # - # source://hpricot//lib/hpricot/builder.rb#55 - def concat(string); end - - def dd(*args, &block); end - def del(*args, &block); end - def dfn(*args, &block); end - def dir(*args, &block); end - def div(*args, &block); end - def dl(*args, &block); end - - # source://hpricot//lib/hpricot/builder.rb#149 - def doctype(target, pub, sys); end - - def dt(*args, &block); end - def em(*args, &block); end - def fieldset(*args, &block); end - def font(*args, &block); end - def form(*args, &block); end - def h1(*args, &block); end - def h2(*args, &block); end - def h3(*args, &block); end - def h4(*args, &block); end - def h5(*args, &block); end - def h6(*args, &block); end - - # Builds a head tag. Adds a meta tag inside with Content-Type - # set to text/html; charset=utf-8. - # - # source://hpricot//lib/hpricot/builder.rb#157 - def head(*args, &block); end - - def hr(*args, &block); end - def html(*args, &block); end - - # Every HTML tag method goes through an html_tag call. So, calling div is equivalent - # to calling html_tag(:div). All HTML tags in Hpricot's list are given generated wrappers - # for this method. - # - # If the @auto_validation setting is on, this method will check for many common mistakes which - # could lead to invalid XHTML. - # - # source://hpricot//lib/hpricot/builder.rb#131 - def html_tag(sym, *args, &block); end - - def i(*args, &block); end - def iframe(*args, &block); end - def img(*args, &block); end - def input(*args, &block); end - def ins(*args, &block); end - def isindex(*args, &block); end - def kbd(*args, &block); end - def label(*args, &block); end - def legend(*args, &block); end - def li(*args, &block); end - def link(*args, &block); end - def map(*args, &block); end - def menu(*args, &block); end - def meta(*args, &block); end - def noframes(*args, &block); end - def noscript(*args, &block); end - def object(*args, &block); end - def ol(*args, &block); end - def optgroup(*args, &block); end - def option(*args, &block); end - def p(*args, &block); end - def param(*args, &block); end - def pre(*args, &block); end - def q(*args, &block); end - def s(*args, &block); end - def samp(*args, &block); end - def script(*args, &block); end - def select(*args, &block); end - def small(*args, &block); end - def span(*args, &block); end - def strike(*args, &block); end - def strong(*args, &block); end - def style(*args, &block); end - def sub(*args, &block); end - def sup(*args, &block); end - def table(*args, &block); end - - # Create a tag named +tag+. Other than the first argument which is the tag name, - # the arguments are the same as the tags implemented via method_missing. - # - # source://hpricot//lib/hpricot/builder.rb#64 - def tag!(tag, *args, &block); end - - def tbody(*args, &block); end - def td(*args, &block); end - - # Write a +string+ to the HTML stream without escaping it. - # - # source://hpricot//lib/hpricot/builder.rb#55 - def text(string); end - - # Write a +string+ to the HTML stream, making sure to escape it. - # - # source://hpricot//lib/hpricot/builder.rb#50 - def text!(string); end - - def textarea(*args, &block); end - def tfoot(*args, &block); end - def th(*args, &block); end - def thead(*args, &block); end - def title(*args, &block); end - def tr(*args, &block); end - def tt(*args, &block); end - def u(*args, &block); end - def ul(*args, &block); end - def var(*args, &block); end - - # Builds an html tag with XHTML 1.0 Strict doctype instead. - # - # source://hpricot//lib/hpricot/builder.rb#173 - def xhtml_strict(attrs = T.unsafe(nil), &block); end - - # Builds an html tag. An XML 1.0 instruction and an XHTML 1.0 Transitional doctype - # are prepended. Also assumes :xmlns => "http://www.w3.org/1999/xhtml", - # :lang => "en". - # - # source://hpricot//lib/hpricot/builder.rb#167 - def xhtml_transitional(attrs = T.unsafe(nil), &block); end - - private - - # source://hpricot//lib/hpricot/builder.rb#180 - def xhtml_html(attrs = T.unsafe(nil), &block); end - - class << self - # source://hpricot//lib/hpricot/builder.rb#38 - def set(option, value); end - end -end - -# source://hpricot//lib/hpricot/tag.rb#152 -class Hpricot::CData - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Leaf - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - include ::Hpricot::CData::Trav - - # @return [CData] a new instance of CData - # - # source://hpricot//lib/hpricot/tag.rb#153 - def initialize(content); end - - def content; end - def content=(_arg0); end - def inner_text; end - - # source://hpricot//lib/hpricot/tag.rb#158 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#157 - def raw_string; end - - def to_plain_text; end - def to_s; end -end - -# source://hpricot//lib/hpricot/modules.rb#30 -module Hpricot::CData::Trav - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav -end - -# source://hpricot//lib/hpricot/tag.rb#207 -class Hpricot::Comment - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Leaf - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - include ::Hpricot::Comment::Trav - - def content; end - def content=(_arg0); end - - # source://hpricot//lib/hpricot/tag.rb#210 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#208 - def pathname; end - - # source://hpricot//lib/hpricot/tag.rb#209 - def raw_string; end -end - -# source://hpricot//lib/hpricot/modules.rb#35 -module Hpricot::Comment::Trav - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav -end - -# source://hpricot//lib/hpricot/modules.rb#12 -module Hpricot::Container - include ::Hpricot - include ::Hpricot::Node -end - -# :startdoc: -# -# source://hpricot//lib/hpricot/modules.rb#26 -module Hpricot::Container::Trav - include ::Hpricot::Traverse - - # Returns a list of CSS classes to which this element belongs. - # - # source://hpricot//lib/hpricot/traverse.rb#518 - def classes; end - - # Return all children of this node which can contain other - # nodes. This is a good way to get all HTML elements which - # aren't text, comment, doctype or processing instruction nodes. - # - # source://hpricot//lib/hpricot/traverse.rb#404 - def containers; end - - # +each_child+ iterates over each child. - # - # source://hpricot//lib/hpricot/traverse.rb#498 - def each_child(&block); end - - # +each_child_with_index+ iterates over each child. - # - # source://hpricot//lib/hpricot/traverse.rb#504 - def each_child_with_index(&block); end - - # +each_hyperlink+ traverses hyperlinks such as HTML href attribute - # of A element. - # - # It yields Hpricot::Text. - # - # Note that +each_hyperlink+ yields HTML href attribute of BASE element. - # - # source://hpricot//lib/hpricot/traverse.rb#614 - def each_hyperlink; end - - # +each_hyperlink_uri+ traverses hyperlinks such as HTML href attribute - # of A element. - # - # It yields Hpricot::Text and URI for each hyperlink. - # - # The URI objects are created with a base URI which is given by - # HTML BASE element or the argument ((|base_uri|)). - # +each_hyperlink_uri+ doesn't yields href of the BASE element. - # - # source://hpricot//lib/hpricot/traverse.rb#591 - def each_hyperlink_uri(base_uri = T.unsafe(nil)); end - - # +each_uri+ traverses hyperlinks such as HTML href attribute - # of A element. - # - # It yields URI for each hyperlink. - # - # The URI objects are created with a base URI which is given by - # HTML BASE element or the argument ((|base_uri|)). - # - # source://hpricot//lib/hpricot/traverse.rb#628 - def each_uri(base_uri = T.unsafe(nil)); end - - # +filter+ rebuilds the tree without some components. - # - # node.filter {|descendant_node| predicate } -> node - # loc.filter {|descendant_loc| predicate } -> node - # - # +filter+ yields each node except top node. - # If given block returns false, corresponding node is dropped. - # If given block returns true, corresponding node is retained and - # inner nodes are examined. - # - # +filter+ returns an node. - # It doesn't return location object even if self is location object. - # - # source://hpricot//lib/hpricot/traverse.rb#719 - def filter(&block); end - - # +find_element+ searches an element which universal name is specified by - # the arguments. - # It returns nil if not found. - # - # source://hpricot//lib/hpricot/traverse.rb#512 - def find_element(*names); end - - # Find sibling elements which follow the current one. Like the other "sibling" methods, this weeds - # out text and comment nodes. - # - # source://hpricot//lib/hpricot/traverse.rb#435 - def following_siblings; end - - # source://hpricot//lib/hpricot/traverse.rb#522 - def get_element_by_id(id); end - - # source://hpricot//lib/hpricot/traverse.rb#531 - def get_elements_by_tag_name(*a); end - - # Insert +nodes+, an array of HTML elements or a single element, - # after the node +ele+, a child of the current node. - # - # source://hpricot//lib/hpricot/traverse.rb#486 - def insert_after(nodes, ele); end - - # Insert +nodes+, an array of HTML elements or a single element, - # before the node +ele+, a child of the current node. - # - # source://hpricot//lib/hpricot/traverse.rb#474 - def insert_before(nodes, ele); end - - # Returns the container node neighboring this node to the south: just below it. - # By "container" node, I mean: this method does not find text nodes or comments or cdata or any of that. - # See Hpricot::Traverse#next_node if you need to hunt out all kinds of nodes. - # - # source://hpricot//lib/hpricot/traverse.rb#411 - def next_sibling; end - - # Find all preceding sibling elements. Like the other "sibling" methods, this weeds - # out text and comment nodes. - # - # source://hpricot//lib/hpricot/traverse.rb#427 - def preceding_siblings; end - - # Returns the container node neighboring this node to the north: just above it. - # By "container" node, I mean: this method does not find text nodes or comments or cdata or any of that. - # See Hpricot::Traverse#previous_node if you need to hunt out all kinds of nodes. - # - # source://hpricot//lib/hpricot/traverse.rb#419 - def previous_sibling; end - - # Replace +old+, a child of the current node, with +new+ node. - # - # source://hpricot//lib/hpricot/traverse.rb#467 - def replace_child(old, new); end - - # Puts together an array of neighboring sibling elements based on their proximity - # to this element. - # - # This method accepts ranges and sets of numbers. - # - # ele.siblings_at(-3..-1, 1..3) # gets three elements before and three after - # ele.siblings_at(1, 5, 7) # gets three elements at offsets below the current element - # ele.siblings_at(0, 5..6) # the current element and two others - # - # Like the other "sibling" methods, this doesn't find text and comment nodes. - # Use nodes_at to include those nodes. - # - # source://hpricot//lib/hpricot/traverse.rb#452 - def siblings_at(*pos); end - - # source://hpricot//lib/hpricot/traverse.rb#688 - def traverse_text_internal(&block); end - - private - - # source://hpricot//lib/hpricot/traverse.rb#540 - def each_hyperlink_attribute; end -end - -# source://hpricot//lib/hpricot/modules.rb#3 -class Hpricot::Context - include ::Hpricot -end - -# Class used by Markaby::Builder to store element options. Methods called -# against the CssProxy object are added as element classes or IDs. -# -# See the README for examples. -# -# source://hpricot//lib/hpricot/builder.rb#192 -class Hpricot::CssProxy < ::Hpricot::BlankSlate - # Creates a CssProxy object. - # - # @return [CssProxy] a new instance of CssProxy - # - # source://hpricot//lib/hpricot/builder.rb#195 - def initialize(builder, sym); end - - # Adds attributes to an element. Bang methods set the :id attribute. - # Other methods add to the :class attribute. - # - # source://hpricot//lib/hpricot/builder.rb#201 - def method_missing(id_or_class, *args, &block); end -end - -# :stopdoc: -# -# source://hpricot//lib/hpricot/tag.rb#4 -class Hpricot::Doc - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Container - include ::Hpricot::Traverse - include ::Hpricot::Container::Trav - include ::Hpricot::Doc::Trav - - # source://hpricot//lib/hpricot/tag.rb#14 - def altered!; end - - # source://pp/0.3.0/pp.rb#356 - def inspect; end - - # source://hpricot//lib/hpricot/tag.rb#15 - def inspect_tree; end - - # source://hpricot//lib/hpricot/tag.rb#11 - def make(input = T.unsafe(nil), &blk); end - - # source://hpricot//lib/hpricot/tag.rb#5 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/inspect.rb#13 - def pretty_print(q); end -end - -# :stopdoc: -# -# source://hpricot//lib/hpricot/modules.rb#28 -module Hpricot::Doc::Trav - include ::Hpricot::Traverse - include ::Hpricot::Container::Trav - - # +author+ searches author and return it as a text. - # It returns nil if not found. - # - # +author+ searchs following information. - # - # - in HTML - # - in HTML - # - author-name in RSS - # - author-name in RSS - # - # source://hpricot//lib/hpricot/traverse.rb#761 - def author; end - - # source://hpricot//lib/hpricot/traverse.rb#641 - def css_path; end - - # @raise [Hpricot::Error] - # - # source://hpricot//lib/hpricot/traverse.rb#805 - def root; end - - # +title+ searches title and return it as a text. - # It returns nil if not found. - # - # +title+ searchs following information. - # - # - ... in HTML - # - ... in RSS - # - # source://hpricot//lib/hpricot/traverse.rb#744 - def title; end - - # source://hpricot//lib/hpricot/traverse.rb#635 - def traverse_all_element(&block); end - - # source://hpricot//lib/hpricot/traverse.rb#660 - def traverse_some_element(name_set, &block); end - - # source://hpricot//lib/hpricot/traverse.rb#638 - def xpath; end -end - -# source://hpricot//lib/hpricot/tag.rb#179 -class Hpricot::DocType - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Leaf - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - include ::Hpricot::DocType::Trav - - # @return [DocType] a new instance of DocType - # - # source://hpricot//lib/hpricot/tag.rb#180 - def initialize(target, pub, sys); end - - def clear_raw; end - - # source://hpricot//lib/hpricot/tag.rb#184 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#183 - def pathname; end - - def public_id; end - def public_id=(_arg0); end - def raw_string; end - def system_id; end - def system_id=(_arg0); end - def target; end - def target=(_arg0); end -end - -# source://hpricot//lib/hpricot/modules.rb#33 -module Hpricot::DocType::Trav - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav -end - -# source://hpricot//lib/hpricot/tag.rb#131 -class Hpricot::ETag < ::Hpricot::BogusETag - include ::Hpricot::Tag - - # source://pp/0.3.0/pp.rb#356 - def inspect; end - - # source://hpricot//lib/hpricot/tag.rb#132 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/inspect.rb#75 - def pretty_print(q); end -end - -# source://hpricot//lib/hpricot/tag.rb#70 -class Hpricot::Elem - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Container - include ::Hpricot::Traverse - include ::Hpricot::Container::Trav - include ::Hpricot::Elem::Trav - - # @return [Elem] a new instance of Elem - # - # source://hpricot//lib/hpricot/tag.rb#71 - def initialize(tag, attrs = T.unsafe(nil), children = T.unsafe(nil), etag = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#76 - def attributes; end - - # source://hpricot//lib/hpricot/tag.rb#110 - def attributes_as_html; end - - def clear_raw; end - - # @return [Boolean] - # - # source://hpricot//lib/hpricot/tag.rb#75 - def empty?; end - - # source://pp/0.3.0/pp.rb#356 - def inspect; end - - # source://hpricot//lib/hpricot/tag.rb#118 - def inspect_tree(depth = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#93 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#92 - def pathname; end - - # source://hpricot//lib/hpricot/inspect.rb#38 - def pretty_print(q); end - - # source://hpricot//lib/hpricot/inspect.rb#55 - def pretty_print_stag(q); end - - # source://hpricot//lib/hpricot/tag.rb#79 - def to_plain_text; end -end - -# source://hpricot//lib/hpricot/modules.rb#29 -module Hpricot::Elem::Trav - include ::Hpricot::Traverse - include ::Hpricot::Container::Trav - - # source://hpricot//lib/hpricot/traverse.rb#818 - def [](name); end - - # source://hpricot//lib/hpricot/traverse.rb#824 - def []=(name, val); end - - # source://hpricot//lib/hpricot/traverse.rb#818 - def get_attribute(name); end - - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#815 - def has_attribute?(name); end - - # source://hpricot//lib/hpricot/traverse.rb#830 - def remove_attribute(name); end - - # source://hpricot//lib/hpricot/traverse.rb#824 - def set_attribute(name, val); end - - # @yield [_self] - # @yieldparam _self [Hpricot::Elem::Trav] the object that the method was called on - # - # source://hpricot//lib/hpricot/traverse.rb#647 - def traverse_all_element(&block); end - - # @yield [_self] - # @yieldparam _self [Hpricot::Elem::Trav] the object that the method was called on - # - # source://hpricot//lib/hpricot/traverse.rb#666 - def traverse_some_element(name_set, &block); end -end - -# source://hpricot//lib/hpricot/htmlinfo.rb#59 -Hpricot::ElementContent = T.let(T.unsafe(nil), Hash) - -# source://hpricot//lib/hpricot/htmlinfo.rb#494 -Hpricot::ElementExclusions = T.let(T.unsafe(nil), Hash) - -# source://hpricot//lib/hpricot/htmlinfo.rb#486 -Hpricot::ElementInclusions = T.let(T.unsafe(nil), Hash) - -# :stopdoc: -# -# source://hpricot//lib/hpricot/elements.rb#52 -class Hpricot::Elements < ::Array - # Searches this list for the first element (or child of these elements) matching - # the CSS or XPath expression +expr+. Root is assumed to be the element scanned. - # - # See Hpricot::Container::Trav.at for more. - # - # source://hpricot//lib/hpricot/elements.rb#67 - def %(expr, &blk); end - - # Searches this list for any elements (or children of these elements) matching - # the CSS or XPath expression +expr+. Root is assumed to be the element scanned. - # - # See Hpricot::Container::Trav.search for more. - # - # source://hpricot//lib/hpricot/elements.rb#58 - def /(*expr, &blk); end - - # Adds the class to all matched elements. - # - # (doc/"p").add_class("bacon") - # - # Now all paragraphs will have class="bacon". - # - # source://hpricot//lib/hpricot/elements.rb#226 - def add_class(class_name); end - - # Just after each element in this list, add some HTML. - # Pass in an HTML +str+, which is turned into Hpricot elements. - # - # source://hpricot//lib/hpricot/elements.rb#154 - def after(str = T.unsafe(nil), &blk); end - - # Add to the end of the contents inside each element in this list. - # Pass in an HTML +str+, which is turned into Hpricot elements. - # - # source://hpricot//lib/hpricot/elements.rb#136 - def append(str = T.unsafe(nil), &blk); end - - # Searches this list for the first element (or child of these elements) matching - # the CSS or XPath expression +expr+. Root is assumed to be the element scanned. - # - # See Hpricot::Container::Trav.at for more. - # - # source://hpricot//lib/hpricot/elements.rb#67 - def at(expr, &blk); end - - # Gets and sets attributes on all matched elements. - # - # Pass in a +key+ on its own and this method will return the string value - # assigned to that attribute for the first elements. Or +nil+ if the - # attribute isn't found. - # - # doc.search("a").attr("href") - # #=> "http://hacketyhack.net/" - # - # Or, pass in a +key+ and +value+. This will set an attribute for all - # matched elements. - # - # doc.search("p").attr("class", "basic") - # - # You may also use a Hash to set a series of attributes: - # - # (doc/"a").attr(:class => "basic", :href => "http://hackety.org/") - # - # Lastly, a block can be used to rewrite an attribute based on the element - # it belongs to. The block will pass in an element. Return from the block - # the new value of the attribute. - # - # records.attr("href") { |e| e['href'] + "#top" } - # - # This example adds a #top anchor to each link. - # - # source://hpricot//lib/hpricot/elements.rb#205 - def attr(key, value = T.unsafe(nil), &blk); end - - # Add some HTML just previous to each element in this list. - # Pass in an HTML +str+, which is turned into Hpricot elements. - # - # source://hpricot//lib/hpricot/elements.rb#148 - def before(str = T.unsafe(nil), &blk); end - - # Empty the elements in this list, by removing their insides. - # - # doc = Hpricot("

We have so much to say.

") - # doc.search("i").empty - # doc.to_html - # => "

We have to say.

" - # - # source://hpricot//lib/hpricot/elements.rb#130 - def empty; end - - # source://hpricot//lib/hpricot/elements.rb#351 - def filter(expr); end - - # Returns an HTML fragment built of the contents of each element in this list. - # - # If a HTML +string+ is supplied, this method acts like inner_html=. - # - # source://hpricot//lib/hpricot/elements.rb#86 - def html(*string); end - - # Replaces the contents of each element in this list. Supply an HTML +string+, - # which is loaded into Hpricot objects and inserted into every element in this - # list. - # - # source://hpricot//lib/hpricot/elements.rb#99 - def html=(string); end - - # Returns an HTML fragment built of the contents of each element in this list. - # - # If a HTML +string+ is supplied, this method acts like inner_html=. - # - # source://hpricot//lib/hpricot/elements.rb#86 - def innerHTML(*string); end - - # Replaces the contents of each element in this list. Supply an HTML +string+, - # which is loaded into Hpricot objects and inserted into every element in this - # list. - # - # source://hpricot//lib/hpricot/elements.rb#99 - def innerHTML=(string); end - - # Returns an HTML fragment built of the contents of each element in this list. - # - # If a HTML +string+ is supplied, this method acts like inner_html=. - # - # source://hpricot//lib/hpricot/elements.rb#86 - def inner_html(*string); end - - # Replaces the contents of each element in this list. Supply an HTML +string+, - # which is loaded into Hpricot objects and inserted into every element in this - # list. - # - # source://hpricot//lib/hpricot/elements.rb#99 - def inner_html=(string); end - - # Returns an string containing the text contents of each element in this list. - # All HTML tags are removed. - # - # source://hpricot//lib/hpricot/elements.rb#107 - def inner_text; end - - # source://pp/0.3.0/pp.rb#356 - def inspect; end - - # source://hpricot//lib/hpricot/elements.rb#356 - def not(expr); end - - # Add to the start of the contents inside each element in this list. - # Pass in an HTML +str+, which is turned into Hpricot elements. - # - # source://hpricot//lib/hpricot/elements.rb#142 - def prepend(str = T.unsafe(nil), &blk); end - - # source://hpricot//lib/hpricot/inspect.rb#6 - def pretty_print(q); end - - # Remove all elements in this list from the document which contains them. - # - # doc = Hpricot("Remove this: here") - # doc.search("b").remove - # doc.to_html - # => "Remove this: " - # - # source://hpricot//lib/hpricot/elements.rb#119 - def remove; end - - # Remove an attribute from each of the matched elements. - # - # (doc/"input").remove_attr("disabled") - # - # source://hpricot//lib/hpricot/elements.rb#239 - def remove_attr(name); end - - # Removes a class from all matched elements. - # - # (doc/"span").remove_class("lightgrey") - # - # Or, to remove all classes: - # - # (doc/"span").remove_class - # - # source://hpricot//lib/hpricot/elements.rb#255 - def remove_class(name = T.unsafe(nil)); end - - # Searches this list for any elements (or children of these elements) matching - # the CSS or XPath expression +expr+. Root is assumed to be the element scanned. - # - # See Hpricot::Container::Trav.search for more. - # - # source://hpricot//lib/hpricot/elements.rb#58 - def search(*expr, &blk); end - - # Gets and sets attributes on all matched elements. - # - # Pass in a +key+ on its own and this method will return the string value - # assigned to that attribute for the first elements. Or +nil+ if the - # attribute isn't found. - # - # doc.search("a").attr("href") - # #=> "http://hacketyhack.net/" - # - # Or, pass in a +key+ and +value+. This will set an attribute for all - # matched elements. - # - # doc.search("p").attr("class", "basic") - # - # You may also use a Hash to set a series of attributes: - # - # (doc/"a").attr(:class => "basic", :href => "http://hackety.org/") - # - # Lastly, a block can be used to rewrite an attribute based on the element - # it belongs to. The block will pass in an element. Return from the block - # the new value of the attribute. - # - # records.attr("href") { |e| e['href'] + "#top" } - # - # This example adds a #top anchor to each link. - # - # source://hpricot//lib/hpricot/elements.rb#205 - def set(key, value = T.unsafe(nil), &blk); end - - # Returns an string containing the text contents of each element in this list. - # All HTML tags are removed. - # - # source://hpricot//lib/hpricot/elements.rb#107 - def text; end - - # Convert this group of elements into a complete HTML fragment, returned as a - # string. - # - # source://hpricot//lib/hpricot/elements.rb#78 - def to_html; end - - # Convert this group of elements into a complete HTML fragment, returned as a - # string. - # - # source://hpricot//lib/hpricot/elements.rb#78 - def to_s; end - - # Wraps each element in the list inside the element created by HTML +str+. - # If more than one element is found in the string, Hpricot locates the - # deepest spot inside the first element. - # - # doc.search("a[@href]"). - # wrap(%{}) - # - # This code wraps every link on the page inside a +div.link+ and a +div.link_inner+ nest. - # - # source://hpricot//lib/hpricot/elements.rb#166 - def wrap(str = T.unsafe(nil), &blk); end - - private - - # source://hpricot//lib/hpricot/elements.rb#366 - def copy_node(node, l); end - - class << self - # Given two elements, attempt to gather an Elements array of everything between - # (and including) those two elements. - # - # source://hpricot//lib/hpricot/elements.rb#319 - def expand(ele1, ele2, excl = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/elements.rb#274 - def filter(nodes, expr, truth = T.unsafe(nil)); end - end -end - -# " (for emacs) -# -# source://hpricot//lib/hpricot/elements.rb#268 -Hpricot::Elements::ATTR_RE = T.let(T.unsafe(nil), Regexp) - -# source://hpricot//lib/hpricot/elements.rb#269 -Hpricot::Elements::BRACK_RE = T.let(T.unsafe(nil), Regexp) - -# source://hpricot//lib/hpricot/elements.rb#272 -Hpricot::Elements::CATCH_RE = T.let(T.unsafe(nil), Regexp) - -# source://hpricot//lib/hpricot/elements.rb#271 -Hpricot::Elements::CUST_RE = T.let(T.unsafe(nil), Regexp) - -# source://hpricot//lib/hpricot/elements.rb#270 -Hpricot::Elements::FUNC_RE = T.let(T.unsafe(nil), Regexp) - -# Exception class used for any errors related to deficiencies in the system when -# handling the character encodings of a document. -# -# source://hpricot//lib/hpricot/parse.rb#10 -class Hpricot::EncodingError < ::StandardError; end - -# source://hpricot//lib/hpricot/modules.rb#38 -class Hpricot::Error < ::StandardError; end - -# source://hpricot//lib/hpricot/tags.rb#3 -Hpricot::FORM_TAGS = T.let(T.unsafe(nil), Array) - -# source://hpricot//lib/hpricot/modules.rb#16 -module Hpricot::Leaf - include ::Hpricot - include ::Hpricot::Node - - # source://pp/0.3.0/pp.rb#356 - def inspect; end - - # source://hpricot//lib/hpricot/inspect.rb#20 - def pretty_print(q); end -end - -# source://hpricot//lib/hpricot/modules.rb#27 -module Hpricot::Leaf::Trav - include ::Hpricot::Traverse - - # @yield [_self] - # @yieldparam _self [Hpricot::Leaf::Trav] the object that the method was called on - # - # source://hpricot//lib/hpricot/traverse.rb#654 - def traverse_all_element; end - - # source://hpricot//lib/hpricot/traverse.rb#673 - def traverse_some_element(name_set); end - - # source://hpricot//lib/hpricot/traverse.rb#694 - def traverse_text_internal; end -end - -# source://hpricot//lib/hpricot/modules.rb#2 -class Hpricot::Name - include ::Hpricot -end - -# :stopdoc: -# -# source://hpricot//lib/hpricot/htmlinfo.rb#4 -Hpricot::NamedCharacters = T.let(T.unsafe(nil), Hash) - -# source://hpricot//lib/hpricot/htmlinfo.rb#57 -Hpricot::NamedCharactersPattern = T.let(T.unsafe(nil), Regexp) - -# :startdoc: -# -# source://hpricot//lib/hpricot/tag.rb#20 -module Hpricot::Node - include ::Hpricot - - # source://hpricot//lib/hpricot/tag.rb#33 - def altered!; end - - # source://hpricot//lib/hpricot/tag.rb#24 - def clear_raw; end - - # source://hpricot//lib/hpricot/tag.rb#21 - def html_quote(str); end - - # source://hpricot//lib/hpricot/tag.rb#25 - def if_output(opts); end - - # source://hpricot//lib/hpricot/tag.rb#36 - def inspect_tree(depth = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#32 - def pathname; end -end - -# source://hpricot//lib/hpricot/htmlinfo.rb#519 -Hpricot::OmittedAttrName = T.let(T.unsafe(nil), Hash) - -class Hpricot::ParseError < ::StandardError; end - -# source://hpricot//lib/hpricot/tag.rb#194 -class Hpricot::ProcIns - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Leaf - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - include ::Hpricot::ProcIns::Trav - - def content; end - def content=(_arg0); end - - # source://hpricot//lib/hpricot/tag.rb#197 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#195 - def pathname; end - - # source://hpricot//lib/hpricot/tag.rb#196 - def raw_string; end - - def target; end - def target=(_arg0); end -end - -# source://hpricot//lib/hpricot/modules.rb#34 -module Hpricot::ProcIns::Trav - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav -end - -Hpricot::ProcInsParse = T.let(T.unsafe(nil), Regexp) - -# source://hpricot//lib/hpricot/tags.rb#4 -Hpricot::SELF_CLOSING_TAGS = T.let(T.unsafe(nil), Array) - -# :stopdoc: -# -# source://hpricot//lib/hpricot/modules.rb#6 -module Hpricot::Tag - include ::Hpricot -end - -# source://hpricot//lib/hpricot/tag.rb#135 -class Hpricot::Text - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Leaf - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - include ::Hpricot::Text::Trav - - # @return [Text] a new instance of Text - # - # source://hpricot//lib/hpricot/tag.rb#136 - def initialize(content); end - - # source://hpricot//lib/hpricot/tag.rb#143 - def <<(str); end - - def clear_raw; end - def content; end - def content=(_arg0); end - - # source://hpricot//lib/hpricot/tag.rb#138 - def inner_text; end - - # source://hpricot//lib/hpricot/tag.rb#144 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#137 - def pathname; end - - # source://hpricot//lib/hpricot/inspect.rb#84 - def pretty_print(q); end - - def raw_string; end - - # source://hpricot//lib/hpricot/tag.rb#138 - def to_plain_text; end - - # source://hpricot//lib/hpricot/tag.rb#138 - def to_s; end -end - -# source://hpricot//lib/hpricot/modules.rb#31 -module Hpricot::Text::Trav - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - - # @yield [_self] - # @yieldparam _self [Hpricot::Text::Trav] the object that the method was called on - # - # source://hpricot//lib/hpricot/traverse.rb#699 - def traverse_text_internal; end -end - -# :startdoc: -# -# source://hpricot//lib/hpricot/modules.rb#25 -module Hpricot::Traverse - # Find the first matching node for the CSS or XPath - # +expr+ string. - # - # source://hpricot//lib/hpricot/traverse.rb#341 - def %(expr); end - - # Searches this node for all elements matching - # the CSS or XPath +expr+. Returns an Elements array - # containing the matching nodes. If +blk+ is given, it - # is used to iterate through the matching set. - # - # source://hpricot//lib/hpricot/traverse.rb#254 - def /(expr, &blk); end - - # Adds elements immediately after this element, contained in the +html+ string. - # - # source://hpricot//lib/hpricot/traverse.rb#121 - def after(html = T.unsafe(nil), &blk); end - - # Find the first matching node for the CSS or XPath - # +expr+ string. - # - # source://hpricot//lib/hpricot/traverse.rb#341 - def at(expr); end - - # Adds elements immediately before this element, contained in the +html+ string. - # - # source://hpricot//lib/hpricot/traverse.rb#126 - def before(html = T.unsafe(nil), &blk); end - - # Is this object a stranded end tag? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#21 - def bogusetag?; end - - # Find children of a given +tag_name+. - # - # ele.children_of_type('p') - # #=> [...array of paragraphs...] - # - # source://hpricot//lib/hpricot/traverse.rb#390 - def children_of_type(tag_name); end - - # source://hpricot//lib/hpricot/traverse.rb#203 - def clean_path(path); end - - # Is this object a comment? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#19 - def comment?; end - - # Builds a unique CSS string for this node, from the - # root of the document containing it. - # - # source://hpricot//lib/hpricot/traverse.rb#226 - def css_path; end - - # Is this object the enclosing HTML or XML document? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#7 - def doc?; end - - # Is this object a doctype tag? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#15 - def doctype?; end - - # Is this object an HTML or XML element? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#9 - def elem?; end - - # Find all nodes which follow the current one. - # - # source://hpricot//lib/hpricot/traverse.rb#114 - def following; end - - # source://hpricot//lib/hpricot/traverse.rb#138 - def get_subnode(*indexes); end - - # Builds an HTML string from the contents of this node. - # - # source://hpricot//lib/hpricot/traverse.rb#168 - def html(inner = T.unsafe(nil), &blk); end - - # source://hpricot//lib/hpricot/traverse.rb#47 - def index(name); end - - # Builds an HTML string from the contents of this node. - # - # source://hpricot//lib/hpricot/traverse.rb#168 - def innerHTML(inner = T.unsafe(nil), &blk); end - - # Inserts new contents into the current node, based on - # the HTML contained in string +inner+. - # - # source://hpricot//lib/hpricot/traverse.rb#191 - def innerHTML=(inner); end - - # Builds a string from the text contained in this node. All - # HTML elements are removed. - # - # source://hpricot//lib/hpricot/traverse.rb#158 - def innerText; end - - # Builds an HTML string from the contents of this node. - # - # source://hpricot//lib/hpricot/traverse.rb#168 - def inner_html(inner = T.unsafe(nil), &blk); end - - # Inserts new contents into the current node, based on - # the HTML contained in string +inner+. - # - # source://hpricot//lib/hpricot/traverse.rb#191 - def inner_html=(inner); end - - # Builds a string from the text contained in this node. All - # HTML elements are removed. - # - # source://hpricot//lib/hpricot/traverse.rb#158 - def inner_text; end - - # Parses an HTML string, making an HTML fragment based on - # the options used to create the container document. - # - # source://hpricot//lib/hpricot/traverse.rb#25 - def make(input = T.unsafe(nil), &blk); end - - # Returns the node neighboring this node to the south: just below it. - # This method includes text nodes and comments and such. - # - # source://hpricot//lib/hpricot/traverse.rb#91 - def next; end - - # Returns the node neighboring this node to the south: just below it. - # This method includes text nodes and comments and such. - # - # source://hpricot//lib/hpricot/traverse.rb#91 - def next_node; end - - # source://hpricot//lib/hpricot/traverse.rb#242 - def node_position; end - - # Puts together an array of neighboring nodes based on their proximity - # to this node. So, for example, to get the next node, you could use - # nodes_at(1). Or, to get the previous node, use nodes_at(1). - # - # This method also accepts ranges and sets of numbers. - # - # ele.nodes_at(-3..-1, 1..3) # gets three nodes before and three after - # ele.nodes_at(1, 5, 7) # gets three nodes at offsets below the current node - # ele.nodes_at(0, 5..6) # the current node and two others - # - # source://hpricot//lib/hpricot/traverse.rb#67 - def nodes_at(*pos); end - - # source://hpricot//lib/hpricot/traverse.rb#246 - def position; end - - # Find all preceding nodes. - # - # source://hpricot//lib/hpricot/traverse.rb#107 - def preceding; end - - # Returns to node neighboring this node to the north: just above it. - # This method includes text nodes and comments and such. - # - # source://hpricot//lib/hpricot/traverse.rb#99 - def previous; end - - # Returns to node neighboring this node to the north: just above it. - # This method includes text nodes and comments and such. - # - # source://hpricot//lib/hpricot/traverse.rb#99 - def previous_node; end - - # Is this object an XML processing instruction? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#17 - def procins?; end - - # Searches this node for all elements matching - # the CSS or XPath +expr+. Returns an Elements array - # containing the matching nodes. If +blk+ is given, it - # is used to iterate through the matching set. - # - # source://hpricot//lib/hpricot/traverse.rb#254 - def search(expr, &blk); end - - # Replace this element and its contents with the nodes contained - # in the +html+ string. - # - # source://hpricot//lib/hpricot/traverse.rb#133 - def swap(html = T.unsafe(nil), &blk); end - - # Is this object an HTML text node? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#11 - def text?; end - - # Builds an HTML string from this node and its contents. - # If you need to write to a stream, try calling output(io) - # as a method on this object. - # - # source://hpricot//lib/hpricot/traverse.rb#36 - def to_html; end - - # Attempts to preserve the original HTML of the document, only - # outputing new tags for elements which have changed. - # - # source://hpricot//lib/hpricot/traverse.rb#43 - def to_original_html; end - - # Builds a string from the text contained in this node. All - # HTML elements are removed. - # - # source://hpricot//lib/hpricot/traverse.rb#148 - def to_plain_text; end - - # Builds an HTML string from this node and its contents. - # If you need to write to a stream, try calling output(io) - # as a method on this object. - # - # source://hpricot//lib/hpricot/traverse.rb#36 - def to_s; end - - # +traverse_element+ traverses elements in the tree. - # It yields elements in depth first order. - # - # If _names_ are empty, it yields all elements. - # If non-empty _names_ are given, it should be list of universal names. - # - # A nested element is yielded in depth first order as follows. - # - # t = Hpricot('') - # t.traverse_element("a", "c") {|e| p e} - # # => - # {elem {elem {emptyelem } } {emptyelem } } - # {emptyelem } - # {emptyelem } - # - # Universal names are specified as follows. - # - # t = Hpricot(<<'End') - # - # - # - # - # End - # t.traverse_element("{http://www.w3.org/1999/xhtml}meta") {|e| p e} - # # => - # {emptyelem <{http://www.w3.org/1999/xhtml}meta name="robots" content="index,nofollow">} - # {emptyelem <{http://www.w3.org/1999/xhtml}meta name="author" content="Who am I?">} - # - # source://hpricot//lib/hpricot/traverse.rb#374 - def traverse_element(*names, &block); end - - # +traverse_text+ traverses texts in the tree - # - # source://hpricot//lib/hpricot/traverse.rb#680 - def traverse_text(&block); end - - # Is this object an XML declaration? - # - # @return [Boolean] - # - # source://hpricot//lib/hpricot/traverse.rb#13 - def xmldecl?; end - - # Builds a unique XPath string for this node, from the - # root of the document containing it. - # - # source://hpricot//lib/hpricot/traverse.rb#209 - def xpath; end - - private - - # source://hpricot//lib/hpricot/traverse.rb#196 - def reparent(nodes); end - - class << self - # source://hpricot//lib/hpricot/elements.rb#375 - def filter(tok, &blk); end - end -end - -# All the tags and attributes from XHTML 1.0 Strict -# -# source://hpricot//lib/hpricot/tags.rb#17 -class Hpricot::XHTMLStrict - class << self - # Returns the value of attribute doctype. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def doctype; end - - # Sets the attribute doctype - # - # @param value the value to set the attribute doctype to. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def doctype=(_arg0); end - - # Returns the value of attribute forms. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def forms; end - - # Sets the attribute forms - # - # @param value the value to set the attribute forms to. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def forms=(_arg0); end - - # Returns the value of attribute self_closing. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def self_closing; end - - # Sets the attribute self_closing - # - # @param value the value to set the attribute self_closing to. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def self_closing=(_arg0); end - - # Returns the value of attribute tags. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def tags; end - - # Sets the attribute tags - # - # @param value the value to set the attribute tags to. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def tags=(_arg0); end - - # Returns the value of attribute tagset. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def tagset; end - - # Sets the attribute tagset - # - # @param value the value to set the attribute tagset to. - # - # source://hpricot//lib/hpricot/tags.rb#19 - def tagset=(_arg0); end - end -end - -# Additional tags found in XHTML 1.0 Transitional -# -# source://hpricot//lib/hpricot/tags.rb#108 -class Hpricot::XHTMLTransitional - class << self - # Returns the value of attribute doctype. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def doctype; end - - # Sets the attribute doctype - # - # @param value the value to set the attribute doctype to. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def doctype=(_arg0); end - - # Returns the value of attribute forms. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def forms; end - - # Sets the attribute forms - # - # @param value the value to set the attribute forms to. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def forms=(_arg0); end - - # Returns the value of attribute self_closing. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def self_closing; end - - # Sets the attribute self_closing - # - # @param value the value to set the attribute self_closing to. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def self_closing=(_arg0); end - - # Returns the value of attribute tags. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def tags; end - - # Sets the attribute tags - # - # @param value the value to set the attribute tags to. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def tags=(_arg0); end - - # Returns the value of attribute tagset. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def tagset; end - - # Sets the attribute tagset - # - # @param value the value to set the attribute tagset to. - # - # source://hpricot//lib/hpricot/tags.rb#110 - def tagset=(_arg0); end - end -end - -# source://hpricot//lib/hpricot/tag.rb#166 -class Hpricot::XMLDecl - include ::Hpricot - include ::Hpricot::Node - include ::Hpricot::Leaf - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav - include ::Hpricot::XMLDecl::Trav - - def clear_raw; end - def encoding; end - def encoding=(_arg0); end - - # source://hpricot//lib/hpricot/tag.rb#168 - def output(out, opts = T.unsafe(nil)); end - - # source://hpricot//lib/hpricot/tag.rb#167 - def pathname; end - - def raw_string; end - def standalone; end - def standalone=(_arg0); end - def version; end - def version=(_arg0); end -end - -# source://hpricot//lib/hpricot/modules.rb#32 -module Hpricot::XMLDecl::Trav - include ::Hpricot::Traverse - include ::Hpricot::Leaf::Trav -end - -# Since Ruby is very dynamic, methods added to the ancestors of -# BlankSlate after BlankSlate is defined will show up in the -# list of available BlankSlate methods. We handle this by defining a -# hook in the Object and Kernel classes that will hide any defined -# -# source://hpricot//lib/hpricot/blankslate.rb#37 -module Kernel - class << self - # Detect method additions to Kernel and remove them in the - # BlankSlate class. - # - # source://hpricot//lib/hpricot/blankslate.rb#43 - def method_added(name); end - end -end - -# source://hpricot//lib/hpricot/blankslate.rb#51 -class Object < ::BasicObject - include ::Kernel - include ::PP::ObjectMixin - - private - - # source://hpricot//lib/hpricot/parse.rb#3 - def Hpricot(input = T.unsafe(nil), opts = T.unsafe(nil), &blk); end - - class << self - # Detect method additions to Object and remove them in the - # BlankSlate class. - # - # source://hpricot//lib/hpricot/blankslate.rb#57 - def method_added(name); end - end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi b/Library/Homebrew/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi deleted file mode 100644 index f6b1d8ed67..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +++ /dev/null @@ -1,14237 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `language_server-protocol` gem. -# Please instead update this file by running `bin/tapioca gem language_server-protocol`. - -# source://language_server-protocol//lib/language_server/protocol/version.rb#1 -module LanguageServer; end - -# source://language_server-protocol//lib/language_server/protocol/version.rb#2 -module LanguageServer::Protocol; end - -# source://language_server-protocol//lib/language_server/protocol/constant.rb#3 -module LanguageServer::Protocol::Constant; end - -# The kind of a code action. -# -# Kinds are a hierarchical list of identifiers separated by `.`, -# e.g. `"refactor.extract.function"`. -# -# The set of kinds is open and client needs to announce the kinds it supports -# to the server during initialization. -# A set of predefined code action kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#14 -module LanguageServer::Protocol::Constant::CodeActionKind; end - -# Empty kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#18 -LanguageServer::Protocol::Constant::CodeActionKind::EMPTY = T.let(T.unsafe(nil), String) - -# Base kind for quickfix actions: 'quickfix'. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#22 -LanguageServer::Protocol::Constant::CodeActionKind::QUICK_FIX = T.let(T.unsafe(nil), String) - -# Base kind for refactoring actions: 'refactor'. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#26 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR = T.let(T.unsafe(nil), String) - -# Base kind for refactoring extraction actions: 'refactor.extract'. -# -# Example extract actions: -# -# - Extract method -# - Extract function -# - Extract variable -# - Extract interface from class -# - ... -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#38 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_EXTRACT = T.let(T.unsafe(nil), String) - -# Base kind for refactoring inline actions: 'refactor.inline'. -# -# Example inline actions: -# -# - Inline function -# - Inline variable -# - Inline constant -# - ... -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#49 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_INLINE = T.let(T.unsafe(nil), String) - -# Base kind for refactoring rewrite actions: 'refactor.rewrite'. -# -# Example rewrite actions: -# -# - Convert JavaScript function to class -# - Add or remove parameter -# - Encapsulate field -# - Make method static -# - Move method to base class -# - ... -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#62 -LanguageServer::Protocol::Constant::CodeActionKind::REFACTOR_REWRITE = T.let(T.unsafe(nil), String) - -# Base kind for source actions: `source`. -# -# Source code actions apply to the entire file. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#68 -LanguageServer::Protocol::Constant::CodeActionKind::SOURCE = T.let(T.unsafe(nil), String) - -# Base kind for a 'fix all' source action: `source.fixAll`. -# -# 'Fix all' actions automatically fix errors that have a clear fix that -# do not require user input. They should not suppress errors or perform -# unsafe fixes such as generating new types or classes. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#81 -LanguageServer::Protocol::Constant::CodeActionKind::SOURCE_FIX_ALL = T.let(T.unsafe(nil), String) - -# Base kind for an organize imports source action: -# `source.organizeImports`. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_kind.rb#73 -LanguageServer::Protocol::Constant::CodeActionKind::SOURCE_ORGANIZE_IMPORTS = T.let(T.unsafe(nil), String) - -# The reason why code actions were requested. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#7 -module LanguageServer::Protocol::Constant::CodeActionTriggerKind; end - -# Code actions were requested automatically. -# -# This typically happens when current selection in a file changes, but can -# also be triggered when file content changes. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#18 -LanguageServer::Protocol::Constant::CodeActionTriggerKind::AUTOMATIC = T.let(T.unsafe(nil), Integer) - -# Code actions were explicitly requested by the user or by an extension. -# -# source://language_server-protocol//lib/language_server/protocol/constant/code_action_trigger_kind.rb#11 -LanguageServer::Protocol::Constant::CodeActionTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) - -# The kind of a completion entry. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#7 -module LanguageServer::Protocol::Constant::CompletionItemKind; end - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#14 -LanguageServer::Protocol::Constant::CompletionItemKind::CLASS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#23 -LanguageServer::Protocol::Constant::CompletionItemKind::COLOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#28 -LanguageServer::Protocol::Constant::CompletionItemKind::CONSTANT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#11 -LanguageServer::Protocol::Constant::CompletionItemKind::CONSTRUCTOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#20 -LanguageServer::Protocol::Constant::CompletionItemKind::ENUM = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#27 -LanguageServer::Protocol::Constant::CompletionItemKind::ENUM_MEMBER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#30 -LanguageServer::Protocol::Constant::CompletionItemKind::EVENT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#12 -LanguageServer::Protocol::Constant::CompletionItemKind::FIELD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#24 -LanguageServer::Protocol::Constant::CompletionItemKind::FILE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#26 -LanguageServer::Protocol::Constant::CompletionItemKind::FOLDER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#10 -LanguageServer::Protocol::Constant::CompletionItemKind::FUNCTION = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#15 -LanguageServer::Protocol::Constant::CompletionItemKind::INTERFACE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#21 -LanguageServer::Protocol::Constant::CompletionItemKind::KEYWORD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#9 -LanguageServer::Protocol::Constant::CompletionItemKind::METHOD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#16 -LanguageServer::Protocol::Constant::CompletionItemKind::MODULE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#31 -LanguageServer::Protocol::Constant::CompletionItemKind::OPERATOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#17 -LanguageServer::Protocol::Constant::CompletionItemKind::PROPERTY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#25 -LanguageServer::Protocol::Constant::CompletionItemKind::REFERENCE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#22 -LanguageServer::Protocol::Constant::CompletionItemKind::SNIPPET = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#29 -LanguageServer::Protocol::Constant::CompletionItemKind::STRUCT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#8 -LanguageServer::Protocol::Constant::CompletionItemKind::TEXT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#32 -LanguageServer::Protocol::Constant::CompletionItemKind::TYPE_PARAMETER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#18 -LanguageServer::Protocol::Constant::CompletionItemKind::UNIT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#19 -LanguageServer::Protocol::Constant::CompletionItemKind::VALUE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_kind.rb#13 -LanguageServer::Protocol::Constant::CompletionItemKind::VARIABLE = T.let(T.unsafe(nil), Integer) - -# Completion item tags are extra annotations that tweak the rendering of a -# completion item. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_tag.rb#8 -module LanguageServer::Protocol::Constant::CompletionItemTag; end - -# Render a completion as obsolete, usually using a strike-out. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_item_tag.rb#12 -LanguageServer::Protocol::Constant::CompletionItemTag::DEPRECATED = T.let(T.unsafe(nil), Integer) - -# How a completion was triggered -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#7 -module LanguageServer::Protocol::Constant::CompletionTriggerKind; end - -# Completion was triggered by typing an identifier (24x7 code -# complete), manual invocation (e.g Ctrl+Space) or via API. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#12 -LanguageServer::Protocol::Constant::CompletionTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) - -# Completion was triggered by a trigger character specified by -# the `triggerCharacters` properties of the -# `CompletionRegistrationOptions`. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#18 -LanguageServer::Protocol::Constant::CompletionTriggerKind::TRIGGER_CHARACTER = T.let(T.unsafe(nil), Integer) - -# Completion was re-triggered as the current completion list is incomplete. -# -# source://language_server-protocol//lib/language_server/protocol/constant/completion_trigger_kind.rb#22 -LanguageServer::Protocol::Constant::CompletionTriggerKind::TRIGGER_FOR_INCOMPLETE_COMPLETIONS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#4 -module LanguageServer::Protocol::Constant::DiagnosticSeverity; end - -# Reports an error. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#8 -LanguageServer::Protocol::Constant::DiagnosticSeverity::ERROR = T.let(T.unsafe(nil), Integer) - -# Reports a hint. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#20 -LanguageServer::Protocol::Constant::DiagnosticSeverity::HINT = T.let(T.unsafe(nil), Integer) - -# Reports an information. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#16 -LanguageServer::Protocol::Constant::DiagnosticSeverity::INFORMATION = T.let(T.unsafe(nil), Integer) - -# Reports a warning. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_severity.rb#12 -LanguageServer::Protocol::Constant::DiagnosticSeverity::WARNING = T.let(T.unsafe(nil), Integer) - -# The diagnostic tags. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#7 -module LanguageServer::Protocol::Constant::DiagnosticTag; end - -# Deprecated or obsolete code. -# -# Clients are allowed to rendered diagnostics with this tag strike through. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#20 -LanguageServer::Protocol::Constant::DiagnosticTag::DEPRECATED = T.let(T.unsafe(nil), Integer) - -# Unused or unnecessary code. -# -# Clients are allowed to render diagnostics with this tag faded out -# instead of having an error squiggle. -# -# source://language_server-protocol//lib/language_server/protocol/constant/diagnostic_tag.rb#14 -LanguageServer::Protocol::Constant::DiagnosticTag::UNNECESSARY = T.let(T.unsafe(nil), Integer) - -# The document diagnostic report kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#7 -module LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind; end - -# A diagnostic report with a full -# set of problems. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#12 -LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind::FULL = T.let(T.unsafe(nil), String) - -# A report indicating that the last -# returned report is still accurate. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_diagnostic_report_kind.rb#17 -LanguageServer::Protocol::Constant::DocumentDiagnosticReportKind::UNCHANGED = T.let(T.unsafe(nil), String) - -# A document highlight kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#7 -module LanguageServer::Protocol::Constant::DocumentHighlightKind; end - -# Read-access of a symbol, like reading a variable. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#15 -LanguageServer::Protocol::Constant::DocumentHighlightKind::READ = T.let(T.unsafe(nil), Integer) - -# A textual occurrence. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#11 -LanguageServer::Protocol::Constant::DocumentHighlightKind::TEXT = T.let(T.unsafe(nil), Integer) - -# Write-access of a symbol, like writing to a variable. -# -# source://language_server-protocol//lib/language_server/protocol/constant/document_highlight_kind.rb#19 -LanguageServer::Protocol::Constant::DocumentHighlightKind::WRITE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#4 -module LanguageServer::Protocol::Constant::ErrorCodes; end - -# The server detected that the content of a document got -# modified outside normal conditions. A server should -# NOT send this error code if it detects a content change -# in it unprocessed messages. The result even computed -# on an older state might still be useful for the client. -# -# If a client decides that a result is not of any use anymore -# the client should cancel the request. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#59 -LanguageServer::Protocol::Constant::ErrorCodes::CONTENT_MODIFIED = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#9 -LanguageServer::Protocol::Constant::ErrorCodes::INTERNAL_ERROR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#8 -LanguageServer::Protocol::Constant::ErrorCodes::INVALID_PARAMS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#6 -LanguageServer::Protocol::Constant::ErrorCodes::INVALID_REQUEST = T.let(T.unsafe(nil), Integer) - -# This is the end range of JSON-RPC reserved error codes. -# It doesn't denote a real error code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#29 -LanguageServer::Protocol::Constant::ErrorCodes::JSONRPC_RESERVED_ERROR_RANGE_END = T.let(T.unsafe(nil), Integer) - -# This is the start range of JSON-RPC reserved error codes. -# It doesn't denote a real error code. No LSP error codes should -# be defined between the start and end range. For backwards -# compatibility the `ServerNotInitialized` and the `UnknownErrorCode` -# are left in the range. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#17 -LanguageServer::Protocol::Constant::ErrorCodes::JSONRPC_RESERVED_ERROR_RANGE_START = T.let(T.unsafe(nil), Integer) - -# This is the end range of LSP reserved error codes. -# It doesn't denote a real error code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#69 -LanguageServer::Protocol::Constant::ErrorCodes::LSP_RESERVED_ERROR_RANGE_END = T.let(T.unsafe(nil), Integer) - -# This is the start range of LSP reserved error codes. -# It doesn't denote a real error code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#35 -LanguageServer::Protocol::Constant::ErrorCodes::LSP_RESERVED_ERROR_RANGE_START = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#7 -LanguageServer::Protocol::Constant::ErrorCodes::METHOD_NOT_FOUND = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#5 -LanguageServer::Protocol::Constant::ErrorCodes::PARSE_ERROR = T.let(T.unsafe(nil), Integer) - -# The client has canceled a request and a server as detected -# the cancel. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#64 -LanguageServer::Protocol::Constant::ErrorCodes::REQUEST_CANCELLED = T.let(T.unsafe(nil), Integer) - -# A request failed but it was syntactically correct, e.g the -# method name was known and the parameters were valid. The error -# message should contain human readable information about why -# the request failed. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#42 -LanguageServer::Protocol::Constant::ErrorCodes::REQUEST_FAILED = T.let(T.unsafe(nil), Integer) - -# The server cancelled the request. This error code should -# only be used for requests that explicitly support being -# server cancellable. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#48 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_CANCELLED = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#30 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_ERROR_END = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#18 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_ERROR_START = T.let(T.unsafe(nil), Integer) - -# Error code indicating that a server received a notification or -# request before the server has received the `initialize` request. -# -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#23 -LanguageServer::Protocol::Constant::ErrorCodes::SERVER_NOT_INITIALIZED = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/error_codes.rb#24 -LanguageServer::Protocol::Constant::ErrorCodes::UNKNOWN_ERROR_CODE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#4 -module LanguageServer::Protocol::Constant::FailureHandlingKind; end - -# Applying the workspace change is simply aborted if one of the changes -# provided fails. All operations executed before the failing operation -# stay executed. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#10 -LanguageServer::Protocol::Constant::FailureHandlingKind::ABORT = T.let(T.unsafe(nil), String) - -# If the workspace edit contains only textual file changes they are -# executed transactional. If resource changes (create, rename or delete -# file) are part of the change the failure handling strategy is abort. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#21 -LanguageServer::Protocol::Constant::FailureHandlingKind::TEXT_ONLY_TRANSACTIONAL = T.let(T.unsafe(nil), String) - -# All operations are executed transactional. That means they either all -# succeed or no changes at all are applied to the workspace. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#15 -LanguageServer::Protocol::Constant::FailureHandlingKind::TRANSACTIONAL = T.let(T.unsafe(nil), String) - -# The client tries to undo the operations already executed. But there is no -# guarantee that this is succeeding. -# -# source://language_server-protocol//lib/language_server/protocol/constant/failure_handling_kind.rb#26 -LanguageServer::Protocol::Constant::FailureHandlingKind::UNDO = T.let(T.unsafe(nil), String) - -# The file event type. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#7 -module LanguageServer::Protocol::Constant::FileChangeType; end - -# The file got changed. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#15 -LanguageServer::Protocol::Constant::FileChangeType::CHANGED = T.let(T.unsafe(nil), Integer) - -# The file got created. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#11 -LanguageServer::Protocol::Constant::FileChangeType::CREATED = T.let(T.unsafe(nil), Integer) - -# The file got deleted. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_change_type.rb#19 -LanguageServer::Protocol::Constant::FileChangeType::DELETED = T.let(T.unsafe(nil), Integer) - -# A pattern kind describing if a glob pattern matches a file a folder or -# both. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#8 -module LanguageServer::Protocol::Constant::FileOperationPatternKind; end - -# The pattern matches a file only. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#12 -LanguageServer::Protocol::Constant::FileOperationPatternKind::FILE = T.let(T.unsafe(nil), String) - -# The pattern matches a folder only. -# -# source://language_server-protocol//lib/language_server/protocol/constant/file_operation_pattern_kind.rb#16 -LanguageServer::Protocol::Constant::FileOperationPatternKind::FOLDER = T.let(T.unsafe(nil), String) - -# A set of predefined range kinds. -# The type is a string since the value set is extensible -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#8 -module LanguageServer::Protocol::Constant::FoldingRangeKind; end - -# Folding range for a comment -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#12 -LanguageServer::Protocol::Constant::FoldingRangeKind::COMMENT = T.let(T.unsafe(nil), String) - -# Folding range for imports or includes -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#16 -LanguageServer::Protocol::Constant::FoldingRangeKind::IMPORTS = T.let(T.unsafe(nil), String) - -# Folding range for a region (e.g. `#region`) -# -# source://language_server-protocol//lib/language_server/protocol/constant/folding_range_kind.rb#20 -LanguageServer::Protocol::Constant::FoldingRangeKind::REGION = T.let(T.unsafe(nil), String) - -# Known error codes for an `InitializeErrorCodes`; -# -# source://language_server-protocol//lib/language_server/protocol/constant/initialize_error_codes.rb#7 -module LanguageServer::Protocol::Constant::InitializeErrorCodes; end - -# If the protocol version provided by the client can't be handled by -# the server. -# -# source://language_server-protocol//lib/language_server/protocol/constant/initialize_error_codes.rb#12 -LanguageServer::Protocol::Constant::InitializeErrorCodes::UNKNOWN_PROTOCOL_VERSION = T.let(T.unsafe(nil), Integer) - -# Inlay hint kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#7 -module LanguageServer::Protocol::Constant::InlayHintKind; end - -# An inlay hint that is for a parameter. -# -# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#15 -LanguageServer::Protocol::Constant::InlayHintKind::PARAMETER = T.let(T.unsafe(nil), Integer) - -# An inlay hint that for a type annotation. -# -# source://language_server-protocol//lib/language_server/protocol/constant/inlay_hint_kind.rb#11 -LanguageServer::Protocol::Constant::InlayHintKind::TYPE = T.let(T.unsafe(nil), Integer) - -# Defines whether the insert text in a completion item should be interpreted as -# plain text or a snippet. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#8 -module LanguageServer::Protocol::Constant::InsertTextFormat; end - -# The primary text to be inserted is treated as a plain string. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#12 -LanguageServer::Protocol::Constant::InsertTextFormat::PLAIN_TEXT = T.let(T.unsafe(nil), Integer) - -# The primary text to be inserted is treated as a snippet. -# -# A snippet can define tab stops and placeholders with `$1`, `$2` -# and `${3:foo}`. `$0` defines the final tab stop, it defaults to -# the end of the snippet. Placeholders with equal identifiers are linked, -# that is typing in one will update others too. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_format.rb#21 -LanguageServer::Protocol::Constant::InsertTextFormat::SNIPPET = T.let(T.unsafe(nil), Integer) - -# How whitespace and indentation is handled during completion -# item insertion. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#8 -module LanguageServer::Protocol::Constant::InsertTextMode; end - -# The editor adjusts leading whitespace of new lines so that -# they match the indentation up to the cursor of the line for -# which the item is accepted. -# -# Consider a line like this: <2tabs><3tabs>foo. Accepting a -# multi line completion item is indented using 2 tabs and all -# following lines inserted will be indented using 2 tabs as well. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#26 -LanguageServer::Protocol::Constant::InsertTextMode::ADJUST_INDENTATION = T.let(T.unsafe(nil), Integer) - -# The insertion or replace strings is taken as it is. If the -# value is multi line the lines below the cursor will be -# inserted using the indentation defined in the string value. -# The client will not apply any kind of adjustments to the -# string. -# -# source://language_server-protocol//lib/language_server/protocol/constant/insert_text_mode.rb#16 -LanguageServer::Protocol::Constant::InsertTextMode::AS_IS = T.let(T.unsafe(nil), Integer) - -# Describes the content type that a client supports in various -# result literals like `Hover`, `ParameterInfo` or `CompletionItem`. -# -# Please note that `MarkupKinds` must not start with a `$`. This kinds -# are reserved for internal usage. -# -# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#11 -module LanguageServer::Protocol::Constant::MarkupKind; end - -# Markdown is supported as a content format -# -# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#19 -LanguageServer::Protocol::Constant::MarkupKind::MARKDOWN = T.let(T.unsafe(nil), String) - -# Plain text is supported as a content format -# -# source://language_server-protocol//lib/language_server/protocol/constant/markup_kind.rb#15 -LanguageServer::Protocol::Constant::MarkupKind::PLAIN_TEXT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#4 -module LanguageServer::Protocol::Constant::MessageType; end - -# An error message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#8 -LanguageServer::Protocol::Constant::MessageType::ERROR = T.let(T.unsafe(nil), Integer) - -# An information message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#16 -LanguageServer::Protocol::Constant::MessageType::INFO = T.let(T.unsafe(nil), Integer) - -# A log message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#20 -LanguageServer::Protocol::Constant::MessageType::LOG = T.let(T.unsafe(nil), Integer) - -# A warning message. -# -# source://language_server-protocol//lib/language_server/protocol/constant/message_type.rb#12 -LanguageServer::Protocol::Constant::MessageType::WARNING = T.let(T.unsafe(nil), Integer) - -# The moniker kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#7 -module LanguageServer::Protocol::Constant::MonikerKind; end - -# The moniker represents a symbol that is exported from a project -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#15 -LanguageServer::Protocol::Constant::MonikerKind::EXPORT = T.let(T.unsafe(nil), String) - -# The moniker represent a symbol that is imported into a project -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#11 -LanguageServer::Protocol::Constant::MonikerKind::IMPORT = T.let(T.unsafe(nil), String) - -# The moniker represents a symbol that is local to a project (e.g. a local -# variable of a function, a class not visible outside the project, ...) -# -# source://language_server-protocol//lib/language_server/protocol/constant/moniker_kind.rb#20 -LanguageServer::Protocol::Constant::MonikerKind::LOCAL = T.let(T.unsafe(nil), String) - -# A notebook cell kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#7 -module LanguageServer::Protocol::Constant::NotebookCellKind; end - -# A code-cell is source code. -# -# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#15 -LanguageServer::Protocol::Constant::NotebookCellKind::CODE = T.let(T.unsafe(nil), Integer) - -# A markup-cell is formatted source that is used for display. -# -# source://language_server-protocol//lib/language_server/protocol/constant/notebook_cell_kind.rb#11 -LanguageServer::Protocol::Constant::NotebookCellKind::MARKUP = T.let(T.unsafe(nil), Integer) - -# A type indicating how positions are encoded, -# specifically what column offsets mean. -# A set of predefined position encoding kinds. -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#9 -module LanguageServer::Protocol::Constant::PositionEncodingKind; end - -# Character offsets count UTF-16 code units. -# -# This is the default and must always be supported -# by servers -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#20 -LanguageServer::Protocol::Constant::PositionEncodingKind::UTF16 = T.let(T.unsafe(nil), String) - -# Character offsets count UTF-32 code units. -# -# Implementation note: these are the same as Unicode code points, -# so this `PositionEncodingKind` may also be used for an -# encoding-agnostic representation of character offsets. -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#28 -LanguageServer::Protocol::Constant::PositionEncodingKind::UTF32 = T.let(T.unsafe(nil), String) - -# Character offsets count UTF-8 code units (e.g bytes). -# -# source://language_server-protocol//lib/language_server/protocol/constant/position_encoding_kind.rb#13 -LanguageServer::Protocol::Constant::PositionEncodingKind::UTF8 = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/prepare_support_default_behavior.rb#4 -module LanguageServer::Protocol::Constant::PrepareSupportDefaultBehavior; end - -# The client's default behavior is to select the identifier -# according to the language's syntax rule. -# -# source://language_server-protocol//lib/language_server/protocol/constant/prepare_support_default_behavior.rb#9 -LanguageServer::Protocol::Constant::PrepareSupportDefaultBehavior::IDENTIFIER = T.let(T.unsafe(nil), Integer) - -# The kind of resource operations supported by the client. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#7 -module LanguageServer::Protocol::Constant::ResourceOperationKind; end - -# Supports creating new files and folders. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#11 -LanguageServer::Protocol::Constant::ResourceOperationKind::CREATE = T.let(T.unsafe(nil), String) - -# Supports deleting existing files and folders. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#19 -LanguageServer::Protocol::Constant::ResourceOperationKind::DELETE = T.let(T.unsafe(nil), String) - -# Supports renaming existing files and folders. -# -# source://language_server-protocol//lib/language_server/protocol/constant/resource_operation_kind.rb#15 -LanguageServer::Protocol::Constant::ResourceOperationKind::RENAME = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#4 -module LanguageServer::Protocol::Constant::SemanticTokenModifiers; end - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#10 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::ABSTRACT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#11 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::ASYNC = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#5 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DECLARATION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#14 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEFAULT_LIBRARY = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#6 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEFINITION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#9 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DEPRECATED = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#13 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::DOCUMENTATION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#12 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::MODIFICATION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#7 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::READONLY = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_modifiers.rb#8 -LanguageServer::Protocol::Constant::SemanticTokenModifiers::STATIC = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#4 -module LanguageServer::Protocol::Constant::SemanticTokenTypes; end - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#11 -LanguageServer::Protocol::Constant::SemanticTokenTypes::CLASS = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#26 -LanguageServer::Protocol::Constant::SemanticTokenTypes::COMMENT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#31 -LanguageServer::Protocol::Constant::SemanticTokenTypes::DECORATOR = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#12 -LanguageServer::Protocol::Constant::SemanticTokenTypes::ENUM = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#19 -LanguageServer::Protocol::Constant::SemanticTokenTypes::ENUM_MEMBER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#20 -LanguageServer::Protocol::Constant::SemanticTokenTypes::EVENT = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#21 -LanguageServer::Protocol::Constant::SemanticTokenTypes::FUNCTION = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#13 -LanguageServer::Protocol::Constant::SemanticTokenTypes::INTERFACE = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#24 -LanguageServer::Protocol::Constant::SemanticTokenTypes::KEYWORD = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#23 -LanguageServer::Protocol::Constant::SemanticTokenTypes::MACRO = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#22 -LanguageServer::Protocol::Constant::SemanticTokenTypes::METHOD = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#25 -LanguageServer::Protocol::Constant::SemanticTokenTypes::MODIFIER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#5 -LanguageServer::Protocol::Constant::SemanticTokenTypes::NAMESPACE = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#28 -LanguageServer::Protocol::Constant::SemanticTokenTypes::NUMBER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#30 -LanguageServer::Protocol::Constant::SemanticTokenTypes::OPERATOR = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#16 -LanguageServer::Protocol::Constant::SemanticTokenTypes::PARAMETER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#18 -LanguageServer::Protocol::Constant::SemanticTokenTypes::PROPERTY = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#29 -LanguageServer::Protocol::Constant::SemanticTokenTypes::REGEXP = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#27 -LanguageServer::Protocol::Constant::SemanticTokenTypes::STRING = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#14 -LanguageServer::Protocol::Constant::SemanticTokenTypes::STRUCT = T.let(T.unsafe(nil), String) - -# Represents a generic type. Acts as a fallback for types which -# can't be mapped to a specific type like class or enum. -# -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#10 -LanguageServer::Protocol::Constant::SemanticTokenTypes::TYPE = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#15 -LanguageServer::Protocol::Constant::SemanticTokenTypes::TYPE_PARAMETER = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/semantic_token_types.rb#17 -LanguageServer::Protocol::Constant::SemanticTokenTypes::VARIABLE = T.let(T.unsafe(nil), String) - -# How a signature help was triggered. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#7 -module LanguageServer::Protocol::Constant::SignatureHelpTriggerKind; end - -# Signature help was triggered by the cursor moving or by the document -# content changing. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#20 -LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::CONTENT_CHANGE = T.let(T.unsafe(nil), Integer) - -# Signature help was invoked manually by the user or by a command. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#11 -LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::INVOKED = T.let(T.unsafe(nil), Integer) - -# Signature help was triggered by a trigger character. -# -# source://language_server-protocol//lib/language_server/protocol/constant/signature_help_trigger_kind.rb#15 -LanguageServer::Protocol::Constant::SignatureHelpTriggerKind::TRIGGER_CHARACTER = T.let(T.unsafe(nil), Integer) - -# A symbol kind. -# -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#7 -module LanguageServer::Protocol::Constant::SymbolKind; end - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#25 -LanguageServer::Protocol::Constant::SymbolKind::ARRAY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#24 -LanguageServer::Protocol::Constant::SymbolKind::BOOLEAN = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#12 -LanguageServer::Protocol::Constant::SymbolKind::CLASS = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#21 -LanguageServer::Protocol::Constant::SymbolKind::CONSTANT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#16 -LanguageServer::Protocol::Constant::SymbolKind::CONSTRUCTOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#17 -LanguageServer::Protocol::Constant::SymbolKind::ENUM = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#29 -LanguageServer::Protocol::Constant::SymbolKind::ENUM_MEMBER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#31 -LanguageServer::Protocol::Constant::SymbolKind::EVENT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#15 -LanguageServer::Protocol::Constant::SymbolKind::FIELD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#8 -LanguageServer::Protocol::Constant::SymbolKind::FILE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#19 -LanguageServer::Protocol::Constant::SymbolKind::FUNCTION = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#18 -LanguageServer::Protocol::Constant::SymbolKind::INTERFACE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#27 -LanguageServer::Protocol::Constant::SymbolKind::KEY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#13 -LanguageServer::Protocol::Constant::SymbolKind::METHOD = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#9 -LanguageServer::Protocol::Constant::SymbolKind::MODULE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#10 -LanguageServer::Protocol::Constant::SymbolKind::NAMESPACE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#28 -LanguageServer::Protocol::Constant::SymbolKind::NULL = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#23 -LanguageServer::Protocol::Constant::SymbolKind::NUMBER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#26 -LanguageServer::Protocol::Constant::SymbolKind::OBJECT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#32 -LanguageServer::Protocol::Constant::SymbolKind::OPERATOR = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#11 -LanguageServer::Protocol::Constant::SymbolKind::PACKAGE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#14 -LanguageServer::Protocol::Constant::SymbolKind::PROPERTY = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#22 -LanguageServer::Protocol::Constant::SymbolKind::STRING = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#30 -LanguageServer::Protocol::Constant::SymbolKind::STRUCT = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#33 -LanguageServer::Protocol::Constant::SymbolKind::TYPE_PARAMETER = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_kind.rb#20 -LanguageServer::Protocol::Constant::SymbolKind::VARIABLE = T.let(T.unsafe(nil), Integer) - -# Symbol tags are extra annotations that tweak the rendering of a symbol. -# -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_tag.rb#7 -module LanguageServer::Protocol::Constant::SymbolTag; end - -# Render a symbol as obsolete, usually using a strike-out. -# -# source://language_server-protocol//lib/language_server/protocol/constant/symbol_tag.rb#11 -LanguageServer::Protocol::Constant::SymbolTag::DEPRECATED = T.let(T.unsafe(nil), Integer) - -# Represents reasons why a text document is saved. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#7 -module LanguageServer::Protocol::Constant::TextDocumentSaveReason; end - -# Automatic after a delay. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#16 -LanguageServer::Protocol::Constant::TextDocumentSaveReason::AFTER_DELAY = T.let(T.unsafe(nil), Integer) - -# When the editor lost focus. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#20 -LanguageServer::Protocol::Constant::TextDocumentSaveReason::FOCUS_OUT = T.let(T.unsafe(nil), Integer) - -# Manually triggered, e.g. by the user pressing save, by starting -# debugging, or by an API call. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_save_reason.rb#12 -LanguageServer::Protocol::Constant::TextDocumentSaveReason::MANUAL = T.let(T.unsafe(nil), Integer) - -# Defines how the host (editor) should sync document changes to the language -# server. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#8 -module LanguageServer::Protocol::Constant::TextDocumentSyncKind; end - -# Documents are synced by always sending the full content -# of the document. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#17 -LanguageServer::Protocol::Constant::TextDocumentSyncKind::FULL = T.let(T.unsafe(nil), Integer) - -# Documents are synced by sending the full content on open. -# After that only incremental updates to the document are -# sent. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#23 -LanguageServer::Protocol::Constant::TextDocumentSyncKind::INCREMENTAL = T.let(T.unsafe(nil), Integer) - -# Documents should not be synced at all. -# -# source://language_server-protocol//lib/language_server/protocol/constant/text_document_sync_kind.rb#12 -LanguageServer::Protocol::Constant::TextDocumentSyncKind::NONE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/constant/token_format.rb#4 -module LanguageServer::Protocol::Constant::TokenFormat; end - -# source://language_server-protocol//lib/language_server/protocol/constant/token_format.rb#5 -LanguageServer::Protocol::Constant::TokenFormat::RELATIVE = T.let(T.unsafe(nil), String) - -# Moniker uniqueness level to define scope of the moniker. -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#7 -module LanguageServer::Protocol::Constant::UniquenessLevel; end - -# The moniker is only unique inside a document -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#11 -LanguageServer::Protocol::Constant::UniquenessLevel::DOCUMENT = T.let(T.unsafe(nil), String) - -# The moniker is globally unique -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#27 -LanguageServer::Protocol::Constant::UniquenessLevel::GLOBAL = T.let(T.unsafe(nil), String) - -# The moniker is unique inside the group to which a project belongs -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#19 -LanguageServer::Protocol::Constant::UniquenessLevel::GROUP = T.let(T.unsafe(nil), String) - -# The moniker is unique inside a project for which a dump got created -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#15 -LanguageServer::Protocol::Constant::UniquenessLevel::PROJECT = T.let(T.unsafe(nil), String) - -# The moniker is unique inside the moniker scheme. -# -# source://language_server-protocol//lib/language_server/protocol/constant/uniqueness_level.rb#23 -LanguageServer::Protocol::Constant::UniquenessLevel::SCHEME = T.let(T.unsafe(nil), String) - -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#4 -module LanguageServer::Protocol::Constant::WatchKind; end - -# Interested in change events -# -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#12 -LanguageServer::Protocol::Constant::WatchKind::CHANGE = T.let(T.unsafe(nil), Integer) - -# Interested in create events. -# -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#8 -LanguageServer::Protocol::Constant::WatchKind::CREATE = T.let(T.unsafe(nil), Integer) - -# Interested in delete events -# -# source://language_server-protocol//lib/language_server/protocol/constant/watch_kind.rb#16 -LanguageServer::Protocol::Constant::WatchKind::DELETE = T.let(T.unsafe(nil), Integer) - -# source://language_server-protocol//lib/language_server/protocol/interface.rb#3 -module LanguageServer::Protocol::Interface; end - -# A special text edit with an additional change annotation. -# -# source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#7 -class LanguageServer::Protocol::Interface::AnnotatedTextEdit - # @return [AnnotatedTextEdit] a new instance of AnnotatedTextEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#8 - def initialize(range:, new_text:, annotation_id:); end - - # The actual annotation identifier. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#40 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#44 - def attributes; end - - # The string to be inserted. For delete operations use an - # empty string. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#32 - def new_text; end - - # The range of the text document to be manipulated. To insert - # text into a document create a range where start === end. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#23 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/annotated_text_edit.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#4 -class LanguageServer::Protocol::Interface::ApplyWorkspaceEditParams - # @return [ApplyWorkspaceEditParams] a new instance of ApplyWorkspaceEditParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#5 - def initialize(edit:, label: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#32 - def attributes; end - - # The edits to apply. - # - # @return [WorkspaceEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#28 - def edit; end - - # An optional label of the workspace edit. This label is - # presented in the user interface for example on an undo - # stack to undo the workspace edit. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#20 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_params.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#4 -class LanguageServer::Protocol::Interface::ApplyWorkspaceEditResult - # @return [ApplyWorkspaceEditResult] a new instance of ApplyWorkspaceEditResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#5 - def initialize(applied:, failure_reason: T.unsafe(nil), failed_change: T.unsafe(nil)); end - - # Indicates whether the edit was applied or not. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#19 - def applied; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#44 - def attributes; end - - # Depending on the client's failure handling strategy `failedChange` - # might contain the index of the change that failed. This property is - # only available if the client signals a `failureHandling` strategy - # in its client capabilities. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#40 - def failed_change; end - - # An optional textual description for why the edit was not applied. - # This may be used by the server for diagnostic logging or to provide - # a suitable error for a request that triggered the edit. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#29 - def failure_reason; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/apply_workspace_edit_result.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyClientCapabilities - # @return [CallHierarchyClientCapabilities] a new instance of CallHierarchyClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#24 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `(TextDocumentRegistrationOptions & - # StaticRegistrationOptions)` return value for the corresponding server - # capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyIncomingCall - # @return [CallHierarchyIncomingCall] a new instance of CallHierarchyIncomingCall - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#5 - def initialize(from:, from_ranges:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#31 - def attributes; end - - # The item that makes the call. - # - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#18 - def from; end - - # The ranges at which the calls appear. This is relative to the caller - # denoted by [`this.from`](#CallHierarchyIncomingCall.from). - # - # @return [Range[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#27 - def from_ranges; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyIncomingCallsParams - # @return [CallHierarchyIncomingCallsParams] a new instance of CallHierarchyIncomingCallsParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#37 - def attributes; end - - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyItem - # @return [CallHierarchyItem] a new instance of CallHierarchyItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#5 - def initialize(name:, kind:, uri:, range:, selection_range:, tags: T.unsafe(nil), detail: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#88 - def attributes; end - - # A data entry field that is preserved between a call hierarchy prepare and - # incoming calls or outgoing calls requests. - # - # @return [unknown] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#84 - def data; end - - # More detail for this item, e.g. the signature of a function. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#48 - def detail; end - - # The kind of this item. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#32 - def kind; end - - # The name of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#24 - def name; end - - # The range enclosing this symbol not including leading/trailing whitespace - # but everything else, e.g. comments and code. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#65 - def range; end - - # The range that should be selected and revealed when this symbol is being - # picked, e.g. the name of a function. Must be contained by the - # [`range`](#CallHierarchyItem.range). - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#75 - def selection_range; end - - # Tags for this item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#40 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#90 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#94 - def to_json(*args); end - - # The resource identifier of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_item.rb#56 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyOptions - # @return [CallHierarchyOptions] a new instance of CallHierarchyOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyOutgoingCall - # @return [CallHierarchyOutgoingCall] a new instance of CallHierarchyOutgoingCall - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#5 - def initialize(to:, from_ranges:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#31 - def attributes; end - - # The range at which this item is called. This is the range relative to - # the caller, e.g the item passed to `callHierarchy/outgoingCalls` request. - # - # @return [Range[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#27 - def from_ranges; end - - # The item that is called. - # - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#18 - def to; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyOutgoingCallsParams - # @return [CallHierarchyOutgoingCallsParams] a new instance of CallHierarchyOutgoingCallsParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#37 - def attributes; end - - # @return [CallHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyPrepareParams - # @return [CallHierarchyPrepareParams] a new instance of CallHierarchyPrepareParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CallHierarchyRegistrationOptions - # @return [CallHierarchyRegistrationOptions] a new instance of CallHierarchyRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/call_hierarchy_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#4 -class LanguageServer::Protocol::Interface::CancelParams - # @return [CancelParams] a new instance of CancelParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#5 - def initialize(id:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#21 - def attributes; end - - # The request id to cancel. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#17 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/cancel_params.rb#27 - def to_json(*args); end -end - -# Additional information that describes document changes. -# -# source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#7 -class LanguageServer::Protocol::Interface::ChangeAnnotation - # @return [ChangeAnnotation] a new instance of ChangeAnnotation - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#8 - def initialize(label:, needs_confirmation: T.unsafe(nil), description: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#45 - def attributes; end - - # A human-readable string which is rendered less prominent in - # the user interface. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#41 - def description; end - - # A human-readable string describing the actual change. The string - # is rendered prominent in the user interface. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#23 - def label; end - - # A flag which indicates that user confirmation is needed - # before applying the change. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#32 - def needs_confirmation; end - - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#47 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/change_annotation.rb#51 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ClientCapabilities - # @return [ClientCapabilities] a new instance of ClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#5 - def initialize(workspace: T.unsafe(nil), text_document: T.unsafe(nil), notebook_document: T.unsafe(nil), window: T.unsafe(nil), general: T.unsafe(nil), experimental: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#66 - def attributes; end - - # Experimental client capabilities. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#62 - def experimental; end - - # General client capabilities. - # - # @return [{ staleRequestSupport?: { cancel: boolean; retryOnContentModified: string[]; }; regularExpressions?: RegularExpressionsClientCapabilities; markdown?: any; positionEncodings?: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#54 - def general; end - - # Capabilities specific to the notebook document support. - # - # @return [NotebookDocumentClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#38 - def notebook_document; end - - # Text document specific client capabilities. - # - # @return [TextDocumentClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#30 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#68 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#72 - def to_json(*args); end - - # Window specific client capabilities. - # - # @return [{ workDoneProgress?: boolean; showMessage?: ShowMessageRequestClientCapabilities; showDocument?: ShowDocumentClientCapabilities; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#46 - def window; end - - # Workspace specific client capabilities. - # - # @return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: DidChangeConfigurationClientCapabilities; ... 10 more ...; diagnostics?: DiagnosticWorkspaceClientCapabilities; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/client_capabilities.rb#22 - def workspace; end -end - -# A code action represents a change that can be performed in code, e.g. to fix -# a problem or to refactor code. -# -# A CodeAction must set either `edit` and/or a `command`. If both are supplied, -# the `edit` is applied first, then the `command` is executed. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#11 -class LanguageServer::Protocol::Interface::CodeAction - # @return [CodeAction] a new instance of CodeAction - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#12 - def initialize(title:, kind: T.unsafe(nil), diagnostics: T.unsafe(nil), is_preferred: T.unsafe(nil), disabled: T.unsafe(nil), edit: T.unsafe(nil), command: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#115 - def attributes; end - - # A command this code action executes. If a code action - # provides an edit and a command, first the edit is - # executed and then the command. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#102 - def command; end - - # A data entry field that is preserved on a code action between - # a `textDocument/codeAction` and a `codeAction/resolve` request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#111 - def data; end - - # The diagnostics that this code action resolves. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#49 - def diagnostics; end - - # Marks that the code action cannot currently be applied. - # - # Clients should follow the following guidelines regarding disabled code - # actions: - # - # - Disabled code actions are not shown in automatic lightbulbs code - # action menus. - # - # - Disabled actions are shown as faded out in the code action menu when - # the user request a more specific type of code action, such as - # refactorings. - # - # - If the user has a keybinding that auto applies a code action and only - # a disabled code actions are returned, the client should show the user - # an error message with `reason` in the editor. - # - # @return [{ reason: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#84 - def disabled; end - - # The workspace edit this code action performs. - # - # @return [WorkspaceEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#92 - def edit; end - - # Marks this as a preferred action. Preferred actions are used by the - # `auto fix` command and can be targeted by keybindings. - # - # A quick fix should be marked preferred if it properly addresses the - # underlying error. A refactoring should be marked preferred if it is the - # most reasonable choice of actions to take. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#62 - def is_preferred; end - - # The kind of the code action. - # - # Used to filter code actions. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#41 - def kind; end - - # A short, human-readable, title for this code action. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#31 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#117 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action.rb#121 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CodeActionClientCapabilities - # @return [CodeActionClientCapabilities] a new instance of CodeActionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), code_action_literal_support: T.unsafe(nil), is_preferred_support: T.unsafe(nil), disabled_support: T.unsafe(nil), data_support: T.unsafe(nil), resolve_support: T.unsafe(nil), honors_change_annotations: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#83 - def attributes; end - - # The client supports code action literals as a valid - # response of the `textDocument/codeAction` request. - # - # @return [{ codeActionKind: { valueSet: string[]; }; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#32 - def code_action_literal_support; end - - # Whether code action supports the `data` property which is - # preserved between a `textDocument/codeAction` and a - # `codeAction/resolve` request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#58 - def data_support; end - - # Whether code action supports the `disabled` property. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#48 - def disabled_support; end - - # Whether code action supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#23 - def dynamic_registration; end - - # Whether the client honors the change annotations in - # text edits and resource operations returned via the - # `CodeAction#edit` property by for example presenting - # the workspace edit in the user interface and asking - # for confirmation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#79 - def honors_change_annotations; end - - # Whether code action supports the `isPreferred` property. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#40 - def is_preferred_support; end - - # Whether the client supports resolving additional code action - # properties via a separate `codeAction/resolve` request. - # - # @return [{ properties: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#67 - def resolve_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#85 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_client_capabilities.rb#89 - def to_json(*args); end -end - -# Contains additional diagnostic information about the context in which -# a code action is run. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#8 -class LanguageServer::Protocol::Interface::CodeActionContext - # @return [CodeActionContext] a new instance of CodeActionContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#9 - def initialize(diagnostics:, only: T.unsafe(nil), trigger_kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#51 - def attributes; end - - # An array of diagnostics known on the client side overlapping the range - # provided to the `textDocument/codeAction` request. They are provided so - # that the server knows which errors are currently presented to the user - # for the given range. There is no guarantee that these accurately reflect - # the error state of the resource. The primary parameter - # to compute code actions is the provided range. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#28 - def diagnostics; end - - # Requested kind of actions to return. - # - # Actions not of this kind are filtered out by the client before being - # shown. So servers can omit computing them. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#39 - def only; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#57 - def to_json(*args); end - - # The reason why code actions were requested. - # - # @return [CodeActionTriggerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_context.rb#47 - def trigger_kind; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#4 -class LanguageServer::Protocol::Interface::CodeActionOptions - # @return [CodeActionOptions] a new instance of CodeActionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), code_action_kinds: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#40 - def attributes; end - - # CodeActionKinds that this server may return. - # - # The list of kinds may be generic, such as `CodeActionKind.Refactor`, - # or the server may list out every specific kind they provide. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#27 - def code_action_kinds; end - - # The server provides support to resolve additional - # information for a code action. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#36 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#46 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_options.rb#16 - def work_done_progress; end -end - -# Params for the CodeActionRequest -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#7 -class LanguageServer::Protocol::Interface::CodeActionParams - # @return [CodeActionParams] a new instance of CodeActionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#8 - def initialize(text_document:, range:, context:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#61 - def attributes; end - - # Context carrying additional information. - # - # @return [CodeActionContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#57 - def context; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#33 - def partial_result_token; end - - # The range for which the command was invoked. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#49 - def range; end - - # The document in which the command was invoked. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#41 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#67 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_params.rb#24 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CodeActionRegistrationOptions - # @return [CodeActionRegistrationOptions] a new instance of CodeActionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), code_action_kinds: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#50 - def attributes; end - - # CodeActionKinds that this server may return. - # - # The list of kinds may be generic, such as `CodeActionKind.Refactor`, - # or the server may list out every specific kind they provide. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#37 - def code_action_kinds; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#21 - def document_selector; end - - # The server provides support to resolve additional - # information for a code action. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#46 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#56 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_action_registration_options.rb#26 - def work_done_progress; end -end - -# Structure to capture a description for an error code. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#7 -class LanguageServer::Protocol::Interface::CodeDescription - # @return [CodeDescription] a new instance of CodeDescription - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#8 - def initialize(href:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#24 - def attributes; end - - # An URI to open with more information about the diagnostic error. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#20 - def href; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_description.rb#30 - def to_json(*args); end -end - -# A code lens represents a command that should be shown along with -# source text, like the number of references, a way to run tests, etc. -# -# A code lens is _unresolved_ when no command is associated to it. For -# performance reasons the creation of a code lens and resolving should be done -# in two stages. -# -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#12 -class LanguageServer::Protocol::Interface::CodeLens - # @return [CodeLens] a new instance of CodeLens - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#13 - def initialize(range:, command: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#49 - def attributes; end - - # The command this code lens represents. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#36 - def command; end - - # A data entry field that is preserved on a code lens item between - # a code lens and a code lens resolve request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#45 - def data; end - - # The range in which this code lens is valid. Should only span a single - # line. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#28 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens.rb#55 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CodeLensClientCapabilities - # @return [CodeLensClientCapabilities] a new instance of CodeLensClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#21 - def attributes; end - - # Whether code lens supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#4 -class LanguageServer::Protocol::Interface::CodeLensOptions - # @return [CodeLensOptions] a new instance of CodeLensOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#27 - def attributes; end - - # Code lens has a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#23 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#4 -class LanguageServer::Protocol::Interface::CodeLensParams - # @return [CodeLensParams] a new instance of CodeLensParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#28 - def partial_result_token; end - - # The document to request code lens for. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CodeLensRegistrationOptions - # @return [CodeLensRegistrationOptions] a new instance of CodeLensRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#37 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#20 - def document_selector; end - - # Code lens has a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#33 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#43 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CodeLensWorkspaceClientCapabilities - # @return [CodeLensWorkspaceClientCapabilities] a new instance of CodeLensWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#5 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#27 - def attributes; end - - # Whether the client implementation supports a refresh request sent from the - # server to the client. - # - # Note that this event is global and will force the client to refresh all - # code lenses currently shown. It should be used with absolute care and is - # useful for situation where a server for example detect a project wide - # change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#23 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb#33 - def to_json(*args); end -end - -# Represents a color in RGBA space. -# -# source://language_server-protocol//lib/language_server/protocol/interface/color.rb#7 -class LanguageServer::Protocol::Interface::Color - # @return [Color] a new instance of Color - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#8 - def initialize(red:, green:, blue:, alpha:); end - - # The alpha component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#47 - def alpha; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#51 - def attributes; end - - # The blue component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#39 - def blue; end - - # The green component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#31 - def green; end - - # The red component of this color in the range [0-1]. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#23 - def red; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color.rb#57 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#4 -class LanguageServer::Protocol::Interface::ColorInformation - # @return [ColorInformation] a new instance of ColorInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#5 - def initialize(range:, color:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#30 - def attributes; end - - # The actual color value for this color range. - # - # @return [Color] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#26 - def color; end - - # The range in the document where this color appears. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#18 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_information.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#4 -class LanguageServer::Protocol::Interface::ColorPresentation - # @return [ColorPresentation] a new instance of ColorPresentation - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#5 - def initialize(label:, text_edit: T.unsafe(nil), additional_text_edits: T.unsafe(nil)); end - - # An optional array of additional [text edits](#TextEdit) that are applied - # when selecting this color presentation. Edits must not overlap with the - # main [edit](#ColorPresentation.textEdit) nor with themselves. - # - # @return [TextEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#41 - def additional_text_edits; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#45 - def attributes; end - - # The label of this color presentation. It will be shown on the color - # picker header. By default this is also the text that is inserted when - # selecting this color presentation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#21 - def label; end - - # An [edit](#TextEdit) which is applied to a document when selecting - # this presentation for the color. When `falsy` the - # [label](#ColorPresentation.label) is used. - # - # @return [TextEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#31 - def text_edit; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#47 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation.rb#51 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#4 -class LanguageServer::Protocol::Interface::ColorPresentationParams - # @return [ColorPresentationParams] a new instance of ColorPresentationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#5 - def initialize(text_document:, color:, range:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#58 - def attributes; end - - # The color information to request presentations for. - # - # @return [Color] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#46 - def color; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#30 - def partial_result_token; end - - # The range where the color would be inserted. Serves as a context. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#54 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#38 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#60 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#64 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/color_presentation_params.rb#21 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/command.rb#4 -class LanguageServer::Protocol::Interface::Command - # @return [Command] a new instance of Command - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#5 - def initialize(title:, command:, arguments: T.unsafe(nil)); end - - # Arguments that the command handler should be - # invoked with. - # - # @return [LSPAny[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#36 - def arguments; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#40 - def attributes; end - - # The identifier of the actual command handler. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#27 - def command; end - - # Title of the command, like `save`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#19 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/command.rb#46 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::CompletionClientCapabilities - # @return [CompletionClientCapabilities] a new instance of CompletionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), completion_item: T.unsafe(nil), completion_item_kind: T.unsafe(nil), context_support: T.unsafe(nil), insert_text_mode: T.unsafe(nil), completion_list: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#67 - def attributes; end - - # The client supports the following `CompletionItem` specific - # capabilities. - # - # @return [{ snippetSupport?: boolean; commitCharactersSupport?: boolean; documentationFormat?: MarkupKind[]; deprecatedSupport?: boolean; preselectSupport?: boolean; tagSupport?: { valueSet: 1[]; }; insertReplaceSupport?: boolean; resolveSupport?: { ...; }; insertTextModeSupport?: { ...; }; labelDetailsSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#31 - def completion_item; end - - # @return [{ valueSet?: CompletionItemKind[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#36 - def completion_item_kind; end - - # The client supports the following `CompletionList` specific - # capabilities. - # - # @return [{ itemDefaults?: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#63 - def completion_list; end - - # The client supports to send additional context information for a - # `textDocument/completion` request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#45 - def context_support; end - - # Whether completion supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#22 - def dynamic_registration; end - - # The client's default when the completion item doesn't provide a - # `insertTextMode` property. - # - # @return [InsertTextMode] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#54 - def insert_text_mode; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#69 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_client_capabilities.rb#73 - def to_json(*args); end -end - -# Contains additional information about the context in which a completion -# request is triggered. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#8 -class LanguageServer::Protocol::Interface::CompletionContext - # @return [CompletionContext] a new instance of CompletionContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#9 - def initialize(trigger_kind:, trigger_character: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#36 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#42 - def to_json(*args); end - - # The trigger character (a single character) that has trigger code - # complete. Is undefined if - # `triggerKind !== CompletionTriggerKind.TriggerCharacter` - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#32 - def trigger_character; end - - # How the completion was triggered. - # - # @return [CompletionTriggerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_context.rb#22 - def trigger_kind; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#4 -class LanguageServer::Protocol::Interface::CompletionItem - # @return [CompletionItem] a new instance of CompletionItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#5 - def initialize(label:, label_details: T.unsafe(nil), kind: T.unsafe(nil), tags: T.unsafe(nil), detail: T.unsafe(nil), documentation: T.unsafe(nil), deprecated: T.unsafe(nil), preselect: T.unsafe(nil), sort_text: T.unsafe(nil), filter_text: T.unsafe(nil), insert_text: T.unsafe(nil), insert_text_format: T.unsafe(nil), insert_text_mode: T.unsafe(nil), text_edit: T.unsafe(nil), text_edit_text: T.unsafe(nil), additional_text_edits: T.unsafe(nil), commit_characters: T.unsafe(nil), command: T.unsafe(nil), data: T.unsafe(nil)); end - - # An optional array of additional text edits that are applied when - # selecting this completion. Edits must not overlap (including the same - # insert position) with the main edit nor with themselves. - # - # Additional text edits should be used to change text unrelated to the - # current cursor position (for example adding an import statement at the - # top of the file if the completion item will insert an unqualified type). - # - # @return [TextEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#221 - def additional_text_edits; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#255 - def attributes; end - - # An optional command that is executed *after* inserting this completion. - # *Note* that additional modifications to the current document should be - # described with the additionalTextEdits-property. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#242 - def command; end - - # An optional set of characters that when pressed while this completion is - # active will accept it first and then type that character. *Note* that all - # commit characters should have `length=1` and that superfluous characters - # will be ignored. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#232 - def commit_characters; end - - # A data entry field that is preserved on a completion item between - # a completion and a completion resolve request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#251 - def data; end - - # Indicates if this item is deprecated. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#92 - def deprecated; end - - # A human-readable string with additional information - # about this item, like type or symbol information. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#76 - def detail; end - - # A human-readable string that represents a doc-comment. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#84 - def documentation; end - - # A string that should be used when filtering a set of - # completion items. When `falsy` the label is used as the - # filter text for this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#124 - def filter_text; end - - # A string that should be inserted into a document when selecting - # this completion. When `falsy` the label is used as the insert text - # for this item. - # - # The `insertText` is subject to interpretation by the client side. - # Some tools might not take the string literally. For example - # VS Code when code complete is requested in this example - # `con` and a completion item with an `insertText` of - # `console` is provided it will only insert `sole`. Therefore it is - # recommended to use `textEdit` instead since it avoids additional client - # side interpretation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#142 - def insert_text; end - - # The format of the insert text. The format applies to both the - # `insertText` property and the `newText` property of a provided - # `textEdit`. If omitted defaults to `InsertTextFormat.PlainText`. - # - # Please note that the insertTextFormat doesn't apply to - # `additionalTextEdits`. - # - # @return [InsertTextFormat] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#155 - def insert_text_format; end - - # How whitespace and indentation is handled during completion - # item insertion. If not provided the client's default value depends on - # the `textDocument.completion.insertTextMode` client capability. - # - # @return [InsertTextMode] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#165 - def insert_text_mode; end - - # The kind of this completion item. Based of the kind - # an icon is chosen by the editor. The standardized set - # of available values is defined in `CompletionItemKind`. - # - # @return [CompletionItemKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#59 - def kind; end - - # The label of this completion item. - # - # The label property is also by default the text that - # is inserted when selecting this completion. - # - # If label details are provided the label itself should - # be an unqualified name of the completion item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#41 - def label; end - - # Additional details for the label - # - # @return [CompletionItemLabelDetails] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#49 - def label_details; end - - # Select this item when showing. - # - # *Note* that only one completion item can be selected and that the - # tool / client decides which item that is. The rule is that the *first* - # item of those that match best is selected. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#104 - def preselect; end - - # A string that should be used when comparing this item - # with other items. When `falsy` the label is used - # as the sort text for this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#114 - def sort_text; end - - # Tags for this completion item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#67 - def tags; end - - # An edit which is applied to a document when selecting this completion. - # When an edit is provided the value of `insertText` is ignored. - # - # *Note:* The range of the edit must be a single line range and it must - # contain the position at which completion has been requested. - # - # Most editors support two different operations when accepting a completion - # item. One is to insert a completion text and the other is to replace an - # existing text with a completion text. Since this can usually not be - # predetermined by a server it can report both ranges. Clients need to - # signal support for `InsertReplaceEdit`s via the - # `textDocument.completion.completionItem.insertReplaceSupport` client - # capability property. - # - # *Note 1:* The text edit's range as well as both ranges from an insert - # replace edit must be a [single line] and they must contain the position - # at which completion has been requested. - # *Note 2:* If an `InsertReplaceEdit` is returned the edit's insert range - # must be a prefix of the edit's replace range, that means it must be - # contained and starting at the same position. - # - # @return [TextEdit | InsertReplaceEdit] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#192 - def text_edit; end - - # The edit text used if the completion item is part of a CompletionList and - # CompletionList defines an item default for the text edit range. - # - # Clients will only honor this property if they opt into completion list - # item defaults using the capability `completionList.itemDefaults`. - # - # If not provided and a list's default range is provided the label - # property is used as a text. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#207 - def text_edit_text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#257 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item.rb#261 - def to_json(*args); end -end - -# Additional details for a completion item label. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#7 -class LanguageServer::Protocol::Interface::CompletionItemLabelDetails - # @return [CompletionItemLabelDetails] a new instance of CompletionItemLabelDetails - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#8 - def initialize(detail: T.unsafe(nil), description: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#37 - def attributes; end - - # An optional string which is rendered less prominently after - # {@link CompletionItemLabelDetails.detail}. Should be used for fully qualified - # names or file path. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#33 - def description; end - - # An optional string which is rendered less prominently directly after - # {@link CompletionItem.label label}, without any spacing. Should be - # used for function signatures or type annotations. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#23 - def detail; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_item_label_details.rb#43 - def to_json(*args); end -end - -# Represents a collection of [completion items](#CompletionItem) to be -# presented in the editor. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#8 -class LanguageServer::Protocol::Interface::CompletionList - # @return [CompletionList] a new instance of CompletionList - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#9 - def initialize(is_incomplete:, items:, item_defaults: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#57 - def attributes; end - - # This list is not complete. Further typing should result in recomputing - # this list. - # - # Recomputed lists have all their items replaced (not appended) in the - # incomplete completion sessions. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#27 - def is_incomplete; end - - # In many cases the items of an actual completion result share the same - # value for properties like `commitCharacters` or the range of a text - # edit. A completion list can therefore define item defaults which will - # be used if a completion item itself doesn't specify the value. - # - # If a completion list specifies a default value and a completion item - # also specifies a corresponding value the one from the item is used. - # - # Servers are only allowed to return default values if the client - # signals support for this via the `completionList.itemDefaults` - # capability. - # - # @return [{ commitCharacters?: string[]; editRange?: Range | { insert: Range; replace: Range; }; insertTextFormat?: InsertTextFormat; insertTextMode?: InsertTextMode; data?: LSPAny; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#45 - def item_defaults; end - - # The completion items. - # - # @return [CompletionItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#53 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_list.rb#63 - def to_json(*args); end -end - -# Completion options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#7 -class LanguageServer::Protocol::Interface::CompletionOptions - # @return [CompletionOptions] a new instance of CompletionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#8 - def initialize(work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), all_commit_characters: T.unsafe(nil), resolve_provider: T.unsafe(nil), completion_item: T.unsafe(nil)); end - - # The list of all possible characters that commit a completion. This field - # can be used if clients don't support individual commit characters per - # completion item. See client capability - # `completion.completionItem.commitCharactersSupport`. - # - # If a server provides both `allCommitCharacters` and commit characters on - # an individual completion item the ones on the completion item win. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#53 - def all_commit_characters; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#75 - def attributes; end - - # The server supports the following `CompletionItem` specific - # capabilities. - # - # @return [{ labelDetailsSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#71 - def completion_item; end - - # The server provides support to resolve additional - # information for a completion item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#62 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#77 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#81 - def to_json(*args); end - - # The additional characters, beyond the defaults provided by the client (typically - # [a-zA-Z]), that should automatically trigger a completion request. For example - # `.` in JavaScript represents the beginning of an object property or method and is - # thus a good candidate for triggering a completion request. - # - # Most tools trigger a completion request automatically without explicitly - # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they - # do so when the user starts to type an identifier. For example if the user - # types `c` in a JavaScript file code complete will automatically pop up - # present `console` besides others as a completion item. Characters that - # make up identifiers don't need to be listed here. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#39 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_options.rb#21 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#4 -class LanguageServer::Protocol::Interface::CompletionParams - # @return [CompletionParams] a new instance of CompletionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), context: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#60 - def attributes; end - - # The completion context. This is only available if the client specifies - # to send this using the client capability - # `completion.contextSupport === true` - # - # @return [CompletionContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#56 - def context; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#46 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#29 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#21 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#62 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#66 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_params.rb#37 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#4 -class LanguageServer::Protocol::Interface::CompletionRegistrationOptions - # @return [CompletionRegistrationOptions] a new instance of CompletionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), all_commit_characters: T.unsafe(nil), resolve_provider: T.unsafe(nil), completion_item: T.unsafe(nil)); end - - # The list of all possible characters that commit a completion. This field - # can be used if clients don't support individual commit characters per - # completion item. See client capability - # `completion.completionItem.commitCharactersSupport`. - # - # If a server provides both `allCommitCharacters` and commit characters on - # an individual completion item the ones on the completion item win. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#60 - def all_commit_characters; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#82 - def attributes; end - - # The server supports the following `CompletionItem` specific - # capabilities. - # - # @return [{ labelDetailsSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#78 - def completion_item; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#23 - def document_selector; end - - # The server provides support to resolve additional - # information for a completion item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#69 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#84 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#88 - def to_json(*args); end - - # The additional characters, beyond the defaults provided by the client (typically - # [a-zA-Z]), that should automatically trigger a completion request. For example - # `.` in JavaScript represents the beginning of an object property or method and is - # thus a good candidate for triggering a completion request. - # - # Most tools trigger a completion request automatically without explicitly - # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they - # do so when the user starts to type an identifier. For example if the user - # types `c` in a JavaScript file code complete will automatically pop up - # present `console` besides others as a completion item. Characters that - # make up identifiers don't need to be listed here. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#46 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/completion_registration_options.rb#28 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#4 -class LanguageServer::Protocol::Interface::ConfigurationItem - # @return [ConfigurationItem] a new instance of ConfigurationItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#5 - def initialize(scope_uri: T.unsafe(nil), section: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#30 - def attributes; end - - # The scope to get the configuration section for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#18 - def scope_uri; end - - # The configuration section asked for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#26 - def section; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_item.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#4 -class LanguageServer::Protocol::Interface::ConfigurationParams - # @return [ConfigurationParams] a new instance of ConfigurationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#5 - def initialize(items:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#18 - def attributes; end - - # @return [ConfigurationItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#14 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/configuration_params.rb#24 - def to_json(*args); end -end - -# Create file operation -# -# source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#7 -class LanguageServer::Protocol::Interface::CreateFile - # @return [CreateFile] a new instance of CreateFile - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#8 - def initialize(kind:, uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end - - # An optional annotation identifier describing the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#47 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#51 - def attributes; end - - # A create - # - # @return ["create"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#23 - def kind; end - - # Additional options - # - # @return [CreateFileOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#39 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#57 - def to_json(*args); end - - # The resource to create. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file.rb#31 - def uri; end -end - -# Options to create a file. -# -# source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#7 -class LanguageServer::Protocol::Interface::CreateFileOptions - # @return [CreateFileOptions] a new instance of CreateFileOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#8 - def initialize(overwrite: T.unsafe(nil), ignore_if_exists: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#33 - def attributes; end - - # Ignore if exists. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#29 - def ignore_if_exists; end - - # Overwrite existing file. Overwrite wins over `ignoreIfExists` - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#21 - def overwrite; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_file_options.rb#39 - def to_json(*args); end -end - -# The parameters sent in notifications/requests for user-initiated creation -# of files. -# -# source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#8 -class LanguageServer::Protocol::Interface::CreateFilesParams - # @return [CreateFilesParams] a new instance of CreateFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#9 - def initialize(files:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#25 - def attributes; end - - # An array of all files/folders created in this operation. - # - # @return [FileCreate[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#21 - def files; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/create_files_params.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DeclarationClientCapabilities - # @return [DeclarationClientCapabilities] a new instance of DeclarationClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#32 - def attributes; end - - # Whether declaration supports dynamic registration. If this is set to - # `true` the client supports the new `DeclarationRegistrationOptions` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#20 - def dynamic_registration; end - - # The client supports additional metadata in the form of declaration links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#28 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#4 -class LanguageServer::Protocol::Interface::DeclarationOptions - # @return [DeclarationOptions] a new instance of DeclarationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#4 -class LanguageServer::Protocol::Interface::DeclarationParams - # @return [DeclarationParams] a new instance of DeclarationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DeclarationRegistrationOptions - # @return [DeclarationRegistrationOptions] a new instance of DeclarationRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#25 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/declaration_registration_options.rb#16 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DefinitionClientCapabilities - # @return [DefinitionClientCapabilities] a new instance of DefinitionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#30 - def attributes; end - - # Whether definition supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#18 - def dynamic_registration; end - - # The client supports additional metadata in the form of definition links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#26 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_client_capabilities.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#4 -class LanguageServer::Protocol::Interface::DefinitionOptions - # @return [DefinitionOptions] a new instance of DefinitionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#4 -class LanguageServer::Protocol::Interface::DefinitionParams - # @return [DefinitionParams] a new instance of DefinitionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DefinitionRegistrationOptions - # @return [DefinitionRegistrationOptions] a new instance of DefinitionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/definition_registration_options.rb#24 - def work_done_progress; end -end - -# Delete file operation -# -# source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#7 -class LanguageServer::Protocol::Interface::DeleteFile - # @return [DeleteFile] a new instance of DeleteFile - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#8 - def initialize(kind:, uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end - - # An optional annotation identifier describing the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#47 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#51 - def attributes; end - - # A delete - # - # @return ["delete"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#23 - def kind; end - - # Delete options. - # - # @return [DeleteFileOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#39 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#57 - def to_json(*args); end - - # The file to delete. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file.rb#31 - def uri; end -end - -# Delete file options -# -# source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#7 -class LanguageServer::Protocol::Interface::DeleteFileOptions - # @return [DeleteFileOptions] a new instance of DeleteFileOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#8 - def initialize(recursive: T.unsafe(nil), ignore_if_not_exists: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#33 - def attributes; end - - # Ignore the operation if the file doesn't exist. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#29 - def ignore_if_not_exists; end - - # Delete the content recursively if a folder is denoted. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#21 - def recursive; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_file_options.rb#39 - def to_json(*args); end -end - -# The parameters sent in notifications/requests for user-initiated deletes -# of files. -# -# source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#8 -class LanguageServer::Protocol::Interface::DeleteFilesParams - # @return [DeleteFilesParams] a new instance of DeleteFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#9 - def initialize(files:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#25 - def attributes; end - - # An array of all files/folders deleted in this operation. - # - # @return [FileDelete[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#21 - def files; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/delete_files_params.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#4 -class LanguageServer::Protocol::Interface::Diagnostic - # @return [Diagnostic] a new instance of Diagnostic - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#5 - def initialize(range:, message:, severity: T.unsafe(nil), code: T.unsafe(nil), code_description: T.unsafe(nil), source: T.unsafe(nil), tags: T.unsafe(nil), related_information: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#98 - def attributes; end - - # The diagnostic's code, which might appear in the user interface. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#42 - def code; end - - # An optional property to describe the error code. - # - # @return [CodeDescription] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#50 - def code_description; end - - # A data entry field that is preserved between a - # `textDocument/publishDiagnostics` notification and - # `textDocument/codeAction` request. - # - # @return [unknown] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#94 - def data; end - - # The diagnostic's message. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#67 - def message; end - - # The range at which the message applies. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#25 - def range; end - - # An array of related diagnostic information, e.g. when symbol-names within - # a scope collide all definitions can be marked via this property. - # - # @return [DiagnosticRelatedInformation[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#84 - def related_information; end - - # The diagnostic's severity. Can be omitted. If omitted it is up to the - # client to interpret diagnostics as error, warning, info or hint. - # - # @return [DiagnosticSeverity] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#34 - def severity; end - - # A human-readable string describing the source of this - # diagnostic, e.g. 'typescript' or 'super lint'. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#59 - def source; end - - # Additional metadata about the diagnostic. - # - # @return [DiagnosticTag[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#75 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#100 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic.rb#104 - def to_json(*args); end -end - -# Client capabilities specific to diagnostic pull requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticClientCapabilities - # @return [DiagnosticClientCapabilities] a new instance of DiagnosticClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil), related_document_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#37 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new - # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#24 - def dynamic_registration; end - - # Whether the clients supports related documents for document diagnostic - # pulls. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#33 - def related_document_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_client_capabilities.rb#43 - def to_json(*args); end -end - -# Diagnostic options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticOptions - # @return [DiagnosticOptions] a new instance of DiagnosticOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#8 - def initialize(inter_file_dependencies:, workspace_diagnostics:, work_done_progress: T.unsafe(nil), identifier: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#52 - def attributes; end - - # An optional identifier under which the diagnostics are - # managed by the client. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#29 - def identifier; end - - # Whether the language has inter file dependencies meaning that - # editing code in one file can result in a different diagnostic - # set in another file. Inter file dependencies are common for - # most programming languages and typically uncommon for linters. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#40 - def inter_file_dependencies; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#58 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#20 - def work_done_progress; end - - # The server provides support for workspace diagnostics as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_options.rb#48 - def workspace_diagnostics; end -end - -# Diagnostic registration options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticRegistrationOptions - # @return [DiagnosticRegistrationOptions] a new instance of DiagnosticRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#8 - def initialize(document_selector:, inter_file_dependencies:, workspace_diagnostics:, work_done_progress: T.unsafe(nil), identifier: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#72 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#26 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#68 - def id; end - - # An optional identifier under which the diagnostics are - # managed by the client. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#40 - def identifier; end - - # Whether the language has inter file dependencies meaning that - # editing code in one file can result in a different diagnostic - # set in another file. Inter file dependencies are common for - # most programming languages and typically uncommon for linters. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#51 - def inter_file_dependencies; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#74 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#78 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#31 - def work_done_progress; end - - # The server provides support for workspace diagnostics as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_registration_options.rb#59 - def workspace_diagnostics; end -end - -# Represents a related message and source code location for a diagnostic. -# This should be used to point to code locations that cause or are related to -# a diagnostics, e.g when duplicating a symbol in a scope. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#9 -class LanguageServer::Protocol::Interface::DiagnosticRelatedInformation - # @return [DiagnosticRelatedInformation] a new instance of DiagnosticRelatedInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#10 - def initialize(location:, message:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#35 - def attributes; end - - # The location of this related diagnostic information. - # - # @return [Location] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#23 - def location; end - - # The message of this related diagnostic information. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#31 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#37 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_related_information.rb#41 - def to_json(*args); end -end - -# Cancellation data returned from a diagnostic request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticServerCancellationData - # @return [DiagnosticServerCancellationData] a new instance of DiagnosticServerCancellationData - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#8 - def initialize(retrigger_request:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#21 - def attributes; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#17 - def retrigger_request; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb#27 - def to_json(*args); end -end - -# Workspace client capabilities specific to diagnostic pull requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::DiagnosticWorkspaceClientCapabilities - # @return [DiagnosticWorkspaceClientCapabilities] a new instance of DiagnosticWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#8 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#30 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # pulled diagnostics currently shown. It should be used with absolute care - # and is useful for situation where a server for example detects a project - # wide change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#26 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DidChangeConfigurationClientCapabilities - # @return [DidChangeConfigurationClientCapabilities] a new instance of DidChangeConfigurationClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#21 - def attributes; end - - # Did change configuration notification supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeConfigurationParams - # @return [DidChangeConfigurationParams] a new instance of DidChangeConfigurationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#5 - def initialize(settings:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#21 - def attributes; end - - # The actual changed settings - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#17 - def settings; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_configuration_params.rb#27 - def to_json(*args); end -end - -# The params sent in a change notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidChangeNotebookDocumentParams - # @return [DidChangeNotebookDocumentParams] a new instance of DidChangeNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#8 - def initialize(notebook_document:, change:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#44 - def attributes; end - - # The actual changes to the notebook document. - # - # The change describes single state change to the notebook document. - # So it moves a notebook document, its cells and its cell text document - # contents from state S to S'. - # - # To mirror the content of a notebook using change events use the - # following approach: - # - start with the same initial content - # - apply the 'notebookDocument/didChange' notifications in the order - # you receive them. - # - # @return [NotebookDocumentChangeEvent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#40 - def change; end - - # The notebook document that did change. The version number points - # to the version after all provided changes have been applied. - # - # @return [VersionedNotebookDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#22 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_notebook_document_params.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeTextDocumentParams - # @return [DidChangeTextDocumentParams] a new instance of DidChangeTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#5 - def initialize(text_document:, content_changes:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#44 - def attributes; end - - # The actual content changes. The content changes describe single state - # changes to the document. So if there are two content changes c1 (at - # array index 0) and c2 (at array index 1) for a document in state S then - # c1 moves the document from S to S' and c2 from S' to S''. So c1 is - # computed on the state S and c2 is computed on the state S'. - # - # To mirror the content of a document using change events use the following - # approach: - # - start with the same initial content - # - apply the 'textDocument/didChange' notifications in the order you - # receive them. - # - apply the `TextDocumentContentChangeEvent`s in a single notification - # in the order you receive them. - # - # @return [TextDocumentContentChangeEvent[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#40 - def content_changes; end - - # The document that did change. The version number points - # to the version after all provided content changes have - # been applied. - # - # @return [VersionedTextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_text_document_params.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DidChangeWatchedFilesClientCapabilities - # @return [DidChangeWatchedFilesClientCapabilities] a new instance of DidChangeWatchedFilesClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), relative_pattern_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#33 - def attributes; end - - # Did change watched files notification supports dynamic registration. - # Please note that the current protocol doesn't support static - # configuration for file changes from the server side. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#20 - def dynamic_registration; end - - # Whether the client has support for relative patterns - # or not. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#29 - def relative_pattern_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeWatchedFilesParams - # @return [DidChangeWatchedFilesParams] a new instance of DidChangeWatchedFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#5 - def initialize(changes:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#21 - def attributes; end - - # The actual file events. - # - # @return [FileEvent[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#17 - def changes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_params.rb#27 - def to_json(*args); end -end - -# Describe options to be used when registering for file system change events. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#7 -class LanguageServer::Protocol::Interface::DidChangeWatchedFilesRegistrationOptions - # @return [DidChangeWatchedFilesRegistrationOptions] a new instance of DidChangeWatchedFilesRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#8 - def initialize(watchers:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#30 - def to_json(*args); end - - # The watchers to register. - # - # @return [FileSystemWatcher[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb#20 - def watchers; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#4 -class LanguageServer::Protocol::Interface::DidChangeWorkspaceFoldersParams - # @return [DidChangeWorkspaceFoldersParams] a new instance of DidChangeWorkspaceFoldersParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#5 - def initialize(event:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#21 - def attributes; end - - # The actual workspace folder change event. - # - # @return [WorkspaceFoldersChangeEvent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#17 - def event; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_change_workspace_folders_params.rb#27 - def to_json(*args); end -end - -# The params sent in a close notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidCloseNotebookDocumentParams - # @return [DidCloseNotebookDocumentParams] a new instance of DidCloseNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#8 - def initialize(notebook_document:, cell_text_documents:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#34 - def attributes; end - - # The text documents that represent the content - # of a notebook cell that got closed. - # - # @return [TextDocumentIdentifier[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#30 - def cell_text_documents; end - - # The notebook document that got closed. - # - # @return [NotebookDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#21 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_notebook_document_params.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidCloseTextDocumentParams - # @return [DidCloseTextDocumentParams] a new instance of DidCloseTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#5 - def initialize(text_document:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#21 - def attributes; end - - # The document that was closed. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#17 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_close_text_document_params.rb#27 - def to_json(*args); end -end - -# The params sent in an open notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidOpenNotebookDocumentParams - # @return [DidOpenNotebookDocumentParams] a new instance of DidOpenNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#8 - def initialize(notebook_document:, cell_text_documents:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#34 - def attributes; end - - # The text documents that represent the content - # of a notebook cell. - # - # @return [TextDocumentItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#30 - def cell_text_documents; end - - # The notebook document that got opened. - # - # @return [NotebookDocument] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#21 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_notebook_document_params.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidOpenTextDocumentParams - # @return [DidOpenTextDocumentParams] a new instance of DidOpenTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#5 - def initialize(text_document:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#21 - def attributes; end - - # The document that was opened. - # - # @return [TextDocumentItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#17 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_open_text_document_params.rb#27 - def to_json(*args); end -end - -# The params sent in a save notebook document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#7 -class LanguageServer::Protocol::Interface::DidSaveNotebookDocumentParams - # @return [DidSaveNotebookDocumentParams] a new instance of DidSaveNotebookDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#8 - def initialize(notebook_document:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#24 - def attributes; end - - # The notebook document that got saved. - # - # @return [NotebookDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#20 - def notebook_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_notebook_document_params.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#4 -class LanguageServer::Protocol::Interface::DidSaveTextDocumentParams - # @return [DidSaveTextDocumentParams] a new instance of DidSaveTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#5 - def initialize(text_document:, text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#31 - def attributes; end - - # Optional the content when saved. Depends on the includeText value - # when the save notification was requested. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#27 - def text; end - - # The document that was saved. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#18 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/did_save_text_document_params.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorClientCapabilities - # @return [DocumentColorClientCapabilities] a new instance of DocumentColorClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#21 - def attributes; end - - # Whether document color supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorOptions - # @return [DocumentColorOptions] a new instance of DocumentColorOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorParams - # @return [DocumentColorParams] a new instance of DocumentColorParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentColorRegistrationOptions - # @return [DocumentColorRegistrationOptions] a new instance of DocumentColorRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#5 - def initialize(document_selector:, id: T.unsafe(nil), work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#29 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_color_registration_options.rb#34 - def work_done_progress; end -end - -# Parameters of the document diagnostic request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#7 -class LanguageServer::Protocol::Interface::DocumentDiagnosticParams - # @return [DocumentDiagnosticParams] a new instance of DocumentDiagnosticParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#8 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), identifier: T.unsafe(nil), previous_result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#61 - def attributes; end - - # The additional identifier provided during registration. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#49 - def identifier; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#33 - def partial_result_token; end - - # The result id of a previous response if provided. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#57 - def previous_result_id; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#41 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#67 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_params.rb#24 - def work_done_token; end -end - -# A partial result for a document diagnostic report. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#7 -class LanguageServer::Protocol::Interface::DocumentDiagnosticReportPartialResult - # @return [DocumentDiagnosticReportPartialResult] a new instance of DocumentDiagnosticReportPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#8 - def initialize(related_documents:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#21 - def attributes; end - - # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#17 - def related_documents; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#4 -class LanguageServer::Protocol::Interface::DocumentFilter - # @return [DocumentFilter] a new instance of DocumentFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#5 - def initialize(language: T.unsafe(nil), scheme: T.unsafe(nil), pattern: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#51 - def attributes; end - - # A language id, like `typescript`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#19 - def language; end - - # A glob pattern, like `*.{ts,js}`. - # - # Glob patterns can have the following syntax: - # - `*` to match one or more characters in a path segment - # - `?` to match on one character in a path segment - # - `**` to match any number of path segments, including none - # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` - # matches all TypeScript and JavaScript files) - # - `[]` to declare a range of characters to match in a path segment - # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) - # - `[!...]` to negate a range of characters to match in a path segment - # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but - # not `example.0`) - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#47 - def pattern; end - - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#27 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_filter.rb#57 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingClientCapabilities - # @return [DocumentFormattingClientCapabilities] a new instance of DocumentFormattingClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#21 - def attributes; end - - # Whether formatting supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingOptions - # @return [DocumentFormattingOptions] a new instance of DocumentFormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingParams - # @return [DocumentFormattingParams] a new instance of DocumentFormattingParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#5 - def initialize(text_document:, options:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#39 - def attributes; end - - # The format options. - # - # @return [FormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#35 - def options; end - - # The document to format. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#27 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentFormattingRegistrationOptions - # @return [DocumentFormattingRegistrationOptions] a new instance of DocumentFormattingRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_formatting_registration_options.rb#24 - def work_done_progress; end -end - -# A document highlight is a range inside a text document which deserves -# special attention. Usually a document highlight is visualized by changing -# the background color of its range. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#9 -class LanguageServer::Protocol::Interface::DocumentHighlight - # @return [DocumentHighlight] a new instance of DocumentHighlight - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#10 - def initialize(range:, kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#35 - def attributes; end - - # The highlight kind, default is DocumentHighlightKind.Text. - # - # @return [DocumentHighlightKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#31 - def kind; end - - # The range this highlight applies to. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#23 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#37 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight.rb#41 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightClientCapabilities - # @return [DocumentHighlightClientCapabilities] a new instance of DocumentHighlightClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#21 - def attributes; end - - # Whether document highlight supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightOptions - # @return [DocumentHighlightOptions] a new instance of DocumentHighlightOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightParams - # @return [DocumentHighlightParams] a new instance of DocumentHighlightParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentHighlightRegistrationOptions - # @return [DocumentHighlightRegistrationOptions] a new instance of DocumentHighlightRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_highlight_registration_options.rb#24 - def work_done_progress; end -end - -# A document link is a range in a text document that links to an internal or -# external resource, like another text document or a web site. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#8 -class LanguageServer::Protocol::Interface::DocumentLink - # @return [DocumentLink] a new instance of DocumentLink - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#9 - def initialize(range:, target: T.unsafe(nil), tooltip: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#58 - def attributes; end - - # A data entry field that is preserved on a document link between a - # DocumentLinkRequest and a DocumentLinkResolveRequest. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#54 - def data; end - - # The range this link applies to. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#24 - def range; end - - # The uri this link points to. If missing a resolve request is sent later. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#32 - def target; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#60 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#64 - def to_json(*args); end - - # The tooltip text when you hover over this link. - # - # If a tooltip is provided, is will be displayed in a string that includes - # instructions on how to trigger the link, such as `{0} (ctrl + click)`. - # The specific instructions vary depending on OS, user settings, and - # localization. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link.rb#45 - def tooltip; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkClientCapabilities - # @return [DocumentLinkClientCapabilities] a new instance of DocumentLinkClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), tooltip_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#30 - def attributes; end - - # Whether document link supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#18 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#36 - def to_json(*args); end - - # Whether the client supports the `tooltip` property on `DocumentLink`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_client_capabilities.rb#26 - def tooltip_support; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkOptions - # @return [DocumentLinkOptions] a new instance of DocumentLinkOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#27 - def attributes; end - - # Document links have a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#23 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkParams - # @return [DocumentLinkParams] a new instance of DocumentLinkParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#28 - def partial_result_token; end - - # The document to provide document links for. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentLinkRegistrationOptions - # @return [DocumentLinkRegistrationOptions] a new instance of DocumentLinkRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#37 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#20 - def document_selector; end - - # Document links have a resolve provider as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#33 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#43 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_link_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingClientCapabilities - # @return [DocumentOnTypeFormattingClientCapabilities] a new instance of DocumentOnTypeFormattingClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#21 - def attributes; end - - # Whether on type formatting supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingOptions - # @return [DocumentOnTypeFormattingOptions] a new instance of DocumentOnTypeFormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#5 - def initialize(first_trigger_character:, more_trigger_character: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#30 - def attributes; end - - # A character on which formatting should be triggered, like `{`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#18 - def first_trigger_character; end - - # More trigger characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#26 - def more_trigger_character; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_options.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingParams - # @return [DocumentOnTypeFormattingParams] a new instance of DocumentOnTypeFormattingParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#5 - def initialize(text_document:, position:, ch:, options:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#53 - def attributes; end - - # The character that has been typed that triggered the formatting - # on type request. That is not necessarily the last character that - # got inserted into the document since the client could auto insert - # characters as well (e.g. like automatic brace completion). - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#41 - def ch; end - - # The formatting options. - # - # @return [FormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#49 - def options; end - - # The position around which the on type formatting should happen. - # This is not necessarily the exact position where the character denoted - # by the property `ch` got typed. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#30 - def position; end - - # The document to format. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#55 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_params.rb#59 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentOnTypeFormattingRegistrationOptions - # @return [DocumentOnTypeFormattingRegistrationOptions] a new instance of DocumentOnTypeFormattingRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#5 - def initialize(document_selector:, first_trigger_character:, more_trigger_character: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#40 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#20 - def document_selector; end - - # A character on which formatting should be triggered, like `{`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#28 - def first_trigger_character; end - - # More trigger characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#36 - def more_trigger_character; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb#46 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingClientCapabilities - # @return [DocumentRangeFormattingClientCapabilities] a new instance of DocumentRangeFormattingClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#21 - def attributes; end - - # Whether formatting supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingOptions - # @return [DocumentRangeFormattingOptions] a new instance of DocumentRangeFormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingParams - # @return [DocumentRangeFormattingParams] a new instance of DocumentRangeFormattingParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#5 - def initialize(text_document:, range:, options:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#48 - def attributes; end - - # The format options - # - # @return [FormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#44 - def options; end - - # The range to format - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#36 - def range; end - - # The document to format. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#28 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#50 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#54 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentRangeFormattingRegistrationOptions - # @return [DocumentRangeFormattingRegistrationOptions] a new instance of DocumentRangeFormattingRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_range_formatting_registration_options.rb#24 - def work_done_progress; end -end - -# Represents programming constructs like variables, classes, interfaces etc. -# that appear in a document. Document symbols can be hierarchical and they -# have two ranges: one that encloses its definition and one that points to its -# most interesting range, e.g. the range of an identifier. -# -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#10 -class LanguageServer::Protocol::Interface::DocumentSymbol - # @return [DocumentSymbol] a new instance of DocumentSymbol - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#11 - def initialize(name:, kind:, range:, selection_range:, detail: T.unsafe(nil), tags: T.unsafe(nil), deprecated: T.unsafe(nil), children: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#96 - def attributes; end - - # Children of this symbol, e.g. properties of a class. - # - # @return [DocumentSymbol[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#92 - def children; end - - # Indicates if this symbol is deprecated. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#64 - def deprecated; end - - # More detail for this symbol, e.g the signature of a function. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#40 - def detail; end - - # The kind of this symbol. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#48 - def kind; end - - # The name of this symbol. Will be displayed in the user interface and - # therefore must not be an empty string or a string only consisting of - # white spaces. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#32 - def name; end - - # The range enclosing this symbol not including leading/trailing whitespace - # but everything else like comments. This information is typically used to - # determine if the clients cursor is inside the symbol to reveal in the - # symbol in the UI. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#75 - def range; end - - # The range that should be selected and revealed when this symbol is being - # picked, e.g. the name of a function. Must be contained by the `range`. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#84 - def selection_range; end - - # Tags for this document symbol. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#56 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#98 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol.rb#102 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolClientCapabilities - # @return [DocumentSymbolClientCapabilities] a new instance of DocumentSymbolClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), symbol_kind: T.unsafe(nil), hierarchical_document_symbol_support: T.unsafe(nil), tag_support: T.unsafe(nil), label_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#61 - def attributes; end - - # Whether document symbol supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#21 - def dynamic_registration; end - - # The client supports hierarchical document symbols. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#38 - def hierarchical_document_symbol_support; end - - # The client supports an additional label presented in the UI when - # registering a document symbol provider. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#57 - def label_support; end - - # Specific capabilities for the `SymbolKind` in the - # `textDocument/documentSymbol` request. - # - # @return [{ valueSet?: SymbolKind[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#30 - def symbol_kind; end - - # The client supports tags on `SymbolInformation`. Tags are supported on - # `DocumentSymbol` if `hierarchicalDocumentSymbolSupport` is set to true. - # Clients supporting tags have to handle unknown tags gracefully. - # - # @return [{ valueSet: 1[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#48 - def tag_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_client_capabilities.rb#67 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolOptions - # @return [DocumentSymbolOptions] a new instance of DocumentSymbolOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), label: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#28 - def attributes; end - - # A human-readable string that is shown when multiple outlines trees - # are shown for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#24 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolParams - # @return [DocumentSymbolParams] a new instance of DocumentSymbolParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#4 -class LanguageServer::Protocol::Interface::DocumentSymbolRegistrationOptions - # @return [DocumentSymbolRegistrationOptions] a new instance of DocumentSymbolRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), label: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#20 - def document_selector; end - - # A human-readable string that is shown when multiple outlines trees - # are shown for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#34 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/document_symbol_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ExecuteCommandClientCapabilities - # @return [ExecuteCommandClientCapabilities] a new instance of ExecuteCommandClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#21 - def attributes; end - - # Execute command supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#4 -class LanguageServer::Protocol::Interface::ExecuteCommandOptions - # @return [ExecuteCommandOptions] a new instance of ExecuteCommandOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#5 - def initialize(commands:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#27 - def attributes; end - - # The commands to be executed on the server - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#23 - def commands; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#4 -class LanguageServer::Protocol::Interface::ExecuteCommandParams - # @return [ExecuteCommandParams] a new instance of ExecuteCommandParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#5 - def initialize(command:, work_done_token: T.unsafe(nil), arguments: T.unsafe(nil)); end - - # Arguments that the command should be invoked with. - # - # @return [LSPAny[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#35 - def arguments; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#39 - def attributes; end - - # The identifier of the actual command handler. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#27 - def command; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_params.rb#19 - def work_done_token; end -end - -# Execute command registration options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#7 -class LanguageServer::Protocol::Interface::ExecuteCommandRegistrationOptions - # @return [ExecuteCommandRegistrationOptions] a new instance of ExecuteCommandRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#8 - def initialize(commands:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#30 - def attributes; end - - # The commands to be executed on the server - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#26 - def commands; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#36 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execute_command_registration_options.rb#18 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#4 -class LanguageServer::Protocol::Interface::ExecutionSummary - # @return [ExecutionSummary] a new instance of ExecutionSummary - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#5 - def initialize(execution_order:, success: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#33 - def attributes; end - - # A strict monotonically increasing value - # indicating the execution order of a cell - # inside a notebook. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#20 - def execution_order; end - - # Whether the execution was successful or - # not if known by the client. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#29 - def success; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/execution_summary.rb#39 - def to_json(*args); end -end - -# Represents information on a file/folder create. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#7 -class LanguageServer::Protocol::Interface::FileCreate - # @return [FileCreate] a new instance of FileCreate - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#8 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#30 - def to_json(*args); end - - # A file:// URI for the location of the file/folder being created. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_create.rb#20 - def uri; end -end - -# Represents information on a file/folder delete. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#7 -class LanguageServer::Protocol::Interface::FileDelete - # @return [FileDelete] a new instance of FileDelete - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#8 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#30 - def to_json(*args); end - - # A file:// URI for the location of the file/folder being deleted. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_delete.rb#20 - def uri; end -end - -# An event describing a file change. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#7 -class LanguageServer::Protocol::Interface::FileEvent - # @return [FileEvent] a new instance of FileEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#8 - def initialize(uri:, type:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#33 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#39 - def to_json(*args); end - - # The change type. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#29 - def type; end - - # The file's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_event.rb#21 - def uri; end -end - -# A filter to describe in which file operation requests or notifications -# the server is interested in. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#8 -class LanguageServer::Protocol::Interface::FileOperationFilter - # @return [FileOperationFilter] a new instance of FileOperationFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#9 - def initialize(pattern:, scheme: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#34 - def attributes; end - - # The actual file operation pattern. - # - # @return [FileOperationPattern] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#30 - def pattern; end - - # A Uri like `file` or `untitled`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#22 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_filter.rb#40 - def to_json(*args); end -end - -# A pattern to describe in which file operation requests or notifications -# the server is interested in. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#8 -class LanguageServer::Protocol::Interface::FileOperationPattern - # @return [FileOperationPattern] a new instance of FileOperationPattern - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#9 - def initialize(glob:, matches: T.unsafe(nil), options: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#55 - def attributes; end - - # The glob pattern to match. Glob patterns can have the following syntax: - # - `*` to match one or more characters in a path segment - # - `?` to match on one character in a path segment - # - `**` to match any number of path segments, including none - # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` - # matches all TypeScript and JavaScript files) - # - `[]` to declare a range of characters to match in a path segment - # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) - # - `[!...]` to negate a range of characters to match in a path segment - # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but - # not `example.0`) - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#33 - def glob; end - - # Whether to match files or folders with this pattern. - # - # Matches both if undefined. - # - # @return [FileOperationPatternKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#43 - def matches; end - - # Additional options used during matching. - # - # @return [FileOperationPatternOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#51 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#57 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern.rb#61 - def to_json(*args); end -end - -# Matching options for the file operation pattern. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#7 -class LanguageServer::Protocol::Interface::FileOperationPatternOptions - # @return [FileOperationPatternOptions] a new instance of FileOperationPatternOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#8 - def initialize(ignore_case: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#24 - def attributes; end - - # The pattern should be matched ignoring casing. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#20 - def ignore_case; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_pattern_options.rb#30 - def to_json(*args); end -end - -# The options to register for file operations. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#7 -class LanguageServer::Protocol::Interface::FileOperationRegistrationOptions - # @return [FileOperationRegistrationOptions] a new instance of FileOperationRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#8 - def initialize(filters:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#24 - def attributes; end - - # The actual filters. - # - # @return [FileOperationFilter[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#20 - def filters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_operation_registration_options.rb#30 - def to_json(*args); end -end - -# Represents information on a file/folder rename. -# -# source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#7 -class LanguageServer::Protocol::Interface::FileRename - # @return [FileRename] a new instance of FileRename - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#8 - def initialize(old_uri:, new_uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#33 - def attributes; end - - # A file:// URI for the new location of the file/folder being renamed. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#29 - def new_uri; end - - # A file:// URI for the original location of the file/folder being renamed. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#21 - def old_uri; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_rename.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#4 -class LanguageServer::Protocol::Interface::FileSystemWatcher - # @return [FileSystemWatcher] a new instance of FileSystemWatcher - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#5 - def initialize(glob_pattern:, kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#33 - def attributes; end - - # The glob pattern to watch. See {@link GlobPattern glob pattern} - # for more detail. - # - # @return [GlobPattern] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#19 - def glob_pattern; end - - # The kind of events of interest. If omitted it defaults - # to WatchKind.Create | WatchKind.Change | WatchKind.Delete - # which is 7. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#29 - def kind; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/file_system_watcher.rb#39 - def to_json(*args); end -end - -# Represents a folding range. To be valid, start and end line must be bigger -# than zero and smaller than the number of lines in the document. Clients -# are free to ignore invalid ranges. -# -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#9 -class LanguageServer::Protocol::Interface::FoldingRange - # @return [FoldingRange] a new instance of FoldingRange - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#10 - def initialize(start_line:, end_line:, start_character: T.unsafe(nil), end_character: T.unsafe(nil), kind: T.unsafe(nil), collapsed_text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#82 - def attributes; end - - # The text that the client should show when the specified range is - # collapsed. If not defined or not supported by the client, a default - # will be chosen by the client. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#78 - def collapsed_text; end - - # The zero-based character offset before the folded range ends. If not - # defined, defaults to the length of the end line. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#57 - def end_character; end - - # The zero-based end line of the range to fold. The folded area ends with - # the line's last character. To be valid, the end must be zero or larger - # and smaller than the number of lines in the document. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#48 - def end_line; end - - # Describes the kind of the folding range such as `comment` or `region`. - # The kind is used to categorize folding ranges and used by commands like - # 'Fold all comments'. See [FoldingRangeKind](#FoldingRangeKind) for an - # enumeration of standardized kinds. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#68 - def kind; end - - # The zero-based character offset from where the folded range starts. If - # not defined, defaults to the length of the start line. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#38 - def start_character; end - - # The zero-based start line of the range to fold. The folded area starts - # after the line's last character. To be valid, the end must be zero or - # larger and smaller than the number of lines in the document. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#29 - def start_line; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#84 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range.rb#88 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeClientCapabilities - # @return [FoldingRangeClientCapabilities] a new instance of FoldingRangeClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), range_limit: T.unsafe(nil), line_folding_only: T.unsafe(nil), folding_range_kind: T.unsafe(nil), folding_range: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#64 - def attributes; end - - # Whether implementation supports dynamic registration for folding range - # providers. If this is set to `true` the client supports the new - # `FoldingRangeRegistrationOptions` return value for the corresponding - # server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#24 - def dynamic_registration; end - - # Specific options for the folding range. - # - # @return [{ collapsedText?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#60 - def folding_range; end - - # Specific options for the folding range kind. - # - # @return [{ valueSet?: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#52 - def folding_range_kind; end - - # If set, the client signals that it only supports folding complete lines. - # If set, client will ignore specified `startCharacter` and `endCharacter` - # properties in a FoldingRange. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#44 - def line_folding_only; end - - # The maximum number of folding ranges that the client prefers to receive - # per document. The value serves as a hint, servers are free to follow the - # limit. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#34 - def range_limit; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#66 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_client_capabilities.rb#70 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeOptions - # @return [FoldingRangeOptions] a new instance of FoldingRangeOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeParams - # @return [FoldingRangeParams] a new instance of FoldingRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#4 -class LanguageServer::Protocol::Interface::FoldingRangeRegistrationOptions - # @return [FoldingRangeRegistrationOptions] a new instance of FoldingRangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/folding_range_registration_options.rb#25 - def work_done_progress; end -end - -# Value-object describing what options formatting should use. -# -# source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#7 -class LanguageServer::Protocol::Interface::FormattingOptions - # @return [FormattingOptions] a new instance of FormattingOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#8 - def initialize(tab_size:, insert_spaces:, trim_trailing_whitespace: T.unsafe(nil), insert_final_newline: T.unsafe(nil), trim_final_newlines: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#60 - def attributes; end - - # Insert a newline character at the end of the file if one does not exist. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#48 - def insert_final_newline; end - - # Prefer spaces over tabs. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#32 - def insert_spaces; end - - # Size of a tab in spaces. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#24 - def tab_size; end - - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#62 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#66 - def to_json(*args); end - - # Trim all newlines after the final newline at the end of the file. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#56 - def trim_final_newlines; end - - # Trim trailing whitespace on a line. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/formatting_options.rb#40 - def trim_trailing_whitespace; end -end - -# A diagnostic report with a full set of problems. -# -# source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::FullDocumentDiagnosticReport - # @return [FullDocumentDiagnosticReport] a new instance of FullDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#8 - def initialize(kind:, items:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#44 - def attributes; end - - # The actual items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#40 - def items; end - - # A full document diagnostic report. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#22 - def kind; end - - # An optional result id. If provided it will - # be sent on the next diagnostic request for the - # same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#32 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/full_document_diagnostic_report.rb#50 - def to_json(*args); end -end - -# The result of a hover request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#7 -class LanguageServer::Protocol::Interface::Hover - # @return [Hover] a new instance of Hover - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#8 - def initialize(contents:, range: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#34 - def attributes; end - - # The hover's content - # - # @return [MarkupContent | MarkedString | MarkedString[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#21 - def contents; end - - # An optional range is a range inside a text document - # that is used to visualize a hover, e.g. by changing the background color. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#30 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::HoverClientCapabilities - # @return [HoverClientCapabilities] a new instance of HoverClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), content_format: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#32 - def attributes; end - - # Client supports the follow content formats if the content - # property refers to a `literal of type MarkupContent`. - # The order describes the preferred format of the client. - # - # @return [MarkupKind[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#28 - def content_format; end - - # Whether hover supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#18 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#4 -class LanguageServer::Protocol::Interface::HoverOptions - # @return [HoverOptions] a new instance of HoverOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#4 -class LanguageServer::Protocol::Interface::HoverParams - # @return [HoverParams] a new instance of HoverParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#4 -class LanguageServer::Protocol::Interface::HoverRegistrationOptions - # @return [HoverRegistrationOptions] a new instance of HoverRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_registration_options.rb#24 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#4 -class LanguageServer::Protocol::Interface::HoverResult - # @return [HoverResult] a new instance of HoverResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#5 - def initialize(value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#24 - def to_json(*args); end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/hover_result.rb#14 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ImplementationClientCapabilities - # @return [ImplementationClientCapabilities] a new instance of ImplementationClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#32 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `ImplementationRegistrationOptions` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#20 - def dynamic_registration; end - - # The client supports additional metadata in the form of definition links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#28 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#4 -class LanguageServer::Protocol::Interface::ImplementationOptions - # @return [ImplementationOptions] a new instance of ImplementationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#4 -class LanguageServer::Protocol::Interface::ImplementationParams - # @return [ImplementationParams] a new instance of ImplementationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#4 -class LanguageServer::Protocol::Interface::ImplementationRegistrationOptions - # @return [ImplementationRegistrationOptions] a new instance of ImplementationRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/implementation_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#4 -class LanguageServer::Protocol::Interface::InitializeError - # @return [InitializeError] a new instance of InitializeError - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#5 - def initialize(retry:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#24 - def attributes; end - - # Indicates whether the client execute the following retry logic: - # (1) show the message provided by the ResponseError to the user - # (2) user selects retry or cancel - # (3) if user selected retry the initialize method is sent again. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#20 - def retry; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_error.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#4 -class LanguageServer::Protocol::Interface::InitializeParams - # @return [InitializeParams] a new instance of InitializeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#5 - def initialize(process_id:, root_uri:, capabilities:, work_done_token: T.unsafe(nil), client_info: T.unsafe(nil), locale: T.unsafe(nil), root_path: T.unsafe(nil), initialization_options: T.unsafe(nil), trace: T.unsafe(nil), workspace_folders: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#116 - def attributes; end - - # The capabilities provided by the client (editor or tool) - # - # @return [ClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#93 - def capabilities; end - - # Information about the client - # - # @return [{ name: string; version?: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#45 - def client_info; end - - # User provided initialization options. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#85 - def initialization_options; end - - # The locale the client is currently showing the user interface - # in. This must not necessarily be the locale of the operating - # system. - # - # Uses IETF language tags as the value's syntax - # (See https://en.wikipedia.org/wiki/IETF_language_tag) - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#58 - def locale; end - - # The process Id of the parent process that started the server. Is null if - # the process has not been started by another process. If the parent - # process is not alive then the server should exit (see exit notification) - # its process. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#37 - def process_id; end - - # The rootPath of the workspace. Is null - # if no folder is open. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#67 - def root_path; end - - # The rootUri of the workspace. Is null if no - # folder is open. If both `rootPath` and `rootUri` are set - # `rootUri` wins. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#77 - def root_uri; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#118 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#122 - def to_json(*args); end - - # The initial trace setting. If omitted trace is disabled ('off'). - # - # @return [TraceValue] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#101 - def trace; end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#26 - def work_done_token; end - - # The workspace folders configured in the client when the server starts. - # This property is only available if the client supports workspace folders. - # It can be `null` if the client supports workspace folders but none are - # configured. - # - # @return [WorkspaceFolder[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_params.rb#112 - def workspace_folders; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#4 -class LanguageServer::Protocol::Interface::InitializeResult - # @return [InitializeResult] a new instance of InitializeResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#5 - def initialize(capabilities:, server_info: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#30 - def attributes; end - - # The capabilities the language server provides. - # - # @return [ServerCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#18 - def capabilities; end - - # Information about the server. - # - # @return [{ name: string; version?: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#26 - def server_info; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialize_result.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#4 -class LanguageServer::Protocol::Interface::InitializedParams - # @return [InitializedParams] a new instance of InitializedParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#5 - def initialize; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#12 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#14 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/initialized_params.rb#18 - def to_json(*args); end -end - -# Inlay hint information. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#7 -class LanguageServer::Protocol::Interface::InlayHint - # @return [InlayHint] a new instance of InlayHint - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#8 - def initialize(position:, label:, kind: T.unsafe(nil), text_edits: T.unsafe(nil), tooltip: T.unsafe(nil), padding_left: T.unsafe(nil), padding_right: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#110 - def attributes; end - - # A data entry field that is preserved on an inlay hint between - # a `textDocument/inlayHint` and a `inlayHint/resolve` request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#106 - def data; end - - # The kind of this hint. Can be omitted in which case the client - # should fall back to a reasonable default. - # - # @return [InlayHintKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#47 - def kind; end - - # The label of this hint. A human readable string or an array of - # InlayHintLabelPart label parts. - # - # *Note* that neither the string nor the label part can be empty. - # - # @return [string | InlayHintLabelPart[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#38 - def label; end - - # Render padding before the hint. - # - # Note: Padding should use the editor's background color, not the - # background color of the hint itself. That means padding can be used - # to visually align/separate an inlay hint. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#85 - def padding_left; end - - # Render padding after the hint. - # - # Note: Padding should use the editor's background color, not the - # background color of the hint itself. That means padding can be used - # to visually align/separate an inlay hint. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#97 - def padding_right; end - - # The position of this hint. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#27 - def position; end - - # Optional text edits that are performed when accepting this inlay hint. - # - # *Note* that edits are expected to change the document so that the inlay - # hint (or its nearest variant) is now part of the document and the inlay - # hint itself is now obsolete. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [TextEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#62 - def text_edits; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#112 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#116 - def to_json(*args); end - - # The tooltip text when you hover over this item. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint.rb#73 - def tooltip; end -end - -# Inlay hint client capabilities. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlayHintClientCapabilities - # @return [InlayHintClientCapabilities] a new instance of InlayHintClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil), resolve_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#34 - def attributes; end - - # Whether inlay hints support dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#21 - def dynamic_registration; end - - # Indicates which properties a client can resolve lazily on an inlay - # hint. - # - # @return [{ properties: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#30 - def resolve_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb#40 - def to_json(*args); end -end - -# An inlay hint label part allows for interactive and composite labels -# of inlay hints. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#8 -class LanguageServer::Protocol::Interface::InlayHintLabelPart - # @return [InlayHintLabelPart] a new instance of InlayHintLabelPart - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#9 - def initialize(value:, tooltip: T.unsafe(nil), location: T.unsafe(nil), command: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#67 - def attributes; end - - # An optional command for this label part. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [Command] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#63 - def command; end - - # An optional source code location that represents this - # label part. - # - # The editor will use this location for the hover and for code navigation - # features: This part will become a clickable link that resolves to the - # definition of the symbol at the given location (not necessarily the - # location itself), it shows the hover that shows at the given location, - # and it shows a context menu with further code navigation commands. - # - # Depending on the client capability `inlayHint.resolveSupport` clients - # might resolve this property late using the resolve request. - # - # @return [Location] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#52 - def location; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#69 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#73 - def to_json(*args); end - - # The tooltip text when you hover over this label part. Depending on - # the client capability `inlayHint.resolveSupport` clients might resolve - # this property late using the resolve request. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#34 - def tooltip; end - - # The value of this label part. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_label_part.rb#24 - def value; end -end - -# Inlay hint options used during static registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#7 -class LanguageServer::Protocol::Interface::InlayHintOptions - # @return [InlayHintOptions] a new instance of InlayHintOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#8 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#31 - def attributes; end - - # The server provides support to resolve additional - # information for an inlay hint item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#27 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#37 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_options.rb#18 - def work_done_progress; end -end - -# A parameter literal used in inlay hint requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#7 -class LanguageServer::Protocol::Interface::InlayHintParams - # @return [InlayHintParams] a new instance of InlayHintParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#8 - def initialize(text_document:, range:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#42 - def attributes; end - - # The visible document range for which inlay hints should be computed. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#38 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#30 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#44 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#48 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_params.rb#22 - def work_done_token; end -end - -# Inlay hint options used during static or dynamic registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#7 -class LanguageServer::Protocol::Interface::InlayHintRegistrationOptions - # @return [InlayHintRegistrationOptions] a new instance of InlayHintRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#8 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#51 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#38 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#47 - def id; end - - # The server provides support to resolve additional - # information for an inlay hint item. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#29 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#57 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_registration_options.rb#20 - def work_done_progress; end -end - -# Client workspace capabilities specific to inlay hints. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlayHintWorkspaceClientCapabilities - # @return [InlayHintWorkspaceClientCapabilities] a new instance of InlayHintWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#8 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#30 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # inlay hints currently shown. It should be used with absolute care and - # is useful for situation where a server for example detects a project wide - # change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#26 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb#36 - def to_json(*args); end -end - -# Client capabilities specific to inline values. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlineValueClientCapabilities - # @return [InlineValueClientCapabilities] a new instance of InlineValueClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#25 - def attributes; end - - # Whether implementation supports dynamic registration for inline - # value providers. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#21 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_client_capabilities.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#4 -class LanguageServer::Protocol::Interface::InlineValueContext - # @return [InlineValueContext] a new instance of InlineValueContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#5 - def initialize(frame_id:, stopped_location:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#32 - def attributes; end - - # The stack frame (as a DAP Id) where the execution has stopped. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#18 - def frame_id; end - - # The document range where execution has stopped. - # Typically the end position of the range denotes the line where the - # inline values are shown. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#28 - def stopped_location; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_context.rb#38 - def to_json(*args); end -end - -# Provide an inline value through an expression evaluation. -# -# If only a range is specified, the expression will be extracted from the -# underlying document. -# -# An optional expression can be used to override the extracted expression. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#12 -class LanguageServer::Protocol::Interface::InlineValueEvaluatableExpression - # @return [InlineValueEvaluatableExpression] a new instance of InlineValueEvaluatableExpression - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#13 - def initialize(range:, expression: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#40 - def attributes; end - - # If specified the expression overrides the extracted expression. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#36 - def expression; end - - # The document range for which the inline value applies. - # The range is used to extract the evaluatable expression from the - # underlying document. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#28 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb#46 - def to_json(*args); end -end - -# Inline value options used during static registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#7 -class LanguageServer::Protocol::Interface::InlineValueOptions - # @return [InlineValueOptions] a new instance of InlineValueOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#8 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#27 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_options.rb#17 - def work_done_progress; end -end - -# A parameter literal used in inline value requests. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#7 -class LanguageServer::Protocol::Interface::InlineValueParams - # @return [InlineValueParams] a new instance of InlineValueParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#8 - def initialize(text_document:, range:, context:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#52 - def attributes; end - - # Additional information about the context in which inline values were - # requested. - # - # @return [InlineValueContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#48 - def context; end - - # The document range for which inline values should be computed. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#39 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#31 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#58 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_params.rb#23 - def work_done_token; end -end - -# Inline value options used during static or dynamic registration. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#7 -class LanguageServer::Protocol::Interface::InlineValueRegistrationOptions - # @return [InlineValueRegistrationOptions] a new instance of InlineValueRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#8 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#41 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#28 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#37 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#43 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#47 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_registration_options.rb#19 - def work_done_progress; end -end - -# Provide inline value as text. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#7 -class LanguageServer::Protocol::Interface::InlineValueText - # @return [InlineValueText] a new instance of InlineValueText - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#8 - def initialize(range:, text:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#33 - def attributes; end - - # The document range for which the inline value applies. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#21 - def range; end - - # The text of the inline value. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#29 - def text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_text.rb#39 - def to_json(*args); end -end - -# Provide inline value through a variable lookup. -# -# If only a range is specified, the variable name will be extracted from -# the underlying document. -# -# An optional variable name can be used to override the extracted name. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#12 -class LanguageServer::Protocol::Interface::InlineValueVariableLookup - # @return [InlineValueVariableLookup] a new instance of InlineValueVariableLookup - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#13 - def initialize(range:, case_sensitive_lookup:, variable_name: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#49 - def attributes; end - - # How to perform the lookup. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#45 - def case_sensitive_lookup; end - - # The document range for which the inline value applies. - # The range is used to extract the variable name from the underlying - # document. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#29 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#55 - def to_json(*args); end - - # If specified the name of the variable to look up. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_variable_lookup.rb#37 - def variable_name; end -end - -# Client workspace capabilities specific to inline values. -# -# source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::InlineValueWorkspaceClientCapabilities - # @return [InlineValueWorkspaceClientCapabilities] a new instance of InlineValueWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#8 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#30 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # inline values currently shown. It should be used with absolute care and - # is useful for situation where a server for example detect a project wide - # change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#26 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb#36 - def to_json(*args); end -end - -# A special text edit to provide an insert and a replace operation. -# -# source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#7 -class LanguageServer::Protocol::Interface::InsertReplaceEdit - # @return [InsertReplaceEdit] a new instance of InsertReplaceEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#8 - def initialize(new_text:, insert:, replace:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#42 - def attributes; end - - # The range if the insert is requested - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#30 - def insert; end - - # The string to be inserted. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#22 - def new_text; end - - # The range if the replace is requested. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#38 - def replace; end - - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#44 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/insert_replace_edit.rb#48 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeClientCapabilities - # @return [LinkedEditingRangeClientCapabilities] a new instance of LinkedEditingRangeClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#24 - def attributes; end - - # Whether the implementation supports dynamic registration. - # If this is set to `true` the client supports the new - # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeOptions - # @return [LinkedEditingRangeOptions] a new instance of LinkedEditingRangeOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeParams - # @return [LinkedEditingRangeParams] a new instance of LinkedEditingRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRangeRegistrationOptions - # @return [LinkedEditingRangeRegistrationOptions] a new instance of LinkedEditingRangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_range_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#4 -class LanguageServer::Protocol::Interface::LinkedEditingRanges - # @return [LinkedEditingRanges] a new instance of LinkedEditingRanges - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#5 - def initialize(ranges:, word_pattern: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#34 - def attributes; end - - # A list of ranges that can be renamed together. The ranges must have - # identical length and contain identical text content. The ranges cannot - # overlap. - # - # @return [Range[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#20 - def ranges; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#40 - def to_json(*args); end - - # An optional word pattern (regular expression) that describes valid - # contents for the given ranges. If no pattern is provided, the client - # configuration's word pattern will be used. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/linked_editing_ranges.rb#30 - def word_pattern; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/location.rb#4 -class LanguageServer::Protocol::Interface::Location - # @return [Location] a new instance of Location - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#5 - def initialize(uri:, range:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#24 - def attributes; end - - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#20 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#30 - def to_json(*args); end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location.rb#15 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#4 -class LanguageServer::Protocol::Interface::LocationLink - # @return [LocationLink] a new instance of LocationLink - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#5 - def initialize(target_uri:, target_range:, target_selection_range:, origin_selection_range: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#56 - def attributes; end - - # Span of the origin of this link. - # - # Used as the underlined span for mouse interaction. Defaults to the word - # range at the mouse position. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#23 - def origin_selection_range; end - - # The full target range of this link. If the target for example is a symbol - # then target range is the range enclosing this symbol not including - # leading/trailing whitespace but everything else like comments. This - # information is typically used to highlight the range in the editor. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#42 - def target_range; end - - # The range that should be selected and revealed when this link is being - # followed, e.g the name of a function. Must be contained by the - # `targetRange`. See also `DocumentSymbol#range` - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#52 - def target_selection_range; end - - # The target resource identifier of this link. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#31 - def target_uri; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/location_link.rb#62 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#4 -class LanguageServer::Protocol::Interface::LogMessageParams - # @return [LogMessageParams] a new instance of LogMessageParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#5 - def initialize(type:, message:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#30 - def attributes; end - - # The actual message - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#26 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#36 - def to_json(*args); end - - # The message type. See {@link MessageType} - # - # @return [MessageType] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_message_params.rb#18 - def type; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#4 -class LanguageServer::Protocol::Interface::LogTraceParams - # @return [LogTraceParams] a new instance of LogTraceParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#5 - def initialize(message:, verbose: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#31 - def attributes; end - - # The message to be logged. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#18 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#37 - def to_json(*args); end - - # Additional information that can be computed if the `trace` configuration - # is set to `'verbose'` - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/log_trace_params.rb#27 - def verbose; end -end - -# A `MarkupContent` literal represents a string value which content is -# interpreted base on its kind flag. Currently the protocol supports -# `plaintext` and `markdown` as markup kinds. -# -# If the kind is `markdown` then the value can contain fenced code blocks like -# in GitHub issues. -# -# Here is an example how such a string can be constructed using -# JavaScript / TypeScript: -# ```typescript -# let markdown: MarkdownContent = { -# kind: MarkupKind.Markdown, -# value: [ -# '# Header', -# 'Some text', -# '```typescript', -# 'someCode();', -# '```' -# ].join('\n') -# }; -# ``` -# -# *Please Note* that clients might sanitize the return markdown. A client could -# decide to remove HTML from the markdown to avoid script execution. -# -# source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#30 -class LanguageServer::Protocol::Interface::MarkupContent - # @return [MarkupContent] a new instance of MarkupContent - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#31 - def initialize(kind:, value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#56 - def attributes; end - - # The type of the Markup - # - # @return [MarkupKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#44 - def kind; end - - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#62 - def to_json(*args); end - - # The content itself - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/markup_content.rb#52 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/message.rb#4 -class LanguageServer::Protocol::Interface::Message - # @return [Message] a new instance of Message - # - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#5 - def initialize(jsonrpc:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#18 - def attributes; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#14 - def jsonrpc; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message.rb#24 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#4 -class LanguageServer::Protocol::Interface::MessageActionItem - # @return [MessageActionItem] a new instance of MessageActionItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#5 - def initialize(title:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#21 - def attributes; end - - # A short title like 'Retry', 'Open Log' etc. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#17 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/message_action_item.rb#27 - def to_json(*args); end -end - -# Moniker definition to match LSIF 0.5 moniker definition. -# -# source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#7 -class LanguageServer::Protocol::Interface::Moniker - # @return [Moniker] a new instance of Moniker - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#8 - def initialize(scheme:, identifier:, unique:, kind: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#52 - def attributes; end - - # The identifier of the moniker. The value is opaque in LSIF however - # schema owners are allowed to define the structure if they want. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#32 - def identifier; end - - # The moniker kind if known. - # - # @return [MonikerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#48 - def kind; end - - # The scheme of the moniker. For example tsc or .Net - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#23 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#58 - def to_json(*args); end - - # The scope in which the moniker is unique - # - # @return [UniquenessLevel] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker.rb#40 - def unique; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::MonikerClientCapabilities - # @return [MonikerClientCapabilities] a new instance of MonikerClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#24 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `(TextDocumentRegistrationOptions & - # StaticRegistrationOptions)` return value for the corresponding server - # capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#4 -class LanguageServer::Protocol::Interface::MonikerOptions - # @return [MonikerOptions] a new instance of MonikerOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#4 -class LanguageServer::Protocol::Interface::MonikerParams - # @return [MonikerParams] a new instance of MonikerParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#4 -class LanguageServer::Protocol::Interface::MonikerRegistrationOptions - # @return [MonikerRegistrationOptions] a new instance of MonikerRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/moniker_registration_options.rb#24 - def work_done_progress; end -end - -# A notebook cell. -# -# A cell's document URI must be unique across ALL notebook -# cells and can therefore be used to uniquely identify a -# notebook cell or the cell's text document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#11 -class LanguageServer::Protocol::Interface::NotebookCell - # @return [NotebookCell] a new instance of NotebookCell - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#12 - def initialize(kind:, document:, metadata: T.unsafe(nil), execution_summary: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#57 - def attributes; end - - # The URI of the cell's text document - # content. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#36 - def document; end - - # Additional execution summary information - # if supported by the client. - # - # @return [ExecutionSummary] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#53 - def execution_summary; end - - # The cell's kind - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#27 - def kind; end - - # Additional metadata stored with the cell. - # - # @return [LSPObject] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#44 - def metadata; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell.rb#63 - def to_json(*args); end -end - -# A change describing how to move a `NotebookCell` -# array from state S to S'. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#8 -class LanguageServer::Protocol::Interface::NotebookCellArrayChange - # @return [NotebookCellArrayChange] a new instance of NotebookCellArrayChange - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#9 - def initialize(start:, delete_count:, cells: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#43 - def attributes; end - - # The new cells, if any - # - # @return [NotebookCell[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#39 - def cells; end - - # The deleted cells - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#31 - def delete_count; end - - # The start offset of the cell that changed. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#23 - def start; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#45 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_array_change.rb#49 - def to_json(*args); end -end - -# A notebook cell text document filter denotes a cell text -# document by different properties. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#8 -class LanguageServer::Protocol::Interface::NotebookCellTextDocumentFilter - # @return [NotebookCellTextDocumentFilter] a new instance of NotebookCellTextDocumentFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#9 - def initialize(notebook:, language: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#40 - def attributes; end - - # A language id like `python`. - # - # Will be matched against the language id of the - # notebook cell document. '*' matches every language. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#36 - def language; end - - # A filter that matches against the notebook - # containing the notebook cell. If a string - # value is provided it matches against the - # notebook type. '*' matches every notebook. - # - # @return [string | NotebookDocumentFilter] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#25 - def notebook; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb#46 - def to_json(*args); end -end - -# A notebook document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocument - # @return [NotebookDocument] a new instance of NotebookDocument - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#8 - def initialize(uri:, notebook_type:, version:, cells:, metadata: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#62 - def attributes; end - - # The cells of a notebook. - # - # @return [NotebookCell[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#58 - def cells; end - - # Additional metadata stored with the notebook - # document. - # - # @return [LSPObject] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#50 - def metadata; end - - # The type of the notebook. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#32 - def notebook_type; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#64 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#68 - def to_json(*args); end - - # The notebook document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#24 - def uri; end - - # The version number of this document (it will increase after each - # change, including undo/redo). - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document.rb#41 - def version; end -end - -# A change event for a notebook document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentChangeEvent - # @return [NotebookDocumentChangeEvent] a new instance of NotebookDocumentChangeEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#8 - def initialize(metadata: T.unsafe(nil), cells: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#33 - def attributes; end - - # Changes to cells - # - # @return [{ structure?: { array: NotebookCellArrayChange; didOpen?: TextDocumentItem[]; didClose?: TextDocumentIdentifier[]; }; data?: NotebookCell[]; textContent?: { ...; }[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#29 - def cells; end - - # The changed meta data if any. - # - # @return [LSPObject] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#21 - def metadata; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_change_event.rb#39 - def to_json(*args); end -end - -# Capabilities specific to the notebook document support. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentClientCapabilities - # @return [NotebookDocumentClientCapabilities] a new instance of NotebookDocumentClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#8 - def initialize(synchronization:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#24 - def attributes; end - - # Capabilities specific to notebook document synchronization - # - # @return [NotebookDocumentSyncClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#20 - def synchronization; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_client_capabilities.rb#30 - def to_json(*args); end -end - -# A notebook document filter denotes a notebook document by -# different properties. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#8 -class LanguageServer::Protocol::Interface::NotebookDocumentFilter - # @return [NotebookDocumentFilter] a new instance of NotebookDocumentFilter - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#9 - def initialize(notebook_type: T.unsafe(nil), scheme: T.unsafe(nil), pattern: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#67 - def attributes; end - - # The type of the enclosing notebook. - # - # --- OR --- - # - # The type of the enclosing notebook. - # - # --- OR --- - # - # The type of the enclosing notebook. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#31 - def notebook_type; end - - # A glob pattern. - # - # --- OR --- - # - # A glob pattern. - # - # --- OR --- - # - # A glob pattern. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#63 - def pattern; end - - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # --- OR --- - # - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # --- OR --- - # - # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#47 - def scheme; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#69 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_filter.rb#73 - def to_json(*args); end -end - -# A literal to identify a notebook document in the client. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentIdentifier - # @return [NotebookDocumentIdentifier] a new instance of NotebookDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#8 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#24 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#30 - def to_json(*args); end - - # The notebook document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_identifier.rb#20 - def uri; end -end - -# Notebook specific client capabilities. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentSyncClientCapabilities - # @return [NotebookDocumentSyncClientCapabilities] a new instance of NotebookDocumentSyncClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#8 - def initialize(dynamic_registration: T.unsafe(nil), execution_summary_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#36 - def attributes; end - - # Whether implementation supports dynamic registration. If this is - # set to `true` the client supports the new - # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#24 - def dynamic_registration; end - - # The client supports sending execution summary data per cell. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#32 - def execution_summary_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb#42 - def to_json(*args); end -end - -# Options specific to a notebook plus its cells -# to be synced to the server. -# -# If a selector provides a notebook document -# filter but no cell selector all cells of a -# matching notebook document will be synced. -# -# If a selector provides no notebook document -# filter but only a cell selector all notebook -# documents that contain at least one matching -# cell will be synced. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#17 -class LanguageServer::Protocol::Interface::NotebookDocumentSyncOptions - # @return [NotebookDocumentSyncOptions] a new instance of NotebookDocumentSyncOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#18 - def initialize(notebook_selector:, save: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#44 - def attributes; end - - # The notebooks to be synced - # - # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#31 - def notebook_selector; end - - # Whether save notification should be forwarded to - # the server. Will only be honored if mode === `notebook`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#40 - def save; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_options.rb#50 - def to_json(*args); end -end - -# Registration options specific to a notebook. -# -# source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#7 -class LanguageServer::Protocol::Interface::NotebookDocumentSyncRegistrationOptions - # @return [NotebookDocumentSyncRegistrationOptions] a new instance of NotebookDocumentSyncRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#8 - def initialize(notebook_selector:, save: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#44 - def attributes; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#40 - def id; end - - # The notebooks to be synced - # - # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#22 - def notebook_selector; end - - # Whether save notification should be forwarded to - # the server. Will only be honored if mode === `notebook`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#31 - def save; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#4 -class LanguageServer::Protocol::Interface::NotificationMessage - # @return [NotificationMessage] a new instance of NotificationMessage - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#5 - def initialize(jsonrpc:, method:, params: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#36 - def attributes; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#16 - def jsonrpc; end - - # The method to be invoked. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#24 - def method; end - - # The notification's params. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#32 - def params; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/notification_message.rb#42 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#4 -class LanguageServer::Protocol::Interface::OptionalVersionedTextDocumentIdentifier - # @return [OptionalVersionedTextDocumentIdentifier] a new instance of OptionalVersionedTextDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#5 - def initialize(uri:, version:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#38 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#44 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#18 - def uri; end - - # The version number of this document. If an optional versioned text document - # identifier is sent from the server to the client and the file is not - # open in the editor (the server has not received an open notification - # before) the server can send `null` to indicate that the version is - # known and the content on disk is the master (as specified with document - # content ownership). - # - # The version number of a document will increase after each change, - # including undo/redo. The number doesn't need to be consecutive. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb#34 - def version; end -end - -# Represents a parameter of a callable-signature. A parameter can -# have a label and a doc-comment. -# -# source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#8 -class LanguageServer::Protocol::Interface::ParameterInformation - # @return [ParameterInformation] a new instance of ParameterInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#9 - def initialize(label:, documentation: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#44 - def attributes; end - - # The human-readable doc-comment of this parameter. Will be shown - # in the UI but can be omitted. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#40 - def documentation; end - - # The label of this parameter information. - # - # Either a string or an inclusive start and exclusive end offsets within - # its containing signature label. (see SignatureInformation.label). The - # offsets are based on a UTF-16 string representation as `Position` and - # `Range` does. - # - # *Note*: a label of type string should be a substring of its containing - # signature label. Its intended use case is to highlight the parameter - # label part in the `SignatureInformation.label`. - # - # @return [string | [number, number]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#31 - def label; end - - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/parameter_information.rb#50 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#4 -class LanguageServer::Protocol::Interface::PartialResultParams - # @return [PartialResultParams] a new instance of PartialResultParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#5 - def initialize(partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#22 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#18 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#24 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/partial_result_params.rb#28 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/position.rb#4 -class LanguageServer::Protocol::Interface::Position - # @return [Position] a new instance of Position - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#5 - def initialize(line:, character:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#34 - def attributes; end - - # Character offset on a line in a document (zero-based). The meaning of this - # offset is determined by the negotiated `PositionEncodingKind`. - # - # If the character value is greater than the line length it defaults back - # to the line length. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#30 - def character; end - - # Line position in a document (zero-based). - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#18 - def line; end - - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/position.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#4 -class LanguageServer::Protocol::Interface::PrepareRenameParams - # @return [PrepareRenameParams] a new instance of PrepareRenameParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/prepare_rename_params.rb#35 - def work_done_token; end -end - -# A previous result id in a workspace pull request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#7 -class LanguageServer::Protocol::Interface::PreviousResultId - # @return [PreviousResultId] a new instance of PreviousResultId - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#8 - def initialize(uri:, value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#34 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#40 - def to_json(*args); end - - # The URI for which the client knows a - # result id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#22 - def uri; end - - # The value of the previous result id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/previous_result_id.rb#30 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#4 -class LanguageServer::Protocol::Interface::ProgressParams - # @return [ProgressParams] a new instance of ProgressParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#5 - def initialize(token:, value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#30 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#36 - def to_json(*args); end - - # The progress token provided by the client or server. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#18 - def token; end - - # The progress data. - # - # @return [T] - # - # source://language_server-protocol//lib/language_server/protocol/interface/progress_params.rb#26 - def value; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::PublishDiagnosticsClientCapabilities - # @return [PublishDiagnosticsClientCapabilities] a new instance of PublishDiagnosticsClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#5 - def initialize(related_information: T.unsafe(nil), tag_support: T.unsafe(nil), version_support: T.unsafe(nil), code_description_support: T.unsafe(nil), data_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#61 - def attributes; end - - # Client supports a codeDescription property - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#47 - def code_description_support; end - - # Whether code action supports the `data` property which is - # preserved between a `textDocument/publishDiagnostics` and - # `textDocument/codeAction` request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#57 - def data_support; end - - # Whether the clients accepts diagnostics with related information. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#21 - def related_information; end - - # Client supports the tag property to provide meta data about a diagnostic. - # Clients supporting tags have to handle unknown tags gracefully. - # - # @return [{ valueSet: DiagnosticTag[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#30 - def tag_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#63 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#67 - def to_json(*args); end - - # Whether the client interprets the version property of the - # `textDocument/publishDiagnostics` notification's parameter. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb#39 - def version_support; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#4 -class LanguageServer::Protocol::Interface::PublishDiagnosticsParams - # @return [PublishDiagnosticsParams] a new instance of PublishDiagnosticsParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#5 - def initialize(uri:, diagnostics:, version: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#40 - def attributes; end - - # An array of diagnostic information items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#36 - def diagnostics; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#46 - def to_json(*args); end - - # The URI for which diagnostic information is reported. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#19 - def uri; end - - # Optional the version number of the document the diagnostics are published - # for. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/publish_diagnostics_params.rb#28 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/range.rb#4 -class LanguageServer::Protocol::Interface::Range - # @return [Range] a new instance of Range - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#5 - def initialize(start:, end:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#30 - def attributes; end - - # The range's end position. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#26 - def end; end - - # The range's start position. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#18 - def start; end - - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/range.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ReferenceClientCapabilities - # @return [ReferenceClientCapabilities] a new instance of ReferenceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#21 - def attributes; end - - # Whether references supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#17 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_client_capabilities.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#4 -class LanguageServer::Protocol::Interface::ReferenceContext - # @return [ReferenceContext] a new instance of ReferenceContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#5 - def initialize(include_declaration:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#21 - def attributes; end - - # Include the declaration of the current symbol. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#17 - def include_declaration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_context.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#4 -class LanguageServer::Protocol::Interface::ReferenceOptions - # @return [ReferenceOptions] a new instance of ReferenceOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#4 -class LanguageServer::Protocol::Interface::ReferenceParams - # @return [ReferenceParams] a new instance of ReferenceParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#5 - def initialize(text_document:, position:, context:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#55 - def attributes; end - - # @return [ReferenceContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#51 - def context; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#46 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#29 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#21 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#57 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#61 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_params.rb#37 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#4 -class LanguageServer::Protocol::Interface::ReferenceRegistrationOptions - # @return [ReferenceRegistrationOptions] a new instance of ReferenceRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#28 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#19 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/reference_registration_options.rb#24 - def work_done_progress; end -end - -# General parameters to register for a capability. -# -# source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#7 -class LanguageServer::Protocol::Interface::Registration - # @return [Registration] a new instance of Registration - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#8 - def initialize(id:, method:, register_options: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#43 - def attributes; end - - # The id used to register the request. The id can be used to deregister - # the request again. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#23 - def id; end - - # The method / capability to register for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#31 - def method; end - - # Options necessary for the registration. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#39 - def register_options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#45 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration.rb#49 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#4 -class LanguageServer::Protocol::Interface::RegistrationParams - # @return [RegistrationParams] a new instance of RegistrationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#5 - def initialize(registrations:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#18 - def attributes; end - - # @return [Registration[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#14 - def registrations; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/registration_params.rb#24 - def to_json(*args); end -end - -# Client capabilities specific to regular expressions. -# -# source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::RegularExpressionsClientCapabilities - # @return [RegularExpressionsClientCapabilities] a new instance of RegularExpressionsClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#8 - def initialize(engine:, version: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#33 - def attributes; end - - # The engine's name. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#21 - def engine; end - - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#39 - def to_json(*args); end - - # The engine's version. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb#29 - def version; end -end - -# A full diagnostic report with a set of related documents. -# -# source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::RelatedFullDocumentDiagnosticReport - # @return [RelatedFullDocumentDiagnosticReport] a new instance of RelatedFullDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#8 - def initialize(kind:, items:, result_id: T.unsafe(nil), related_documents: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#57 - def attributes; end - - # The actual items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#41 - def items; end - - # A full document diagnostic report. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#23 - def kind; end - - # Diagnostics of related documents. This information is useful - # in programming languages where code in a file A can generate - # diagnostics in a file B which A depends on. An example of - # such a language is C/C++ where marco definitions in a file - # a.cpp and result in errors in a header file b.hpp. - # - # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#53 - def related_documents; end - - # An optional result id. If provided it will - # be sent on the next diagnostic request for the - # same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#33 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb#63 - def to_json(*args); end -end - -# An unchanged diagnostic report with a set of related documents. -# -# source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::RelatedUnchangedDocumentDiagnosticReport - # @return [RelatedUnchangedDocumentDiagnosticReport] a new instance of RelatedUnchangedDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#8 - def initialize(kind:, result_id:, related_documents: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#50 - def attributes; end - - # A document diagnostic report indicating - # no changes to the last result. A server can - # only return `unchanged` if result ids are - # provided. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#25 - def kind; end - - # Diagnostics of related documents. This information is useful - # in programming languages where code in a file A can generate - # diagnostics in a file B which A depends on. An example of - # such a language is C/C++ where marco definitions in a file - # a.cpp and result in errors in a header file b.hpp. - # - # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#46 - def related_documents; end - - # A result id which will be sent on the next - # diagnostic request for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#34 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb#56 - def to_json(*args); end -end - -# A relative pattern is a helper to construct glob patterns that are matched -# relatively to a base URI. The common value for a `baseUri` is a workspace -# folder root, but it can be another absolute URI as well. -# -# source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#9 -class LanguageServer::Protocol::Interface::RelativePattern - # @return [RelativePattern] a new instance of RelativePattern - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#10 - def initialize(base_uri:, pattern:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#36 - def attributes; end - - # A workspace folder or a base URI to which this pattern will be matched - # against relatively. - # - # @return [string | WorkspaceFolder] - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#24 - def base_uri; end - - # The actual glob pattern; - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#32 - def pattern; end - - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/relative_pattern.rb#42 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::RenameClientCapabilities - # @return [RenameClientCapabilities] a new instance of RenameClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), prepare_support: T.unsafe(nil), prepare_support_default_behavior: T.unsafe(nil), honors_change_annotations: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#57 - def attributes; end - - # Whether rename supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#20 - def dynamic_registration; end - - # Whether the client honors the change annotations in - # text edits and resource operations returned via the - # rename request's workspace edit by for example presenting - # the workspace edit in the user interface and asking - # for confirmation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#53 - def honors_change_annotations; end - - # Client supports testing for validity of rename operations - # before execution. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#29 - def prepare_support; end - - # Client supports the default behavior result - # (`{ defaultBehavior: boolean }`). - # - # The value indicates the default behavior used by the - # client. - # - # @return [1] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#41 - def prepare_support_default_behavior; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_client_capabilities.rb#63 - def to_json(*args); end -end - -# Rename file operation -# -# source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#7 -class LanguageServer::Protocol::Interface::RenameFile - # @return [RenameFile] a new instance of RenameFile - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#8 - def initialize(kind:, old_uri:, new_uri:, options: T.unsafe(nil), annotation_id: T.unsafe(nil)); end - - # An optional annotation identifier describing the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#56 - def annotation_id; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#60 - def attributes; end - - # A rename - # - # @return ["rename"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#24 - def kind; end - - # The new location. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#40 - def new_uri; end - - # The old (existing) location. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#32 - def old_uri; end - - # Rename options. - # - # @return [RenameFileOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#48 - def options; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#62 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file.rb#66 - def to_json(*args); end -end - -# Rename file options -# -# source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#7 -class LanguageServer::Protocol::Interface::RenameFileOptions - # @return [RenameFileOptions] a new instance of RenameFileOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#8 - def initialize(overwrite: T.unsafe(nil), ignore_if_exists: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#33 - def attributes; end - - # Ignores if target exists. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#29 - def ignore_if_exists; end - - # Overwrite target if existing. Overwrite wins over `ignoreIfExists` - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#21 - def overwrite; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_file_options.rb#39 - def to_json(*args); end -end - -# The parameters sent in notifications/requests for user-initiated renames -# of files. -# -# source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#8 -class LanguageServer::Protocol::Interface::RenameFilesParams - # @return [RenameFilesParams] a new instance of RenameFilesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#9 - def initialize(files:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#26 - def attributes; end - - # An array of all files/folders renamed in this operation. When a folder - # is renamed, only the folder will be included, and not its children. - # - # @return [FileRename[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#22 - def files; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#28 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_files_params.rb#32 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#4 -class LanguageServer::Protocol::Interface::RenameOptions - # @return [RenameOptions] a new instance of RenameOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), prepare_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#27 - def attributes; end - - # Renames should be checked and tested before being executed. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#23 - def prepare_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#33 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_options.rb#15 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#4 -class LanguageServer::Protocol::Interface::RenameParams - # @return [RenameParams] a new instance of RenameParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#5 - def initialize(text_document:, position:, new_name:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#50 - def attributes; end - - # The new name of the symbol. If the given name is not valid the - # request must return a [ResponseError](#ResponseError) with an - # appropriate message set. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#46 - def new_name; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#56 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#4 -class LanguageServer::Protocol::Interface::RenameRegistrationOptions - # @return [RenameRegistrationOptions] a new instance of RenameRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), prepare_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#37 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#20 - def document_selector; end - - # Renames should be checked and tested before being executed. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#33 - def prepare_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#43 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/rename_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#4 -class LanguageServer::Protocol::Interface::RequestMessage - # @return [RequestMessage] a new instance of RequestMessage - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#5 - def initialize(jsonrpc:, id:, method:, params: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#45 - def attributes; end - - # The request id. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#25 - def id; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#17 - def jsonrpc; end - - # The method to be invoked. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#33 - def method; end - - # The method's params. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#41 - def params; end - - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#47 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/request_message.rb#51 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#4 -class LanguageServer::Protocol::Interface::ResponseError - # @return [ResponseError] a new instance of ResponseError - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#5 - def initialize(code:, message:, data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#40 - def attributes; end - - # A number indicating the error type that occurred. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#19 - def code; end - - # A primitive or structured value that contains additional - # information about the error. Can be omitted. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#36 - def data; end - - # A string providing a short description of the error. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#27 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_error.rb#46 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#4 -class LanguageServer::Protocol::Interface::ResponseMessage - # @return [ResponseMessage] a new instance of ResponseMessage - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#5 - def initialize(jsonrpc:, id:, result: T.unsafe(nil), error: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#46 - def attributes; end - - # The error object in case a request fails. - # - # @return [ResponseError] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#42 - def error; end - - # The request id. - # - # @return [string | number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#25 - def id; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#17 - def jsonrpc; end - - # The result of a request. This member is REQUIRED on success. - # This member MUST NOT exist if there was an error invoking the method. - # - # @return [string | number | boolean | object] - # - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#34 - def result; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#48 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/response_message.rb#52 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#4 -class LanguageServer::Protocol::Interface::SaveOptions - # @return [SaveOptions] a new instance of SaveOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#5 - def initialize(include_text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#21 - def attributes; end - - # The client is supposed to include the content on save. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#17 - def include_text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/save_options.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#4 -class LanguageServer::Protocol::Interface::SelectionRange - # @return [SelectionRange] a new instance of SelectionRange - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#5 - def initialize(range:, parent: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#31 - def attributes; end - - # The parent selection range containing this range. Therefore - # `parent.range` must contain `this.range`. - # - # @return [SelectionRange] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#27 - def parent; end - - # The [range](#Range) of this selection range. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#18 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeClientCapabilities - # @return [SelectionRangeClientCapabilities] a new instance of SelectionRangeClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#24 - def attributes; end - - # Whether implementation supports dynamic registration for selection range - # providers. If this is set to `true` the client supports the new - # `SelectionRangeRegistrationOptions` return value for the corresponding - # server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeOptions - # @return [SelectionRangeOptions] a new instance of SelectionRangeOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeParams - # @return [SelectionRangeParams] a new instance of SelectionRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#5 - def initialize(text_document:, positions:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#29 - def partial_result_token; end - - # The positions inside the text document. - # - # @return [Position[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#45 - def positions; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#37 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#4 -class LanguageServer::Protocol::Interface::SelectionRangeRegistrationOptions - # @return [SelectionRangeRegistrationOptions] a new instance of SelectionRangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#25 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/selection_range_registration_options.rb#16 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokens - # @return [SemanticTokens] a new instance of SemanticTokens - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#5 - def initialize(data:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#33 - def attributes; end - - # The actual tokens. - # - # @return [number[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#29 - def data; end - - # An optional result id. If provided and clients support delta updating - # the client will include the result id in the next semantic token request. - # A server can then instead of computing all semantic tokens again simply - # send a delta. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#21 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensClientCapabilities - # @return [SemanticTokensClientCapabilities] a new instance of SemanticTokensClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#5 - def initialize(requests:, token_types:, token_modifiers:, formats:, dynamic_registration: T.unsafe(nil), overlapping_token_support: T.unsafe(nil), multiline_token_support: T.unsafe(nil), server_cancel_support: T.unsafe(nil), augments_syntax_tokens: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#113 - def attributes; end - - # Whether the client uses semantic tokens to augment existing - # syntax tokens. If set to `true` client side created syntax - # tokens and semantic tokens are both used for colorization. If - # set to `false` the client only uses the returned semantic tokens - # for colorization. - # - # If the value is `undefined` then the client behavior is not - # specified. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#109 - def augments_syntax_tokens; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `(TextDocumentRegistrationOptions & - # StaticRegistrationOptions)` return value for the corresponding server - # capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#28 - def dynamic_registration; end - - # The formats the clients supports. - # - # @return ["relative"[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#67 - def formats; end - - # Whether the client supports tokens that can span multiple lines. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#83 - def multiline_token_support; end - - # Whether the client supports tokens that can overlap each other. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#75 - def overlapping_token_support; end - - # Which requests the client supports and might send to the server - # depending on the server's capability. Please note that clients might not - # show semantic tokens or degrade some of the user experience if a range - # or full request is advertised by the client but not provided by the - # server. If for example the client capability `requests.full` and - # `request.range` are both set to true but the server only provides a - # range provider the client might not render a minimap correctly or might - # even decide to not show any semantic tokens at all. - # - # @return [{ range?: boolean | {}; full?: boolean | { delta?: boolean; }; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#43 - def requests; end - - # Whether the client allows the server to actively cancel a - # semantic token request, e.g. supports returning - # ErrorCodes.ServerCancelled. If a server does the client - # needs to retrigger the request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#94 - def server_cancel_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#115 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#119 - def to_json(*args); end - - # The token modifiers that the client supports. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#59 - def token_modifiers; end - - # The token types that the client supports. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb#51 - def token_types; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensDelta - # @return [SemanticTokensDelta] a new instance of SemanticTokensDelta - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#5 - def initialize(edits:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#28 - def attributes; end - - # The semantic token edits to transform a previous result into a new - # result. - # - # @return [SemanticTokensEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#24 - def edits; end - - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#15 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta.rb#34 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensDeltaParams - # @return [SemanticTokensDeltaParams] a new instance of SemanticTokensDeltaParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#5 - def initialize(text_document:, previous_result_id:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#50 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#29 - def partial_result_token; end - - # The result id of a previous response. The result Id can either point to - # a full response or a delta response depending on what was received last. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#46 - def previous_result_id; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#37 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#56 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensDeltaPartialResult - # @return [SemanticTokensDeltaPartialResult] a new instance of SemanticTokensDeltaPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#5 - def initialize(edits:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#18 - def attributes; end - - # @return [SemanticTokensEdit[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#14 - def edits; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb#24 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensEdit - # @return [SemanticTokensEdit] a new instance of SemanticTokensEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#5 - def initialize(start:, delete_count:, data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#39 - def attributes; end - - # The elements to insert. - # - # @return [number[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#35 - def data; end - - # The count of elements to remove. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#27 - def delete_count; end - - # The start offset of the edit. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#19 - def start; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_edit.rb#45 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensLegend - # @return [SemanticTokensLegend] a new instance of SemanticTokensLegend - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#5 - def initialize(token_types:, token_modifiers:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#30 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#36 - def to_json(*args); end - - # The token modifiers a server uses. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#26 - def token_modifiers; end - - # The token types a server uses. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_legend.rb#18 - def token_types; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensOptions - # @return [SemanticTokensOptions] a new instance of SemanticTokensOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#5 - def initialize(legend:, work_done_progress: T.unsafe(nil), range: T.unsafe(nil), full: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#46 - def attributes; end - - # Server supports providing semantic tokens for a full document. - # - # @return [boolean | { delta?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#42 - def full; end - - # The legend used by the server - # - # @return [SemanticTokensLegend] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#25 - def legend; end - - # Server supports providing semantic tokens for a specific range - # of a document. - # - # @return [boolean | {}] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#34 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#48 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#52 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_options.rb#17 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensParams - # @return [SemanticTokensParams] a new instance of SemanticTokensParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#5 - def initialize(text_document:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#40 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#28 - def partial_result_token; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#36 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#42 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#46 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensPartialResult - # @return [SemanticTokensPartialResult] a new instance of SemanticTokensPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#5 - def initialize(data:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#18 - def attributes; end - - # @return [number[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#14 - def data; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_partial_result.rb#24 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensRangeParams - # @return [SemanticTokensRangeParams] a new instance of SemanticTokensRangeParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#5 - def initialize(text_document:, range:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#29 - def partial_result_token; end - - # The range the semantic tokens are requested for. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#45 - def range; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#37 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_range_params.rb#20 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensRegistrationOptions - # @return [SemanticTokensRegistrationOptions] a new instance of SemanticTokensRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#5 - def initialize(document_selector:, legend:, work_done_progress: T.unsafe(nil), range: T.unsafe(nil), full: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#66 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#23 - def document_selector; end - - # Server supports providing semantic tokens for a full document. - # - # @return [boolean | { delta?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#53 - def full; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#62 - def id; end - - # The legend used by the server - # - # @return [SemanticTokensLegend] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#36 - def legend; end - - # Server supports providing semantic tokens for a specific range - # of a document. - # - # @return [boolean | {}] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#45 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#68 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#72 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_registration_options.rb#28 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SemanticTokensWorkspaceClientCapabilities - # @return [SemanticTokensWorkspaceClientCapabilities] a new instance of SemanticTokensWorkspaceClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#5 - def initialize(refresh_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#27 - def attributes; end - - # Whether the client implementation supports a refresh request sent from - # the server to the client. - # - # Note that this event is global and will force the client to refresh all - # semantic tokens currently shown. It should be used with absolute care - # and is useful for situation where a server for example detect a project - # wide change that requires such a calculation. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#23 - def refresh_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#29 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb#33 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#4 -class LanguageServer::Protocol::Interface::ServerCapabilities - # @return [ServerCapabilities] a new instance of ServerCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#5 - def initialize(position_encoding: T.unsafe(nil), text_document_sync: T.unsafe(nil), notebook_document_sync: T.unsafe(nil), completion_provider: T.unsafe(nil), hover_provider: T.unsafe(nil), signature_help_provider: T.unsafe(nil), declaration_provider: T.unsafe(nil), definition_provider: T.unsafe(nil), type_definition_provider: T.unsafe(nil), implementation_provider: T.unsafe(nil), references_provider: T.unsafe(nil), document_highlight_provider: T.unsafe(nil), document_symbol_provider: T.unsafe(nil), code_action_provider: T.unsafe(nil), code_lens_provider: T.unsafe(nil), document_link_provider: T.unsafe(nil), color_provider: T.unsafe(nil), document_formatting_provider: T.unsafe(nil), document_range_formatting_provider: T.unsafe(nil), document_on_type_formatting_provider: T.unsafe(nil), rename_provider: T.unsafe(nil), folding_range_provider: T.unsafe(nil), execute_command_provider: T.unsafe(nil), selection_range_provider: T.unsafe(nil), linked_editing_range_provider: T.unsafe(nil), call_hierarchy_provider: T.unsafe(nil), semantic_tokens_provider: T.unsafe(nil), moniker_provider: T.unsafe(nil), type_hierarchy_provider: T.unsafe(nil), inline_value_provider: T.unsafe(nil), inlay_hint_provider: T.unsafe(nil), diagnostic_provider: T.unsafe(nil), workspace_symbol_provider: T.unsafe(nil), workspace: T.unsafe(nil), experimental: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#340 - def attributes; end - - # The server provides call hierarchy support. - # - # @return [boolean | CallHierarchyOptions | CallHierarchyRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#264 - def call_hierarchy_provider; end - - # The server provides code actions. The `CodeActionOptions` return type is - # only valid if the client signals code action literal support via the - # property `textDocument.codeAction.codeActionLiteralSupport`. - # - # @return [boolean | CodeActionOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#166 - def code_action_provider; end - - # The server provides code lens. - # - # @return [CodeLensOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#174 - def code_lens_provider; end - - # The server provides color provider support. - # - # @return [boolean | DocumentColorOptions | DocumentColorRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#190 - def color_provider; end - - # The server provides completion support. - # - # @return [CompletionOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#84 - def completion_provider; end - - # The server provides go to declaration support. - # - # @return [boolean | DeclarationOptions | DeclarationRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#108 - def declaration_provider; end - - # The server provides goto definition support. - # - # @return [boolean | DefinitionOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#116 - def definition_provider; end - - # The server has support for pull model diagnostics. - # - # @return [DiagnosticOptions | DiagnosticRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#312 - def diagnostic_provider; end - - # The server provides document formatting. - # - # @return [boolean | DocumentFormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#198 - def document_formatting_provider; end - - # The server provides document highlight support. - # - # @return [boolean | DocumentHighlightOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#148 - def document_highlight_provider; end - - # The server provides document link support. - # - # @return [DocumentLinkOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#182 - def document_link_provider; end - - # The server provides document formatting on typing. - # - # @return [DocumentOnTypeFormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#214 - def document_on_type_formatting_provider; end - - # The server provides document range formatting. - # - # @return [boolean | DocumentRangeFormattingOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#206 - def document_range_formatting_provider; end - - # The server provides document symbol support. - # - # @return [boolean | DocumentSymbolOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#156 - def document_symbol_provider; end - - # The server provides execute command support. - # - # @return [ExecuteCommandOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#240 - def execute_command_provider; end - - # Experimental server capabilities. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#336 - def experimental; end - - # The server provides folding provider support. - # - # @return [boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#232 - def folding_range_provider; end - - # The server provides hover support. - # - # @return [boolean | HoverOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#92 - def hover_provider; end - - # The server provides goto implementation support. - # - # @return [boolean | ImplementationOptions | ImplementationRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#132 - def implementation_provider; end - - # The server provides inlay hints. - # - # @return [boolean | InlayHintOptions | InlayHintRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#304 - def inlay_hint_provider; end - - # The server provides inline values. - # - # @return [boolean | InlineValueOptions | InlineValueRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#296 - def inline_value_provider; end - - # The server provides linked editing range support. - # - # @return [boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#256 - def linked_editing_range_provider; end - - # Whether server provides moniker support. - # - # @return [boolean | MonikerOptions | MonikerRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#280 - def moniker_provider; end - - # Defines how notebook documents are synced. - # - # @return [NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#76 - def notebook_document_sync; end - - # The position encoding the server picked from the encodings offered - # by the client via the client capability `general.positionEncodings`. - # - # If the client didn't provide any position encodings the only valid - # value that a server can return is 'utf-16'. - # - # If omitted it defaults to 'utf-16'. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#57 - def position_encoding; end - - # The server provides find references support. - # - # @return [boolean | ReferenceOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#140 - def references_provider; end - - # The server provides rename support. RenameOptions may only be - # specified if the client states that it supports - # `prepareSupport` in its initial `initialize` request. - # - # @return [boolean | RenameOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#224 - def rename_provider; end - - # The server provides selection range support. - # - # @return [boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#248 - def selection_range_provider; end - - # The server provides semantic tokens support. - # - # @return [SemanticTokensOptions | SemanticTokensRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#272 - def semantic_tokens_provider; end - - # The server provides signature help support. - # - # @return [SignatureHelpOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#100 - def signature_help_provider; end - - # Defines how text documents are synced. Is either a detailed structure - # defining each notification or for backwards compatibility the - # TextDocumentSyncKind number. If omitted it defaults to - # `TextDocumentSyncKind.None`. - # - # @return [TextDocumentSyncOptions | TextDocumentSyncKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#68 - def text_document_sync; end - - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#342 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#346 - def to_json(*args); end - - # The server provides goto type definition support. - # - # @return [boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#124 - def type_definition_provider; end - - # The server provides type hierarchy support. - # - # @return [boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#288 - def type_hierarchy_provider; end - - # Workspace specific server capabilities - # - # @return [{ workspaceFolders?: WorkspaceFoldersServerCapabilities; fileOperations?: { didCreate?: FileOperationRegistrationOptions; ... 4 more ...; willDelete?: FileOperationRegistrationOptions; }; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#328 - def workspace; end - - # The server provides workspace symbol support. - # - # @return [boolean | WorkspaceSymbolOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/server_capabilities.rb#320 - def workspace_symbol_provider; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#4 -class LanguageServer::Protocol::Interface::SetTraceParams - # @return [SetTraceParams] a new instance of SetTraceParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#5 - def initialize(value:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#27 - def to_json(*args); end - - # The new value that should be assigned to the trace setting. - # - # @return [TraceValue] - # - # source://language_server-protocol//lib/language_server/protocol/interface/set_trace_params.rb#17 - def value; end -end - -# Client capabilities for the show document request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::ShowDocumentClientCapabilities - # @return [ShowDocumentClientCapabilities] a new instance of ShowDocumentClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#8 - def initialize(support:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#25 - def attributes; end - - # The client has support for the show document - # request. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#21 - def support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_client_capabilities.rb#31 - def to_json(*args); end -end - -# Params to show a resource. -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#7 -class LanguageServer::Protocol::Interface::ShowDocumentParams - # @return [ShowDocumentParams] a new instance of ShowDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#8 - def initialize(uri:, external: T.unsafe(nil), take_focus: T.unsafe(nil), selection: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#59 - def attributes; end - - # Indicates to show the resource in an external program. - # To show, for example, `https://code.visualstudio.com/` - # in the default WEB browser set `external` to `true`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#33 - def external; end - - # An optional selection range if the document is a text - # document. Clients might ignore the property if an - # external program is started or the file is not a text - # file. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#55 - def selection; end - - # An optional property to indicate whether the editor - # showing the document should take focus or not. - # Clients might ignore this property if an external - # program is started. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#44 - def take_focus; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#61 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#65 - def to_json(*args); end - - # The uri to show. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_params.rb#23 - def uri; end -end - -# The result of an show document request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#7 -class LanguageServer::Protocol::Interface::ShowDocumentResult - # @return [ShowDocumentResult] a new instance of ShowDocumentResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#8 - def initialize(success:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#24 - def attributes; end - - # A boolean indicating if the show was successful. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#20 - def success; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_document_result.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#4 -class LanguageServer::Protocol::Interface::ShowMessageParams - # @return [ShowMessageParams] a new instance of ShowMessageParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#5 - def initialize(type:, message:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#30 - def attributes; end - - # The actual message. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#26 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#36 - def to_json(*args); end - - # The message type. See {@link MessageType}. - # - # @return [MessageType] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_params.rb#18 - def type; end -end - -# Show message request client capabilities -# -# source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::ShowMessageRequestClientCapabilities - # @return [ShowMessageRequestClientCapabilities] a new instance of ShowMessageRequestClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#8 - def initialize(message_action_item: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#24 - def attributes; end - - # Capabilities specific to the `MessageActionItem` type. - # - # @return [{ additionalPropertiesSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#20 - def message_action_item; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#26 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_client_capabilities.rb#30 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#4 -class LanguageServer::Protocol::Interface::ShowMessageRequestParams - # @return [ShowMessageRequestParams] a new instance of ShowMessageRequestParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#5 - def initialize(type:, message:, actions: T.unsafe(nil)); end - - # The message action items to present. - # - # @return [MessageActionItem[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#35 - def actions; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#39 - def attributes; end - - # The actual message - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#27 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#45 - def to_json(*args); end - - # The message type. See {@link MessageType} - # - # @return [MessageType] - # - # source://language_server-protocol//lib/language_server/protocol/interface/show_message_request_params.rb#19 - def type; end -end - -# Signature help represents the signature of something -# callable. There can be multiple signature but only one -# active and only one active parameter. -# -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#9 -class LanguageServer::Protocol::Interface::SignatureHelp - # @return [SignatureHelp] a new instance of SignatureHelp - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#10 - def initialize(signatures:, active_signature: T.unsafe(nil), active_parameter: T.unsafe(nil)); end - - # The active parameter of the active signature. If omitted or the value - # lies outside the range of `signatures[activeSignature].parameters` - # defaults to 0 if the active signature has parameters. If - # the active signature has no parameters it is ignored. - # In future version of the protocol this property might become - # mandatory to better express the active parameter if the - # active signature does have any. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#55 - def active_parameter; end - - # The active signature. If omitted or the value lies outside the - # range of `signatures` the value defaults to zero or is ignore if - # the `SignatureHelp` as no signatures. - # - # Whenever possible implementors should make an active decision about - # the active signature and shouldn't rely on a default value. - # - # In future version of the protocol this property might become - # mandatory to better express this. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#41 - def active_signature; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#59 - def attributes; end - - # One or more signatures. If no signatures are available the signature help - # request should return `null`. - # - # @return [SignatureInformation[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#25 - def signatures; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#61 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help.rb#65 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpClientCapabilities - # @return [SignatureHelpClientCapabilities] a new instance of SignatureHelpClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), signature_information: T.unsafe(nil), context_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#43 - def attributes; end - - # The client supports to send additional context information for a - # `textDocument/signatureHelp` request. A client that opts into - # contextSupport will also support the `retriggerCharacters` on - # `SignatureHelpOptions`. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#39 - def context_support; end - - # Whether signature help supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#19 - def dynamic_registration; end - - # The client supports the following `SignatureInformation` - # specific properties. - # - # @return [{ documentationFormat?: MarkupKind[]; parameterInformation?: { labelOffsetSupport?: boolean; }; activeParameterSupport?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#28 - def signature_information; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#45 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_client_capabilities.rb#49 - def to_json(*args); end -end - -# Additional information about the context in which a signature help request -# was triggered. -# -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#8 -class LanguageServer::Protocol::Interface::SignatureHelpContext - # @return [SignatureHelpContext] a new instance of SignatureHelpContext - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#9 - def initialize(trigger_kind:, is_retrigger:, trigger_character: T.unsafe(nil), active_signature_help: T.unsafe(nil)); end - - # The currently active `SignatureHelp`. - # - # The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field - # updated based on the user navigating through available signatures. - # - # @return [SignatureHelp] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#58 - def active_signature_help; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#62 - def attributes; end - - # `true` if signature help was already showing when it was triggered. - # - # Retriggers occur when the signature help is already active and can be - # caused by actions such as typing a trigger character, a cursor move, or - # document content changes. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#47 - def is_retrigger; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#64 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#68 - def to_json(*args); end - - # Character that caused signature help to be triggered. - # - # This is undefined when triggerKind !== - # SignatureHelpTriggerKind.TriggerCharacter - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#35 - def trigger_character; end - - # Action that caused signature help to be triggered. - # - # @return [SignatureHelpTriggerKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_context.rb#24 - def trigger_kind; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpOptions - # @return [SignatureHelpOptions] a new instance of SignatureHelpOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), retrigger_characters: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#41 - def attributes; end - - # List of characters that re-trigger signature help. - # - # These trigger characters are only active when signature help is already - # showing. All trigger characters are also counted as re-trigger - # characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#37 - def retrigger_characters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#43 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#47 - def to_json(*args); end - - # The characters that trigger signature help - # automatically. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#25 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_options.rb#16 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpParams - # @return [SignatureHelpParams] a new instance of SignatureHelpParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), context: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#50 - def attributes; end - - # The signature help context. This is only available if the client - # specifies to send this using the client capability - # `textDocument.signatureHelp.contextSupport === true` - # - # @return [SignatureHelpContext] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#46 - def context; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#56 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#4 -class LanguageServer::Protocol::Interface::SignatureHelpRegistrationOptions - # @return [SignatureHelpRegistrationOptions] a new instance of SignatureHelpRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), trigger_characters: T.unsafe(nil), retrigger_characters: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#51 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#21 - def document_selector; end - - # List of characters that re-trigger signature help. - # - # These trigger characters are only active when signature help is already - # showing. All trigger characters are also counted as re-trigger - # characters. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#47 - def retrigger_characters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#53 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#57 - def to_json(*args); end - - # The characters that trigger signature help - # automatically. - # - # @return [string[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#35 - def trigger_characters; end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_help_registration_options.rb#26 - def work_done_progress; end -end - -# Represents the signature of something callable. A signature -# can have a label, like a function-name, a doc-comment, and -# a set of parameters. -# -# source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#9 -class LanguageServer::Protocol::Interface::SignatureInformation - # @return [SignatureInformation] a new instance of SignatureInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#10 - def initialize(label:, documentation: T.unsafe(nil), parameters: T.unsafe(nil), active_parameter: T.unsafe(nil)); end - - # The index of the active parameter. - # - # If provided, this is used in place of `SignatureHelp.activeParameter`. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#53 - def active_parameter; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#57 - def attributes; end - - # The human-readable doc-comment of this signature. Will be shown - # in the UI but can be omitted. - # - # @return [string | MarkupContent] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#35 - def documentation; end - - # The label of this signature. Will be shown in - # the UI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#26 - def label; end - - # The parameters of this signature. - # - # @return [ParameterInformation[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#43 - def parameters; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#59 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/signature_information.rb#63 - def to_json(*args); end -end - -# Static registration options to be returned in the initialize request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#7 -class LanguageServer::Protocol::Interface::StaticRegistrationOptions - # @return [StaticRegistrationOptions] a new instance of StaticRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#8 - def initialize(id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#25 - def attributes; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#21 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/static_registration_options.rb#31 - def to_json(*args); end -end - -# Represents information about programming constructs like variables, classes, -# interfaces etc. -# -# source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#8 -class LanguageServer::Protocol::Interface::SymbolInformation - # @return [SymbolInformation] a new instance of SymbolInformation - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#9 - def initialize(name:, kind:, location:, tags: T.unsafe(nil), deprecated: T.unsafe(nil), container_name: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#81 - def attributes; end - - # The name of the symbol containing this symbol. This information is for - # user interface purposes (e.g. to render a qualifier in the user interface - # if necessary). It can't be used to re-infer a hierarchy for the document - # symbols. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#77 - def container_name; end - - # Indicates if this symbol is deprecated. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#50 - def deprecated; end - - # The kind of this symbol. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#34 - def kind; end - - # The location of this symbol. The location's range is used by a tool - # to reveal the location in the editor. If the symbol is selected in the - # tool the range's start information is used to position the cursor. So - # the range usually spans more then the actual symbol's name and does - # normally include things like visibility modifiers. - # - # The range doesn't have to denote a node range in the sense of an abstract - # syntax tree. It can therefore not be used to re-construct a hierarchy of - # the symbols. - # - # @return [Location] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#66 - def location; end - - # The name of this symbol. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#26 - def name; end - - # Tags for this symbol. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#42 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#83 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/symbol_information.rb#87 - def to_json(*args); end -end - -# Describe options to be used when registering for text document change events. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#7 -class LanguageServer::Protocol::Interface::TextDocumentChangeRegistrationOptions - # @return [TextDocumentChangeRegistrationOptions] a new instance of TextDocumentChangeRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#8 - def initialize(document_selector:, sync_kind:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#35 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#22 - def document_selector; end - - # How documents are synced to the server. See TextDocumentSyncKind.Full - # and TextDocumentSyncKind.Incremental. - # - # @return [TextDocumentSyncKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#31 - def sync_kind; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#37 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_change_registration_options.rb#41 - def to_json(*args); end -end - -# Text document specific client capabilities. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#7 -class LanguageServer::Protocol::Interface::TextDocumentClientCapabilities - # @return [TextDocumentClientCapabilities] a new instance of TextDocumentClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#8 - def initialize(synchronization: T.unsafe(nil), completion: T.unsafe(nil), hover: T.unsafe(nil), signature_help: T.unsafe(nil), declaration: T.unsafe(nil), definition: T.unsafe(nil), type_definition: T.unsafe(nil), implementation: T.unsafe(nil), references: T.unsafe(nil), document_highlight: T.unsafe(nil), document_symbol: T.unsafe(nil), code_action: T.unsafe(nil), code_lens: T.unsafe(nil), document_link: T.unsafe(nil), color_provider: T.unsafe(nil), formatting: T.unsafe(nil), range_formatting: T.unsafe(nil), on_type_formatting: T.unsafe(nil), rename: T.unsafe(nil), publish_diagnostics: T.unsafe(nil), folding_range: T.unsafe(nil), selection_range: T.unsafe(nil), linked_editing_range: T.unsafe(nil), call_hierarchy: T.unsafe(nil), semantic_tokens: T.unsafe(nil), moniker: T.unsafe(nil), type_hierarchy: T.unsafe(nil), inline_value: T.unsafe(nil), inlay_hint: T.unsafe(nil), diagnostic: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#285 - def attributes; end - - # Capabilities specific to the various call hierarchy requests. - # - # @return [CallHierarchyClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#233 - def call_hierarchy; end - - # Capabilities specific to the `textDocument/codeAction` request. - # - # @return [CodeActionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#134 - def code_action; end - - # Capabilities specific to the `textDocument/codeLens` request. - # - # @return [CodeLensClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#142 - def code_lens; end - - # Capabilities specific to the `textDocument/documentColor` and the - # `textDocument/colorPresentation` request. - # - # @return [DocumentColorClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#159 - def color_provider; end - - # Capabilities specific to the `textDocument/completion` request. - # - # @return [CompletionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#54 - def completion; end - - # Capabilities specific to the `textDocument/declaration` request. - # - # @return [DeclarationClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#78 - def declaration; end - - # Capabilities specific to the `textDocument/definition` request. - # - # @return [DefinitionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#86 - def definition; end - - # Capabilities specific to the diagnostic pull model. - # - # @return [DiagnosticClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#281 - def diagnostic; end - - # Capabilities specific to the `textDocument/documentHighlight` request. - # - # @return [DocumentHighlightClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#118 - def document_highlight; end - - # Capabilities specific to the `textDocument/documentLink` request. - # - # @return [DocumentLinkClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#150 - def document_link; end - - # Capabilities specific to the `textDocument/documentSymbol` request. - # - # @return [DocumentSymbolClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#126 - def document_symbol; end - - # Capabilities specific to the `textDocument/foldingRange` request. - # - # @return [FoldingRangeClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#209 - def folding_range; end - - # Capabilities specific to the `textDocument/formatting` request. - # - # @return [DocumentFormattingClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#167 - def formatting; end - - # Capabilities specific to the `textDocument/hover` request. - # - # @return [HoverClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#62 - def hover; end - - # Capabilities specific to the `textDocument/implementation` request. - # - # @return [ImplementationClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#102 - def implementation; end - - # Capabilities specific to the `textDocument/inlayHint` request. - # - # @return [InlayHintClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#273 - def inlay_hint; end - - # Capabilities specific to the `textDocument/inlineValue` request. - # - # @return [InlineValueClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#265 - def inline_value; end - - # Capabilities specific to the `textDocument/linkedEditingRange` request. - # - # @return [LinkedEditingRangeClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#225 - def linked_editing_range; end - - # Capabilities specific to the `textDocument/moniker` request. - # - # @return [MonikerClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#249 - def moniker; end - - # request. - # Capabilities specific to the `textDocument/onTypeFormatting` request. - # - # @return [DocumentOnTypeFormattingClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#184 - def on_type_formatting; end - - # Capabilities specific to the `textDocument/publishDiagnostics` - # notification. - # - # @return [PublishDiagnosticsClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#201 - def publish_diagnostics; end - - # Capabilities specific to the `textDocument/rangeFormatting` request. - # - # @return [DocumentRangeFormattingClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#175 - def range_formatting; end - - # Capabilities specific to the `textDocument/references` request. - # - # @return [ReferenceClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#110 - def references; end - - # Capabilities specific to the `textDocument/rename` request. - # - # @return [RenameClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#192 - def rename; end - - # Capabilities specific to the `textDocument/selectionRange` request. - # - # @return [SelectionRangeClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#217 - def selection_range; end - - # Capabilities specific to the various semantic token requests. - # - # @return [SemanticTokensClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#241 - def semantic_tokens; end - - # Capabilities specific to the `textDocument/signatureHelp` request. - # - # @return [SignatureHelpClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#70 - def signature_help; end - - # @return [TextDocumentSyncClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#46 - def synchronization; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#287 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#291 - def to_json(*args); end - - # Capabilities specific to the `textDocument/typeDefinition` request. - # - # @return [TypeDefinitionClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#94 - def type_definition; end - - # Capabilities specific to the various type hierarchy requests. - # - # @return [TypeHierarchyClientCapabilities] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_client_capabilities.rb#257 - def type_hierarchy; end -end - -# An event describing a change to a text document. If only a text is provided -# it is considered to be the full content of the document. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#8 -class LanguageServer::Protocol::Interface::TextDocumentContentChangeEvent - # @return [TextDocumentContentChangeEvent] a new instance of TextDocumentContentChangeEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#9 - def initialize(text:, range: T.unsafe(nil), range_length: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#47 - def attributes; end - - # The range of the document that changed. - # - # @return [Range, nil] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#23 - def range; end - - # The optional length of the range that got replaced. - # - # @return [number, nil] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#31 - def range_length; end - - # The new text for the provided range. - # - # --- OR --- - # - # The new text of the whole document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#43 - def text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#49 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_content_change_event.rb#53 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentEdit - # @return [TextDocumentEdit] a new instance of TextDocumentEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#5 - def initialize(text_document:, edits:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#30 - def attributes; end - - # The edits to be applied. - # - # @return [(TextEdit | AnnotatedTextEdit)[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#26 - def edits; end - - # The text document to change. - # - # @return [OptionalVersionedTextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#18 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_edit.rb#36 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentIdentifier - # @return [TextDocumentIdentifier] a new instance of TextDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#5 - def initialize(uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#27 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_identifier.rb#17 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentItem - # @return [TextDocumentItem] a new instance of TextDocumentItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#5 - def initialize(uri:, language_id:, version:, text:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#49 - def attributes; end - - # The text document's language identifier. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#28 - def language_id; end - - # The content of the opened text document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#45 - def text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#55 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#20 - def uri; end - - # The version number of this document (it will increase after each - # change, including undo/redo). - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_item.rb#37 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentPositionParams - # @return [TextDocumentPositionParams] a new instance of TextDocumentPositionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#5 - def initialize(text_document:, position:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#30 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#26 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#18 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#32 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_position_params.rb#36 - def to_json(*args); end -end - -# General text document registration options. -# -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#7 -class LanguageServer::Protocol::Interface::TextDocumentRegistrationOptions - # @return [TextDocumentRegistrationOptions] a new instance of TextDocumentRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#8 - def initialize(document_selector:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#25 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#21 - def document_selector; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#27 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_registration_options.rb#31 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentSaveRegistrationOptions - # @return [TextDocumentSaveRegistrationOptions] a new instance of TextDocumentSaveRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#5 - def initialize(document_selector:, include_text: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#31 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#19 - def document_selector; end - - # The client is supposed to include the content on save. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#27 - def include_text; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_save_registration_options.rb#37 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentSyncClientCapabilities - # @return [TextDocumentSyncClientCapabilities] a new instance of TextDocumentSyncClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), will_save: T.unsafe(nil), will_save_wait_until: T.unsafe(nil), did_save: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#50 - def attributes; end - - # The client supports did save notifications. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#46 - def did_save; end - - # Whether text document synchronization supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#20 - def dynamic_registration; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#52 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#56 - def to_json(*args); end - - # The client supports sending will save notifications. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#28 - def will_save; end - - # The client supports sending a will save request and - # waits for a response providing text edits which will - # be applied to the document before it is saved. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb#38 - def will_save_wait_until; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#4 -class LanguageServer::Protocol::Interface::TextDocumentSyncOptions - # @return [TextDocumentSyncOptions] a new instance of TextDocumentSyncOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#5 - def initialize(open_close: T.unsafe(nil), change: T.unsafe(nil), will_save: T.unsafe(nil), will_save_wait_until: T.unsafe(nil), save: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#66 - def attributes; end - - # Change notifications are sent to the server. See - # TextDocumentSyncKind.None, TextDocumentSyncKind.Full and - # TextDocumentSyncKind.Incremental. If omitted it defaults to - # TextDocumentSyncKind.None. - # - # @return [TextDocumentSyncKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#35 - def change; end - - # Open and close notifications are sent to the server. If omitted open - # close notifications should not be sent. - # Open and close notifications are sent to the server. If omitted open - # close notification should not be sent. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#24 - def open_close; end - - # If present save notifications are sent to the server. If omitted the - # notification should not be sent. - # - # @return [boolean | SaveOptions] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#62 - def save; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#68 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#72 - def to_json(*args); end - - # If present will save notifications are sent to the server. If omitted - # the notification should not be sent. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#44 - def will_save; end - - # If present will save wait until requests are sent to the server. If - # omitted the request should not be sent. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_document_sync_options.rb#53 - def will_save_wait_until; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#4 -class LanguageServer::Protocol::Interface::TextEdit - # @return [TextEdit] a new instance of TextEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#5 - def initialize(range:, new_text:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#32 - def attributes; end - - # The string to be inserted. For delete operations use an - # empty string. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#28 - def new_text; end - - # The range of the text document to be manipulated. To insert - # text into a document create a range where start === end. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#19 - def range; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/text_edit.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionClientCapabilities - # @return [TypeDefinitionClientCapabilities] a new instance of TypeDefinitionClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), link_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#32 - def attributes; end - - # Whether implementation supports dynamic registration. If this is set to - # `true` the client supports the new `TypeDefinitionRegistrationOptions` - # return value for the corresponding server capability as well. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#20 - def dynamic_registration; end - - # The client supports additional metadata in the form of definition links. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#28 - def link_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#34 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_client_capabilities.rb#38 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionOptions - # @return [TypeDefinitionOptions] a new instance of TypeDefinitionOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionParams - # @return [TypeDefinitionParams] a new instance of TypeDefinitionParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#49 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#45 - def partial_result_token; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#28 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#20 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#51 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#55 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_params.rb#36 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#4 -class LanguageServer::Protocol::Interface::TypeDefinitionRegistrationOptions - # @return [TypeDefinitionRegistrationOptions] a new instance of TypeDefinitionRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_definition_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyItem - # @return [TypeHierarchyItem] a new instance of TypeHierarchyItem - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#5 - def initialize(name:, kind:, uri:, range:, selection_range:, tags: T.unsafe(nil), detail: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#90 - def attributes; end - - # A data entry field that is preserved between a type hierarchy prepare and - # supertypes or subtypes requests. It could also be used to identify the - # type hierarchy in the server, helping improve the performance on - # resolving supertypes and subtypes. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#86 - def data; end - - # More detail for this item, e.g. the signature of a function. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#48 - def detail; end - - # The kind of this item. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#32 - def kind; end - - # The name of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#24 - def name; end - - # The range enclosing this symbol not including leading/trailing whitespace - # but everything else, e.g. comments and code. - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#65 - def range; end - - # The range that should be selected and revealed when this symbol is being - # picked, e.g. the name of a function. Must be contained by the - # [`range`](#TypeHierarchyItem.range). - # - # @return [Range] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#75 - def selection_range; end - - # Tags for this item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#40 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#92 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#96 - def to_json(*args); end - - # The resource identifier of this item. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_item.rb#56 - def uri; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyOptions - # @return [TypeHierarchyOptions] a new instance of TypeHierarchyOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyPrepareParams - # @return [TypeHierarchyPrepareParams] a new instance of TypeHierarchyPrepareParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#5 - def initialize(text_document:, position:, work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#39 - def attributes; end - - # The position inside the text document. - # - # @return [Position] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#27 - def position; end - - # The text document. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#19 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#41 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#45 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb#35 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchyRegistrationOptions - # @return [TypeHierarchyRegistrationOptions] a new instance of TypeHierarchyRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#5 - def initialize(document_selector:, work_done_progress: T.unsafe(nil), id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#38 - def attributes; end - - # A document selector to identify the scope of the registration. If set to - # null the document selector provided on the client side will be used. - # - # @return [DocumentSelector] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#20 - def document_selector; end - - # The id used to register the request. The id can be used to deregister - # the request again. See also Registration#id. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#34 - def id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#44 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_registration_options.rb#25 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchySubtypesParams - # @return [TypeHierarchySubtypesParams] a new instance of TypeHierarchySubtypesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#37 - def attributes; end - - # @return [TypeHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb#19 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#4 -class LanguageServer::Protocol::Interface::TypeHierarchySupertypesParams - # @return [TypeHierarchySupertypesParams] a new instance of TypeHierarchySupertypesParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#5 - def initialize(item:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#37 - def attributes; end - - # @return [TypeHierarchyItem] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#33 - def item; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#28 - def partial_result_token; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#39 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#43 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb#19 - def work_done_token; end -end - -# A diagnostic report indicating that the last returned -# report is still accurate. -# -# source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#8 -class LanguageServer::Protocol::Interface::UnchangedDocumentDiagnosticReport - # @return [UnchangedDocumentDiagnosticReport] a new instance of UnchangedDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#9 - def initialize(kind:, result_id:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#38 - def attributes; end - - # A document diagnostic report indicating - # no changes to the last result. A server can - # only return `unchanged` if result ids are - # provided. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#25 - def kind; end - - # A result id which will be sent on the next - # diagnostic request for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#34 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#40 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb#44 - def to_json(*args); end -end - -# General parameters to unregister a capability. -# -# source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#7 -class LanguageServer::Protocol::Interface::Unregistration - # @return [Unregistration] a new instance of Unregistration - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#8 - def initialize(id:, method:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#34 - def attributes; end - - # The id used to unregister the request or notification. Usually an id - # provided during the register request. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#22 - def id; end - - # The method / capability to unregister for. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#30 - def method; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#36 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration.rb#40 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#4 -class LanguageServer::Protocol::Interface::UnregistrationParams - # @return [UnregistrationParams] a new instance of UnregistrationParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#5 - def initialize(unregisterations:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#24 - def to_json(*args); end - - # @return [Unregistration[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/unregistration_params.rb#14 - def unregisterations; end -end - -# A versioned notebook document identifier. -# -# source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#7 -class LanguageServer::Protocol::Interface::VersionedNotebookDocumentIdentifier - # @return [VersionedNotebookDocumentIdentifier] a new instance of VersionedNotebookDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#8 - def initialize(version:, uri:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#33 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#39 - def to_json(*args); end - - # The notebook document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#29 - def uri; end - - # The version number of this notebook document. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb#21 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#4 -class LanguageServer::Protocol::Interface::VersionedTextDocumentIdentifier - # @return [VersionedTextDocumentIdentifier] a new instance of VersionedTextDocumentIdentifier - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#5 - def initialize(uri:, version:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#33 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#39 - def to_json(*args); end - - # The text document's URI. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#18 - def uri; end - - # The version number of this document. - # - # The version number of a document will increase after each change, - # including undo/redo. The number doesn't need to be consecutive. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/versioned_text_document_identifier.rb#29 - def version; end -end - -# The parameters send in a will save text document notification. -# -# source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#7 -class LanguageServer::Protocol::Interface::WillSaveTextDocumentParams - # @return [WillSaveTextDocumentParams] a new instance of WillSaveTextDocumentParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#8 - def initialize(text_document:, reason:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#33 - def attributes; end - - # The 'TextDocumentSaveReason'. - # - # @return [TextDocumentSaveReason] - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#29 - def reason; end - - # The document that will be saved. - # - # @return [TextDocumentIdentifier] - # - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#21 - def text_document; end - - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/will_save_text_document_params.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressBegin - # @return [WorkDoneProgressBegin] a new instance of WorkDoneProgressBegin - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#5 - def initialize(kind:, title:, cancellable: T.unsafe(nil), message: T.unsafe(nil), percentage: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#68 - def attributes; end - - # Controls if a cancel button should show to allow the user to cancel the - # long running operation. Clients that don't support cancellation are - # allowed to ignore the setting. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#39 - def cancellable; end - - # @return ["begin"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#18 - def kind; end - - # Optional, more detailed associated progress message. Contains - # complementary information to the `title`. - # - # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". - # If unset, the previous progress message (if any) is still valid. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#51 - def message; end - - # Optional progress percentage to display (value 100 is considered 100%). - # If not provided infinite progress is assumed and clients are allowed - # to ignore the `percentage` value in subsequent in report notifications. - # - # The value should be steadily rising. Clients are free to ignore values - # that are not following this rule. The value range is [0, 100] - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#64 - def percentage; end - - # Mandatory title of the progress operation. Used to briefly inform about - # the kind of operation being performed. - # - # Examples: "Indexing" or "Linking dependencies". - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#29 - def title; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#70 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_begin.rb#74 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressCancelParams - # @return [WorkDoneProgressCancelParams] a new instance of WorkDoneProgressCancelParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#5 - def initialize(token:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#27 - def to_json(*args); end - - # The token to be used to report progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_cancel_params.rb#17 - def token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressCreateParams - # @return [WorkDoneProgressCreateParams] a new instance of WorkDoneProgressCreateParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#5 - def initialize(token:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#27 - def to_json(*args); end - - # The token to be used to report progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_create_params.rb#17 - def token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressEnd - # @return [WorkDoneProgressEnd] a new instance of WorkDoneProgressEnd - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#5 - def initialize(kind:, message: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#28 - def attributes; end - - # @return ["end"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#15 - def kind; end - - # Optional, a final message indicating to for example indicate the outcome - # of the operation. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#24 - def message; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_end.rb#34 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressOptions - # @return [WorkDoneProgressOptions] a new instance of WorkDoneProgressOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#18 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#20 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#24 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_options.rb#14 - def work_done_progress; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressParams - # @return [WorkDoneProgressParams] a new instance of WorkDoneProgressParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#5 - def initialize(work_done_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#21 - def attributes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#27 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_params.rb#17 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#4 -class LanguageServer::Protocol::Interface::WorkDoneProgressReport - # @return [WorkDoneProgressReport] a new instance of WorkDoneProgressReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#5 - def initialize(kind:, cancellable: T.unsafe(nil), message: T.unsafe(nil), percentage: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#58 - def attributes; end - - # Controls enablement state of a cancel button. This property is only valid - # if a cancel button got requested in the `WorkDoneProgressBegin` payload. - # - # Clients that don't support cancellation or don't support control the - # button's enablement state are allowed to ignore the setting. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#29 - def cancellable; end - - # @return ["report"] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#17 - def kind; end - - # Optional, more detailed associated progress message. Contains - # complementary information to the `title`. - # - # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". - # If unset, the previous progress message (if any) is still valid. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#41 - def message; end - - # Optional progress percentage to display (value 100 is considered 100%). - # If not provided infinite progress is assumed and clients are allowed - # to ignore the `percentage` value in subsequent in report notifications. - # - # The value should be steadily rising. Clients are free to ignore values - # that are not following this rule. The value range is [0, 100] - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#54 - def percentage; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#60 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/work_done_progress_report.rb#64 - def to_json(*args); end -end - -# Parameters of the workspace diagnostic request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceDiagnosticParams - # @return [WorkspaceDiagnosticParams] a new instance of WorkspaceDiagnosticParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#8 - def initialize(previous_result_ids:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil), identifier: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#53 - def attributes; end - - # The additional identifier provided during registration. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#40 - def identifier; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#32 - def partial_result_token; end - - # The currently known diagnostic reports with their - # previous result ids. - # - # @return [PreviousResultId[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#49 - def previous_result_ids; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#55 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#59 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_params.rb#23 - def work_done_token; end -end - -# A workspace diagnostic report. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceDiagnosticReport - # @return [WorkspaceDiagnosticReport] a new instance of WorkspaceDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#8 - def initialize(items:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#21 - def attributes; end - - # @return [WorkspaceDocumentDiagnosticReport[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#17 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report.rb#27 - def to_json(*args); end -end - -# A partial result for a workspace diagnostic report. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceDiagnosticReportPartialResult - # @return [WorkspaceDiagnosticReportPartialResult] a new instance of WorkspaceDiagnosticReportPartialResult - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#8 - def initialize(items:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#21 - def attributes; end - - # @return [WorkspaceDocumentDiagnosticReport[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#17 - def items; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#23 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb#27 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceEdit - # @return [WorkspaceEdit] a new instance of WorkspaceEdit - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#5 - def initialize(changes: T.unsafe(nil), document_changes: T.unsafe(nil), change_annotations: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#56 - def attributes; end - - # A map of change annotations that can be referenced in - # `AnnotatedTextEdit`s or create, rename and delete file / folder - # operations. - # - # Whether clients honor this property depends on the client capability - # `workspace.changeAnnotationSupport`. - # - # @return [{ [id: string]: ChangeAnnotation; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#52 - def change_annotations; end - - # Holds changes to existing resources. - # - # @return [{}] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#19 - def changes; end - - # Depending on the client capability - # `workspace.workspaceEdit.resourceOperations` document changes are either - # an array of `TextDocumentEdit`s to express changes to n different text - # documents where each text document edit addresses a specific version of - # a text document. Or it can contain above `TextDocumentEdit`s mixed with - # create, rename and delete file / folder operations. - # - # Whether a client supports versioned document edits is expressed via - # `workspace.workspaceEdit.documentChanges` client capability. - # - # If a client neither supports `documentChanges` nor - # `workspace.workspaceEdit.resourceOperations` then only plain `TextEdit`s - # using the `changes` property are supported. - # - # @return [TextDocumentEdit[] | (TextDocumentEdit | CreateFile | RenameFile | DeleteFile)[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#39 - def document_changes; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit.rb#62 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceEditClientCapabilities - # @return [WorkspaceEditClientCapabilities] a new instance of WorkspaceEditClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#5 - def initialize(document_changes: T.unsafe(nil), resource_operations: T.unsafe(nil), failure_handling: T.unsafe(nil), normalizes_line_endings: T.unsafe(nil), change_annotation_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#63 - def attributes; end - - # Whether the client in general supports change annotations on text edits, - # create file, rename file and delete file changes. - # - # @return [{ groupsOnLabel?: boolean; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#59 - def change_annotation_support; end - - # The client supports versioned document changes in `WorkspaceEdit`s - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#21 - def document_changes; end - - # The failure handling strategy of a client if applying the workspace edit - # fails. - # - # @return [FailureHandlingKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#39 - def failure_handling; end - - # Whether the client normalizes line endings to the client specific - # setting. - # If set to `true` the client will normalize line ending characters - # in a workspace edit to the client specific new line character(s). - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#50 - def normalizes_line_endings; end - - # The resource operations the client supports. Clients should at least - # support 'create', 'rename' and 'delete' files and folders. - # - # @return [ResourceOperationKind[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#30 - def resource_operations; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#65 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb#69 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceFolder - # @return [WorkspaceFolder] a new instance of WorkspaceFolder - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#5 - def initialize(uri:, name:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#31 - def attributes; end - - # The name of the workspace folder. Used to refer to this - # workspace folder in the user interface. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#27 - def name; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#33 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#37 - def to_json(*args); end - - # The associated URI for this workspace folder. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folder.rb#18 - def uri; end -end - -# The workspace folder change event. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceFoldersChangeEvent - # @return [WorkspaceFoldersChangeEvent] a new instance of WorkspaceFoldersChangeEvent - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#8 - def initialize(added:, removed:); end - - # The array of added workspace folders - # - # @return [WorkspaceFolder[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#21 - def added; end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#33 - def attributes; end - - # The array of the removed workspace folders - # - # @return [WorkspaceFolder[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#29 - def removed; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#35 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_change_event.rb#39 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceFoldersServerCapabilities - # @return [WorkspaceFoldersServerCapabilities] a new instance of WorkspaceFoldersServerCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#5 - def initialize(supported: T.unsafe(nil), change_notifications: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#36 - def attributes; end - - # Whether the server wants to receive workspace folder - # change notifications. - # - # If a string is provided, the string is treated as an ID - # under which the notification is registered on the client - # side. The ID can be used to unregister for these events - # using the `client/unregisterCapability` request. - # - # @return [string | boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#32 - def change_notifications; end - - # The server has support for workspace folders - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#18 - def supported; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#38 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb#42 - def to_json(*args); end -end - -# A full document diagnostic report for a workspace diagnostic result. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceFullDocumentDiagnosticReport - # @return [WorkspaceFullDocumentDiagnosticReport] a new instance of WorkspaceFullDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#8 - def initialize(kind:, items:, uri:, version:, result_id: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#63 - def attributes; end - - # The actual items. - # - # @return [Diagnostic[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#42 - def items; end - - # A full document diagnostic report. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#24 - def kind; end - - # An optional result id. If provided it will - # be sent on the next diagnostic request for the - # same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#34 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#65 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#69 - def to_json(*args); end - - # The URI for which diagnostic information is reported. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#50 - def uri; end - - # The version number for which the diagnostics are reported. - # If the document is not marked as open `null` can be provided. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb#59 - def version; end -end - -# A special workspace symbol that supports locations without a range -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceSymbol - # @return [WorkspaceSymbol] a new instance of WorkspaceSymbol - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#8 - def initialize(name:, kind:, location:, tags: T.unsafe(nil), container_name: T.unsafe(nil), data: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#77 - def attributes; end - - # The name of the symbol containing this symbol. This information is for - # user interface purposes (e.g. to render a qualifier in the user interface - # if necessary). It can't be used to re-infer a hierarchy for the document - # symbols. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#52 - def container_name; end - - # A data entry field that is preserved on a workspace symbol between a - # workspace symbol request and a workspace symbol resolve request. - # - # @return [LSPAny] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#73 - def data; end - - # The kind of this symbol. - # - # @return [SymbolKind] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#33 - def kind; end - - # The location of this symbol. Whether a server is allowed to - # return a location without a range depends on the client - # capability `workspace.symbol.resolveSupport`. - # - # See also `SymbolInformation.location`. - # - # @return [Location | { uri: string; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#64 - def location; end - - # The name of this symbol. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#25 - def name; end - - # Tags for this completion item. - # - # @return [1[]] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#41 - def tags; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#79 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol.rb#83 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceSymbolClientCapabilities - # @return [WorkspaceSymbolClientCapabilities] a new instance of WorkspaceSymbolClientCapabilities - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#5 - def initialize(dynamic_registration: T.unsafe(nil), symbol_kind: T.unsafe(nil), tag_support: T.unsafe(nil), resolve_support: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#52 - def attributes; end - - # Symbol request supports dynamic registration. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#20 - def dynamic_registration; end - - # The client support partial workspace symbols. The client will send the - # request `workspaceSymbol/resolve` to the server to resolve additional - # properties. - # - # @return [{ properties: string[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#48 - def resolve_support; end - - # Specific capabilities for the `SymbolKind` in the `workspace/symbol` - # request. - # - # @return [{ valueSet?: SymbolKind[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#29 - def symbol_kind; end - - # The client supports tags on `SymbolInformation` and `WorkspaceSymbol`. - # Clients supporting tags have to handle unknown tags gracefully. - # - # @return [{ valueSet: 1[]; }] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#38 - def tag_support; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#54 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb#58 - def to_json(*args); end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceSymbolOptions - # @return [WorkspaceSymbolOptions] a new instance of WorkspaceSymbolOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#28 - def attributes; end - - # The server provides support to resolve additional - # information for a workspace symbol. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#24 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_options.rb#15 - def work_done_progress; end -end - -# The parameters of a Workspace Symbol Request. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceSymbolParams - # @return [WorkspaceSymbolParams] a new instance of WorkspaceSymbolParams - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#8 - def initialize(query:, work_done_token: T.unsafe(nil), partial_result_token: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#44 - def attributes; end - - # An optional token that a server can use to report partial results (e.g. - # streaming) to the client. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#31 - def partial_result_token; end - - # A query string to filter symbols by. Clients may send an empty - # string here to request all symbols. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#40 - def query; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#46 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#50 - def to_json(*args); end - - # An optional token that a server can use to report work done progress. - # - # @return [ProgressToken] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_params.rb#22 - def work_done_token; end -end - -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#4 -class LanguageServer::Protocol::Interface::WorkspaceSymbolRegistrationOptions - # @return [WorkspaceSymbolRegistrationOptions] a new instance of WorkspaceSymbolRegistrationOptions - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#5 - def initialize(work_done_progress: T.unsafe(nil), resolve_provider: T.unsafe(nil)); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#28 - def attributes; end - - # The server provides support to resolve additional - # information for a workspace symbol. - # - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#24 - def resolve_provider; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#30 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#34 - def to_json(*args); end - - # @return [boolean] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_symbol_registration_options.rb#15 - def work_done_progress; end -end - -# An unchanged document diagnostic report for a workspace diagnostic result. -# -# source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#7 -class LanguageServer::Protocol::Interface::WorkspaceUnchangedDocumentDiagnosticReport - # @return [WorkspaceUnchangedDocumentDiagnosticReport] a new instance of WorkspaceUnchangedDocumentDiagnosticReport - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#8 - def initialize(kind:, result_id:, uri:, version:); end - - # Returns the value of attribute attributes. - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#56 - def attributes; end - - # A document diagnostic report indicating - # no changes to the last result. A server can - # only return `unchanged` if result ids are - # provided. - # - # @return [any] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#26 - def kind; end - - # A result id which will be sent on the next - # diagnostic request for the same document. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#35 - def result_id; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#58 - def to_hash; end - - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#62 - def to_json(*args); end - - # The URI for which diagnostic information is reported. - # - # @return [string] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#43 - def uri; end - - # The version number for which the diagnostics are reported. - # If the document is not marked as open `null` can be provided. - # - # @return [number] - # - # source://language_server-protocol//lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb#52 - def version; end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#7 -module LanguageServer::Protocol::Transport; end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#8 -module LanguageServer::Protocol::Transport::Io; end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#9 -class LanguageServer::Protocol::Transport::Io::Reader - # @return [Reader] a new instance of Reader - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#10 - def initialize(io); end - - # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#15 - def read(&block); end - - private - - # Returns the value of attribute io. - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/reader.rb#26 - def io; end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#5 -class LanguageServer::Protocol::Transport::Io::Writer - # @return [Writer] a new instance of Writer - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#8 - def initialize(io); end - - # Returns the value of attribute io. - # - # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#6 - def io; end - - # source://language_server-protocol//lib/language_server/protocol/transport/io/writer.rb#13 - def write(response); end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#4 -module LanguageServer::Protocol::Transport::Stdio; end - -# source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#5 -class LanguageServer::Protocol::Transport::Stdio::Reader < ::LanguageServer::Protocol::Transport::Io::Reader - # @return [Reader] a new instance of Reader - # - # source://language_server-protocol//lib/language_server/protocol/transport/stdio/reader.rb#6 - def initialize; end -end - -# source://language_server-protocol//lib/language_server/protocol/transport/stdio/writer.rb#5 -class LanguageServer::Protocol::Transport::Stdio::Writer < ::LanguageServer::Protocol::Transport::Io::Writer - # @return [Writer] a new instance of Writer - # - # source://language_server-protocol//lib/language_server/protocol/transport/stdio/writer.rb#6 - def initialize; end -end - -# source://language_server-protocol//lib/language_server/protocol/version.rb#3 -LanguageServer::Protocol::VERSION = T.let(T.unsafe(nil), String) diff --git a/Library/Homebrew/sorbet/rbi/gems/mustache@1.1.1.rbi b/Library/Homebrew/sorbet/rbi/gems/mustache@1.1.1.rbi deleted file mode 100644 index 4310e3ec63..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/mustache@1.1.1.rbi +++ /dev/null @@ -1,997 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `mustache` gem. -# Please instead update this file by running `bin/tapioca gem mustache`. - -# Mustache is the base class from which your Mustache subclasses -# should inherit (though it can be used on its own). -# -# The typical Mustache workflow is as follows: -# -# * Create a Mustache subclass: class Stats < Mustache -# * Create a template: stats.mustache -# * Instantiate an instance: view = Stats.new -# * Render that instance: view.render -# -# You can skip the instantiation by calling `Stats.render` directly. -# -# While Mustache will do its best to load and render a template for -# you, this process is completely customizable using a few options. -# -# All settings can be overriden at the class level. -# -# For example, going with the above example, we can use -# `Stats.template_path = "/usr/local/templates"` to specify the path -# Mustache uses to find templates. -# -# Here are the available options: -# -# * template_path -# -# The `template_path` setting determines the path Mustache uses when -# looking for a template. By default it is "." -# Setting it to /usr/local/templates, for example, means (given all -# other settings are default) a Mustache subclass `Stats` will try to -# load /usr/local/templates/stats.mustache -# -# * template_extension -# -# The `template_extension` is the extension Mustache uses when looking -# for template files. By default it is "mustache" -# -# * template_file -# -# You can tell Mustache exactly which template to use with this -# setting. It can be a relative or absolute path. -# -# * template -# -# Sometimes you want Mustache to render a string, not a file. In those -# cases you may set the `template` setting. For example: -# -# >> Mustache.render("Hello {{planet}}", :planet => "World!") -# => "Hello World!" -# -# The `template` setting is also available on instances. -# -# view = Mustache.new -# view.template = "Hi, {{person}}!" -# view[:person] = 'Mom' -# view.render # => Hi, mom! -# -# * view_namespace -# -# To make life easy on those developing Mustache plugins for web frameworks or -# other libraries, Mustache will attempt to load view classes (i.e. Mustache -# subclasses) using the `view_class` class method. The `view_namespace` tells -# Mustache under which constant view classes live. By default it is `Object`. -# -# * view_path -# -# Similar to `template_path`, the `view_path` option tells Mustache where to look -# for files containing view classes when using the `view_class` method. -# -# source://mustache//lib/mustache/enumerable.rb#1 -class Mustache - # Initialize a new Mustache instance. - # - # @option options - # @option options - # @option options - # @option options - # @option options - # @option options - # @param options [Hash] An options hash - # @return [Mustache] a new instance of Mustache - # - # source://mustache//lib/mustache.rb#86 - def initialize(options = T.unsafe(nil)); end - - # Context accessors. - # - # @example Context accessors - # view = Mustache.new - # view[:name] = "Jon" - # view.template = "Hi, {{name}}!" - # view.render # => "Hi, Jon!" - # - # source://mustache//lib/mustache.rb#150 - def [](key); end - - # source://mustache//lib/mustache.rb#154 - def []=(key, value); end - - # Has this instance or its class already compiled a template? - # - # @return [Boolean] - # - # source://mustache//lib/mustache.rb#237 - def compiled?; end - - # A helper method which gives access to the context at a given time. - # Kind of a hack for now, but useful when you're in an iterating section - # and want access to the hash currently being iterated over. - # - # source://mustache//lib/mustache.rb#161 - def context; end - - # Override this to provide custom escaping. - # By default it uses `CGI.escapeHTML`. - # - # @example Overriding #escape - # class PersonView < Mustache - # def escape(value) - # my_html_escape_method(value.to_s) - # end - # end - # @param value [Object] Value to escape. - # @return [String] Escaped content. - # - # source://mustache//lib/mustache.rb#212 - def escape(value); end - - # Override this to provide custom escaping. - # - # @deprecated Use {#escape} instead. - # - # Note that {#escape} can receive any kind of object. - # If your override logic is expecting a string, you will - # have to call to_s on it yourself. - # @example Overriding #escapeHTML - # class PersonView < Mustache - # def escapeHTML(str) - # my_html_escape_method(str) - # end - # end - # @param str [String] String to escape. - # @return [String] Escaped HTML. - # - # source://mustache//lib/mustache.rb#232 - def escapeHTML(str); end - - # source://mustache//lib/mustache/settings.rb#5 - def initialize_settings; end - - # Override this in your subclass if you want to do fun things like - # reading templates from a database. It will be rendered by the - # context, so all you need to do is return a string. - # - # source://mustache//lib/mustache.rb#189 - def partial(name); end - - # source://mustache//lib/mustache/settings.rb#48 - def path; end - - # source://mustache//lib/mustache/settings.rb#213 - def raise_on_context_miss=(boolean); end - - # Instance level version of `Mustache.raise_on_context_miss?` - # - # @return [Boolean] - # - # source://mustache//lib/mustache/settings.rb#209 - def raise_on_context_miss?; end - - # Parses our fancy pants template file and returns normal file with - # all special {{tags}} and {{#sections}}replaced{{/sections}}. - # - # @example Render view - # @view.render("Hi {{thing}}!", :thing => :world) - # @example Set view template and then render - # View.template = "Hi {{thing}}!" - # @view = View.new - # @view.render(:thing => :world) - # @param data [String, Hash] A String template or a Hash context. - # If a Hash is given, we'll try to figure - # out the template from the class. - # @param ctx [Hash] A Hash context if `data` is a String template. - # @return [String] Returns a rendered version of a template. - # - # source://mustache//lib/mustache.rb#116 - def render(data = T.unsafe(nil), ctx = T.unsafe(nil)); end - - # Given a file name and an optional context, attempts to load and - # render the file as a template. - # - # source://mustache//lib/mustache.rb#173 - def render_file(name, context = T.unsafe(nil)); end - - # The template can be set at the instance level. - # - # source://mustache//lib/mustache/settings.rb#173 - def template; end - - # source://mustache//lib/mustache/settings.rb#184 - def template=(template); end - - # source://mustache//lib/mustache/settings.rb#84 - def template_extension; end - - # source://mustache//lib/mustache/settings.rb#88 - def template_extension=(template_extension); end - - # The template file is the absolute path of the file Mustache will - # use as its template. By default it's ./class_name.mustache - # - # source://mustache//lib/mustache/settings.rb#145 - def template_file; end - - # source://mustache//lib/mustache/settings.rb#149 - def template_file=(template_file); end - - # source://mustache//lib/mustache/settings.rb#117 - def template_name; end - - # source://mustache//lib/mustache/settings.rb#121 - def template_name=(template_name); end - - # source://mustache//lib/mustache/settings.rb#48 - def template_path; end - - # source://mustache//lib/mustache/settings.rb#53 - def template_path=(path); end - - private - - # source://mustache//lib/mustache.rb#309 - def templateify(obj); end - - class << self - # template_partial => TemplatePartial - # template/partial => Template::Partial - # - # source://mustache//lib/mustache.rb#290 - def classify(underscored); end - - # Has this template already been compiled? Compilation is somewhat - # expensive so it may be useful to check this before attempting it. - # - # @return [Boolean] - # - # source://mustache//lib/mustache.rb#283 - def compiled?; end - - # source://mustache//lib/mustache.rb#271 - def const_from_file(name); end - - # Return the value of the configuration setting on the superclass, or return - # the default. - # - # @param attr_name [Symbol] Name of the attribute. It should match - # the instance variable. - # @param default [Object] Default value to use if the superclass does - # not respond. - # @return Inherited or default configuration setting. - # - # source://mustache//lib/mustache.rb#324 - def inheritable_config_for(attr_name, default); end - - # @private - # - # source://mustache//lib/mustache/settings.rb#25 - def inherited(subclass); end - - # source://mustache//lib/mustache/settings.rb#14 - def initialize_settings; end - - # Given a name, attempts to read a file and return the contents as a - # string. The file is not rendered, so it might contain - # {{mustaches}}. - # - # Call `render` if you need to process it. - # - # source://mustache//lib/mustache.rb#182 - def partial(name); end - - # Alias for `template_path` - # - # source://mustache//lib/mustache/settings.rb#59 - def path; end - - # Alias for `template_path` - # - # source://mustache//lib/mustache/settings.rb#64 - def path=(path); end - - # source://mustache//lib/mustache/settings.rb#204 - def raise_on_context_miss=(boolean); end - - # Should an exception be raised when we cannot find a corresponding method - # or key in the current context? By default this is false to emulate ctemplate's - # behavior, but it may be useful to enable when debugging or developing. - # - # If set to true and there is a context miss, `Mustache::ContextMiss` will - # be raised. - # - # @return [Boolean] - # - # source://mustache//lib/mustache/settings.rb#200 - def raise_on_context_miss?; end - - # Instantiates an instance of this class and calls `render` with - # the passed args. - # - # @return A rendered String version of a template. - # - # source://mustache//lib/mustache.rb#96 - def render(*args); end - - # Given a file name and an optional context, attempts to load and - # render the file as a template. - # - # source://mustache//lib/mustache.rb#167 - def render_file(name, context = T.unsafe(nil)); end - - # source://mustache//lib/mustache.rb#265 - def rescued_const_get(name); end - - # The template is the actual string Mustache uses as its template. - # There is a bit of magic here: what we get back is actually a - # Mustache::Template object, but you can still safely use `template=` - # with a string. - # - # source://mustache//lib/mustache/settings.rb#164 - def template; end - - # source://mustache//lib/mustache/settings.rb#168 - def template=(template); end - - # A Mustache template's default extension is 'mustache', but this can be changed. - # - # source://mustache//lib/mustache/settings.rb#75 - def template_extension; end - - # source://mustache//lib/mustache/settings.rb#79 - def template_extension=(template_extension); end - - # The template file is the absolute path of the file Mustache will - # use as its template. By default it's ./class_name.mustache - # - # source://mustache//lib/mustache/settings.rb#134 - def template_file; end - - # source://mustache//lib/mustache/settings.rb#138 - def template_file=(template_file); end - - # The template name is the Mustache template file without any - # extension or other information. Defaults to `class_name`. - # - # You may want to change this if your class is named Stat but you want - # to re-use another template. - # - # class Stat - # self.template_name = "graphs" # use graphs.mustache - # end - # - # source://mustache//lib/mustache/settings.rb#108 - def template_name; end - - # source://mustache//lib/mustache/settings.rb#112 - def template_name=(template_name); end - - # The template path informs your Mustache view where to look for its - # corresponding template. By default it's the current directory (".") - # - # A class named Stat with a template_path of "app/templates" will look - # for "app/templates/stat.mustache" - # - # source://mustache//lib/mustache/settings.rb#39 - def template_path; end - - # source://mustache//lib/mustache/settings.rb#43 - def template_path=(path); end - - # @param obj [Template, String] Turns `obj` into a template - # @param options [Hash] Options for template creation - # - # source://mustache//lib/mustache.rb#305 - def templateify(obj, options = T.unsafe(nil)); end - - # TemplatePartial => template_partial - # Template::Partial => template/partial - # Takes a string but defaults to using the current class' name. - # - # source://mustache//lib/mustache.rb#297 - def underscore(classified = T.unsafe(nil)); end - - # When given a symbol or string representing a class, will try to produce an - # appropriate view class. - # - # @example - # Mustache.view_namespace = Hurl::Views - # Mustache.view_class(:Partial) # => Hurl::Views::Partial - # - # source://mustache//lib/mustache.rb#251 - def view_class(name); end - - # The constant under which Mustache will look for views when autoloading. - # By default the view namespace is `Object`, but it might be nice to set - # it to something like `Hurl::Views` if your app's main namespace is `Hurl`. - # - # source://mustache//lib/mustache/settings.rb#226 - def view_namespace; end - - # source://mustache//lib/mustache/settings.rb#230 - def view_namespace=(namespace); end - - # Mustache searches the view path for .rb files to require when asked to find a - # view class. Defaults to "." - # - # source://mustache//lib/mustache/settings.rb#242 - def view_path; end - - # source://mustache//lib/mustache/settings.rb#246 - def view_path=(path); end - end -end - -# A Context represents the context which a Mustache template is -# executed within. All Mustache tags reference keys in the Context. -# -# source://mustache//lib/mustache/context.rb#8 -class Mustache::Context - # Initializes a Mustache::Context. - # - # @param mustache [Mustache] A Mustache instance. - # @return [Context] a new instance of Context - # - # source://mustache//lib/mustache/context.rb#14 - def initialize(mustache); end - - # Alias for `fetch`. - # - # source://mustache//lib/mustache/context.rb#93 - def [](name); end - - # Can be used to add a value to the context in a hash-like way. - # - # context[:name] = "Chris" - # - # source://mustache//lib/mustache/context.rb#88 - def []=(name, value); end - - # source://mustache//lib/mustache/context.rb#151 - def current; end - - # Allows customization of how Mustache escapes things. - # - # @param value [Object] Value to escape. - # @return [String] Escaped string. - # - # source://mustache//lib/mustache/context.rb#58 - def escape(value); end - - # Similar to Hash#fetch, finds a value by `name` in the context's - # stack. You may specify the default return value by passing a - # second parameter. - # - # If no second parameter is passed (or raise_on_context_miss is - # set to true), will raise a ContextMiss exception on miss. - # - # source://mustache//lib/mustache/context.rb#111 - def fetch(name, default = T.unsafe(nil)); end - - # Finds a key in an object, using whatever method is most - # appropriate. If the object is a hash, does a simple hash lookup. - # If it's an object that responds to the key as a method call, - # invokes that method. You get the idea. - # - # @param obj [Object] The object to perform the lookup on. - # @param key [String, Symbol] The key whose value you want - # @param default [Object] An optional default value, to return if the key is not found. - # @return [Object] The value of key in object if it is found, and default otherwise. - # - # source://mustache//lib/mustache/context.rb#138 - def find(obj, key, default = T.unsafe(nil)); end - - # Do we know about a particular key? In other words, will calling - # `context[key]` give us a result that was set. Basically. - # - # @return [Boolean] - # - # source://mustache//lib/mustache/context.rb#99 - def has_key?(key); end - - # Find the first Mustache in the stack. - # - # If we're being rendered inside a Mustache object as a context, - # we'll use that one. - # - # @return [Mustache] First Mustache in the stack. - # - # source://mustache//lib/mustache/context.rb#48 - def mustache_in_stack; end - - # A {{>partial}} tag translates into a call to the context's - # `partial` method, which would be this sucker right here. - # - # If the Mustache view handling the rendering (e.g. the view - # representing your profile page or some other template) responds - # to `partial`, we call it and render the result. - # - # source://mustache//lib/mustache/context.rb#26 - def partial(name, indentation = T.unsafe(nil)); end - - # Removes the most recently added object from the context's - # internal stack. - # - # @return [Context] Returns the Context. - # - # source://mustache//lib/mustache/context.rb#79 - def pop; end - - # Adds a new object to the context's internal stack. - # - # @param new_obj [Object] Object to be added to the internal stack. - # @return [Context] Returns the Context. - # - # source://mustache//lib/mustache/context.rb#68 - def push(new_obj); end - - # source://mustache//lib/mustache/context.rb#37 - def template_for_partial(partial); end - - private - - # Fetches a hash key if it exists, or returns the given default. - # - # source://mustache//lib/mustache/context.rb#159 - def find_in_hash(obj, key, default); end -end - -# A ContextMiss is raised whenever a tag's target can not be found -# in the current context if `Mustache#raise_on_context_miss?` is -# set to true. -# -# For example, if your View class does not respond to `music` but -# your template contains a `{{music}}` tag this exception will be raised. -# -# By default it is not raised. See Mustache.raise_on_context_miss. -# -# source://mustache//lib/mustache/context_miss.rb#12 -class Mustache::ContextMiss < ::RuntimeError; end - -# source://mustache//lib/mustache/enumerable.rb#2 -module Mustache::Enumerable; end - -# The Generator is in charge of taking an array of Mustache tokens, -# usually assembled by the Parser, and generating an interpolatable -# Ruby string. This string is considered the "compiled" template -# because at that point we're relying on Ruby to do the parsing and -# run our code. -# -# For example, let's take this template: -# -# Hi {{thing}}! -# -# If we run this through the Parser we'll get these tokens: -# -# [:multi, -# [:static, "Hi "], -# [:mustache, :etag, "thing"], -# [:static, "!\n"]] -# -# Now let's hand that to the Generator: -# -# >> puts Mustache::Generator.new.compile(tokens) -# "Hi #{CGI.escapeHTML(ctx[:thing].to_s)}!\n" -# -# You can see the generated Ruby string for any template with the -# mustache(1) command line tool: -# -# $ mustache --compile test.mustache -# "Hi #{CGI.escapeHTML(ctx[:thing].to_s)}!\n" -# -# source://mustache//lib/mustache/generator.rb#29 -class Mustache::Generator - # Options can be used to manipulate the resulting ruby code string behavior. - # - # @return [Generator] a new instance of Generator - # - # source://mustache//lib/mustache/generator.rb#31 - def initialize(options = T.unsafe(nil)); end - - # Given an array of tokens, returns an interpolatable Ruby string. - # - # source://mustache//lib/mustache/generator.rb#37 - def compile(exp); end - - private - - # Given an array of tokens, converts them into Ruby code. In - # particular there are three types of expressions we are concerned - # with: - # - # :multi - # Mixed bag of :static, :mustache, and whatever. - # - # :static - # Normal HTML, the stuff outside of {{mustaches}}. - # - # :mustache - # Any Mustache tag, from sections to partials. - # - # To give you an idea of what you'll be dealing with take this - # template: - # - # Hello {{name}} - # You have just won ${{value}}! - # {{#in_ca}} - # Well, ${{taxed_value}}, after taxes. - # {{/in_ca}} - # - # If we run this through the Parser, we'll get back this array of - # tokens: - # - # [:multi, - # [:static, "Hello "], - # [:mustache, :etag, - # [:mustache, :fetch, ["name"]]], - # [:static, "\nYou have just won $"], - # [:mustache, :etag, - # [:mustache, :fetch, ["value"]]], - # [:static, "!\n"], - # [:mustache, - # :section, - # [:mustache, :fetch, ["in_ca"]], - # [:multi, - # [:static, "Well, $"], - # [:mustache, :etag, - # [:mustache, :fetch, ["taxed_value"]]], - # [:static, ", after taxes.\n"]], - # "Well, ${{taxed_value}}, after taxes.\n", - # ["{{", "}}"]]] - # - # source://mustache//lib/mustache/generator.rb#88 - def compile!(exp); end - - # An interpolation-friendly version of a string, for use within a - # Ruby string. - # - # source://mustache//lib/mustache/generator.rb#208 - def ev(s); end - - # An escaped tag. - # - # source://mustache//lib/mustache/generator.rb#179 - def on_etag(name, offset); end - - # source://mustache//lib/mustache/generator.rb#189 - def on_fetch(names); end - - # Fired when we find an inverted section. Just like `on_section`, - # we're passed the inverted section name and the array of tokens. - # - # source://mustache//lib/mustache/generator.rb#145 - def on_inverted_section(name, offset, content, raw, delims); end - - # Fired when the compiler finds a partial. We want to return code - # which calls a partial at runtime instead of expanding and - # including the partial's body to allow for recursive partials. - # - # source://mustache//lib/mustache/generator.rb#163 - def on_partial(name, offset, indentation); end - - # Callback fired when the compiler finds a section token. We're - # passed the section name and the array of tokens. - # - # source://mustache//lib/mustache/generator.rb#103 - def on_section(name, offset, content, raw, delims); end - - # An unescaped tag. - # - # source://mustache//lib/mustache/generator.rb#168 - def on_utag(name, offset); end - - # source://mustache//lib/mustache/generator.rb#212 - def str(s); end -end - -# The Parser is responsible for taking a string template and -# converting it into an array of tokens and, really, expressions. It -# raises SyntaxError if there is anything it doesn't understand and -# knows which sigil corresponds to which tag type. -# -# For example, given this template: -# -# Hi {{thing}}! -# -# Run through the Parser we'll get these tokens: -# -# [:multi, -# [:static, "Hi "], -# [:mustache, :etag, "thing"], -# [:static, "!\n"]] -# -# You can see the array of tokens for any template with the -# mustache(1) command line tool: -# -# $ mustache --tokens test.mustache -# [:multi, [:static, "Hi "], [:mustache, :etag, "thing"], [:static, "!\n"]] -# -# source://mustache//lib/mustache/parser.rb#25 -class Mustache::Parser - # Accepts an options hash which does nothing but may be used in - # the future. - # - # @return [Parser] a new instance of Parser - # - # source://mustache//lib/mustache/parser.rb#91 - def initialize(options = T.unsafe(nil)); end - - # Given a string template, returns an array of tokens. - # - # source://mustache//lib/mustache/parser.rb#119 - def compile(template); end - - # Returns the value of attribute ctag. - # - # source://mustache//lib/mustache/parser.rb#87 - def ctag; end - - # The closing tag delimiter. This too may be changed at runtime. - # - # source://mustache//lib/mustache/parser.rb#113 - def ctag=(value); end - - # Returns the value of attribute otag. - # - # source://mustache//lib/mustache/parser.rb#87 - def otag; end - - # The opening tag delimiter. This may be changed at runtime. - # - # source://mustache//lib/mustache/parser.rb#105 - def otag=(value); end - - private - - # source://mustache//lib/mustache/parser.rb#150 - def content_tags(type, current_ctag_regex); end - - # source://mustache//lib/mustache/parser.rb#159 - def dispatch_based_on_type(type, content, fetch, padding, pre_match_position); end - - # Raises a SyntaxError. The message should be the name of the - # error - other details such as line number and position are - # handled for you. - # - # @raise [SyntaxError] - # - # source://mustache//lib/mustache/parser.rb#285 - def error(message, pos = T.unsafe(nil)); end - - # source://mustache//lib/mustache/parser.rb#163 - def find_closing_tag(scanner, current_ctag_regex); end - - # source://mustache//lib/mustache/parser.rb#259 - def offset; end - - # Returns [lineno, column, line] - # - # source://mustache//lib/mustache/parser.rb#264 - def position; end - - # Used to quickly convert a string into a regular expression - # usable by the string scanner. - # - # source://mustache//lib/mustache/parser.rb#278 - def regexp(thing); end - - # This function handles the cases where the scanned tag does not have - # a type. - # - # source://mustache//lib/mustache/parser.rb#301 - def scan_tag_(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#340 - def scan_tag_!(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#345 - def scan_tag_=(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#306 - def scan_tag_block(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#324 - def scan_tag_close(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#340 - def scan_tag_comment(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#345 - def scan_tag_delimiter(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#315 - def scan_tag_inverted(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#351 - def scan_tag_open_partial(content, fetch, padding, pre_match_position); end - - # source://mustache//lib/mustache/parser.rb#364 - def scan_tag_unescaped(content, fetch, padding, pre_match_position); end - - # Find {{mustaches}} and add them to the @result array. - # - # source://mustache//lib/mustache/parser.rb#168 - def scan_tags; end - - # Try to find static text, e.g. raw HTML with no {{mustaches}}. - # - # source://mustache//lib/mustache/parser.rb#233 - def scan_text; end - - # Scans the string until the pattern is matched. Returns the substring - # *excluding* the end of the match, advancing the scan pointer to that - # location. If there is no match, nil is returned. - # - # source://mustache//lib/mustache/parser.rb#251 - def scan_until_exclusive(regexp); end - - class << self - # Add a supported sigil type (with optional aliases) to the Parser. - # - # Requires a block, which will be sent the following parameters: - # - # * content - The raw content of the tag - # * fetch- A mustache context fetch expression for the content - # * padding - Indentation whitespace from the currently-parsed line - # * pre_match_position - Location of the scanner before a match was made - # - # The provided block will be evaluated against the current instance of - # Parser, and may append to the Parser's @result as needed. - # - # source://mustache//lib/mustache/parser.rb#65 - def add_type(*types, &block); end - - # source://mustache//lib/mustache/parser.rb#50 - def valid_types; end - end -end - -# The content allowed in a tag name. -# -# source://mustache//lib/mustache/parser.rb#81 -Mustache::Parser::ALLOWED_CONTENT = T.let(T.unsafe(nil), Regexp) - -# These types of tags allow any content, -# the rest only allow ALLOWED_CONTENT. -# -# source://mustache//lib/mustache/parser.rb#85 -Mustache::Parser::ANY_CONTENT = T.let(T.unsafe(nil), Array) - -# After these types of tags, all whitespace until the end of the line will -# be skipped if they are the first (and only) non-whitespace content on -# the line. -# -# source://mustache//lib/mustache/parser.rb#78 -Mustache::Parser::SKIP_WHITESPACE = T.let(T.unsafe(nil), Array) - -# A SyntaxError is raised when the Parser comes across unclosed -# tags, sections, illegal content in tags, or anything of that -# sort. -# -# source://mustache//lib/mustache/parser.rb#29 -class Mustache::Parser::SyntaxError < ::StandardError - # @return [SyntaxError] a new instance of SyntaxError - # - # source://mustache//lib/mustache/parser.rb#30 - def initialize(message, position); end - - # source://mustache//lib/mustache/parser.rb#37 - def to_s; end -end - -# The sigil types which are valid after an opening `{{` -# -# source://mustache//lib/mustache/parser.rb#48 -Mustache::Parser::VALID_TYPES = T.let(T.unsafe(nil), Array) - -# A Template represents a Mustache template. It compiles and caches -# a raw string template into something usable. -# -# The idea is this: when handed a Mustache template, convert it into -# a Ruby string by transforming Mustache tags into interpolated -# Ruby. -# -# You shouldn't use this class directly, instead: -# -# >> Mustache.render(template, hash) -# -# source://mustache//lib/mustache/template.rb#17 -class Mustache::Template - # Expects a Mustache template as a string along with a template - # path, which it uses to find partials. Options may be passed. - # - # @return [Template] a new instance of Template - # - # source://mustache//lib/mustache/template.rb#22 - def initialize(source, options = T.unsafe(nil)); end - - # Does the dirty work of transforming a Mustache template into an - # interpolation-friendly Ruby string. - # - # source://mustache//lib/mustache/template.rb#49 - def compile(src = T.unsafe(nil)); end - - # Returns an array of partials. - # - # Partials that belong to sections are included, but the section name is not preserved - # - # @return [Array] Returns an array of partials. - # - # source://mustache//lib/mustache/template.rb#103 - def partials; end - - # Renders the `@source` Mustache template using the given - # `context`, which should be a simple hash keyed with symbols. - # - # The first time a template is rendered, this method is overriden - # and from then on it is "compiled". Subsequent calls will skip - # the compilation step and run the Ruby version of the template - # directly. - # - # source://mustache//lib/mustache/template.rb#34 - def render(context); end - - # Returns an array of sections. - # - # Sections that belong to other sections will be of the form `section1.childsection` - # - # @return [Array] Returns an array of section. - # - # source://mustache//lib/mustache/template.rb#86 - def sections; end - - # Returns the value of attribute source. - # - # source://mustache//lib/mustache/template.rb#18 - def source; end - - # Returns an array of tags. - # - # Tags that belong to sections will be of the form `section1.tag`. - # - # @return [Array] Returns an array of tags. - # - # source://mustache//lib/mustache/template.rb#68 - def tags; end - - # Does the dirty work of transforming a Mustache template into an - # interpolation-friendly Ruby string. - # - # source://mustache//lib/mustache/template.rb#49 - def to_s(src = T.unsafe(nil)); end - - # Returns an array of tokens for a given template. - # - # @return [Array] Array of tokens. - # - # source://mustache//lib/mustache/template.rb#58 - def tokens(src = T.unsafe(nil)); end - - class << self - # Simple recursive iterator for tokens - # - # source://mustache//lib/mustache/template.rb#115 - def recursor(toks, section, &block); end - end -end - -# source://mustache//lib/mustache/utils.rb#2 -module Mustache::Utils; end - -# source://mustache//lib/mustache/utils.rb#3 -class Mustache::Utils::String - # @return [String] a new instance of String - # - # source://mustache//lib/mustache/utils.rb#4 - def initialize(string); end - - # source://mustache//lib/mustache/utils.rb#8 - def classify; end - - # source://mustache//lib/mustache/utils.rb#17 - def underscore(view_namespace); end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/netrc@0.11.0.rbi b/Library/Homebrew/sorbet/rbi/gems/netrc@0.11.0.rbi deleted file mode 100644 index 062a5577c9..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/netrc@0.11.0.rbi +++ /dev/null @@ -1,158 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `netrc` gem. -# Please instead update this file by running `bin/tapioca gem netrc`. - -# source://netrc//lib/netrc.rb#3 -class Netrc - # @return [Netrc] a new instance of Netrc - # - # source://netrc//lib/netrc.rb#166 - def initialize(path, data); end - - # source://netrc//lib/netrc.rb#180 - def [](k); end - - # source://netrc//lib/netrc.rb#188 - def []=(k, info); end - - # source://netrc//lib/netrc.rb#200 - def delete(key); end - - # source://netrc//lib/netrc.rb#211 - def each(&block); end - - # source://netrc//lib/netrc.rb#196 - def length; end - - # source://netrc//lib/netrc.rb#215 - def new_item(m, l, p); end - - # Returns the value of attribute new_item_prefix. - # - # source://netrc//lib/netrc.rb#178 - def new_item_prefix; end - - # Sets the attribute new_item_prefix - # - # @param value the value to set the attribute new_item_prefix to. - # - # source://netrc//lib/netrc.rb#178 - def new_item_prefix=(_arg0); end - - # source://netrc//lib/netrc.rb#219 - def save; end - - # source://netrc//lib/netrc.rb#233 - def unparse; end - - class << self - # source://netrc//lib/netrc.rb#42 - def check_permissions(path); end - - # source://netrc//lib/netrc.rb#33 - def config; end - - # @yield [self.config] - # - # source://netrc//lib/netrc.rb#37 - def configure; end - - # source://netrc//lib/netrc.rb#10 - def default_path; end - - # source://netrc//lib/netrc.rb#14 - def home_path; end - - # source://netrc//lib/netrc.rb#85 - def lex(lines); end - - # source://netrc//lib/netrc.rb#29 - def netrc_filename; end - - # Returns two values, a header and a list of items. - # Each item is a tuple, containing some or all of: - # - machine keyword (including trailing whitespace+comments) - # - machine name - # - login keyword (including surrounding whitespace+comments) - # - login - # - password keyword (including surrounding whitespace+comments) - # - password - # - trailing chars - # This lets us change individual fields, then write out the file - # with all its original formatting. - # - # source://netrc//lib/netrc.rb#129 - def parse(ts); end - - # Reads path and parses it as a .netrc file. If path doesn't - # exist, returns an empty object. Decrypt paths ending in .gpg. - # - # source://netrc//lib/netrc.rb#51 - def read(path = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://netrc//lib/netrc.rb#112 - def skip?(s); end - end -end - -# source://netrc//lib/netrc.rb#8 -Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped) - -# source://netrc//lib/netrc.rb#244 -class Netrc::Entry < ::Struct - # Returns the value of attribute login - # - # @return [Object] the current value of login - def login; end - - # Sets the attribute login - # - # @param value [Object] the value to set the attribute login to. - # @return [Object] the newly set value - def login=(_); end - - # Returns the value of attribute password - # - # @return [Object] the current value of password - def password; end - - # Sets the attribute password - # - # @param value [Object] the value to set the attribute password to. - # @return [Object] the newly set value - def password=(_); end - - def to_ary; end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://netrc//lib/netrc.rb#250 -class Netrc::Error < ::StandardError; end - -# source://netrc//lib/netrc.rb#68 -class Netrc::TokenArray < ::Array - # source://netrc//lib/netrc.rb#76 - def readto; end - - # source://netrc//lib/netrc.rb#69 - def take; end -end - -# source://netrc//lib/netrc.rb#4 -Netrc::VERSION = T.let(T.unsafe(nil), String) - -# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows -# -# source://netrc//lib/netrc.rb#7 -Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped) diff --git a/Library/Homebrew/sorbet/rbi/gems/parallel@1.24.0.rbi b/Library/Homebrew/sorbet/rbi/gems/parallel@1.24.0.rbi deleted file mode 100644 index 5dd73750fd..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/parallel@1.24.0.rbi +++ /dev/null @@ -1,280 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `parallel` gem. -# Please instead update this file by running `bin/tapioca gem parallel`. - -# source://parallel//lib/parallel/version.rb#2 -module Parallel - class << self - # @return [Boolean] - # - # source://parallel//lib/parallel.rb#243 - def all?(*args, &block); end - - # @return [Boolean] - # - # source://parallel//lib/parallel.rb#238 - def any?(*args, &block); end - - # source://parallel//lib/parallel.rb#234 - def each(array, options = T.unsafe(nil), &block); end - - # source://parallel//lib/parallel.rb#248 - def each_with_index(array, options = T.unsafe(nil), &block); end - - # source://parallel//lib/parallel.rb#307 - def filter_map(*args, &block); end - - # source://parallel//lib/parallel.rb#303 - def flat_map(*args, &block); end - - # source://parallel//lib/parallel.rb#228 - def in_processes(options = T.unsafe(nil), &block); end - - # source://parallel//lib/parallel.rb#212 - def in_threads(options = T.unsafe(nil)); end - - # source://parallel//lib/parallel.rb#252 - def map(source, options = T.unsafe(nil), &block); end - - # source://parallel//lib/parallel.rb#299 - def map_with_index(array, options = T.unsafe(nil), &block); end - - # Number of physical processor cores on the current system. - # - # source://parallel//lib/parallel.rb#312 - def physical_processor_count; end - - # Number of processors seen by the OS, used for process scheduling - # - # source://parallel//lib/parallel.rb#345 - def processor_count; end - - # source://parallel//lib/parallel.rb#350 - def worker_number; end - - # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed - # - # source://parallel//lib/parallel.rb#355 - def worker_number=(worker_num); end - - private - - # source://parallel//lib/parallel.rb#361 - def add_progress_bar!(job_factory, options); end - - # source://parallel//lib/parallel.rb#624 - def call_with_index(item, index, options, &block); end - - # source://parallel//lib/parallel.rb#556 - def create_workers(job_factory, options, &block); end - - # options is either a Integer or a Hash with :count - # - # source://parallel//lib/parallel.rb#614 - def extract_count_from_options(options); end - - # source://parallel//lib/parallel.rb#642 - def instrument_finish(item, index, result, options); end - - # yield results in the order of the input items - # needs to use `options` to store state between executions - # needs to use `done` index since a nil result would also be valid - # - # source://parallel//lib/parallel.rb#651 - def instrument_finish_in_order(item, index, result, options); end - - # source://parallel//lib/parallel.rb#671 - def instrument_start(item, index, options); end - - # source://parallel//lib/parallel.rb#590 - def process_incoming_jobs(read, write, job_factory, options, &block); end - - # source://parallel//lib/parallel.rb#544 - def replace_worker(job_factory, workers, index, options, blk); end - - # source://parallel//lib/parallel.rb#635 - def with_instrumentation(item, index, options); end - - # source://parallel//lib/parallel.rb#386 - def work_direct(job_factory, options, &block); end - - # source://parallel//lib/parallel.rb#496 - def work_in_processes(job_factory, options, &blk); end - - # source://parallel//lib/parallel.rb#430 - def work_in_ractors(job_factory, options); end - - # source://parallel//lib/parallel.rb#405 - def work_in_threads(job_factory, options, &block); end - - # source://parallel//lib/parallel.rb#564 - def worker(job_factory, options, &block); end - end -end - -# source://parallel//lib/parallel.rb#11 -class Parallel::Break < ::StandardError - # @return [Break] a new instance of Break - # - # source://parallel//lib/parallel.rb#14 - def initialize(value = T.unsafe(nil)); end - - # Returns the value of attribute value. - # - # source://parallel//lib/parallel.rb#12 - def value; end -end - -# source://parallel//lib/parallel.rb#8 -class Parallel::DeadWorker < ::StandardError; end - -# source://parallel//lib/parallel.rb#32 -class Parallel::ExceptionWrapper - # @return [ExceptionWrapper] a new instance of ExceptionWrapper - # - # source://parallel//lib/parallel.rb#35 - def initialize(exception); end - - # Returns the value of attribute exception. - # - # source://parallel//lib/parallel.rb#33 - def exception; end -end - -# source://parallel//lib/parallel.rb#98 -class Parallel::JobFactory - # @return [JobFactory] a new instance of JobFactory - # - # source://parallel//lib/parallel.rb#99 - def initialize(source, mutex); end - - # source://parallel//lib/parallel.rb#107 - def next; end - - # generate item that is sent to workers - # just index is faster + less likely to blow up with unserializable errors - # - # source://parallel//lib/parallel.rb#136 - def pack(item, index); end - - # source://parallel//lib/parallel.rb#126 - def size; end - - # unpack item that is sent to workers - # - # source://parallel//lib/parallel.rb#141 - def unpack(data); end - - private - - # @return [Boolean] - # - # source://parallel//lib/parallel.rb#147 - def producer?; end - - # source://parallel//lib/parallel.rb#151 - def queue_wrapper(array); end -end - -# source://parallel//lib/parallel.rb#20 -class Parallel::Kill < ::Parallel::Break; end - -# source://parallel//lib/parallel.rb#6 -Parallel::Stop = T.let(T.unsafe(nil), Object) - -# source://parallel//lib/parallel.rb#23 -class Parallel::UndumpableException < ::StandardError - # @return [UndumpableException] a new instance of UndumpableException - # - # source://parallel//lib/parallel.rb#26 - def initialize(original); end - - # Returns the value of attribute backtrace. - # - # source://parallel//lib/parallel.rb#24 - def backtrace; end -end - -# source://parallel//lib/parallel.rb#156 -class Parallel::UserInterruptHandler - class << self - # source://parallel//lib/parallel.rb#181 - def kill(thing); end - - # kill all these pids or threads if user presses Ctrl+c - # - # source://parallel//lib/parallel.rb#161 - def kill_on_ctrl_c(pids, options); end - - private - - # source://parallel//lib/parallel.rb#205 - def restore_interrupt(old, signal); end - - # source://parallel//lib/parallel.rb#190 - def trap_interrupt(signal); end - end -end - -# source://parallel//lib/parallel.rb#157 -Parallel::UserInterruptHandler::INTERRUPT_SIGNAL = T.let(T.unsafe(nil), Symbol) - -# source://parallel//lib/parallel/version.rb#3 -Parallel::VERSION = T.let(T.unsafe(nil), String) - -# source://parallel//lib/parallel/version.rb#3 -Parallel::Version = T.let(T.unsafe(nil), String) - -# source://parallel//lib/parallel.rb#51 -class Parallel::Worker - # @return [Worker] a new instance of Worker - # - # source://parallel//lib/parallel.rb#55 - def initialize(read, write, pid); end - - # might be passed to started_processes and simultaneously closed by another thread - # when running in isolation mode, so we have to check if it is closed before closing - # - # source://parallel//lib/parallel.rb#68 - def close_pipes; end - - # Returns the value of attribute pid. - # - # source://parallel//lib/parallel.rb#52 - def pid; end - - # Returns the value of attribute read. - # - # source://parallel//lib/parallel.rb#52 - def read; end - - # source://parallel//lib/parallel.rb#61 - def stop; end - - # Returns the value of attribute thread. - # - # source://parallel//lib/parallel.rb#53 - def thread; end - - # Sets the attribute thread - # - # @param value the value to set the attribute thread to. - # - # source://parallel//lib/parallel.rb#53 - def thread=(_arg0); end - - # source://parallel//lib/parallel.rb#73 - def work(data); end - - # Returns the value of attribute write. - # - # source://parallel//lib/parallel.rb#52 - def write; end - - private - - # source://parallel//lib/parallel.rb#91 - def wait; end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi b/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi index 4dc97171ff..45bb33b172 100644 --- a/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/parlour@8.1.0.rbi @@ -913,7 +913,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject # @param block [T.proc.params(x: Attribute).void, nil] # @return [Attribute] # - # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257 def create_attr(*args, **_arg1, &blk); end # source://parlour//lib/parlour/rbi_generator/namespace.rb#472 @@ -1121,7 +1121,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject # @return [Array] # - # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257 def type_aliases(*args, **_arg1, &blk); end private @@ -1885,7 +1885,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject # @param block [T.proc.params(x: Attribute).void, nil] # @return [Attribute] # - # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257 def create_attr(*args, **_arg1, &blk); end # source://parlour//lib/parlour/rbs_generator/namespace.rb#347 @@ -2052,7 +2052,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject # @return [Array] # - # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257 def type_aliases(*args, **_arg1, &blk); end private @@ -2395,7 +2395,7 @@ class Parlour::TypeParser::IntermediateSig < ::T::Struct prop :params, T.nilable(T::Array[::Parser::AST::Node]) class << self - # source://sorbet-runtime/0.5.11247/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11258/lib/types/struct.rb#13 def inherited(s); end end end @@ -2450,7 +2450,7 @@ class Parlour::TypedObject # @param comment [String, Array] # @return [void] # - # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257 def add_comments(*args, **_arg1, &blk); end # source://parlour//lib/parlour/typed_object.rb#32 @@ -2471,7 +2471,7 @@ class Parlour::TypedObject # @return [String] # - # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257 def inspect(*args, **_arg1, &blk); end # source://parlour//lib/parlour/typed_object.rb#26 @@ -2480,7 +2480,7 @@ class Parlour::TypedObject # @return [String] # - # source://sorbet-runtime/0.5.11247/lib/types/private/methods/_methods.rb#252 + # source://sorbet-runtime/0.5.11258/lib/types/private/methods/_methods.rb#257 def to_s(*args, **_arg1, &blk); end protected diff --git a/Library/Homebrew/sorbet/rbi/gems/public_suffix@5.0.4.rbi b/Library/Homebrew/sorbet/rbi/gems/public_suffix@5.0.4.rbi deleted file mode 100644 index 49c81c106b..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/public_suffix@5.0.4.rbi +++ /dev/null @@ -1,935 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `public_suffix` gem. -# Please instead update this file by running `bin/tapioca gem public_suffix`. - -# PublicSuffix is a Ruby domain name parser based on the Public Suffix List. -# -# The [Public Suffix List](https://publicsuffix.org) is a cross-vendor initiative -# to provide an accurate list of domain name suffixes. -# -# The Public Suffix List is an initiative of the Mozilla Project, -# but is maintained as a community resource. It is available for use in any software, -# but was originally created to meet the needs of browser manufacturers. -# -# source://public_suffix//lib/public_suffix/domain.rb#9 -module PublicSuffix - class << self - # private - # - # source://public_suffix//lib/public_suffix.rb#149 - def decompose(name, rule); end - - # Attempt to parse the name and returns the domain, if valid. - # - # This method doesn't raise. Instead, it returns nil if the domain is not valid for whatever reason. - # - # @param name [#to_s] The domain name or fully qualified domain name to parse. - # @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List} - # @param ignore_private [Boolean] - # @return [String] - # - # source://public_suffix//lib/public_suffix.rb#140 - def domain(name, **options); end - - # Pretend we know how to deal with user input. - # - # source://public_suffix//lib/public_suffix.rb#164 - def normalize(name); end - - # Parses +name+ and returns the {PublicSuffix::Domain} instance. - # - # @example Parse a valid domain - # PublicSuffix.parse("google.com") - # # => # - # @example Parse a valid subdomain - # PublicSuffix.parse("www.google.com") - # # => # - # @example Parse a fully qualified domain - # PublicSuffix.parse("google.com.") - # # => # - # @example Parse a fully qualified domain (subdomain) - # PublicSuffix.parse("www.google.com.") - # # => # - # @example Parse an invalid (unlisted) domain - # PublicSuffix.parse("x.yz") - # # => # - # @example Parse an invalid (unlisted) domain with strict checking (without applying the default * rule) - # PublicSuffix.parse("x.yz", default_rule: nil) - # # => PublicSuffix::DomainInvalid: `x.yz` is not a valid domain - # @example Parse an URL (not supported, only domains) - # PublicSuffix.parse("http://www.google.com") - # # => PublicSuffix::DomainInvalid: http://www.google.com is not expected to contain a scheme - # @param name [#to_s] The domain name or fully qualified domain name to parse. - # @param list [PublicSuffix::List] The rule list to search, defaults to the default {PublicSuffix::List} - # @param ignore_private [Boolean] - # @raise [PublicSuffix::DomainInvalid] If domain is not a valid domain. - # @raise [PublicSuffix::DomainNotAllowed] If a rule for +domain+ is found, but the rule doesn't allow +domain+. - # @return [PublicSuffix::Domain] - # - # source://public_suffix//lib/public_suffix.rb#67 - def parse(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end - - # Checks whether +domain+ is assigned and allowed, without actually parsing it. - # - # This method doesn't care whether domain is a domain or subdomain. - # The validation is performed using the default {PublicSuffix::List}. - # - # @example Validate a valid domain - # PublicSuffix.valid?("example.com") - # # => true - # @example Validate a valid subdomain - # PublicSuffix.valid?("www.example.com") - # # => true - # @example Validate a not-listed domain - # PublicSuffix.valid?("example.tldnotlisted") - # # => true - # @example Validate a not-listed domain with strict checking (without applying the default * rule) - # PublicSuffix.valid?("example.tldnotlisted") - # # => true - # PublicSuffix.valid?("example.tldnotlisted", default_rule: nil) - # # => false - # @example Validate a fully qualified domain - # PublicSuffix.valid?("google.com.") - # # => true - # PublicSuffix.valid?("www.google.com.") - # # => true - # @example Check an URL (which is not a valid domain) - # PublicSuffix.valid?("http://www.example.com") - # # => false - # @param name [#to_s] The domain name or fully qualified domain name to validate. - # @param ignore_private [Boolean] - # @return [Boolean] - # - # source://public_suffix//lib/public_suffix.rb#123 - def valid?(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end - end -end - -# source://public_suffix//lib/public_suffix.rb#26 -PublicSuffix::BANG = T.let(T.unsafe(nil), String) - -# source://public_suffix//lib/public_suffix.rb#25 -PublicSuffix::DOT = T.let(T.unsafe(nil), String) - -# Domain represents a domain name, composed by a TLD, SLD and TRD. -# -# source://public_suffix//lib/public_suffix/domain.rb#12 -class PublicSuffix::Domain - # Creates and returns a new {PublicSuffix::Domain} instance. - # - # @example Initialize with a TLD and SLD - # PublicSuffix::Domain.new("com", "example") - # # => # - # @example Initialize with a TLD - # PublicSuffix::Domain.new("com") - # # => # - # @example Initialize with a TLD, SLD and TRD - # PublicSuffix::Domain.new("com", "example", "wwww") - # # => # - # @overload initialize - # @overload initialize - # @overload initialize - # @return [Domain] a new instance of Domain - # @yield [self] Yields on self. - # @yieldparam self [PublicSuffix::Domain] The newly creates instance - # - # source://public_suffix//lib/public_suffix/domain.rb#65 - def initialize(*args); end - - # Returns a domain-like representation of this object - # if the object is a {#domain?}, nil otherwise. - # - # PublicSuffix::Domain.new("com").domain - # # => nil - # - # PublicSuffix::Domain.new("com", "google").domain - # # => "google.com" - # - # PublicSuffix::Domain.new("com", "google", "www").domain - # # => "www.google.com" - # - # This method doesn't validate the input. It handles the domain - # as a valid domain name and simply applies the necessary transformations. - # - # This method returns a FQD, not just the domain part. - # To get the domain part, use #sld (aka second level domain). - # - # PublicSuffix::Domain.new("com", "google", "www").domain - # # => "google.com" - # - # PublicSuffix::Domain.new("com", "google", "www").sld - # # => "google" - # - # @return [String] - # @see #domain? - # @see #subdomain - # - # source://public_suffix//lib/public_suffix/domain.rb#137 - def domain; end - - # Checks whether self looks like a domain. - # - # This method doesn't actually validate the domain. - # It only checks whether the instance contains - # a value for the {#tld} and {#sld} attributes. - # - # @example - # - # PublicSuffix::Domain.new("com").domain? - # # => false - # - # PublicSuffix::Domain.new("com", "google").domain? - # # => true - # - # PublicSuffix::Domain.new("com", "google", "www").domain? - # # => true - # - # # This is an invalid domain, but returns true - # # because this method doesn't validate the content. - # PublicSuffix::Domain.new("com", nil).domain? - # # => true - # @return [Boolean] - # @see #subdomain? - # - # source://public_suffix//lib/public_suffix/domain.rb#198 - def domain?; end - - # Returns the full domain name. - # - # @example Gets the domain name of a domain - # PublicSuffix::Domain.new("com", "google").name - # # => "google.com" - # @example Gets the domain name of a subdomain - # PublicSuffix::Domain.new("com", "google", "www").name - # # => "www.google.com" - # @return [String] - # - # source://public_suffix//lib/public_suffix/domain.rb#105 - def name; end - - # Returns the value of attribute sld. - # - # source://public_suffix//lib/public_suffix/domain.rb#33 - def sld; end - - # Returns a subdomain-like representation of this object - # if the object is a {#subdomain?}, nil otherwise. - # - # PublicSuffix::Domain.new("com").subdomain - # # => nil - # - # PublicSuffix::Domain.new("com", "google").subdomain - # # => nil - # - # PublicSuffix::Domain.new("com", "google", "www").subdomain - # # => "www.google.com" - # - # This method doesn't validate the input. It handles the domain - # as a valid domain name and simply applies the necessary transformations. - # - # This method returns a FQD, not just the subdomain part. - # To get the subdomain part, use #trd (aka third level domain). - # - # PublicSuffix::Domain.new("com", "google", "www").subdomain - # # => "www.google.com" - # - # PublicSuffix::Domain.new("com", "google", "www").trd - # # => "www" - # - # @return [String] - # @see #subdomain? - # @see #domain - # - # source://public_suffix//lib/public_suffix/domain.rb#169 - def subdomain; end - - # Checks whether self looks like a subdomain. - # - # This method doesn't actually validate the subdomain. - # It only checks whether the instance contains - # a value for the {#tld}, {#sld} and {#trd} attributes. - # If you also want to validate the domain, - # use {#valid_subdomain?} instead. - # - # @example - # - # PublicSuffix::Domain.new("com").subdomain? - # # => false - # - # PublicSuffix::Domain.new("com", "google").subdomain? - # # => false - # - # PublicSuffix::Domain.new("com", "google", "www").subdomain? - # # => true - # - # # This is an invalid domain, but returns true - # # because this method doesn't validate the content. - # PublicSuffix::Domain.new("com", "example", nil).subdomain? - # # => true - # @return [Boolean] - # @see #domain? - # - # source://public_suffix//lib/public_suffix/domain.rb#229 - def subdomain?; end - - # Returns the value of attribute tld. - # - # source://public_suffix//lib/public_suffix/domain.rb#33 - def tld; end - - # Returns an array containing the domain parts. - # - # @example - # - # PublicSuffix::Domain.new("google.com").to_a - # # => [nil, "google", "com"] - # - # PublicSuffix::Domain.new("www.google.com").to_a - # # => [nil, "google", "com"] - # @return [Array] - # - # source://public_suffix//lib/public_suffix/domain.rb#89 - def to_a; end - - # Returns a string representation of this object. - # - # @return [String] - # - # source://public_suffix//lib/public_suffix/domain.rb#73 - def to_s; end - - # Returns the value of attribute trd. - # - # source://public_suffix//lib/public_suffix/domain.rb#33 - def trd; end - - class << self - # Splits a string into the labels, that is the dot-separated parts. - # - # The input is not validated, but it is assumed to be a valid domain name. - # - # @example - # - # name_to_labels('example.com') - # # => ['example', 'com'] - # - # name_to_labels('example.co.uk') - # # => ['example', 'co', 'uk'] - # @param name [String, #to_s] The domain name to split. - # @return [Array] - # - # source://public_suffix//lib/public_suffix/domain.rb#28 - def name_to_labels(name); end - end -end - -# Raised when trying to parse an invalid name. -# A name is considered invalid when no rule is found in the definition list. -# -# @example -# -# PublicSuffix.parse("nic.test") -# # => PublicSuffix::DomainInvalid -# -# PublicSuffix.parse("http://www.nic.it") -# # => PublicSuffix::DomainInvalid -# -# source://public_suffix//lib/public_suffix/errors.rb#25 -class PublicSuffix::DomainInvalid < ::PublicSuffix::Error; end - -# Raised when trying to parse a name that matches a suffix. -# -# @example -# -# PublicSuffix.parse("nic.do") -# # => PublicSuffix::DomainNotAllowed -# -# PublicSuffix.parse("www.nic.do") -# # => PublicSuffix::Domain -# -# source://public_suffix//lib/public_suffix/errors.rb#38 -class PublicSuffix::DomainNotAllowed < ::PublicSuffix::DomainInvalid; end - -# source://public_suffix//lib/public_suffix/errors.rb#11 -class PublicSuffix::Error < ::StandardError; end - -# A {PublicSuffix::List} is a collection of one -# or more {PublicSuffix::Rule}. -# -# Given a {PublicSuffix::List}, -# you can add or remove {PublicSuffix::Rule}, -# iterate all items in the list or search for the first rule -# which matches a specific domain name. -# -# # Create a new list -# list = PublicSuffix::List.new -# -# # Push two rules to the list -# list << PublicSuffix::Rule.factory("it") -# list << PublicSuffix::Rule.factory("com") -# -# # Get the size of the list -# list.size -# # => 2 -# -# # Search for the rule matching given domain -# list.find("example.com") -# # => # -# list.find("example.org") -# # => nil -# -# You can create as many {PublicSuffix::List} you want. -# The {PublicSuffix::List.default} rule list is used -# to tokenize and validate a domain. -# -# source://public_suffix//lib/public_suffix/list.rb#40 -class PublicSuffix::List - # Initializes an empty {PublicSuffix::List}. - # - # @return [List] a new instance of List - # @yield [self] Yields on self. - # @yieldparam self [PublicSuffix::List] The newly created instance. - # - # source://public_suffix//lib/public_suffix/list.rb#106 - def initialize; end - - # Adds the given object to the list and optionally refreshes the rule index. - # - # @param rule [PublicSuffix::Rule::*] the rule to add to the list - # @return [self] - # - # source://public_suffix//lib/public_suffix/list.rb#141 - def <<(rule); end - - # Checks whether two lists are equal. - # - # List one is equal to two, if two is an instance of - # {PublicSuffix::List} and each +PublicSuffix::Rule::*+ - # in list one is available in list two, in the same order. - # - # @param other [PublicSuffix::List] the List to compare - # @return [Boolean] - # - # source://public_suffix//lib/public_suffix/list.rb#120 - def ==(other); end - - # Adds the given object to the list and optionally refreshes the rule index. - # - # @param rule [PublicSuffix::Rule::*] the rule to add to the list - # @return [self] - # - # source://public_suffix//lib/public_suffix/list.rb#141 - def add(rule); end - - # Removes all rules. - # - # @return [self] - # - # source://public_suffix//lib/public_suffix/list.rb#164 - def clear; end - - # Gets the default rule. - # - # @return [PublicSuffix::Rule::*] - # @see PublicSuffix::Rule.default_rule - # - # source://public_suffix//lib/public_suffix/list.rb#226 - def default_rule; end - - # Iterates each rule in the list. - # - # source://public_suffix//lib/public_suffix/list.rb#128 - def each(&block); end - - # Checks whether the list is empty. - # - # @return [Boolean] - # - # source://public_suffix//lib/public_suffix/list.rb#157 - def empty?; end - - # Checks whether two lists are equal. - # - # List one is equal to two, if two is an instance of - # {PublicSuffix::List} and each +PublicSuffix::Rule::*+ - # in list one is available in list two, in the same order. - # - # @param other [PublicSuffix::List] the List to compare - # @return [Boolean] - # - # source://public_suffix//lib/public_suffix/list.rb#120 - def eql?(other); end - - # Finds and returns the rule corresponding to the longest public suffix for the hostname. - # - # @param name [#to_s] the hostname - # @param default [PublicSuffix::Rule::*] the default rule to return in case no rule matches - # @return [PublicSuffix::Rule::*] - # - # source://public_suffix//lib/public_suffix/list.rb#174 - def find(name, default: T.unsafe(nil), **options); end - - # Gets the number of rules in the list. - # - # @return [Integer] - # - # source://public_suffix//lib/public_suffix/list.rb#150 - def size; end - - protected - - # Returns the value of attribute rules. - # - # source://public_suffix//lib/public_suffix/list.rb#233 - def rules; end - - private - - # source://public_suffix//lib/public_suffix/list.rb#238 - def entry_to_rule(entry, value); end - - # source://public_suffix//lib/public_suffix/list.rb#242 - def rule_to_entry(rule); end - - # Selects all the rules matching given hostame. - # - # If `ignore_private` is set to true, the algorithm will skip the rules that are flagged as - # private domain. Note that the rules will still be part of the loop. - # If you frequently need to access lists ignoring the private domains, - # you should create a list that doesn't include these domains setting the - # `private_domains: false` option when calling {.parse}. - # - # Note that this method is currently private, as you should not rely on it. Instead, - # the public interface is {#find}. The current internal algorithm allows to return all - # matching rules, but different data structures may not be able to do it, and instead would - # return only the match. For this reason, you should rely on {#find}. - # - # @param name [#to_s] the hostname - # @param ignore_private [Boolean] - # @return [Array] - # - # source://public_suffix//lib/public_suffix/list.rb#199 - def select(name, ignore_private: T.unsafe(nil)); end - - class << self - # Gets the default rule list. - # - # Initializes a new {PublicSuffix::List} parsing the content - # of {PublicSuffix::List.default_list_content}, if required. - # - # @return [PublicSuffix::List] - # - # source://public_suffix//lib/public_suffix/list.rb#50 - def default(**options); end - - # Sets the default rule list to +value+. - # - # @param value [PublicSuffix::List] the new list - # @return [PublicSuffix::List] - # - # source://public_suffix//lib/public_suffix/list.rb#58 - def default=(value); end - - # Parse given +input+ treating the content as Public Suffix List. - # - # See http://publicsuffix.org/format/ for more details about input format. - # - # @param input [#each_line] the list to parse - # @param private_domains [Boolean] whether to ignore the private domains section - # @return [PublicSuffix::List] - # - # source://public_suffix//lib/public_suffix/list.rb#69 - def parse(input, private_domains: T.unsafe(nil)); end - end -end - -# source://public_suffix//lib/public_suffix/list.rb#42 -PublicSuffix::List::DEFAULT_LIST_PATH = T.let(T.unsafe(nil), String) - -# A Rule is a special object which holds a single definition -# of the Public Suffix List. -# -# There are 3 types of rules, each one represented by a specific -# subclass within the +PublicSuffix::Rule+ namespace. -# -# To create a new Rule, use the {PublicSuffix::Rule#factory} method. -# -# PublicSuffix::Rule.factory("ar") -# # => # -# -# source://public_suffix//lib/public_suffix/rule.rb#22 -module PublicSuffix::Rule - class << self - # The default rule to use if no rule match. - # - # The default rule is "*". From https://publicsuffix.org/list/: - # - # > If no rules match, the prevailing rule is "*". - # - # @return [PublicSuffix::Rule::Wildcard] The default rule. - # - # source://public_suffix//lib/public_suffix/rule.rb#344 - def default; end - - # Takes the +name+ of the rule, detects the specific rule class - # and creates a new instance of that class. - # The +name+ becomes the rule +value+. - # - # @example Creates a Normal rule - # PublicSuffix::Rule.factory("ar") - # # => # - # @example Creates a Wildcard rule - # PublicSuffix::Rule.factory("*.ar") - # # => # - # @example Creates an Exception rule - # PublicSuffix::Rule.factory("!congresodelalengua3.ar") - # # => # - # @param content [#to_s] the content of the rule - # @return [PublicSuffix::Rule::*] A rule instance. - # - # source://public_suffix//lib/public_suffix/rule.rb#326 - def factory(content, private: T.unsafe(nil)); end - end -end - -# = Abstract rule class -# -# This represent the base class for a Rule definition -# in the {Public Suffix List}[https://publicsuffix.org]. -# -# This is intended to be an Abstract class -# and you shouldn't create a direct instance. The only purpose -# of this class is to expose a common interface -# for all the available subclasses. -# -# * {PublicSuffix::Rule::Normal} -# * {PublicSuffix::Rule::Exception} -# * {PublicSuffix::Rule::Wildcard} -# -# ## Properties -# -# A rule is composed by 4 properties: -# -# value - A normalized version of the rule name. -# The normalization process depends on rule tpe. -# -# Here's an example -# -# PublicSuffix::Rule.factory("*.google.com") -# # -# -# ## Rule Creation -# -# The best way to create a new rule is passing the rule name -# to the PublicSuffix::Rule.factory method. -# -# PublicSuffix::Rule.factory("com") -# # => PublicSuffix::Rule::Normal -# -# PublicSuffix::Rule.factory("*.com") -# # => PublicSuffix::Rule::Wildcard -# -# This method will detect the rule type and create an instance -# from the proper rule class. -# -# ## Rule Usage -# -# A rule describes the composition of a domain name and explains how to tokenize -# the name into tld, sld and trd. -# -# To use a rule, you first need to be sure the name you want to tokenize -# can be handled by the current rule. -# You can use the #match? method. -# -# rule = PublicSuffix::Rule.factory("com") -# -# rule.match?("google.com") -# # => true -# -# rule.match?("google.com") -# # => false -# -# Rule order is significant. A name can match more than one rule. -# See the {Public Suffix Documentation}[http://publicsuffix.org/format/] -# to learn more about rule priority. -# -# When you have the right rule, you can use it to tokenize the domain name. -# -# rule = PublicSuffix::Rule.factory("com") -# -# rule.decompose("google.com") -# # => ["google", "com"] -# -# rule.decompose("www.google.com") -# # => ["www.google", "com"] -# -# @abstract -# -# source://public_suffix//lib/public_suffix/rule.rb#102 -class PublicSuffix::Rule::Base - # Initializes a new rule. - # - # @param value [String] - # @param private [Boolean] - # @return [Base] a new instance of Base - # - # source://public_suffix//lib/public_suffix/rule.rb#126 - def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end - - # Checks whether this rule is equal to other. - # - # @param other [PublicSuffix::Rule::*] The rule to compare - # @return [Boolean] true if this rule and other are instances of the same class - # and has the same value, false otherwise. - # - # source://public_suffix//lib/public_suffix/rule.rb#137 - def ==(other); end - - # @abstract - # @param domain [#to_s] The domain name to decompose - # @raise [NotImplementedError] - # @return [Array] - # - # source://public_suffix//lib/public_suffix/rule.rb#180 - def decompose(*_arg0); end - - # Checks whether this rule is equal to other. - # - # @param other [PublicSuffix::Rule::*] The rule to compare - # @return [Boolean] true if this rule and other are instances of the same class - # and has the same value, false otherwise. - # - # source://public_suffix//lib/public_suffix/rule.rb#137 - def eql?(other); end - - # @return [String] the length of the rule - # - # source://public_suffix//lib/public_suffix/rule.rb#108 - def length; end - - # Checks if this rule matches +name+. - # - # A domain name is said to match a rule if and only if - # all of the following conditions are met: - # - # - When the domain and rule are split into corresponding labels, - # that the domain contains as many or more labels than the rule. - # - Beginning with the right-most labels of both the domain and the rule, - # and continuing for all labels in the rule, one finds that for every pair, - # either they are identical, or that the label from the rule is "*". - # - # @example - # PublicSuffix::Rule.factory("com").match?("example.com") - # # => true - # PublicSuffix::Rule.factory("com").match?("example.net") - # # => false - # @param name [String] the domain name to check - # @return [Boolean] - # @see https://publicsuffix.org/list/ - # - # source://public_suffix//lib/public_suffix/rule.rb#163 - def match?(name); end - - # @abstract - # @raise [NotImplementedError] - # - # source://public_suffix//lib/public_suffix/rule.rb#173 - def parts; end - - # @return [Boolean] true if the rule is a private domain - # - # source://public_suffix//lib/public_suffix/rule.rb#111 - def private; end - - # @return [String] the rule definition - # - # source://public_suffix//lib/public_suffix/rule.rb#105 - def value; end - - class << self - # Initializes a new rule from the content. - # - # @param content [String] the content of the rule - # @param private [Boolean] - # - # source://public_suffix//lib/public_suffix/rule.rb#118 - def build(content, private: T.unsafe(nil)); end - end -end - -# @api internal -# -# source://public_suffix//lib/public_suffix/rule.rb#25 -class PublicSuffix::Rule::Entry < ::Struct - # Returns the value of attribute length - # - # @return [Object] the current value of length - def length; end - - # Sets the attribute length - # - # @param value [Object] the value to set the attribute length to. - # @return [Object] the newly set value - def length=(_); end - - # Returns the value of attribute private - # - # @return [Object] the current value of private - def private; end - - # Sets the attribute private - # - # @param value [Object] the value to set the attribute private to. - # @return [Object] the newly set value - def private=(_); end - - # Returns the value of attribute type - # - # @return [Object] the current value of type - def type; end - - # Sets the attribute type - # - # @param value [Object] the value to set the attribute type to. - # @return [Object] the newly set value - def type=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# Exception represents an exception rule (e.g. !parliament.uk). -# -# source://public_suffix//lib/public_suffix/rule.rb#265 -class PublicSuffix::Rule::Exception < ::PublicSuffix::Rule::Base - # Decomposes the domain name according to rule properties. - # - # @param domain [#to_s] The domain name to decompose - # @return [Array] The array with [trd + sld, tld]. - # - # source://public_suffix//lib/public_suffix/rule.rb#286 - def decompose(domain); end - - # dot-split rule value and returns all rule parts - # in the order they appear in the value. - # The leftmost label is not considered a label. - # - # See http://publicsuffix.org/format/: - # If the prevailing rule is a exception rule, - # modify it by removing the leftmost label. - # - # @return [Array] - # - # source://public_suffix//lib/public_suffix/rule.rb#301 - def parts; end - - # Gets the original rule definition. - # - # @return [String] The rule definition. - # - # source://public_suffix//lib/public_suffix/rule.rb#278 - def rule; end - - class << self - # Initializes a new rule from the content. - # - # @param content [#to_s] the content of the rule - # @param private [Boolean] - # - # source://public_suffix//lib/public_suffix/rule.rb#271 - def build(content, private: T.unsafe(nil)); end - end -end - -# Normal represents a standard rule (e.g. com). -# -# source://public_suffix//lib/public_suffix/rule.rb#187 -class PublicSuffix::Rule::Normal < ::PublicSuffix::Rule::Base - # Decomposes the domain name according to rule properties. - # - # @param domain [#to_s] The domain name to decompose - # @return [Array] The array with [trd + sld, tld]. - # - # source://public_suffix//lib/public_suffix/rule.rb#200 - def decompose(domain); end - - # dot-split rule value and returns all rule parts - # in the order they appear in the value. - # - # @return [Array] - # - # source://public_suffix//lib/public_suffix/rule.rb#210 - def parts; end - - # Gets the original rule definition. - # - # @return [String] The rule definition. - # - # source://public_suffix//lib/public_suffix/rule.rb#192 - def rule; end -end - -# Wildcard represents a wildcard rule (e.g. *.co.uk). -# -# source://public_suffix//lib/public_suffix/rule.rb#217 -class PublicSuffix::Rule::Wildcard < ::PublicSuffix::Rule::Base - # Initializes a new rule. - # - # @param value [String] - # @param length [Integer] - # @param private [Boolean] - # @return [Wildcard] a new instance of Wildcard - # - # source://public_suffix//lib/public_suffix/rule.rb#232 - def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end - - # Decomposes the domain name according to rule properties. - # - # @param domain [#to_s] The domain name to decompose - # @return [Array] The array with [trd + sld, tld]. - # - # source://public_suffix//lib/public_suffix/rule.rb#248 - def decompose(domain); end - - # dot-split rule value and returns all rule parts - # in the order they appear in the value. - # - # @return [Array] - # - # source://public_suffix//lib/public_suffix/rule.rb#258 - def parts; end - - # Gets the original rule definition. - # - # @return [String] The rule definition. - # - # source://public_suffix//lib/public_suffix/rule.rb#240 - def rule; end - - class << self - # Initializes a new rule from the content. - # - # @param content [String] the content of the rule - # @param private [Boolean] - # - # source://public_suffix//lib/public_suffix/rule.rb#223 - def build(content, private: T.unsafe(nil)); end - end -end - -# source://public_suffix//lib/public_suffix.rb#27 -PublicSuffix::STAR = T.let(T.unsafe(nil), String) - -# @return [String] the current library version -# -# source://public_suffix//lib/public_suffix/version.rb#12 -PublicSuffix::VERSION = T.let(T.unsafe(nil), String) diff --git a/Library/Homebrew/sorbet/rbi/gems/racc@1.7.3.rbi b/Library/Homebrew/sorbet/rbi/gems/racc@1.7.3.rbi deleted file mode 100644 index 24b613eab6..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/racc@1.7.3.rbi +++ /dev/null @@ -1,2018 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `racc` gem. -# Please instead update this file by running `bin/tapioca gem racc`. - -# source://racc//lib/racc/compat.rb#14 -class Object < ::BasicObject - include ::Kernel - include ::PP::ObjectMixin -end - -# source://racc//lib/racc/parser.rb#23 -ParseError = Racc::ParseError - -# source://racc//lib/racc/state.rb#924 -class Racc::Accept - # source://racc//lib/racc/state.rb#925 - def inspect; end -end - -# The table of LALR actions. Actions are either of -# Shift, Reduce, Accept and Error. -# -# source://racc//lib/racc/state.rb#811 -class Racc::ActionTable - # @return [ActionTable] a new instance of ActionTable - # - # source://racc//lib/racc/state.rb#813 - def initialize(rt, st); end - - # Returns the value of attribute accept. - # - # source://racc//lib/racc/state.rb#874 - def accept; end - - # source://racc//lib/racc/state.rb#851 - def each_reduce(&block); end - - # source://racc//lib/racc/state.rb#870 - def each_shift(&block); end - - # Returns the value of attribute error. - # - # source://racc//lib/racc/state.rb#875 - def error; end - - # source://racc//lib/racc/state.rb#823 - def init; end - - # source://racc//lib/racc/state.rb#838 - def reduce(i); end - - # source://racc//lib/racc/state.rb#834 - def reduce_n; end - - # source://racc//lib/racc/state.rb#859 - def shift(i); end - - # source://racc//lib/racc/state.rb#855 - def shift_n; end -end - -# source://racc//lib/racc/exception.rb#15 -class Racc::CompileError < ::Racc::Error; end - -# source://racc//lib/racc/info.rb#17 -Racc::Copyright = T.let(T.unsafe(nil), String) - -# source://racc//lib/racc/debugflags.rb#15 -class Racc::DebugFlags - # @return [DebugFlags] a new instance of DebugFlags - # - # source://racc//lib/racc/debugflags.rb#34 - def initialize(parse = T.unsafe(nil), rule = T.unsafe(nil), token = T.unsafe(nil), state = T.unsafe(nil), la = T.unsafe(nil), prec = T.unsafe(nil), conf = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://racc//lib/racc/debugflags.rb#53 - def any?; end - - # Returns the value of attribute la. - # - # source://racc//lib/racc/debugflags.rb#50 - def la; end - - # Returns the value of attribute parse. - # - # source://racc//lib/racc/debugflags.rb#46 - def parse; end - - # Returns the value of attribute prec. - # - # source://racc//lib/racc/debugflags.rb#51 - def prec; end - - # Returns the value of attribute rule. - # - # source://racc//lib/racc/debugflags.rb#47 - def rule; end - - # Returns the value of attribute state. - # - # source://racc//lib/racc/debugflags.rb#49 - def state; end - - # Returns the value of attribute status_logging. - # - # source://racc//lib/racc/debugflags.rb#57 - def status_logging; end - - # Returns the value of attribute token. - # - # source://racc//lib/racc/debugflags.rb#48 - def token; end - - class << self - # source://racc//lib/racc/debugflags.rb#16 - def parse_option_string(s); end - end -end - -# source://racc//lib/racc/exception.rb#14 -class Racc::Error < ::StandardError - # source://racc//lib/racc/state.rb#931 - def inspect; end -end - -# Represents a transition on the grammar. -# "Real goto" means a transition by nonterminal, -# but this class treats also terminal's. -# If one is a terminal transition, .ident returns nil. -# -# source://racc//lib/racc/state.rb#767 -class Racc::Goto - # @return [Goto] a new instance of Goto - # - # source://racc//lib/racc/state.rb#768 - def initialize(ident, sym, from, to); end - - # Returns the value of attribute from_state. - # - # source://racc//lib/racc/state.rb#777 - def from_state; end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/state.rb#775 - def ident; end - - # source://racc//lib/racc/state.rb#780 - def inspect; end - - # Returns the value of attribute symbol. - # - # source://racc//lib/racc/state.rb#776 - def symbol; end - - # Returns the value of attribute to_state. - # - # source://racc//lib/racc/state.rb#778 - def to_state; end -end - -# source://racc//lib/racc/grammar.rb#22 -class Racc::Grammar - extend ::Forwardable - - # @return [Grammar] a new instance of Grammar - # - # source://racc//lib/racc/grammar.rb#24 - def initialize(debug_flags = T.unsafe(nil)); end - - # source://racc//lib/racc/grammar.rb#40 - def [](x); end - - # Grammar Definition Interface - # - # @raise [ArgumentError] - # - # source://racc//lib/racc/grammar.rb#166 - def add(rule); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#171 - def added?(sym); end - - # @raise [CompileError] - # - # source://racc//lib/racc/grammar.rb#180 - def declare_precedence(assoc, syms); end - - # source://racc//lib/racc/grammar.rb#120 - def dfa; end - - # source://racc//lib/racc/grammar.rb#44 - def each(&block); end - - # source://racc//lib/racc/grammar.rb#50 - def each_index(&block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def each_nonterminal(*args, **_arg1, &block); end - - # source://racc//lib/racc/grammar.rb#44 - def each_rule(&block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def each_symbol(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def each_terminal(*args, **_arg1, &block); end - - # source://racc//lib/racc/grammar.rb#92 - def each_useless_nonterminal; end - - # source://racc//lib/racc/grammar.rb#108 - def each_useless_rule; end - - # source://racc//lib/racc/grammar.rb#54 - def each_with_index(&block); end - - # source://racc//lib/racc/grammar.rb#185 - def end_precedence_declaration(reverse); end - - # Computation - # - # @raise [CompileError] - # - # source://racc//lib/racc/grammar.rb#409 - def init; end - - # source://racc//lib/racc/grammar.rb#72 - def intern(value, dummy = T.unsafe(nil)); end - - # Returns the value of attribute n_expected_srconflicts. - # - # source://racc//lib/racc/grammar.rb#38 - def n_expected_srconflicts; end - - # Sets the attribute n_expected_srconflicts - # - # @param value the value to set the attribute n_expected_srconflicts to. - # - # source://racc//lib/racc/grammar.rb#38 - def n_expected_srconflicts=(_arg0); end - - # source://racc//lib/racc/grammar.rb#88 - def n_useless_nonterminals; end - - # source://racc//lib/racc/grammar.rb#104 - def n_useless_rules; end - - # source://racc//lib/racc/grammar.rb#116 - def nfa; end - - # source://racc//lib/racc/grammar.rb#80 - def nonterminal_base; end - - # source://racc//lib/racc/grammar.rb#130 - def parser_class; end - - # source://racc//lib/racc/grammar.rb#58 - def size; end - - # Returns the value of attribute start. - # - # source://racc//lib/racc/grammar.rb#36 - def start; end - - # @raise [CompileError] - # - # source://racc//lib/racc/grammar.rb#175 - def start_symbol=(s); end - - # source://racc//lib/racc/grammar.rb#126 - def state_transition_table; end - - # source://racc//lib/racc/grammar.rb#120 - def states; end - - # source://racc//lib/racc/grammar.rb#76 - def symbols; end - - # Returns the value of attribute symboltable. - # - # source://racc//lib/racc/grammar.rb#37 - def symboltable; end - - # source://racc//lib/racc/grammar.rb#62 - def to_s; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#84 - def useless_nonterminal_exist?; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#100 - def useless_rule_exist?; end - - # source://racc//lib/racc/grammar.rb#156 - def write_log(path); end - - private - - # source://racc//lib/racc/grammar.rb#504 - def _compute_expand(t, set, lock); end - - # source://racc//lib/racc/grammar.rb#430 - def add_start_rule; end - - # source://racc//lib/racc/grammar.rb#537 - def check_rules_nullable(rules); end - - # source://racc//lib/racc/grammar.rb#578 - def check_rules_useless(rules); end - - # source://racc//lib/racc/grammar.rb#550 - def check_symbols_nullable(symbols); end - - # source://racc//lib/racc/grammar.rb#591 - def check_symbols_useless(s); end - - # Sym#expand - # - # source://racc//lib/racc/grammar.rb#498 - def compute_expand(t); end - - # Rule#hash - # - # source://racc//lib/racc/grammar.rb#449 - def compute_hash; end - - # Sym#heads - # - # source://racc//lib/racc/grammar.rb#458 - def compute_heads; end - - # Sym#locate - # - # source://racc//lib/racc/grammar.rb#483 - def compute_locate; end - - # Sym#nullable?, Rule#nullable? - # - # source://racc//lib/racc/grammar.rb#524 - def compute_nullable; end - - # Sym#self_null? - # - # source://racc//lib/racc/grammar.rb#472 - def compute_nullable_0; end - - # Sym#useless?, Rule#useless? - # FIXME: what means "useless"? - # - # source://racc//lib/racc/grammar.rb#564 - def compute_useless; end - - # Sym#terminal? - # - # source://racc//lib/racc/grammar.rb#465 - def determine_terminals; end - - # Rule#ident - # LocationPointer#ident - # - # source://racc//lib/racc/grammar.rb#442 - def fix_ident; end - - class << self - # Dynamic Generation Interface - # - # source://racc//lib/racc/grammar.rb#201 - def define(&block); end - end -end - -# source://racc//lib/racc/grammar.rb#207 -class Racc::Grammar::DefinitionEnv - # @return [DefinitionEnv] a new instance of DefinitionEnv - # - # source://racc//lib/racc/grammar.rb#208 - def initialize; end - - # source://racc//lib/racc/grammar.rb#282 - def _(&block); end - - # source://racc//lib/racc/grammar.rb#242 - def _add(target, x); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#262 - def _added?(sym); end - - # source://racc//lib/racc/grammar.rb#258 - def _delayed_add(rule); end - - # source://racc//lib/racc/grammar.rb#321 - def _intern(x); end - - # source://racc//lib/racc/grammar.rb#282 - def action(&block); end - - # source://racc//lib/racc/grammar.rb#266 - def flush_delayed; end - - # source://racc//lib/racc/grammar.rb#214 - def grammar; end - - # source://racc//lib/racc/grammar.rb#296 - def many(sym, &block); end - - # source://racc//lib/racc/grammar.rb#303 - def many1(sym, &block); end - - # source://racc//lib/racc/grammar.rb#231 - def method_missing(mid, *args, &block); end - - # source://racc//lib/racc/grammar.rb#278 - def null(&block); end - - # source://racc//lib/racc/grammar.rb#290 - def option(sym, default = T.unsafe(nil), &block); end - - # source://racc//lib/racc/grammar.rb#225 - def precedence_table(&block); end - - # source://racc//lib/racc/grammar.rb#310 - def separated_by(sep, sym, &block); end - - # source://racc//lib/racc/grammar.rb#314 - def separated_by1(sep, sym, &block); end - - # source://racc//lib/racc/grammar.rb#274 - def seq(*list, &block); end - - private - - # source://racc//lib/racc/grammar.rb#334 - def _defmetasyntax(type, id, action, &block); end - - # source://racc//lib/racc/grammar.rb#345 - def _register(target_name); end - - # source://racc//lib/racc/grammar.rb#356 - def _wrap(target_name, sym, block); end -end - -# source://racc//lib/racc/grammar.rb#365 -class Racc::Grammar::PrecedenceDefinitionEnv - # @return [PrecedenceDefinitionEnv] a new instance of PrecedenceDefinitionEnv - # - # source://racc//lib/racc/grammar.rb#366 - def initialize(g); end - - # source://racc//lib/racc/grammar.rb#375 - def higher; end - - # source://racc//lib/racc/grammar.rb#392 - def left(*syms); end - - # source://racc//lib/racc/grammar.rb#382 - def lower; end - - # source://racc//lib/racc/grammar.rb#400 - def nonassoc(*syms); end - - # Returns the value of attribute reverse. - # - # source://racc//lib/racc/grammar.rb#373 - def reverse; end - - # source://racc//lib/racc/grammar.rb#396 - def right(*syms); end -end - -# An "indexed" set. All items must respond to :ident. -# -# source://racc//lib/racc/iset.rb#16 -class Racc::ISet - # @return [ISet] a new instance of ISet - # - # source://racc//lib/racc/iset.rb#18 - def initialize(a = T.unsafe(nil)); end - - # source://racc//lib/racc/iset.rb#28 - def [](key); end - - # source://racc//lib/racc/iset.rb#32 - def []=(key, val); end - - # source://racc//lib/racc/iset.rb#24 - def add(i); end - - # source://racc//lib/racc/iset.rb#82 - def clear; end - - # source://racc//lib/racc/iset.rb#54 - def delete(key); end - - # source://racc//lib/racc/iset.rb#86 - def dup; end - - # source://racc//lib/racc/iset.rb#60 - def each(&block); end - - # @return [Boolean] - # - # source://racc//lib/racc/iset.rb#78 - def empty?; end - - # source://racc//lib/racc/iset.rb#28 - def include?(key); end - - # source://racc//lib/racc/iset.rb#68 - def inspect; end - - # source://racc//lib/racc/iset.rb#28 - def key?(key); end - - # Returns the value of attribute set. - # - # source://racc//lib/racc/iset.rb#22 - def set; end - - # source://racc//lib/racc/iset.rb#74 - def size; end - - # source://racc//lib/racc/iset.rb#64 - def to_a; end - - # source://racc//lib/racc/iset.rb#68 - def to_s; end - - # source://racc//lib/racc/iset.rb#39 - def update(other); end - - # source://racc//lib/racc/iset.rb#49 - def update_a(a); end -end - -# LALR item. A set of rule and its lookahead tokens. -# -# source://racc//lib/racc/state.rb#787 -class Racc::Item - # @return [Item] a new instance of Item - # - # source://racc//lib/racc/state.rb#788 - def initialize(rule, la); end - - # source://racc//lib/racc/state.rb#796 - def each_la(tbl); end - - # Returns the value of attribute la. - # - # source://racc//lib/racc/state.rb#794 - def la; end - - # Returns the value of attribute rule. - # - # source://racc//lib/racc/state.rb#793 - def rule; end -end - -# A set of rule and position in it's RHS. -# Note that the number of pointers is more than rule's RHS array, -# because pointer points right edge of the final symbol when reducing. -# -# source://racc//lib/racc/grammar.rb#812 -class Racc::LocationPointer - # @return [LocationPointer] a new instance of LocationPointer - # - # source://racc//lib/racc/grammar.rb#814 - def initialize(rule, i, sym); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#840 - def ==(ot); end - - # source://racc//lib/racc/grammar.rb#856 - def before(len); end - - # Returns the value of attribute symbol. - # - # source://racc//lib/racc/grammar.rb#824 - def dereference; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#840 - def eql?(ot); end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/grammar.rb#828 - def hash; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#846 - def head?; end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/grammar.rb#828 - def ident; end - - # source://racc//lib/racc/grammar.rb#850 - def increment; end - - # Returns the value of attribute index. - # - # source://racc//lib/racc/grammar.rb#823 - def index; end - - # source://racc//lib/racc/grammar.rb#833 - def inspect; end - - # source://racc//lib/racc/grammar.rb#850 - def next; end - - # Returns the value of attribute reduce. - # - # source://racc//lib/racc/grammar.rb#830 - def reduce; end - - # Returns the value of attribute reduce. - # - # source://racc//lib/racc/grammar.rb#830 - def reduce?; end - - # Returns the value of attribute rule. - # - # source://racc//lib/racc/grammar.rb#822 - def rule; end - - # Returns the value of attribute symbol. - # - # source://racc//lib/racc/grammar.rb#824 - def symbol; end - - # source://racc//lib/racc/grammar.rb#833 - def to_s; end - - private - - # source://racc//lib/racc/grammar.rb#862 - def ptr_bug!; end -end - -# source://racc//lib/racc/logfilegenerator.rb#15 -class Racc::LogFileGenerator - # @return [LogFileGenerator] a new instance of LogFileGenerator - # - # source://racc//lib/racc/logfilegenerator.rb#17 - def initialize(states, debug_flags = T.unsafe(nil)); end - - # source://racc//lib/racc/logfilegenerator.rb#92 - def action_out(f, state); end - - # source://racc//lib/racc/logfilegenerator.rb#133 - def outact(f, t, act); end - - # source://racc//lib/racc/logfilegenerator.rb#23 - def output(out); end - - # Warnings - # - # source://racc//lib/racc/logfilegenerator.rb#35 - def output_conflict(out); end - - # Rules - # - # source://racc//lib/racc/logfilegenerator.rb#170 - def output_rule(out); end - - # States - # - # source://racc//lib/racc/logfilegenerator.rb#66 - def output_state(out); end - - # Tokens - # - # source://racc//lib/racc/logfilegenerator.rb#184 - def output_token(out); end - - # source://racc//lib/racc/logfilegenerator.rb#48 - def output_useless(out); end - - # source://racc//lib/racc/logfilegenerator.rb#158 - def outrrconf(f, confs); end - - # source://racc//lib/racc/logfilegenerator.rb#150 - def outsrconf(f, confs); end - - # source://racc//lib/racc/logfilegenerator.rb#82 - def pointer_out(out, ptr); end - - # source://racc//lib/racc/logfilegenerator.rb#206 - def symbol_locations(locs); end -end - -# source://racc//lib/racc/grammar.rb#775 -class Racc::OrMark - # @return [OrMark] a new instance of OrMark - # - # source://racc//lib/racc/grammar.rb#776 - def initialize(lineno); end - - # source://racc//lib/racc/grammar.rb#780 - def inspect; end - - # Returns the value of attribute lineno. - # - # source://racc//lib/racc/grammar.rb#786 - def lineno; end - - # source://racc//lib/racc/grammar.rb#780 - def name; end -end - -# source://racc//lib/racc/parser.rb#188 -class Racc::Parser - # source://racc//lib/racc/parser.rb#283 - def _racc_do_parse_rb(arg, in_debug); end - - # source://racc//lib/racc/parser.rb#483 - def _racc_do_reduce(arg, act); end - - # common - # - # source://racc//lib/racc/parser.rb#386 - def _racc_evalact(act, arg); end - - # source://racc//lib/racc/parser.rb#236 - def _racc_init_sysvars; end - - # source://racc//lib/racc/parser.rb#224 - def _racc_setup; end - - # source://racc//lib/racc/parser.rb#333 - def _racc_yyparse_rb(recv, mid, arg, c_debug); end - - # source://racc//lib/racc/parser.rb#266 - def do_parse; end - - # The method to fetch next token. - # If you use #do_parse method, you must implement #next_token. - # - # The format of return value is [TOKEN_SYMBOL, VALUE]. - # +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT - # for 'IDENT'. ";" (String) for ';'. - # - # The final symbol (End of file) must be false. - # - # @raise [NotImplementedError] - # - # source://racc//lib/racc/parser.rb#279 - def next_token; end - - # This method is called when a parse error is found. - # - # ERROR_TOKEN_ID is an internal ID of token which caused error. - # You can get string representation of this ID by calling - # #token_to_str. - # - # ERROR_VALUE is a value of error token. - # - # value_stack is a stack of symbol values. - # DO NOT MODIFY this object. - # - # This method raises ParseError by default. - # - # If this method returns, parsers enter "error recovering mode". - # - # @raise [ParseError] - # - # source://racc//lib/racc/parser.rb#539 - def on_error(t, val, vstack); end - - # source://racc//lib/racc/parser.rb#588 - def racc_accept; end - - # source://racc//lib/racc/parser.rb#593 - def racc_e_pop(state, tstack, vstack); end - - # source://racc//lib/racc/parser.rb#600 - def racc_next_state(curstate, state); end - - # source://racc//lib/racc/parser.rb#606 - def racc_print_stacks(t, v); end - - # source://racc//lib/racc/parser.rb#615 - def racc_print_states(s); end - - # For debugging output - # - # source://racc//lib/racc/parser.rb#562 - def racc_read_token(t, tok, val); end - - # source://racc//lib/racc/parser.rb#575 - def racc_reduce(toks, sim, tstack, vstack); end - - # source://racc//lib/racc/parser.rb#569 - def racc_shift(tok, tstack, vstack); end - - # source://racc//lib/racc/parser.rb#622 - def racc_token2str(tok); end - - # Convert internal ID of token symbol to the string. - # - # source://racc//lib/racc/parser.rb#628 - def token_to_str(t); end - - # Exit parser. - # Return value is +Symbol_Value_Stack[0]+. - # - # source://racc//lib/racc/parser.rb#552 - def yyaccept; end - - # Leave error recovering mode. - # - # source://racc//lib/racc/parser.rb#557 - def yyerrok; end - - # Enter error recovering mode. - # This method does not call #on_error. - # - # source://racc//lib/racc/parser.rb#546 - def yyerror; end - - # source://racc//lib/racc/parser.rb#328 - def yyparse(recv, mid); end - - class << self - # source://racc//lib/racc/parser.rb#220 - def racc_runtime_type; end - end -end - -# source://racc//lib/racc/parser.rb#209 -Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol) - -Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String) - -# source://racc//lib/racc/parser.rb#211 -Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String) - -Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String) - -# source://racc//lib/racc/parser.rb#191 -Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String) - -# source://racc//lib/racc/parser.rb#212 -Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String) - -# source://racc//lib/racc/parser.rb#190 -Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String) - -# source://racc//lib/racc/parser.rb#210 -Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol) - -# source://racc//lib/racc/statetransitiontable.rb#261 -class Racc::ParserClassGenerator - # @return [ParserClassGenerator] a new instance of ParserClassGenerator - # - # source://racc//lib/racc/statetransitiontable.rb#263 - def initialize(states); end - - # source://racc//lib/racc/statetransitiontable.rb#268 - def generate; end - - private - - # source://racc//lib/racc/statetransitiontable.rb#293 - def define_actions(c); end -end - -# source://racc//lib/racc/grammar.rb#790 -class Racc::Prec - # @return [Prec] a new instance of Prec - # - # source://racc//lib/racc/grammar.rb#791 - def initialize(symbol, lineno); end - - # source://racc//lib/racc/grammar.rb#796 - def inspect; end - - # Returns the value of attribute lineno. - # - # source://racc//lib/racc/grammar.rb#803 - def lineno; end - - # source://racc//lib/racc/grammar.rb#796 - def name; end - - # Returns the value of attribute symbol. - # - # source://racc//lib/racc/grammar.rb#802 - def symbol; end -end - -# source://racc//lib/racc/state.rb#953 -class Racc::RRconflict - # @return [RRconflict] a new instance of RRconflict - # - # source://racc//lib/racc/state.rb#954 - def initialize(sid, high, low, tok); end - - # Returns the value of attribute high_prec. - # - # source://racc//lib/racc/state.rb#962 - def high_prec; end - - # Returns the value of attribute low_prec. - # - # source://racc//lib/racc/state.rb#963 - def low_prec; end - - # Returns the value of attribute stateid. - # - # source://racc//lib/racc/state.rb#961 - def stateid; end - - # source://racc//lib/racc/state.rb#966 - def to_s; end - - # Returns the value of attribute token. - # - # source://racc//lib/racc/state.rb#964 - def token; end -end - -# source://racc//lib/racc/parser.rb#185 -Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass) - -# source://racc//lib/racc/state.rb#897 -class Racc::Reduce - # @return [Reduce] a new instance of Reduce - # - # source://racc//lib/racc/state.rb#898 - def initialize(rule); end - - # source://racc//lib/racc/state.rb#918 - def decref; end - - # source://racc//lib/racc/state.rb#914 - def incref; end - - # source://racc//lib/racc/state.rb#910 - def inspect; end - - # Returns the value of attribute refn. - # - # source://racc//lib/racc/state.rb#904 - def refn; end - - # Returns the value of attribute rule. - # - # source://racc//lib/racc/state.rb#903 - def rule; end - - # source://racc//lib/racc/state.rb#906 - def ruleid; end -end - -# source://racc//lib/racc/grammar.rb#606 -class Racc::Rule - # @return [Rule] a new instance of Rule - # - # source://racc//lib/racc/grammar.rb#608 - def initialize(target, syms, act); end - - # source://racc//lib/racc/grammar.rb#687 - def ==(other); end - - # source://racc//lib/racc/grammar.rb#691 - def [](idx); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#707 - def accept?; end - - # Returns the value of attribute action. - # - # source://racc//lib/racc/grammar.rb#625 - def action; end - - # source://racc//lib/racc/grammar.rb#715 - def each(&block); end - - # @yield [_self] - # @yieldparam _self [Racc::Rule] the object that the method was called on - # - # source://racc//lib/racc/grammar.rb#636 - def each_rule(&block); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#699 - def empty?; end - - # Returns the value of attribute hash. - # - # source://racc//lib/racc/grammar.rb#643 - def hash; end - - # source://racc//lib/racc/grammar.rb#646 - def hash=(n); end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/grammar.rb#641 - def ident; end - - # Sets the attribute ident - # - # @param value the value to set the attribute ident to. - # - # source://racc//lib/racc/grammar.rb#641 - def ident=(_arg0); end - - # source://racc//lib/racc/grammar.rb#683 - def inspect; end - - # source://racc//lib/racc/grammar.rb#678 - def null=(n); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#677 - def nullable?; end - - # source://racc//lib/racc/grammar.rb#664 - def prec(sym, &block); end - - # source://racc//lib/racc/grammar.rb#656 - def precedence; end - - # source://racc//lib/racc/grammar.rb#660 - def precedence=(sym); end - - # Returns the value of attribute ptrs. - # - # source://racc//lib/racc/grammar.rb#644 - def ptrs; end - - # source://racc//lib/racc/grammar.rb#719 - def replace(src, dest); end - - # source://racc//lib/racc/grammar.rb#632 - def rule; end - - # source://racc//lib/racc/grammar.rb#695 - def size; end - - # Returns the value of attribute specified_prec. - # - # source://racc//lib/racc/grammar.rb#675 - def specified_prec; end - - # Sets the attribute specified_prec - # - # @param value the value to set the attribute specified_prec to. - # - # source://racc//lib/racc/grammar.rb#675 - def specified_prec=(_arg0); end - - # Returns the value of attribute symbols. - # - # source://racc//lib/racc/grammar.rb#624 - def symbols; end - - # Returns the value of attribute target. - # - # source://racc//lib/racc/grammar.rb#623 - def target; end - - # Sets the attribute target - # - # @param value the value to set the attribute target to. - # - # source://racc//lib/racc/grammar.rb#623 - def target=(_arg0); end - - # source://racc//lib/racc/grammar.rb#703 - def to_s; end - - # source://racc//lib/racc/grammar.rb#681 - def useless=(u); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#680 - def useless?; end - - # source://racc//lib/racc/grammar.rb#627 - def |(x); end -end - -# source://racc//lib/racc/state.rb#936 -class Racc::SRconflict - # @return [SRconflict] a new instance of SRconflict - # - # source://racc//lib/racc/state.rb#937 - def initialize(sid, shift, reduce); end - - # Returns the value of attribute reduce. - # - # source://racc//lib/racc/state.rb#945 - def reduce; end - - # Returns the value of attribute shift. - # - # source://racc//lib/racc/state.rb#944 - def shift; end - - # Returns the value of attribute stateid. - # - # source://racc//lib/racc/state.rb#943 - def stateid; end - - # source://racc//lib/racc/state.rb#947 - def to_s; end -end - -# source://racc//lib/racc/state.rb#880 -class Racc::Shift - # @return [Shift] a new instance of Shift - # - # source://racc//lib/racc/state.rb#881 - def initialize(goto); end - - # source://racc//lib/racc/state.rb#887 - def goto_id; end - - # Returns the value of attribute goto_state. - # - # source://racc//lib/racc/state.rb#885 - def goto_state; end - - # source://racc//lib/racc/state.rb#891 - def inspect; end -end - -# source://racc//lib/racc/sourcetext.rb#15 -class Racc::SourceText - # @return [SourceText] a new instance of SourceText - # - # source://racc//lib/racc/sourcetext.rb#16 - def initialize(text, filename, lineno); end - - # Returns the value of attribute filename. - # - # source://racc//lib/racc/sourcetext.rb#23 - def filename; end - - # Returns the value of attribute lineno. - # - # source://racc//lib/racc/sourcetext.rb#24 - def lineno; end - - # source://racc//lib/racc/sourcetext.rb#30 - def location; end - - # Returns the value of attribute text. - # - # source://racc//lib/racc/sourcetext.rb#22 - def text; end - - # source://racc//lib/racc/sourcetext.rb#26 - def to_s; end -end - -# A LALR state. -# -# source://racc//lib/racc/state.rb#607 -class Racc::State - # @return [State] a new instance of State - # - # source://racc//lib/racc/state.rb#609 - def initialize(ident, core); end - - # source://racc//lib/racc/state.rb#650 - def ==(oth); end - - # Returns the value of attribute action. - # - # source://racc//lib/racc/state.rb#638 - def action; end - - # source://racc//lib/racc/state.rb#667 - def check_la(la_rules); end - - # Returns the value of attribute closure. - # - # source://racc//lib/racc/state.rb#629 - def closure; end - - # @return [Boolean] - # - # source://racc//lib/racc/state.rb#701 - def conflict?; end - - # Returns the value of attribute core. - # - # source://racc//lib/racc/state.rb#628 - def core; end - - # default action - # - # source://racc//lib/racc/state.rb#639 - def defact; end - - # default action - # - # source://racc//lib/racc/state.rb#639 - def defact=(_arg0); end - - # source://racc//lib/racc/state.rb#650 - def eql?(oth); end - - # Returns the value of attribute goto_table. - # - # source://racc//lib/racc/state.rb#631 - def goto_table; end - - # Returns the value of attribute gotos. - # - # source://racc//lib/racc/state.rb#632 - def gotos; end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/state.rb#624 - def hash; end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/state.rb#624 - def ident; end - - # source://racc//lib/racc/state.rb#644 - def inspect; end - - # source://racc//lib/racc/state.rb#718 - def la=(la); end - - # source://racc//lib/racc/state.rb#656 - def make_closure(core); end - - # source://racc//lib/racc/state.rb#754 - def n_rrconflicts; end - - # source://racc//lib/racc/state.rb#750 - def n_srconflicts; end - - # Returns the value of attribute ritems. - # - # source://racc//lib/racc/state.rb#635 - def ritems; end - - # source://racc//lib/racc/state.rb#728 - def rr_conflict(high, low, ctok); end - - # Returns the value of attribute rrconf. - # - # source://racc//lib/racc/state.rb#641 - def rrconf; end - - # source://racc//lib/racc/state.rb#705 - def rruleid(rule); end - - # Returns the value of attribute rrules. - # - # source://racc//lib/racc/state.rb#636 - def rrules; end - - # source://racc//lib/racc/state.rb#739 - def sr_conflict(shift, reduce); end - - # Returns the value of attribute srconf. - # - # source://racc//lib/racc/state.rb#642 - def srconf; end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/state.rb#624 - def stateid; end - - # Returns the value of attribute stokens. - # - # source://racc//lib/racc/state.rb#634 - def stokens; end - - # source://racc//lib/racc/state.rb#644 - def to_s; end -end - -# reopen -# -# source://racc//lib/racc/statetransitiontable.rb#17 -class Racc::StateTransitionTable < ::Struct - # @return [StateTransitionTable] a new instance of StateTransitionTable - # - # source://racc//lib/racc/statetransitiontable.rb#38 - def initialize(states); end - - # Returns the value of attribute action_check - # - # @return [Object] the current value of action_check - def action_check; end - - # Sets the attribute action_check - # - # @param value [Object] the value to set the attribute action_check to. - # @return [Object] the newly set value - def action_check=(_); end - - # Returns the value of attribute action_default - # - # @return [Object] the current value of action_default - def action_default; end - - # Sets the attribute action_default - # - # @param value [Object] the value to set the attribute action_default to. - # @return [Object] the newly set value - def action_default=(_); end - - # Returns the value of attribute action_pointer - # - # @return [Object] the current value of action_pointer - def action_pointer; end - - # Sets the attribute action_pointer - # - # @param value [Object] the value to set the attribute action_pointer to. - # @return [Object] the newly set value - def action_pointer=(_); end - - # Returns the value of attribute action_table - # - # @return [Object] the current value of action_table - def action_table; end - - # Sets the attribute action_table - # - # @param value [Object] the value to set the attribute action_table to. - # @return [Object] the newly set value - def action_table=(_); end - - # Returns the value of attribute debug_parser - # - # @return [Object] the current value of debug_parser - def debug_parser; end - - # Sets the attribute debug_parser - # - # @param value [Object] the value to set the attribute debug_parser to. - # @return [Object] the newly set value - def debug_parser=(_); end - - # Returns the value of attribute goto_check - # - # @return [Object] the current value of goto_check - def goto_check; end - - # Sets the attribute goto_check - # - # @param value [Object] the value to set the attribute goto_check to. - # @return [Object] the newly set value - def goto_check=(_); end - - # Returns the value of attribute goto_default - # - # @return [Object] the current value of goto_default - def goto_default; end - - # Sets the attribute goto_default - # - # @param value [Object] the value to set the attribute goto_default to. - # @return [Object] the newly set value - def goto_default=(_); end - - # Returns the value of attribute goto_pointer - # - # @return [Object] the current value of goto_pointer - def goto_pointer; end - - # Sets the attribute goto_pointer - # - # @param value [Object] the value to set the attribute goto_pointer to. - # @return [Object] the newly set value - def goto_pointer=(_); end - - # Returns the value of attribute goto_table - # - # @return [Object] the current value of goto_table - def goto_table; end - - # Sets the attribute goto_table - # - # @param value [Object] the value to set the attribute goto_table to. - # @return [Object] the newly set value - def goto_table=(_); end - - # Returns the value of attribute grammar. - # - # source://racc//lib/racc/statetransitiontable.rb#47 - def grammar; end - - # Returns the value of attribute nt_base - # - # @return [Object] the current value of nt_base - def nt_base; end - - # Sets the attribute nt_base - # - # @param value [Object] the value to set the attribute nt_base to. - # @return [Object] the newly set value - def nt_base=(_); end - - # source://racc//lib/racc/statetransitiontable.rb#49 - def parser_class; end - - # Returns the value of attribute reduce_n - # - # @return [Object] the current value of reduce_n - def reduce_n; end - - # Sets the attribute reduce_n - # - # @param value [Object] the value to set the attribute reduce_n to. - # @return [Object] the newly set value - def reduce_n=(_); end - - # Returns the value of attribute reduce_table - # - # @return [Object] the current value of reduce_table - def reduce_table; end - - # Sets the attribute reduce_table - # - # @param value [Object] the value to set the attribute reduce_table to. - # @return [Object] the newly set value - def reduce_table=(_); end - - # Returns the value of attribute shift_n - # - # @return [Object] the current value of shift_n - def shift_n; end - - # Sets the attribute shift_n - # - # @param value [Object] the value to set the attribute shift_n to. - # @return [Object] the newly set value - def shift_n=(_); end - - # Returns the value of attribute states. - # - # source://racc//lib/racc/statetransitiontable.rb#46 - def states; end - - # Returns the value of attribute token_table - # - # @return [Object] the current value of token_table - def token_table; end - - # Sets the attribute token_table - # - # @param value [Object] the value to set the attribute token_table to. - # @return [Object] the newly set value - def token_table=(_); end - - # Returns the value of attribute token_to_s_table - # - # @return [Object] the current value of token_to_s_table - def token_to_s_table; end - - # Sets the attribute token_to_s_table - # - # @param value [Object] the value to set the attribute token_to_s_table to. - # @return [Object] the newly set value - def token_to_s_table=(_); end - - # source://racc//lib/racc/statetransitiontable.rb#53 - def token_value_table; end - - # Returns the value of attribute use_result_var - # - # @return [Object] the current value of use_result_var - def use_result_var; end - - # Sets the attribute use_result_var - # - # @param value [Object] the value to set the attribute use_result_var to. - # @return [Object] the newly set value - def use_result_var=(_); end - - class << self - def [](*_arg0); end - - # source://racc//lib/racc/statetransitiontable.rb#34 - def generate(states); end - - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end -end - -# source://racc//lib/racc/statetransitiontable.rb#63 -class Racc::StateTransitionTableGenerator - # @return [StateTransitionTableGenerator] a new instance of StateTransitionTableGenerator - # - # source://racc//lib/racc/statetransitiontable.rb#65 - def initialize(states); end - - # source://racc//lib/racc/statetransitiontable.rb#247 - def act2actid(act); end - - # source://racc//lib/racc/statetransitiontable.rb#169 - def addent(all, arr, chkval, ptr); end - - # source://racc//lib/racc/statetransitiontable.rb#105 - def gen_action_tables(t, states); end - - # source://racc//lib/racc/statetransitiontable.rb#127 - def gen_goto_tables(t, grammar); end - - # source://racc//lib/racc/statetransitiontable.rb#70 - def generate; end - - # source://racc//lib/racc/statetransitiontable.rb#191 - def mkmapexp(arr); end - - # source://racc//lib/racc/statetransitiontable.rb#83 - def reduce_table(grammar); end - - # source://racc//lib/racc/statetransitiontable.rb#222 - def set_table(entries, dummy, tbl, chk, ptr); end - - # source://racc//lib/racc/statetransitiontable.rb#97 - def token_table(grammar); end -end - -# source://racc//lib/racc/statetransitiontable.rb#185 -Racc::StateTransitionTableGenerator::RE_DUP_MAX = T.let(T.unsafe(nil), Integer) - -# A table of LALR states. -# -# source://racc//lib/racc/state.rb#21 -class Racc::States - include ::Enumerable - extend ::Forwardable - - # @return [States] a new instance of States - # - # source://racc//lib/racc/state.rb#25 - def initialize(grammar, debug_flags = T.unsafe(nil)); end - - # source://racc//lib/racc/state.rb#51 - def [](i); end - - # Returns the value of attribute actions. - # - # source://racc//lib/racc/state.rb#39 - def actions; end - - # source://racc//lib/racc/state.rb#196 - def dfa; end - - # source://racc//lib/racc/state.rb#55 - def each(&block); end - - # source://racc//lib/racc/state.rb#61 - def each_index(&block); end - - # source://racc//lib/racc/state.rb#55 - def each_state(&block); end - - # Returns the value of attribute grammar. - # - # source://racc//lib/racc/state.rb#38 - def grammar; end - - # source://racc//lib/racc/state.rb#45 - def inspect; end - - # source://racc//lib/racc/state.rb#88 - def n_rrconflicts; end - - # source://racc//lib/racc/state.rb#80 - def n_srconflicts; end - - # source://racc//lib/racc/state.rb#102 - def nfa; end - - # source://forwardable/1.3.2/forwardable.rb#229 - def nt_base(*args, **_arg1, &block); end - - # source://forwardable/1.3.2/forwardable.rb#229 - def reduce_n(*args, **_arg1, &block); end - - # @return [Boolean] - # - # source://racc//lib/racc/state.rb#84 - def rrconflict_exist?; end - - # source://forwardable/1.3.2/forwardable.rb#229 - def shift_n(*args, **_arg1, &block); end - - # @return [Boolean] - # - # source://racc//lib/racc/state.rb#71 - def should_report_srconflict?; end - - # source://racc//lib/racc/state.rb#41 - def size; end - - # @return [Boolean] - # - # source://racc//lib/racc/state.rb#76 - def srconflict_exist?; end - - # source://racc//lib/racc/state.rb#92 - def state_transition_table; end - - # source://racc//lib/racc/state.rb#45 - def to_s; end - - private - - # source://racc//lib/racc/state.rb#317 - def addrel(tbl, i, item); end - - # source://racc//lib/racc/state.rb#154 - def addsym(table, sym, ptr); end - - # source://racc//lib/racc/state.rb#586 - def check_useless; end - - # source://racc//lib/racc/state.rb#206 - def compute_dfa; end - - # source://racc//lib/racc/state.rb#111 - def compute_nfa; end - - # source://racc//lib/racc/state.rb#161 - def core_to_state(core); end - - # source://racc//lib/racc/state.rb#313 - def create_tmap(size); end - - # source://racc//lib/racc/state.rb#348 - def digraph(map, relation); end - - # source://racc//lib/racc/state.rb#523 - def do_resolve_sr(stok, rtok); end - - # source://racc//lib/racc/state.rb#422 - def each_t(tbl, set); end - - # source://racc//lib/racc/state.rb#186 - def fingerprint(arr); end - - # source://racc//lib/racc/state.rb#125 - def generate_states(state); end - - # source://racc//lib/racc/state.rb#219 - def lookahead; end - - # source://racc//lib/racc/state.rb#564 - def pack(state); end - - # for debug - # - # source://racc//lib/racc/state.rb#390 - def print_atab(idx, tab); end - - # source://racc//lib/racc/state.rb#397 - def print_tab(idx, rel, tab); end - - # for debug - # - # source://racc//lib/racc/state.rb#407 - def print_tab_i(idx, rel, tab, i); end - - # for debug - # - # source://racc//lib/racc/state.rb#415 - def printb(i); end - - # source://racc//lib/racc/state.rb#325 - def record_path(begst, rule); end - - # resolve - # - # source://racc//lib/racc/state.rb#436 - def resolve(state); end - - # source://racc//lib/racc/state.rb#453 - def resolve_rr(state, r); end - - # source://racc//lib/racc/state.rb#472 - def resolve_sr(state, s); end - - # complete - # - # source://racc//lib/racc/state.rb#553 - def set_accept; end - - # source://racc//lib/racc/state.rb#336 - def transpose(rel); end - - # source://racc//lib/racc/state.rb#361 - def traverse(i, index, vertices, map, relation); end -end - -# source://racc//lib/racc/state.rb#517 -Racc::States::ASSOC = T.let(T.unsafe(nil), Hash) - -# Stands terminal and nonterminal symbols. -# -# source://racc//lib/racc/grammar.rb#972 -class Racc::Sym - # @return [Sym] a new instance of Sym - # - # source://racc//lib/racc/grammar.rb#974 - def initialize(value, dummyp); end - - # Returns the value of attribute assoc. - # - # source://racc//lib/racc/grammar.rb#1064 - def assoc; end - - # Sets the attribute assoc - # - # @param value the value to set the attribute assoc to. - # - # source://racc//lib/racc/grammar.rb#1064 - def assoc=(_arg0); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1027 - def dummy?; end - - # Returns the value of attribute expand. - # - # source://racc//lib/racc/grammar.rb#1101 - def expand; end - - def expand=(v); end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/grammar.rb#1021 - def hash; end - - # cache - # - # source://racc//lib/racc/grammar.rb#1084 - def heads; end - - # Returns the value of attribute ident. - # - # source://racc//lib/racc/grammar.rb#1021 - def ident; end - - def ident=(v); end - - # source://racc//lib/racc/grammar.rb#1066 - def inspect; end - - # Returns the value of attribute locate. - # - # source://racc//lib/racc/grammar.rb#1085 - def locate; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1035 - def nonterminal?; end - - # source://racc//lib/racc/grammar.rb#1097 - def null=(n); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1093 - def nullable?; end - - # Returns the value of attribute precedence. - # - # source://racc//lib/racc/grammar.rb#1063 - def precedence; end - - # Sets the attribute precedence - # - # @param value the value to set the attribute precedence to. - # - # source://racc//lib/racc/grammar.rb#1063 - def precedence=(_arg0); end - - # source://racc//lib/racc/grammar.rb#1076 - def rule; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1087 - def self_null?; end - - # source://racc//lib/racc/grammar.rb#1057 - def serialize; end - - # Sets the attribute serialized - # - # @param value the value to set the attribute serialized to. - # - # source://racc//lib/racc/grammar.rb#1061 - def serialized=(_arg0); end - - # source://racc//lib/racc/grammar.rb#1045 - def should_terminal; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1049 - def should_terminal?; end - - def snull=(v); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1053 - def string_symbol?; end - - # source://racc//lib/racc/grammar.rb#1039 - def term=(t); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1031 - def terminal?; end - - # source://racc//lib/racc/grammar.rb#1066 - def to_s; end - - # source://racc//lib/racc/grammar.rb#1108 - def useless=(f); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#1104 - def useless?; end - - # Returns the value of attribute value. - # - # source://racc//lib/racc/grammar.rb#1025 - def value; end - - # source://racc//lib/racc/grammar.rb#1072 - def |(x); end - - class << self - # source://racc//lib/racc/grammar.rb#1009 - def once_writer(nm); end - end -end - -# source://racc//lib/racc/grammar.rb#869 -class Racc::SymbolTable - include ::Enumerable - - # @return [SymbolTable] a new instance of SymbolTable - # - # source://racc//lib/racc/grammar.rb#873 - def initialize; end - - # source://racc//lib/racc/grammar.rb#885 - def [](id); end - - # Returns the value of attribute anchor. - # - # source://racc//lib/racc/grammar.rb#882 - def anchor; end - - # source://racc//lib/racc/grammar.rb#901 - def delete(sym); end - - # Returns the value of attribute dummy. - # - # source://racc//lib/racc/grammar.rb#881 - def dummy; end - - # source://racc//lib/racc/grammar.rb#912 - def each(&block); end - - # source://racc//lib/racc/grammar.rb#928 - def each_nonterminal(&block); end - - # source://racc//lib/racc/grammar.rb#920 - def each_terminal(&block); end - - # Returns the value of attribute error. - # - # source://racc//lib/racc/grammar.rb#883 - def error; end - - # source://racc//lib/racc/grammar.rb#932 - def fix; end - - # source://racc//lib/racc/grammar.rb#889 - def intern(val, dummy = T.unsafe(nil)); end - - # source://racc//lib/racc/grammar.rb#924 - def nonterminals; end - - # Returns the value of attribute nt_base. - # - # source://racc//lib/racc/grammar.rb#906 - def nt_base; end - - # source://racc//lib/racc/grammar.rb#908 - def nt_max; end - - # Returns the value of attribute symbols. - # - # source://racc//lib/racc/grammar.rb#898 - def symbols; end - - # source://racc//lib/racc/grammar.rb#916 - def terminals(&block); end - - # Returns the value of attribute symbols. - # - # source://racc//lib/racc/grammar.rb#898 - def to_a; end - - private - - # source://racc//lib/racc/grammar.rb#950 - def check_terminals; end - - # source://racc//lib/racc/grammar.rb#944 - def fix_ident; end -end - -# source://racc//lib/racc/grammar.rb#727 -class Racc::UserAction - # @return [UserAction] a new instance of UserAction - # - # source://racc//lib/racc/grammar.rb#746 - def initialize(src, proc); end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#762 - def empty?; end - - # source://racc//lib/racc/grammar.rb#766 - def inspect; end - - # source://racc//lib/racc/grammar.rb#766 - def name; end - - # Returns the value of attribute proc. - # - # source://racc//lib/racc/grammar.rb#752 - def proc; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#758 - def proc?; end - - # Returns the value of attribute source. - # - # source://racc//lib/racc/grammar.rb#751 - def source; end - - # @return [Boolean] - # - # source://racc//lib/racc/grammar.rb#754 - def source?; end - - class << self - # source://racc//lib/racc/grammar.rb#740 - def empty; end - - # source://racc//lib/racc/grammar.rb#733 - def proc(pr = T.unsafe(nil), &block); end - - # source://racc//lib/racc/grammar.rb#729 - def source_text(src); end - - private - - def new(*_arg0); end - end -end - -# source://racc//lib/racc/info.rb#15 -Racc::VERSION = T.let(T.unsafe(nil), String) - -# source://racc//lib/racc/info.rb#16 -Racc::Version = T.let(T.unsafe(nil), String) diff --git a/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.7.3.rbi b/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.7.3.rbi deleted file mode 100644 index 870ddb8f5b..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.7.3.rbi +++ /dev/null @@ -1,257 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rdiscount` gem. -# Please instead update this file by running `bin/tapioca gem rdiscount`. - -# source://rdiscount//lib/rdiscount.rb#117 -Markdown = RDiscount - -# Discount is an implementation of John Gruber's Markdown markup -# language in C. It implements all of the language as described in -# {Markdown Syntax}[http://daringfireball.net/projects/markdown/syntax] -# and passes the Markdown 1.0 test suite. The RDiscount extension makes -# the Discount processor available via a Ruby C Extension library. -# -# == Usage -# -# RDiscount implements the basic protocol popularized by RedCloth and adopted -# by BlueCloth: -# require 'rdiscount' -# markdown = RDiscount.new("Hello World!") -# puts markdown.to_html -# -# == Replacing BlueCloth -# -# Inject RDiscount into your BlueCloth-using code by replacing your bluecloth -# require statements with the following: -# begin -# require 'rdiscount' -# BlueCloth = RDiscount -# rescue LoadError -# require 'bluecloth' -# end -# -# source://rdiscount//lib/rdiscount.rb#26 -class RDiscount - # Create a RDiscount Markdown processor. The +text+ argument - # should be a string containing Markdown text. Additional arguments may be - # supplied to set various processing options: - # - # * :smart - Enable SmartyPants processing. - # * :filter_styles - Do not output