@@ -200,7 +200,6 @@ function findConflictsWithinSelectionSet(
200
200
conflicts ,
201
201
cachedFieldsAndFragmentNames ,
202
202
comparedFragmentPairs ,
203
- null ,
204
203
false ,
205
204
fieldMap ,
206
205
fragmentNames [ i ] ,
@@ -232,15 +231,10 @@ function collectConflictsBetweenFieldsAndFragment(
232
231
conflicts : Array < Conflict > ,
233
232
cachedFieldsAndFragmentNames : Map < SelectionSetNode , FieldsAndFragmentNames > ,
234
233
comparedFragmentPairs : PairSet ,
235
- comparedFragmentsForFields : null | Set < string > ,
236
234
areMutuallyExclusive : boolean ,
237
235
fieldMap : NodeAndDefCollection ,
238
236
fragmentName : string ,
239
237
) : void {
240
- if ( comparedFragmentsForFields ?. has ( fragmentName ) ) {
241
- return ;
242
- }
243
-
244
238
const fragment = context . getFragment ( fragmentName ) ;
245
239
if ( ! fragment ) {
246
240
return ;
@@ -272,15 +266,12 @@ function collectConflictsBetweenFieldsAndFragment(
272
266
273
267
// (E) Then collect any conflicts between the provided collection of fields
274
268
// and any fragment names found in the given fragment.
275
- const newComparedFragmentsForFields =
276
- comparedFragmentsForFields ?? new Set ( [ fragmentName ] ) ;
277
269
for ( const referencedFragmentName of referencedFragmentNames ) {
278
270
collectConflictsBetweenFieldsAndFragment (
279
271
context ,
280
272
conflicts ,
281
273
cachedFieldsAndFragmentNames ,
282
274
comparedFragmentPairs ,
283
- newComparedFragmentsForFields ,
284
275
areMutuallyExclusive ,
285
276
fieldMap ,
286
277
referencedFragmentName ,
@@ -423,7 +414,6 @@ function findConflictsBetweenSubSelectionSets(
423
414
conflicts ,
424
415
cachedFieldsAndFragmentNames ,
425
416
comparedFragmentPairs ,
426
- null ,
427
417
areMutuallyExclusive ,
428
418
fieldMap1 ,
429
419
fragmentName2 ,
@@ -438,7 +428,6 @@ function findConflictsBetweenSubSelectionSets(
438
428
conflicts ,
439
429
cachedFieldsAndFragmentNames ,
440
430
comparedFragmentPairs ,
441
- null ,
442
431
areMutuallyExclusive ,
443
432
fieldMap2 ,
444
433
fragmentName1 ,
0 commit comments