aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/go/folds.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/go/folds.scm')
-rw-r--r--runtime/queries/go/folds.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/queries/go/folds.scm b/runtime/queries/go/folds.scm
new file mode 100644
index 000000000..44b452de5
--- /dev/null
+++ b/runtime/queries/go/folds.scm
@@ -0,0 +1,19 @@
+[
+ (const_declaration)
+ (expression_switch_statement)
+ (expression_case)
+ (default_case)
+ (type_switch_statement)
+ (type_case)
+ (for_statement)
+ (func_literal)
+ (function_declaration)
+ (if_statement)
+ (import_declaration)
+ (method_declaration)
+ (type_declaration)
+ (var_declaration)
+ (composite_literal)
+ (literal_element)
+ (block)
+] @fold