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
|
name , args , body = *statement
|
||||||
args_type = make_type(args)
|
args_type = make_type(args)
|
||||||
locals_type = make_locals(body)
|
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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -6,7 +6,7 @@ require_relative "passes/method_collector"
|
|||||||
require_relative "passes/method_compiler"
|
require_relative "passes/method_compiler"
|
||||||
require_relative "passes/locals_collector"
|
require_relative "passes/locals_collector"
|
||||||
require_relative "passes/normalizer"
|
require_relative "passes/normalizer"
|
||||||
require_relative "ruby_method"
|
require "vool/vool_method"
|
||||||
|
|
||||||
|
|
||||||
module Rubyx
|
module Rubyx
|
||||||
|
@ -31,7 +31,7 @@ module Vool
|
|||||||
def create_objects
|
def create_objects
|
||||||
args_type = make_type
|
args_type = make_type
|
||||||
locals_type = make_locals
|
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 )
|
@clazz.add_method( method )
|
||||||
# compile_methods(clazz,methods)
|
# compile_methods(clazz,methods)
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module Rubyx
|
module Vool
|
||||||
|
|
||||||
class RubyMethod
|
class VoolMethod
|
||||||
|
|
||||||
attr_reader :name , :args_type , :locals_type , :source
|
attr_reader :name , :args_type , :locals_type , :source
|
||||||
|
|
@ -33,7 +33,7 @@ module Vool
|
|||||||
def test_creates_method_in_class
|
def test_creates_method_in_class
|
||||||
method = create_method
|
method = create_method
|
||||||
assert method , "No method created"
|
assert method , "No method created"
|
||||||
assert_equal Rubyx::RubyMethod , method.class
|
assert_equal Vool::VoolMethod , method.class
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user