public void Schedule(MosaMethod method) { var symbolOperand = Operand.CreateSymbolFromMethod(TypeSystem, method); start.AppendInstruction(IRInstruction.Call, null, symbolOperand); start.InvokeMethod = method; }
/// <summary> /// Initializes the type. /// </summary> protected virtual void InitializeType() { if (Method.IsSpecialName && Method.IsRTSpecialName && Method.IsStatic && Method.Name == ".cctor") { typeInitializer = Compiler.PostCompilePipeline.FindFirst<TypeInitializerSchedulerStage>(); if (typeInitializer == null) return; typeInitializer.Schedule(Method); } }