continue-custom/extensions/vscode/tree-sitter/root-path-context-queries/go/function_declaration.scm

12 lines
No EOL
210 B
Scheme

(
(function_declaration
(parameter_list
(parameter_declaration
type: (_) @param_type
)*
)
; Optional return type node before the block
([_] @return_type)?
(block)
)
)