parameters: (self, line, diags, prefix='expected', removeall=False)
return_statement: return line, diags, diag_col
docstring: Removes expected-* diags from line, returns result_line, remaining_diags, diag_col
          Where, result_line is the line without the matching diagnostics,
              remaining is the list of diags not found on the line,
              diag_col is the column of the first diagnostic found on the line.
docstring_summary: Removes expected-* diags from line, returns result_line, remaining_diags, diag_col
          Where, result_line is the line without the matching diagnostics,
              remaining is the list of diags not found on the line,
              diag_col is the column of the first diagnostic found on the line.
docstring_tokens: Removes expected - * diags from line returns result_line remaining_diags diag_col Where result_line is the line without the matching diagnostics remaining is the list of diags not found on the line diag_col is the column of the first diagnostic found on the line .
function: def RemoveDiags(self, line, diags, prefix='expected', removeall=False):
          """Removes expected-* diags from line, returns result_line, remaining_diags, diag_col
          Where, result_line is the line without the matching diagnostics,
              remaining is the list of diags not found on the line,
              diag_col is the column of the first diagnostic found on the line.
          """
          matches, diags, diag_col = self.MatchDiags(line, diags, prefix, removeall)
          for m in reversed(matches):
              line = line[:m.start()] + line[m.end():]
          return line, diags, diag_col
function_tokens: def RemoveDiags ( self , line , diags , prefix = 'expected' , removeall = False ) : matches , diags , diag_col = self . MatchDiags ( line , diags , prefix , removeall ) for m in reversed ( matches ) : line = line [ : m . start ( ) ] + line [ m . end ( ) : ] return line , diags , diag_col