13 implementations of Related
Microsoft.CodeAnalysis.CSharp (13)
Utilities\ValueSetFactory.ByteTC.cs (1)
22bool INumericTC<byte>.Related(BinaryOperatorKind relation, byte left, byte right)
Utilities\ValueSetFactory.CharTC.cs (1)
23bool INumericTC<char>.Related(BinaryOperatorKind relation, char left, char right)
Utilities\ValueSetFactory.DecimalTC.cs (1)
87bool INumericTC<decimal>.Related(BinaryOperatorKind relation, decimal left, decimal right)
Utilities\ValueSetFactory.DoubleTC.cs (1)
62bool INumericTC<double>.Related(BinaryOperatorKind relation, double left, double right)
Utilities\ValueSetFactory.IntTC.cs (1)
22public bool Related(BinaryOperatorKind relation, int left, int right)
Utilities\ValueSetFactory.LongTC.cs (1)
22bool INumericTC<long>.Related(BinaryOperatorKind relation, long left, long right)
Utilities\ValueSetFactory.NonNegativeIntTC.cs (1)
22public bool Related(BinaryOperatorKind relation, int left, int right)
Utilities\ValueSetFactory.SByteTC.cs (1)
22bool INumericTC<sbyte>.Related(BinaryOperatorKind relation, sbyte left, sbyte right)
Utilities\ValueSetFactory.ShortTC.cs (1)
22bool INumericTC<short>.Related(BinaryOperatorKind relation, short left, short right)
Utilities\ValueSetFactory.SingleTC.cs (1)
66bool INumericTC<float>.Related(BinaryOperatorKind relation, float left, float right)
Utilities\ValueSetFactory.UIntTC.cs (1)
22public bool Related(BinaryOperatorKind relation, uint left, uint right)
Utilities\ValueSetFactory.ULongTC.cs (1)
22bool INumericTC<ulong>.Related(BinaryOperatorKind relation, ulong left, ulong right)
Utilities\ValueSetFactory.UShortTC.cs (1)
22bool INumericTC<ushort>.Related(BinaryOperatorKind relation, ushort left, ushort right)
36 references to Related
Microsoft.CodeAnalysis.CSharp (36)
Utilities\ValueSetFactory.FloatingValueSet.cs (3)
74if (tc.Related(Equal, tc.NaN, value)) 138_hasNaN && tc.Related(relation, tc.NaN, value) || 148(!_hasNaN || tc.Related(relation, tc.NaN, value)) &&
Utilities\ValueSetFactory.FloatingValueSetFactory.cs (1)
39return tc.Related(relation, tc.FromConstantValue(left), tc.FromConstantValue(right));
Utilities\ValueSetFactory.NumericValueSet.cs (29)
32Debug.Assert(default(TTC).Related(LessThanOrEqual, first, last)); 39Debug.Assert(intervals.Length == 0 || tc.Related(GreaterThanOrEqual, intervals[0].first, tc.MinValue)); 42Debug.Assert(tc.Related(LessThanOrEqual, intervals[i].first, intervals[i].last)); 46Debug.Assert(tc.Related(LessThan, tc.Next(intervals[i - 1].last), intervals[i].first)); 79return _intervals.Length > 0 && tc.Related(relation, _intervals[0].first, value); 82return _intervals.Length > 0 && tc.Related(relation, _intervals[_intervals.Length - 1].last, value); 97return tc.Related(GreaterThanOrEqual, value, _intervals[lastIntervalIndex].first) && tc.Related(LessThanOrEqual, value, _intervals[lastIntervalIndex].last); 100if (tc.Related(LessThanOrEqual, value, _intervals[midIndex].last)) 120return tc.Related(relation, _intervals[_intervals.Length - 1].last, value); 123return tc.Related(relation, _intervals[0].first, value); 125return _intervals.Length == 1 && tc.Related(Equal, _intervals[0].first, value) && tc.Related(Equal, _intervals[0].last, value); 142if (tc.Related(LessThan, tc.MinValue, _intervals[0].first)) 155if (tc.Related(LessThan, _intervals[lastIndex].last, tc.MaxValue)) 178if (tc.Related(LessThan, leftInterval.last, rightInterval.first)) 182else if (tc.Related(LessThan, rightInterval.last, leftInterval.first)) 189if (tc.Related(LessThan, leftInterval.last, rightInterval.last)) 193else if (tc.Related(LessThan, rightInterval.last, leftInterval.last)) 214Debug.Assert(tc.Related(LessThanOrEqual, first, last)); 215Debug.Assert(tc.Related(GreaterThanOrEqual, first, tc.MinValue)); 216Debug.Assert(tc.Related(LessThanOrEqual, last, tc.MaxValue)); 217Debug.Assert(builder.Count == 0 || tc.Related(LessThanOrEqual, builder.Last().first, first)); 218if (builder.Count > 0 && (tc.Related(Equal, tc.MinValue, first) || tc.Related(GreaterThanOrEqual, builder.Last().last, tc.Prev(first)))) 233return tc.Related(LessThan, a, b) ? a : b; 239return tc.Related(LessThan, a, b) ? b : a; 257if (tc.Related(LessThan, leftInterval.last, rightInterval.first)) 262else if (tc.Related(LessThan, rightInterval.last, leftInterval.first))
Utilities\ValueSetFactory.NumericValueSetFactory.cs (3)
35if (tc.Related(LessThanOrEqual, value, tc.MinValue)) 41if (tc.Related(GreaterThanOrEqual, value, tc.MaxValue)) 68return tc.Related(relation, tc.FromConstantValue(left), tc.FromConstantValue(right));