aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge #2205bors[bot]2019-11-111-0/+19
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | 2205: Implement bulitin line! macro r=matklad a=edwin0cheng This PR implements bulitin macro `line!` and add basic infra-structure for other bulitin macros: 1. Extend `MacroDefId` to support builtin macros 2. Add a `quote!` macro for simple quasi quoting. Note that for support others builtin macros, eager macro expansion have to be supported first, this PR not try to handle it. :) Co-authored-by: Edwin Cheng <[email protected]>
| * Add MacroDefKindEdwin Cheng2019-11-111-8/+3
| |
| * Add line macro and testsEdwin Cheng2019-11-111-0/+19
| |
| * Add basic bultin macro infrastructureEdwin Cheng2019-11-111-3/+8
| |
* | Make primitive tys publicAleksey Kladov2019-11-111-1/+5
| |
* | Unfork struct and union idsAleksey Kladov2019-11-096-19/+18
|/
* Merge #2179bors[bot]2019-11-064-0/+98
|\ | | | | | | | | | | | | | | | | | | | | | | 2179: Use HirDatabase to compute `is_deprecated` r=matklad a=martskins This PR fixes #2167 by introducing `attributes_query` and adding `fn attrs(&self, def: crate::AttrDef) -> Option<Arc<[Attr]>>;` to the `DefDatabase` trait. I'm a little concerned about the two spots in `attributes_query` where code is repeated, but I couldn't figure out a way to avoid that, so.. I welcome suggestions :smile: Co-authored-by: Martin Asquino <[email protected]>
| * HirDatabase stored attributesMartin Asquino2019-11-044-0/+98
| |
* | Move Namespace enum closer to usageAleksey Kladov2019-11-048-18/+29
| |
* | Appease the linter by dummy doc commentsAleksey Kladov2019-11-041-1/+1
| |
* | SimplifyAleksey Kladov2019-11-041-35/+24
| |
* | Rename MockDatabase -> TestDBAleksey Kladov2019-11-044-42/+39
| | | | | | | | Actually working rename is sooo useful!
* | remove dead codeAleksey Kladov2019-11-041-26/+7
| |
* | Remove more duplication in test fixturesAleksey Kladov2019-11-043-50/+6
| |
* | Remove some duplicated test functionsAleksey Kladov2019-11-041-81/+16
|/
* Cleanup unused marksAleksey Kladov2019-11-041-10/+0
|
* Use new text DSL instead of crate_graph! macroAleksey Kladov2019-11-043-128/+25
|
* Reexport relative_path from ra_dbAleksey Kladov2019-11-031-2/+1
|
* Add small module-level docsAleksey Kladov2019-11-031-0/+5
|
* Remove last traces of nameres from hirAleksey Kladov2019-11-037-66/+11
|
* move crate_def_map tests to hir_defAleksey Kladov2019-11-037-2252/+0
|
* Move CrateDefMap to hir_defAleksey Kladov2019-11-0317-1553/+183
|
* Move diagnostics to hir_expandAleksey Kladov2019-11-026-89/+21
|
* Move Source to hir_expandAleksey Kladov2019-11-022-3/+3
|
* Change SourceAnalyzer method resoltion APIFlorian Diebold2019-11-012-4/+26
|
* Various review fixesFlorian Diebold2019-11-013-17/+13
|
* Add some doc commentsFlorian Diebold2019-11-011-0/+6
|
* Complete trait assoc itemsFlorian Diebold2019-11-013-5/+8
|
* Refactor a bitFlorian Diebold2019-11-011-36/+25
|
* Don't do autoderef for path resolutionFlorian Diebold2019-11-011-18/+39
|
* Refactor to unify with method resolutionFlorian Diebold2019-11-016-137/+111
|
* Record assoc item resolutionFlorian Diebold2019-11-011-1/+3
|
* Insert type vars before doing assoc item resolutionFlorian Diebold2019-11-012-12/+15
|
* Add another unrelated, currently not working testFlorian Diebold2019-11-011-0/+16
|
* Get trait assoc item resolution mostly workingFlorian Diebold2019-11-013-16/+261
|
* Fixes #2143kjeremy2019-10-311-1/+3
|
* move struct & enum data to hir_defAleksey Kladov2019-10-315-200/+72
|
* add ModuleDefId to hir_defAleksey Kladov2019-10-312-9/+5
|
* move builtin types to hir_defAleksey Kladov2019-10-316-78/+24
|
* move mod_resolution to hir_defAleksey Kladov2019-10-313-84/+6
|
* source_binder => match_ast!kjeremy2019-10-301-28/+36
|
* move hygiene to hir_expandAleksey Kladov2019-10-302-3/+7
|
* push name down to hir_expandAleksey Kladov2019-10-3015-30/+27
|
* push either to hir_expandAleksey Kladov2019-10-301-9/+8
|
* refactor $crate handlingAleksey Kladov2019-10-302-7/+9
| | | | | Introduce proper hygiene module, which should grow quite a bit eventually.
* remove forward pointer for attrsAleksey Kladov2019-10-304-6/+2
|
* fix compilationAleksey Kladov2019-10-304-6/+7
|
* remove forward pointer for type_refAleksey Kladov2019-10-3014-24/+27
|
* remove forward pointer to PathAleksey Kladov2019-10-3012-20/+27
|
* remove forward pointer for nameAleksey Kladov2019-10-3016-43/+52
|