mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Merge commit 'af40101841
' into sync-from-ra
This commit is contained in:
parent
79fa976864
commit
3afeb24198
115 changed files with 3106 additions and 3623 deletions
|
@ -136,6 +136,16 @@ where
|
|||
{
|
||||
}
|
||||
|
||||
/// Trait to describe operations common to both `RangeExpr` and `RangePat`.
|
||||
pub trait RangeItem {
|
||||
type Bound;
|
||||
|
||||
fn start(&self) -> Option<Self::Bound>;
|
||||
fn end(&self) -> Option<Self::Bound>;
|
||||
fn op_kind(&self) -> Option<RangeOp>;
|
||||
fn op_token(&self) -> Option<SyntaxToken>;
|
||||
}
|
||||
|
||||
mod support {
|
||||
use super::{AstChildren, AstNode, SyntaxKind, SyntaxNode, SyntaxToken};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue