MCPcopy Create free account
hub / github.com/bracesdev/errtrace / insertWrapOpen

Struct insertWrapOpen

cmd/errtrace/main.go:1068–1074  ·  view source on GitHub ↗

insertWrapOpen adds a errtrace.Wrap call before an expression. foo() -> errtrace.Wrap(foo() This needs a corresponding insertWrapClose to close the call.

Source from the content-addressed store, hash-verified

1066//
1067// This needs a corresponding insertWrapClose to close the call.
1068type 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
1076func (e *insertWrapOpen) Pos() token.Pos {
1077 return e.Before

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected