(content: str)
| 59 | |
| 60 | |
| 61 | def is_empty_function(content: str) -> bool: |
| 62 | if "{" not in content: |
| 63 | return True |
| 64 | body = content[content.index("{")+1:content.rindex("}")].strip() |
| 65 | empty_line_num = len(body.split("\n\n")) - 1 |
| 66 | if body == "": |
| 67 | return True |
| 68 | elif len(body.split(";")) + empty_line_num <= 3: |
| 69 | return True |
| 70 | return False |
| 71 | |
| 72 | |
| 73 | def get_loc(content: str) -> int: |