| 83 | |
| 84 | |
| 85 | void cSemanticASTVisitor::VisitAssignment(cASTAssignment& node) |
| 86 | { |
| 87 | node.GetExpression()->Accept(*this); |
| 88 | int var_id = -1; |
| 89 | bool global = false; |
| 90 | if (lookupVariable(node.GetVariable(), var_id, global)) { |
| 91 | checkCast(node.GetExpression()->GetType(), (global ? m_global_symtbl : m_cur_symtbl)->GetVariableType(var_id)); |
| 92 | node.SetVar(var_id, global); |
| 93 | } else { |
| 94 | SEMANTIC_ERROR(VARIABLE_UNDEFINED, (const char*)node.GetVariable()); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | |
| 99 | void cSemanticASTVisitor::VisitArgumentList(cASTArgumentList& node) |
nothing calls this directly
no test coverage detected