129 references to GreaterThan
Microsoft.CodeAnalysis.CSharp (78)
Binder\Binder_Operators.cs (3)
1936case BinaryOperatorKind.GreaterThan: 2605case BinaryOperatorKind.GreaterThan: 3092case SyntaxKind.GreaterThanExpression: return BinaryOperatorKind.GreaterThan;
Binder\Binder_Patterns.cs (1)
1684SyntaxKind.GreaterThanToken => BinaryOperatorKind.GreaterThan,
Binder\DecisionDagBuilder.cs (1)
1757BinaryOperatorKind.GreaterThan => ">",
Binder\PatternExplainer.cs (2)
676if (remainingValues.Any(BinaryOperatorKind.GreaterThan, ConstantValue.Create(int.MaxValue))) 684if (remainingValues.Any(BinaryOperatorKind.GreaterThan, ConstantValue.Create(uint.MaxValue)))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (6)
354case BinaryOperatorKind.GreaterThan: 536case BinaryOperatorKind.GreaterThan: 591case BinaryOperatorKind.GreaterThan: 661case BinaryOperatorKind.GreaterThan: 1077goto case BinaryOperatorKind.GreaterThan; 1078case BinaryOperatorKind.GreaterThan:
Binder\Semantics\Operators\OperatorFacts.cs (1)
258case BinaryOperatorKind.GreaterThan: return WellKnownMemberNames.GreaterThanOperatorName;
Binder\Semantics\Operators\OperatorKind.cs (24)
628IntGreaterThan = Int | GreaterThan, 629UIntGreaterThan = UInt | GreaterThan, 630LongGreaterThan = Long | GreaterThan, 631ULongGreaterThan = ULong | GreaterThan, 632NIntGreaterThan = NInt | GreaterThan, 633NUIntGreaterThan = NUInt | GreaterThan, 634FloatGreaterThan = Float | GreaterThan, 635DoubleGreaterThan = Double | GreaterThan, 636DecimalGreaterThan = Decimal | GreaterThan, 637EnumGreaterThan = Enum | GreaterThan, 638UserDefinedGreaterThan = UserDefined | GreaterThan, 639LiftedIntGreaterThan = Lifted | Int | GreaterThan, 640LiftedUIntGreaterThan = Lifted | UInt | GreaterThan, 641LiftedLongGreaterThan = Lifted | Long | GreaterThan, 642LiftedULongGreaterThan = Lifted | ULong | GreaterThan, 643LiftedNIntGreaterThan = Lifted | NInt | GreaterThan, 644LiftedNUIntGreaterThan = Lifted | NUInt | GreaterThan, 645LiftedFloatGreaterThan = Lifted | Float | GreaterThan, 646LiftedDoubleGreaterThan = Lifted | Double | GreaterThan, 647LiftedDecimalGreaterThan = Lifted | Decimal | GreaterThan, 648LiftedEnumGreaterThan = Lifted | Enum | GreaterThan, 649LiftedUserDefinedGreaterThan = Lifted | UserDefined | GreaterThan, 650PointerGreaterThan = Pointer | GreaterThan, 651DynamicGreaterThan = Dynamic | GreaterThan,
Binder\Semantics\Operators\OperatorKindExtensions.cs (2)
206case BinaryOperatorKind.GreaterThan: 367case BinaryOperatorKind.GreaterThan: return ExpressionType.GreaterThan;
BoundTree\BoundDagTest.cs (1)
96BinaryOperatorKind.GreaterThan => ">",
CodeGen\EmitOperators.cs (2)
428case BinaryOperatorKind.GreaterThan: 822case BinaryOperatorKind.GreaterThan:
CodeGen\EmitStatement.cs (2)
321case BinaryOperatorKind.GreaterThan: 511case BinaryOperatorKind.GreaterThan:
Compilation\BuiltInOperators.cs (1)
729case BinaryOperatorKind.GreaterThan:
Compilation\CSharpCompilation.cs (2)
4377BinaryOperatorKind.GreaterThan or 4432BinaryOperatorKind.GreaterThan or
FlowAnalysis\NullableWalker.cs (2)
5357&& operatorKind.Operator() is BinaryOperatorKind.GreaterThan or BinaryOperatorKind.GreaterThanOrEqual or BinaryOperatorKind.LessThan or BinaryOperatorKind.LessThanOrEqual) 5537case BinaryOperatorKind.GreaterThan:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
469case BinaryOperatorKind.GreaterThan:
Lowering\DiagnosticsPass_Warnings.cs (1)
793case BinaryOperatorKind.GreaterThan:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.ValueDispatchNode.cs (2)
65/// is <see cref="Right"/>; for <see cref="BinaryOperatorKind.GreaterThan"/> and 100private static bool IsReversed(BinaryOperatorKind op) => op.Operator() switch { BinaryOperatorKind.GreaterThan => true, BinaryOperatorKind.GreaterThanOrEqual => true, _ => false };
Operations\CSharpOperationFactory_Methods.cs (1)
599case CSharp.BinaryOperatorKind.GreaterThan:
Utilities\IValueSet.cs (1)
36/// <see cref="BinaryOperatorKind.LessThan"/>, <see cref="BinaryOperatorKind.LessThanOrEqual"/>, <see cref="BinaryOperatorKind.GreaterThan"/>, and
Utilities\ValueSetFactory.ByteTC.cs (1)
32case GreaterThan:
Utilities\ValueSetFactory.CharTC.cs (1)
32case GreaterThan:
Utilities\ValueSetFactory.DecimalTC.cs (1)
97case GreaterThan:
Utilities\ValueSetFactory.DoubleTC.cs (1)
72case GreaterThan:
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
85case BinaryOperatorKind.GreaterThan:
Utilities\ValueSetFactory.IntTC.cs (1)
42case GreaterThan:
Utilities\ValueSetFactory.LongTC.cs (1)
32case GreaterThan:
Utilities\ValueSetFactory.NintValueSet.cs (2)
69if (_hasSmall && relation switch { GreaterThan => true, GreaterThanOrEqual => true, _ => false }) 80if (_hasLarge && relation switch { GreaterThan => true, GreaterThanOrEqual => true, _ => false })
Utilities\ValueSetFactory.NintValueSetFactory.cs (1)
28hasLarge: relation switch { GreaterThan => true, GreaterThanOrEqual => true, _ => false }
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (1)
38case GreaterThan:
Utilities\ValueSetFactory.NuintValueSet.cs (1)
67if (_hasLarge && relation switch { GreaterThan => true, GreaterThanOrEqual => true, _ => false })
Utilities\ValueSetFactory.NuintValueSetFactory.cs (1)
27hasLarge: relation switch { GreaterThan => true, GreaterThanOrEqual => true, _ => false }
Utilities\ValueSetFactory.NumericValueSet.cs (2)
79case GreaterThan: 119case GreaterThan:
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
39case GreaterThan:
Utilities\ValueSetFactory.SByteTC.cs (1)
31case GreaterThan:
Utilities\ValueSetFactory.ShortTC.cs (1)
32case GreaterThan:
Utilities\ValueSetFactory.SingleTC.cs (1)
76case GreaterThan:
Utilities\ValueSetFactory.UIntTC.cs (1)
32case GreaterThan:
Utilities\ValueSetFactory.ULongTC.cs (1)
32case GreaterThan:
Utilities\ValueSetFactory.UShortTC.cs (1)
32case GreaterThan:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
1553BinaryOperatorKind.GreaterThan,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
Semantics\NativeIntegerTests.cs (1)
4793BinaryOperatorKind.GreaterThan,
Semantics\OperatorTests.cs (4)
7348BinaryOperatorKind.GreaterThan, 7747BinaryOperatorKind.GreaterThan, 8256op == BinaryOperatorKind.GreaterThan || 8278op == BinaryOperatorKind.GreaterThan ||
Utilities\ValueSetTests.cs (45)
65IValueSet<int> values = ForInt.Related(GreaterThan, i1); 75IValueSet<int> values = ForInt.Related(GreaterThan, i1); 270Assert.Equal(i2 > val, values.Any(GreaterThan, val)); 317var gt = ForDouble.Related(GreaterThan, 0.0); 332var gt = ForFloat.Related(GreaterThan, 0.0f); 359Assert.False(neg.Any(GreaterThan, double.MaxValue)); 366Assert.False(mi.All(GreaterThan, 0.0)); 367Assert.False(mi.Any(GreaterThan, 0.0)); 376Assert.True(i.All(GreaterThan, 0.0)); 377Assert.True(i.Any(GreaterThan, 0.0)); 408var s = ForByte.Related(GreaterThan, 10).Intersect(ForByte.Related(LessThan, 100)); 433var s2 = ForDouble.Related(GreaterThan, 31.4d); 447Assert.False(s1.All(GreaterThan, 0)); 453Assert.False(s1.All(GreaterThan, -10)); 458Assert.False(s1.All(GreaterThan, 10)); 462var s2 = ForLong.Related(GreaterThan, -5).Intersect(s1); 466Assert.True(s2.All(GreaterThan, -10)); 471Assert.False(s2.All(GreaterThan, 10)); 516Assert.Equal("[0.0000000000000000000000000001..79228162514264337593543950335]", ForDecimal.Related(GreaterThan, 0.0m).ToString()); 525Assert.Equal("[11..2147483647],Large", ForNint.Related(GreaterThan, 10).ToString()); 534Assert.Equal("[11..4294967295],Large", ForNuint.Related(GreaterThan, 10).ToString()); 584Assert.False(ForDecimal.Related(GreaterThan, d).Any(Equal, d)); 638s1 = fac.Related(GreaterThan, value); 644Assert.True(s1.All(GreaterThan, value)); 645Assert.False(s2.Any(GreaterThan, value)); 728Assert.False(s1.Any(GreaterThan, i + 1)); 729Assert.False(s1.Any(GreaterThan, i)); 730Assert.True(s1.Any(GreaterThan, i - 1)); 750Assert.False(s1.Any(GreaterThan, j + 1)); 751Assert.False(s1.Any(GreaterThan, j)); 752Assert.True(s1.Any(GreaterThan, j - 1)); 772s1 = ForInt.Related(BinaryOperatorKind.GreaterThan, i); 773Assert.False(s1.All(GreaterThan, i + 1)); 774Assert.True(s1.All(GreaterThan, i)); 775Assert.True(s1.All(GreaterThan, i - 1)); 797s1 = ForInt.Related(BinaryOperatorKind.GreaterThan, j); 798Assert.False(s1.All(GreaterThan, j + 1)); 799Assert.True(s1.All(GreaterThan, j)); 800Assert.True(s1.All(GreaterThan, j - 1)); 820Assert.False(s1.All(GreaterThan, i + 1)); 821Assert.False(s1.All(GreaterThan, i)); 822Assert.True(s1.All(GreaterThan, i - 1)); 842Assert.False(s1.All(GreaterThan, j + 1)); 843Assert.False(s1.All(GreaterThan, j)); 844Assert.True(s1.All(GreaterThan, j - 1));