aboutsummaryrefslogtreecommitdiff
path: root/crates/ssr/src
Commit message (Collapse)AuthorAgeFilesLines
* Future proof find-usages APIAleksey Kladov2020-08-191-1/+1
| | | | | | We might want to provide more efficient impls for check if usages exist, limiting the search, filtering and cancellation, so let's violate YAGNI a bit here.
* Add SelfParam to code_modelAleksey Kladov2020-08-192-2/+2
|
* Merge #5758bors[bot]2020-08-185-38/+245
|\ | | | | | | | | | | | | | | | | | | 5758: SSR: Explicitly autoderef and ref placeholders as needed r=matklad a=davidlattimore Structural search replace now inserts *, & and &mut in the replacement to match any auto[de]ref in the matched code. e.g. `$a.foo() ==>> bar($a)` might convert `x.foo()` to `bar(&mut x)` Co-authored-by: David Lattimore <[email protected]>
| * SSR: A few small refactoringsDavid Lattimore2020-08-182-6/+8
| |
| * SSR: Explicitly autoderef and ref placeholders as neededDavid Lattimore2020-08-144-25/+222
| | | | | | | | Structured search replace now inserts *, & and &mut in the replacement to match any auto[de]ref in the matched code.
| * Refactor SSR so that placeholders store a VarDavid Lattimore2020-08-144-18/+26
| | | | | | | | | | This allows lookup of placeholder bindings given a placeholder without needing to create a Var instance.
* | Rename hypothetical -> speculativeAleksey Kladov2020-08-141-2/+2
|/
* Make hygiene private to hirAleksey Kladov2020-08-131-11/+13
|
* Rename ra_ssr -> ssrAleksey Kladov2020-08-139-0/+3576