Class: Idl::CsrFunctionCallSyntaxNode 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.



9635
9636
9637
9638
9639
9640
9641
# File 'lib/idlc/ast.rb', line 9635

def to_ast
  args = []
  args << send(:function_arg_list).first.to_ast unless send(:function_arg_list).first.empty?
  args += send(:function_arg_list).rest.elements.map { |e| e.expression.to_ast }

  CsrFunctionCallAst.new(input, interval, send(:function_name).text_value, send(:csr).to_ast, args)
end