Skip to main content

AstTransformer

Trait AstTransformer 

Source
pub trait AstTransformer {
    // Required methods
    fn transform_call(&mut self, call: &ExprCall) -> Result<Option<String>>;
    fn should_transform(&self, qualified_name: &QualifiedName) -> bool;
}
Expand description

Trait for transforming AST nodes

Required Methods§

Source

fn transform_call(&mut self, call: &ExprCall) -> Result<Option<String>>

Transform a function call expression

Source

fn should_transform(&self, qualified_name: &QualifiedName) -> bool

Check if a function should be transformed

Implementors§