Allow tagging of types in local variable declarations.
* Allow tagging of types in local variable declarations.
Also fix tagging of classes with no superclasses, and ensure that
bases of classes are tagged as references, not definitions.
* Fix the base_list clause for interface bases too.
(class_declaration
name: (identifier) @name
- bases: (base_list (_) @name)
) @definition.class
+(class_declaration
+ bases: (base_list (_) @name)
+ ) @reference.class
+
(interface_declaration
name: (identifier) @name
- bases: (base_list (_) @name)
) @definition.interface
+(interface_declaration
+ bases: (base_list (_) @name)
+ ) @reference.interface
+
(method_declaration
name: (identifier) @name
) @definition.method
type: (identifier) @name
) @reference.class
+(variable_declaration
+ type: (identifier) @name
+ ) @reference.class
+
(invocation_expression
function:
(member_access_expression
