diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 15:49:13 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 15:49:13 +0100 |
commit | 0a9e3ccc262fbcbd4cdaab30384f8cb71584544b (patch) | |
tree | c320545ea73f6231ab9a199f7c402f1b77d461a8 /xtask | |
parent | 6f8aa75329d0a4e588e58b8f22f7932bf3d3a706 (diff) |
Rename FieldDef -> Field
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/ast_src.rs | 8 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 26 |
2 files changed, 17 insertions, 17 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 38709c63e..ad661218f 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -180,10 +180,10 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
180 | "EXTERN_BLOCK", | 180 | "EXTERN_BLOCK", |
181 | "EXTERN_ITEM_LIST", | 181 | "EXTERN_ITEM_LIST", |
182 | "ENUM_VARIANT", | 182 | "ENUM_VARIANT", |
183 | "RECORD_FIELD_DEF_LIST", | 183 | "RECORD_FIELD_LIST", |
184 | "RECORD_FIELD_DEF", | 184 | "RECORD_FIELD", |
185 | "TUPLE_FIELD_DEF_LIST", | 185 | "TUPLE_FIELD_LIST", |
186 | "TUPLE_FIELD_DEF", | 186 | "TUPLE_FIELD", |
187 | "ENUM_VARIANT_LIST", | 187 | "ENUM_VARIANT_LIST", |
188 | "ITEM_LIST", | 188 | "ITEM_LIST", |
189 | "ASSOC_ITEM_LIST", | 189 | "ASSOC_ITEM_LIST", |
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 49b2c9ff8..ba922af0d 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -78,30 +78,30 @@ TypeAlias = | |||
78 | 78 | ||
79 | StructDef = | 79 | StructDef = |
80 | Attr* Visibility? 'struct' Name GenericParamList? ( | 80 | Attr* Visibility? 'struct' Name GenericParamList? ( |
81 | WhereClause? (RecordFieldDefList | ';') | 81 | WhereClause? (RecordFieldList | ';') |
82 | | TupleFieldDefList WhereClause? ';' | 82 | | TupleFieldList WhereClause? ';' |
83 | ) | 83 | ) |
84 | 84 | ||
85 | RecordFieldDefList = | 85 | RecordFieldList = |
86 | '{' fields:RecordFieldDef* '}' | 86 | '{' fields:RecordField* '}' |
87 | 87 | ||
88 | RecordFieldDef = | 88 | RecordField = |
89 | Attr* Visibility? Name ':' ascribed_type:TypeRef | 89 | Attr* Visibility? Name ':' ascribed_type:TypeRef |
90 | 90 | ||
91 | TupleFieldDefList = | 91 | TupleFieldList = |
92 | '(' fields:TupleFieldDef* ')' | 92 | '(' fields:TupleField* ')' |
93 | 93 | ||
94 | TupleFieldDef = | 94 | TupleField = |
95 | Attr* Visibility? Name TypeRef | 95 | Attr* Visibility? Name TypeRef |
96 | 96 | ||
97 | FieldDefList = | 97 | FieldList = |
98 | RecordFieldDefList | 98 | RecordFieldList |
99 | | TupleFieldDefList | 99 | | TupleFieldList |
100 | 100 | ||
101 | 101 | ||
102 | UnionDef = | 102 | UnionDef = |
103 | Attr* Visibility? 'union' Name GenericParamList? WhereClause? | 103 | Attr* Visibility? 'union' Name GenericParamList? WhereClause? |
104 | RecordFieldDefList | 104 | RecordFieldList |
105 | 105 | ||
106 | EnumDef = | 106 | EnumDef = |
107 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? | 107 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? |
@@ -111,7 +111,7 @@ EnumVariantList = | |||
111 | '{' variants:EnumVariant* '}' | 111 | '{' variants:EnumVariant* '}' |
112 | 112 | ||
113 | EnumVariant = | 113 | EnumVariant = |
114 | Attr* Visibility? Name FieldDefList ('=' Expr)? | 114 | Attr* Visibility? Name FieldList ('=' Expr)? |
115 | 115 | ||
116 | TraitDef = | 116 | TraitDef = |
117 | Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList | 117 | Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList |