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

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()