[−][src]Struct rustc_save_analysis::dump_visitor::DumpVisitor
Fields
save_ctxt: SaveContext<'tcx>tcx: TyCtxt<'tcx>dumper: Dumperspan: SpanUtils<'tcx>Implementations
impl<'tcx> DumpVisitor<'tcx>[src]
pub fn new(save_ctxt: SaveContext<'tcx>) -> DumpVisitor<'tcx>[src]
pub fn analysis(&self) -> &Analysis[src]
pub(in dump_visitor) fn nest_typeck_results<F>(
&mut self,
item_def_id: LocalDefId,
f: F
) where
F: FnOnce(&mut Self), [src]
&mut self,
item_def_id: LocalDefId,
f: F
) where
F: FnOnce(&mut Self),
pub(in dump_visitor) fn span_from_span(
&self,
span: Span
) -> SpanData[src]
&self,
span: Span
) -> SpanData
pub(in dump_visitor) fn lookup_def_id(
&self,
ref_id: HirId
) -> Option<DefId>[src]
&self,
ref_id: HirId
) -> Option<DefId>
pub fn dump_crate_info(&mut self, name: &str, krate: &Crate<'_>)[src]
pub fn dump_compilation_options(&mut self, input: &Input, crate_name: &str)[src]
pub(in dump_visitor) fn write_segments(
&mut self,
segments: impl IntoIterator<Item = &'tcx PathSegment<'tcx>>
)[src]
&mut self,
segments: impl IntoIterator<Item = &'tcx PathSegment<'tcx>>
)
pub(in dump_visitor) fn write_sub_paths(
&mut self,
path: &'tcx Path<'tcx>
)[src]
&mut self,
path: &'tcx Path<'tcx>
)
pub(in dump_visitor) fn write_sub_paths_truncated(
&mut self,
path: &'tcx Path<'tcx>
)[src]
&mut self,
path: &'tcx Path<'tcx>
)
pub(in dump_visitor) fn process_formals(
&mut self,
formals: &'tcx [Param<'tcx>],
qualname: &str
)[src]
&mut self,
formals: &'tcx [Param<'tcx>],
qualname: &str
)
pub(in dump_visitor) fn process_method(
&mut self,
sig: &'tcx FnSig<'tcx>,
body: Option<BodyId>,
hir_id: HirId,
ident: Ident,
generics: &'tcx Generics<'tcx>,
vis: &Visibility<'tcx>,
span: Span
)[src]
&mut self,
sig: &'tcx FnSig<'tcx>,
body: Option<BodyId>,
hir_id: HirId,
ident: Ident,
generics: &'tcx Generics<'tcx>,
vis: &Visibility<'tcx>,
span: Span
)
pub(in dump_visitor) fn process_struct_field_def(
&mut self,
field: &'tcx StructField<'tcx>,
parent_id: HirId
)[src]
&mut self,
field: &'tcx StructField<'tcx>,
parent_id: HirId
)
pub(in dump_visitor) fn process_generic_params(
&mut self,
generics: &'tcx Generics<'tcx>,
prefix: &str,
id: HirId
)[src]
&mut self,
generics: &'tcx Generics<'tcx>,
prefix: &str,
id: HirId
)
pub(in dump_visitor) fn process_fn(
&mut self,
item: &'tcx Item<'tcx>,
decl: &'tcx FnDecl<'tcx>,
_header: &'tcx FnHeader,
ty_params: &'tcx Generics<'tcx>,
body: BodyId
)[src]
&mut self,
item: &'tcx Item<'tcx>,
decl: &'tcx FnDecl<'tcx>,
_header: &'tcx FnHeader,
ty_params: &'tcx Generics<'tcx>,
body: BodyId
)
pub(in dump_visitor) fn process_static_or_const_item(
&mut self,
item: &'tcx Item<'tcx>,
typ: &'tcx Ty<'tcx>,
expr: &'tcx Expr<'tcx>
)[src]
&mut self,
item: &'tcx Item<'tcx>,
typ: &'tcx Ty<'tcx>,
expr: &'tcx Expr<'tcx>
)
pub(in dump_visitor) fn process_assoc_const(
&mut self,
hir_id: HirId,
ident: Ident,
typ: &'tcx Ty<'tcx>,
expr: Option<&'tcx Expr<'tcx>>,
parent_id: DefId,
vis: &Visibility<'tcx>,
attrs: &'tcx [Attribute]
)[src]
&mut self,
hir_id: HirId,
ident: Ident,
typ: &'tcx Ty<'tcx>,
expr: Option<&'tcx Expr<'tcx>>,
parent_id: DefId,
vis: &Visibility<'tcx>,
attrs: &'tcx [Attribute]
)
pub(in dump_visitor) fn process_struct(
&mut self,
item: &'tcx Item<'tcx>,
def: &'tcx VariantData<'tcx>,
ty_params: &'tcx Generics<'tcx>
)[src]
&mut self,
item: &'tcx Item<'tcx>,
def: &'tcx VariantData<'tcx>,
ty_params: &'tcx Generics<'tcx>
)
pub(in dump_visitor) fn process_enum(
&mut self,
item: &'tcx Item<'tcx>,
enum_definition: &'tcx EnumDef<'tcx>,
ty_params: &'tcx Generics<'tcx>
)[src]
&mut self,
item: &'tcx Item<'tcx>,
enum_definition: &'tcx EnumDef<'tcx>,
ty_params: &'tcx Generics<'tcx>
)
pub(in dump_visitor) fn process_impl(
&mut self,
item: &'tcx Item<'tcx>,
generics: &'tcx Generics<'tcx>,
trait_ref: &'tcx Option<TraitRef<'tcx>>,
typ: &'tcx Ty<'tcx>,
impl_items: &'tcx [ImplItemRef<'tcx>]
)[src]
&mut self,
item: &'tcx Item<'tcx>,
generics: &'tcx Generics<'tcx>,
trait_ref: &'tcx Option<TraitRef<'tcx>>,
typ: &'tcx Ty<'tcx>,
impl_items: &'tcx [ImplItemRef<'tcx>]
)
pub(in dump_visitor) fn process_trait(
&mut self,
item: &'tcx Item<'tcx>,
generics: &'tcx Generics<'tcx>,
trait_refs: GenericBounds<'tcx>,
methods: &'tcx [TraitItemRef]
)[src]
&mut self,
item: &'tcx Item<'tcx>,
generics: &'tcx Generics<'tcx>,
trait_refs: GenericBounds<'tcx>,
methods: &'tcx [TraitItemRef]
)
pub(in dump_visitor) fn process_mod(
&mut self,
item: &'tcx Item<'tcx>
)[src]
&mut self,
item: &'tcx Item<'tcx>
)
pub(in dump_visitor) fn dump_path_ref(
&mut self,
id: HirId,
path: &QPath<'tcx>
)[src]
&mut self,
id: HirId,
path: &QPath<'tcx>
)
pub(in dump_visitor) fn dump_path_segment_ref(
&mut self,
id: HirId,
segment: &PathSegment<'tcx>
)[src]
&mut self,
id: HirId,
segment: &PathSegment<'tcx>
)
pub(in dump_visitor) fn process_path(
&mut self,
id: HirId,
path: &QPath<'tcx>
)[src]
&mut self,
id: HirId,
path: &QPath<'tcx>
)
pub(in dump_visitor) fn process_struct_lit(
&mut self,
ex: &'tcx Expr<'tcx>,
path: &'tcx QPath<'tcx>,
fields: &'tcx [Field<'tcx>],
variant: &'tcx VariantDef,
rest: Option<&'tcx Expr<'tcx>>
)[src]
&mut self,
ex: &'tcx Expr<'tcx>,
path: &'tcx QPath<'tcx>,
fields: &'tcx [Field<'tcx>],
variant: &'tcx VariantDef,
rest: Option<&'tcx Expr<'tcx>>
)
pub(in dump_visitor) fn process_method_call(
&mut self,
ex: &'tcx Expr<'tcx>,
seg: &'tcx PathSegment<'tcx>,
args: &'tcx [Expr<'tcx>]
)[src]
&mut self,
ex: &'tcx Expr<'tcx>,
seg: &'tcx PathSegment<'tcx>,
args: &'tcx [Expr<'tcx>]
)
pub(in dump_visitor) fn process_pat(
&mut self,
p: &'tcx Pat<'tcx>
)[src]
&mut self,
p: &'tcx Pat<'tcx>
)
pub(in dump_visitor) fn process_var_decl(
&mut self,
pat: &'tcx Pat<'tcx>
)[src]
&mut self,
pat: &'tcx Pat<'tcx>
)
pub(in dump_visitor) fn process_macro_use(
&mut self,
_span: Span
)[src]
&mut self,
_span: Span
)
Extracts macro use and definition information from the AST node defined by the given NodeId, using the expansion information from the node's span.
If the span is not macro-generated, do nothing, else use callee and callsite spans to record macro definition and use data, using the mac_uses and mac_defs sets to prevent multiples.
pub(in dump_visitor) fn process_trait_item(
&mut self,
trait_item: &'tcx TraitItem<'tcx>,
trait_id: DefId
)[src]
&mut self,
trait_item: &'tcx TraitItem<'tcx>,
trait_id: DefId
)
pub(in dump_visitor) fn process_impl_item(
&mut self,
impl_item: &'tcx ImplItem<'tcx>,
impl_id: DefId
)[src]
&mut self,
impl_item: &'tcx ImplItem<'tcx>,
impl_id: DefId
)
pub(crate) fn process_crate(&mut self, krate: &'tcx Crate<'tcx>)[src]
pub(in dump_visitor) fn process_bounds(
&mut self,
bounds: GenericBounds<'tcx>
)[src]
&mut self,
bounds: GenericBounds<'tcx>
)
Trait Implementations
impl<'tcx> Visitor<'tcx> for DumpVisitor<'tcx>[src]
type Map = Map<'tcx>
pub fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map>[src]
pub fn visit_item(&mut self, item: &'tcx Item<'tcx>)[src]
pub fn visit_generics(&mut self, generics: &'tcx Generics<'tcx>)[src]
pub fn visit_ty(&mut self, t: &'tcx Ty<'tcx>)[src]
pub fn visit_expr(&mut self, ex: &'tcx Expr<'tcx>)[src]
pub fn visit_pat(&mut self, p: &'tcx Pat<'tcx>)[src]
pub fn visit_arm(&mut self, arm: &'tcx Arm<'tcx>)[src]
pub fn visit_qpath(&mut self, path: &'tcx QPath<'tcx>, id: HirId, _: Span)[src]
pub fn visit_stmt(&mut self, s: &'tcx Stmt<'tcx>)[src]
pub fn visit_local(&mut self, l: &'tcx Local<'tcx>)[src]
pub fn visit_foreign_item(&mut self, item: &'tcx ForeignItem<'tcx>)[src]
pub fn visit_nested_item(&mut self, id: ItemId)[src]
pub fn visit_nested_trait_item(&mut self, id: TraitItemId)[src]
pub fn visit_nested_impl_item(&mut self, id: ImplItemId)[src]
pub fn visit_nested_body(&mut self, id: BodyId)[src]
pub fn visit_param(&mut self, param: &'v Param<'v>)[src]
pub fn visit_body(&mut self, b: &'v Body<'v>)[src]
pub fn as_deep_visitor(&mut self) -> DeepVisitor<'_, Self>[src]
pub fn visit_id(&mut self, _hir_id: HirId)[src]
pub fn visit_name(&mut self, _span: Span, _name: Symbol)[src]
pub fn visit_ident(&mut self, ident: Ident)[src]
pub fn visit_mod(&mut self, m: &'v Mod<'v>, _s: Span, n: HirId)[src]
pub fn visit_block(&mut self, b: &'v Block<'v>)[src]
pub fn visit_anon_const(&mut self, c: &'v AnonConst)[src]
pub fn visit_generic_param(&mut self, p: &'v GenericParam<'v>)[src]
pub fn visit_where_predicate(&mut self, predicate: &'v WherePredicate<'v>)[src]
pub fn visit_fn_decl(&mut self, fd: &'v FnDecl<'v>)[src]
pub fn visit_fn(
&mut self,
fk: FnKind<'v>,
fd: &'v FnDecl<'v>,
b: BodyId,
s: Span,
id: HirId
)[src]
&mut self,
fk: FnKind<'v>,
fd: &'v FnDecl<'v>,
b: BodyId,
s: Span,
id: HirId
)
pub fn visit_use(&mut self, path: &'v Path<'v>, hir_id: HirId)[src]
pub fn visit_trait_item(&mut self, ti: &'v TraitItem<'v>)[src]
pub fn visit_trait_item_ref(&mut self, ii: &'v TraitItemRef)[src]
pub fn visit_impl_item(&mut self, ii: &'v ImplItem<'v>)[src]
pub fn visit_impl_item_ref(&mut self, ii: &'v ImplItemRef<'v>)[src]
pub fn visit_trait_ref(&mut self, t: &'v TraitRef<'v>)[src]
pub fn visit_param_bound(&mut self, bounds: &'v GenericBound<'v>)[src]
pub fn visit_poly_trait_ref(
&mut self,
t: &'v PolyTraitRef<'v>,
m: TraitBoundModifier
)[src]
&mut self,
t: &'v PolyTraitRef<'v>,
m: TraitBoundModifier
)
pub fn visit_variant_data(
&mut self,
s: &'v VariantData<'v>,
Symbol,
&'v Generics<'v>,
_parent_id: HirId,
Span
)[src]
&mut self,
s: &'v VariantData<'v>,
Symbol,
&'v Generics<'v>,
_parent_id: HirId,
Span
)
pub fn visit_struct_field(&mut self, s: &'v StructField<'v>)[src]
pub fn visit_enum_def(
&mut self,
enum_definition: &'v EnumDef<'v>,
generics: &'v Generics<'v>,
item_id: HirId,
Span
)[src]
&mut self,
enum_definition: &'v EnumDef<'v>,
generics: &'v Generics<'v>,
item_id: HirId,
Span
)
pub fn visit_variant(
&mut self,
v: &'v Variant<'v>,
g: &'v Generics<'v>,
item_id: HirId
)[src]
&mut self,
v: &'v Variant<'v>,
g: &'v Generics<'v>,
item_id: HirId
)
pub fn visit_label(&mut self, label: &'v Label)[src]
pub fn visit_generic_arg(&mut self, generic_arg: &'v GenericArg<'v>)[src]
pub fn visit_lifetime(&mut self, lifetime: &'v Lifetime)[src]
pub fn visit_path(&mut self, path: &'v Path<'v>, _id: HirId)[src]
pub fn visit_path_segment(
&mut self,
path_span: Span,
path_segment: &'v PathSegment<'v>
)[src]
&mut self,
path_span: Span,
path_segment: &'v PathSegment<'v>
)
pub fn visit_generic_args(
&mut self,
path_span: Span,
generic_args: &'v GenericArgs<'v>
)[src]
&mut self,
path_span: Span,
generic_args: &'v GenericArgs<'v>
)
pub fn visit_assoc_type_binding(&mut self, type_binding: &'v TypeBinding<'v>)[src]
pub fn visit_attribute(&mut self, _attr: &'v Attribute)[src]
pub fn visit_macro_def(&mut self, macro_def: &'v MacroDef<'v>)[src]
pub fn visit_vis(&mut self, vis: &'v Spanned<VisibilityKind<'v>>)[src]
pub fn visit_associated_item_kind(&mut self, kind: &'v AssocItemKind)[src]
pub fn visit_defaultness(&mut self, defaultness: &'v Defaultness)[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for DumpVisitor<'tcx>
impl<'tcx> !Send for DumpVisitor<'tcx>
impl<'tcx> !Sync for DumpVisitor<'tcx>
impl<'tcx> Unpin for DumpVisitor<'tcx>
impl<'tcx> !UnwindSafe for DumpVisitor<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,