Mosa.Compiler.Framework.Stages.TypeInitializerSchedulerStage.RunPreCompile C# (CSharp) Method

RunPreCompile() protected method

protected RunPreCompile ( ) : void
return void
        protected override void RunPreCompile()
        {
            typeInitializerMethod = Compiler.CreateLinkerMethod(TypeInitializerName);

            var startUpType = TypeSystem.GetTypeByName("Mosa.Runtime", "StartUp");
            var startUpMethod = startUpType.FindMethodByName("InitializeAssembly");
            Compiler.PlugSystem.CreatePlug(typeInitializerMethod, startUpMethod);
        }