data: name hierarchy refactoring
* replaced typenames (which have been stored as single sting where "::" indicated hierarchy levels) by a vector of strings where each element indicates a hierarchy level. * introduced this change to the Storage method signatures, the ParseFunction and ParseVariable * this way the SearchIndex creates a node for each level of the hierarchy.
This commit is contained in:
@@ -107,12 +107,12 @@ Node* StorageGraph::insertNodeHierarchy(Node::NodeType type, SearchIndex::Search
|
||||
parentNode = getNodeById(parentSearchNode->getFirstTokenId());
|
||||
}
|
||||
|
||||
while (searchNodes.size())
|
||||
while (searchNodes.size() > 0)
|
||||
{
|
||||
searchNode = searchNodes.front();
|
||||
searchNodes.pop_front();
|
||||
|
||||
parentNode = insertNode(searchNodes.size() ? Node::NODE_UNDEFINED : type, parentNode, searchNode);
|
||||
parentNode = insertNode(searchNodes.size() > 0 ? Node::NODE_UNDEFINED : type, parentNode, searchNode);
|
||||
}
|
||||
|
||||
return parentNode;
|
||||
|
||||
Reference in New Issue
Block a user