rust-analyzer/crates/ra_hir/src
Florian Diebold ae9530addc Add HIR for impl blocks
Since we need to be able to go from def to containing impl block, as well as the
other direction, and to find all impls for a certain type, a design similar to
the one for modules, where we collect all impls for the whole crate and keep
them in an arena, seemed fitting. The ImplBlock type, which provides the public
interface, then consists only of an Arc to the arena containing all impls, and
the index into it.
2019-01-04 19:10:47 +01:00
..
function remove id arena 2019-01-04 16:58:10 +03:00
module Rename ImplItem to ImplBlock 2019-01-04 18:28:36 +01:00
ty Add test for self type inference 2019-01-04 18:28:43 +01:00
adt.rs move more stuff to ids 2019-01-02 00:30:00 +03:00
db.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
function.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
ids.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
impl_block.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
krate.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
lib.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
macros.rs hardcode vec macro 2019-01-03 14:48:23 +03:00
mock.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
module.rs Add HIR for impl blocks 2019-01-04 19:10:47 +01:00
name.rs nameify structs&enums 2018-12-28 21:34:58 +03:00
path.rs introduce hir::Name 2018-12-27 20:07:21 +03:00
query_definitions.rs move macro id to ids 2019-01-02 00:37:36 +03:00
source_binder.rs index stuff produced by macros 2019-01-03 21:29:17 +03:00
ty.rs Add more docs in ty.rs 2018-12-29 20:27:13 +01:00
type_ref.rs Resolve field types lazily 2018-12-25 21:40:33 +01:00