MCPcopy Index your code
hub / github.com/SoftbearStudios/bitcode / visit_field

Method visit_field

bitcode_derive/src/bound.rs:57–66  ·  view source on GitHub ↗
(&mut self, field: &'ast syn::Field)

Source from the content-addressed store, hash-verified

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() {

Callers 1

with_boundFunction · 0.80

Calls 2

ungroupFunction · 0.85
visit_typeMethod · 0.80

Tested by

no test coverage detected