Skip to content

Commit f7b7d90

Browse files
RexJaeschkeBillWagner
authored andcommitted
Apply suggestions from code review
1 parent 8421309 commit f7b7d90

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

standard/classes.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A *class_declaration* is a *type_declaration* ([§14.7](namespaces.md#147-type-d
1515
```ANTLR
1616
class_declaration
1717
: attributes? class_modifier* 'partial'? class_tag identifier
18-
type_parameter_list? parameter_list? class_base?
18+
type_parameter_list? delimited_parameter_list? class_base?
1919
type_parameter_constraints_clause* class_body
2020
;
2121
@@ -25,7 +25,7 @@ class_tag
2525
;
2626
```
2727

28-
A *class_declaration* consists of an optional set of *attributes* ([§23](attributes.md#23-attributes)), followed by an optional set of *class_modifier*s ([§15.2.2](classes.md#1522-class-modifiers)), followed by an optional `partial` modifier ([§15.2.7](classes.md#1527-partial-type-declarations)), followed by a *class_tag* and an *identifier* that names the class, followed by an optional *type_parameter_list* ([§15.2.3](classes.md#1523-type-parameters)), followed by an optional *parameter_list* ([§15.6.2.1]( classes.md#15621-general)), followed by an optional *class_base* specification ([§15.2.4](classes.md#1524-class-base-specification)), followed by an optional set of *type_parameter_constraints_clause*s ([§15.2.5](classes.md#1525-type-parameter-constraints)), followed by a *class_body* ([§15.2.6](classes.md#1526-class-body)), optionally followed by a semicolon.
28+
A *class_declaration* consists of an optional set of *attributes* ([§23](attributes.md#23-attributes)), followed by an optional set of *class_modifier*s ([§15.2.2](classes.md#1522-class-modifiers)), followed by an optional `partial` modifier ([§15.2.7](classes.md#1527-partial-type-declarations)), followed by a *class_tag* and an *identifier* that names the class, followed by an optional *type_parameter_list* ([§15.2.3](classes.md#1523-type-parameters)), followed by an optional *delimited_parameter_list* ([§15.6.2.1]( classes.md#15621-general)), followed by an optional *class_base* specification ([§15.2.4](classes.md#1524-class-base-specification)), followed by an optional set of *type_parameter_constraints_clause*s ([§15.2.5](classes.md#1525-type-parameter-constraints)), followed by a *class_body* ([§15.2.6](classes.md#1526-class-body)), optionally followed by a semicolon.
2929

3030
A class declaration shall not supply *type_parameter_constraints_clause*s unless it also supplies a *type_parameter_list*.
3131

@@ -35,13 +35,13 @@ If *class_tag* contains `record`, that class is a ***record class***; otherwise,
3535

3636
For a record class, *class_modifier* shall not be `static`.
3737

38-
*parameter_list* shall not be present in a non-record class.
38+
*delimited_parameter_list* shall not be present in a non-record class.
3939

40-
A *class_declaration* having a *parameter_list* declares a ***positional record class***.
40+
A *class_declaration* having a *delimited_parameter_list* declares a ***positional record class***.
4141

42-
At most only one partial type declaration of a partial record class may provide a *parameter_list*.
42+
At most only one partial type declaration of a partial record class may provide a *delimited_parameter_list*.
4343

44-
Parameters in *parameter_list* shall not have `ref`, `out` or `this` modifiers; however, `in` and `params` modifiers are permitted.
44+
Parameters in *delimited_parameter_list* shall not have `ref`, `out` or `this` modifiers; however, `in` and `params` modifiers are permitted.
4545

4646
### 15.2.2 Class modifiers
4747

@@ -205,7 +205,7 @@ interface_type_list
205205

206206
A record class may not inherit from a non-record class other than `object`, and a non-record class may not inherit from a record class.
207207

208-
It is an error for *class_base* to have a *base_argument_list* if the corresponding *class_declaration* does not contain a *parameter_list*.
208+
It is an error for *class_base* to have a *base_argument_list* if the corresponding *class_declaration* does not contain a *delimited_parameter_list*.
209209

210210
#### 15.2.4.2 Base classes
211211

@@ -2234,11 +2234,11 @@ All parameters and type parameters shall have different names.
22342234
The parameters of a method, if any, are declared by the method’s *parameter_list*.
22352235

22362236
```ANTLR
2237-
parameter_list
2238-
: '(' formal_parameter_list? ')'
2237+
delimited_parameter_list
2238+
: '(' parameter_list? ')'
22392239
;
22402240
2241-
formal_parameter_list
2241+
parameter_list
22422242
: fixed_parameters
22432243
| fixed_parameters ',' parameter_array
22442244
| parameter_array

0 commit comments

Comments
 (0)