toml.ast.walker #
fn inspect #
fn inspect(value &ast.Value, data voidptr, inspector_callback InspectorFn) !
inspect traverses and checks the AST Value node on a depth-first order and based on the data given
fn walk #
fn walk(visitor Visitor, value &ast.Value) !
walk traverses the AST using the given visitor
fn walk_and_modify #
fn walk_and_modify(modifier Modifier, mut value ast.Value) !
walk_and_modify traverses the AST using the given modifier and lets the visitor modify the contents.
interface Modifier #
interface Modifier {
modify(mut value ast.Value) !
}
Modifier defines a modify method which is invoked by the walker on each Value node it encounters.
interface Visitor #
interface Visitor {
visit(value &ast.Value) !
}
Visitor defines a visit method which is invoked by the walker on each Value node it encounters.
fn (Inspector) visit #
fn (i &Inspector) visit(value &ast.Value) !
visit calls the inspector callback on the specified Value node.
type InspectorFn #
type InspectorFn = fn (value &ast.Value, data voidptr) !