Lines Matching defs:FileSet
426 type FileSet struct { struct
427 mutex sync.RWMutex // protects the file set
428 base int // base offset for the next file
429 files []*File // list of files in the order added to the set
430 last atomic.Pointer[File] // cache of last file looked up
442 func (s *FileSet) Base() int {
464 func (s *FileSet) AddFile(filename string, base, size int) *File {
498 func (s *FileSet) RemoveFile(file *File) {
513 func (s *FileSet) Iterate(f func(*File) bool) {
539 func (s *FileSet) file(p Pos) *File {
565 func (s *FileSet) File(p Pos) (f *File) {
576 func (s *FileSet) PositionFor(p Pos, adjusted bool) (pos Position) {
587 func (s *FileSet) Position(p Pos) (pos Position) {