Lines Matching refs:CurrentNode
104 CurrentNode = TopNode.get(); in setCurrentDocument()
115 return CurrentNode ? CurrentNode->_node : nullptr; in getCurrentNode()
121 if (!CurrentNode) in mapTag()
124 std::string foundTag = CurrentNode->_node->getVerbatimTag(); in mapTag()
137 MapHNode *MN = dyn_cast_or_null<MapHNode>(CurrentNode); in beginMapping()
144 MapHNode *MN = dyn_cast<MapHNode>(CurrentNode); in keys()
147 setError(CurrentNode, "not a mapping"); in keys()
163 if (!CurrentNode) { in preflightKey()
169 MapHNode *MN = dyn_cast<MapHNode>(CurrentNode); in preflightKey()
171 if (Required || !isa<EmptyHNode>(CurrentNode)) in preflightKey()
172 setError(CurrentNode, "not a mapping"); in preflightKey()
181 setError(CurrentNode, Twine("missing required key '") + Key + "'"); in preflightKey()
186 SaveInfo = CurrentNode; in preflightKey()
187 CurrentNode = Value; in preflightKey()
192 CurrentNode = reinterpret_cast<HNode *>(saveInfo); in postflightKey()
199 MapHNode *MN = dyn_cast_or_null<MapHNode>(CurrentNode); in endMapping()
219 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) in beginSequence()
221 if (isa<EmptyHNode>(CurrentNode)) in beginSequence()
224 if (ScalarHNode *SN = dyn_cast<ScalarHNode>(CurrentNode)) { in beginSequence()
229 setError(CurrentNode, "not a sequence"); in beginSequence()
239 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in preflightElement()
240 SaveInfo = CurrentNode; in preflightElement()
241 CurrentNode = SQ->Entries[Index].get(); in preflightElement()
248 CurrentNode = reinterpret_cast<HNode *>(SaveInfo); in postflightElement()
256 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in preflightFlowElement()
257 SaveInfo = CurrentNode; in preflightFlowElement()
258 CurrentNode = SQ->Entries[index].get(); in preflightFlowElement()
265 CurrentNode = reinterpret_cast<HNode *>(SaveInfo); in postflightFlowElement()
278 if (ScalarHNode *SN = dyn_cast<ScalarHNode>(CurrentNode)) { in matchEnumScalar()
296 setError(CurrentNode, "unknown enumerated scalar"); in endEnumScalar()
302 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in beginBitSetScalar()
305 setError(CurrentNode, "expected sequence of bit values"); in beginBitSetScalar()
314 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in bitSetMatch()
323 setError(CurrentNode, "unexpected scalar in sequence of bit values"); in bitSetMatch()
328 setError(CurrentNode, "expected sequence of bit values"); in bitSetMatch()
336 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in endBitSetScalar()
348 if (ScalarHNode *SN = dyn_cast<ScalarHNode>(CurrentNode)) { in scalarString()
351 setError(CurrentNode, "unexpected scalar"); in scalarString()
358 Tag = CurrentNode->_node->getVerbatimTag(); in scalarTag()
367 if (isa<ScalarHNode>(CurrentNode)) in getNodeKind()
369 else if (isa<MapHNode>(CurrentNode)) in getNodeKind()
371 else if (isa<SequenceHNode>(CurrentNode)) in getNodeKind()
441 setError(CurrentNode, Message); in setError()