Add type attribute to parseIfStatement figure