• Home
  • Raw
  • Download

Lines Matching refs:ty

44             ty: Box::new(Type::Path(self.self_ty(span))),  in self_to_qself()
75 fn visit_type_mut(&mut self, ty: &mut Type) { in visit_type_mut()
76 let span = if let Type::Path(node) = ty { in visit_type_mut()
84 self.visit_type_mut_impl(ty); in visit_type_mut()
87 *ty = self.self_ty(span).into(); in visit_type_mut()
91 fn visit_type_path_mut(&mut self, ty: &mut TypePath) { in visit_type_path_mut()
92 if ty.qself.is_none() { in visit_type_path_mut()
93 self.self_to_qself(&mut ty.qself, &mut ty.path); in visit_type_path_mut()
95 self.visit_type_path_mut_impl(ty); in visit_type_path_mut()
108 fn visit_type_mut_impl(&mut self, ty: &mut Type) { in visit_type_mut_impl()
109 match ty { in visit_type_mut_impl()
110 Type::Array(ty) => { in visit_type_mut_impl()
111 self.visit_type_mut(&mut ty.elem); in visit_type_mut_impl()
112 self.visit_expr_mut(&mut ty.len); in visit_type_mut_impl()
114 Type::BareFn(ty) => { in visit_type_mut_impl()
115 for arg in &mut ty.inputs { in visit_type_mut_impl()
116 self.visit_type_mut(&mut arg.ty); in visit_type_mut_impl()
118 self.visit_return_type_mut(&mut ty.output); in visit_type_mut_impl()
120 Type::Group(ty) => self.visit_type_mut(&mut ty.elem), in visit_type_mut_impl()
121 Type::ImplTrait(ty) => { in visit_type_mut_impl()
122 for bound in &mut ty.bounds { in visit_type_mut_impl()
126 Type::Macro(ty) => self.visit_macro_mut(&mut ty.mac), in visit_type_mut_impl()
127 Type::Paren(ty) => self.visit_type_mut(&mut ty.elem), in visit_type_mut_impl()
128 Type::Path(ty) => { in visit_type_mut_impl()
129 if let Some(qself) = &mut ty.qself { in visit_type_mut_impl()
130 self.visit_type_mut(&mut qself.ty); in visit_type_mut_impl()
132 self.visit_path_mut(&mut ty.path); in visit_type_mut_impl()
134 Type::Ptr(ty) => self.visit_type_mut(&mut ty.elem), in visit_type_mut_impl()
135 Type::Reference(ty) => self.visit_type_mut(&mut ty.elem), in visit_type_mut_impl()
136 Type::Slice(ty) => self.visit_type_mut(&mut ty.elem), in visit_type_mut_impl()
137 Type::TraitObject(ty) => { in visit_type_mut_impl()
138 for bound in &mut ty.bounds { in visit_type_mut_impl()
142 Type::Tuple(ty) => { in visit_type_mut_impl()
143 for elem in &mut ty.elems { in visit_type_mut_impl()
157 fn visit_type_path_mut_impl(&mut self, ty: &mut TypePath) { in visit_type_path_mut_impl()
158 if let Some(qself) = &mut ty.qself { in visit_type_path_mut_impl()
159 self.visit_type_mut(&mut qself.ty); in visit_type_path_mut_impl()
161 self.visit_path_mut(&mut ty.path); in visit_type_path_mut_impl()
166 self.visit_type_mut(&mut qself.ty); in visit_expr_path_mut_impl()
184 GenericArgument::Binding(arg) => self.visit_type_mut(&mut arg.ty), in visit_path_arguments_mut()
244 self.visit_type_mut(&mut field.ty); in visit_data_mut()
250 self.visit_type_mut(&mut field.ty); in visit_data_mut()
272 self.visit_type_mut(&mut expr.ty); in visit_expr_mut()