File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/aspnetcore Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -197,15 +197,11 @@ private predicate matchingOpenCloseComponentCalls(
197
197
closeCall .getEnclosingCallable ( ) = enclosing and
198
198
closeCall .getParent ( ) .getParent ( ) = openCall .getParent ( ) .getParent ( ) and
199
199
openCall .getParent ( ) .getIndex ( ) = openCallIndex and
200
- closeCall .getParent ( ) .getIndex ( ) = closeCallIndex and
201
- closeCallIndex > openCallIndex and
202
- not exists ( int k , MethodCall otherCloseCall |
203
- k in [ openCallIndex + 1 .. closeCallIndex - 1 ] and
204
- otherCloseCall .getTarget ( ) instanceof MicrosoftAspNetCoreComponentsCloseComponentMethod and
205
- otherCloseCall .getEnclosingCallable ( ) = enclosing and
206
- otherCloseCall .getParent ( ) .getParent ( ) = openCall .getParent ( ) .getParent ( ) and
207
- otherCloseCall .getParent ( ) .getIndex ( ) = k
208
- )
200
+ closeCallIndex =
201
+ min ( int closeCallIndex0 |
202
+ closeCall .getParent ( ) .getIndex ( ) = closeCallIndex0 and
203
+ closeCallIndex0 > openCallIndex
204
+ )
209
205
}
210
206
211
207
private module JumpNodes {
You can’t perform that action at this time.
0 commit comments