mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibCodeComprehension: Re-organize code comprehension related code
This moves all code comprehension-related code to a new library, LibCodeComprehension. This also moves some types related to code comprehension tasks (such as autocomplete, find declaration) out of LibGUI and into LibCodeComprehension.
This commit is contained in:
@@ -14,16 +14,16 @@ ToDoEntries& HackStudio::ToDoEntries::the()
|
||||
return s_instance;
|
||||
}
|
||||
|
||||
void ToDoEntries::set_entries(String const& filename, Vector<Cpp::Parser::TodoEntry> const&& entries)
|
||||
void ToDoEntries::set_entries(String const& filename, Vector<CodeComprehension::TodoEntry> const&& entries)
|
||||
{
|
||||
m_document_to_entries.set(filename, move(entries));
|
||||
if (on_update)
|
||||
on_update();
|
||||
}
|
||||
|
||||
Vector<Cpp::Parser::TodoEntry> ToDoEntries::get_entries()
|
||||
Vector<CodeComprehension::TodoEntry> ToDoEntries::get_entries()
|
||||
{
|
||||
Vector<Cpp::Parser::TodoEntry> ret;
|
||||
Vector<CodeComprehension::TodoEntry> ret;
|
||||
for (auto& it : m_document_to_entries) {
|
||||
for (auto& entry : it.value)
|
||||
ret.append({ entry.content, it.key, entry.line, entry.column });
|
||||
|
||||
Reference in New Issue
Block a user