Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/expr-lang/expr
/ Find
Function
Find
ast/find.go:3–7 ·
view source on GitHub ↗
(node Node, fn func(node Node) bool)
Source
from the content-addressed store, hash-verified
1
package
ast
2
3
func
Find(node Node, fn
func
(node Node) bool) Node {
4
v := &finder{fn: fn}
5
Walk(&node, v)
6
return
v.node
7
}
8
9
type
finder
struct
{
10
node Node
Callers
2
TestFind
Function · 0.92
Visit
Method · 0.85
Calls
1
Walk
Function · 0.85
Tested by
1
TestFind
Function · 0.74
Used in the wild
real call sites across dependent graphs
searching dependent graphs…