type go/token.File

50 uses

	go/token (current package)
		position.go#L101: type File struct {
		position.go#L113: func (f *File) Name() string {
		position.go#L118: func (f *File) Base() int {
		position.go#L123: func (f *File) Size() int {
		position.go#L128: func (f *File) LineCount() int {
		position.go#L138: func (f *File) AddLine(offset int) {
		position.go#L150: func (f *File) MergeLine(line int) {
		position.go#L170: func (f *File) Lines() []int {
		position.go#L185: func (f *File) SetLines(lines []int) bool {
		position.go#L203: func (f *File) SetLinesForContent(content []byte) {
		position.go#L225: func (f *File) LineStart(line int) Pos {
		position.go#L249: func (f *File) AddLineInfo(offset int, filename string, line int) {
		position.go#L261: func (f *File) AddLineColumnInfo(offset int, filename string, line, column int) {
		position.go#L270: func (f *File) fixOffset(offset int) int {
		position.go#L302: func (f *File) Pos(offset int) Pos {
		position.go#L315: func (f *File) Offset(p Pos) int {
		position.go#L321: func (f *File) Line(p Pos) int {
		position.go#L340: func (f *File) unpack(offset int, adjusted bool) (filename string, line, column int) {
		position.go#L375: func (f *File) position(p Pos, adjusted bool) (pos Position) {
		position.go#L387: func (f *File) PositionFor(p Pos, adjusted bool) (pos Position) {
		position.go#L397: func (f *File) Position(p Pos) (pos Position) {
		position.go#L429: 	files []*File              // list of files in the order added to the set
		position.go#L430: 	last  atomic.Pointer[File] // cache of last file looked up
		position.go#L464: func (s *FileSet) AddFile(filename string, base, size int) *File {
		position.go#L466: 	f := &File{name: filename, size: size, lines: []int{0}}
		position.go#L498: func (s *FileSet) RemoveFile(file *File) {
		position.go#L513: func (s *FileSet) Iterate(f func(*File) bool) {
		position.go#L515: 		var file *File
		position.go#L527: func searchFiles(a []*File, x int) int {
		position.go#L528: 	i, found := slices.BinarySearchFunc(a, x, func(a *File, x int) int {
		position.go#L539: func (s *FileSet) file(p Pos) *File {
		position.go#L565: 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#L29: 	file    *token.File
		parser.go#L68: func (p *parser) init(file *token.File, src []byte, mode Mode) {
		resolver.go#L21: func resolveFile(file *ast.File, handle *token.File, declErr func(token.Pos, string)) {
		resolver.go#L60: 	handle  *token.File

	go/scanner
		scanner.go#L31: 	file *token.File  // source file handle
		scanner.go#L123: func (s *Scanner) Init(file *token.File, src []byte, err ErrorHandler, mode Mode) {

	golang.org/x/tools/internal/gcimporter
		bimport.go#L30: 	file     *token.File
		iexport.go#L460: func (p *iexporter) encodeFile(w *intWriter, file *token.File, needed []uint64) {
		iexport.go#L592: 	fileInfo  map[*token.File]uint64 // value is index in fileInfos
		iexport.go#L604: 	file   *token.File
		iexport.go#L643: func (p *iexporter) fileIndexAndOffset(file *token.File, pos token.Pos) (uint64, uint64) {
		iexport.go#L649: 			p.fileInfo = make(map[*token.File]uint64)
		iimport.go#L221: 		fileCache:   make([]*token.File, len(fileOffset)),
		iimport.go#L381: 	fileCache   []*token.File // memoized decoding of file encoded as i
		iimport.go#L456: func (p *iimporter) fileAt(index uint64) *token.File {
		iimport.go#L466: func (p *iimporter) decodeFile(rd intReader) *token.File {