rust/crates/hir/src
bors[bot] 1cc73d60bb
Merge #7068
7068: Add VSCode command to view the hir of a function body r=theotherphil a=theotherphil

Will fix https://github.com/rust-analyzer/rust-analyzer/issues/7061. Very rough initial version just to work out where I needed to wire everything up.

@matklad would you be happy merging a hir visualiser of some kind? If so, do you have any thoughts on what you'd like it show, and how?

I've spent very little time on this thus far, so I'm fine with throwing away the contents of this PR, but I want to avoid taking the time to make this more polished/interactive/useful only to discover that no-one else has any interest in this functionality.

![image](https://user-images.githubusercontent.com/1974256/103236081-bb58f700-493b-11eb-9d12-55ae1b870f8f.png)


Co-authored-by: Phil Ellison <phil.j.ellison@gmail.com>
2021-01-03 09:03:15 +00:00
..
semantics Add ConstParams to the HIR 2021-01-01 10:06:42 +01:00
attrs.rs Implement HasAttrs for Type-, Const- and LifetimeParam 2021-01-02 12:11:46 +01:00
code_model.rs Merge #7068 2021-01-03 09:03:15 +00:00
db.rs Remove module_lang_items 2020-12-17 00:26:01 +01:00
diagnostics.rs Format code 2020-12-08 19:25:21 +00:00
from_id.rs Impl HasAttrs for GenericParam 2021-01-02 00:44:59 +01:00
has_source.rs Fix ConstParam HasSource impl and implement TryToNav not Nav 2021-01-02 22:11:25 +11:00
lib.rs Impl HasAttrs for GenericParam 2021-01-02 00:44:59 +01:00
semantics.rs Add ConstParams to the HIR 2021-01-01 10:06:42 +01:00
source_analyzer.rs Add ConstParams to the HIR 2021-01-01 10:06:42 +01:00