renaming and small fixes

This commit is contained in:
Torsten Ruger
2014-06-08 00:56:40 +03:00
parent e7bb774da0
commit fbcfa844de
6 changed files with 42 additions and 36 deletions

View File

@ -23,11 +23,13 @@ module Boot
var_name = get_function.args.first
return_to = get_function.return_type
index_function = context.object_space.get_or_create_class(:Object).get_or_create_function(:index_of)
b = get_function.body
b.push( [me] )
b.call( index_function )
b.pop([me])
return_to.at_index( get_function.body , me , return_to )
body = get_function.body
body.push( [me] )
body.call( index_function )
after_body = body.new_block("#{body.name}_a")
body.insert_at after_body
after_body.pop([me])
return_to.at_index( after_body , me , return_to )
get_function.set_return return_to
return get_function
end