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

Method Visit

ast/visitor_test.go:15–19  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

13}
14
15func (v *visitor) Visit(node *ast.Node) {
16 if n, ok := (*node).(*ast.IdentifierNode); ok {
17 v.identifiers = append(v.identifiers, n.Value)
18 }
19}
20
21func TestWalk(t *testing.T) {
22 var node ast.Node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected