openABAP.Compiler.Write.BuildAssembly C# (CSharp) Method

BuildAssembly() public method

public BuildAssembly ( ILGenerator il ) : void
il System.Reflection.Emit.ILGenerator
return void
        public override void BuildAssembly( ILGenerator il )
        {
            System.Type[] types = { typeof(String) };
            if (Format != null && Format.Equals("/")) {
                il.Emit(OpCodes.Ldstr, "\n");
                il.EmitCall(OpCodes.Call, typeof(openABAP.Runtime.Runtime).GetMethod("Write", types), null);
            }
            //push formatted string of output value to stack
            this.Value.PushFormattedString(il);
            il.EmitCall(OpCodes.Call, typeof(openABAP.Runtime.Runtime).GetMethod("Write", types), null);
        }