From 19b02494ec4682963e3199f8f26c1ceb0662686e Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Sun, 28 Jul 2013 14:25:03 -0700 Subject: [PATCH] Add restarg to the list of non-standalone nodes --- lib/mutant/constants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/constants.rb b/lib/mutant/constants.rb index 12132552..a4fec844 100644 --- a/lib/mutant/constants.rb +++ b/lib/mutant/constants.rb @@ -17,7 +17,7 @@ module Mutant ].to_set.freeze # Set of node types that are not valid when emitted standalone - NOT_STANDALONE = [:splat, :block_pass].to_set.freeze + NOT_STANDALONE = [:splat, :restarg, :block_pass].to_set.freeze OPERATOR_EXPANSIONS = { :<=> => :spaceship_operator,