aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src')
-rw-r--r--crates/libsyntax2/src/ast/generated.rs3
-rw-r--r--crates/libsyntax2/src/grammar.ron6
2 files changed, 7 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs
index 0f53e8f4a..6df1d2311 100644
--- a/crates/libsyntax2/src/ast/generated.rs
+++ b/crates/libsyntax2/src/ast/generated.rs
@@ -344,8 +344,9 @@ impl<'a> AstNode<'a> for NominalDef<'a> {
344 } 344 }
345} 345}
346 346
347impl<'a> ast::AttrsOwner<'a> for NominalDef<'a> {} 347impl<'a> ast::NameOwner<'a> for NominalDef<'a> {}
348impl<'a> ast::TypeParamsOwner<'a> for NominalDef<'a> {} 348impl<'a> ast::TypeParamsOwner<'a> for NominalDef<'a> {}
349impl<'a> ast::AttrsOwner<'a> for NominalDef<'a> {}
349impl<'a> NominalDef<'a> {} 350impl<'a> NominalDef<'a> {}
350 351
351// ParenType 352// ParenType
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron
index 83b56c349..e56496be1 100644
--- a/crates/libsyntax2/src/grammar.ron
+++ b/crates/libsyntax2/src/grammar.ron
@@ -299,7 +299,11 @@ Grammar(
299 299
300 "NominalDef": ( 300 "NominalDef": (
301 enum: ["StructDef", "EnumDef"], 301 enum: ["StructDef", "EnumDef"],
302 traits: [ "AttrsOwner", "TypeParamsOwner" ], 302 traits: [
303 "NameOwner",
304 "TypeParamsOwner",
305 "AttrsOwner"
306 ],
303 ), 307 ),
304 308
305 "Name": (), 309 "Name": (),