399 references to System_Decimal
Microsoft.CodeAnalysis (160)
ConstantValue.cs (2)
450case SpecialType.System_Decimal: return ConstantValueTypeDiscriminator.Decimal; 502case ConstantValueTypeDiscriminator.Decimal: return SpecialType.System_Decimal;
ConstantValueSpecialized.cs (1)
248get { return SpecialType.System_Decimal; }
MetadataReader\MetadataDecoder.cs (1)
1010if (type.SpecialType == SpecialType.System_Decimal)
PEWriter\Types.cs (1)
19SystemDecimal = CodeAnalysis.SpecialType.System_Decimal,
SpecialMembers.cs (134)
205(byte)SpecialType.System_Decimal, // DeclaringTypeId 207(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Field Signature 211(byte)SpecialType.System_Decimal, // DeclaringTypeId 213(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Field Signature 217(byte)SpecialType.System_Decimal, // DeclaringTypeId 219(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Field Signature 223(byte)SpecialType.System_Decimal, // DeclaringTypeId 231(byte)SpecialType.System_Decimal, // DeclaringTypeId 239(byte)SpecialType.System_Decimal, // DeclaringTypeId 247(byte)SpecialType.System_Decimal, // DeclaringTypeId 255(byte)SpecialType.System_Decimal, // DeclaringTypeId 263(byte)SpecialType.System_Decimal, // DeclaringTypeId 271(byte)SpecialType.System_Decimal, // DeclaringTypeId 283(byte)SpecialType.System_Decimal, // DeclaringTypeId 286(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 287(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 288(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 292(byte)SpecialType.System_Decimal, // DeclaringTypeId 295(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 296(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 297(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 301(byte)SpecialType.System_Decimal, // DeclaringTypeId 304(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 305(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 306(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 310(byte)SpecialType.System_Decimal, // DeclaringTypeId 313(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 314(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 315(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 319(byte)SpecialType.System_Decimal, // DeclaringTypeId 322(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 323(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 324(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 328(byte)SpecialType.System_Decimal, // DeclaringTypeId 331(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 332(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 336(byte)SpecialType.System_Decimal, // DeclaringTypeId 339(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 340(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 344(byte)SpecialType.System_Decimal, // DeclaringTypeId 347(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 348(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 352(byte)SpecialType.System_Decimal, // DeclaringTypeId 355(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 356(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 360(byte)SpecialType.System_Decimal, // DeclaringTypeId 363(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 364(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 365(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 369(byte)SpecialType.System_Decimal, // DeclaringTypeId 372(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 373(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 374(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 378(byte)SpecialType.System_Decimal, // DeclaringTypeId 381(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 382(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 383(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 387(byte)SpecialType.System_Decimal, // DeclaringTypeId 390(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 391(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 392(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 396(byte)SpecialType.System_Decimal, // DeclaringTypeId 399(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 400(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 401(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 405(byte)SpecialType.System_Decimal, // DeclaringTypeId 408(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 409(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 410(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 414(byte)SpecialType.System_Decimal, // DeclaringTypeId 418(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 419(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 423(byte)SpecialType.System_Decimal, // DeclaringTypeId 427(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 428(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 432(byte)SpecialType.System_Decimal, // DeclaringTypeId 436(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 437(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 441(byte)SpecialType.System_Decimal, // DeclaringTypeId 445(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 446(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 450(byte)SpecialType.System_Decimal, // DeclaringTypeId 454(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 455(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 459(byte)SpecialType.System_Decimal, // DeclaringTypeId 463(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 464(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 468(byte)SpecialType.System_Decimal, // DeclaringTypeId 472(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 473(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 477(byte)SpecialType.System_Decimal, // DeclaringTypeId 480(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 485(byte)SpecialType.System_Decimal, // DeclaringTypeId 488(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 493(byte)SpecialType.System_Decimal, // DeclaringTypeId 496(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 501(byte)SpecialType.System_Decimal, // DeclaringTypeId 504(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 509(byte)SpecialType.System_Decimal, // DeclaringTypeId 512(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 517(byte)SpecialType.System_Decimal, // DeclaringTypeId 520(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 525(byte)SpecialType.System_Decimal, // DeclaringTypeId 528(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 533(byte)SpecialType.System_Decimal, // DeclaringTypeId 536(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 541(byte)SpecialType.System_Decimal, // DeclaringTypeId 544(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 549(byte)SpecialType.System_Decimal, // DeclaringTypeId 553(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 557(byte)SpecialType.System_Decimal, // DeclaringTypeId 561(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 565(byte)SpecialType.System_Decimal, // DeclaringTypeId 569(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 573(byte)SpecialType.System_Decimal, // DeclaringTypeId 577(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 581(byte)SpecialType.System_Decimal, // DeclaringTypeId 585(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 589(byte)SpecialType.System_Decimal, // DeclaringTypeId 593(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 597(byte)SpecialType.System_Decimal, // DeclaringTypeId 601(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 605(byte)SpecialType.System_Decimal, // DeclaringTypeId 609(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 613(byte)SpecialType.System_Decimal, // DeclaringTypeId 617(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 621(byte)SpecialType.System_Decimal, // DeclaringTypeId 625(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 629(byte)SpecialType.System_Decimal, // DeclaringTypeId 633(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 637(byte)SpecialType.System_Decimal, // DeclaringTypeId 640(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 645(byte)SpecialType.System_Decimal, // DeclaringTypeId 648(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal,
SpecialTypeExtensions.cs (4)
79case SpecialType.System_Decimal: 125case SpecialType.System_Decimal: 195case SpecialType.System_Decimal: 327return SpecialType.System_Decimal;
WellKnownMembers.cs (17)
63(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 119(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 143(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 167(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 191(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 215(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 239(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 263(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 287(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 311(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 319(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 1330(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Return Type 1426(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Return Type 1523(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 1642(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Return Type 3076(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Value 3194(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Value
Microsoft.CodeAnalysis.CodeStyle (9)
ITypeSymbolExtensions.cs (3)
298case SpecialType.System_Decimal: 381case SpecialType.System_Decimal: 656case SpecialType.System_Decimal:
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (4)
79case SpecialType.System_Decimal: 125case SpecialType.System_Decimal: 195case SpecialType.System_Decimal: 327return SpecialType.System_Decimal;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
26SpecialType.System_Decimal => PredefinedType.Decimal,
PredefinedTypeExtensions.cs (1)
26PredefinedType.Decimal => SpecialType.System_Decimal,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationHelpers.cs (1)
145SpecialType.System_Decimal => value is decimal,
Microsoft.CodeAnalysis.CSharp (93)
Binder\Binder_Conversions.cs (16)
804SpecialType.System_Decimal => WellKnownMember.System_Runtime_CompilerServices_DecimalConstantAttribute__ctor, 1668else if (destinationType == SpecialType.System_Decimal) 1753case SpecialType.System_Decimal: return (decimal)byteValue; 1773case SpecialType.System_Decimal: return (decimal)charValue; 1793case SpecialType.System_Decimal: return (decimal)uint16Value; 1813case SpecialType.System_Decimal: return (decimal)uint32Value; 1833case SpecialType.System_Decimal: return (decimal)uint64Value; 1852case SpecialType.System_Decimal: return (decimal)nuintValue; 1872case SpecialType.System_Decimal: return (decimal)sbyteValue; 1892case SpecialType.System_Decimal: return (decimal)int16Value; 1912case SpecialType.System_Decimal: return (decimal)int32Value; 1932case SpecialType.System_Decimal: return (decimal)int64Value; 1952case SpecialType.System_Decimal: return (decimal)nintValue; 1976case SpecialType.System_Decimal: return (value.Discriminator == ConstantValueTypeDiscriminator.Single) ? (decimal)(float)doubleValue : (decimal)doubleValue; 1996case SpecialType.System_Decimal: return (decimal)decimalValue; 2044case SpecialType.System_Decimal: return ((double)decimal.MinValue - 1D) < value && value < ((double)decimal.MaxValue + 1D);
Binder\Binder_Expressions.cs (1)
6208case SpecialType.System_Decimal:
Binder\Binder_Invocation.cs (1)
1432if (!conversion.IsValid && defaultConstantValue is { SpecialType: SpecialType.System_Decimal or SpecialType.System_DateTime })
Binder\Binder_Patterns.cs (1)
1698SpecialType.System_Decimal => BinaryOperatorKind.Decimal,
Binder\Binder_Statements.cs (1)
2209(targetType.SpecialType == SpecialType.System_Single || targetType.SpecialType == SpecialType.System_Decimal))
Binder\PatternExplainer.cs (2)
705SpecialType.System_Decimal => true, 732case SpecialType.System_Decimal:
Binder\Semantics\Conversions\Conversions.cs (1)
80SpecialType.System_Decimal => WellKnownMember.System_Runtime_CompilerServices_DecimalConstantAttribute__ctor,
Binder\Semantics\Conversions\ConversionsBase.cs (2)
1965case SpecialType.System_Decimal: 2050case SpecialType.System_Decimal:
Binder\Semantics\Operators\OperatorFacts.cs (1)
38case SpecialType.System_Decimal:
CodeGen\EmitExpression.cs (5)
52(expression.Type.SpecialType != SpecialType.System_Decimal && 1099Debug.Assert(!field.IsConst || field.ContainingType.SpecialType == SpecialType.System_Decimal, 2386if (rightType.IsReferenceType || (right.ConstantValueOpt != null && rightType.SpecialType != SpecialType.System_Decimal)) 3214if (!type.IsTypeParameter() && type.SpecialType != SpecialType.System_Decimal) 3244Debug.Assert(expression.Type.SpecialType == SpecialType.System_Decimal ||
Compilation\BuiltInOperators.cs (5)
277case UnaryOperatorKind.Decimal: opType = _compilation.GetSpecialType(SpecialType.System_Decimal); break; 759case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 791case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 823case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 852case BinaryOperatorKind.Decimal: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Decimal));
Emitter\Model\ParameterSymbolAdapter.cs (1)
241this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_Decimal &&
FlowAnalysis\AbstractFlowPass.cs (1)
1383case SpecialType.System_Decimal:
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
229SpecialType.System_Decimal
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
817SpecialType.System_Decimal => BinaryOperatorKind.DecimalLessThanOrEqual,
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1960Debug.Assert(loweredLeft.Type is { SpecialType: SpecialType.System_Decimal }); 1961Debug.Assert(loweredRight.Type is { SpecialType: SpecialType.System_Decimal });
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (19)
425if (rewrittenType.SpecialType == SpecialType.System_Decimal || rewrittenOperand.Type.SpecialType == SpecialType.System_Decimal) 488if (rewrittenType.SpecialType == SpecialType.System_Decimal) 495else if (rewrittenOperand.Type.SpecialType == SpecialType.System_Decimal) 679rewrittenOperand.Type.SpecialType != SpecialType.System_Decimal && 964if (!TypeSymbol.Equals(typeFrom, typeTo, TypeCompareKind.ConsiderEverything2) && (typeFrom.SpecialType == SpecialType.System_Decimal || typeTo.SpecialType == SpecialType.System_Decimal)) 1414case SpecialType.System_Decimal: 1439case SpecialType.System_Decimal: 1464case SpecialType.System_Decimal: 1489case SpecialType.System_Decimal: 1500if (typeFrom.SpecialType == SpecialType.System_Decimal) 1544Debug.Assert(fromType.SpecialType == SpecialType.System_Decimal || toType.SpecialType == SpecialType.System_Decimal); 1546if (fromType.SpecialType == SpecialType.System_Decimal) 1650if (fromType.SpecialType == SpecialType.System_Decimal || toType.SpecialType == SpecialType.System_Decimal) 1665if (fromType.SpecialType == SpecialType.System_Decimal) 1678else if (toType.SpecialType == SpecialType.System_Decimal)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (3)
30Debug.Assert(type is { SpecialType: SpecialType.System_Decimal }); 73curMethod.ContainingType.SpecialType != SpecialType.System_Decimal) && 133Debug.Assert(ctor.ContainingType.SpecialType == SpecialType.System_Decimal);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
117if (whenNullOpt.IsDefaultValue() && whenNullOpt.Type.SpecialType != SpecialType.System_Decimal)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
770if (unaryOperandType.SpecialType == SpecialType.System_Decimal) 774else if (unaryOperandType.IsNullableType() && unaryOperandType.GetNullableUnderlyingType().SpecialType == SpecialType.System_Decimal) 809Debug.Assert(operand.Type is { SpecialType: SpecialType.System_Decimal }); 816Debug.Assert(operand.Type is { } && operand.Type.IsNullableType() && operand.Type.GetNullableUnderlyingType().SpecialType == SpecialType.System_Decimal); 936specialType = SpecialType.System_Decimal;
Parser\Lexer.cs (4)
376case SpecialType.System_Decimal: 1187info.ValueKind = SpecialType.System_Decimal; 1207info.ValueKind = SpecialType.System_Decimal; 1257case SpecialType.System_Decimal:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
659case SpecialType.System_Decimal:
Symbols\BaseTypeAnalysis.cs (1)
266case SpecialType.System_Decimal:
Symbols\FieldSymbol.cs (1)
142get { return this.IsConst && (this.Type.SpecialType != SpecialType.System_Decimal); }
Symbols\Metadata\PE\PEFieldSymbol.cs (2)
493if (this.Type.SpecialType == SpecialType.System_Decimal) 600return this.Type.SpecialType == SpecialType.System_Decimal &&
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
274if (this.Type.SpecialType == SpecialType.System_Decimal)
Symbols\Source\SourceAssemblySymbol.cs (1)
2742case SpecialType.System_Decimal:
Symbols\Source\SourceMemberFieldSymbol.cs (2)
112&& this.Type.SpecialType == SpecialType.System_Decimal) 136if (IsConst && Type.SpecialType == SpecialType.System_Decimal &&
Symbols\Source\SourceParameterSymbolBase.cs (1)
83defaultValue.SpecialType == SpecialType.System_Decimal &&
Symbols\SpecialTypeExtensions.cs (2)
27case SpecialType.System_Decimal: 60return specialType == SpecialType.System_Decimal ? 0 : specialType.SizeInBytes();
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
201SpecialType.System_Decimal => compilation.SynthesizeDecimalConstantAttribute(defaultValue.DecimalValue),
Symbols\TypeSymbolExtensions.cs (4)
596case SpecialType.System_Decimal: 1355case SpecialType.System_Decimal: 2128case SpecialType.System_Decimal: return 16; 2151case SpecialType.System_Decimal: return 31;
Syntax\SyntaxKindExtensions.cs (1)
40return SpecialType.System_Decimal;
Utilities\ValueSetFactory.cs (1)
49SpecialType.System_Decimal => ForDecimal,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
ITypeSymbolExtensions.cs (1)
27case SpecialType.System_Decimal:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ExpressionGenerator.cs (1)
160var isNotDecimal = !IsSpecialType(type, SpecialType.System_Decimal);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\EmitMetadataTests.cs (2)
962Assert.Equal(SpecialType.System_Decimal, rBack.Type.SpecialType); 1033Assert.Equal(SpecialType.System_Decimal, rBack.Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\DecimalKeywordRecommender.cs (1)
54protected override SpecialType SpecialType => SpecialType.System_Decimal;
Completion\Providers\DefaultArgumentProvider.cs (1)
49SpecialType.System_Decimal => "0.0m",
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
34case SpecialType.System_Decimal: return "decimal";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\OperatorTests.cs (2)
8344(leftType.SpecialType == SpecialType.System_Decimal && (rightType.SpecialType == SpecialType.System_Double || rightType.SpecialType == SpecialType.System_Single)) || 8345(rightType.SpecialType == SpecialType.System_Decimal && (leftType.SpecialType == SpecialType.System_Double || leftType.SpecialType == SpecialType.System_Single))) &&
Semantics\UnsafeTests.cs (1)
7748{ SpecialType.System_Decimal, 16 },
Utilities\ValueSetTests.cs (1)
503Assert.Same(ForDecimal, ForSpecialType(SpecialType.System_Decimal));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
DocumentationComments\CrefTests.cs (1)
5720Assert.Equal(SpecialType.System_Decimal, symbol.ContainingType.SpecialType);
Symbols\TypeTests.cs (2)
1569Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), underType); 1782Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), ((ITypeSymbol)tinfo.ConvertedType).GetNullableUnderlyingType());
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3268case SpecialType.System_Decimal: 3449SpecialType.System_Decimal => SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.DecimalKeyword)),
ExpressionGenerator.cs (1)
160var isNotDecimal = !IsSpecialType(type, SpecialType.System_Decimal);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
27case SpecialType.System_Decimal:
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (3)
23SpecialType.System_Decimal, 104SpecialType.System_Decimal, 116SpecialType.System_Decimal,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
54SpecialType.System_Decimal => SyntaxKind.DecimalKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
310VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Decimal), "decimal"); 983var doubleType = _emptyCompilation.GetSpecialType(SpecialType.System_Decimal);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
105(SpecialType.System_Decimal, decimal decimalValue) => ConstantValue.Create(decimalValue),
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
85case SpecialType.System_Decimal:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
317return SpecialType.System_Decimal;
Microsoft.CodeAnalysis.VisualBasic (61)
Binding\Binder_Conversions.vb (1)
275Case SyntaxKind.CDecKeyword : targetType = SpecialType.System_Decimal
Binding\Binder_Initializers.vb (1)
164ElseIf fieldSymbol.Type.SpecialType = SpecialType.System_Decimal Then
Binding\Binder_SelectCase.vb (1)
712Case SpecialType.System_Decimal
Binding\Binder_Symbols.vb (1)
778type = SpecialType.System_Decimal
Binding\Binder_Utils.vb (2)
704specialType = SpecialType.System_Decimal 707specialType = SpecialType.System_Decimal
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
364type = SpecialType.System_Decimal
CodeGen\EmitExpression.vb (2)
643If field.IsConst AndAlso specType <> SpecialType.System_Decimal AndAlso specType <> SpecialType.System_DateTime Then 1682If rightType.IsReferenceType OrElse (right.ConstantValueOpt IsNot Nothing AndAlso rightType.SpecialType <> SpecialType.System_Decimal) Then
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
464SpecialType.System_Decimal,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
199If operandUnderlyingSpecialType = SpecialType.System_Decimal Then 329ElseIf resultUnderlyingSpecialType = SpecialType.System_Decimal Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (13)
445Case SpecialType.System_Decimal : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanDecimal 454Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToByte 463Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToSByte 472Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToInt16 481Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToUInt16 490Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToInt32 499Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToUInt32 508Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToInt64 517Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToUInt64 522Case SpecialType.System_Decimal 541Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToSingle 548Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToDouble 575Case SpecialType.System_Decimal : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringDecimal
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
47currentMethod.ContainingType.SpecialType <> SpecialType.System_Decimal Then
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (3)
936Case SpecialType.System_Decimal : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDecimalObject 1029Case SpecialType.System_Decimal : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringDecimal 1101Case SpecialType.System_Decimal : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDecimalString
Preprocessor\CConst.vb (2)
49Case SpecialType.System_Decimal 121Return New CConst(Of Decimal)(value, SpecialType.System_Decimal)
Preprocessor\ExpressionEvaluator.vb (8)
35Const __Decimal = CType(SpecialType.System_Decimal, Byte) 95Case SpecialType.System_Decimal 333Case SpecialType.System_Decimal 372Return SpecialType.System_Decimal 529specialType = SpecialType.System_Decimal 873Case SpecialType.System_Decimal 912Case SpecialType.System_Decimal 1407ElseIf left.SpecialType = SpecialType.System_Decimal Then
Preprocessor\OperatorResolution.vb (2)
50Case SpecialType.System_Decimal 80Const t_dec As Byte = CType(SpecialType.System_Decimal, Byte)
Semantics\Operators.vb (5)
602Case SpecialType.System_Decimal, 631SpecialType.System_Decimal, 661SpecialType.System_Decimal, 675intrinsicOperatorType = SpecialType.System_Decimal 1729Const tDec As SByte = SpecialType.System_Decimal
Symbols\FieldSymbol.vb (2)
104Return specialType <> Microsoft.CodeAnalysis.SpecialType.System_DateTime AndAlso specialType <> Microsoft.CodeAnalysis.SpecialType.System_Decimal 122Return specialType = Microsoft.CodeAnalysis.SpecialType.System_DateTime OrElse specialType = Microsoft.CodeAnalysis.SpecialType.System_Decimal
Symbols\Metadata\PE\PEFieldSymbol.vb (2)
169ElseIf Me.Type.SpecialType = SpecialType.System_Decimal Then 278ElseIf Me.Type.SpecialType = SpecialType.System_Decimal Then
Symbols\Source\SourceComplexParameterSymbol.vb (1)
383Case SpecialType.System_Decimal
Symbols\Source\SourceFieldSymbol.vb (1)
677ElseIf Me.Type.SpecialType = SpecialType.System_Decimal Then
Symbols\Source\SourceParameterSymbolBase.vb (1)
67Case SpecialType.System_Decimal
Symbols\SpecialTypeExtensions.vb (6)
39SpecialType.System_Decimal, 171Case SpecialType.System_Decimal 208Case SpecialType.System_Decimal 257Case SpecialType.System_Decimal 303Case SpecialType.System_Decimal 357Case SpecialType.System_Decimal
Symbols\TypeSymbolExtensions.vb (2)
356Return this.SpecialType = SpecialType.System_Decimal 452Case SpecialType.System_Decimal
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
CastAnalyzer.vb (1)
388SpecialType.System_Decimal
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
ITypeSymbolExtensions.vb (3)
29Case specialType.System_Decimal 71specialType = specialType.System_Decimal 115SpecialType.System_Decimal,
StringExtensions.vb (1)
108SpecialType.System_Decimal,
TypeSyntaxGeneratorVisitor.vb (1)
118Case SpecialType.System_Decimal
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
93SpecialType.System_Decimal,
Completion\Providers\DefaultArgumentProvider.vb (1)
46Case SpecialType.System_Decimal
GenerateMember\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
48Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Decimal)
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
26Case SpecialType.System_Decimal
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2784Assert.Equal(compilation.GetSpecialType(System_Decimal), local.Type)
Semantics\Conversions.vb (7)
243Dim decimalType = c1.GetSpecialType(System_Decimal) 1094Dim decimalType = c1.GetSpecialType(System_Decimal) 1357Case System_Decimal : Return c.ToDecimal(Nothing) 1415Case System_Decimal : Return CDec(value) 2035c1.GetSpecialType(System_Decimal), 2051nullable.Construct(c1.GetSpecialType(System_Decimal)), 2175Private Const s_decimal = System_Decimal
Semantics\OverloadResolution.vb (1)
2511System_Decimal, System_Single, System_Double}
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Source\FieldTests.vb (1)
150Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Decimal), DirectCast(fieldU.Type, ArrayTypeSymbol).ElementType)
SymbolsTests\Source\PropertyTests.vb (1)
4346Assert.Equal(SpecialType.System_Decimal, propertiesDictionary!DecimalType.Type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
24Assert.Equal(ConstantValueTypeDiscriminator.Decimal, SpecialType.System_Decimal.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (10)
CastAnalyzer.vb (1)
388SpecialType.System_Decimal
CodeGeneration\ExpressionGenerator.vb (2)
239Dim typeIsNotDecimal = Not IsSpecialType(type, SpecialType.System_Decimal) 375Dim field = GenerateFieldReference(SpecialType.System_Decimal, value, LiteralSpecialValues.DecimalSpecialValues)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
420Case SpecialType.System_Decimal
ITypeSymbolExtensions.vb (3)
29Case specialType.System_Decimal 71specialType = specialType.System_Decimal 115SpecialType.System_Decimal,
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
45Case SpecialType.System_Decimal
StringExtensions.vb (1)
108SpecialType.System_Decimal,
TypeSyntaxGeneratorVisitor.vb (1)
118Case SpecialType.System_Decimal
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.vb (2)
285VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Decimal), "Decimal") 1074Dim doubleType = _emptyCompilation.GetSpecialType(SpecialType.System_Decimal)
Microsoft.CodeAnalysis.Workspaces (11)
CodeGenerationHelpers.cs (1)
145SpecialType.System_Decimal => value is decimal,
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (4)
79case SpecialType.System_Decimal: 125case SpecialType.System_Decimal: 195case SpecialType.System_Decimal: 327return SpecialType.System_Decimal;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (3)
298case SpecialType.System_Decimal: 381case SpecialType.System_Decimal: 656case SpecialType.System_Decimal:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
26SpecialType.System_Decimal => PredefinedType.Decimal,
PredefinedTypeExtensions.cs (1)
26PredefinedType.Decimal => SpecialType.System_Decimal,
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
419case SpecialType.System_Decimal:
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
738case SpecialType.System_Decimal:
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\AbstractCodeModelService.cs (1)
792EnvDTE.vsCMTypeRef.vsCMTypeRefDecimal => SpecialType.System_Decimal,
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
793Case SpecialType.System_Decimal