(text : str)
| 77 | return text |
| 78 | |
| 79 | def getEntryType(text : str): |
| 80 | text = removeComments(text) |
| 81 | if isVariableName(text): |
| 82 | return "Variable" |
| 83 | if isFunctionCall(text): |
| 84 | return "FunctionCall" |
| 85 | if text.startswith("for"): |
| 86 | return "for" |
| 87 | if text.startswith("if") or text.startswith("else if") or text.startswith("} else") or text.startswith("else"): |
| 88 | return "if" |
| 89 | if text.startswith("while"): |
| 90 | return "while" |
| 91 | if text.startswith("do"): |
| 92 | return "do" |
| 93 | |
| 94 | class ParsingItem: |
| 95 | def __init__(self, parent): |
no test coverage detected