aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-30 10:44:22 +0100
committerAleksey Kladov <[email protected]>2020-07-30 10:50:56 +0100
commit7d09e5ed618b9b9d6e00b57b24db0b9c8a8c12d7 (patch)
treef76a250431629a36d225d456ed41f393aaa9a579
parent081f35fe1b311223866fa5fc7edde2e8048cd901 (diff)
Finish Module grammar
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs1
-rw-r--r--xtask/src/codegen/rust.ungram2
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 7ccb7ea7f..fbf3b457a 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -248,6 +248,7 @@ impl Name {
248pub struct ItemList { 248pub struct ItemList {
249 pub(crate) syntax: SyntaxNode, 249 pub(crate) syntax: SyntaxNode,
250} 250}
251impl ast::AttrsOwner for ItemList {}
251impl ast::ModuleItemOwner for ItemList {} 252impl ast::ModuleItemOwner for ItemList {}
252impl ItemList { 253impl ItemList {
253 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['{']) } 254 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['{']) }
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index d0518cead..470ac8c8f 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -24,7 +24,7 @@ Module =
24 (ItemList | ';') 24 (ItemList | ';')
25 25
26ItemList = 26ItemList =
27 '{' Item* '}' 27 '{' Attr* Item* '}'
28 28
29FnDef = 29FnDef =
30 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? 30 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList?