Lines Matching defs:File
91 type File struct { struct
92 set *FileSet
93 name string // file name as provided to AddFile
94 base int // Pos value range for this file is [base...base+size]
95 size int // file size as provided to AddFile
98 …int // lines contains the offset of the first character for each line (the first entry is always 0)
99 infos []lineInfo
103 func (f *File) Name() string {
108 func (f *File) Base() int {
113 func (f *File) Size() int {
118 func (f *File) LineCount() int {
129 func (f *File) AddLine(offset int) {
142 func (f *File) MergeLine(line int) {
168 func (f *File) SetLines(lines []int) bool {
186 func (f *File) SetLinesForContent(content []byte) {
223 func (f *File) AddLineInfo(offset int, filename string, line int) {
235 func (f *File) Pos(offset int) Pos {
246 func (f *File) Offset(p Pos) int {
256 func (f *File) Line(p Pos) int {
268 func (f *File) unpack(offset int, adjusted bool) (filename string, line, column int) {
286 func (f *File) position(p Pos, adjusted bool) (pos Position) {
298 func (f *File) PositionFor(p Pos, adjusted bool) (pos Position) {
311 func (f *File) Position(p Pos) (pos Position) {
402 func searchFiles(a []*File, x int) int {
433 func (s *FileSet) File(p Pos) (f *File) { func