MCPcopy Index your code
hub / github.com/expr-lang/expr / Visit

Method Visit

test/mock/mock.go:207–220  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

205type StringerPatcher struct{}
206
207func (*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
222type MapStringStringEnv map[string]string
223

Callers

nothing calls this directly

Calls 3

PatchFunction · 0.92
TypeMethod · 0.65
ImplementsMethod · 0.45

Tested by

no test coverage detected