visitor

package
v0.306.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk[C, T any](c C, v Visitable[C, T]) iter.Seq2[C, T]

Types

type Visitable

type Visitable[C, T any] interface {
	AcceptVisitor(c C, v Visitor[C, T])
}

type Visitor

type Visitor[C, T any] interface {
	Visit(c C, v T)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL