aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model
Commit message (Collapse)AuthorAgeFilesLines
* Move source-related traits to a separate moduleAleksey Kladov2019-11-281-1/+4
|
* Use InFile for AstIdAleksey Kladov2019-11-281-1/+1
|
* Rename Source -> InFileAleksey Kladov2019-11-281-18/+18
|
* Rename module_id -> local_idAleksey Kladov2019-11-271-2/+2
|
* Fix hir for ast::UnionDefAleksey Kladov2019-11-251-4/+4
|
* Remove impl_block moduleAleksey Kladov2019-11-241-2/+8
|
* SimplifyAleksey Kladov2019-11-241-27/+2
|
* Switch to StaticLoc for staticsAleksey Kladov2019-11-241-1/+1
|
* Cleanup importsAleksey Kladov2019-11-241-2/+1
|
* Move ModuleSource back to hirAleksey Kladov2019-11-231-1/+3
|
* Simplify HasSourceAleksey Kladov2019-11-231-21/+18
|
* Hide ImportIdAleksey Kladov2019-11-231-1/+11
|
* Move docs to hir_defAleksey Kladov2019-11-231-97/+0
|
* Move attrs query to hir_defAleksey Kladov2019-11-232-101/+9
|
* More principled sources for enums and fieldsAleksey Kladov2019-11-221-41/+9
|
* Uniformalize namingAleksey Kladov2019-11-221-1/+1
|
* Rename Atts traitAleksey Kladov2019-11-221-12/+9
|
* Encapsulate AttrsAleksey Kladov2019-11-221-7/+9
|
* Remove hir/adt.rsAleksey Kladov2019-11-201-2/+1
|
* Move constants to new IDAleksey Kladov2019-11-201-1/+1
| | | | This allows us to get rid of trait item index
* Switch type aliases to new sourcesAleksey Kladov2019-11-201-1/+1
|
* Next gen IDs for functionsAleksey Kladov2019-11-201-1/+2
| | | | | | | | | | | | | | | | | The current system with AstIds has two primaraly drawbacks: * It is possible to manufacture IDs out of thin air. For example, it's possible to create IDs for items which are not considered in CrateDefMap due to cfg. Or it is possible to mixup structs and unions, because they share ID space. * Getting the ID of a parent requires a secondary index. Instead, the plan is to pursue the more traditional approach, where each items stores the id of the parent declaration. This makes `FromSource` more awkward, but also more correct: now, to get from an AST to HIR, we first do this recursively for the parent item, and the just search the children of the parent for the matching def
* Rename Source::ast -> Source::valueAleksey Kladov2019-11-203-27/+27
|
* Unfork struct and union idsAleksey Kladov2019-11-091-2/+2
|
* HirDatabase stored attributesMartin Asquino2019-11-041-0/+92
|
* Move CrateDefMap to hir_defAleksey Kladov2019-11-031-2/+2
|
* Move Source to hir_expandAleksey Kladov2019-11-021-1/+1
|
* move struct & enum data to hir_defAleksey Kladov2019-10-311-2/+40
|
* Move ids to hir_def crateAleksey Kladov2019-10-301-18/+2
|
* introduce ra_hir_defAleksey Kladov2019-10-301-5/+5
|
* refactorAleksey Kladov2019-10-081-11/+9
|
* Added test for check doc strings in crates.Alexander Andreev2019-09-302-0/+4
| | | | #1856
* Store crate info in `MacroDefId`uHOOCCOOHu2019-09-261-1/+1
|
* cleanup hir db importsAleksey Kladov2019-09-082-5/+7
|
* Correctly build BodySourceMap for macro-expanded expressionsAleksey Kladov2019-09-031-9/+22
|
* fix hir for new block syntaxAleksey Kladov2019-09-021-3/+3
|
* Add an expr_source method analogous to the source methods in the code modelFlorian Diebold2019-09-021-3/+27
| | | | ... and use that instead of exposing the source map.
* migrate ra_hir to the new rowanAleksey Kladov2019-07-192-34/+34
|
* Some clippy fixes for 1.36Jeremy Kolb2019-07-041-1/+1
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-042-6/+6
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* move docs under code modelAleksey Kladov2019-06-111-0/+96
|
* fix compilationAleksey Kladov2019-06-111-1/+1
|
* minor formattingAleksey Kladov2019-06-111-4/+0
|
* remove unneded From(..) implAleksey Kladov2019-06-111-19/+13
|
* move source to a seaparate fileAleksey Kladov2019-06-111-0/+120