insertWrapOpen adds a errtrace.Wrap call before an expression. foo() -> errtrace.Wrap(foo() This needs a corresponding insertWrapClose to close the call.
| 1066 | // |
| 1067 | // This needs a corresponding insertWrapClose to close the call. |
| 1068 | type insertWrapOpen struct { |
| 1069 | // N specifies the number of parameters the Wrap function takes. |
| 1070 | // Defaults to 1. |
| 1071 | N int |
| 1072 | |
| 1073 | Before token.Pos // position to insert before |
| 1074 | } |
| 1075 | |
| 1076 | func (e *insertWrapOpen) Pos() token.Pos { |
| 1077 | return e.Before |
nothing calls this directly
no outgoing calls
no test coverage detected