type go/token.File
34 uses
go/token (current package)
position.go#L99: type File struct {
position.go#L112: func (f *File) Name() string {
position.go#L117: func (f *File) Base() int {
position.go#L122: func (f *File) Size() int {
position.go#L127: func (f *File) LineCount() int {
position.go#L138: func (f *File) AddLine(offset int) {
position.go#L151: func (f *File) MergeLine(line int) {
position.go#L178: func (f *File) SetLines(lines []int) bool {
position.go#L196: func (f *File) SetLinesForContent(content []byte) {
position.go#L218: func (f *File) LineStart(line int) Pos {
position.go#L243: func (f *File) AddLineInfo(offset int, filename string, line int) {
position.go#L256: func (f *File) AddLineColumnInfo(offset int, filename string, line, column int) {
position.go#L268: func (f *File) Pos(offset int) Pos {
position.go#L279: func (f *File) Offset(p Pos) int {
position.go#L289: func (f *File) Line(p Pos) int {
position.go#L301: func (f *File) unpack(offset int, adjusted bool) (filename string, line, column int) {
position.go#L334: func (f *File) position(p Pos, adjusted bool) (pos Position) {
position.go#L346: func (f *File) PositionFor(p Pos, adjusted bool) (pos Position) {
position.go#L359: func (f *File) Position(p Pos) (pos Position) {
position.go#L389: files []*File // list of files in the order added to the set
position.go#L390: last *File // cache of last file looked up
position.go#L427: func (s *FileSet) AddFile(filename string, base, size int) *File {
position.go#L440: f := &File{set: s, name: filename, base: base, size: size, lines: []int{0}}
position.go#L455: func (s *FileSet) Iterate(f func(*File) bool) {
position.go#L457: var file *File
position.go#L469: func searchFiles(a []*File, x int) int {
position.go#L473: func (s *FileSet) file(p Pos) *File {
position.go#L500: func (s *FileSet) File(p Pos) (f *File) {
serialize.go#L30: files := make([]*File, len(ss.Files))
serialize.go#L33: files[i] = &File{
go/parser
parser.go#L31: file *token.File
go/scanner
scanner.go#L34: file *token.File // source file handle
scanner.go#L122: func (s *Scanner) Init(file *token.File, src []byte, err ErrorHandler, mode Mode) {
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L459: func synthesizeImportDecl(namedImports map[string]string, blankImports []ast.Spec, tfile *token.File) *ast.GenDecl {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |