1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +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

@ -200,4 +200,14 @@ void AutocompleteBox::apply_suggestion()
m_editor->insert_at_cursor_or_replace_selection(completion);
}
bool AutocompleteProvider::Declaration::operator==(const AutocompleteProvider::Declaration& other) const
{
return name == other.name && position == other.position && type == other.type && scope == other.scope;
}
bool AutocompleteProvider::ProjectLocation::operator==(const ProjectLocation& other) const
{
return file == other.file && line == other.line && column == other.column;
}
}