Module: JPTGRAMMAR::ComparisonExpr1

Defined in:
lib/parser/jptgrammar.rb

Instance Method Summary collapse

Instance Method Details

#astObject



2666
2667
2668
2669
2670
2671
2672
# File 'lib/parser/jptgrammar.rb', line 2666

def ast
  sides = [elements[0].ast, elements[4].ast]
  sides.each do |s|
    declared_as(s, :value, " in comparable")
  end
  [comparison_op.text_value, *sides]
end