Do not create a Block node where not needed

This commit is contained in:
Markus Schirp 2012-07-27 13:18:48 +02:00
parent 134e4357e1
commit 96a73e5448

View file

@ -35,7 +35,7 @@ module Mutant
# #
def root(node) def root(node)
root = root_ast root = root_ast
root.body = @scope_class.new(1,root.name,Rubinius::AST::Block.new(1, [ node ])) root.body = @scope_class.new(1,root.name,node)
Rubinius::AST::Script.new(root) Rubinius::AST::Script.new(root)
end end