コード例 #1
0
        //private readonly Queue<CCtor> cctorQueue = new Queue<CCtor>();

        //private readonly TestAssemblyLinker linker;

        private CompilerHelper(IArchitecture architecture, ITypeSystem typeSystem, ITypeLayout typeLayout) :
            base(architecture, typeSystem, typeLayout)
        {
            var linker = new LinkerStub();

            // Build the assembly compiler pipeline
            Pipeline.AddRange(new IAssemblyCompilerStage[] {
                new AssemblyMemberCompilationSchedulerStage(),
                new MethodCompilerSchedulerStage(),
                new TypeLayoutStage(),
                linker
            });
            architecture.ExtendAssemblyCompilerPipeline(Pipeline);
        }
コード例 #2
0
        //private readonly Queue<CCtor> cctorQueue = new Queue<CCtor>();
        //private readonly TestAssemblyLinker linker;
        private CompilerHelper(IArchitecture architecture, ITypeSystem typeSystem, ITypeLayout typeLayout)
            : base(architecture, typeSystem, typeLayout)
        {
            var linker = new LinkerStub();

            // Build the assembly compiler pipeline
            Pipeline.AddRange(new IAssemblyCompilerStage[] {
                new AssemblyMemberCompilationSchedulerStage(),
                new MethodCompilerSchedulerStage(),
                new TypeLayoutStage(),
                linker
            });
            architecture.ExtendAssemblyCompilerPipeline(Pipeline);
        }