Class: Idl::IsaSyntaxNode Private

Inherits:
SyntaxNode show all
Defined in:
lib/idlc/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

Methods inherited from Treetop::Runtime::SyntaxNode

#set_input_file, #set_input_file_unless_already_set, #space?

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.



1351
1352
1353
1354
1355
1356
1357
1358
1359
# File 'lib/idlc/ast.rb', line 1351

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