src: renamed "non_indexed" node type to "symbol"

This commit is contained in:
mlangkabel
2017-11-23 17:36:42 +01:00
parent a318ed1a40
commit d1b6667ac6
13 changed files with 54 additions and 55 deletions
+3 -4
View File
@@ -32,7 +32,7 @@ PersistentStorage::PersistentStorage(const FilePath& dbPath, const FilePath& boo
m_commandIndex.addNode(0, SearchMatch::getCommandName(SearchMatch::COMMAND_ALL));
m_commandIndex.addNode(0, SearchMatch::getCommandName(SearchMatch::COMMAND_ERROR));
// m_commandIndex.addNode(0, NodeType(NodeType::NODE_NON_INDEXED).getReadableTypeString());
// m_commandIndex.addNode(0, NodeType(NodeType::NODE_SYMBOL).getReadableTypeString());
// m_commandIndex.addNode(0, NodeType(NodeType::NODE_TYPE).getReadableTypeString());
m_commandIndex.addNode(0, NodeType(NodeType::NODE_BUILTIN_TYPE).getReadableTypeString());
m_commandIndex.addNode(0, NodeType(NodeType::NODE_NAMESPACE).getReadableTypeString());
@@ -678,8 +678,7 @@ std::vector<SearchMatch> PersistentStorage::getAutocompletionSymbolMatches(
match.typeName = match.nodeType.getReadableTypeString();
match.searchType = SearchMatch::SEARCH_TOKEN;
if (storageSymbolMap.find(firstNode->id) == storageSymbolMap.end() &&
!match.nodeType.isNonIndexed())
if (storageSymbolMap.find(firstNode->id) == storageSymbolMap.end())
{
match.typeName = "non-indexed " + match.typeName;
}
@@ -1735,7 +1734,7 @@ TooltipInfo PersistentStorage::getTooltipInfoForTokenIds(const std::vector<Id>&
info.title = "incomplete " + info.title;
}
}
else if (defKind == DEFINITION_NONE && type.getType() != NodeType::NODE_NON_INDEXED)
else if (defKind == DEFINITION_NONE)
{
info.title = "non-indexed " + info.title;
}