(typ string)
| 65 | } |
| 66 | |
| 67 | func (i *importer) usesType(typ string) bool { |
| 68 | for _, strct := range i.Structs { |
| 69 | for _, f := range strct.Fields { |
| 70 | if hasPrefixIgnoringSliceAndPointerPrefix(f.Type, typ) { |
| 71 | return true |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | return false |
| 76 | } |
| 77 | |
| 78 | func (i *importer) HasImports(filename string) bool { |
| 79 | imports := i.Imports(filename) |
nothing calls this directly
no test coverage detected