Lines Matching refs:Dir
356 func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
357 filename := filepath.Join(dir, file)
387 pkgTags = map[string][]string{} // map import dir to list of relevant tags
391 // It is a comma-separated string; the first part is dir, the rest tags.
396 func tagKey(dir string, context *build.Context, tags []string) string {
408 key := dir
432 dir := filepath.Join(w.root, filepath.FromSlash(name))
433 if fi, err := os.Stat(dir); err != nil || !fi.IsDir() {
447 if tags, ok := pkgTags[dir]; ok {
448 key = tagKey(dir, context, tags)
456 info, err := context.ImportDir(dir, 0)
461 log.Fatalf("pkg %q, dir %q: ScanDir: %v", name, dir, err)
466 if _, ok := pkgTags[dir]; !ok {
467 pkgTags[dir] = info.AllTags
468 key = tagKey(dir, context, info.AllTags)
477 f, err := w.parseFile(dir, file)
605 switch typ.Dir() {