github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/logql/syntax/walk.go (about)

     1  package syntax
     2  
     3  type WalkFn = func(e interface{})
     4  
     5  func walkAll(f WalkFn, xs ...Walkable) {
     6  	for _, x := range xs {
     7  		x.Walk(f)
     8  	}
     9  }
    10  
    11  type Walkable interface {
    12  	Walk(f WalkFn)
    13  }