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

Method PopIndent

lib/yamlcpp/src/scanner.cpp:360–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void Scanner::PopIndent() {
361 const IndentMarker& indent = *m_indents.top();
362 m_indents.pop();
363
364 if (indent.status != IndentMarker::VALID) {
365 InvalidateSimpleKey();
366 return;
367 }
368
369 if (indent.type == IndentMarker::SEQ) {
370 m_tokens.push(Token(Token::BLOCK_SEQ_END, INPUT.mark()));
371 } else if (indent.type == IndentMarker::MAP) {
372 m_tokens.push(Token(Token::BLOCK_MAP_END, INPUT.mark()));
373 }
374}
375
376int Scanner::GetTopIndent() const {
377 if (m_indents.empty()) {

Callers

nothing calls this directly

Calls 5

TokenClass · 0.70
topMethod · 0.45
popMethod · 0.45
pushMethod · 0.45
markMethod · 0.45

Tested by

no test coverage detected