Lines Matching refs:CurrentNode
53 CurrentNode(nullptr) { in Input()
90 CurrentNode = TopNode.get(); in setCurrentDocument()
101 return CurrentNode ? CurrentNode->_node : nullptr; in getCurrentNode()
105 std::string foundTag = CurrentNode->_node->getVerbatimTag(); in mapTag()
118 MapHNode *MN = dyn_cast_or_null<MapHNode>(CurrentNode); in beginMapping()
132 if (!CurrentNode) { in preflightKey()
138 MapHNode *MN = dyn_cast<MapHNode>(CurrentNode); in preflightKey()
140 setError(CurrentNode, "not a mapping"); in preflightKey()
147 setError(CurrentNode, Twine("missing required key '") + Key + "'"); in preflightKey()
152 SaveInfo = CurrentNode; in preflightKey()
153 CurrentNode = Value; in preflightKey()
158 CurrentNode = reinterpret_cast<HNode *>(saveInfo); in postflightKey()
165 MapHNode *MN = dyn_cast_or_null<MapHNode>(CurrentNode); in endMapping()
181 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) in beginSequence()
183 if (isa<EmptyHNode>(CurrentNode)) in beginSequence()
186 if (ScalarHNode *SN = dyn_cast<ScalarHNode>(CurrentNode)) { in beginSequence()
191 setError(CurrentNode, "not a sequence"); in beginSequence()
201 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in preflightElement()
202 SaveInfo = CurrentNode; in preflightElement()
203 CurrentNode = SQ->Entries[Index].get(); in preflightElement()
210 CurrentNode = reinterpret_cast<HNode *>(SaveInfo); in postflightElement()
218 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in preflightFlowElement()
219 SaveInfo = CurrentNode; in preflightFlowElement()
220 CurrentNode = SQ->Entries[index].get(); in preflightFlowElement()
227 CurrentNode = reinterpret_cast<HNode *>(SaveInfo); in postflightFlowElement()
240 if (ScalarHNode *SN = dyn_cast<ScalarHNode>(CurrentNode)) { in matchEnumScalar()
258 setError(CurrentNode, "unknown enumerated scalar"); in endEnumScalar()
264 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in beginBitSetScalar()
267 setError(CurrentNode, "expected sequence of bit values"); in beginBitSetScalar()
276 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in bitSetMatch()
285 setError(CurrentNode, "unexpected scalar in sequence of bit values"); in bitSetMatch()
290 setError(CurrentNode, "expected sequence of bit values"); in bitSetMatch()
298 if (SequenceHNode *SQ = dyn_cast<SequenceHNode>(CurrentNode)) { in endBitSetScalar()
310 if (ScalarHNode *SN = dyn_cast<ScalarHNode>(CurrentNode)) { in scalarString()
313 setError(CurrentNode, "unexpected scalar"); in scalarString()
388 this->setError(CurrentNode, Message); in setError()