aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ssr/src/tests.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move iteration over all files into the SSR crateDavid Lattimore2020-07-241-18/+22
| | | | The methods `edits_for_file` and `find_matches_in_file` are replaced with just `edits` and `matches`. This simplifies the API a bit, but more importantly it makes it possible in a subsequent commit for SSR to decide to not search all files.
* SSR: Parse template as Rust code.David Lattimore2020-07-241-2/+2
| | | | | | This is in preparation for a subsequent commit where we add special handling for paths in the template, allowing them to be qualified differently in different contexts.
* SSR: Use expect! in testsDavid Lattimore2020-07-241-37/+34
|
* SSR: Update tests so that all paths in patterns can be resolvedDavid Lattimore2020-07-031-67/+97
|
* SSR: Improve error reporting when a test failsDavid Lattimore2020-07-031-6/+21
|
* SSR: Add initial support for placeholder constraintsDavid Lattimore2020-07-011-0/+17
|
* Structured search debuggingDavid Lattimore2020-07-011-147/+42
|
* Fix some typosDavid Lattimore2020-06-301-3/+3
|
* Fix handling of whitespace when applying SSR within macro expansions.David Lattimore2020-06-271-0/+17
| | | | I originally did replacement by passing in the full file text. Then as some point I thought I could do without it. Turns out calling .text() on a node coming from a macro expansion isn't a great idea, especially when you then try and use ranges from the original source to cut that text. The test I added here actually panics without the rest of this change (sorry I didn't notice sooner).
* Fix test following change to fixture parsing ↵David Lattimore2020-06-271-1/+11
| | | | (d016cb486738c1ab2574a322924183fa8a870b06)
* SSR: Allow matching within macro callsDavid Lattimore2020-06-271-0/+49
|
* SSR: Allow matching of whole macro callsDavid Lattimore2020-06-221-0/+53
| | | | Matching within macro calls is to come later and matching of macro calls within macro calls later still.
* Allow SSR to match type references, items, paths and patternsDavid Lattimore2020-06-221-0/+496
Part of #3186