Searched refs:visit_type (Results 1 – 10 of 10) sorted by relevance
4 fn visit_type(&mut self, ty: &'a Type) { in visit_type() method5 visit_type(self, ty); in visit_type()9 pub fn visit_type<'a, V>(visitor: &mut V, ty: &'a Type) in visit_type() function20 | Type::RustVec(ty) => visitor.visit_type(&ty.inner), in visit_type()21 Type::Ref(r) => visitor.visit_type(&r.inner), in visit_type()22 Type::Ptr(p) => visitor.visit_type(&p.inner), in visit_type()23 Type::Array(a) => visitor.visit_type(&a.inner), in visit_type()24 Type::SliceRef(s) => visitor.visit_type(&s.inner), in visit_type()27 visitor.visit_type(ret); in visit_type()30 visitor.visit_type(&arg.ty); in visit_type()
48 fn visit_type(&mut self, ty: &'a Type) { in collect() method50 visit::visit_type(self, ty); in collect()54 CollectTypes(all).visit_type(ty); in collect()
566 fn visit_type(&mut self, ty: &'t Type) { in check_mut_return_restriction() method578 visit::visit_type(self, ty); in check_mut_return_restriction()585 visitor.visit_type(&arg.ty); in check_mut_return_restriction()
124 self.visit_type(&field.ty); in with_bound()148 fn visit_type(&mut self, ty: &'ast syn::Type) { in with_bound() method150 syn::Type::Array(ty) => self.visit_type(&ty.elem), in with_bound()153 self.visit_type(&arg.ty); in with_bound()157 syn::Type::Group(ty) => self.visit_type(&ty.elem), in with_bound()164 syn::Type::Paren(ty) => self.visit_type(&ty.elem), in with_bound()167 self.visit_type(&qself.ty); in with_bound()171 syn::Type::Ptr(ty) => self.visit_type(&ty.elem), in with_bound()172 syn::Type::Reference(ty) => self.visit_type(&ty.elem), in with_bound()173 syn::Type::Slice(ty) => self.visit_type(&ty.elem), in with_bound()[all …]
103 VisitType visit_type = slices_to_visit_.front().second; in VisitAll() local109 if (visit_type != VisitType::VIA_RELATIVE) { in VisitAll()115 visit_type != VisitType::VIA_OUTGOING_FLOW) { in VisitAll()119 visit_type != VisitType::VIA_INCOMING_FLOW) { in VisitAll()
376 when Integer then visit_type( tree, nil, what, &block )394 def visit_type( tree, parent, type, &block ) method in ANTLR3.AST.Wizard399 visit_type( child, tree, type, &block )
650 fn visit_type(&mut self, i: &'ast Type) { in visit_type() method651 visit_type(self, i); in visit_type()863 v.visit_type(&node.ty); in visit_bare_fn_arg()964 v.visit_type(&node.ty); in visit_binding()1003 v.visit_type(&node.ty); in visit_const_param()1367 v.visit_type(&*node.ty); in visit_expr_cast()1717 v.visit_type(&*node.ty); in visit_expr_type()1784 v.visit_type(&node.ty); in visit_field()1949 v.visit_type(&*node.ty); in visit_foreign_item_static()1975 v.visit_type(_binding_0); in visit_generic_argument()[all …]
273 template <typename T> struct visit_type { using type = T; }; struct276 template <> struct visit_type<type_> { using type = visit_type_; }303 typename_ visit_type<value_type>::type expected = value; \
499 FromTypeParamVisit(&input.generics.params, &mut ret).visit_type(ty); in impl_block()
485 btl.visit_type(&field.ty); in get_ty_params()