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

Method ScanBlockEntry

lib/yamlcpp/src/scantoken.cpp:153–170  ·  view source on GitHub ↗

BlockEntry

Source from the content-addressed store, hash-verified

151
152// BlockEntry
153void Scanner::ScanBlockEntry() {
154 // we better be in the block context!
155 if (InFlowContext())
156 throw ParserException(INPUT.mark(), ErrorMsg::BLOCK_ENTRY);
157
158 // can we put it here?
159 if (!m_simpleKeyAllowed)
160 throw ParserException(INPUT.mark(), ErrorMsg::BLOCK_ENTRY);
161
162 PushIndentTo(INPUT.column(), IndentMarker::SEQ);
163 m_simpleKeyAllowed = true;
164 m_canBeJSONFlow = false;
165
166 // eat
167 Mark mark = INPUT.mark();
168 INPUT.eat(1);
169 m_tokens.push(Token(Token::BLOCK_ENTRY, mark));
170}
171
172// Key
173void Scanner::ScanKey() {

Callers

nothing calls this directly

Calls 6

ParserExceptionFunction · 0.85
eatMethod · 0.80
TokenClass · 0.70
markMethod · 0.45
columnMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected