| 19 | } |
| 20 | |
| 21 | InfoNode InfoTree::CreateObject() { |
| 22 | auto nodeIndex = _nodeOrInfos.size(); |
| 23 | auto childIndex = _mapChildren.size(); |
| 24 | _mapChildren.emplace_back(); |
| 25 | |
| 26 | InfoOrNode n; |
| 27 | n.Kind = InfoKind::Object; |
| 28 | n.Data.ChildIndex = childIndex; |
| 29 | _nodeOrInfos.push_back(n); |
| 30 | |
| 31 | return InfoNode(nodeIndex, this); |
| 32 | } |
| 33 | |
| 34 | InfoNode InfoTree::CreateArray() { |
| 35 | auto nodeIndex = _nodeOrInfos.size(); |
no test coverage detected