Files
codeql/csharp/ql/test/library-tests/statements/If2.ql
2018-08-02 17:53:23 +01:00

10 lines
173 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, (BlockStmt)i.getElse()