Exemplo n.º 1
0
 /// <summary>
 /// Creates a new pattern that matches any type of variable expression.
 /// </summary>
 /// <param name="variable">The pattern describing the referenced variable.</param>
 /// <returns>The pattern.</returns>
 public static VariableExpressionPattern <TInstruction> Variable <TInstruction>(Pattern <IVariable> variable) =>
 new VariableExpressionPattern <TInstruction>(variable);
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new pattern that matches on instances of <see cref="InstructionExpression{TInstruction}"/>.
 /// </summary>
 /// <returns>The pattern.</returns>
 public static InstructionExpressionPattern <TInstruction> Instruction <TInstruction>() =>
 new InstructionExpressionPattern <TInstruction>(Pattern.Any <TInstruction>());
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new pattern that matches on instances of <see cref="InstructionExpression{TInstruction}"/>.
 /// </summary>
 /// <param name="instruction">The instruction pattern to match on.</param>
 /// <returns>The pattern.</returns>
 public static InstructionExpressionPattern <TInstruction> Instruction <TInstruction>(Pattern <TInstruction> instruction) =>
 new InstructionExpressionPattern <TInstruction>(instruction);
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new pattern that matches on instances of <see cref="InstructionExpression{TInstruction}"/>.
 /// </summary>
 /// <param name="instruction">The instruction to match on.</param>
 /// <returns>The pattern.</returns>
 public static InstructionExpressionPattern <TInstruction> InstructionLiteral <TInstruction>(TInstruction instruction) =>
 new InstructionExpressionPattern <TInstruction>(Pattern.Literal(instruction));