lib/parser/source/tree_rewriter.rb in parser-2.7.1.2 vs lib/parser/source/tree_rewriter.rb in parser-2.7.1.3
- old
+ new
@@ -219,10 +219,10 @@
# Applies all scheduled changes to the `source_buffer` and returns
# modified source as a new string.
#
# @return [String]
#
- def process
+ def process
source = @source_buffer.source
chunks = []
last_end = 0
@action_root.ordered_replacements.each do |range, replacement|