Mosa.Compiler.Framework.BaseCompiler.PreCompile C# (CSharp) Method

PreCompile() private method

Executes the compiler pre compiler stages.
The method iterates the compilation stage chain and runs each stage on the input.
private PreCompile ( ) : void
return void
        internal void PreCompile()
        {
            foreach (ICompilerStage stage in CompilePipeline)
            {
                stage.Initialize(this);
            }

            foreach (ICompilerStage stage in CompilePipeline)
            {
                NewCompilerTraceEvent(CompilerEvent.PreCompileStageStart, stage.Name);

                // Execute stage
                stage.ExecutePreCompile();

                NewCompilerTraceEvent(CompilerEvent.PreCompileStageEnd, stage.Name);
            }
        }

Usage Example

Esempio n. 1
0
 public void PreCompile()
 {
     BaseCompiler.PreCompile();
 }