Trait ligen::generator::FileProcessorVisitor [−][src]
pub trait FileProcessorVisitor: Default { type Visitor; fn process(
&self,
_context: &Context,
_file_set: &mut FileSet,
_visitor: &Self::Visitor
) { ... } fn post_process(
&self,
_context: &Context,
_file_set: &mut FileSet,
_visitor: &Self::Visitor
) { ... } }
Expand description
File processor visitor.
Associated Types
Provided methods
Processor executed while visiting the current element and before visiting its children.
fn post_process(
&self,
_context: &Context,
_file_set: &mut FileSet,
_visitor: &Self::Visitor
)
fn post_process(
&self,
_context: &Context,
_file_set: &mut FileSet,
_visitor: &Self::Visitor
)
Post-processor executed after visiting the current element and its children.
It has a special behavior for ParameterVisitor
: It only executes if the parameter
isn’t
the last parameter, which is useful for writing separators.