private static int CompareSwitchExpression(ISwitchExpression left, ISwitchExpression right) { // Standard left,right and null checks if (left == null && right == null) { return(0); } if (left == null) { return(1); } if (right == null) { return(-1); } var result = CompareExpression(left.Expression, right.Expression); if (result != 0) { return(result); } return(CompareNodeArrays(left.Clauses, right.Clauses, (l, r) => CompareSwitchExpressionClause(l, r))); }
public ValuePatternTests() { _evaluator = new ValuePattern(); }
public PositionalPatternTests() { _evaluator = new PositionalPattern(); }
public PropertyPatternTests() { _evaluator = new PropertyPattern(); }