MCPcopy Create free account
hub / github.com/expr-lang/expr / Visit

Method Visit

test/patch/patch_count_test.go:19–24  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

17}
18
19func (c *countingPatcher) Visit(node *ast.Node) {
20 switch (*node).(type) {
21 case *ast.IntegerNode:
22 c.PatchCount++
23 }
24}
25
26// Test over a simple expression
27func TestPatch_Count(t *testing.T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected