Trait superfilter::ast::transform::Transform
[−]
[src]
pub trait Transform: Debug { fn transform(
&self,
ctx: TransformContext
) -> Result<Option<TransformedNode>, Error>; fn location(&self) -> AstLocation; }
This trait needs to be implemented for any abstract syntax tree structure, it contains the functions to transform the structure's representation into the final structure before it gets rendered into plain GGG syntax tree output
Required Methods
fn transform(
&self,
ctx: TransformContext
) -> Result<Option<TransformedNode>, Error>
&self,
ctx: TransformContext
) -> Result<Option<TransformedNode>, Error>
Perform any transformations that need to be done before rendering this structure into plain GGG loot filter syntax
fn location(&self) -> AstLocation
Implementors
impl Transform for Mixin
impl Transform for MixinCall
impl Transform for BlockStatement
impl<'a> Transform for SetValueStatement
impl Transform for ConditionStatement
impl Transform for VarReference
impl Transform for VarDefinition
impl Transform for Color
impl Transform for Block
impl Transform for ImportStatement
impl Transform for ExpressionValue
impl Transform for ExpressionNode
impl Transform for BlockLevelNode
impl Transform for Filter
impl Transform for Comment