예제 #1
0
 public ILInstructionPattern(ILOpCodePattern opCode, ILOperandPattern operand,
                             params ILExpressionPattern[] arguments)
 {
     OpCode    = opCode ?? throw new ArgumentNullException(nameof(opCode));
     Operand   = operand;
     Arguments = new List <ILExpressionPattern>(arguments);
 }
예제 #2
0
 public ILInstructionPattern WithOpCode(ILOpCodePattern opCode)
 {
     OpCode = opCode;
     return(this);
 }
예제 #3
0
 public ILInstructionPattern WithOpCode(params ILCode[] opCodes)
 {
     OpCode = new ILOpCodePattern(opCodes);
     return(this);
 }
예제 #4
0
 public ILInstructionPattern(ILOpCodePattern opCode)
 {
     OpCode    = opCode ?? throw new ArgumentNullException(nameof(opCode));
     Operand   = ILOperandPattern.Null;
     Arguments = new List <ILExpressionPattern>();
 }