summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-02-27 09:40:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-02-27 16:37:35 +0100
commit71c7597130a1c2e4622fc0179eff0cc62ecd4af8 (patch)
tree4240194282d82a7320cab0e3edbd0248e6bcdb98 /Userland/Libraries/LibGUI
parent4b483071fb5f00afa50ef05d0e5857d9ccd7c686 (diff)
downloadserenity-71c7597130a1c2e4622fc0179eff0cc62ecd4af8.zip
LanguageServers/Cpp: Add type to Declarations
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/AutocompleteProvider.h8
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;