(forToken)
| 855 | |
| 856 | |
| 857 | def getForLoopExpressions(forToken): |
| 858 | if not forToken or forToken.str != 'for': |
| 859 | return None |
| 860 | lpar = forToken.next |
| 861 | if not lpar or lpar.str != '(': |
| 862 | return None |
| 863 | if not lpar.astOperand2 or lpar.astOperand2.str != ';': |
| 864 | return None |
| 865 | if not lpar.astOperand2.astOperand2 or lpar.astOperand2.astOperand2.str != ';': |
| 866 | return None |
| 867 | return [lpar.astOperand2.astOperand1, |
| 868 | lpar.astOperand2.astOperand2.astOperand1, |
| 869 | lpar.astOperand2.astOperand2.astOperand2] |
| 870 | |
| 871 | |
| 872 | def get_function_scope(cfg, func): |
no outgoing calls
no test coverage detected