summaryrefslogtreecommitdiff
path: root/queries/java/99-function.scm
blob: f23d730013860f0e8f6516acf8f0643fd8b68cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(method_declaration) @context.function
(constructor_declaration) @context.function
(lambda_expression) @context.function
(compact_constructor_declaration) @context.function

(method_declaration
  body: (block) @context.body)

(constructor_declaration
  body: (constructor_body) @context.body)

(lambda_expression
  body: (block) @context.body)

(compact_constructor_declaration
  body: (block) @context.body)