Class: Idl::FunctionCallExpressionSyntaxNode

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



7820
7821
7822
7823
7824
7825
# File 'lib/idlc/ast.rb', line 7820

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 }
  FunctionCallExpressionAst.new(input, interval, send(:function_name).text_value, args)
end