rust/crates/ra_syntax
Aleksey Kladov cebeedc66f Next gen IDs for functions
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
2019-11-20 16:22:58 +03:00
..
fuzz Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
src Next gen IDs for functions 2019-11-20 16:22:58 +03:00
test_data Attempt to implement typed accessors 2019-11-15 12:05:29 -08:00
Cargo.toml ⬆️ rowan 2019-11-19 21:13:36 +03:00