- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for fileText (0.16 sec)
-
src/go/internal/gcimporter/support.go
// We use -64 because it is rare; see issue 20080 and CL 41619. // -64 is the smallest int that fits in a single byte as a varint. const deltaNewFile = -64 // Synthesize a token.Pos type fakeFileSet struct { fset *token.FileSet files map[string]*fileInfo } type fileInfo struct { file *token.File lastline int } const maxlines = 64 * 1024 func (s *fakeFileSet) pos(file string, line, column int) token.Pos {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/preferredimports/preferredimports.go
isTerminal = term.IsTerminal(int(os.Stdout.Fd())) logPrefix = "" aliases = map[*regexp.Regexp]string{} ) type analyzer struct { fset *token.FileSet // positions are relative to fset ctx build.Context failed bool donePaths map[string]interface{} } func newAnalyzer() *analyzer { ctx := build.Default ctx.CgoEnabled = true a := &analyzer{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:44 UTC 2024 - 7.1K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter.go
// the corresponding package object to the packages map, and returns the object. // The packages map must contain all packages already imported. func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error) { var rc io.ReadCloser var id string if lookup != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.4K bytes - Viewed (0) -
src/go/types/eval_test.go
"fmt" "go/ast" "go/importer" "go/parser" "go/token" "go/types" "internal/godebug" "internal/testenv" "strings" "testing" . "go/types" ) func testEval(t *testing.T, fset *token.FileSet, pkg *Package, pos token.Pos, expr string, typ Type, typStr, valStr string) { gotTv, err := Eval(fset, pkg, pos, expr) if err != nil { t.Errorf("Eval(%q) failed: %s", expr, err) return } if gotTv.Type == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go
// // The Run function should not call any of the Pass functions concurrently. type Pass struct { Analyzer *Analyzer // the identity of the current analyzer // syntax and type information Fset *token.FileSet // file position information; Run may add new files Files []*ast.File // the abstract syntax tree of each file OtherFiles []string // names of non-Go files of this package
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.1K bytes - Viewed (0)