fn token_is_method_call_receiver(token: &SyntaxToken) -> boolExpand description
Returns whether token is the receiver of a method call. Note, being within the receiver of a
method call doesn’t count. e.g. if the token is $a, then $a.foo() will return true, while
($a + $b).foo() or x.foo($a) will return false.