CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.9.0 (changelog, source)
Search

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)