- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for FileStart (0.11 sec)
-
src/go/ast/filter.go
filenames[i] = filename i++ if f.Doc != nil { ndocs += len(f.Doc.List) + 1 // +1 for separator } ncomments += len(f.Comments) ndecls += len(f.Decls) if i == 0 || f.FileStart < minPos { minPos = f.FileStart } if i == 0 || f.FileEnd > maxPos { maxPos = f.FileEnd } } slices.Sort(filenames) // Collect package comments from all package files into a single
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/parser/parser_test.go
if err != nil { t.Fatal(err) } // File{Start,End} spans the entire file, not just the declarations. if got, want := fset.Position(f.FileStart).String(), "file.go:1:1"; got != want { t.Errorf("for File.FileStart, got %s, want %s", got, want) } // The end position is the newline at the end of the /* end of file */ line.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
if slicesContains(pass.OtherFiles, filename) || slicesContains(pass.IgnoredFiles, filename) { return nil } for _, f := range pass.Files { // TODO(adonovan): use go1.20 f.FileStart if pass.Fset.File(f.Pos()).Name() == filename { return nil } } return fmt.Errorf("Pass.ReadFile: %s is not among OtherFiles, IgnoredFiles, or names of Files", filename) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/go/ast/ast.go
Doc *CommentGroup // associated documentation; or nil Package token.Pos // position of "package" keyword Name *Ident // package name Decls []Decl // top-level declarations; or nil FileStart, FileEnd token.Pos // start and end of entire file Scope *Scope // package scope (this file only). Deprecated: see Object Imports []*ImportSpec // imports in this file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0)