stage3/fill_candidate_datatypes.cc
changeset 942 8739d8259932
parent 940 61e2bdae5899
child 945 477393b00f95
equal deleted inserted replaced
941:c2ef93412407 942:8739d8259932
  1964    *        Since the deref_operator_c may be used inside structures, we must narrow it here, if possible!
  1964    *        Since the deref_operator_c may be used inside structures, we must narrow it here, if possible!
  1965    */
  1965    */
  1966   if (symbol->candidate_datatypes.size() == 1)
  1966   if (symbol->candidate_datatypes.size() == 1)
  1967     // narrow the symbol->datatype for this symbol as explained above!
  1967     // narrow the symbol->datatype for this symbol as explained above!
  1968     symbol->datatype = symbol->candidate_datatypes[0];
  1968     symbol->datatype = symbol->candidate_datatypes[0];
       
  1969 
       
  1970   /*        Since the deref_operator_c may be used inside structures, we must handle set the 'scope' annotation here too! */
       
  1971   symbol->scope = symbol->exp->scope;
  1969   
  1972   
  1970   return NULL;
  1973   return NULL;
  1971 }
  1974 }
  1972 
  1975 
  1973 
  1976