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

Method optout

cmd/errtrace/main.go:1030–1037  ·  view source on GitHub ↗

optout reports whether the line at the given position is opted out of tracing, incrementing uses if so.

(pos token.Pos)

Source from the content-addressed store, hash-verified

1028// optout reports whether the line at the given position
1029// is opted out of tracing, incrementing uses if so.
1030func (t *walker) optout(pos token.Pos) bool {
1031 line := t.fset.Position(pos).Line
1032 _, ok := t.optouts[line]
1033 if ok {
1034 t.optouts[line]++
1035 }
1036 return ok
1037}
1038
1039// insert is a request to add something to the source code.
1040type insert interface {

Callers 3

returnStmtMethod · 0.95
wrapReturnCallMethod · 0.95
wrapExprMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected