diff options
author | David Lattimore <[email protected]> | 2020-07-29 12:23:39 +0100 |
---|---|---|
committer | David Lattimore <[email protected]> | 2020-07-30 11:32:01 +0100 |
commit | fa1e4113224c119258670538f8c3ca6c8ea8ad1e (patch) | |
tree | 7e7ca39c87ee0bddfd9a870db791bb34ea69560c /crates/ra_hir_def/src/nameres/tests/incremental.rs | |
parent | 570fdf26c90758c04b90fadfe1b0e6ee684c6dbe (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/src/nameres/tests/incremental.rs')
0 files changed, 0 insertions, 0 deletions