[gnome-builder] langserv: add type definitions for completion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] langserv: add type definitions for completion
- Date: Sat, 21 Apr 2018 01:40:06 +0000 (UTC)
commit 1ab90da3f73e227345c620c1922c84c0e59273a7
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 20 18:39:24 2018 -0700
langserv: add type definitions for completion
src/libide/ide-enums.c.in | 1 +
src/libide/ide.h | 1 +
src/libide/langserv/ide-langserv-types.h | 52 ++++++++++++++++++++++++++++++++
src/libide/langserv/meson.build | 6 ++++
4 files changed, 60 insertions(+)
---
diff --git a/src/libide/ide-enums.c.in b/src/libide/ide-enums.c.in
index 0441f2434..556c12180 100644
--- a/src/libide/ide-enums.c.in
+++ b/src/libide/ide-enums.c.in
@@ -15,6 +15,7 @@
#include "files/ide-indent-style.h"
#include "files/ide-spaces-style.h"
#include "highlighting/ide-highlighter.h"
+#include "langserv/ide-langserv-types.h"
#include "runtimes/ide-runtime.h"
#include "sourceview/ide-source-view.h"
#include "symbols/ide-symbol.h"
diff --git a/src/libide/ide.h b/src/libide/ide.h
index 1ec900a6b..e5fc8447c 100644
--- a/src/libide/ide.h
+++ b/src/libide/ide.h
@@ -115,6 +115,7 @@ G_BEGIN_DECLS
#include "langserv/ide-langserv-diagnostic-provider.h"
#include "langserv/ide-langserv-rename-provider.h"
#include "langserv/ide-langserv-symbol-resolver.h"
+#include "langserv/ide-langserv-types.h"
#include "langserv/ide-langserv-util.h"
#include "layout/ide-layout-grid.h"
#include "layout/ide-layout-grid-column.h"
diff --git a/src/libide/langserv/ide-langserv-types.h b/src/libide/langserv/ide-langserv-types.h
new file mode 100644
index 000000000..43c05745c
--- /dev/null
+++ b/src/libide/langserv/ide-langserv-types.h
@@ -0,0 +1,52 @@
+/* ide-langserv-types.h
+ *
+ * Copyright 2018 Christian Hergert <chergert redhat com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+G_BEGIN_DECLS
+
+typedef enum
+{
+ IDE_LSP_COMPLETION_TEXT = 1,
+ IDE_LSP_COMPLETION_METHOD = 2,
+ IDE_LSP_COMPLETION_FUNCTION = 3,
+ IDE_LSP_COMPLETION_CONSTRUCTOR = 4,
+ IDE_LSP_COMPLETION_FIELD = 5,
+ IDE_LSP_COMPLETION_VARIABLE = 6,
+ IDE_LSP_COMPLETION_CLASS = 7,
+ IDE_LSP_COMPLETION_INTERFACE = 8,
+ IDE_LSP_COMPLETION_MODULE = 9,
+ IDE_LSP_COMPLETION_PROPERTY = 10,
+ IDE_LSP_COMPLETION_UNIT = 11,
+ IDE_LSP_COMPLETION_VALUE = 12,
+ IDE_LSP_COMPLETION_ENUM = 13,
+ IDE_LSP_COMPLETION_KEYWORD = 14,
+ IDE_LSP_COMPLETION_SNIPPET = 15,
+ IDE_LSP_COMPLETION_COLOR = 16,
+ IDE_LSP_COMPLETION_FILE = 17,
+ IDE_LSP_COMPLETION_REFERENCE = 18,
+ IDE_LSP_COMPLETION_FOLDER = 19,
+ IDE_LSP_COMPLETION_ENUM_MEMBER = 20,
+ IDE_LSP_COMPLETION_CONSTANT = 21,
+ IDE_LSP_COMPLETION_STRUCT = 22,
+ IDE_LSP_COMPLETION_EVENT = 23,
+ IDE_LSP_COMPLETION_OPERATOR = 24,
+ IDE_LSP_COMPLETION_TYPE_PARAMETER = 25,
+} IdeLspCompletionKind;
+
+G_END_DECLS
diff --git a/src/libide/langserv/meson.build b/src/libide/langserv/meson.build
index 215be1f1f..bc765159b 100644
--- a/src/libide/langserv/meson.build
+++ b/src/libide/langserv/meson.build
@@ -9,6 +9,7 @@ langserv_headers = [
'ide-langserv-symbol-resolver.h',
'ide-langserv-symbol-tree.h',
'ide-langserv-util.h',
+ 'ide-langserv-types.h',
]
langserv_sources = [
@@ -26,6 +27,11 @@ langserv_sources = [
'ide-langserv-util.c',
]
+langserv_enums = [
+ 'ide-langserv-types.h',
+]
+
+libide_enum_headers += files(langserv_headers)
libide_public_headers += files(langserv_headers)
libide_public_sources += files(langserv_sources)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]