diff options
author | Aleksey Kladov <[email protected]> | 2018-08-22 14:46:42 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-22 14:46:42 +0100 |
commit | 8e3bec11ebd1fce78701670cf9189b5a9d0d68f8 (patch) | |
tree | 16066a9bed666d0176bfa656a310fe9a264af53c /crates/libsyntax2/src/grammar.ron | |
parent | 55896aedb16e9eae6309bf129d04a75e6d26530d (diff) |
TypeParamList Owner
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 50 |
1 files changed, 38 insertions, 12 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 8e644d3c4..83b56c349 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -222,15 +222,27 @@ Grammar( | |||
222 | ["modules", "Module"], | 222 | ["modules", "Module"], |
223 | ] | 223 | ] |
224 | ), | 224 | ), |
225 | "FnDef": ( traits: ["NameOwner", "AttrsOwner"] ), | 225 | "FnDef": ( traits: [ |
226 | "NameOwner", | ||
227 | "TypeParamsOwner", | ||
228 | "AttrsOwner", | ||
229 | ] ), | ||
226 | "StructDef": ( | 230 | "StructDef": ( |
227 | traits: ["NameOwner", "AttrsOwner"], | 231 | traits: [ |
232 | "NameOwner", | ||
233 | "TypeParamsOwner", | ||
234 | "AttrsOwner", | ||
235 | ], | ||
228 | collections: [ | 236 | collections: [ |
229 | ["fields", "NamedField"] | 237 | ["fields", "NamedField"] |
230 | ] | 238 | ] |
231 | ), | 239 | ), |
232 | "NamedField": ( traits: ["NameOwner", "AttrsOwner"] ), | 240 | "NamedField": ( traits: ["NameOwner", "AttrsOwner"] ), |
233 | "EnumDef": ( traits: ["NameOwner", "AttrsOwner"] ), | 241 | "EnumDef": ( traits: [ |
242 | "NameOwner", | ||
243 | "TypeParamsOwner", | ||
244 | "AttrsOwner", | ||
245 | ] ), | ||
234 | "TraitDef": ( traits: ["NameOwner", "AttrsOwner"] ), | 246 | "TraitDef": ( traits: ["NameOwner", "AttrsOwner"] ), |
235 | "Module": ( | 247 | "Module": ( |
236 | traits: ["NameOwner", "AttrsOwner"], | 248 | traits: ["NameOwner", "AttrsOwner"], |
@@ -238,16 +250,23 @@ Grammar( | |||
238 | ["modules", "Module"] | 250 | ["modules", "Module"] |
239 | ] | 251 | ] |
240 | ), | 252 | ), |
241 | "ConstDef": ( traits: ["NameOwner", "AttrsOwner"] ), | 253 | "ConstDef": ( traits: [ |
242 | "StaticDef": ( traits: ["NameOwner", "AttrsOwner"] ), | 254 | "NameOwner", |
243 | "TypeDef": ( traits: ["NameOwner", "AttrsOwner"] ), | 255 | "TypeParamsOwner", |
256 | "AttrsOwner", | ||
257 | ] ), | ||
258 | "StaticDef": ( traits: [ | ||
259 | "NameOwner", | ||
260 | "TypeParamsOwner", | ||
261 | "AttrsOwner", | ||
262 | ] ), | ||
263 | "TypeDef": ( traits: [ | ||
264 | "NameOwner", | ||
265 | "TypeParamsOwner", | ||
266 | "AttrsOwner", | ||
267 | ] ), | ||
244 | "ImplItem": (), | 268 | "ImplItem": (), |
245 | 269 | ||
246 | "Name": (), | ||
247 | "NameRef": (), | ||
248 | "Attr": ( options: [ ["value", "TokenTree"] ] ), | ||
249 | "TokenTree": (), | ||
250 | |||
251 | "ParenType": (), | 270 | "ParenType": (), |
252 | "TupleType": (), | 271 | "TupleType": (), |
253 | "NeverType": (), | 272 | "NeverType": (), |
@@ -280,7 +299,14 @@ Grammar( | |||
280 | 299 | ||
281 | "NominalDef": ( | 300 | "NominalDef": ( |
282 | enum: ["StructDef", "EnumDef"], | 301 | enum: ["StructDef", "EnumDef"], |
283 | traits: [ "AttrsOwner" ], | 302 | traits: [ "AttrsOwner", "TypeParamsOwner" ], |
284 | ), | 303 | ), |
304 | |||
305 | "Name": (), | ||
306 | "NameRef": (), | ||
307 | "Attr": ( options: [ ["value", "TokenTree"] ] ), | ||
308 | "TokenTree": (), | ||
309 | "TypeParamList": (), | ||
310 | "WhereClause": (), | ||
285 | }, | 311 | }, |
286 | ) | 312 | ) |