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

Member predicate MemberDeclaration::hasPrivateFieldName

Holds if the member has a private name, such as #foo, referring to a private field in the class.

For example:

class Foo {
  #method() {}
}
predicate hasPrivateFieldName()