func()

in cmd/celfmt/main.go [147:163]


func (v *visitor) VisitBlock(s *ast.BlockStatement) any {
	p, ok := s.Expression.Path.(*ast.PathExpression)
	if !ok || p.Original != "if" {
		return nil
	}
	if s.Program != nil {
		for _, n := range s.Program.Body {
			n.Accept(v)
		}
	}
	if s.Inverse != nil {
		for _, n := range s.Inverse.Body {
			n.Accept(v)
		}
	}
	return nil
}