lib/node_mutation/adapter/parser.rb in node_mutation-1.18.2 vs lib/node_mutation/adapter/parser.rb in node_mutation-1.18.3

- old
+ new

@@ -104,10 +104,12 @@ NodeMutation::Struct::Range.new( node.body.first.loc.expression.begin_pos, node.body.last.loc.expression.end_pos ) end - when %i[class name], %i[const name], %i[cvar name], %i[def name], %i[defs name], %i[gvar name], %i[ivar name], %i[lvar name] + when %i[class name], %i[const name], %i[cvar name], %i[def name], %i[defs name], + %i[gvar name], %i[ivar name], %i[lvar name] + NodeMutation::Struct::Range.new(node.loc.name.begin_pos, node.loc.name.end_pos) when %i[const double_colon] 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