introducing expressions and constants

not everything statement anymore (as in ruby)
basic statement tests working, rest havoc
This commit is contained in:
Torsten Ruger
2018-03-15 11:24:14 +05:30
parent 163cad456f
commit 78ef1368de
17 changed files with 112 additions and 69 deletions

View File

@ -96,8 +96,8 @@ module Vool
[Mom::SlotMove.new([@dynamic, :cached_type] , [:receiver , :type])]
end
def build_method_cache_update(in_method)
receiver = StringStatement.new(@name)
resolve = SendStatement.new(:resolve_method , receiver , [SelfStatement.new])
receiver = StringConstant.new(@name)
resolve = SendStatement.new(:resolve_method , receiver , [SelfExpression.new])
move_method = Mom::SlotMove.new([@dynamic, :cached_method] , [:receiver , :return])
resolve.to_mom(in_method) << move_method
end