Trait Preprocessor

Source
pub trait Preprocessor<C: Compiler>: Debug {
    // Required method
    fn preprocess(
        &self,
        compiler: &C,
        input: &mut C::Input,
        paths: &ProjectPathsConfig<C::Language>,
        mocks: &mut HashSet<PathBuf>,
    ) -> Result<()>;
}
Expand description

Invoked before the actual compiler invocation and can override the input.

Updates the list of identified cached mocks (if any) to be stored in cache and updates the compiler input.

Required Methods§

Source

fn preprocess( &self, compiler: &C, input: &mut C::Input, paths: &ProjectPathsConfig<C::Language>, mocks: &mut HashSet<PathBuf>, ) -> Result<()>

Implementors§