lib/rbs/location_aux.rb in rbs-1.7.0.beta.1 vs lib/rbs/location_aux.rb in rbs-1.7.0.beta.2

- old
+ new

@@ -4,9 +4,22 @@ rks = each_required_key.to_a ops = each_optional_key.to_a.map {|x| "?#{x}" } "#<#{self.class}:#{self.__id__} buffer=#{buffer.name}, start=#{start_line}:#{start_column}, pos=#{start_pos}...#{end_pos}, children=#{(rks + ops).join(",")} source='#{source.lines.first&.chomp}'>" end + def self.new(buffer_ = nil, start_pos_ = nil, end_pos_ = nil, buffer: nil, start_pos: nil, end_pos: nil) + __skip__ = + begin + if buffer && start_pos && end_pos + super(buffer, start_pos, end_pos) + else + super(buffer_, start_pos_, end_pos_) + end + end + end + + WithChildren = self + def name buffer.name end def start_line