You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Syntax/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -502,7 +502,7 @@ following fields:
502
502
503
503
| Key | Type | Description |
504
504
| --- | ---- | ----------- |
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`). |
506
506
| `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.
507
507
|`token_choices`|`[String]?`| A list of `Token`s which are considered "valid" values for `Token` children. |
508
508
|`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