Module: OracleSqlParser::Grammar::Expression::Interval::IntervalExpression6

Defined in:
lib/oracle-sql-parser/grammar/expression/interval.rb

Instance Method Summary collapse

Instance Method Details

#astObject



88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/oracle-sql-parser/grammar/expression/interval.rb', line 88

def ast
  OracleSqlParser::Ast::IntervalExpression[
    :left => left.ast,
    :right => right.ast,
    :day => e.try(:day_keyword).ast,
    :year => e.try(:year_keyword).ast,
    :leading_field_precision => e.try(:l).try(:leading_field_precision).ast,
    :to => e.try(:to_keyword).ast,
    :second => e.try(:second_keyword).ast,
    :month => e.try(:month_keyword).ast,
    :fractional_second_precision => e.try(:f).try(:fractional_second_precision).ast,
  ]
end