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)
3026
WellKnownMember? member = defaultValue.
SpecialType
switch
Binder\Binder_Expressions.cs (5)
10488
if (convertedIndex.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
10569
if (hatExpression.Operand.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
10575
else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex } } operand })
10582
arguments[0] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex1 } } index &&
10583
arguments[1] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Boolean, BooleanValue: bool isFromEnd } })
Binder\Binder_Invocation.cs (2)
1761
TypeSymbol constantType = Compilation.GetSpecialType(defaultConstantValue.
SpecialType
);
1775
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)
1548
(elementAccess.Argument.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: 0 } ||
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
338
rangeSizeExpr.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: >= 0 and int rangeSizeConst } &&
366
return expr.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: 0 };
410
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)
903
Debug.Assert(constantOne.
SpecialType
!= SpecialType.None);
1283
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