| 37 | } |
| 38 | |
| 39 | void InfoNode::AddChild(InfoNode n) { |
| 40 | if (_index < _tree->_nodeOrInfos.size()) { |
| 41 | auto node = _tree->_nodeOrInfos[_index]; |
| 42 | if (node.Kind == InfoKind::Array) { |
| 43 | _tree->_arrayChildren[node.Data.ChildIndex].push_back(n._index); |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | void InfoNode::AddChild(std::string s) { |
| 49 | auto c = _tree->CreateString(s); |
no test coverage detected