aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs2
-rw-r--r--xtask/src/codegen/rust.ungram3
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 97a882bf0..c25fa7d5f 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -19,10 +19,10 @@ pub struct PathSegment {
19 pub(crate) syntax: SyntaxNode, 19 pub(crate) syntax: SyntaxNode,
20} 20}
21impl PathSegment { 21impl PathSegment {
22 pub fn coloncolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![::]) }
23 pub fn crate_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![crate]) } 22 pub fn crate_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![crate]) }
24 pub fn self_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![self]) } 23 pub fn self_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![self]) }
25 pub fn super_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![super]) } 24 pub fn super_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![super]) }
25 pub fn coloncolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![::]) }
26 pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) } 26 pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) }
27 pub fn generic_arg_list(&self) -> Option<GenericArgList> { support::child(&self.syntax) } 27 pub fn generic_arg_list(&self) -> Option<GenericArgList> { support::child(&self.syntax) }
28 pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) } 28 pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) }
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 8536b9748..1d8bed0b4 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -2,7 +2,8 @@ Path =
2 (qualifier:Path '::')? segment:PathSegment 2 (qualifier:Path '::')? segment:PathSegment
3 3
4PathSegment = 4PathSegment =
5 '::' | 'crate' | 'self' | 'super' 5 'crate' | 'self' | 'super'
6| '::' NameRef
6| NameRef GenericArgList? 7| NameRef GenericArgList?
7| NameRef ParamList RetType? 8| NameRef ParamList RetType?
8| '<' PathType ('as' PathType)? '>' 9| '<' PathType ('as' PathType)? '>'