lib/node_mutation/adapter/parser.rb in node_mutation-1.22.0 vs lib/node_mutation/adapter/parser.rb in node_mutation-1.22.1

- old
+ new

@@ -183,9 +183,11 @@ NodeMutation::Struct::Range.new(node.loc.double_colon.begin_pos, node.loc.double_colon.end_pos) when %i[defs dot] NodeMutation::Struct::Range.new(node.loc.operator.begin_pos, node.loc.operator.end_pos) if node.loc.operator when %i[defs self] NodeMutation::Struct::Range.new(node.loc.operator.begin_pos - 'self'.length, node.loc.operator.begin_pos) + when %i[float value], %i[int value], %i[rational value], %i[str value], %i[sym value] + NodeMutation::Struct::Range.new(node.loc.expression.begin_pos, node.loc.expression.end_pos) when %i[lvasgn variable], %i[ivasgn variable], %i[cvasgn variable], %i[gvasgn variable] NodeMutation::Struct::Range.new(node.loc.name.begin_pos, node.loc.name.end_pos) when %i[send dot], %i[csend dot] NodeMutation::Struct::Range.new(node.loc.dot.begin_pos, node.loc.dot.end_pos) if node.loc.dot when %i[send message], %i[csend message]