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)
9496
if (convertedIndex.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
9577
if (hatExpression.Operand.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
9583
else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex } } operand })
9590
arguments[0] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex1 } } index &&
9591
arguments[1] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Boolean, BooleanValue: bool isFromEnd } })
Binder\Binder_Invocation.cs (2)
1733
TypeSymbol constantType = Compilation.GetSpecialType(defaultConstantValue.
SpecialType
);
1747
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)
1596
(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)
594
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)
91
defaultValue.
SpecialType
== SpecialType.System_Decimal &&
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
213
var attrData = defaultValue.
SpecialType
switch