rust/crates/ra_ide/src
bors[bot] 6f3c8dc11d
Merge #5345
5345: Semantic Highlighting: Emit mutable modifier for 'self' when applicable r=matklad a=Veykril

This PR implements emitting the mutable modifier for the self keyword when applicable for semantic highlighting as mentioned in #5041. The rendered highlighting test html file:
![firefox_5lbsFNBqsT](https://user-images.githubusercontent.com/3757771/87346245-a5a07280-c551-11ea-9051-e5901255f8c9.png)
As you can see it does not emit the modifier when `self` is not used in a mutable context even if it is declared mutably in the enclosing function. I'm not sure if this is actually something wanted or not.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-07-15 10:00:10 +00:00
..
completion Don't duplicate parens in patterns 2020-07-14 13:51:43 +02:00
display Implementations lens for unions 2020-07-11 22:53:31 +02:00
references Fix module renaming 2020-07-03 18:47:26 +02:00
syntax_highlighting Semantic Highlighting: Emit mutable modifier for 'self' when applicable 2020-07-13 21:39:01 +02:00
typing
call_hierarchy.rs Reuse Semantics instances 2020-07-01 15:27:01 +03:00
call_info.rs Off by one error when determining the active param 2020-07-15 10:14:23 +02:00
completion.rs Modernize qual path completion tests 2020-07-04 18:53:30 +02:00
diagnostics.rs Correctly generate new struct field in file containing struct def 2020-07-10 19:16:41 +02:00
display.rs Streamline 2020-07-09 10:19:37 +02:00
expand_macro.rs Update expand macro tests 2020-07-01 17:52:22 +02:00
extend_selection.rs
folding_ranges.rs Fold struct literals 2020-07-09 18:49:17 +02:00
goto_definition.rs Fix classify_name_ref on multi-path macro calls 2020-07-14 17:23:33 +02:00
goto_implementation.rs Split CrateImplDefs in inherent and trait impls 2020-07-01 17:15:20 +02:00
goto_type_definition.rs Look through Arc for goto type definition 2020-07-10 14:42:26 +02:00
hover.rs Prettier rendering 2020-07-09 10:31:12 +02:00
inlay_hints.rs Always put config first 2020-07-09 16:12:53 +02:00
join_lines.rs
lib.rs Add Markup type 2020-07-08 22:37:35 +02:00
markup.rs Streamline 2020-07-09 10:19:37 +02:00
matching_brace.rs
mock_analysis.rs Cleanup diagnostics tests 2020-07-09 14:33:03 +02:00
parent_module.rs
prime_caches.rs
references.rs Reuse Semantics instances 2020-07-01 15:27:01 +03:00
runnables.rs Refactor runnable tests 2020-06-30 14:12:55 +02:00
ssr.rs SSR: Add initial support for placeholder constraints 2020-07-01 18:44:11 +10:00
status.rs Switch to fully dynamically dispatched salsa 2020-07-07 10:14:48 +02:00
syntax_highlighting.rs Semantic Highlighting: Emit mutable modifier for 'self' when applicable 2020-07-13 21:39:01 +02:00
syntax_tree.rs
typing.rs