Method: CappRuby::RubyBuilder#generate_identifier
- Defined in:
- lib/cappruby/ruby_builder.rb
#generate_identifier(id, context) ⇒ Object
393 394 395 396 397 398 399 400 401 402 403 404 405 |
# File 'lib/cappruby/ruby_builder.rb', line 393 def generate_identifier id, context write "return " if context[:last_stmt] and context[:full_stmt] local = @iseq_current.lookup_local id[:name] if local write local else # cannot find local, so we assume it is a function call... write %{cr_send(_a,"#{id[:name]}",[],nil,8)} end write ";" if context[:full_stmt] end |