mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-06-28 13:34:09 +08:00
29 lines
894 B
C#
29 lines
894 B
C#
using System;
|
|
using System.Reflection.Emit;
|
|
|
|
namespace Raindrops.Shared.InvokeST
|
|
{
|
|
public class ConvertItem
|
|
{
|
|
public ConvertItem(Action<ILGenerator> action, int lostWeight = 0, int consumptionWeight = 0, int order = 0)
|
|
{
|
|
Order = order;
|
|
Action = action;
|
|
LostWeight = lostWeight;
|
|
ConsumptionWeight = consumptionWeight;
|
|
}
|
|
public ConvertItem(OpCode opCode, int lostWeight = 0, int consumptionWeight = 0, int order = 0)
|
|
{
|
|
Order = order;
|
|
OpCode = opCode;
|
|
LostWeight = lostWeight;
|
|
ConsumptionWeight = consumptionWeight;
|
|
}
|
|
internal int Order { get; set; }
|
|
public int ConsumptionWeight { get; }
|
|
public int LostWeight { get; }
|
|
public Action<ILGenerator> Action { get; }
|
|
public OpCode? OpCode { get; }
|
|
}
|
|
}
|