Class: Delorean::Dotted

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

Instance Method Summary collapse

Instance Method Details

#check(context) ⇒ Object



367
368
369
370
371
# File 'lib/delorean/nodes.rb', line 367

def check(context, *)
  d.check(context)
  d_rest.check(context) unless d_rest.text_value.empty?
  []
end

#rewrite(context, vcode) ⇒ Object



373
374
375
376
377
378
379
380
381
# File 'lib/delorean/nodes.rb', line 373

def rewrite(context, vcode)
  dcode = d.rewrite(context, vcode)

  if d_rest.text_value.empty?
    dcode
  else
    d_rest.rewrite(context, dcode)
  end
end