diff --git a/lib/vool/statements/method_statement.rb b/lib/vool/statements/method_statement.rb index 1e03beb8..20858b06 100644 --- a/lib/vool/statements/method_statement.rb +++ b/lib/vool/statements/method_statement.rb @@ -65,7 +65,7 @@ module Vool def compile_methods(clazz , methods) methods.each do |method| code = Passes::MethodCompiler.new(method).get_code - typed_method = method.create_vm_method(clazz.instance_type) + typed_method = method.create_parfait_method(clazz.instance_type) Vm::MethodCompiler.new( typed_method ).init_method.process( code ) end end diff --git a/lib/vool/vool_method.rb b/lib/vool/vool_method.rb index c6ba4af1..26826d07 100644 --- a/lib/vool/vool_method.rb +++ b/lib/vool/vool_method.rb @@ -15,7 +15,7 @@ module Vool @source = yield @source end - def create_vm_method( type ) + def create_parfait_method( type ) raise "create_method #{type.inspect} is not a Type" unless type.is_a? Parfait::Type type.create_method( @name , @args_type )#FIXME, @locals_type) end diff --git a/stash/rubyx/ruby_compiler.rb b/stash/rubyx/ruby_compiler.rb index d9f04ffa..a3a42f79 100644 --- a/stash/rubyx/ruby_compiler.rb +++ b/stash/rubyx/ruby_compiler.rb @@ -45,7 +45,7 @@ module Rubyx def compile_methods(clazz , methods) methods.each do |method| code = Passes::MethodCompiler.new(method).get_code - typed_method = method.create_vm_method(clazz.instance_type) + typed_method = method.create_parfait_method(clazz.instance_type) Vm::MethodCompiler.new( typed_method ).init_method.process( code ) end end