moved all the normalize stuff over to the ruby layer

Which is how it should have been from the start
This commit is contained in:
Torsten Ruger
2018-07-19 14:47:29 +03:00
parent 38350dd198
commit ae3d64eb53
15 changed files with 5 additions and 179 deletions

View File

@ -1,6 +1,5 @@
module Vool
class ReturnStatement < Statement
include Normalizer
attr_reader :return_value
@ -8,14 +7,6 @@ module Vool
@return_value = value
end
def normalize
val , rest = *normalize_name(@return_value)
me = ReturnStatement.new(val)
return me unless rest
rest << me
rest
end
def each(&block)
block.call(@return_value)
end