small rename

This commit is contained in:
Torsten Ruger 2017-09-11 14:21:57 +03:00
parent 0ccb7df0ab
commit b6939fe4b3
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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