MCPcopy Create free account
hub / github.com/apache/trafficserver / ParseTag

Method ParseTag

lib/yamlcpp/src/singledocparser.cpp:397–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void SingleDocParser::ParseTag(std::string& tag) {
398 Token& token = m_scanner.peek();
399 if (!tag.empty())
400 throw ParserException(token.mark, ErrorMsg::MULTIPLE_TAGS);
401
402 Tag tagInfo(token);
403 tag = tagInfo.Translate(m_directives);
404 m_scanner.pop();
405}
406
407void SingleDocParser::ParseAnchor(anchor_t& anchor, std::string& anchor_name) {
408 Token& token = m_scanner.peek();

Callers

nothing calls this directly

Calls 5

ParserExceptionFunction · 0.85
peekMethod · 0.80
TranslateMethod · 0.80
emptyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected