(node *ast.Node)
| 205 | type StringerPatcher struct{} |
| 206 | |
| 207 | func (*StringerPatcher) Visit(node *ast.Node) { |
| 208 | t := (*node).Type() |
| 209 | if t == nil { |
| 210 | return |
| 211 | } |
| 212 | if t.Implements(stringer) { |
| 213 | ast.Patch(node, &ast.CallNode{ |
| 214 | Callee: &ast.MemberNode{ |
| 215 | Node: *node, |
| 216 | Property: &ast.StringNode{Value: "String"}, |
| 217 | }, |
| 218 | }) |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | type MapStringStringEnv map[string]string |
| 223 |
nothing calls this directly
no test coverage detected