rename locals to frame

This commit is contained in:
Torsten Ruger
2018-03-14 20:24:47 +05:30
parent 7db329fa6b
commit 559a797100
9 changed files with 25 additions and 25 deletions

View File

@ -31,7 +31,7 @@ module Rubyx
def test_one_local
method = parse_collect("def meth2(arg1); foo = 2 ;end").first
assert method.locals_type.variable_index(:foo) , method.locals_type.inspect
assert method.frame_type.variable_index(:foo) , method.frame_type.inspect
end
end

View File

@ -44,7 +44,7 @@ module Rubyx
def test_method_has_no_locals
method = create_method
assert_equal 1 , method.locals_type.instance_length
assert_equal 1 , method.frame_type.instance_length
end
def test_method_has_args
@ -54,7 +54,7 @@ module Rubyx
def test_method_has_locals
method = create_method_local
assert_equal 2 , method.locals_type.instance_length
assert_equal 2 , method.frame_type.instance_length
end
def test_method_create_tmp
@ -65,7 +65,7 @@ module Rubyx
def test_method_add_tmp
method = create_method_local
method.create_tmp
assert_equal 3 , method.locals_type.instance_length
assert_equal 3 , method.frame_type.instance_length
end
end