def IsOutOfLineMethodDefinition(clean_lines, linenum):
 for i in xrange(linenum, max((-1), (linenum - 10)), (-1)):
  if Match('^([^()]*\\w+)\\(', clean_lines.elided[i]):
   return (Match('^[^()]*\\w+::\\w+\\(', clean_lines.elided[i]) is not None)
 return False

def IsOutOfLineMethodDefinition ( clean_lines , linenum ) : for i in xrange ( linenum , max ( ( - 1 ) , ( linenum - 10 ) ) , ( - 1 ) ) : if Match ( '^([^()]*\\w+)\\(' , clean_lines . elided [ i ] ) : return ( Match ( '^[^()]*\\w+::\\w+\\(' , clean_lines . elided [ i ] ) is not None ) return False
check if current line contains an out-of-line method definition .