Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

41 lines
640 B
C#

// created on 28/08/2004 at 17:07
#if !FULL_AOT_RUNTIME
using System;
using System.Reflection;
using System.Reflection.Emit;
namespace Mono.CodeGeneration
{
public class CodeArgument: CodeExpression
{
int argument;
public CodeArgument (int arg, Type type)
{
argument = arg;
}
public int Argument
{
get { return argument; }
}
public override void Generate (ILGenerator gen)
{
gen.Emit (OpCodes.Ldloc, var.LocalBuilder);
}
public override void PrintCode (CodeWriter cp)
{
cp.Write ("arg" + argument);
}
public override Type GetResultType ()
{
return var.Type;
}
}
}
#endif