type go/token.File

46 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#L32: 	file    *token.File
		resolver.go#L21: func resolveFile(file *ast.File, handle *token.File, declErr func(token.Pos, string)) {
		resolver.go#L58: 	handle  *token.File

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

	golang.org/x/tools/internal/gcimporter
		bimport.go#L346: 	file     *token.File
		iexport.go#L201: func (p *iexporter) encodeFile(w *intWriter, file *token.File, needed []uint64) {
		iexport.go#L332: 	fileInfo  map[*token.File]uint64 // value is index in fileInfos
		iexport.go#L344: 	file   *token.File
		iexport.go#L372: func (p *iexporter) fileIndexAndOffset(file *token.File, pos token.Pos) (uint64, uint64) {
		iexport.go#L378: 			p.fileInfo = make(map[*token.File]uint64)
		iimport.go#L167: 		fileCache:   make([]*token.File, len(fileOffset)),
		iimport.go#L299: 	fileCache   []*token.File // memoized decoding of file encoded as i
		iimport.go#L372: func (p *iimporter) fileAt(index uint64) *token.File {
		iimport.go#L382: func (p *iimporter) decodeFile(rd intReader) *token.File {

	golang.org/x/tools/internal/tokeninternal
		tokeninternal.go#L16: func GetLines(file *token.File) []int {