Singleton blocks
Author: LGTM
import javascrip
from BlockStmt b
where b.getNumStmt() = 1
select b
Description
Finds block statements containing a single statement
import javascrip
from BlockStmt b
where b.getNumStmt() = 1
select b
Finds block statements containing a single statement