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

Method ParseAnchor

lib/yamlcpp/src/singledocparser.cpp:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void 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
417anchor_t SingleDocParser::RegisterAnchor(const std::string& name) {
418 if (name.empty())

Callers

nothing calls this directly

Calls 3

ParserExceptionFunction · 0.85
peekMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected