Files
codeql/csharp/ql/test/library-tests/statements/If2.ql
2018-12-20 10:19:59 +01:00

12 lines
177 B
Plaintext

/**
* @name Test for else branch
*/
import csharp
from Method m, IfStmt i
where
m.getName() = "MainIf" and
i = m.getBody().getChild(0)
select i, i.getElse().(BlockStmt)