Skip to content

Commit eb86955

Browse files
committed
Correct the documentation about Child
1 parent 6583760 commit eb86955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Syntax/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ following fields:
502502

503503
| Key | Type | Description |
504504
| --- | ---- | ----------- |
505-
| `kind` | `String` | The `SyntaxKind` of this child. This must have a corresponding `Node` with that kind. |
505+
| `kind` | `String` | The `SyntaxKind` of this child. This must have a corresponding `Node` with that kind (or corresponding `Token` in both `include/swift/Syntax/TokenKinds.def` and `SYNTAX_TOKENS`). |
506506
| `is_optional` | `Bool?` | Whether this child is required in a fully-formed object, or if it is allowed to remain `missing`. Defaults to `false` if not present.
507507
| `token_choices` | `[String]?` | A list of `Token`s which are considered "valid" values for `Token` children. |
508508
| `text_choices` | `[String]?` | A list of valid textual values for tokens. If this is not provided, any textual value is accepted for tokens like `IdentifierToken`. |

0 commit comments

Comments
 (0)