Lines Matching refs:ext
218 ReplaceExtension(ctx PathContext, ext string) OutputPath
222 genPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleGenPath
225 objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath
233 func GenPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleGenPath {
235 return path.genPathWithExt(ctx, subdir, ext)
243 func ObjPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleObjPath {
245 return path.objPathWithExt(ctx, subdir, ext)
795 func (p Paths) HasExt(ext string) bool {
797 if path.Ext() == ext {
806 func (p Paths) FilterByExt(ext string) Paths {
809 if path.Ext() == ext {
817 func (p Paths) FilterOutByExt(ext string) Paths {
820 if path.Ext() != ext {
1149 func (p OutputPath) objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath {
1150 return PathForModuleObj(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
1217 func (p OutputPath) ReplaceExtension(ctx PathContext, ext string) OutputPath {
1218 if strings.Contains(ext, "/") {
1219 ReportPathErrorf(ctx, "extension %q cannot contain /", ext)
1221 ret := PathForOutput(ctx, pathtools.ReplaceExtension(p.path, ext))
1222 ret.rel = pathtools.ReplaceExtension(p.rel, ext)
1326 func (p SourcePath) genPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleGenPath {
1327 return PathForModuleGen(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
1330 func (p SourcePath) objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath {
1331 return PathForModuleObj(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
1352 func (p ModuleOutPath) objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath {
1353 return PathForModuleObj(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
1395 var ext string
1397 ext = ".lsdump.gz"
1399 ext = ".lsdump"
1404 fileName+ext)
1449 func (p ModuleGenPath) genPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleGenPath {
1451 return PathForModuleGen(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
1454 func (p ModuleGenPath) objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath {
1455 return PathForModuleObj(ctx, subdir, pathtools.ReplaceExtension(p.path, ext))
1540 func (p InstallPath) ReplaceExtension(ctx PathContext, ext string) OutputPath {
1818 func (p PhonyPath) ReplaceExtension(ctx PathContext, ext string) OutputPath {