| 405 | } |
| 406 | |
| 407 | void SingleDocParser::ParseAnchor(anchor_t& anchor, std::string& anchor_name) { |
| 408 | Token& token = m_scanner.peek(); |
| 409 | if (anchor) |
| 410 | throw ParserException(token.mark, ErrorMsg::MULTIPLE_ANCHORS); |
| 411 | |
| 412 | anchor_name = token.value; |
| 413 | anchor = RegisterAnchor(token.value); |
| 414 | m_scanner.pop(); |
| 415 | } |
| 416 | |
| 417 | anchor_t SingleDocParser::RegisterAnchor(const std::string& name) { |
| 418 | if (name.empty()) |
nothing calls this directly
no test coverage detected