| 575 | } |
| 576 | |
| 577 | void ensureUnique(std::unordered_set<std::string>& names, |
| 578 | const std::string& name, |
| 579 | const char* kind, |
| 580 | int line) { |
| 581 | if (!names.insert(name).second) |
| 582 | fail(line, "duplicate " + std::string(kind) + " '" + name + "'"); |
| 583 | } |
| 584 | |
| 585 | [[noreturn]] void fail(const std::string& message) const { |
| 586 | lexer_.die(token_.line, token_.col, message); |
nothing calls this directly
no outgoing calls
no test coverage detected