Boo.Lang.Compiler.MetaProgramming.Compilation.CompilerFor C# (CSharp) Метод

CompilerFor() приватный статический Метод

private static CompilerFor ( Boo.Lang.Compiler.Ast.CompileUnit unit, Assembly references ) : BooCompiler
unit Boo.Lang.Compiler.Ast.CompileUnit
references System.Reflection.Assembly
Результат BooCompiler
        private static BooCompiler CompilerFor(CompileUnit unit, Assembly[] references)
        {
            BooCompiler compiler = new BooCompiler();
            compiler.Parameters.OutputType = IsApplication(unit) ? CompilerOutputType.ConsoleApplication : CompilerOutputType.Library;
            compiler.Parameters.Pipeline = new Boo.Lang.Compiler.Pipelines.CompileToMemory();
            compiler.Parameters.References.Extend(references);
            return compiler;
        }