Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ByTopo (0.64 sec)

  1. src/cmd/compile/internal/ssa/html.go

    	Filename    string
    	StartLineno uint
    	Lines       []string
    }
    
    // ByTopo sorts topologically: target function is on top,
    // followed by inlined functions sorted by filename and line numbers.
    type ByTopo []*FuncLines
    
    func (x ByTopo) Len() int      { return len(x) }
    func (x ByTopo) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
    func (x ByTopo) Less(i, j int) bool {
    	a := x[i]
    	b := x[j]
    	if a.Filename == b.Filename {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top