- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for searchLineInfos (0.29 sec)
-
src/go/token/position.go
} // Line returns the line number for the given file position p; // p must be a [Pos] value in that file or [NoPos]. func (f *File) Line(p Pos) int { return f.Position(p).Line } func searchLineInfos(a []lineInfo, x int) int { i, found := slices.BinarySearchFunc(a, x, func(a lineInfo, x int) int { return cmp.Compare(a.Offset, x) }) if !found { // We want the lineInfo containing x, but if we didn't
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.7K bytes - Viewed (0)