395 references to System_Decimal
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
271case SpecialType.System_Decimal:
Microsoft.CodeAnalysis (161)
ConstantValue.cs (2)
454case SpecialType.System_Decimal: return ConstantValueTypeDiscriminator.Decimal; 506case 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)
294(byte)SpecialType.System_Decimal, // DeclaringTypeId 296(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Field Signature 300(byte)SpecialType.System_Decimal, // DeclaringTypeId 302(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Field Signature 306(byte)SpecialType.System_Decimal, // DeclaringTypeId 308(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Field Signature 312(byte)SpecialType.System_Decimal, // DeclaringTypeId 320(byte)SpecialType.System_Decimal, // DeclaringTypeId 328(byte)SpecialType.System_Decimal, // DeclaringTypeId 336(byte)SpecialType.System_Decimal, // DeclaringTypeId 344(byte)SpecialType.System_Decimal, // DeclaringTypeId 352(byte)SpecialType.System_Decimal, // DeclaringTypeId 360(byte)SpecialType.System_Decimal, // DeclaringTypeId 372(byte)SpecialType.System_Decimal, // DeclaringTypeId 375(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 376(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 377(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 381(byte)SpecialType.System_Decimal, // DeclaringTypeId 384(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 385(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 386(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 390(byte)SpecialType.System_Decimal, // DeclaringTypeId 393(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 394(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 395(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 399(byte)SpecialType.System_Decimal, // DeclaringTypeId 402(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 403(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 404(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 408(byte)SpecialType.System_Decimal, // DeclaringTypeId 411(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 412(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 413(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 417(byte)SpecialType.System_Decimal, // DeclaringTypeId 420(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 421(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 425(byte)SpecialType.System_Decimal, // DeclaringTypeId 428(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 429(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 433(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 444(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 445(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 449(byte)SpecialType.System_Decimal, // DeclaringTypeId 452(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 453(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 454(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 458(byte)SpecialType.System_Decimal, // DeclaringTypeId 461(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 462(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 463(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 467(byte)SpecialType.System_Decimal, // DeclaringTypeId 470(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 471(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 472(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 476(byte)SpecialType.System_Decimal, // DeclaringTypeId 479(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 480(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 481(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 485(byte)SpecialType.System_Decimal, // DeclaringTypeId 488(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 489(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 490(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 494(byte)SpecialType.System_Decimal, // DeclaringTypeId 497(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 498(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 499(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 503(byte)SpecialType.System_Decimal, // DeclaringTypeId 507(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 508(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 512(byte)SpecialType.System_Decimal, // DeclaringTypeId 516(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 517(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 521(byte)SpecialType.System_Decimal, // DeclaringTypeId 525(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 526(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 530(byte)SpecialType.System_Decimal, // DeclaringTypeId 534(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 535(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 539(byte)SpecialType.System_Decimal, // DeclaringTypeId 543(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 544(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 548(byte)SpecialType.System_Decimal, // DeclaringTypeId 552(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 553(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 557(byte)SpecialType.System_Decimal, // DeclaringTypeId 561(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 562(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 566(byte)SpecialType.System_Decimal, // DeclaringTypeId 569(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 574(byte)SpecialType.System_Decimal, // DeclaringTypeId 577(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 582(byte)SpecialType.System_Decimal, // DeclaringTypeId 585(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 590(byte)SpecialType.System_Decimal, // DeclaringTypeId 593(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 598(byte)SpecialType.System_Decimal, // DeclaringTypeId 601(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 606(byte)SpecialType.System_Decimal, // DeclaringTypeId 609(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 614(byte)SpecialType.System_Decimal, // DeclaringTypeId 617(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 622(byte)SpecialType.System_Decimal, // DeclaringTypeId 625(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 630(byte)SpecialType.System_Decimal, // DeclaringTypeId 633(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 638(byte)SpecialType.System_Decimal, // DeclaringTypeId 642(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 646(byte)SpecialType.System_Decimal, // DeclaringTypeId 650(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 654(byte)SpecialType.System_Decimal, // DeclaringTypeId 658(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 662(byte)SpecialType.System_Decimal, // DeclaringTypeId 666(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 670(byte)SpecialType.System_Decimal, // DeclaringTypeId 674(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 678(byte)SpecialType.System_Decimal, // DeclaringTypeId 682(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 686(byte)SpecialType.System_Decimal, // DeclaringTypeId 690(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 694(byte)SpecialType.System_Decimal, // DeclaringTypeId 698(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 702(byte)SpecialType.System_Decimal, // DeclaringTypeId 706(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 710(byte)SpecialType.System_Decimal, // DeclaringTypeId 714(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 718(byte)SpecialType.System_Decimal, // DeclaringTypeId 722(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 726(byte)SpecialType.System_Decimal, // DeclaringTypeId 729(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 734(byte)SpecialType.System_Decimal, // DeclaringTypeId 737(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal,
SpecialTypeExtensions.cs (4)
80case SpecialType.System_Decimal: 126case SpecialType.System_Decimal: 196case SpecialType.System_Decimal: 328return SpecialType.System_Decimal;
Symbols\INamedTypeSymbolInternal.cs (1)
56case SpecialType.System_Decimal:
WellKnownMembers.cs (17)
43(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 99(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 123(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 147(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 171(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 195(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 219(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 243(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 267(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 291(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 299(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 1338(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Return Type 1434(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Return Type 1531(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, 1650(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Return Type 3074(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Value 3192(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Decimal, // Value
Microsoft.CodeAnalysis.CodeStyle (9)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (4)
80case SpecialType.System_Decimal: 126case SpecialType.System_Decimal: 196case SpecialType.System_Decimal: 328return SpecialType.System_Decimal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
300case SpecialType.System_Decimal: 383case SpecialType.System_Decimal: 666case SpecialType.System_Decimal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
26PredefinedType.Decimal => SpecialType.System_Decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
26SpecialType.System_Decimal => PredefinedType.Decimal,
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
144SpecialType.System_Decimal => value is decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
29case SpecialType.System_Decimal:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
426case SpecialType.System_Decimal:
Microsoft.CodeAnalysis.CSharp (78)
Binder\Binder_Expressions.cs (1)
7275case SpecialType.System_Decimal:
Binder\Binder_Invocation.cs (1)
1683if (!conversion.IsValid && defaultConstantValue is { SpecialType: SpecialType.System_Decimal or SpecialType.System_DateTime })
Binder\Binder_Patterns.cs (1)
1708SpecialType.System_Decimal => BinaryOperatorKind.Decimal,
Binder\Binder_Statements.cs (1)
2245(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)
2114case SpecialType.System_Decimal: 2199case SpecialType.System_Decimal:
Binder\Semantics\Operators\OperatorFacts.cs (1)
38case SpecialType.System_Decimal:
CodeGen\EmitExpression.cs (5)
53(expression.Type.SpecialType != SpecialType.System_Decimal && 1139Debug.Assert(!field.IsConst || field.ContainingType.SpecialType == SpecialType.System_Decimal, 2603if (rightType.IsReferenceType || (right.ConstantValueOpt != null && rightType.SpecialType != SpecialType.System_Decimal)) 3436if (!type.IsTypeParameter() && type.SpecialType != SpecialType.System_Decimal) 3466Debug.Assert(expression.Type.SpecialType == SpecialType.System_Decimal ||
Compilation\BuiltInOperators.cs (5)
277case UnaryOperatorKind.Decimal: opType = _compilation.GetSpecialType(SpecialType.System_Decimal); break; 756case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 788case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 820case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal); 847BinaryOperatorKind.Decimal => _compilation.GetSpecialType(SpecialType.System_Decimal),
Compilation\CSharpCompilation.cs (1)
1733case SpecialType.System_Decimal:
Emitter\Model\ParameterSymbolAdapter.cs (1)
244this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_Decimal &&
FlowAnalysis\AbstractFlowPass.cs (1)
1470case 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)
2040Debug.Assert(loweredLeft.Type is { SpecialType: SpecialType.System_Decimal }); 2041Debug.Assert(loweredRight.Type is { SpecialType: SpecialType.System_Decimal });
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (19)
434if (rewrittenType.SpecialType == SpecialType.System_Decimal || rewrittenOperand.Type.SpecialType == SpecialType.System_Decimal) 497if (rewrittenType.SpecialType == SpecialType.System_Decimal) 504else if (rewrittenOperand.Type.SpecialType == SpecialType.System_Decimal) 821rewrittenOperand.Type.SpecialType != SpecialType.System_Decimal && 1106if (!TypeSymbol.Equals(typeFrom, typeTo, TypeCompareKind.ConsiderEverything2) && (typeFrom.SpecialType == SpecialType.System_Decimal || typeTo.SpecialType == SpecialType.System_Decimal)) 1567case SpecialType.System_Decimal: 1592case SpecialType.System_Decimal: 1617case SpecialType.System_Decimal: 1642case SpecialType.System_Decimal: 1653if (typeFrom.SpecialType == SpecialType.System_Decimal) 1697Debug.Assert(fromType.SpecialType == SpecialType.System_Decimal || toType.SpecialType == SpecialType.System_Decimal); 1699if (fromType.SpecialType == SpecialType.System_Decimal) 1803if (fromType.SpecialType == SpecialType.System_Decimal || toType.SpecialType == SpecialType.System_Decimal) 1818if (fromType.SpecialType == SpecialType.System_Decimal) 1831else 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)
115if (whenNullOpt.IsDefaultValue() && whenNullOpt.Type.SpecialType != SpecialType.System_Decimal)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
787if (unaryOperandType.SpecialType == SpecialType.System_Decimal) 791else if (unaryOperandType.IsNullableType() && unaryOperandType.GetNullableUnderlyingType().SpecialType == SpecialType.System_Decimal) 826Debug.Assert(operand.Type is { SpecialType: SpecialType.System_Decimal }); 833Debug.Assert(operand.Type is { } && operand.Type.IsNullableType() && operand.Type.GetNullableUnderlyingType().SpecialType == SpecialType.System_Decimal); 953specialType = SpecialType.System_Decimal;
Parser\Lexer.cs (4)
378case SpecialType.System_Decimal: 994info.ValueKind = SpecialType.System_Decimal; 1014info.ValueKind = SpecialType.System_Decimal; 1064case SpecialType.System_Decimal:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
665case SpecialType.System_Decimal:
Symbols\FieldSymbol.cs (1)
142get { return this.IsConst && (this.Type.SpecialType != SpecialType.System_Decimal); }
Symbols\Metadata\PE\PEFieldSymbol.cs (2)
495if (this.Type.SpecialType == SpecialType.System_Decimal) 602return this.Type.SpecialType == SpecialType.System_Decimal &&
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1927case SpecialType.System_Decimal:
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
274if (this.Type.SpecialType == SpecialType.System_Decimal)
Symbols\Source\SourceAssemblySymbol.cs (1)
2789case 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)
87defaultValue.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)
215SpecialType.System_Decimal => compilation.SynthesizeDecimalConstantAttribute(defaultValue.DecimalValue),
Symbols\TypeSymbolExtensions.cs (4)
660case SpecialType.System_Decimal: 1467case SpecialType.System_Decimal: 2229case SpecialType.System_Decimal: return 16; 2252case 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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
33case SpecialType.System_Decimal:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
161var 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)
8345(leftType.SpecialType == SpecialType.System_Decimal && (rightType.SpecialType == SpecialType.System_Double || rightType.SpecialType == SpecialType.System_Single)) || 8346(rightType.SpecialType == SpecialType.System_Decimal && (leftType.SpecialType == SpecialType.System_Double || leftType.SpecialType == SpecialType.System_Single))) &&
Semantics\UnsafeTests.cs (1)
10593{ 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)
1570Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), underType); 1785Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), ((ITypeSymbol)tinfo.ConvertedType).GetNullableUnderlyingType());
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3269case SpecialType.System_Decimal: 3450SpecialType.System_Decimal => DecimalKeyword,
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (3)
24SpecialType.System_Decimal, 110SpecialType.System_Decimal, 124SpecialType.System_Decimal,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
52SpecialType.System_Decimal => SyntaxKind.DecimalKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
33case SpecialType.System_Decimal:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
161var isNotDecimal = !IsSpecialType(type, SpecialType.System_Decimal);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
309VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Decimal), "decimal"); 996var 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)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
345SpecialType.System_Decimal,
Binding\Binder_Conversions.vb (1)
283Case 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)
648If field.IsConst AndAlso specType <> SpecialType.System_Decimal AndAlso specType <> SpecialType.System_DateTime Then 1805If rightType.IsReferenceType OrElse (right.ConstantValueOpt IsNot Nothing AndAlso rightType.SpecialType <> SpecialType.System_Decimal) Then
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
490SpecialType.System_Decimal,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
263If operandUnderlyingSpecialType = SpecialType.System_Decimal Then 405ElseIf resultUnderlyingSpecialType = SpecialType.System_Decimal Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (13)
465Case SpecialType.System_Decimal : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanDecimal 474Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToByte 483Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToSByte 492Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToInt16 501Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToUInt16 510Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToInt32 519Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToUInt32 528Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToInt64 537Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToUInt64 542Case SpecialType.System_Decimal 561Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToSingle 568Case SpecialType.System_Decimal : specialHelper = SpecialMember.System_Decimal__op_Explicit_ToDouble 595Case 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)
850Case SpecialType.System_Decimal : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDecimalObject 943Case SpecialType.System_Decimal : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringDecimal 1015Case 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\Metadata\PE\PEFieldSymbol.vb (2)
170ElseIf Me.Type.SpecialType = SpecialType.System_Decimal Then 281ElseIf Me.Type.SpecialType = SpecialType.System_Decimal Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1154SpecialType.System_Decimal,
Symbols\Source\SourceComplexParameterSymbol.vb (1)
383Case SpecialType.System_Decimal
Symbols\Source\SourceFieldSymbol.vb (1)
696ElseIf 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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
385SpecialType.System_Decimal
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (8)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
48Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Decimal)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
239Dim typeIsNotDecimal = Not IsSpecialType(type, SpecialType.System_Decimal) 375Dim field = GenerateFieldReference(SpecialType.System_Decimal, value, LiteralSpecialValues.DecimalSpecialValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
29Case specialType.System_Decimal 71specialType = specialType.System_Decimal 115SpecialType.System_Decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
108SpecialType.System_Decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
118Case SpecialType.System_Decimal
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
90SpecialType.System_Decimal,
Completion\Providers\DefaultArgumentProvider.vb (1)
46Case SpecialType.System_Decimal
src\Analyzers\VisualBasic\CodeFixes\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) 1095Dim decimalType = c1.GetSpecialType(System_Decimal) 1359Case System_Decimal : Return c.ToDecimal(Nothing) 1433Case System_Decimal : Return CDec(value) 2053c1.GetSpecialType(System_Decimal), 2069nullable.Construct(c1.GetSpecialType(System_Decimal)), 2193Private 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)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
399Case SpecialType.System_Decimal
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
45Case SpecialType.System_Decimal
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
385SpecialType.System_Decimal
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (2)
239Dim typeIsNotDecimal = Not IsSpecialType(type, SpecialType.System_Decimal) 375Dim field = GenerateFieldReference(SpecialType.System_Decimal, value, LiteralSpecialValues.DecimalSpecialValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
29Case specialType.System_Decimal 71specialType = specialType.System_Decimal 115SpecialType.System_Decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
108SpecialType.System_Decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\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 (12)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (4)
80case SpecialType.System_Decimal: 126case SpecialType.System_Decimal: 196case SpecialType.System_Decimal: 328return SpecialType.System_Decimal;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
300case SpecialType.System_Decimal: 383case SpecialType.System_Decimal: 666case SpecialType.System_Decimal:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
26PredefinedType.Decimal => SpecialType.System_Decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
26SpecialType.System_Decimal => PredefinedType.Decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
144SpecialType.System_Decimal => value is decimal,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
29case SpecialType.System_Decimal:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
426case SpecialType.System_Decimal:
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
53SpecialType.System_Decimal => true,
Microsoft.Gen.Metrics (1)
Parser.cs (1)
40SpecialType.System_Decimal,
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
40SpecialType.System_Decimal,
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
735case SpecialType.System_Decimal:
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
793Case SpecialType.System_Decimal
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
195SpecialType.System_Single or SpecialType.System_Double or SpecialType.System_Decimal;