mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
12 lines
183 B
Plaintext
12 lines
183 B
Plaintext
/**
|
|
* @name Test for empty blocks
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m
|
|
where
|
|
m.getName() = "Main" and
|
|
count(BlockStmt b | b.getEnclosingCallable() = m and b.isEmpty()) = 2
|
|
select m
|