@@ -74,7 +74,7 @@ typedef void *swiftide_connection_t;
74
74
/// may be more expensive to compute.
75
75
typedef void * swiftide_completion_item_t ;
76
76
77
- typedef enum {
77
+ typedef enum swiftide_completion_kind_t : uint32_t {
78
78
SWIFTIDE_COMPLETION_KIND_NONE = 0 ,
79
79
SWIFTIDE_COMPLETION_KIND_IMPORT = 1 ,
80
80
SWIFTIDE_COMPLETION_KIND_UNRESOLVEDMEMBER = 2 ,
@@ -122,15 +122,15 @@ typedef enum {
122
122
SWIFTIDE_COMPLETION_KIND_TYPESIMPLEINVERTED = 44 ,
123
123
} swiftide_completion_kind_t ;
124
124
125
- typedef enum {
125
+ typedef enum swiftide_completion_item_kind_t : uint32_t {
126
126
SWIFTIDE_COMPLETION_ITEM_KIND_DECLARATION = 0 ,
127
127
SWIFTIDE_COMPLETION_ITEM_KIND_KEYWORD = 1 ,
128
128
SWIFTIDE_COMPLETION_ITEM_KIND_PATTERN = 2 ,
129
129
SWIFTIDE_COMPLETION_ITEM_KIND_LITERAL = 3 ,
130
130
SWIFTIDE_COMPLETION_ITEM_KIND_BUILTINOPERATOR = 4 ,
131
131
} swiftide_completion_item_kind_t ;
132
132
133
- typedef enum {
133
+ typedef enum swiftide_completion_item_decl_kind_t : uint32_t {
134
134
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MODULE = 0 ,
135
135
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_CLASS = 1 ,
136
136
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_STRUCT = 2 ,
@@ -158,7 +158,7 @@ typedef enum {
158
158
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MACRO = 24 ,
159
159
} swiftide_completion_item_decl_kind_t ;
160
160
161
- typedef enum {
161
+ typedef enum swiftide_completion_type_relation_t : uint32_t {
162
162
SWIFTIDE_COMPLETION_TYPE_RELATION_NOTAPPLICABLE = 0 ,
163
163
SWIFTIDE_COMPLETION_TYPE_RELATION_UNKNOWN = 1 ,
164
164
SWIFTIDE_COMPLETION_TYPE_RELATION_UNRELATED = 2 ,
@@ -167,7 +167,7 @@ typedef enum {
167
167
SWIFTIDE_COMPLETION_TYPE_RELATION_IDENTICAL = 5 ,
168
168
} swiftide_completion_type_relation_t ;
169
169
170
- typedef enum {
170
+ typedef enum swiftide_completion_semantic_context_t : uint32_t {
171
171
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_NONE = 0 ,
172
172
/* obsoleted */ SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_EXPRESSIONSPECIFIC = 1 ,
173
173
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_LOCAL = 2 ,
@@ -178,7 +178,7 @@ typedef enum {
178
178
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_OTHERMODULE = 7 ,
179
179
} swiftide_completion_semantic_context_t ;
180
180
181
- typedef enum {
181
+ typedef enum swiftide_completion_flair_t : uint32_t {
182
182
SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONSPECIFIC = 1 << 0 ,
183
183
SWIFTIDE_COMPLETION_FLAIR_SUPERCHAIN = 1 << 1 ,
184
184
SWIFTIDE_COMPLETION_FLAIR_ARGUMENTLABELS = 1 << 2 ,
@@ -188,7 +188,7 @@ typedef enum {
188
188
SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONATNONSCRIPTORMAINFILESCOPE = 1 << 6 ,
189
189
} swiftide_completion_flair_t ;
190
190
191
- typedef enum {
191
+ typedef enum swiftide_completion_not_recommended_reason_t : uint32_t {
192
192
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_NONE = 0 ,
193
193
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_REDUNDANT_IMPORT = 1 ,
194
194
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_DEPRECATED = 2 ,
@@ -201,7 +201,7 @@ typedef enum {
201
201
8 ,
202
202
} swiftide_completion_not_recommended_reason_t ;
203
203
204
- typedef enum {
204
+ typedef enum swiftide_completion_diagnostic_severity_t : uint32_t {
205
205
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_NONE = 0 ,
206
206
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_ERROR = 1 ,
207
207
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_WARNING = 2 ,
0 commit comments