Lines Matching defs:end
40 // To represent a point pass a 0 as the end pos.
41 func NewRange(fset *token.FileSet, start, end token.Pos) Range {
45 End: end,
115 return Range{}, fmt.Errorf("start offset %v is past the end of the file %v", s.Start(), converter.file.Size())
118 return Range{}, fmt.Errorf("end offset %v is past the end of the file %v", s.End(), converter.file.Size())
129 return 0, 0, fmt.Errorf("offset %v is past the end of the file %v", offset, l.file.Size())
145 return -1, fmt.Errorf("line is beyond end of file %v", lineMax)
148 return -1, fmt.Errorf("column is beyond end of file")
150 // at the end of the file, allowing for a trailing eol