class YARD::Parser::Ruby::Legacy::StatementList

def sanitize_block

def sanitize_block
  return unless @block
  extra = []
  while [TkSPACE, TkNL, TkSEMICOLON].include?(@block.last.class)
    next(@block.pop) if TkSEMICOLON === @block.last
    extra.unshift(@block.pop)
  end
  @statement.each_with_index do |token, index|
    if TkBlockContents === token
      @statement[index, 1] = [token, *extra]
      break
    end
  end
end