Singleton blocks

Author: LGTM

import csharp

from BlockStmt b
where b.getNumberOfStmts() = 1
select b

Description

Finds block statements containing a single statement.