Lines Matching defs:File
99 type File struct { struct
100 set *FileSet
101 name string // file name as provided to AddFile
102 base int // Pos value range for this file is [base...base+size]
103 size int // file size as provided to AddFile
106 mutex sync.Mutex
107 …int // lines contains the offset of the first character for each line (the first entry is always 0)
108 infos []lineInfo
112 func (f *File) Name() string {
117 func (f *File) Base() int {
122 func (f *File) Size() int {
127 func (f *File) LineCount() int {
138 func (f *File) AddLine(offset int) {
151 func (f *File) MergeLine(line int) {
178 func (f *File) SetLines(lines []int) bool {
196 func (f *File) SetLinesForContent(content []byte) {
218 func (f *File) LineStart(line int) Pos {
243 func (f *File) AddLineInfo(offset int, filename string, line int) {
256 func (f *File) AddLineColumnInfo(offset int, filename string, line, column int) {
268 func (f *File) Pos(offset int) Pos {
279 func (f *File) Offset(p Pos) int {
289 func (f *File) Line(p Pos) int {
301 func (f *File) unpack(offset int, adjusted bool) (filename string, line, column int) {
334 func (f *File) position(p Pos, adjusted bool) (pos Position) {
346 func (f *File) PositionFor(p Pos, adjusted bool) (pos Position) {
359 func (f *File) Position(p Pos) (pos Position) {
469 func searchFiles(a []*File, x int) int {
500 func (s *FileSet) File(p Pos) (f *File) { func