Skip to main content

Module node_id

Module node_id 

Source

Re-exportsยง

use std::fmt; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHash; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHashCtxt; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHasher; ๐Ÿ”’
use rustc_span::LocalExpnId; ๐Ÿ”’

Structsยง

NodeId
Identifies an AST node.

Constantsยง

CRATE_NODE_ID
The NodeId used to represent the root of the crate.
DUMMY_NODE_ID
When parsing and at the beginning of doing expansions, we initially give all AST nodes this dummy AST NodeId. Then, during a later phase of expansion, we renumber them to have small, positive IDs.

Type Aliasesยง

NodeMap
NodeMapEntry
NodeSet