55 references to Bad
Microsoft.CodeAnalysis (14)
Compilation\Expression.cs (1)
46
return ConstantValue.
Bad
;
ConstantValue.cs (1)
410
case ConstantValueTypeDiscriminator.Bad: return
Bad
;
EnumConstantHelper.cs (1)
25
offsetValue = ConstantValue.
Bad
;
MetadataReader\MetadataDecoder.cs (4)
1022
value = (type.IsReferenceType || type.TypeKind == TypeKind.Pointer || type.TypeKind == TypeKind.FunctionPointer) ? ConstantValue.Null : ConstantValue.
Bad
;
1026
value = ConstantValue.
Bad
;
1116
return ConstantValue.
Bad
;
1124
return ConstantValue.
Bad
;
MetadataReader\PEModule.cs (6)
1634
defaultValue = ConstantValue.
Bad
;
3621
return constantHandle.IsNil ? ConstantValue.
Bad
: GetConstantValueOrThrow(constantHandle);
3625
return ConstantValue.
Bad
;
3638
return constantHandle.IsNil ? ConstantValue.
Bad
: GetConstantValueOrThrow(constantHandle);
3642
return ConstantValue.
Bad
;
3790
return ConstantValue.
Bad
;
Symbols\Attributes\CommonAttributeData.cs (1)
246
return ConstantValue.
Bad
;
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder_Conversions.cs (3)
3933
return ConstantValue.
Bad
;
3941
return ConstantValue.
Bad
;
3957
return ConstantValue.
Bad
;
Binder\Binder_Expressions.cs (1)
9877
constantValueOpt = ConstantValue.
Bad
;
Binder\Binder_Operators.cs (12)
2785
return ConstantValue.
Bad
;
2797
return ConstantValue.
Bad
;
2836
return ConstantValue.
Bad
;
2872
return ConstantValue.
Bad
;
3209
return (newLength > int.MaxValue) ? ConstantValue.
Bad
: ConstantValue.CreateFromRope(Rope.Concat(leftValue, rightValue));
4531
return ConstantValue.
Bad
;
4889
node.Right, convertedExpression, constantValueOpt ?? ConstantValue.
Bad
, isUnionMatching: unionMatchingInputType is not null, inputType: unionMatchingInputType ?? inputType, convertedExpression.Type ?? inputType, hasErrors).MakeCompilerGenerated();
5037
/// - <see cref="ConstantValue.
Bad
"/> - compiler doesn't support the type check, i.e. cannot perform it, even at runtime
5202
return ConstantValue.
Bad
;
5594
/// - <see cref="ConstantValue.
Bad
"/> - compiler doesn't support the type check, i.e. cannot perform it, even at runtime
5616
return ConstantValue.
Bad
;
6082
return ConstantValue.
Bad
;
Binder\Binder_Patterns.cs (9)
1023
node, convertedExpression, constantValueOpt ?? ConstantValue.
Bad
, isUnionMatching: hasUnionMatching, inputType: unionMatchingInputType ?? inputType, convertedType, hasErrors || constantValueOpt is null);
1219
if (match == ConstantValue.False || match == ConstantValue.
Bad
)
1353
constantValue = ConstantValue.
Bad
;
1443
if (matchPossible != ConstantValue.False && matchPossible != ConstantValue.
Bad
)
1478
ConstantValue matchPossible = ConstantValue.
Bad
;
1487
if (matchPossible != ConstantValue.False && matchPossible != ConstantValue.
Bad
)
1501
/// - <see cref="ConstantValue.
Bad
"/> - compiler doesn't support the type check, i.e. cannot perform it, even at runtime
1533
Debug.Assert((!conversion.IsUserDefined && !conversion.IsUnion) || result == ConstantValue.False || result == ConstantValue.
Bad
);
2494
constantValueOpt = ConstantValue.
Bad
;
Binder\Binder_Statements.cs (2)
2296
else if (conversion.Kind == ConversionKind.ExplicitNumeric && sourceConstantValueOpt != null && sourceConstantValueOpt != ConstantValue.
Bad
&&
2297
ConversionsBase.HasImplicitConstantExpressionConversion(new BoundLiteral(syntax, ConstantValue.
Bad
, sourceType), targetType))
Symbols\ConstantValueUtils.cs (1)
85
var value = ConstantValue.
Bad
;
Symbols\ReducedExtensionMethodSymbol.cs (2)
145
var thisArgumentValue = new BoundLiteral(syntax, ConstantValue.
Bad
, thisType) { WasCompilerGenerated = true };
147
var otherArgumentValue = new BoundLiteral(syntax, ConstantValue.
Bad
, otherArgumentType) { WasCompilerGenerated = true };
Symbols\Source\SourceComplexParameterSymbol.cs (7)
394
return ConstantValue.
Bad
;
401
return ConstantValue.
Bad
;
742
value = ConstantValue.
Bad
;
988
return ConstantValue.
Bad
;
1026
return ConstantValue.
Bad
;
1036
return ConstantValue.
Bad
;
1047
return ConstantValue.
Bad
;
Symbols\Source\SourceEnumConstantSymbol.cs (1)
215
return Microsoft.CodeAnalysis.ConstantValue.
Bad
;
Symbols\Source\SourceLocalSymbol.cs (2)
675
var value = Microsoft.CodeAnalysis.ConstantValue.
Bad
;
698
return Microsoft.CodeAnalysis.ConstantValue.
Bad
;
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
1227
var receiverValue = new BoundLiteral(syntax, ConstantValue.
Bad
, receiverType) { WasCompilerGenerated = true };