lib/parser/source/range.rb in parser-3.1.3.0 vs lib/parser/source/range.rb in parser-3.2.0.0

- old
+ new

@@ -128,10 +128,10 @@ ## # @return [String] all source code covered by this range. # def source - @source_buffer.slice(self.begin_pos...self.end_pos) + @source_buffer.slice(@begin_pos, @end_pos - @begin_pos) end ## # `is?` provides a concise way to compare the source corresponding to this range. # For example, `r.source == '(' || r.source == 'begin'` is equivalent to