1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:07:36 +00:00

HackStudio: Add ClassView tab for viewing classes in a tree structure

This enables the user to view and navigate classes with a TreeView that
is updated by the LanguageServer as it parses the code.

It offers a new neat way to view the project's structure :^)
This commit is contained in:
Itamar 2021-04-10 17:38:11 +03:00 committed by Andreas Kling
parent 5adfcd54d8
commit f52c3cabcf
7 changed files with 317 additions and 9 deletions

View file

@ -61,6 +61,8 @@ public:
String file;
size_t line { 0 };
size_t column { 0 };
bool operator==(const ProjectLocation&) const;
};
enum class DeclarationType {
@ -78,6 +80,8 @@ public:
ProjectLocation position;
DeclarationType type;
String scope;
bool operator==(const Declaration&) const;
};
virtual void provide_completions(Function<void(Vector<Entry>)>) = 0;