2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
nonary function call
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
|
|
|
|
|
foo = bar()
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-11 23:32:22 +02:00
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(function_call
|
|
|
|
|
(identifier))))))
|
2021-06-11 23:32:22 +02:00
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
unary function call
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
|
|
|
|
|
foo = bar("foo")
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-11 23:32:22 +02:00
|
|
|
|
2021-06-14 23:33:28 +02:00
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
|
|
|
|
(expression
|
2021-06-17 19:39:46 +02:00
|
|
|
(function_call
|
|
|
|
|
(identifier)
|
|
|
|
|
(function_arguments
|
|
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
|
|
|
|
(template_literal))))))))))
|
|
|
|
|
|
|
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
variadic function call
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
|
|
|
|
|
foo = bar(x...)
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-11 23:32:22 +02:00
|
|
|
|
2021-06-14 23:33:28 +02:00
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
|
|
|
|
(expression
|
2021-06-17 19:39:46 +02:00
|
|
|
(function_call
|
|
|
|
|
(identifier)
|
|
|
|
|
(function_arguments
|
|
|
|
|
(expression
|
|
|
|
|
(variable_expr
|
|
|
|
|
(identifier)))
|
|
|
|
|
(ellipsis)))))))
|
|
|
|
|
|
|
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
multiline function call
|
2021-06-17 19:39:46 +02:00
|
|
|
================================================================================
|
2021-06-11 23:32:22 +02:00
|
|
|
|
|
|
|
|
foo = bar(
|
|
|
|
|
"a",
|
|
|
|
|
"b",
|
|
|
|
|
"c"
|
|
|
|
|
)
|
|
|
|
|
|
2021-06-17 19:39:46 +02:00
|
|
|
--------------------------------------------------------------------------------
|
2021-06-11 23:32:22 +02:00
|
|
|
|
2021-06-14 23:33:28 +02:00
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
|
|
|
|
(expression
|
2021-06-17 19:39:46 +02:00
|
|
|
(function_call
|
|
|
|
|
(identifier)
|
|
|
|
|
(function_arguments
|
|
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
|
|
|
|
(template_literal))))
|
|
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
|
|
|
|
(template_literal))))
|
|
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
|
|
|
|
(template_literal))))))))))
|