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)
2351
WellKnownMember? member = defaultValue.
SpecialType
switch
Binder\Binder_Expressions.cs (5)
9543
if (convertedIndex.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
9624
if (hatExpression.Operand.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex })
9630
else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex } } operand })
9637
arguments[0] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Int32, Int32Value: int constIndex1 } } index &&
9638
arguments[1] is { ConstantValueOpt: {
SpecialType
: SpecialType.System_Boolean, BooleanValue: bool isFromEnd } })
Binder\Binder_Invocation.cs (2)
1727
TypeSymbol constantType = Compilation.GetSpecialType(defaultConstantValue.
SpecialType
);
1741
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)
278
if (startExpr.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: 0 } &&
279
rangeSizeExpr.ConstantValueOpt is {
SpecialType
: SpecialType.System_Int32, Int32Value: >= 0 and int rangeSizeConst } &&
345
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)
889
Debug.Assert(constantOne.
SpecialType
!= SpecialType.None);
1269
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