@@ -58,6 +58,7 @@ public struct SemanticToken: Hashable {
58
58
case typeParameter
59
59
case function
60
60
case macro
61
+ case method
61
62
case variable
62
63
case parameter
63
64
case property
@@ -82,6 +83,7 @@ public struct SemanticToken: Hashable {
82
83
case . typeParameter: return " typeParameter "
83
84
case . function: return " function "
84
85
case . macro: return " macro "
86
+ case . method: return " method "
85
87
case . variable: return " variable "
86
88
case . parameter: return " parameter "
87
89
case . property: return " property "
@@ -285,19 +287,21 @@ struct SemanticTokenParser {
285
287
return ( . typeParameter, [ ] )
286
288
case values. decl_function_constructor,
287
289
values. decl_function_subscript,
288
- values. decl_function_free,
289
- values. decl_function_method_static,
290
+ values. decl_function_free:
291
+ return ( . function, [ . declaration] )
292
+ case values. decl_function_method_static,
290
293
values. decl_function_method_instance,
291
294
values. decl_function_method_class:
292
- return ( . function , [ . declaration] )
295
+ return ( . method , [ . declaration] )
293
296
case values. ref_function_constructor,
294
297
values. ref_function_destructor,
295
298
values. ref_function_free,
296
- values. ref_function_subscript,
297
- values. ref_function_method_static,
299
+ values. ref_function_subscript:
300
+ return ( . function, [ ] )
301
+ case values. ref_function_method_static,
298
302
values. ref_function_method_instance,
299
303
values. ref_function_method_class:
300
- return ( . function , [ ] )
304
+ return ( . method , [ ] )
301
305
case values. decl_function_operator_prefix,
302
306
values. decl_function_operator_postfix,
303
307
values. decl_function_operator_infix:
0 commit comments