Parse if-blocks in the block visitor.