func (f *useFinder) visitFile(file *ast.File) ast.Visitor {
	f.queryPkgLocalName = ""

	for _, importSpec := range file.Imports {
		path, _ := strconv.Unquote(importSpec.Path.Value)
		if path == f.target.pkg.Path() {
			debugf("file %v imports pkg %v, entering", f.position(file.Name.Pos()), f.target.pkg.Path())
			return f
		}
	}
	return nil
}
// visitFile enters a file if it imports the package that the query is targeting
visitFile enters a file if it imports the package that the query is targeting
// visitFile enters a file if it imports the package that the query is targeting
func (f *useFinder) visitFile(file *ast.File) ast.Visitor {
	f.queryPkgLocalName = ""
	for _, importSpec := range file.Imports {
		path, _ := strconv.Unquote(importSpec.Path.Value)
		if path == f.target.pkg.Path() {
			debugf("file %v imports pkg %v, entering", f.position(file.Name.Pos()), f.target.pkg.Path())
			return f
		}
	}
	return nil
}
func ( f * useFinder ) visitFile ( file * ast . File ) ast . Visitor { f . queryPkgLocalName = " " for _ , importSpec := range file . Imports { path , _ := strconv . Unquote ( importSpec . Path . Value ) if path == f . target . pkg . Path ( ) { debugf ( " " , f . position ( file . Name . Pos ( ) ) , f . target . pkg . Path ( ) ) return f } } return nil }
visitFile enters a file if it imports the package that the query is targeting
visitFile enters a file if it imports the package that the query is targeting