Module v.ast.walker stdlib

v.ast.walker
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
1
Imported by:
2
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

Imported by

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn inspect

fn inspect(node &v.ast.Node, data voidptr, inspector_callback fn (&v.ast.Node, voidptr) bool)

inspect traverses and checks the AST node on a depth-first order and based on the data given

#fn walk

fn walk(mut visitor &Visitor, node &v.ast.Node)

walk traverses the AST using the given visitor

Structs

This section is empty.

Interfaces

#interface Visitor

pub interface Visitor {
mut:
	visit(node &ast.Node) !
}

Visitor defines a visit method which is invoked by the walker in each node it encounters.

Enums

This section is empty.