File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
crates/ra_syntax/src/ast/generated Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ pub struct PathSegment {
19
19
pub ( crate ) syntax : SyntaxNode ,
20
20
}
21
21
impl PathSegment {
22
- pub fn coloncolon_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ :: ] ) }
23
22
pub fn crate_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ crate ] ) }
24
23
pub fn self_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ self ] ) }
25
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
26
pub fn name_ref ( & self ) -> Option < NameRef > { support:: child ( & self . syntax ) }
27
27
pub fn generic_arg_list ( & self ) -> Option < GenericArgList > { support:: child ( & self . syntax ) }
28
28
pub fn param_list ( & self ) -> Option < ParamList > { support:: child ( & self . syntax ) }
Original file line number Diff line number Diff line change 2
2
(qualifier:Path '::')? segment:PathSegment
3
3
4
4
PathSegment =
5
- '::' | 'crate' | 'self' | 'super'
5
+ 'crate' | 'self' | 'super'
6
+ | '::' NameRef
6
7
| NameRef GenericArgList?
7
8
| NameRef ParamList RetType?
8
9
| '<' PathType ('as' PathType)? '>'
You can’t perform that action at this time.
0 commit comments