6 overrides of SpecialType
Microsoft.CodeAnalysis (6)
ConstantValueSpecialized.cs (6)
42
internal override SpecialType
SpecialType
83
internal override SpecialType
SpecialType
167
internal override SpecialType
SpecialType
246
internal override SpecialType
SpecialType
287
internal override SpecialType
SpecialType
330
internal override SpecialType
SpecialType
22 references to SpecialType
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Conversions.cs (1)
2333
WellKnownMember? member = defaultValue.
SpecialType
switch
Binder\Binder_Expressions.cs (5)
9556
if (convertedIndex.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
9637
if (hatExpression.Operand.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
9643
else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex } } operand })
9650
arguments[0] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex1 } } index &&
9651
arguments[1] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Boolean, BooleanValue: bool isFromEnd } })
Binder\Binder_Invocation.cs (2)
1737
TypeSymbol constantType = Compilation.GetSpecialType(defaultConstantValue.
SpecialType
);
1751
if (!conversion.IsValid && defaultConstantValue is {
SpecialType
: SpecialType.System_Decimal or SpecialType.System_DateTime })
Binder\Semantics\Conversions\Conversions.cs (1)
78
WellKnownMember? member = defaultValue.
SpecialType
switch
Emitter\Model\ParameterSymbolAdapter.cs (4)
86
if (constant.
SpecialType
!= SpecialType.None)
90
type = AdaptedParameterSymbol.ContainingAssembly.GetSpecialType(constant.
SpecialType
);
244
this.ExplicitDefaultConstantValue.
SpecialType
!= SpecialType.System_Decimal &&
245
this.ExplicitDefaultConstantValue.
SpecialType
!= SpecialType.System_DateTime;
FlowAnalysis\DefiniteAssignment.cs (1)
1547
(elementAccess.Argument.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: 0 } ||
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
317
if (startExpr.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: 0 } &&
318
rangeSizeExpr.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: >= 0 and int rangeSizeConst } &&
384
if (index.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
641
if (cv.
SpecialType
== SpecialType.System_Char)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
901
Debug.Assert(constantOne.
SpecialType
!= SpecialType.None);
1281
return (compilation.GetSpecialType(constantOne.
SpecialType
), constantOne);
Symbols\Source\SourceParameterSymbolBase.cs (1)
89
defaultValue.
SpecialType
== SpecialType.System_Decimal &&
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
211
var attrData = defaultValue.
SpecialType
switch