Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BlockSlice (0.16 sec)

  1. src/cmd/cover/cover.go

    // Sort interface for []block1; used for self-check in addVariables.
    
    type block1 struct {
    	Block
    	index int
    }
    
    type blockSlice []block1
    
    func (b blockSlice) Len() int           { return len(b) }
    func (b blockSlice) Less(i, j int) bool { return b[i].startByte < b[j].startByte }
    func (b blockSlice) Swap(i, j int)      { b[i], b[j] = b[j], b[i] }
    
    // offset translates a token position into a 0-indexed byte offset.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top