| 25 | } |
| 26 | |
| 27 | static uint32_t get_symbol_id(parse_state & state, const char * src, size_t len) { |
| 28 | uint32_t next_id = static_cast<uint32_t>(state.symbol_ids.size()); |
| 29 | auto result = state.symbol_ids.insert(std::make_pair(std::string(src, len), next_id)); |
| 30 | return result.first->second; |
| 31 | } |
| 32 | |
| 33 | static uint32_t generate_symbol_id(parse_state & state, const std::string & base_name) { |
| 34 | uint32_t next_id = static_cast<uint32_t>(state.symbol_ids.size()); |
no test coverage detected