Predicate isPrivateLike
Holds if node
is the sink node corresponding to the right-hand side of a private declaration,
like a private field (#field
) or class member with the private
modifier.
Import path
import semmle.javascript.endpoints.EndpointNaming
predicate isPrivateLike(Node node)