|
102 | 102 | # named-attribute-string-arg -> 'name': string-literal
|
103 | 103 | Node('NamedAttributeStringArgument', kind='Syntax',
|
104 | 104 | description='''
|
105 |
| - The argument for the `@_dynamic_replacement` or `@_private` attribute \ |
106 |
| - of the form `for: "function()"` or `sourceFile: "Src.swift"` |
| 105 | + The argument for the `@_dynamic_replacement` or `@_private` \ |
| 106 | + attribute of the form `for: "function()"` or `sourceFile: \ |
| 107 | + "Src.swift"` |
107 | 108 | ''',
|
108 | 109 | children=[
|
109 | 110 | Child('NameTok', kind='Token',
|
110 | 111 | description='The label of the argument'),
|
111 | 112 | Child('Colon', kind='ColonToken',
|
112 | 113 | description='The colon separating the label and the value'),
|
113 | 114 | Child('StringOrDeclname', kind='Syntax', node_choices=[
|
114 |
| - Child('String', kind='StringLiteralToken'), |
115 |
| - Child('Declname', kind='DeclName'), |
| 115 | + Child('String', kind='StringLiteralToken'), |
| 116 | + Child('Declname', kind='DeclName'), |
116 | 117 | ]),
|
117 | 118 | ]),
|
118 | 119 | Node('DeclName', kind='Syntax', children=[
|
119 |
| - Child('DeclBaseName', kind='Syntax', description=''' |
120 |
| - The base name of the protocol\'s requirement. |
121 |
| - ''', |
122 |
| - node_choices=[ |
123 |
| - Child('Identifier', kind='IdentifierToken'), |
124 |
| - Child('Operator', kind='PrefixOperatorToken'), |
125 |
| - ]), |
126 |
| - Child('DeclNameArguments', kind='DeclNameArguments', |
127 |
| - is_optional=True, description=''' |
128 |
| - The argument labels of the protocol\'s requirement if it \ |
129 |
| - is a function requirement. |
130 |
| - '''), |
131 |
| - ]), |
| 120 | + Child('DeclBaseName', kind='Syntax', description=''' |
| 121 | + The base name of the protocol\'s requirement. |
| 122 | + ''', |
| 123 | + node_choices=[ |
| 124 | + Child('Identifier', kind='IdentifierToken'), |
| 125 | + Child('Operator', kind='PrefixOperatorToken'), |
| 126 | + ]), |
| 127 | + Child('DeclNameArguments', kind='DeclNameArguments', |
| 128 | + is_optional=True, description=''' |
| 129 | + The argument labels of the protocol\'s requirement if it \ |
| 130 | + is a function requirement. |
| 131 | + '''), |
| 132 | + ]), |
132 | 133 | # The argument of '@_implements(...)'
|
133 | 134 | # implements-attr-arguments -> simple-type-identifier ','
|
134 | 135 | # (identifier | operator) decl-name-arguments
|
|
0 commit comments