Skip to content

Commit 8804836

Browse files
committed
Renamed FunctionStyleClass class to StandardClassNode
1 parent 45014e6 commit 8804836

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ module API {
12361236
exists(DataFlow::ClassNode cls | nd = MkClassInstance(cls) |
12371237
ref = cls.getAReceiverNode()
12381238
or
1239-
ref = cls.(DataFlow::ClassNode::FunctionStyleClass).getAPrototypeReference()
1239+
ref = cls.(DataFlow::ClassNode::StandardClassNode).getAPrototypeReference()
12401240
)
12411241
or
12421242
nd = MkUse(ref)

javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll

+2-2
Original file line numberDiff line numberDiff line change
@@ -1240,11 +1240,11 @@ module ClassNode {
12401240
* A function definition, targeted by a `new`-call or with prototype manipulation, seen as a `ClassNode` instance.
12411241
* Or An ES6 class as a `ClassNode` instance.
12421242
*/
1243-
class FunctionStyleClass extends Range, DataFlow::ValueNode {
1243+
class StandardClassNode extends Range, DataFlow::ValueNode {
12441244
override AST::ValueNode astNode;
12451245
AbstractCallable function;
12461246

1247-
FunctionStyleClass() {
1247+
StandardClassNode() {
12481248
// ES6 class case
12491249
astNode instanceof ClassDefinition and
12501250
function.(AbstractClass).getClass() = astNode

javascript/ql/lib/semmle/javascript/dataflow/internal/CallGraphs.qll

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ module CallGraph {
254254
not exists(DataFlow::ClassNode cls |
255255
node = cls.getConstructor().getReceiver()
256256
or
257-
node = cls.(DataFlow::ClassNode::FunctionStyleClass).getAPrototypeReference()
257+
node = cls.(DataFlow::ClassNode::StandardClassNode).getAPrototypeReference()
258258
)
259259
}
260260

0 commit comments

Comments
 (0)