2020-06-17 18:01:53 +05:30
|
|
|
; CREDITS @maxbrunsfeld (maxbrunsfeld@gmail.com)
|
|
|
|
|
|
2020-07-19 17:41:24 +00:00
|
|
|
;(class_declaration
|
|
|
|
|
; name: (identifier) @name) @class
|
|
|
|
|
;
|
|
|
|
|
;(method_declaration
|
|
|
|
|
; name: (identifier) @name) @method
|
|
|
|
|
;
|
|
|
|
|
;(method_invocation
|
|
|
|
|
; name: (identifier) @name) @call
|
2020-06-11 22:31:45 +05:30
|
|
|
|
2020-07-19 17:41:24 +00:00
|
|
|
(class_declaration) @scope
|
|
|
|
|
(method_declaration) @scope
|
|
|
|
|
(if_statement) @scope
|
|
|
|
|
(for_statement) @scope
|
|
|
|
|
(try_statement
|
|
|
|
|
body: (_) @scope)
|
|
|
|
|
(catch_clause) @scope
|
2020-06-11 22:31:45 +05:30
|
|
|
|
2020-07-19 17:41:24 +00:00
|
|
|
(class_declaration
|
|
|
|
|
name: (identifier) @definition.type)
|
|
|
|
|
(method_declaration
|
|
|
|
|
name: (identifier) @definition.method)
|