| 386 | } |
| 387 | |
| 388 | static void _AR_EXP_ResolveVariables(AR_ExpNode *root, const Record r) { |
| 389 | ASSERT(r != NULL); |
| 390 | |
| 391 | if(root == NULL) return; |
| 392 | |
| 393 | switch(root->type) { |
| 394 | case AR_EXP_OP: |
| 395 | _AR_EXP_OpResolveVariables(root, r); |
| 396 | break; |
| 397 | case AR_EXP_OPERAND: |
| 398 | _AR_EXP_OperandResolveVariables(root, r); |
| 399 | break; |
| 400 | default: |
| 401 | ASSERT(false && "unknown arithmetic expression node type"); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | void AR_EXP_ResolveVariables(AR_ExpNode *root, const Record r) { |
| 406 | _AR_EXP_ResolveVariables(root, r); |
no test coverage detected