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

pub trait Resolver {
    fn next_node_id(&mut self) -> NodeId;
fn resolve_dollar_crates(&mut self);
fn visit_ast_fragment_with_placeholders(
        &mut self,
        expn_id: ExpnId,
        fragment: &AstFragment,
        extra_placeholders: &[NodeId]
    );
fn register_builtin_macro(&mut self, ident: Ident, ext: SyntaxExtension);
fn expansion_for_ast_pass(
        &mut self,
        call_site: Span,
        pass: AstPass,
        features: &[Symbol],
        parent_module_id: Option<NodeId>
    ) -> ExpnId;
fn resolve_imports(&mut self);
fn resolve_macro_invocation(
        &mut self,
        invoc: &Invocation,
        eager_expansion_root: ExpnId,
        force: bool
    ) -> Result<InvocationRes, Indeterminate>;
fn check_unused_macros(&self);
fn has_derives(&self, expn_id: ExpnId, derives: SpecialDerives) -> bool;
fn add_derives(&mut self, expn_id: ExpnId, derives: SpecialDerives); }

Required methods

fn next_node_id(&mut self) -> NodeId

fn resolve_dollar_crates(&mut self)

fn visit_ast_fragment_with_placeholders(
    &mut self,
    expn_id: ExpnId,
    fragment: &AstFragment,
    extra_placeholders: &[NodeId]
)

fn register_builtin_macro(&mut self, ident: Ident, ext: SyntaxExtension)

fn expansion_for_ast_pass(
    &mut self,
    call_site: Span,
    pass: AstPass,
    features: &[Symbol],
    parent_module_id: Option<NodeId>
) -> ExpnId

fn resolve_imports(&mut self)

fn resolve_macro_invocation(
    &mut self,
    invoc: &Invocation,
    eager_expansion_root: ExpnId,
    force: bool
) -> Result<InvocationRes, Indeterminate>

fn check_unused_macros(&self)

fn has_derives(&self, expn_id: ExpnId, derives: SpecialDerives) -> bool

fn add_derives(&mut self, expn_id: ExpnId, derives: SpecialDerives)

Loading content...

Implementors

Loading content...