[][src]Trait rustc_ap_rustc_expand::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
    );
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(&mut self);
fn has_derive_copy(&self, expn_id: ExpnId) -> bool;
fn add_derive_copy(&mut self, expn_id: ExpnId);
fn cfg_accessible(
        &mut self,
        expn_id: ExpnId,
        path: &Path
    ) -> Result<bool, Indeterminate>; }

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
)

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(&mut self)

fn has_derive_copy(&self, expn_id: ExpnId) -> bool

fn add_derive_copy(&mut self, expn_id: ExpnId)

fn cfg_accessible(
    &mut self,
    expn_id: ExpnId,
    path: &Path
) -> Result<bool, Indeterminate>

Loading content...

Implementors

Loading content...