Lines Matching refs:basePath

611 		srcPath.basePath.rel = srcPath.path
900 type basePath struct { struct
905 func (p basePath) Ext() string {
909 func (p basePath) Base() string {
913 func (p basePath) Rel() string {
920 func (p basePath) String() string {
924 func (p basePath) withRel(rel string) basePath {
932 basePath anonMember
946 p.basePath = p.basePath.withRel(rel)
954 ret := SourcePath{basePath{p, ""}, ctx.Config().srcDir}
970 ret := SourcePath{basePath{p, ""}, ctx.Config().srcDir}
1116 basePath anonMember
1125 p.basePath = p.basePath.withRel(rel)
1131 p.basePath.rel = filepath.Base(p.basePath.path)
1159 basePath anonMember
1175 return toolDepPath{basePath{path, ""}}
1188 return OutputPath{basePath{path, ""}, ctx.Config().buildDir, fullPath}
1291 path.basePath.rel = p
1509 basePath anonMember
1580 p.basePath = p.basePath.withRel(rel)
1648 basePath: basePath{partionPath, ""},
1659 basePath: basePath{prefix, ""},
1797 return PhonyPath{basePath{phony, ""}}
1801 basePath anonMember
1826 basePath anonMember
1847 return testPath{basePath{path: p, rel: p}}
1948 func Rel(ctx PathContext, basePath string, targetPath string) string {
1949 rel, isRel := MaybeRel(ctx, basePath, targetPath)
1951 ReportPathErrorf(ctx, "path %q is not under path %q", targetPath, basePath)
1959 func MaybeRel(ctx PathContext, basePath string, targetPath string) (string, bool) {
1960 rel, isRel, err := maybeRelErr(basePath, targetPath)
1967 func maybeRelErr(basePath string, targetPath string) (string, bool, error) {
1969 if filepath.IsAbs(basePath) != filepath.IsAbs(targetPath) {
1972 rel, err := filepath.Rel(basePath, targetPath)