Module process

Source
Expand description

Defines how rules can process and mutate Lua nodes.

Modules§

processors
A collection of utility processors that can be used when creating rules.

Structs§

DefaultPostVisitor
A node visitor for NodePostVisitor.
DefaultVisitor
The default node visitor.
Evaluator
A struct to convert an Expression node into a LuaValue object.
ScopePostVisitor
A visitor that can be used only with a NodeProcessor that also implements the Scope trait.
ScopeVisitor
A visitor that can be used only with a NodeProcessor that also implements the Scope trait.

Enums§

LuaValue
Represents an evaluated Expression result.

Traits§

NodePostProcessor
NodePostVisitor
Similar to the NodeVisitor, except that visits the AST using a NodePostVisitor, which makes it possible to run transforms when leaving a node.
NodeProcessor
Used by the NodeVisitor trait, a NodeProcessor object is passed to each node to perform mutations.
NodeVisitor
A trait that defines method that iterates on nodes and process them using a NodeProcessor.
Scope
Defines methods to interact with the concept of lexical scoping. The struct implementing this trait should be able to keep track of identifiers when used along the ScopeVisitor.