Trait syntex_syntax::ext::base::Resolver [] [src]

pub trait Resolver {
    fn next_node_id(&mut self) -> NodeId;
    fn get_module_scope(&mut self, id: NodeId) -> Mark;
    fn visit_expansion(&mut self, mark: Mark, expansion: &Expansion);
    fn add_macro(&mut self, scope: Mark, def: MacroDef);
    fn add_ext(&mut self, ident: Ident, ext: Rc<SyntaxExtension>);
    fn add_expansions_at_stmt(&mut self, id: NodeId, macros: Vec<Mark>);
    fn find_attr_invoc(&mut self, attrs: &mut Vec<Attribute>) -> Option<Attribute>;
    fn find_extension(&mut self, scope: Mark, name: Name) -> Option<Rc<SyntaxExtension>>;
    fn find_mac(&mut self, scope: Mark, mac: &Mac) -> Option<Rc<SyntaxExtension>>;
    fn resolve_macro(&mut self, scope: Mark, path: &Path, force: bool) -> Result<Rc<SyntaxExtension>, Determinacy>;
}

Required Methods

fn next_node_id(&mut self) -> NodeId

fn get_module_scope(&mut self, id: NodeId) -> Mark

fn visit_expansion(&mut self, mark: Mark, expansion: &Expansion)

fn add_macro(&mut self, scope: Mark, def: MacroDef)

fn add_ext(&mut self, ident: Ident, ext: Rc<SyntaxExtension>)

fn add_expansions_at_stmt(&mut self, id: NodeId, macros: Vec<Mark>)

fn find_attr_invoc(&mut self, attrs: &mut Vec<Attribute>) -> Option<Attribute>

fn find_extension(&mut self, scope: Mark, name: Name) -> Option<Rc<SyntaxExtension>>

fn find_mac(&mut self, scope: Mark, mac: &Mac) -> Option<Rc<SyntaxExtension>>

fn resolve_macro(&mut self, scope: Mark, path: &Path, force: bool) -> Result<Rc<SyntaxExtension>, Determinacy>

Implementors