line returns the line number of source code of the function for this Frame's pc.
()
| 89 | // line returns the line number of source code of the |
| 90 | // function for this Frame's pc. |
| 91 | func (f frame) line() int { |
| 92 | fn := runtime.FuncForPC(f.pc()) |
| 93 | if fn == nil { |
| 94 | return 0 |
| 95 | } |
| 96 | _, line := fn.FileLine(f.pc()) |
| 97 | return line |
| 98 | } |
| 99 | |
| 100 | // name returns the name of this function, if known. |
| 101 | func (f frame) name() string { |
no test coverage detected