mirror of
https://github.com/github/codeql.git
synced 2026-03-23 07:56:54 +01:00
10 lines
173 B
Plaintext
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()
|