mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
363 B
Plaintext
17 lines
363 B
Plaintext
/**
|
|
* @id js/examples/classdefltctor
|
|
* @name Classes with a default constructor
|
|
* @description Finds classes that do not declare an explicit constructor
|
|
* @tags class
|
|
* constructor
|
|
* default constructor
|
|
* ECMAScript 6
|
|
* ECMAScript 2015
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from ClassDefinition c
|
|
where c.getConstructor().isSynthetic()
|
|
select c
|