This commit is contained in:
Torsten Ruger 2017-01-17 21:25:18 +02:00
parent 2a57a59c8e
commit 54b8a9f6de
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,6 @@ module Melon
def on_send( statement )
receiver , name , args = *statement
w = Vm::Tree::CallSite.new()
puts "receiver #{statement}"
w.name = name
w.arguments = process(args) || []
w.receiver = process(receiver)

View File

@ -77,6 +77,8 @@ module Parfait
def create_method( method_name , arguments )
raise "create_method #{method_name}.#{method_name.class}" unless method_name.is_a?(Symbol)
#puts "Self: #{self.class} clazz: #{clazz.name}"
found = get_method( method_name )
return found if found
arg_type = arguments
arg_type = NamedList.type_for( arguments ) if arguments.is_a?(Hash)
add_method TypedMethod.new( self , method_name , arg_type )