- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for FileStart (0.91 sec)
-
src/runtime/metrics/description_test.go
} if updated { fmt.Fprintf(os.Stderr, "go test -generate: writing new doc.go\n") var buf bytes.Buffer buf.Write(src[:fdoc.Pos()-f.FileStart]) buf.WriteString("/*\n") buf.Write(new(comment.Printer).Comment(doc)) buf.WriteString("*/") buf.Write(src[fdoc.End()-f.FileStart:]) src, err := format.Source(buf.Bytes()) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 20 22:54:22 UTC 2023 - 3.9K bytes - Viewed (0) -
src/go/types/version.go
assert(pos.IsValid()) // Eval and CheckExpr tests may not have any source files. if len(check.files) == 0 { return nil } for _, file := range check.files { if file.FileStart <= pos && pos < file.FileEnd { return file } } panic(check.sprintf("file not found for pos = %d (%s)", int(pos), check.fset.Position(pos)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 23:12:40 UTC 2024 - 3.2K bytes - Viewed (0) -
src/go/ast/example_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:44:50 UTC 2024 - 6.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go
ResultOf map[*Analyzer]interface{} // ReadFile returns the contents of the named file. // // The only valid file names are the elements of OtherFiles // and IgnoredFiles, and names returned by // Fset.File(f.FileStart).Name() for each f in Files. // // Analyzers must use this function (if provided) instead of // accessing the file system directly. This allows a driver to // provide a virtualized file tree (including, for example,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.1K bytes - Viewed (0)