mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 10:58:02 +00:00
Parse new const trait syntax
This commit is contained in:
parent
db07723fe9
commit
5924b38e3d
6 changed files with 19 additions and 9 deletions
|
|
@ -1766,6 +1766,10 @@ impl TypeBound {
|
|||
support::child(&self.syntax)
|
||||
}
|
||||
#[inline]
|
||||
pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['[']) }
|
||||
#[inline]
|
||||
pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![']']) }
|
||||
#[inline]
|
||||
pub fn question_mark_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![?]) }
|
||||
#[inline]
|
||||
pub fn async_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![async]) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue