File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
crates/ra_syntax/src/ast/generated Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,6 @@ pub struct TupleField {
422
422
pub ( crate ) syntax : SyntaxNode ,
423
423
}
424
424
impl ast:: AttrsOwner for TupleField { }
425
- impl ast:: NameOwner for TupleField { }
426
425
impl ast:: VisibilityOwner for TupleField { }
427
426
impl TupleField {
428
427
pub fn type_ref ( & self ) -> Option < TypeRef > { support:: child ( & self . syntax ) }
Original file line number Diff line number Diff line change @@ -83,22 +83,21 @@ StructDef =
83
83
)
84
84
85
85
RecordFieldList =
86
- '{' fields:RecordField* '}'
86
+ '{' fields:( RecordField (',' RecordField)* ','?)? '}'
87
87
88
88
RecordField =
89
89
Attr* Visibility? Name ':' ascribed_type:TypeRef
90
90
91
91
TupleFieldList =
92
- '(' fields:TupleField* ')'
92
+ '(' fields:( TupleField (',' TupleField)* ','?)? ')'
93
93
94
94
TupleField =
95
- Attr* Visibility? Name TypeRef
95
+ Attr* Visibility? TypeRef
96
96
97
97
FieldList =
98
98
RecordFieldList
99
99
| TupleFieldList
100
100
101
-
102
101
UnionDef =
103
102
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
104
103
RecordFieldList
You can’t perform that action at this time.
0 commit comments