- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for FileEnd (0.73 sec)
-
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)