public RoslynTranslator(IGeneratorConfiguration configuration, GeneratorType generatorType)
 {
     Configuration = configuration ??
                     throw new NullReferenceException("Configuration Cannot be null");
     Generator       = GeneratorProvider.Get(generatorType);
     CurrentFilePath = Configuration.InputPath;
     Builder         = new List <FileBuilder>();
 }
 public AssemblyTranslator(IGeneratorConfiguration configuration, GeneratorType generatorType)
 {
     Configuration = configuration ??
                     throw new ArgumentNullException(nameof(configuration));
     Generator = GeneratorProvider.Get(generatorType);
     Heads     = new List <CSharpNode>();
     Trees     = new List <ISyntaxTree>();
 }