C# Class Mosa.Compiler.Framework.Stages.TypeInitializerSchedulerStage

Schedules type initializers and creates a hidden mosacl_main method, which runs all type initializers in sequence.
Dependencies are not resolved, it is hoped that dependencies are resolved by the high-level language compiler by placing cctors in some order in metadata.
Inheritance: BaseCompilerStage
Show file Open project: tgiphil/MOSA-Project Class Usage Examples

Public Properties

Property Type Description
TypeInitializerName string

Public Methods

Method Description
Schedule ( MosaMethod method ) : void

Schedules the specified method for invocation in the main.

TypeInitializerSchedulerStage ( ) : Mosa.Compiler.Framework.IR

Initializes a new instance of the TypeInitializerSchedulerStage class.

Protected Methods

Method Description
RunPostCompile ( ) : void
RunPreCompile ( ) : void

Method Details

RunPostCompile() protected method

protected RunPostCompile ( ) : void
return void

RunPreCompile() protected method

protected RunPreCompile ( ) : void
return void

Schedule() public method

Schedules the specified method for invocation in the main.
public Schedule ( MosaMethod method ) : void
method MosaMethod The method.
return void

TypeInitializerSchedulerStage() public method

Initializes a new instance of the TypeInitializerSchedulerStage class.
public TypeInitializerSchedulerStage ( ) : Mosa.Compiler.Framework.IR
return Mosa.Compiler.Framework.IR

Property Details

TypeInitializerName public static property

public static string TypeInitializerName
return string