Merge pull request #507 from esben-semmle/js/mixed-static-intance-this-access-inheritance

Approved by xiemaisi
This commit is contained in:
semmle-qlci
2018-11-21 16:07:25 +00:00
committed by GitHub
5 changed files with 41 additions and 3 deletions

View File

@@ -216,6 +216,13 @@ class ClassDefinition extends @classdefinition, ClassOrInterface, AST::ValueNode
)
}
/**
* Gets the definition of the super class of this class, if it can be determined.
*/
ClassDefinition getSuperClassDefinition() {
result = getSuperClass().analyze().getAValue().(AbstractClass).getClass()
}
}
/**