def RemoveMultiLineComments(filename, lines, error):
 lineix = 0
 while (lineix < len(lines)):
  lineix_begin = FindNextMultiLineCommentStart(lines, lineix)
  if (lineix_begin >= len(lines)):
   return
  lineix_end = FindNextMultiLineCommentEnd(lines, lineix_begin)
  if (lineix_end >= len(lines)):
   error(filename, (lineix_begin + 1), 'readability/multiline_comment', 5, 'Could not find end of multi-line comment')
   return
  RemoveMultiLineCommentsFromRange(lines, lineix_begin, (lineix_end + 1))
  lineix = (lineix_end + 1)

def RemoveMultiLineComments ( filename , lines , error ) : lineix = 0 while ( lineix < len ( lines ) ) : lineix_begin = FindNextMultiLineCommentStart ( lines , lineix ) if ( lineix_begin >= len ( lines ) ) : return lineix_end = FindNextMultiLineCommentEnd ( lines , lineix_begin ) if ( lineix_end >= len ( lines ) ) : error ( filename , ( lineix_begin + 1 ) , 'readability/multiline_comment' , 5 , 'Could not find end of multi-line comment' ) return RemoveMultiLineCommentsFromRange ( lines , lineix_begin , ( lineix_end + 1 ) ) lineix = ( lineix_end + 1 )
removes multiline comments from lines .