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§
- Default
Post Visitor - A node visitor for NodePostVisitor.
- Default
Visitor - The default node visitor.
- Evaluator
- A struct to convert an Expression node into a LuaValue object.
- Scope
Post Visitor - A visitor that can be used only with a NodeProcessor that also implements the Scope trait.
- Scope
Visitor - A visitor that can be used only with a NodeProcessor that also implements the Scope trait.
Enums§
- LuaValue
- Represents an evaluated Expression result.
Traits§
- Node
Post Processor - Node
Post Visitor - Similar to the NodeVisitor, except that visits the AST using a NodePostVisitor, which makes it possible to run transforms when leaving a node.
- Node
Processor - Used by the NodeVisitor trait, a NodeProcessor object is passed to each node to perform mutations.
- Node
Visitor - 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.