| 381 | } |
| 382 | |
| 383 | void Scanner::ThrowParserException(const std::string& msg) const { |
| 384 | Mark mark = Mark::null_mark(); |
| 385 | if (!m_tokens.empty()) { |
| 386 | const Token& token = m_tokens.front(); |
| 387 | mark = token.mark; |
| 388 | } |
| 389 | throw ParserException(mark, msg); |
| 390 | } |
| 391 | } // namespace YAML |
nothing calls this directly
no test coverage detected