lib/rubocop/ast/ext/range.rb in rubocop-ast-1.26.0 vs lib/rubocop/ast/ext/range.rb in rubocop-ast-1.27.0

- old
+ new

@@ -13,11 +13,11 @@ # [ # :foo, # :bar # ] # - # node.loc.begin.line_span # => 1..1 - # node.loc.expression.line_span(exclude_end: true) # => 1...4 + # node.loc.begin.line_span # => 1..1 + # node.source_range.line_span(exclude_end: true) # => 1...4 def line_span(exclude_end: false) ::Range.new(first_line, last_line, exclude_end) end end end