Module: OracleSqlParser::Grammar::Condition::LogicalCondition4

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

Instance Method Summary collapse

Instance Method Details

#astObject



234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# File 'lib/oracle-sql-parser/grammar/condition.rb', line 234

def ast
  if respond_to? :op
    if respond_to? :left
      OracleSqlParser::Ast::LogicalCondition[
        :left => left.ast,
        :op => op.ast,
        :right => right.ast]
    else
      OracleSqlParser::Ast::LogicalCondition[
        :op => op.ast,
        :right => right.ast]
    end
  else
    cond.ast
  end
end