line returns the line number of source code of the function for this Frame's pc.
()
| 32 | // line returns the line number of source code of the |
| 33 | // function for this Frame's pc. |
| 34 | func (f Frame) line() int { |
| 35 | fn := runtime.FuncForPC(f.pc()) |
| 36 | if fn == nil { |
| 37 | return 0 |
| 38 | } |
| 39 | _, line := fn.FileLine(f.pc()) |
| 40 | return line |
| 41 | } |
| 42 | |
| 43 | // name returns the name of this function, if known. |
| 44 | func (f Frame) name() string { |
no test coverage detected