public CompilationGenerator(IReadOnlyList <string> generatorAssemblySearchPaths,
                                    string intermediateOutputDirectory, ProgressReporter progressReporter)
        {
            var generatorPluginProvider = new GeneratorPluginProvider(generatorAssemblySearchPaths);

            _intermediateOutputDirectory = intermediateOutputDirectory;
            _progressReporter            = progressReporter;
            _documentTransformer         = new DocumentTransformer(generatorPluginProvider, progressReporter);
        }
 public DocumentTransformer(GeneratorPluginProvider generatorPluginProvider, ProgressReporter errorReporter)
 {
     _generatorPluginProvider = generatorPluginProvider;
     _errorReporter           = errorReporter;
 }