@@ -405,7 +405,8 @@ fragment directFieldSelectionOnUnion on CatOrDog {
405
405
* Let {set} be any selection set defined in the GraphQL document.
406
406
* {FieldsInSetCanMerge(set)} must be true.
407
407
408
- FieldsInSetCanMerge(set) :
408
+ FieldsInSetCanMerge(set):
409
+
409
410
* Let {fieldsForName} be the set of selections with a given response name in
410
411
{set} including visiting fragments and inline fragments.
411
412
* Given each pair of members {fieldA} and {fieldB} in {fieldsForName}:
@@ -418,7 +419,8 @@ FieldsInSetCanMerge(set) :
418
419
and the selection set of {fieldB}.
419
420
* {FieldsInSetCanMerge(mergedSet)} must be true.
420
421
421
- SameResponseShape(fieldA, fieldB) :
422
+ SameResponseShape(fieldA, fieldB):
423
+
422
424
* Let {typeA} be the return type of {fieldA}.
423
425
* Let {typeB} be the return type of {fieldB}.
424
426
* If {typeA} or {typeB} is Non-Null.
@@ -998,15 +1000,16 @@ not defined.
998
1000
999
1001
* For each {fragmentDefinition} in the document
1000
1002
* Let {visited} be the empty set.
1001
- * {DetectCycles(fragmentDefinition, visited)}
1003
+ * {DetectFragmentCycles(fragmentDefinition, visited)}
1004
+
1005
+ DetectFragmentCycles(fragmentDefinition, visited):
1002
1006
1003
- {DetectCycles(fragmentDefinition, visited)} :
1004
1007
* Let {spreads} be all fragment spread descendants of {fragmentDefinition}
1005
1008
* For each {spread} in {spreads}
1006
1009
* {visited} must not contain {spread}
1007
1010
* Let {nextVisited} be the set including {spread} and members of {visited}
1008
1011
* Let {nextFragmentDefinition} be the target of {spread}
1009
- * {DetectCycles (nextFragmentDefinition, nextVisited)}
1012
+ * {DetectFragmentCycles (nextFragmentDefinition, nextVisited)}
1010
1013
1011
1014
** Explanatory Text**
1012
1015
@@ -1089,7 +1092,8 @@ fragment ownerFragment on Human {
1089
1092
{GetPossibleTypes(fragmentType)} and {GetPossibleTypes(parentType)}
1090
1093
* {applicableTypes} must not be empty.
1091
1094
1092
- GetPossibleTypes(type) :
1095
+ GetPossibleTypes(type):
1096
+
1093
1097
* If {type} is an object type, return a set containing {type}
1094
1098
* If {type} is an interface type, return the set of types implementing {type}
1095
1099
* If {type} is a union type, return the set of possible types of {type}
@@ -1835,6 +1839,7 @@ an extraneous variable.
1835
1839
* {IsVariableUsageAllowed(variableDefinition, variableUsage)} must be {true}.
1836
1840
1837
1841
IsVariableUsageAllowed(variableDefinition, variableUsage):
1842
+
1838
1843
* Let {variableType} be the expected type of {variableDefinition}.
1839
1844
* Let {locationType} be the expected type of the {Argument}, {ObjectField},
1840
1845
or {ListValue} entry where {variableUsage} is located.
@@ -1850,6 +1855,7 @@ IsVariableUsageAllowed(variableDefinition, variableUsage):
1850
1855
* Return {AreTypesCompatible(variableType, locationType)}.
1851
1856
1852
1857
AreTypesCompatible(variableType, locationType):
1858
+
1853
1859
* If {locationType} is a non-null type:
1854
1860
* If {variableType} is NOT a non-null type, return {false}.
1855
1861
* Let {nullableLocationType} be the unwrapped nullable type of {locationType}.
0 commit comments