SourceLine gets the line of code (from File and Line) of the original source if possible.
()
| 63 | |
| 64 | // SourceLine gets the line of code (from File and Line) of the original source if possible. |
| 65 | func (frame *StackFrame) SourceLine() (string, error) { |
| 66 | source, err := frame.sourceLine() |
| 67 | if err != nil { |
| 68 | return source, New(err) |
| 69 | } |
| 70 | return source, err |
| 71 | } |
| 72 | |
| 73 | func (frame *StackFrame) sourceLine() (string, error) { |
| 74 | if frame.LineNumber <= 0 { |
nothing calls this directly
no test coverage detected