17 references to Bad
Microsoft.CodeAnalysis (14)
Compilation\Expression.cs (1)
46return ConstantValue.Bad;
ConstantValue.cs (1)
410case ConstantValueTypeDiscriminator.Bad: return Bad;
EnumConstantHelper.cs (1)
25offsetValue = ConstantValue.Bad;
MetadataReader\MetadataDecoder.cs (4)
1022value = (type.IsReferenceType || type.TypeKind == TypeKind.Pointer || type.TypeKind == TypeKind.FunctionPointer) ? ConstantValue.Null : ConstantValue.Bad; 1026value = ConstantValue.Bad; 1116return ConstantValue.Bad; 1124return ConstantValue.Bad;
MetadataReader\PEModule.cs (6)
1579defaultValue = ConstantValue.Bad; 3579return constantHandle.IsNil ? ConstantValue.Bad : GetConstantValueOrThrow(constantHandle); 3583return ConstantValue.Bad; 3596return constantHandle.IsNil ? ConstantValue.Bad : GetConstantValueOrThrow(constantHandle); 3600return ConstantValue.Bad; 3748return ConstantValue.Bad;
Symbols\Attributes\CommonAttributeData.cs (1)
247return ConstantValue.Bad;
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Operators.cs (2)
3382/// - <see cref="ConstantValue.Bad"/> - compiler doesn't support the type check, i.e. cannot perform it, even at runtime 3938/// - <see cref="ConstantValue.Bad"/> - compiler doesn't support the type check, i.e. cannot perform it, even at runtime
Binder\Binder_Patterns.cs (1)
799/// - <see cref="ConstantValue.Bad"/> - compiler doesn't support the type check, i.e. cannot perform it, even at runtime