tree-sitter-elixir/test/corpus/expression/capture.txt

132 lines
2.0 KiB
Plaintext
Raw Normal View History

2021-09-01 14:59:04 +00:00
=====================================
anonymous function
=====================================
& &1 + &2
&(&1 + &2)
&foo(&1, a, &2)
---
(source
(unary_operator
(binary_operator
(unary_operator
(integer))
(unary_operator
(integer))))
(unary_operator
(binary_operator
(unary_operator
(integer))
(unary_operator
(integer))))
(unary_operator
(call
2021-09-25 00:23:37 +00:00
(identifier)
2021-09-01 14:59:04 +00:00
(arguments
(unary_operator
(integer))
(identifier)
(unary_operator
(integer))))))
=====================================
argument call
=====================================
& &1.some_fun
&(&1.some_fun)
& &1.(&2)
---
(source
(unary_operator
(call
(dot
(unary_operator
2021-09-25 00:23:37 +00:00
(integer))
(identifier))))
2021-09-01 14:59:04 +00:00
(unary_operator
(call
(dot
(unary_operator
2021-09-25 00:23:37 +00:00
(integer))
(identifier))))
2021-09-01 14:59:04 +00:00
(unary_operator
(call
(dot
(unary_operator
2021-09-25 00:23:37 +00:00
(integer)))
(arguments
(unary_operator
(integer))))))
2021-09-01 14:59:04 +00:00
=====================================
remote MFA
=====================================
&Mod.fun/1
---
(source
(unary_operator
(binary_operator
(call
(dot
(alias)
(identifier)))
(integer))))
=====================================
remote operator MFA
=====================================
&Kernel.>=/2
---
(source
(unary_operator
(binary_operator
(call
(dot
(alias)
(operator_identifier)))
(integer))))
=====================================
local MFA
=====================================
&fun/1
---
(source
(unary_operator
(binary_operator
(identifier)
(integer))))
=====================================
local operator MFA
=====================================
&>=/2
&//2
---
(source
(unary_operator
(binary_operator
(operator_identifier)
(integer)))
(unary_operator
(binary_operator
(operator_identifier)
(integer))))