Check if current line contains an out-of-line method definition. Args: clean_lines: A CleansedLines instance containing the file. linenum: The number of the line to check. Returns: True if current line contains an out-of-line method definition.
(clean_lines, linenum)
| 4953 | |
| 4954 | |
| 4955 | def IsOutOfLineMethodDefinition(clean_lines, linenum): |
| 4956 | """Check if current line contains an out-of-line method definition. |
| 4957 | |
| 4958 | Args: |
| 4959 | clean_lines: A CleansedLines instance containing the file. |
| 4960 | linenum: The number of the line to check. |
| 4961 | Returns: |
| 4962 | True if current line contains an out-of-line method definition. |
| 4963 | """ |
| 4964 | # Scan back a few lines for start of current function |
| 4965 | for i in xrange(linenum, max(-1, linenum - 10), -1): |
| 4966 | if Match(r'^([^()]*\w+)\(', clean_lines.elided[i]): |
| 4967 | return Match(r'^[^()]*\w+::\w+\(', clean_lines.elided[i]) is not None |
| 4968 | return False |
| 4969 | |
| 4970 | |
| 4971 | def IsInitializerList(clean_lines, linenum): |
no test coverage detected
searching dependent graphs…