move ruby_method out of rubyx
ruby getting ready for destruction as it’s not used anymore
This commit is contained in:
parent
d5a63ec431
commit
0b161ffa06
@ -16,7 +16,7 @@ module Rubyx
|
||||
name , args , body = *statement
|
||||
args_type = make_type(args)
|
||||
locals_type = make_locals(body)
|
||||
@methods << RubyMethod.new(name , args_type , locals_type , body )
|
||||
@methods << Vool::VoolMethod.new(name , args_type , locals_type , body )
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -6,7 +6,7 @@ require_relative "passes/method_collector"
|
||||
require_relative "passes/method_compiler"
|
||||
require_relative "passes/locals_collector"
|
||||
require_relative "passes/normalizer"
|
||||
require_relative "ruby_method"
|
||||
require "vool/vool_method"
|
||||
|
||||
|
||||
module Rubyx
|
||||
|
@ -31,7 +31,7 @@ module Vool
|
||||
def create_objects
|
||||
args_type = make_type
|
||||
locals_type = make_locals
|
||||
method = Rubyx::RubyMethod.new(name , args_type , locals_type , body )
|
||||
method = Vool::VoolMethod.new(name , args_type , locals_type , body )
|
||||
@clazz.add_method( method )
|
||||
# compile_methods(clazz,methods)
|
||||
end
|
||||
|
@ -1,6 +1,6 @@
|
||||
module Rubyx
|
||||
module Vool
|
||||
|
||||
class RubyMethod
|
||||
class VoolMethod
|
||||
|
||||
attr_reader :name , :args_type , :locals_type , :source
|
||||
|
@ -33,7 +33,7 @@ module Vool
|
||||
def test_creates_method_in_class
|
||||
method = create_method
|
||||
assert method , "No method created"
|
||||
assert_equal Rubyx::RubyMethod , method.class
|
||||
assert_equal Vool::VoolMethod , method.class
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user