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

Method PopIndentToHere

lib/yamlcpp/src/scanner.cpp:316–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void Scanner::PopIndentToHere() {
317 // are we in flow?
318 if (InFlowContext()) {
319 return;
320 }
321
322 // now pop away
323 while (!m_indents.empty()) {
324 const IndentMarker& indent = *m_indents.top();
325 if (indent.column < INPUT.column()) {
326 break;
327 }
328 if (indent.column == INPUT.column() &&
329 !(indent.type == IndentMarker::SEQ &&
330 !Exp::BlockEntry().Matches(INPUT))) {
331 break;
332 }
333
334 PopIndent();
335 }
336
337 while (!m_indents.empty() &&
338 m_indents.top()->status == IndentMarker::INVALID) {
339 PopIndent();
340 }
341}
342
343void Scanner::PopAllIndents() {
344 // are we in flow?

Callers

nothing calls this directly

Calls 4

MatchesMethod · 0.80
emptyMethod · 0.45
topMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected