(&mut self, field: &'ast syn::Field)
| 55 | |
| 56 | impl<'ast> FindTyParams<'ast> { |
| 57 | fn visit_field(&mut self, field: &'ast syn::Field) { |
| 58 | if let syn::Type::Path(ty) = ungroup(&field.ty) { |
| 59 | if let Some(Pair::Punctuated(t, _)) = ty.path.segments.pairs().next() { |
| 60 | if self.all_type_params.contains(&t.ident) { |
| 61 | self.associated_type_usage.push(ty); |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | self.visit_type(&field.ty); |
| 66 | } |
| 67 | |
| 68 | fn visit_path(&mut self, path: &'ast syn::Path) { |
| 69 | if let Some(seg) = path.segments.last() { |
no test coverage detected