optout reports whether the line at the given position is opted out of tracing, incrementing uses if so.
(pos token.Pos)
| 1028 | // optout reports whether the line at the given position |
| 1029 | // is opted out of tracing, incrementing uses if so. |
| 1030 | func (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. |
| 1040 | type insert interface { |
no outgoing calls
no test coverage detected