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

Member predicate ClassDefinition::getConstructor

Gets the constructor of this class.

Note that every class has a constructor: if no explicit constructor is declared, it has a synthetic default constructor.

ConstructorDeclaration getConstructor()