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

Member predicate MemberDeclaration::isPrivate

Holds if this member is considered private.

This may occur in two cases:

  • it is a TypeScript member annotated with the private keyword, or
  • the member has a private name, such as #foo, referring to a private field in the class
predicate isPrivate()