We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411d2b2 commit 6c20585Copy full SHA for 6c20585
csharp/ql/lib/semmle/code/csharp/Stmt.qll
@@ -946,17 +946,13 @@ class TryStmt extends Stmt, @try_stmt {
946
exists(ControlFlowElement mid |
947
mid = this.getATriedElement() and
948
not mid instanceof TryStmt and
949
- result = getAChild(mid, mid.getEnclosingCallable())
+ result = mid.getAChild() and
950
+ pragma[only_bind_into](mid.getEnclosingCallable()) =
951
+ pragma[only_bind_into](result.getEnclosingCallable())
952
)
953
}
954
955
-pragma[noinline]
-private ControlFlowElement getAChild(ControlFlowElement cfe, Callable c) {
956
- result = cfe.getAChild() and
957
- c = result.getEnclosingCallable()
958
-}
959
-
960
/**
961
* A `catch` clause within a `try` statement.
962
*
0 commit comments