Add restarg to the list of non-standalone nodes

This commit is contained in:
Dan Kubb 2013-07-28 14:25:03 -07:00
parent dc0f0d2ff1
commit 19b02494ec

View file

@ -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,