diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/expr_extensions.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/expr_extensions.rs b/crates/ra_syntax/src/ast/expr_extensions.rs index 23b6aa901..3dfecfe76 100644 --- a/crates/ra_syntax/src/ast/expr_extensions.rs +++ b/crates/ra_syntax/src/ast/expr_extensions.rs | |||
@@ -144,6 +144,7 @@ impl BinOp { | |||
144 | } | 144 | } |
145 | } | 145 | } |
146 | } | 146 | } |
147 | |||
147 | impl ast::BinExpr { | 148 | impl ast::BinExpr { |
148 | pub fn op_details(&self) -> Option<(SyntaxToken, BinOp)> { | 149 | pub fn op_details(&self) -> Option<(SyntaxToken, BinOp)> { |
149 | self.syntax().children_with_tokens().filter_map(|it| it.into_token()).find_map(|c| { | 150 | self.syntax().children_with_tokens().filter_map(|it| it.into_token()).find_map(|c| { |