diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 10:44:22 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 10:50:56 +0100 |
commit | 7d09e5ed618b9b9d6e00b57b24db0b9c8a8c12d7 (patch) | |
tree | f76a250431629a36d225d456ed41f393aaa9a579 | |
parent | 081f35fe1b311223866fa5fc7edde2e8048cd901 (diff) |
Finish Module grammar
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 1 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 2 |
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 { | |||
248 | pub struct ItemList { | 248 | pub struct ItemList { |
249 | pub(crate) syntax: SyntaxNode, | 249 | pub(crate) syntax: SyntaxNode, |
250 | } | 250 | } |
251 | impl ast::AttrsOwner for ItemList {} | ||
251 | impl ast::ModuleItemOwner for ItemList {} | 252 | impl ast::ModuleItemOwner for ItemList {} |
252 | impl ItemList { | 253 | impl 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 | ||
26 | ItemList = | 26 | ItemList = |
27 | '{' Item* '}' | 27 | '{' Attr* Item* '}' |
28 | 28 | ||
29 | FnDef = | 29 | FnDef = |
30 | Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? | 30 | Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? |