Class: Idl::FunctionCallExpressionSyntaxNode
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Idl::FunctionCallExpressionSyntaxNode
- Defined in:
- lib/idl/ast.rb
Instance Method Summary collapse
Instance Method Details
#to_ast ⇒ Object
4487 4488 4489 4490 4491 4492 4493 |
# File 'lib/idl/ast.rb', line 4487 def to_ast targs = t.empty? ? EMPTY_ARRAY : [t.targs.first.to_ast] + t.targs.rest.elements.map { |e| e.arg.to_ast } args = [] args << function_arg_list.first.to_ast unless function_arg_list.first.empty? args += function_arg_list.rest.elements.map { |e| e.expression.to_ast } FunctionCallExpressionAst.new(input, interval, function_name.text_value, targs, args) end |