Module rustc::hir::map [−][src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Re-exports
pub use self::Node::*; |
use self::MapEntry::*; |
use self::collector::NodeCollector; |
pub use self::definitions::Definitions; |
pub use self::definitions::DefKey; |
pub use self::definitions::DefPath; |
pub use self::definitions::DefPathData; |
pub use self::definitions::DisambiguatedDefPathData; |
pub use self::definitions::DefPathHash; |
use dep_graph::DepGraph; |
use dep_graph::DepNode; |
use dep_graph::DepKind; |
use dep_graph::DepNodeIndex; |
use hir::def_id::CRATE_DEF_INDEX; |
use hir::def_id::DefId; |
use hir::def_id::LocalDefId; |
use hir::def_id::DefIndexAddressSpace; |
use middle::cstore::CrateStore; |
use rustc_target::spec::abi::Abi; |
use syntax::ast; |
use syntax::ast::Name; |
use syntax::ast::NodeId; |
use syntax::ast::CRATE_NODE_ID; |
use syntax::codemap::Spanned; |
use syntax::ext::base::MacroKind; |
use syntax_pos::Span; |
use hir::*; |
use hir::print::Nested; |
use hir::svh::Svh; |
use util::nodemap::FxHashMap; |
use util::nodemap::FxHashMap; |
use std::io; |
use ty::TyCtxt; |
Modules
| blocks |
[ Experimental ] This module provides a simplified abstraction for working with
code blocks identified by their integer node-id. In particular,
it captures a common set of attributes that all "function-like
things" (represented by |
| collector |
[ Experimental ]
|
| def_collector |
[ Experimental ]
|
| definitions |
[ Experimental ] For each definition, we track the following data. A definition here is defined somewhat circularly as "something with a def-id", but it generally corresponds to things like structs, enums, etc. There are also some rather random cases (like const initializer expressions) that are mostly just leftovers. |
| hir_id_validator |
[ Experimental ]
|
Structs
| DefCollector |
[ Experimental ] Creates def ids for nodes in the AST. |
| Forest |
[ Experimental ] Stores a crate and any number of inlined items from other crates. |
| MacroInvocationData |
[ Experimental ]
|
| Map |
[ Experimental ] Represents a mapping from Node IDs to AST elements and their parent Node IDs |
| NodesMatchingSuffix |
[ Experimental ]
|
Enums
| MapEntry |
[ Experimental ] Represents an entry and its parent NodeID. The odd layout is to bring down the total size. |
| Node |
[ Experimental ]
|
Constants
| ITEM_LIKE_SPACE |
[ Experimental ]
|
| REGULAR_SPACE |
[ Experimental ]
|
Traits
| Named |
[ Experimental ]
|
Functions
| describe_def |
[ Experimental ]
|
| map_crate |
[ Experimental ]
|
| node_id_to_string |
[ Experimental ]
|