Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for alineFromLine (0.18 sec)

  1. src/debug/gosym/symtab.go

    	}
    
    	if t.go12line != nil {
    		pc := t.go12line.go12LineToPC(file, line)
    		if pc == 0 {
    			return 0, nil, &UnknownLineError{file, line}
    		}
    		return pc, t.PCToFunc(pc), nil
    	}
    
    	abs, err := obj.alineFromLine(file, line)
    	if err != nil {
    		return
    	}
    	for i := range obj.Funcs {
    		f := &obj.Funcs[i]
    		pc := f.LineTable.LineToPC(abs, f.End)
    		if pc != 0 {
    			return pc, f, nil
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
Back to top