highlights(ecma): use @method.call/function.call

This commit is contained in:
Stephan Seitz 2022-08-29 23:31:11 +02:00
parent c557c68729
commit f66a911a95
2 changed files with 4 additions and 4 deletions

View file

@ -83,11 +83,11 @@
;-------------------------- ;--------------------------
(call_expression (call_expression
function: (identifier) @function) function: (identifier) @function.call)
(call_expression (call_expression
function: (member_expression function: (member_expression
property: [(property_identifier) (private_property_identifier)] @method)) property: [(property_identifier) (private_property_identifier)] @method.call))
; Variables ; Variables
;---------- ;----------

View file

@ -15,11 +15,11 @@ class H {
public_method() { public_method() {
// ^ method // ^ method
return this.#private_method(); return this.#private_method();
// ^ method // ^ method.call
} }
ok() { ok() {
return this.public_method(); return this.public_method();
// ^ method // ^ method.call
} }
} }