aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
diff options
context:
space:
mode:
authorDavid Lattimore <[email protected]>2020-07-29 12:23:39 +0100
committerDavid Lattimore <[email protected]>2020-07-30 11:32:01 +0100
commitfa1e4113224c119258670538f8c3ca6c8ea8ad1e (patch)
tree7e7ca39c87ee0bddfd9a870db791bb34ea69560c /crates/ra_hir_def
parent570fdf26c90758c04b90fadfe1b0e6ee684c6dbe (diff)
SSR: Wrap placeholder expansions in parenthesis when necessary
e.g. `foo($a) ==> $a.to_string()` should produce `(1 + 2).to_string()` not `1 + 2.to_string()` We don't yet try to determine if the whole replacement needs to be wrapped in parenthesis. That's harder and I think perhaps less often an issue.
Diffstat (limited to 'crates/ra_hir_def')
0 files changed, 0 insertions, 0 deletions