Home | History | Annotate | Download | only in dist

Lines Matching refs:srcFile

146 			srcFile := pathf("%s/%s", src, name)
148 text := bootstrapRewriteFile(srcFile)
218 // isUnneededSSARewriteFile reports whether srcFile is a
224 func isUnneededSSARewriteFile(srcFile string) (archCaps string, unneeded bool) {
225 if !strings.Contains(srcFile, ssaRewriteFileSubstring) {
228 fileArch := strings.TrimSuffix(strings.TrimPrefix(filepath.Base(srcFile), "rewrite"), ".go")
247 func bootstrapRewriteFile(srcFile string) string {
252 if archCaps, ok := isUnneededSSARewriteFile(srcFile); ok {
262 return bootstrapFixImports(srcFile)
265 func bootstrapFixImports(srcFile string) string {
266 lines := strings.SplitAfter(readfile(srcFile), "\n")
290 lines[0] = "// Code generated by go tool dist; DO NOT EDIT.\n// This is a bootstrap copy of " + srcFile + "\n\n//line " + srcFile + ":1\n" + lines[0]