feat(elm): add folds queries

This commit is contained in:
Derek Gustafson 2024-07-03 03:49:13 -04:00 committed by GitHub
parent 6cd4ce6cab
commit 0209151fd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

14
queries/elm/folds.scm Normal file
View file

@ -0,0 +1,14 @@
((function_call_expr) @_fn
(#not-has-parent? @_fn parenthesized_expr)) @fold
[
(case_of_branch)
(case_of_expr)
(value_declaration)
(type_declaration)
(type_alias_declaration)
(list_expr)
(record_expr)
(parenthesized_expr)
(import_clause)+
] @fold