mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 04:18:20 +00:00
feat: parse super let
This commit is contained in:
parent
66e3b5819e
commit
1b6948e88a
5 changed files with 30 additions and 4 deletions
|
|
@ -348,7 +348,7 @@ Stmt =
|
|||
| LetStmt
|
||||
|
||||
LetStmt =
|
||||
Attr* 'let' Pat (':' Type)?
|
||||
Attr* 'super'? 'let' Pat (':' Type)?
|
||||
'=' initializer:Expr
|
||||
LetElse?
|
||||
';'
|
||||
|
|
|
|||
|
|
@ -823,6 +823,8 @@ impl LetStmt {
|
|||
pub fn eq_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![=]) }
|
||||
#[inline]
|
||||
pub fn let_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![let]) }
|
||||
#[inline]
|
||||
pub fn super_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![super]) }
|
||||
}
|
||||
pub struct Lifetime {
|
||||
pub(crate) syntax: SyntaxNode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue