@@ -24,7 +24,7 @@ typedef void *swiftide_api_connection_t;
2424/// may be more expensive to compute.
2525typedef void * swiftide_api_completion_item_t ;
2626
27- enum swiftide_api_completion_kind_t : uint32_t {
27+ typedef enum swiftide_api_completion_kind_t : uint32_t {
2828 SWIFTIDE_COMPLETION_KIND_NONE = 0 ,
2929 SWIFTIDE_COMPLETION_KIND_IMPORT = 1 ,
3030 SWIFTIDE_COMPLETION_KIND_UNRESOLVEDMEMBER = 2 ,
@@ -69,17 +69,17 @@ enum swiftide_api_completion_kind_t: uint32_t {
6969 SWIFTIDE_COMPLETION_KIND_TYPESIMPLEORCOMPOSITION = 41 ,
7070 SWIFTIDE_COMPLETION_KIND_TYPEPOSSIBLEFUNCTIONPARAMBEGINNING = 42 ,
7171 SWIFTIDE_COMPLETION_KIND_TYPEATTRINHERITANCEBEGINNING = 43 ,
72- };
72+ } swiftide_api_completion_kind_t ;
7373
74- enum swiftide_api_completion_item_kind_t : uint32_t {
74+ typedef enum swiftide_api_completion_item_kind_t : uint32_t {
7575 SWIFTIDE_COMPLETION_ITEM_KIND_DECLARATION = 0 ,
7676 SWIFTIDE_COMPLETION_ITEM_KIND_KEYWORD = 1 ,
7777 SWIFTIDE_COMPLETION_ITEM_KIND_PATTERN = 2 ,
7878 SWIFTIDE_COMPLETION_ITEM_KIND_LITERAL = 3 ,
7979 SWIFTIDE_COMPLETION_ITEM_KIND_BUILTINOPERATOR = 4 ,
80- };
80+ } swiftide_api_completion_item_kind_t ;
8181
82- enum swiftide_api_completion_item_decl_kind_t : uint32_t {
82+ typedef enum swiftide_api_completion_item_decl_kind_t : uint32_t {
8383 SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MODULE = 0 ,
8484 SWIFTIDE_COMPLETION_ITEM_DECL_KIND_CLASS = 1 ,
8585 SWIFTIDE_COMPLETION_ITEM_DECL_KIND_STRUCT = 2 ,
@@ -105,18 +105,18 @@ enum swiftide_api_completion_item_decl_kind_t: uint32_t {
105105 SWIFTIDE_COMPLETION_ITEM_DECL_KIND_PRECEDENCEGROUP = 22 ,
106106 SWIFTIDE_COMPLETION_ITEM_DECL_KIND_ACTOR = 23 ,
107107 SWIFTIDE_COMPLETION_ITEM_DECL_KIND_MACRO = 24 ,
108- };
108+ } swiftide_api_completion_item_decl_kind_t ;
109109
110- enum swiftide_api_completion_type_relation_t : uint32_t {
110+ typedef enum swiftide_api_completion_type_relation_t : uint32_t {
111111 SWIFTIDE_COMPLETION_TYPE_RELATION_NOTAPPLICABLE = 0 ,
112112 SWIFTIDE_COMPLETION_TYPE_RELATION_UNKNOWN = 1 ,
113113 SWIFTIDE_COMPLETION_TYPE_RELATION_UNRELATED = 2 ,
114114 SWIFTIDE_COMPLETION_TYPE_RELATION_INVALID = 3 ,
115115 SWIFTIDE_COMPLETION_TYPE_RELATION_CONVERTIBLE = 4 ,
116116 SWIFTIDE_COMPLETION_TYPE_RELATION_IDENTICAL = 5 ,
117- };
117+ } swiftide_api_completion_type_relation_t ;
118118
119- enum swiftide_api_completion_semantic_context_t : uint32_t {
119+ typedef enum swiftide_api_completion_semantic_context_t : uint32_t {
120120 SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_NONE = 0 ,
121121 /* obsoleted */ SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_EXPRESSIONSPECIFIC = 1 ,
122122 SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_LOCAL = 2 ,
@@ -125,19 +125,19 @@ enum swiftide_api_completion_semantic_context_t: uint32_t {
125125 SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_OUTSIDENOMINAL = 5 ,
126126 SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_CURRENTMODULE = 6 ,
127127 SWIFTIDE_COMPLETION_SEMANTIC_CONTEXT_OTHERMODULE = 7 ,
128- };
128+ } swiftide_api_completion_semantic_context_t ;
129129
130- enum swiftide_api_completion_flair_t : uint32_t {
130+ typedef enum swiftide_api_completion_flair_t : uint32_t {
131131 SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONSPECIFIC = 1 << 0 ,
132132 SWIFTIDE_COMPLETION_FLAIR_SUPERCHAIN = 1 << 1 ,
133133 SWIFTIDE_COMPLETION_FLAIR_ARGUMENTLABELS = 1 << 2 ,
134134 SWIFTIDE_COMPLETION_FLAIR_COMMONKEYWORDATCURRENTPOSITION = 1 << 3 ,
135135 SWIFTIDE_COMPLETION_FLAIR_RAREKEYWORDATCURRENTPOSITION = 1 << 4 ,
136136 SWIFTIDE_COMPLETION_FLAIR_RARETYPEATCURRENTPOSITION = 1 << 5 ,
137137 SWIFTIDE_COMPLETION_FLAIR_EXPRESSIONATNONSCRIPTORMAINFILESCOPE = 1 << 6 ,
138- };
138+ } swiftide_api_completion_flair_t ;
139139
140- enum swiftide_api_completion_not_recommended_reason_t : uint32_t {
140+ typedef enum swiftide_api_completion_not_recommended_reason_t : uint32_t {
141141 SWIFTIDE_COMPLETION_NOT_RECOMMENDED_NONE = 0 ,
142142 SWIFTIDE_COMPLETION_NOT_RECOMMENDED_REDUNDANT_IMPORT = 1 ,
143143 SWIFTIDE_COMPLETION_NOT_RECOMMENDED_DEPRECATED = 2 ,
@@ -147,15 +147,15 @@ enum swiftide_api_completion_not_recommended_reason_t: uint32_t {
147147 SWIFTIDE_COMPLETION_NOT_RECOMMENDED_REDUNDANT_IMPORT_INDIRECT = 6 ,
148148 SWIFTIDE_COMPLETION_NOT_RECOMMENDED_SOFTDEPRECATED = 7 ,
149149 SWIFTIDE_COMPLETION_NOT_RECOMMENDED_NON_ASYNC_ALTERNATIVE_USED_IN_ASYNC_CONTEXT = 8 ,
150- };
150+ } swiftide_api_completion_not_recommended_reason_t ;
151151
152- enum swiftide_api_completion_diagnostic_severity_t : uint32_t {
152+ typedef enum swiftide_api_completion_diagnostic_severity_t : uint32_t {
153153 SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_NONE = 0 ,
154154 SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_ERROR = 1 ,
155155 SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_WARNING = 2 ,
156156 SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_REMARK = 3 ,
157157 SWIFTIDE_COMPLETION_DIAGNOSTIC_SEVERITY_NOTE = 4 ,
158- };
158+ } swiftide_api_completion_diagnostic_severity_t ;
159159
160160typedef void * swiftide_api_completion_request_t ;
161161
@@ -278,7 +278,7 @@ typedef struct {
278278 uint64_t index
279279 );
280280
281- enum swiftide_api_completion_kind_t (* _Nonnull completion_result_get_kind )(
281+ swiftide_api_completion_kind_t (* _Nonnull completion_result_get_kind )(
282282 _Null_unspecified swiftide_api_completion_response_t
283283 );
284284
@@ -361,7 +361,7 @@ typedef struct {
361361 void (* _Nonnull completion_item_get_diagnostic )(
362362 _Null_unspecified swiftide_api_completion_response_t ,
363363 _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 )
365365 );
366366
367367 bool (* _Nonnull completion_item_is_system )(
0 commit comments