mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Improve pattern matching MIR lowering
This commit is contained in:
parent
051dae2221
commit
9564773d5e
9 changed files with 590 additions and 395 deletions
|
@ -1376,6 +1376,7 @@ pub struct LiteralPat {
|
|||
}
|
||||
impl LiteralPat {
|
||||
pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) }
|
||||
pub fn minus_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![-]) }
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue