Struct syntax::ast_map::Map[src]
pub struct Map {
// some fields omitted
}Methods
impl Map
fn get(&self, id: NodeId) -> Node
Retrieve the Node corresponding to id, failing if it cannot
be found.
fn find(&self, id: NodeId) -> Option<Node>
Retrieve the Node corresponding to id, returning None if
cannot be found.
fn get_parent(&self, id: NodeId) -> NodeId
Retrieve the parent NodeId for id, or id itself if no
parent is registered in this map.