Files
codeql/csharp/ql/examples/snippets/singleton_block.ql
2019-07-26 17:47:11 +02:00

13 lines
211 B
Plaintext

/**
* @name Singleton blocks
* @description Finds block statements containing a single statement.
* @tags block
* statement
*/
import csharp
from BlockStmt b
where b.getNumberOfStmts() = 1
select b