| 422 | } |
| 423 | |
| 424 | anchor_t SingleDocParser::LookupAnchor(const Mark& mark, |
| 425 | const std::string& name) const { |
| 426 | auto it = m_anchors.find(name); |
| 427 | if (it == m_anchors.end()) { |
| 428 | std::stringstream ss; |
| 429 | ss << ErrorMsg::UNKNOWN_ANCHOR << name; |
| 430 | throw ParserException(mark, ss.str()); |
| 431 | } |
| 432 | |
| 433 | return it->second; |
| 434 | } |
| 435 | } // namespace YAML |
nothing calls this directly
no test coverage detected