diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-01-10 21:40:57 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-01-10 21:40:57 +0000 |
commit | a9ba32e2e659dbbe78f7921f5b0abe7288c83aa9 (patch) | |
tree | fc742b1b41c72f8016329a243f0f5302d57bad85 /crates/ra_syntax/src | |
parent | 19eb7fa1db7da8417314ddfafe7addbbd9c3b46a (diff) | |
parent | a633a6275ab823396f57b1e93d45e58d98f8d32f (diff) |
Merge #2749
2749: Basic DocumentHighlightKind support for assignments r=matklad a=kjeremy
Wraps references per #2738 and adds limited support for DocumentHighlightKind Read/Write for simple binops assignments.
I think I need some help with determining reads/writes.
Towards #2560
Co-authored-by: Jeremy Kolb <[email protected]>
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src')
-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| { |