@@ -24,7 +24,7 @@ typedef void *swiftide_api_connection_t;
24
24
/// may be more expensive to compute.
25
25
typedef void * swiftide_api_completion_item_t ;
26
26
27
- enum swiftide_api_completion_kind_t : uint32_t {
27
+ typedef enum swiftide_api_completion_kind_t : uint32_t {
28
28
SWIFTIDE_COMPLETION_KIND_NONE = 0 ,
29
29
SWIFTIDE_COMPLETION_KIND_IMPORT = 1 ,
30
30
SWIFTIDE_COMPLETION_KIND_UNRESOLVEDMEMBER = 2 ,
@@ -69,17 +69,17 @@ enum swiftide_api_completion_kind_t: uint32_t {
69
69
SWIFTIDE_COMPLETION_KIND_TYPESIMPLEORCOMPOSITION = 41 ,
70
70
SWIFTIDE_COMPLETION_KIND_TYPEPOSSIBLEFUNCTIONPARAMBEGINNING = 42 ,
71
71
SWIFTIDE_COMPLETION_KIND_TYPEATTRINHERITANCEBEGINNING = 43 ,
72
- };
72
+ } swiftide_api_completion_kind_t ;
73
73
74
- enum swiftide_api_completion_item_kind_t : uint32_t {
74
+ typedef enum swiftide_api_completion_item_kind_t : uint32_t {
75
75
SWIFTIDE_COMPLETION_ITEM_KIND_DECLARATION = 0 ,
76
76
SWIFTIDE_COMPLETION_ITEM_KIND_KEYWORD = 1 ,
77
77
SWIFTIDE_COMPLETION_ITEM_KIND_PATTERN = 2 ,
78
78
SWIFTIDE_COMPLETION_ITEM_KIND_LITERAL = 3 ,
79
79
SWIFTIDE_COMPLETION_ITEM_KIND_BUILTINOPERATOR = 4 ,
80
- };
80
+ } swiftide_api_completion_item_kind_t ;
81
81
82
- enum swiftide_api_completion_item_decl_kind_t : uint32_t {
82
+ typedef enum swiftide_api_completion_item_decl_kind_t : uint32_t {
83
83
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MODULE = 0 ,
84
84
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_CLASS = 1 ,
85
85
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_STRUCT = 2 ,
@@ -105,18 +105,18 @@ enum swiftide_api_completion_item_decl_kind_t: uint32_t {
105
105
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_PRECEDENCEGROUP = 22 ,
106
106
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_ACTOR = 23 ,
107
107
SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MACRO = 24 ,
108
- };
108
+ } swiftide_api_completion_item_decl_kind_t ;
109
109
110
- enum swiftide_api_completion_type_relation_t : uint32_t {
110
+ typedef enum swiftide_api_completion_type_relation_t : uint32_t {
111
111
SWIFTIDE_COMPLETION_TYPE_RELATION_NOTAPPLICABLE = 0 ,
112
112
SWIFTIDE_COMPLETION_TYPE_RELATION_UNKNOWN = 1 ,
113
113
SWIFTIDE_COMPLETION_TYPE_RELATION_UNRELATED = 2 ,
114
114
SWIFTIDE_COMPLETION_TYPE_RELATION_INVALID = 3 ,
115
115
SWIFTIDE_COMPLETION_TYPE_RELATION_CONVERTIBLE = 4 ,
116
116
SWIFTIDE_COMPLETION_TYPE_RELATION_IDENTICAL = 5 ,
117
- };
117
+ } swiftide_api_completion_type_relation_t ;
118
118
119
- enum swiftide_api_completion_semantic_context_t : uint32_t {
119
+ typedef enum swiftide_api_completion_semantic_context_t : uint32_t {
120
120
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_NONE = 0 ,
121
121
/* obsoleted */ SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_EXPRESSIONSPECIFIC = 1 ,
122
122
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_LOCAL = 2 ,
@@ -125,19 +125,19 @@ enum swiftide_api_completion_semantic_context_t: uint32_t {
125
125
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_OUTSIDENOMINAL = 5 ,
126
126
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_CURRENTMODULE = 6 ,
127
127
SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_OTHERMODULE = 7 ,
128
- };
128
+ } swiftide_api_completion_semantic_context_t ;
129
129
130
- enum swiftide_api_completion_flair_t : uint32_t {
130
+ typedef enum swiftide_api_completion_flair_t : uint32_t {
131
131
SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONSPECIFIC = 1 << 0 ,
132
132
SWIFTIDE_COMPLETION_FLAIR_SUPERCHAIN = 1 << 1 ,
133
133
SWIFTIDE_COMPLETION_FLAIR_ARGUMENTLABELS = 1 << 2 ,
134
134
SWIFTIDE_COMPLETION_FLAIR_COMMONKEYWORDATCURRENTPOSITION = 1 << 3 ,
135
135
SWIFTIDE_COMPLETION_FLAIR_RAREKEYWORDATCURRENTPOSITION = 1 << 4 ,
136
136
SWIFTIDE_COMPLETION_FLAIR_RARETYPEATCURRENTPOSITION = 1 << 5 ,
137
137
SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONATNONSCRIPTORMAINFILESCOPE = 1 << 6 ,
138
- };
138
+ } swiftide_api_completion_flair_t ;
139
139
140
- enum swiftide_api_completion_not_recommended_reason_t : uint32_t {
140
+ typedef enum swiftide_api_completion_not_recommended_reason_t : uint32_t {
141
141
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_NONE = 0 ,
142
142
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_REDUNDANT_IMPORT = 1 ,
143
143
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_DEPRECATED = 2 ,
@@ -147,15 +147,15 @@ enum swiftide_api_completion_not_recommended_reason_t: uint32_t {
147
147
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_REDUNDANT_IMPORT_INDIRECT = 6 ,
148
148
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_SOFTDEPRECATED = 7 ,
149
149
SWIFTIDE_COMPLETION_NOT_RECOMMENDED_NON_ASYNC_ALTERNATIVE_USED_IN_ASYNC_CONTEXT = 8 ,
150
- };
150
+ } swiftide_api_completion_not_recommended_reason_t ;
151
151
152
- enum swiftide_api_completion_diagnostic_severity_t : uint32_t {
152
+ typedef enum swiftide_api_completion_diagnostic_severity_t : uint32_t {
153
153
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_NONE = 0 ,
154
154
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_ERROR = 1 ,
155
155
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_WARNING = 2 ,
156
156
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_REMARK = 3 ,
157
157
SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_NOTE = 4 ,
158
- };
158
+ } swiftide_api_completion_diagnostic_severity_t ;
159
159
160
160
typedef void * swiftide_api_completion_request_t ;
161
161
@@ -278,7 +278,7 @@ typedef struct {
278
278
uint64_t index
279
279
);
280
280
281
- enum swiftide_api_completion_kind_t (* _Nonnull completion_result_get_kind )(
281
+ swiftide_api_completion_kind_t (* _Nonnull completion_result_get_kind )(
282
282
_Null_unspecified swiftide_api_completion_response_t
283
283
);
284
284
@@ -361,7 +361,7 @@ typedef struct {
361
361
void (* _Nonnull completion_item_get_diagnostic )(
362
362
_Null_unspecified swiftide_api_completion_response_t ,
363
363
_Null_unspecified swiftide_api_completion_item_t ,
364
- void (^_Null_unspecified handler )(enum swiftide_api_completion_diagnostic_severity_t , const char * _Null_unspecified )
364
+ void (^_Null_unspecified handler )(swiftide_api_completion_diagnostic_severity_t , const char * _Null_unspecified )
365
365
);
366
366
367
367
bool (* _Nonnull completion_item_is_system )(
0 commit comments