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

Method HandleCompactMapWithNoKey

lib/yamlcpp/src/singledocparser.cpp:359–370  ·  view source on GitHub ↗

. Single ": value" pair in a flow sequence

Source from the content-addressed store, hash-verified

357
358// . Single ": value" pair in a flow sequence
359void SingleDocParser::HandleCompactMapWithNoKey(EventHandler& eventHandler) {
360 m_pCollectionStack->PushCollectionType(CollectionType::CompactMap);
361
362 // null key
363 eventHandler.OnNull(m_scanner.peek().mark, NullAnchor);
364
365 // grab value
366 m_scanner.pop();
367 HandleNode(eventHandler);
368
369 m_pCollectionStack->PopCollectionType(CollectionType::CompactMap);
370}
371
372// ParseProperties
373// . Grabs any tag or anchor tokens and deals with them.

Callers

nothing calls this directly

Calls 5

PushCollectionTypeMethod · 0.80
peekMethod · 0.80
PopCollectionTypeMethod · 0.80
OnNullMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected