aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/tests/tests.rs
Commit message (Collapse)AuthorAgeFilesLines
* Reformat allAleksey Kladov2018-10-311-32/+73
|
* Add DeclarationDescriptor and ReferenceDescriptorJeremy A. Kolb2018-10-311-0/+11
| | | | | Fixes #142 Fixes #146
* Merge #167bors[bot]2018-10-311-0/+147
|\ | | | | | | | | | | | | | | | | | | | | | | 167: Attempt to extract useful comments from function signatures r=matklad a=kjeremy I'm trying to extract useful function comments for signature info. This will also be useful for hover. This is a WIP (and actually works pretty well!) but I don't think it's the right approach long term so some guidance would be appreciated so that we could also get comments for say types and variable instances etc. Currently `test_fn_signature_with_simple_doc` fails due to a bug in `extend` but we probably shouldn't use this approach anyway. Maybe comments should be attached to nodes somehow? I'm also thinking that maybe the markdown bits should live in the language server. Thoughts? Co-authored-by: Jeremy A. Kolb <[email protected]>
| * Useful comments from function signaturesJeremy A. Kolb2018-10-311-0/+147
| |
* | Add MockAnalysis to make testing easierAleksey Kladov2018-10-311-48/+57
|/
* Move completion to ra_analysisAleksey Kladov2018-10-311-50/+6
| | | | | | While we should handle completion for isolated file, it's better achieved by using empty Analysis, rather than working only with &File: we need memoization for type inference even inside a single file.
* Encapsulate CrateGraph a bitAleksey Kladov2018-10-251-8/+5
|
* Store all the data in the Salsa DatabaseAleksey Kladov2018-10-251-7/+13
|
* Complete crate:: pathsAleksey Kladov2018-10-241-0/+14
|
* revive the testAleksey Kladov2018-10-241-6/+6
|
* Introduce ModuleIdAleksey Kladov2018-10-231-6/+6
| | | | | | | Previously, module was synonym with a file, and so a module could have had several parents. This commit introduces a separate module concept, such that each module has only one parent, but a single file can correspond to different modules.
* Fix testsAleksey Kladov2018-10-201-17/+14
|
* Implement Find All References for local variablesJeremy A. Kolb2018-10-181-0/+42
|
* Cargo FormatJeremy A. Kolb2018-10-161-48/+34
| | | | Run `cargo fmt` and ignore generated files
* fix testsAleksey Kladov2018-10-151-1/+1
|
* A FnDescriptor shouldn't exist without a nameJeremy A. Kolb2018-10-121-5/+5
|
* Language Server: textDocument/signatureHelpJeremy A. Kolb2018-10-111-4/+98
| | | | | | | | | | Implements a pretty barebones function signature help mechanism in the language server. Users can use `Analysis::resolve_callback()` to get basic information about a call site. Fixes #102
* Replace HashMap, HashSet with FxHashMap and FxHashSetMuhammad Mominul Huque2018-10-111-2/+3
|
* rename all thingsAleksey Kladov2018-09-161-0/+146