Class: Delorean::IndexOp

Inherits:
SNode
  • Object
show all
Defined in:
lib/delorean/nodes.rb

Instance Method Summary collapse

Instance Method Details

#check(context) ⇒ Object



277
278
279
# File 'lib/delorean/nodes.rb', line 277

def check(context, *)
  args.check(context)
end

#rewrite(context, vcode) ⇒ Object



281
282
283
# File 'lib/delorean/nodes.rb', line 281

def rewrite(context, vcode)
  "_index(#{vcode}, [#{args.rewrite(context)}], _e)"
end