equal
deleted
inserted
replaced
314 |
314 |
315 search_location_type_c search_location_type; |
315 search_location_type_c search_location_type; |
316 locationtype_t location_type = search_location_type.get_location_type(symbol->location); |
316 locationtype_t location_type = search_location_type.get_location_type(symbol->location); |
317 if (location_type == input_lt) |
317 if (location_type == input_lt) |
318 this->current_var_type_category = located_input_vtc; |
318 this->current_var_type_category = located_input_vtc; |
|
319 else if (location_type == memory_lt) |
|
320 this->current_var_type_category = located_memory_vtc; |
319 else if (location_type == output_lt) |
321 else if (location_type == output_lt) |
320 this->current_var_type_category = located_output_vtc; |
322 this->current_var_type_category = located_output_vtc; |
321 |
323 |
322 if (symbol->variable_name != NULL) |
324 if (symbol->variable_name != NULL) |
323 declare_variable(symbol->variable_name); |
325 declare_variable(symbol->variable_name); |
339 |
341 |
340 search_location_type_c search_location_type; |
342 search_location_type_c search_location_type; |
341 locationtype_t location_type = search_location_type.get_location_type(symbol->incompl_location); |
343 locationtype_t location_type = search_location_type.get_location_type(symbol->incompl_location); |
342 if (location_type == input_lt) |
344 if (location_type == input_lt) |
343 this->current_var_type_category = located_input_vtc; |
345 this->current_var_type_category = located_input_vtc; |
|
346 else if (location_type == memory_lt) |
|
347 this->current_var_type_category = located_memory_vtc; |
344 else if (location_type == output_lt) |
348 else if (location_type == output_lt) |
345 this->current_var_type_category = located_output_vtc; |
349 this->current_var_type_category = located_output_vtc; |
346 |
350 |
347 if (symbol->variable_name != NULL) |
351 if (symbol->variable_name != NULL) |
348 declare_variable(symbol->variable_name); |
352 declare_variable(symbol->variable_name); |