diff options
author | Itamar <itamar8910@gmail.com> | 2021-02-27 09:40:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-27 16:37:35 +0100 |
commit | 71c7597130a1c2e4622fc0179eff0cc62ecd4af8 (patch) | |
tree | 4240194282d82a7320cab0e3edbd0248e6bcdb98 /Userland/Libraries/LibGUI | |
parent | 4b483071fb5f00afa50ef05d0e5857d9ccd7c686 (diff) | |
download | serenity-71c7597130a1c2e4622fc0179eff0cc62ecd4af8.zip |
LanguageServers/Cpp: Add type to Declarations
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/AutocompleteProvider.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/AutocompleteProvider.h b/Userland/Libraries/LibGUI/AutocompleteProvider.h index 2794a3b37d..3c7fa4cc76 100644 --- a/Userland/Libraries/LibGUI/AutocompleteProvider.h +++ b/Userland/Libraries/LibGUI/AutocompleteProvider.h @@ -62,9 +62,17 @@ public: size_t column { 0 }; }; + enum class DeclarationType { + Function, + Struct, + Class, + Variable + }; + struct Declaration { String name; ProjectLocation position; + DeclarationType type; }; virtual void provide_completions(Function<void(Vector<Entry>)>) = 0; |