Struct syntax::ext::base::SyntaxEnvUnstable [-] [+] [src]

pub struct SyntaxEnv {
    // some fields omitted
}

In order to have some notion of scoping for macros, we want to implement the notion of a transformation environment.

This environment maps Names to SyntaxExtensions.

Methods

impl SyntaxEnv

fn push_frame(&mut self)

fn pop_frame(&mut self)

fn find(&self, k: &Name) -> Option<Rc<SyntaxExtension>>

fn insert(&mut self, k: Name, v: SyntaxExtension)

fn info<'a>(&'a mut self) -> &'a mut BlockInfo