mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update Nodes.qll
Applied suggestions Co-Authored-By: Asger F <316427+asgerf@users.noreply.github.com>
This commit is contained in:
@@ -1242,11 +1242,12 @@ module ClassNode {
|
||||
*/
|
||||
class FunctionStyleClass extends Range, DataFlow::ValueNode {
|
||||
override AST::ValueNode astNode;
|
||||
AbstractFunction function;
|
||||
AbstractCallable function;
|
||||
|
||||
FunctionStyleClass() {
|
||||
// ES6 class case
|
||||
astNode instanceof ClassDefinition
|
||||
astNode instanceof ClassDefinition and
|
||||
function.(AbstractClass).getClass() = astNode
|
||||
or
|
||||
// Function-style class case
|
||||
astNode instanceof Function and
|
||||
|
||||
Reference in New Issue
Block a user