@@ -127,9 +127,12 @@ fn description() {
127
127
r#"
128
128
"Some description with \u90AB symbol"
129
129
query SomeOperation(
130
- # "ID you should provide"
130
+ "ID you should provide and \u{90AB} symbol "
131
131
$id: String
132
- #"Switch for experiment ...."
132
+ """
133
+ Switch for experiment ....
134
+ Multiline
135
+ """
133
136
$enableBaz: Boolean = false
134
137
) {
135
138
foo(id: $id) {
@@ -152,7 +155,7 @@ fn description() {
152
155
vec![
153
156
ast:: Definition :: Operation ( Spanning :: start_end(
154
157
& SourcePosition :: new( 71 , 2 , 16 ) ,
155
- & SourcePosition :: new( 479 , 14 , 17 ) ,
158
+ & SourcePosition :: new( 567 , 17 , 17 ) ,
156
159
ast:: Operation {
157
160
operation_type: ast:: OperationType :: Query ,
158
161
name: Some ( Spanning :: start_end(
@@ -167,19 +170,26 @@ fn description() {
167
170
) ) ,
168
171
variable_definitions: Some ( Spanning :: start_end(
169
172
& SourcePosition :: new( 90 , 2 , 35 ) ,
170
- & SourcePosition :: new( 276 , 7 , 17 ) ,
173
+ & SourcePosition :: new( 364 , 10 , 17 ) ,
171
174
ast:: VariableDefinitions {
172
175
items: vec![
173
176
(
174
177
Spanning :: start_end(
175
- & SourcePosition :: new( 153 , 4 , 18 ) ,
176
- & SourcePosition :: new( 156 , 4 , 21 ) ,
178
+ & SourcePosition :: new( 172 , 4 , 18 ) ,
179
+ & SourcePosition :: new( 175 , 4 , 21 ) ,
177
180
"id" ,
178
181
) ,
179
182
ast:: VariableDefinition {
183
+ description: Some ( Spanning :: start_end(
184
+ & SourcePosition :: new( 110 , 3 , 18 ) ,
185
+ & SourcePosition :: new( 153 , 3 , 61 ) ,
186
+ Cow :: Owned (
187
+ "ID you should provide and \u{90AB} symbol" . into( ) ,
188
+ ) ,
189
+ ) ) ,
180
190
var_type: Spanning :: start_end(
181
- & SourcePosition :: new( 158 , 4 , 23 ) ,
182
- & SourcePosition :: new( 164 , 4 , 29 ) ,
191
+ & SourcePosition :: new( 177 , 4 , 23 ) ,
192
+ & SourcePosition :: new( 183 , 4 , 29 ) ,
183
193
ast:: Type :: nullable( "String" ) ,
184
194
) ,
185
195
default_value: None ,
@@ -188,19 +198,24 @@ fn description() {
188
198
) ,
189
199
(
190
200
Spanning :: start_end(
191
- & SourcePosition :: new( 231 , 6 , 18 ) ,
192
- & SourcePosition :: new( 241 , 6 , 28 ) ,
201
+ & SourcePosition :: new( 319 , 9 , 18 ) ,
202
+ & SourcePosition :: new( 329 , 9 , 28 ) ,
193
203
"enableBaz" ,
194
204
) ,
195
205
ast:: VariableDefinition {
206
+ description: Some ( Spanning :: start_end(
207
+ & SourcePosition :: new( 202 , 5 , 18 ) ,
208
+ & SourcePosition :: new( 300 , 8 , 21 ) ,
209
+ Cow :: Borrowed ( "Switch for experiment ....\n Multiline" ) ,
210
+ ) ) ,
196
211
var_type: Spanning :: start_end(
197
- & SourcePosition :: new( 243 , 6 , 30 ) ,
198
- & SourcePosition :: new( 250 , 6 , 37 ) ,
212
+ & SourcePosition :: new( 331 , 9 , 30 ) ,
213
+ & SourcePosition :: new( 338 , 9 , 37 ) ,
199
214
ast:: Type :: nullable( "Boolean" ) ,
200
215
) ,
201
216
default_value: Some ( Spanning :: start_end(
202
- & SourcePosition :: new( 253 , 6 , 40 ) ,
203
- & SourcePosition :: new( 258 , 6 , 45 ) ,
217
+ & SourcePosition :: new( 341 , 9 , 40 ) ,
218
+ & SourcePosition :: new( 346 , 9 , 45 ) ,
204
219
graphql:: input_value!( false ) ,
205
220
) ) ,
206
221
directives: None ,
@@ -211,28 +226,28 @@ fn description() {
211
226
) ) ,
212
227
directives: None ,
213
228
selection_set: vec![ ast:: Selection :: Field ( Spanning :: start_end(
214
- & SourcePosition :: new( 297 , 8 , 18 ) ,
215
- & SourcePosition :: new( 461 , 13 , 19 ) ,
229
+ & SourcePosition :: new( 385 , 11 , 18 ) ,
230
+ & SourcePosition :: new( 549 , 16 , 19 ) ,
216
231
ast:: Field {
217
232
alias: None ,
218
233
name: Spanning :: start_end(
219
- & SourcePosition :: new( 297 , 8 , 18 ) ,
220
- & SourcePosition :: new( 300 , 8 , 21 ) ,
234
+ & SourcePosition :: new( 385 , 11 , 18 ) ,
235
+ & SourcePosition :: new( 388 , 11 , 21 ) ,
221
236
"foo" ,
222
237
) ,
223
238
arguments: Some ( Spanning :: start_end(
224
- & SourcePosition :: new( 300 , 8 , 21 ) ,
225
- & SourcePosition :: new( 309 , 8 , 30 ) ,
239
+ & SourcePosition :: new( 388 , 11 , 21 ) ,
240
+ & SourcePosition :: new( 397 , 11 , 30 ) ,
226
241
ast:: Arguments {
227
242
items: vec![ (
228
243
Spanning :: start_end(
229
- & SourcePosition :: new( 301 , 8 , 22 ) ,
230
- & SourcePosition :: new( 303 , 8 , 24 ) ,
244
+ & SourcePosition :: new( 389 , 11 , 22 ) ,
245
+ & SourcePosition :: new( 391 , 11 , 24 ) ,
231
246
"id" ,
232
247
) ,
233
248
Spanning :: start_end(
234
- & SourcePosition :: new( 305 , 8 , 26 ) ,
235
- & SourcePosition :: new( 308 , 8 , 29 ) ,
249
+ & SourcePosition :: new( 393 , 11 , 26 ) ,
250
+ & SourcePosition :: new( 396 , 11 , 29 ) ,
236
251
graphql:: input_value!( @id) ,
237
252
) ,
238
253
) ] ,
@@ -241,13 +256,13 @@ fn description() {
241
256
directives: None ,
242
257
selection_set: Some ( vec![
243
258
ast:: Selection :: Field ( Spanning :: start_end(
244
- & SourcePosition :: new( 332 , 9 , 20 ) ,
245
- & SourcePosition :: new( 335 , 9 , 23 ) ,
259
+ & SourcePosition :: new( 420 , 12 , 20 ) ,
260
+ & SourcePosition :: new( 423 , 12 , 23 ) ,
246
261
ast:: Field {
247
262
alias: None ,
248
263
name: Spanning :: start_end(
249
- & SourcePosition :: new( 332 , 9 , 20 ) ,
250
- & SourcePosition :: new( 335 , 9 , 23 ) ,
264
+ & SourcePosition :: new( 420 , 12 , 20 ) ,
265
+ & SourcePosition :: new( 423 , 12 , 23 ) ,
251
266
"bar" ,
252
267
) ,
253
268
arguments: None ,
@@ -256,38 +271,38 @@ fn description() {
256
271
} ,
257
272
) ) ,
258
273
ast:: Selection :: Field ( Spanning :: start_end(
259
- & SourcePosition :: new( 356 , 10 , 20 ) ,
260
- & SourcePosition :: new( 441 , 12 , 21 ) ,
274
+ & SourcePosition :: new( 444 , 13 , 20 ) ,
275
+ & SourcePosition :: new( 529 , 15 , 21 ) ,
261
276
ast:: Field {
262
277
alias: None ,
263
278
name: Spanning :: start_end(
264
- & SourcePosition :: new( 356 , 10 , 20 ) ,
265
- & SourcePosition :: new( 359 , 10 , 23 ) ,
279
+ & SourcePosition :: new( 444 , 13 , 20 ) ,
280
+ & SourcePosition :: new( 447 , 13 , 23 ) ,
266
281
"baz" ,
267
282
) ,
268
283
arguments: None ,
269
284
directives: Some ( vec![ Spanning :: start_end(
270
- & SourcePosition :: new( 360 , 10 , 24 ) ,
271
- & SourcePosition :: new( 384 , 10 , 48 ) ,
285
+ & SourcePosition :: new( 448 , 13 , 24 ) ,
286
+ & SourcePosition :: new( 472 , 13 , 48 ) ,
272
287
ast:: Directive {
273
288
name: Spanning :: start_end(
274
- & SourcePosition :: new( 361 , 10 , 25 ) ,
275
- & SourcePosition :: new( 368 , 10 , 32 ) ,
289
+ & SourcePosition :: new( 449 , 13 , 25 ) ,
290
+ & SourcePosition :: new( 456 , 13 , 32 ) ,
276
291
"include" ,
277
292
) ,
278
293
arguments: Some ( Spanning :: start_end(
279
- & SourcePosition :: new( 368 , 10 , 32 ) ,
280
- & SourcePosition :: new( 384 , 10 , 48 ) ,
294
+ & SourcePosition :: new( 456 , 13 , 32 ) ,
295
+ & SourcePosition :: new( 472 , 13 , 48 ) ,
281
296
ast:: Arguments {
282
297
items: vec![ (
283
298
Spanning :: start_end(
284
- & SourcePosition :: new( 369 , 10 , 33 ) ,
285
- & SourcePosition :: new( 371 , 10 , 35 ) ,
299
+ & SourcePosition :: new( 457 , 13 , 33 ) ,
300
+ & SourcePosition :: new( 459 , 13 , 35 ) ,
286
301
"if" ,
287
302
) ,
288
303
Spanning :: start_end(
289
- & SourcePosition :: new( 373 , 10 , 37 ) ,
290
- & SourcePosition :: new( 383 , 10 , 47 ) ,
304
+ & SourcePosition :: new( 461 , 13 , 37 ) ,
305
+ & SourcePosition :: new( 471 , 13 , 47 ) ,
291
306
graphql:: input_value!( @enableBaz) ,
292
307
) ,
293
308
) ] ,
@@ -297,12 +312,12 @@ fn description() {
297
312
) ] ) ,
298
313
selection_set: Some ( vec![ ast:: Selection :: FragmentSpread (
299
314
Spanning :: start_end(
300
- & SourcePosition :: new( 409 , 11 , 22 ) ,
301
- & SourcePosition :: new( 419 , 11 , 32 ) ,
315
+ & SourcePosition :: new( 497 , 14 , 22 ) ,
316
+ & SourcePosition :: new( 507 , 14 , 32 ) ,
302
317
ast:: FragmentSpread {
303
318
name: Spanning :: start_end(
304
- & SourcePosition :: new( 412 , 11 , 25 ) ,
305
- & SourcePosition :: new( 419 , 11 , 32 ) ,
319
+ & SourcePosition :: new( 500 , 14 , 25 ) ,
320
+ & SourcePosition :: new( 507 , 14 , 32 ) ,
306
321
"BazInfo" ,
307
322
) ,
308
323
directives: None ,
@@ -317,33 +332,33 @@ fn description() {
317
332
} ,
318
333
) ) ,
319
334
ast:: Definition :: Fragment ( Spanning :: start_end(
320
- & SourcePosition :: new( 607 , 20 , 16 ) ,
321
- & SourcePosition :: new( 679 , 22 , 17 ) ,
335
+ & SourcePosition :: new( 695 , 23 , 16 ) ,
336
+ & SourcePosition :: new( 767 , 25 , 17 ) ,
322
337
ast:: Fragment {
323
338
name: Spanning :: start_end(
324
- & SourcePosition :: new( 616 , 20 , 25 ) ,
325
- & SourcePosition :: new( 623 , 20 , 32 ) ,
339
+ & SourcePosition :: new( 704 , 23 , 25 ) ,
340
+ & SourcePosition :: new( 711 , 23 , 32 ) ,
326
341
"BazInfo" ,
327
342
) ,
328
343
description: Some ( Spanning :: start_end(
329
- & SourcePosition :: new( 497 , 16 , 16 ) ,
330
- & SourcePosition :: new( 590 , 19 , 19 ) ,
344
+ & SourcePosition :: new( 585 , 19 , 16 ) ,
345
+ & SourcePosition :: new( 678 , 22 , 19 ) ,
331
346
Cow :: Borrowed ( "Some block description here\n Multiline" ) ,
332
347
) ) ,
333
348
type_condition: Spanning :: start_end(
334
- & SourcePosition :: new( 627 , 20 , 36 ) ,
335
- & SourcePosition :: new( 630 , 20 , 39 ) ,
349
+ & SourcePosition :: new( 715 , 23 , 36 ) ,
350
+ & SourcePosition :: new( 718 , 23 , 39 ) ,
336
351
"Baz" ,
337
352
) ,
338
353
directives: None ,
339
354
selection_set: vec![ ast:: Selection :: Field ( Spanning :: start_end(
340
- & SourcePosition :: new( 653 , 21 , 20 ) ,
341
- & SourcePosition :: new( 661 , 21 , 28 ) ,
355
+ & SourcePosition :: new( 741 , 24 , 20 ) ,
356
+ & SourcePosition :: new( 749 , 24 , 28 ) ,
342
357
ast:: Field {
343
358
alias: None ,
344
359
name: Spanning :: start_end(
345
- & SourcePosition :: new( 653 , 21 , 20 ) ,
346
- & SourcePosition :: new( 661 , 21 , 28 ) ,
360
+ & SourcePosition :: new( 741 , 24 , 20 ) ,
361
+ & SourcePosition :: new( 749 , 24 , 28 ) ,
347
362
"whatever" ,
348
363
) ,
349
364
arguments: None ,
0 commit comments