aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/source_analyzer.rs
Commit message (Collapse)AuthorAgeFilesLines
* Handle `Self` in values and patternsFlorian Diebold2020-05-151-0/+1
| | | | | | | | | I.e. - `Self(x)` or `Self` in tuple/unit struct impls - `Self::Variant(x)` or `Self::Variant` in enum impls - the same in patterns Fixes #4454.
* Introduce LowerCtx for path loweringEdwin Cheng2020-05-011-1/+2
|
* Rename StructField -> FieldAleksey Kladov2020-04-251-11/+11
|
* Convert code to text-sizeAleksey Kladov2020-04-251-9/+9
|
* Fix goto definition for record patternsAleksey Kladov2020-04-181-0/+11
|
* Don't use SyntaxNodePtr::range when determining scope for offsetAleksey Kladov2020-04-171-47/+52
|
* Remove dead codeAleksey Kladov2020-04-111-4/+2
|
* Make records grammar more orthogonalAleksey Kladov2020-04-111-16/+14
| | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler
* add record pat missing field diagnosticJosh Mcguigan2020-04-101-1/+1
|
* Move computation of missing fields into hirAleksey Kladov2020-04-071-20/+70
|
* Always expand macros during analysisAleksey Kladov2020-03-251-18/+26
|
* ra_hir: add more privacy for Typeveetaha2020-03-231-9/+3
|
* Use `dyn Trait` for working with databseAleksey Kladov2020-03-161-42/+47
| | | | | | | It improves compile time in `--release` mode quite a bit, it doesn't really slow things down and, conceptually, it seems closer to what we want the physical architecture to look like (we don't want to monomorphise EVERYTHING in a single leaf crate).
* Source map returns a resultAleksey Kladov2020-03-061-2/+2
| | | | cc #2236
* Move PathResolutionAleksey Kladov2020-03-051-15/+2
|
* Remove dead codeAleksey Kladov2020-03-051-7/+1
|
* Minor cleanupAleksey Kladov2020-03-041-16/+14
|
* Remove old find refs infraAleksey Kladov2020-03-041-34/+1
|
* More principled approach for gotodef for field shorhandAleksey Kladov2020-03-021-8/+19
| | | | | Callers can now decide for themselves if they should prefer field or local definition. By default, it's the local.
* Rename ast::ImplBlock -> ast::ImplDefAleksey Kladov2020-02-291-1/+1
|
* Fix highlighting of const patternsAleksey Kladov2020-02-281-5/+26
|
* Remove dead codeAleksey Kladov2020-02-261-24/+8
|
* Refactor primary IDE APIAleksey Kladov2020-02-261-121/+73
| | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
* Run cargo +nightly fix --clippy -Z unstable-optionsKirill Bulatov2020-02-181-3/+2
|
* Introduce AsMacroCall traitEdwin Cheng2020-02-171-10/+6
|
* Add impl trait lowering modeFlorian Diebold2020-02-071-2/+1
|
* Introduce TyLoweringContextFlorian Diebold2020-02-071-2/+7
|
* TyposAleksey Kladov2020-01-151-1/+1
|
* Store DB in SourceBinderAleksey Kladov2020-01-151-1/+1
|
* Introduce SourceBinderAleksey Kladov2020-01-151-98/+42
|
* Move Type API to typeAleksey Kladov2020-01-141-62/+8
|
* Push resolver further upAleksey Kladov2020-01-141-2/+16
|
* Move impls_future to Type, where it belongsAleksey Kladov2020-01-141-23/+1
|
* Use lang-items to resolve future traitAleksey Kladov2020-01-141-10/+9
|
* Move utility functions downAleksey Kladov2020-01-141-58/+58
|
* Rename fileAleksey Kladov2020-01-141-0/+569