1 implementation of FromConstantValue
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.StringTC.cs (1)
17string IEquatableValueTC<string>.FromConstantValue(ConstantValue constantValue)
5 references to FromConstantValue
Microsoft.CodeAnalysis.CSharp (5)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (2)
88bool IValueSet.Any(BinaryOperatorKind relation, ConstantValue value) => value.IsBad || Any(relation, _tc.FromConstantValue(value)); 111bool IValueSet.All(BinaryOperatorKind relation, ConstantValue value) => !value.IsBad && All(relation, _tc.FromConstantValue(value));
Utilities\ValueSetFactory.EnumeratedValueSetFactory.cs (3)
39value.IsBad || value.IsNull ? EnumeratedValueSet<T>.AllValues(_tc) : this.Related(relation, _tc.FromConstantValue(value)); 44return _tc.FromConstantValue(left).Equals(_tc.FromConstantValue(right));