| 785 | } |
| 786 | |
| 787 | bool AR_EXP_ContainsVariadic(const AR_ExpNode *root) { |
| 788 | if(root == NULL) return false; |
| 789 | if(AR_EXP_IsOperation(root)) { |
| 790 | for(int i = 0; i < root->op.child_count; i++) { |
| 791 | if(AR_EXP_ContainsVariadic(root->op.children[i])) return true; |
| 792 | } |
| 793 | } else if(AR_EXP_IsVariadic(root)) { |
| 794 | return true; |
| 795 | } |
| 796 | return false; |
| 797 | } |
| 798 | |
| 799 | // return type of expression |
| 800 | // e.g. the expression: `1+3` return type is SI_NUMERIC |
no test coverage detected