makeing the method of the compiler more or less private

in preparation for using the same code for bocks
This commit is contained in:
Torsten Ruger
2018-07-09 19:32:17 +03:00
parent 63b55f2aa4
commit edea9ac080
13 changed files with 45 additions and 35 deletions

View File

@ -72,7 +72,7 @@ module Vool
# - Setting up the next message, with receiver, arguments, and (importantly) return address
# - a CachedCall , or a SimpleCall, depending on wether the receiver type can be determined
def to_mom( compiler )
@receiver = SelfExpression.new(compiler.method.self_type) if @receiver.is_a?(SelfExpression)
@receiver = SelfExpression.new(compiler.resolve_type(:receiver)) if @receiver.is_a?(SelfExpression)
if(@receiver.ct_type)
simple_call(compiler)
else