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

Method EmitEndSeq

lib/yamlcpp/src/emitter.cpp:205–227  ·  view source on GitHub ↗

EmitEndSeq

Source from the content-addressed store, hash-verified

203
204// EmitEndSeq
205void Emitter::EmitEndSeq() {
206 if (!good())
207 return;
208 FlowType::value originalType = m_pState->CurGroupFlowType();
209
210 if (m_pState->CurGroupChildCount() == 0)
211 m_pState->ForceFlow();
212
213 if (m_pState->CurGroupFlowType() == FlowType::Flow) {
214 if (m_stream.comment())
215 m_stream << "\n";
216 m_stream << IndentTo(m_pState->CurIndent());
217 if (originalType == FlowType::Block) {
218 m_stream << "[";
219 } else {
220 if (m_pState->CurGroupChildCount() == 0 && !m_pState->HasBegunNode())
221 m_stream << "[";
222 }
223 m_stream << "]";
224 }
225
226 m_pState->EndedGroup(GroupType::Seq);
227}
228
229// EmitBeginMap
230void Emitter::EmitBeginMap() {

Callers

nothing calls this directly

Calls 7

IndentToClass · 0.85
CurGroupFlowTypeMethod · 0.80
CurGroupChildCountMethod · 0.80
ForceFlowMethod · 0.80
CurIndentMethod · 0.80
HasBegunNodeMethod · 0.80
EndedGroupMethod · 0.80

Tested by

no test coverage detected