1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

HackStudio: Store known symbol declarations in ProjectDeclarations

They were previously stored inside the Locator widget. I moved them to
the globally visible ProjectDeclarations class so they can also be used
by other widgets.
This commit is contained in:
Itamar 2021-04-09 08:49:48 +03:00 committed by Andreas Kling
parent b87791cada
commit 667926df73
8 changed files with 146 additions and 32 deletions

View file

@ -39,7 +39,6 @@ public:
void open();
void close();
void set_declared_symbols(const String& filename, const Vector<GUI::AutocompleteProvider::Declaration>&);
private:
void update_suggestions();
@ -50,7 +49,6 @@ private:
RefPtr<GUI::TextBox> m_textbox;
RefPtr<GUI::Window> m_popup_window;
RefPtr<GUI::TableView> m_suggestion_view;
HashMap<String, Vector<GUI::AutocompleteProvider::Declaration>> m_document_to_declarations;
};
}