Class: Idl::IsaSyntaxNode Private

Inherits:
Treetop::Runtime::SyntaxNode show all
Defined in:
lib/idl/ast.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#to_astObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



711
712
713
714
715
716
717
718
719
# File 'lib/idl/ast.rb', line 711

def to_ast
  IsaAst.new(
    input,
    interval,
    definitions.elements.reject do |e|
      e.elements.all?(&:space?)
    end.map(&:to_ast)
  )
end