6 overrides of SpecialType
Microsoft.CodeAnalysis (6)
ConstantValueSpecialized.cs (6)
42internal override SpecialType SpecialType 83internal override SpecialType SpecialType 167internal override SpecialType SpecialType 246internal override SpecialType SpecialType 287internal override SpecialType SpecialType 330internal override SpecialType SpecialType
22 references to SpecialType
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Conversions.cs (1)
2351WellKnownMember? member = defaultValue.SpecialType switch
Binder\Binder_Expressions.cs (5)
9543if (convertedIndex.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 9624if (hatExpression.Operand.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 9630else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex } } operand }) 9637arguments[0] is { ConstantValueOpt: { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex1 } } index && 9638arguments[1] is { ConstantValueOpt: { SpecialType: SpecialType.System_Boolean, BooleanValue: bool isFromEnd } })
Binder\Binder_Invocation.cs (2)
1727TypeSymbol constantType = Compilation.GetSpecialType(defaultConstantValue.SpecialType); 1741if (!conversion.IsValid && defaultConstantValue is { SpecialType: SpecialType.System_Decimal or SpecialType.System_DateTime })
Binder\Semantics\Conversions\Conversions.cs (1)
78WellKnownMember? member = defaultValue.SpecialType switch
Emitter\Model\ParameterSymbolAdapter.cs (4)
86if (constant.SpecialType != SpecialType.None) 90type = AdaptedParameterSymbol.ContainingAssembly.GetSpecialType(constant.SpecialType); 244this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_Decimal && 245this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_DateTime;
FlowAnalysis\DefiniteAssignment.cs (1)
1596(elementAccess.Argument.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: 0 } ||
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
278if (startExpr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: 0 } && 279rangeSizeExpr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: >= 0 and int rangeSizeConst } && 345if (index.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex })
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
594if (cv.SpecialType == SpecialType.System_Char)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
889Debug.Assert(constantOne.SpecialType != SpecialType.None); 1269return (compilation.GetSpecialType(constantOne.SpecialType), constantOne);
Symbols\Source\SourceParameterSymbolBase.cs (1)
91defaultValue.SpecialType == SpecialType.System_Decimal &&
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
213var attrData = defaultValue.SpecialType switch