Merge pull request #17990 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.3.4.2

This commit is contained in:
Patrick Linnane 2024-08-08 14:00:51 -07:00 committed by GitHub
commit 940dcc14e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 21 deletions

View File

@ -37,7 +37,7 @@ GEM
parser
rainbow (~> 3.0)
sorbet-runtime (>= 0.5)
parser (3.3.4.1)
parser (3.3.4.2)
ast (~> 2.4.1)
racc
patchelf (1.5.1)

View File

@ -5129,7 +5129,7 @@ class Parser::Source::Buffer
# @api public
# @return [Buffer] a new instance of Buffer
#
# source://parser//lib/parser/source/buffer.rb#109
# source://parser//lib/parser/source/buffer.rb#110
def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
# Convert a character index into the source to a column number.
@ -5138,7 +5138,7 @@ class Parser::Source::Buffer
# @param position [Integer]
# @return [Integer] column
#
# source://parser//lib/parser/source/buffer.rb#246
# source://parser//lib/parser/source/buffer.rb#247
def column_for_position(position); end
# Convert a character index into the source to a `[line, column]` tuple.
@ -5147,7 +5147,7 @@ class Parser::Source::Buffer
# @param position [Integer]
# @return [[Integer, Integer]] `[line, column]`
#
# source://parser//lib/parser/source/buffer.rb#221
# source://parser//lib/parser/source/buffer.rb#222
def decompose_position(position); end
# First line of the buffer, 1 by default.
@ -5160,12 +5160,12 @@ class Parser::Source::Buffer
# @api public
#
# source://parser//lib/parser/source/buffer.rb#316
# source://parser//lib/parser/source/buffer.rb#317
def freeze; end
# @api public
#
# source://parser//lib/parser/source/buffer.rb#322
# source://parser//lib/parser/source/buffer.rb#323
def inspect; end
# Number of last line in the buffer
@ -5173,7 +5173,7 @@ class Parser::Source::Buffer
# @api public
# @return [Integer]
#
# source://parser//lib/parser/source/buffer.rb#311
# source://parser//lib/parser/source/buffer.rb#312
def last_line; end
# Convert a character index into the source to a line number.
@ -5182,7 +5182,7 @@ class Parser::Source::Buffer
# @param position [Integer]
# @return [Integer] line
#
# source://parser//lib/parser/source/buffer.rb#235
# source://parser//lib/parser/source/buffer.rb#236
def line_for_position(position); end
# Extract line `lineno` as a new `Range`, taking `first_line` into account.
@ -5192,7 +5192,7 @@ class Parser::Source::Buffer
# @raise [IndexError] if `lineno` is out of bounds
# @return [Range]
#
# source://parser//lib/parser/source/buffer.rb#288
# source://parser//lib/parser/source/buffer.rb#289
def line_range(lineno); end
# Buffer name. If the buffer was created from a file, the name corresponds
@ -5211,7 +5211,7 @@ class Parser::Source::Buffer
# @raise [ArgumentError] if already populated
# @return [String]
#
# source://parser//lib/parser/source/buffer.rb#184
# source://parser//lib/parser/source/buffer.rb#185
def raw_source=(input); end
# Populate this buffer from correspondingly named file.
@ -5222,12 +5222,12 @@ class Parser::Source::Buffer
# @raise [ArgumentError] if already populated
# @return [Buffer] self
#
# source://parser//lib/parser/source/buffer.rb#135
# source://parser//lib/parser/source/buffer.rb#136
def read; end
# @api public
#
# source://parser//lib/parser/source/buffer.rb#198
# source://parser//lib/parser/source/buffer.rb#199
def slice(start, length = T.unsafe(nil)); end
# Source code contained in this buffer.
@ -5236,7 +5236,7 @@ class Parser::Source::Buffer
# @raise [RuntimeError] if buffer is not populated yet
# @return [String] source code
#
# source://parser//lib/parser/source/buffer.rb#149
# source://parser//lib/parser/source/buffer.rb#150
def source; end
# Populate this buffer from a string with encoding autodetection.
@ -5248,7 +5248,7 @@ class Parser::Source::Buffer
# @raise [EncodingError] if `input` includes invalid byte sequence for the encoding
# @return [String]
#
# source://parser//lib/parser/source/buffer.rb#166
# source://parser//lib/parser/source/buffer.rb#167
def source=(input); end
# Extract line `lineno` from source, taking `first_line` into account.
@ -5258,7 +5258,7 @@ class Parser::Source::Buffer
# @raise [IndexError] if `lineno` is out of bounds
# @return [String]
#
# source://parser//lib/parser/source/buffer.rb#277
# source://parser//lib/parser/source/buffer.rb#278
def source_line(lineno); end
# Return an `Array` of source code lines.
@ -5266,30 +5266,30 @@ class Parser::Source::Buffer
# @api public
# @return [Array<String>]
#
# source://parser//lib/parser/source/buffer.rb#256
# source://parser//lib/parser/source/buffer.rb#257
def source_lines; end
# @api public
# @return [Range] A range covering the whole source
#
# source://parser//lib/parser/source/buffer.rb#302
# source://parser//lib/parser/source/buffer.rb#303
def source_range; end
private
# @api public
#
# source://parser//lib/parser/source/buffer.rb#352
# source://parser//lib/parser/source/buffer.rb#353
def bsearch(line_begins, position); end
# @api public
#
# source://parser//lib/parser/source/buffer.rb#329
# source://parser//lib/parser/source/buffer.rb#330
def line_begins; end
# @api public
#
# source://parser//lib/parser/source/buffer.rb#343
# source://parser//lib/parser/source/buffer.rb#344
def line_index_for_position(position); end
class << self

View File

@ -66,7 +66,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel_tests-4.7.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/racc-1.8.1")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.8.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.4.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.4.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11514/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-9.0.0/lib")