mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
12 lines
177 B
Plaintext
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)
|