File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
python/ql/lib/semmle/python/frameworks Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1873,7 +1873,7 @@ module PrivateDjango {
1873
1873
/** Gets a reference to this class. */
1874
1874
private DataFlow:: TypeTrackingNode getARef ( DataFlow:: TypeTracker t ) {
1875
1875
t .start ( ) and
1876
- result .asExpr ( ) . ( ClassExpr ) = this .getParent ( )
1876
+ result .asExpr ( ) = this .getParent ( )
1877
1877
or
1878
1878
exists ( DataFlow:: TypeTracker t2 | result = this .getARef ( t2 ) .track ( t2 , t ) )
1879
1879
}
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ module Flask {
193
193
194
194
FlaskViewClass ( ) {
195
195
this .getABase ( ) = Views:: View:: subclassRef ( ) .getAUse ( ) .asExpr ( ) and
196
- api_node .getAnImmediateUse ( ) .asExpr ( ) . ( ClassExpr ) = this .getParent ( )
196
+ api_node .getAnImmediateUse ( ) .asExpr ( ) = this .getParent ( )
197
197
}
198
198
199
199
/** Gets a function that could handle incoming requests, if any. */
@@ -218,7 +218,7 @@ module Flask {
218
218
class FlaskMethodViewClass extends FlaskViewClass {
219
219
FlaskMethodViewClass ( ) {
220
220
this .getABase ( ) = Views:: MethodView:: subclassRef ( ) .getAUse ( ) .asExpr ( ) and
221
- api_node .getAnImmediateUse ( ) .asExpr ( ) . ( ClassExpr ) = this .getParent ( )
221
+ api_node .getAnImmediateUse ( ) .asExpr ( ) = this .getParent ( )
222
222
}
223
223
224
224
override Function getARequestHandler ( ) {
@@ -299,7 +299,7 @@ module Flask {
299
299
override Function getARequestHandler ( ) {
300
300
exists ( DataFlow:: LocalSourceNode func_src |
301
301
func_src .flowsTo ( this .getViewArg ( ) ) and
302
- func_src .asExpr ( ) . ( CallableExpr ) = result .getDefinition ( )
302
+ func_src .asExpr ( ) = result .getDefinition ( )
303
303
)
304
304
or
305
305
exists ( FlaskViewClass vc |
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ private module Tornado {
102
102
/** Gets a reference to this class. */
103
103
private DataFlow:: TypeTrackingNode getARef ( DataFlow:: TypeTracker t ) {
104
104
t .start ( ) and
105
- result .asExpr ( ) . ( ClassExpr ) = this .getParent ( )
105
+ result .asExpr ( ) = this .getParent ( )
106
106
or
107
107
exists ( DataFlow:: TypeTracker t2 | result = this .getARef ( t2 ) .track ( t2 , t ) )
108
108
}
You can’t perform that action at this time.
0 commit comments