Empty blocks

Author: LGTM

import python

from StmtList blk
where not exists(Stmt s | not s instanceof Pass)
select blk.getItem(0)

Description

Finds the first statement in a block consisting of nothing but Pass statements