Lines Matching refs:basePath
458 srcPath.basePath.rel = srcPath.path
694 type basePath struct { struct
700 func (p basePath) Ext() string { argument
704 func (p basePath) Base() string { argument
708 func (p basePath) Rel() string { argument
715 func (p basePath) String() string { argument
719 func (p basePath) withRel(rel string) basePath { argument
727 basePath anonMember
733 p.basePath = p.basePath.withRel(rel)
741 ret := SourcePath{basePath{p, ctx.Config(), ""}}
757 ret := SourcePath{basePath{p, ctx.Config(), ""}}
901 basePath anonMember
906 p.basePath = p.basePath.withRel(rel)
912 p.basePath.rel = filepath.Base(p.basePath.path)
925 basePath anonMember
936 return toolDepPath{basePath{path, ctx.Config(), ""}}
949 return OutputPath{basePath{path, ctx.Config(), ""}, fullPath}
1052 path.basePath.rel = p
1237 basePath anonMember
1266 p.basePath = p.basePath.withRel(rel)
1323 ret := InstallPath{basePath{path, ctx.Config(), ""}, ""}
1334 return InstallPath{basePath{path, ctx.Config(), ""}, ""}
1452 return PhonyPath{basePath{phony, ctx.Config(), ""}}
1456 basePath anonMember
1469 basePath anonMember
1483 return testPath{basePath{path: p, rel: p}}
1513 func Rel(ctx PathContext, basePath string, targetPath string) string {
1514 rel, isRel := MaybeRel(ctx, basePath, targetPath)
1516 reportPathErrorf(ctx, "path %q is not under path %q", targetPath, basePath)
1524 func MaybeRel(ctx PathContext, basePath string, targetPath string) (string, bool) {
1525 rel, isRel, err := maybeRelErr(basePath, targetPath)
1532 func maybeRelErr(basePath string, targetPath string) (string, bool, error) {
1534 if filepath.IsAbs(basePath) != filepath.IsAbs(targetPath) {
1537 rel, err := filepath.Rel(basePath, targetPath)