mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
LanguageServers: Add function to collect TODO entries in a document
This commit is contained in:
parent
c397e030f4
commit
26a7356e90
12 changed files with 103 additions and 0 deletions
|
@ -520,6 +520,11 @@ void CppComprehensionEngine::update_declared_symbols(DocumentData& document)
|
|||
set_declarations_of_document(document.filename(), move(declarations));
|
||||
}
|
||||
|
||||
void CppComprehensionEngine::update_todo_entries(DocumentData& document)
|
||||
{
|
||||
set_todo_entries_of_document(document.filename(), document.parser().get_todo_entries());
|
||||
}
|
||||
|
||||
GUI::AutocompleteProvider::DeclarationType CppComprehensionEngine::type_of_declaration(const Declaration& decl)
|
||||
{
|
||||
if (decl.is_struct())
|
||||
|
@ -574,6 +579,7 @@ OwnPtr<CppComprehensionEngine::DocumentData> CppComprehensionEngine::create_docu
|
|||
root->dump();
|
||||
|
||||
update_declared_symbols(*document_data);
|
||||
update_todo_entries(*document_data);
|
||||
|
||||
return document_data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue