This commit is contained in:
Aleksey Kladov 2020-04-10 17:47:49 +02:00
parent 5c5bde47fb
commit c476742f47
3 changed files with 3 additions and 20 deletions

View file

@ -2307,6 +2307,7 @@ impl ast::TypeAscriptionOwner for SelfParam {}
impl ast::AttrsOwner for SelfParam {}
impl SelfParam {
pub fn amp_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![&]) }
pub fn mut_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![mut]) }
pub fn lifetime_token(&self) -> Option<SyntaxToken> {
support::token(&self.syntax, T![lifetime])
}