[ruby/prism] Bump typechecking deps
https://github.com/ruby/prism/commit/230c8b8a48
This commit is contained in:
parent
cfb7213882
commit
34e68548d4
@ -204,8 +204,8 @@ module Prism
|
||||
LengthCounter.new(source, encoding)
|
||||
end
|
||||
|
||||
@cache = {}
|
||||
@offsets = []
|
||||
@cache = {} #: Hash[Integer, Integer]
|
||||
@offsets = [] #: Array[Integer]
|
||||
end
|
||||
|
||||
# Retrieve the code units offset from the given byte offset.
|
||||
|
@ -17,7 +17,7 @@ module Prism
|
||||
|
||||
# Formats the errors in a human-readable way and return them as a string.
|
||||
def format
|
||||
error_lines = {}
|
||||
error_lines = {} #: Hash[Integer, Array[ParseError]]
|
||||
parse_result.errors.each do |error|
|
||||
location = error.location
|
||||
(location.start_line..location.end_line).each do |line|
|
||||
|
@ -465,7 +465,7 @@ module Prism
|
||||
while (node = queue.shift)
|
||||
@entries[node.node_id].each do |field_name, entry|
|
||||
value = node.public_send(field_name)
|
||||
values = {}
|
||||
values = {} #: Hash[Symbol, untyped]
|
||||
|
||||
fields.each_value do |field|
|
||||
values.merge!(field.fields(value))
|
||||
|
@ -182,7 +182,7 @@ module Prism
|
||||
# bytes, as opposed to characters or code units.
|
||||
def tunnel(line, column)
|
||||
queue = [self] #: Array[Prism::node]
|
||||
result = []
|
||||
result = [] #: Array[Prism::node]
|
||||
|
||||
while (node = queue.shift)
|
||||
result << node
|
||||
|
Loading…
x
Reference in New Issue
Block a user