| 102 | } |
| 103 | |
| 104 | void SymbolLocator::prepareSearch(const QString &searchText) |
| 105 | { |
| 106 | Q_UNUSED(searchText) |
| 107 | |
| 108 | d->itemList.clear(); |
| 109 | auto editor = d->currentEditor(); |
| 110 | if (!editor) |
| 111 | return; |
| 112 | |
| 113 | const auto &symbolList = SymbolManager::instance()->documentSymbols(editor->getFile()); |
| 114 | if (!symbolList.isEmpty()) { |
| 115 | for (const auto &symbol : symbolList) { |
| 116 | d->createSymbolItem(symbol); |
| 117 | } |
| 118 | } else { |
| 119 | const auto &infoList = SymbolManager::instance()->symbolInformations(editor->getFile()); |
| 120 | for (const auto &info : infoList) { |
| 121 | d->createSymbolItem(info); |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | QList<baseLocatorItem> SymbolLocator::matchesFor(const QString &inputText) |
| 127 | { |
nothing calls this directly
no test coverage detected