| 359 | } |
| 360 | |
| 361 | bool find_reference_symbol(const std::string& symbol_name, SymbolReference& ref_out) const { |
| 362 | auto find_sym_it = reference_symbols_by_name.find(symbol_name); |
| 363 | |
| 364 | // Check if the symbol was found. |
| 365 | if (find_sym_it == reference_symbols_by_name.end()) { |
| 366 | return false; |
| 367 | } |
| 368 | |
| 369 | ref_out = find_sym_it->second; |
| 370 | return true; |
| 371 | } |
| 372 | |
| 373 | bool reference_symbol_exists(const std::string& symbol_name) const { |
| 374 | SymbolReference dummy_ref; |