| 148 | } |
| 149 | |
| 150 | const_node_iterator node_data::end() const { |
| 151 | if (!m_isDefined) |
| 152 | return {}; |
| 153 | |
| 154 | switch (m_type) { |
| 155 | case NodeType::Sequence: |
| 156 | return const_node_iterator(m_sequence.end()); |
| 157 | case NodeType::Map: |
| 158 | return const_node_iterator(m_map.end(), m_map.end()); |
| 159 | default: |
| 160 | return {}; |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | node_iterator node_data::end() { |
| 165 | if (!m_isDefined) |
no outgoing calls