This commit is contained in:
Torsten Ruger 2017-09-11 14:23:06 +03:00
parent afbcbca4da
commit 3c92e707da

View File

@ -14,10 +14,7 @@ module Vool
# compilation to the next layer, mom # compilation to the next layer, mom
# context coming in for class is nil, also for methods, henceafter a method is passed down # context coming in for class is nil, also for methods, henceafter a method is passed down
def to_mom( _ ) def to_mom( _ )
methods = [] methods = @body.statements.collect { |meth| meth.to_mom( nil ) }
@body.statements.each do |meth|
methods << meth.to_mom( nil )
end
Mom::Statements.new(methods) Mom::Statements.new(methods)
end end