Class: YTLJit::VM::Node::LocalVarNode

Inherits:
Object
  • Object
show all
Defined in:
lib/ytl/macro.rb

Instance Method Summary collapse

Instance Method Details

#to_ruby(context) ⇒ Object



113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/ytl/macro.rb', line 113

def to_ruby(context)
  case kind
  when :arg, :local_var
    context.ret_code.last << "_#{@name.to_s}"
    
  when :rest_arg
    context.ret_code.last << "*_#{@name.to_s}"
    
  else
    p kind

  end

  context
end