- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for FileEnd (0.19 sec)
-
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/go/ast/filter.go
} 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 // CommentGroup - the collected package documentation. In general
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
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. if got, want := fset.Position(f.FileEnd).String(), "file.go:10:19"; got != want { t.Errorf("for File.FileEnd, got %s, want %s", got, want) } } // TestIncompleteSelection ensures that an incomplete selector // expression is parsed as a (blank) *ast.SelectorExpr, not a // *ast.BadExpr.
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/go/ast/ast.go
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) -
src/go/parser/parser.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"FieldList.List", Field, 0}, {"FieldList.Opening", Field, 0}, {"File", Type, 0}, {"File.Comments", Field, 0}, {"File.Decls", Field, 0}, {"File.Doc", Field, 0}, {"File.FileEnd", Field, 20}, {"File.FileStart", Field, 20}, {"File.GoVersion", Field, 21}, {"File.Imports", Field, 0}, {"File.Name", Field, 0}, {"File.Package", Field, 0}, {"File.Scope", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.20.txt
pkg encoding/xml, method (*Encoder) Close() error #53346 pkg errors, func Join(...error) error #53435 pkg fmt, func FormatString(State, int32) string #51668 pkg go/ast, type File struct, FileEnd token.Pos #53202 pkg go/ast, type File struct, FileStart token.Pos #53202 pkg go/ast, type RangeStmt struct, Range token.Pos #50429 pkg go/token, method (*FileSet) RemoveFile(*File) #53200
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 21:23:32 UTC 2023 - 602.6K bytes - Viewed (0)