Class: Idl::ImplicationExpressionSyntaxNode

Inherits:
SyntaxNode show all
Defined in:
lib/idlc/ast.rb

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#set_input_file, #set_input_file_unless_already_set, #space?

Instance Method Details

#to_astObject



4079
4080
4081
4082
4083
4084
4085
# File 'lib/idlc/ast.rb', line 4079

def to_ast
  antecedent = send(:antecedent)
  ImplicationExpressionAst.new(
    input, interval,
    antecedent.empty? ? TrueExpressionAst.new(input, interval.first...interval.first) : antecedent.to_ast, send(:consequent).to_ast
  )
end