diff options
Diffstat (limited to 'crates/ra_mbe/src/syntax_bridge.rs')
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index 44a51b7a5..d585d57af 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs | |||
@@ -19,7 +19,7 @@ pub enum TokenTextRange { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | impl TokenTextRange { | 21 | impl TokenTextRange { |
22 | pub fn range(self, kind: SyntaxKind) -> Option<TextRange> { | 22 | pub fn by_kind(self, kind: SyntaxKind) -> Option<TextRange> { |
23 | match self { | 23 | match self { |
24 | TokenTextRange::Token(it) => Some(it), | 24 | TokenTextRange::Token(it) => Some(it), |
25 | TokenTextRange::Delimiter(open, close) => match kind { | 25 | TokenTextRange::Delimiter(open, close) => match kind { |