Renamed FunctionStyleClass class to StandardClassNode

This commit is contained in:
Napalys Klicius
2025-04-29 13:43:06 +02:00
parent e9ee7134ef
commit 7fec3aec95
3 changed files with 4 additions and 4 deletions

View File

@@ -1236,7 +1236,7 @@ module API {
exists(DataFlow::ClassNode cls | nd = MkClassInstance(cls) |
ref = cls.getAReceiverNode()
or
ref = cls.(DataFlow::ClassNode::FunctionStyleClass).getAPrototypeReference()
ref = cls.(DataFlow::ClassNode::StandardClassNode).getAPrototypeReference()
)
or
nd = MkUse(ref)

View File

@@ -1240,11 +1240,11 @@ module ClassNode {
* A function definition, targeted by a `new`-call or with prototype manipulation, seen as a `ClassNode` instance.
* Or An ES6 class as a `ClassNode` instance.
*/
class FunctionStyleClass extends Range, DataFlow::ValueNode {
class StandardClassNode extends Range, DataFlow::ValueNode {
override AST::ValueNode astNode;
AbstractCallable function;
FunctionStyleClass() {
StandardClassNode() {
// ES6 class case
astNode instanceof ClassDefinition and
function.(AbstractClass).getClass() = astNode

View File

@@ -254,7 +254,7 @@ module CallGraph {
not exists(DataFlow::ClassNode cls |
node = cls.getConstructor().getReceiver()
or
node = cls.(DataFlow::ClassNode::FunctionStyleClass).getAPrototypeReference()
node = cls.(DataFlow::ClassNode::StandardClassNode).getAPrototypeReference()
)
}