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
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end))))))))))
|
2021-06-17 19:39:46 +02:00
|
|
|
|
|
|
|
|
================================================================================
|
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
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end))))
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end))))
|
2021-06-17 19:39:46 +02:00
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
2021-07-01 23:57:52 +02:00
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end))))))))))
|
2024-06-23 08:19:49 +02:00
|
|
|
|
|
|
|
|
================================================================================
|
|
|
|
|
namespaced function call
|
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
|
|
foo = provider::time::rfc3339_parse("2023-07-25T23:43:16Z")
|
|
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
(config_file
|
|
|
|
|
(body
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier)
|
|
|
|
|
(expression
|
|
|
|
|
(function_call
|
|
|
|
|
(identifier)
|
|
|
|
|
(function_arguments
|
|
|
|
|
(expression
|
|
|
|
|
(literal_value
|
|
|
|
|
(string_lit
|
|
|
|
|
(quoted_template_start)
|
|
|
|
|
(template_literal)
|
|
|
|
|
(quoted_template_end))))))))))
|