Fix java query

This commit is contained in:
Chinmay Dalal 2020-06-23 11:48:23 +05:30
parent bab7fd76f2
commit 9a5fbd1a3a

View file

@ -2,12 +2,12 @@
; Methods ; Methods
[
(method_declaration (method_declaration
name: (identifier)) name: (identifier) @method)
(method_invocation (method_invocation
name: (identifier)) name: (identifier) @method)
] @method
(formal_parameter (formal_parameter
name: (identifier) @parameter) name: (identifier) @parameter)
@ -16,12 +16,12 @@
; Annotations ; Annotations
[
(annotation (annotation
name: (identifier)) name: (identifier) @attribute)
(marker_annotation (marker_annotation
name: (identifier)) name: (identifier) @attribute)
] @attribute
; Operators ; Operators
@ -54,17 +54,16 @@
; Types ; Types
[
(interface_declaration (interface_declaration
name: (identifier)) name: (identifier) @type)
(class_declaration (class_declaration
name: (identifier)) name: (identifier) @type)
(enum_declaration (enum_declaration
name: (identifier) name: (identifier)
(constructor_declaration (constructor_declaration
name: (identifier)) name: (identifier) @type)
(type_identifier) (type_identifier @type)
] @type
((field_access ((field_access