Module: OracleSqlParser::Grammar::Expression::Compound::CompoundExpression4

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

Instance Method Summary collapse

Instance Method Details

#astObject



57
58
59
60
61
62
63
64
# File 'lib/oracle-sql-parser/grammar/expression/compound.rb', line 57

def ast
  OracleSqlParser::Ast::CompoundExpression[
    :has_parenthesis => ex.respond_to?(:left_parenthesis) ? true : nil,
    :left => ex.try(:left).ast,
    :op => ex.try(:op).ast,
    :right => ex.try(:right).ast,
  ]
end