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

Method ScanFlowStart

lib/yamlcpp/src/scantoken.cpp:87–101  ·  view source on GitHub ↗

FlowStart

Source from the content-addressed store, hash-verified

85
86// FlowStart
87void Scanner::ScanFlowStart() {
88 // flows can be simple keys
89 InsertPotentialSimpleKey();
90 m_simpleKeyAllowed = true;
91 m_canBeJSONFlow = false;
92
93 // eat
94 Mark mark = INPUT.mark();
95 char ch = INPUT.get();
96 FLOW_MARKER flowType = (ch == Keys::FlowSeqStart ? FLOW_SEQ : FLOW_MAP);
97 m_flows.push(flowType);
98 Token::TYPE type =
99 (flowType == FLOW_SEQ ? Token::FLOW_SEQ_START : Token::FLOW_MAP_START);
100 m_tokens.push(Token(type, mark));
101}
102
103// FlowEnd
104void Scanner::ScanFlowEnd() {

Callers

nothing calls this directly

Calls 4

TokenClass · 0.70
markMethod · 0.45
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected