@@ -135,7 +135,7 @@ impl Convert for cst::OperationDefinition {
135
135
variables : collect_opt ( file_id, self . variable_definitions ( ) , |x| {
136
136
x. variable_definitions ( )
137
137
} ) ,
138
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
138
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
139
139
x. directives ( )
140
140
} ) ) ,
141
141
selection_set : self
@@ -154,7 +154,7 @@ impl Convert for cst::FragmentDefinition {
154
154
Some ( Self :: Target {
155
155
name : self . fragment_name ( ) ?. name ( ) ?. convert ( file_id) ?,
156
156
type_condition : self . type_condition ( ) ?. convert ( file_id) ?,
157
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
157
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
158
158
x. directives ( )
159
159
} ) ) ,
160
160
selection_set : self . selection_set ( ) . convert ( file_id) ??,
@@ -199,7 +199,7 @@ impl Convert for cst::SchemaDefinition {
199
199
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
200
200
Some ( Self :: Target {
201
201
description : self . description ( ) . convert ( file_id) ?,
202
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
202
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
203
203
x. directives ( )
204
204
} ) ) ,
205
205
// This may represent a syntactically invalid thing: a schema without any root
@@ -221,7 +221,7 @@ impl Convert for cst::ScalarTypeDefinition {
221
221
Some ( Self :: Target {
222
222
description : self . description ( ) . convert ( file_id) ?,
223
223
name : self . name ( ) ?. convert ( file_id) ?,
224
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
224
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
225
225
x. directives ( )
226
226
} ) ) ,
227
227
} )
@@ -236,7 +236,7 @@ impl Convert for cst::ObjectTypeDefinition {
236
236
description : self . description ( ) . convert ( file_id) ?,
237
237
name : self . name ( ) ?. convert ( file_id) ?,
238
238
implements_interfaces : self . implements_interfaces ( ) . convert ( file_id) ?,
239
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
239
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
240
240
x. directives ( )
241
241
} ) ) ,
242
242
fields : collect_opt ( file_id, self . fields_definition ( ) , |x| x. field_definitions ( ) ) ,
@@ -252,7 +252,7 @@ impl Convert for cst::InterfaceTypeDefinition {
252
252
description : self . description ( ) . convert ( file_id) ?,
253
253
name : self . name ( ) ?. convert ( file_id) ?,
254
254
implements_interfaces : self . implements_interfaces ( ) . convert ( file_id) ?,
255
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
255
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
256
256
x. directives ( )
257
257
} ) ) ,
258
258
fields : collect_opt ( file_id, self . fields_definition ( ) , |x| x. field_definitions ( ) ) ,
@@ -267,7 +267,7 @@ impl Convert for cst::UnionTypeDefinition {
267
267
Some ( Self :: Target {
268
268
description : self . description ( ) . convert ( file_id) ?,
269
269
name : self . name ( ) ?. convert ( file_id) ?,
270
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
270
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
271
271
x. directives ( )
272
272
} ) ) ,
273
273
members : self
@@ -289,7 +289,7 @@ impl Convert for cst::EnumTypeDefinition {
289
289
Some ( Self :: Target {
290
290
description : self . description ( ) . convert ( file_id) ?,
291
291
name : self . name ( ) ?. convert ( file_id) ?,
292
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
292
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
293
293
x. directives ( )
294
294
} ) ) ,
295
295
values : collect_opt ( file_id, self . enum_values_definition ( ) , |x| {
@@ -306,7 +306,7 @@ impl Convert for cst::InputObjectTypeDefinition {
306
306
Some ( Self :: Target {
307
307
description : self . description ( ) . convert ( file_id) ?,
308
308
name : self . name ( ) ?. convert ( file_id) ?,
309
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
309
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
310
310
x. directives ( )
311
311
} ) ) ,
312
312
fields : collect_opt ( file_id, self . input_fields_definition ( ) , |x| {
@@ -321,7 +321,7 @@ impl Convert for cst::SchemaExtension {
321
321
322
322
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
323
323
Some ( Self :: Target {
324
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
324
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
325
325
x. directives ( )
326
326
} ) ) ,
327
327
root_operations : self
@@ -338,7 +338,7 @@ impl Convert for cst::ScalarTypeExtension {
338
338
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
339
339
Some ( Self :: Target {
340
340
name : self . name ( ) ?. convert ( file_id) ?,
341
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
341
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
342
342
x. directives ( )
343
343
} ) ) ,
344
344
} )
@@ -352,7 +352,7 @@ impl Convert for cst::ObjectTypeExtension {
352
352
Some ( Self :: Target {
353
353
name : self . name ( ) ?. convert ( file_id) ?,
354
354
implements_interfaces : self . implements_interfaces ( ) . convert ( file_id) ?,
355
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
355
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
356
356
x. directives ( )
357
357
} ) ) ,
358
358
fields : collect_opt ( file_id, self . fields_definition ( ) , |x| x. field_definitions ( ) ) ,
@@ -367,7 +367,7 @@ impl Convert for cst::InterfaceTypeExtension {
367
367
Some ( Self :: Target {
368
368
name : self . name ( ) ?. convert ( file_id) ?,
369
369
implements_interfaces : self . implements_interfaces ( ) . convert ( file_id) ?,
370
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
370
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
371
371
x. directives ( )
372
372
} ) ) ,
373
373
fields : collect_opt ( file_id, self . fields_definition ( ) , |x| x. field_definitions ( ) ) ,
@@ -381,7 +381,7 @@ impl Convert for cst::UnionTypeExtension {
381
381
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
382
382
Some ( Self :: Target {
383
383
name : self . name ( ) ?. convert ( file_id) ?,
384
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
384
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
385
385
x. directives ( )
386
386
} ) ) ,
387
387
members : self
@@ -402,7 +402,7 @@ impl Convert for cst::EnumTypeExtension {
402
402
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
403
403
Some ( Self :: Target {
404
404
name : self . name ( ) ?. convert ( file_id) ?,
405
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
405
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
406
406
x. directives ( )
407
407
} ) ) ,
408
408
values : collect_opt ( file_id, self . enum_values_definition ( ) , |x| {
@@ -418,7 +418,7 @@ impl Convert for cst::InputObjectTypeExtension {
418
418
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
419
419
Some ( Self :: Target {
420
420
name : self . name ( ) ?. convert ( file_id) ?,
421
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
421
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
422
422
x. directives ( )
423
423
} ) ) ,
424
424
fields : collect_opt ( file_id, self . input_fields_definition ( ) , |x| {
@@ -538,7 +538,7 @@ impl Convert for cst::VariableDefinition {
538
538
name : self . variable ( ) ?. name ( ) ?. convert ( file_id) ?,
539
539
ty : with_location ( file_id, ty. syntax ( ) , ty. convert ( file_id) ?) ,
540
540
default_value,
541
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
541
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
542
542
x. directives ( )
543
543
} ) ) ,
544
544
} )
@@ -578,7 +578,7 @@ impl Convert for cst::FieldDefinition {
578
578
x. input_value_definitions ( )
579
579
} ) ,
580
580
ty : self . ty ( ) ?. convert ( file_id) ?,
581
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
581
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
582
582
x. directives ( )
583
583
} ) ) ,
584
584
} )
@@ -616,7 +616,7 @@ impl Convert for cst::InputValueDefinition {
616
616
name : self . name ( ) ?. convert ( file_id) ?,
617
617
ty : with_location ( file_id, ty. syntax ( ) , ty. convert ( file_id) ?) ,
618
618
default_value,
619
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
619
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
620
620
x. directives ( )
621
621
} ) ) ,
622
622
} )
@@ -630,7 +630,7 @@ impl Convert for cst::EnumValueDefinition {
630
630
Some ( Self :: Target {
631
631
description : self . description ( ) . convert ( file_id) ?,
632
632
value : self . enum_value ( ) ?. name ( ) ?. convert ( file_id) ?,
633
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
633
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
634
634
x. directives ( )
635
635
} ) ) ,
636
636
} )
@@ -682,7 +682,7 @@ impl Convert for cst::Field {
682
682
alias : self . alias ( ) . convert ( file_id) ?,
683
683
name : self . name ( ) ?. convert ( file_id) ?,
684
684
arguments : collect_opt ( file_id, self . arguments ( ) , |x| x. arguments ( ) ) ,
685
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
685
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
686
686
x. directives ( )
687
687
} ) ) ,
688
688
// Use an empty Vec for a field without sub-selections
@@ -697,7 +697,7 @@ impl Convert for cst::FragmentSpread {
697
697
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
698
698
Some ( Self :: Target {
699
699
fragment_name : self . fragment_name ( ) ?. name ( ) ?. convert ( file_id) ?,
700
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
700
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
701
701
x. directives ( )
702
702
} ) ) ,
703
703
} )
@@ -710,7 +710,7 @@ impl Convert for cst::InlineFragment {
710
710
fn convert ( & self , file_id : FileId ) -> Option < Self :: Target > {
711
711
Some ( Self :: Target {
712
712
type_condition : self . type_condition ( ) . convert ( file_id) ?,
713
- directives : ast:: Directives ( collect_opt ( file_id, self . directives ( ) , |x| {
713
+ directives : ast:: DirectiveList ( collect_opt ( file_id, self . directives ( ) , |x| {
714
714
x. directives ( )
715
715
} ) ) ,
716
716
selection_set : self . selection_set ( ) . convert ( file_id) ??,
0 commit comments