aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-22 16:05:43 +0100
committerAleksey Kladov <[email protected]>2018-08-22 16:05:43 +0100
commit147578f0fe28dee9ba3bfe3ed8805ffe3a525611 (patch)
tree48d4abe5a2743f569e61745828ab35e275de4572 /crates/libsyntax2/src
parent69a524fbef067d9ee265fa93606c3ae743656c2a (diff)
add impl initial
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": (),