Lines Matching refs:ret
234 ret := make(Paths, len(paths))
236 ret[i] = PathForSource(ctx, path)
238 return ret
245 ret := make(Paths, 0, len(paths))
249 ret = append(ret, p.Path())
252 return ret
273 ret, missingDeps := PathsAndMissingDepsForModuleSrcExcludes(ctx, paths, excludes)
281 return ret
292 ret := make(Paths, len(p))
294 ret[i] = path
296 return ret
304 ret := make([]string, len(p))
306 ret[i] = path.String()
308 return ret
441 ret := make(Paths, 0, len(paths))
460 ret = append(ret, srcPath)
462 return ret
482 ret := make([]string, len(p))
484 ret[i] = path.String()
486 return ret
565 ret := make(Paths, len(list))
567 ret[i] = list[len(list)-1-i]
569 return ret
615 ret := make(Paths, 0, len(p))
618 ret = append(ret, path)
621 return ret
626 ret := make(Paths, 0, len(p))
629 ret = append(ret, path)
632 return ret
641 ret := append(DirectorySortedPaths(nil), paths...)
642 sort.Slice(ret, func(i, j int) bool {
643 return ret[i].String() < ret[j].String()
645 return ret
656 ret := p[start:]
658 end := sort.Search(len(ret), func(i int) bool {
659 return !strings.HasPrefix(ret[i].String(), prefix)
662 ret = ret[:end]
664 return Paths(ret)
675 ret := make([]string, len(p))
677 ret[i] = path.String()
679 return ret
687 ret := make(Paths, len(p))
689 ret[i] = path
691 return ret
741 ret := SourcePath{basePath{p, ctx.Config(), ""}}
743 return ret, err
747 if strings.HasPrefix(ret.String(), ctx.Config().buildDir) {
748 return ret, fmt.Errorf("source path %q is in output", ret.String())
751 return ret, err
757 ret := SourcePath{basePath{p, ctx.Config(), ""}}
759 return ret, err
763 if strings.HasPrefix(ret.String(), ctx.Config().buildDir) {
764 return ret, fmt.Errorf("source path %q is in output", ret.String())
767 return ret, nil
954 ret := make(WritablePaths, len(paths))
956 ret[i] = PathForOutput(ctx, path)
958 return ret
982 ret := PathForOutput(ctx, pathtools.ReplaceExtension(p.path, ext))
983 ret.rel = pathtools.ReplaceExtension(p.rel, ext)
984 return ret
994 ret := PathForOutput(ctx, filepath.Dir(p.path), path)
995 ret.rel = filepath.Join(filepath.Dir(p.rel), path)
996 return ret
1286 ret := pathForInstall(ctx, os, partition, ctx.Debug(), pathComponents...)
1289 ret = ret.ToMakePath()
1292 return ret
1323 ret := InstallPath{basePath{path, ctx.Config(), ""}, ""}
1325 return ret
1402 ret := make(Paths, len(p))
1404 ret[i] = path
1406 return ret
1414 ret := make([]string, len(p))
1416 ret[i] = path.String()
1418 return ret