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 0d14b94 commit b55bce4Copy full SHA for b55bce4
csharp/ql/src/semmle/code/csharp/controlflow/internal/NonReturning.qll
@@ -39,8 +39,10 @@ private class ThrowingCall extends NonReturningCall {
39
or
40
this.(FailingAssertion).getAssertionFailure().isException(c.getExceptionClass())
41
42
- exists(CIL::Method m, CIL::Type ex |
43
- this.getTarget().matchesHandle(m) and
+ exists(Callable target, CIL::Method m, CIL::Type ex |
+ target = this.getTarget() and
44
+ not target.hasBody() and
45
+ target.matchesHandle(m) and
46
alwaysThrowsException(m, ex) and
47
c.getExceptionClass().matchesHandle(ex) and
48
not m.isVirtual()
0 commit comments