Lines Matching defs:offset
46 Offset int `json:"offset"`
55 // and offset forms for a single file.
57 //ToPosition converts from an offset to a line:column pair.
58 ToPosition(offset int) (int, int, error)
59 //ToOffset converts from a line:column pair to an offset.
69 func NewPoint(line, col, offset int) Point {
70 p := Point{v: point{Line: line, Column: col, Offset: offset}}
143 panic(fmt.Errorf("offset not set in %v", p.v))
289 offset, err := c.ToOffset(p.Line, p.Column)
293 p.Offset = offset