File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments