lib/node_mutation/adapter/parser.rb in node_mutation-1.22.2 vs lib/node_mutation/adapter/parser.rb in node_mutation-1.22.3
- old
+ new
@@ -173,10 +173,10 @@
NodeMutation::Struct::Range.new(
node.arguments.first.loc.expression.begin_pos - 1,
node.arguments.last.loc.expression.end_pos + 1
)
end
- when %i[class name], %i[const name], %i[cvar name], %i[def name], %i[defs name],
+ when %i[arg name], %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)