コード例 #1
0
 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>();
 }
コード例 #2
0
 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>();
 }