stage3/lvalue_check.cc
changeset 529 629105224e57
parent 528 6510ee2eaab9
child 532 cb78940b2cb8
equal deleted inserted replaced
528:6510ee2eaab9 529:629105224e57
   227 
   227 
   228 
   228 
   229 
   229 
   230 
   230 
   231 void lvalue_check_c::verify_is_lvalue(symbol_c *lvalue) {
   231 void lvalue_check_c::verify_is_lvalue(symbol_c *lvalue) {
   232 	check_assignment_to_expression(lvalue);
   232 	int init_error_count = error_count;  /* stop the checks once an error has been found... */
   233 	check_assignment_to_controlvar(lvalue);
   233 	if (error_count == init_error_count)  check_assignment_to_expression(lvalue);
   234 	check_assignment_to_output(lvalue);
   234 	if (error_count == init_error_count)  check_assignment_to_controlvar(lvalue);
   235 	check_assignment_to_constant(lvalue);
   235 	if (error_count == init_error_count)  check_assignment_to_output(lvalue);
       
   236 	if (error_count == init_error_count)  check_assignment_to_constant(lvalue);
   236 }
   237 }
   237 
   238 
   238 
   239 
   239 
   240 
   240 
   241