12 implementations of Related
Microsoft.CodeAnalysis.CSharp (12)
Utilities\ValueSetFactory.ByteTC.cs (1)
24bool INumericTC<byte>.Related(BinaryOperatorKind relation, byte left, byte right)
Utilities\ValueSetFactory.CharTC.cs (1)
24bool INumericTC<char>.Related(BinaryOperatorKind relation, char left, char right)
Utilities\ValueSetFactory.DecimalTC.cs (1)
89bool INumericTC<decimal>.Related(BinaryOperatorKind relation, decimal left, decimal right)
Utilities\ValueSetFactory.DoubleTC.cs (1)
64bool INumericTC<double>.Related(BinaryOperatorKind relation, double left, double right)
Utilities\ValueSetFactory.IntTC.cs (1)
34public bool Related(BinaryOperatorKind relation, int left, int right)
Utilities\ValueSetFactory.LongTC.cs (1)
24bool INumericTC<long>.Related(BinaryOperatorKind relation, long left, long right)
Utilities\ValueSetFactory.SByteTC.cs (1)
23bool INumericTC<sbyte>.Related(BinaryOperatorKind relation, sbyte left, sbyte right)
Utilities\ValueSetFactory.ShortTC.cs (1)
24bool INumericTC<short>.Related(BinaryOperatorKind relation, short left, short right)
Utilities\ValueSetFactory.SingleTC.cs (1)
68bool INumericTC<float>.Related(BinaryOperatorKind relation, float left, float right)
Utilities\ValueSetFactory.UIntTC.cs (1)
24public bool Related(BinaryOperatorKind relation, uint left, uint right)
Utilities\ValueSetFactory.ULongTC.cs (1)
24bool INumericTC<ulong>.Related(BinaryOperatorKind relation, ulong left, ulong right)
Utilities\ValueSetFactory.UShortTC.cs (1)
24bool INumericTC<ushort>.Related(BinaryOperatorKind relation, ushort left, ushort right)
34 references to Related
Microsoft.CodeAnalysis.CSharp (34)
Utilities\ValueSetFactory.FloatingValueSet.cs (3)
72if (tc.Related(Equal, tc.NaN, value)) 144_hasNaN && _tc.Related(relation, _tc.NaN, value) || 153(!_hasNaN || _tc.Related(relation, _tc.NaN, value)) &&
Utilities\ValueSetFactory.FloatingValueSetFactory.cs (1)
42return _tc.Related(relation, _tc.FromConstantValue(left), _tc.FromConstantValue(right));
Utilities\ValueSetFactory.NumericValueSet.cs (27)
33Debug.Assert(tc.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)); 78return _intervals.Length > 0 && _tc.Related(relation, _intervals[0].first, value); 81return _intervals.Length > 0 && _tc.Related(relation, _intervals[_intervals.Length - 1].last, value); 96return _tc.Related(GreaterThanOrEqual, value, _intervals[lastIntervalIndex].first) && _tc.Related(LessThanOrEqual, value, _intervals[lastIntervalIndex].last); 99if (_tc.Related(LessThanOrEqual, value, _intervals[midIndex].last)) 118return _tc.Related(relation, _intervals[_intervals.Length - 1].last, value); 121return _tc.Related(relation, _intervals[0].first, value); 123return _intervals.Length == 1 && _tc.Related(Equal, _intervals[0].first, value) && _tc.Related(Equal, _intervals[0].last, value); 139if (_tc.Related(LessThan, _tc.MinValue, _intervals[0].first)) 152if (_tc.Related(LessThan, _intervals[lastIndex].last, _tc.MaxValue)) 176if (_tc.Related(LessThan, leftInterval.last, rightInterval.first)) 180else if (_tc.Related(LessThan, rightInterval.last, leftInterval.first)) 187if (_tc.Related(LessThan, leftInterval.last, rightInterval.last)) 191else if (_tc.Related(LessThan, rightInterval.last, leftInterval.last)) 211Debug.Assert(tc.Related(LessThanOrEqual, first, last)); 212Debug.Assert(tc.Related(GreaterThanOrEqual, first, tc.MinValue)); 213Debug.Assert(tc.Related(LessThanOrEqual, last, tc.MaxValue)); 215if (builder.Count > 0 && (tc.Related(Equal, tc.MinValue, first) || tc.Related(GreaterThanOrEqual, builder.Last().last, tc.Prev(first)))) 229return tc.Related(LessThan, a, b) ? a : b; 234return tc.Related(LessThan, a, b) ? b : a; 253if (_tc.Related(LessThan, leftInterval.last, rightInterval.first)) 258else if (_tc.Related(LessThan, rightInterval.last, leftInterval.first))
Utilities\ValueSetFactory.NumericValueSetFactory.cs (3)
34if (_tc.Related(LessThanOrEqual, value, _tc.MinValue)) 40if (_tc.Related(GreaterThanOrEqual, value, _tc.MaxValue)) 65return _tc.Related(relation, _tc.FromConstantValue(left), _tc.FromConstantValue(right));