Skip to content

Commit 12e26d8

Browse files
committed
Asterisks
1 parent dde1f7b commit 12e26d8

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

spec/Section 3 -- Type System.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,35 +1591,35 @@ Literal Value | Variables | Coerced Value
15911591

15921592
DetectInputObjectDefaultValueCycle(inputObject, defaultValue, visitedFields):
15931593

1594-
- If {defaultValue} is not provided, initialize it to an empty unordered map.
1595-
- If {visitedFields} is not provided, initialize it to the empty set.
1596-
- If {defaultValue} is a list:
1597-
- For each {itemValue} in {defaultValue}:
1598-
- {DetectInputObjectDefaultValueCycle(inputObject, itemValue, visitedFields)}.
1599-
- Otherwise:
1600-
- If {defaultValue} is not an unordered map:
1601-
- Return.
1602-
- For each field {field} in {inputObject}:
1603-
- {DetectInputFieldDefaultValueCycle(field, defaultValue, visitedFields)}.
1594+
* If {defaultValue} is not provided, initialize it to an empty unordered map.
1595+
* If {visitedFields} is not provided, initialize it to the empty set.
1596+
* If {defaultValue} is a list:
1597+
* For each {itemValue} in {defaultValue}:
1598+
* {DetectInputObjectDefaultValueCycle(inputObject, itemValue, visitedFields)}.
1599+
* Otherwise:
1600+
* If {defaultValue} is not an unordered map:
1601+
* Return.
1602+
* For each field {field} in {inputObject}:
1603+
* {DetectInputFieldDefaultValueCycle(field, defaultValue, visitedFields)}.
16041604

16051605
DetectInputFieldDefaultValueCycle(field, defaultValue, visitedFields):
16061606

1607-
- Assert: {defaultValue} is an unordered map.
1608-
- Let {fieldType} be the type of {field}.
1609-
- Let {namedFieldType} be the underlying named type of {fieldType}.
1610-
- If {namedFieldType} is not an input object type:
1611-
- Return.
1612-
- Let {fieldName} be the name of {field}.
1613-
- Let {fieldDefaultValue} be the value for {fieldName} in {defaultValue}.
1614-
- If {fieldDefaultValue} exists:
1615-
- {DetectInputObjectDefaultValueCycle(namedFieldType, fieldDefaultValue, visitedFields)}.
1616-
- Otherwise:
1617-
- Let {fieldDefaultValue} be the default value of {field}.
1618-
- If {fieldDefaultValue} does not exist:
1619-
- Return.
1620-
- {field} must not be within {visitedFields}.
1621-
- Add {field} to {visitedFields}.
1622-
- {DetectInputObjectDefaultValueCycle(namedFieldType, fieldDefaultValue, visitedFields)}.
1607+
* Assert: {defaultValue} is an unordered map.
1608+
* Let {fieldType} be the type of {field}.
1609+
* Let {namedFieldType} be the underlying named type of {fieldType}.
1610+
* If {namedFieldType} is not an input object type:
1611+
* Return.
1612+
* Let {fieldName} be the name of {field}.
1613+
* Let {fieldDefaultValue} be the value for {fieldName} in {defaultValue}.
1614+
* If {fieldDefaultValue} exists:
1615+
* {DetectInputObjectDefaultValueCycle(namedFieldType, fieldDefaultValue, visitedFields)}.
1616+
* Otherwise:
1617+
* Let {fieldDefaultValue} be the default value of {field}.
1618+
* If {fieldDefaultValue} does not exist:
1619+
* Return.
1620+
* {field} must not be within {visitedFields}.
1621+
* Add {field} to {visitedFields}.
1622+
* {DetectInputObjectDefaultValueCycle(namedFieldType, fieldDefaultValue, visitedFields)}.
16231623

16241624
### Input Object Extensions
16251625

0 commit comments

Comments
 (0)