aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/resolve.rs
Commit message (Collapse)AuthorAgeFilesLines
* Change resolve_path to return the fully resolved path or PerNs::noneVille Penttinen2019-02-221-13/+16
| | | | | | This also adds new pub(crate) resolve_path_segments which returns the PathResult, which may or may not be fully resolved. PathResult is also now pub(crate) since it is an implementation detail.
* Remove Const inference for now, refactor PathResultVille Penttinen2019-02-211-19/+59
|
* Implement basic support for Associated Methods and ConstantsVille Penttinen2019-02-211-6/+40
| | | | | | | This is done in `infer_path_expr`. When `Resolver::resolve_path` returns `PartiallyResolved`, we use the returned `Resolution` together with the given `segment_index` to check if we can find something matching the segment at segment_index in the impls for that particular type.
* Complete names from preludeFlorian Diebold2019-02-131-3/+9
|
* Import the preludeFlorian Diebold2019-02-131-6/+6
|
* rename combine -> orAleksey Kladov2019-02-111-1/+1
| | | | | | This way we match API of Option https://doc.rust-lang.org/std/option/enum.Option.html#method.or
* use extern prelude in ResolverAleksey Kladov2019-02-111-5/+2
| | | | | | | This fixes two bugs: - completion for paths works again - we handle extern prelude shadowing more correctly
* reformat the worldAleksey Kladov2019-02-081-26/+9
|
* Some clippy cleanupskjeremy2019-02-061-1/+1
|
* Complete extern prelude (again)Florian Diebold2019-02-041-1/+4
|
* Some cleanup and additional testsFlorian Diebold2019-02-011-2/+1
|
* Make the Resolution variants tuple variantsFlorian Diebold2019-02-011-19/+11
|
* CleanupFlorian Diebold2019-02-011-9/+7
|
* Use the new Resolver API for goto defFlorian Diebold2019-02-011-10/+16
|
* Use the new Resolver API in completionFlorian Diebold2019-02-011-2/+55
|
* Use new Resolver API in type inferenceFlorian Diebold2019-02-011-34/+82
|
* Implement methods to build a resolverFlorian Diebold2019-02-011-1/+31
|
* Sketching the resolver APIFlorian Diebold2019-02-011-0/+100