927 references to System_Int32
Aspire.Hosting.Integration.Analyzers (1)
AspireExportAnalyzer.cs (1)
988SpecialType.System_Int32 => true,
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
278case SpecialType.System_Int32:
GenerateDocumentationAndConfigFiles (30)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
27or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
409returnType: generator.TypeExpression(SpecialType.System_Int32),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
98var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
65SpecialType.System_Int32 => 1,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
140SpecialType.System_Int32 => value is int,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
442case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
136? factory.SimpleLocalDeclarationStatement(generatorInternal, compilation.GetSpecialType(SpecialType.System_Int32), HashCodeName, CreateLiteralExpression(factory, initHash)) 166compilation.GetSpecialType(SpecialType.System_Int32), 210method.ReturnType.SpecialType == SpecialType.System_Int32 &&
ILLink.RoslynAnalyzer (3)
ISymbolExtensions.cs (1)
222methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
TrimAnalysis\TrimAnalysisVisitor.cs (2)
202(operation.Type?.TypeKind == TypeKind.Enum || operation.Type?.SpecialType == SpecialType.System_Int32)) 550case SpecialType.System_Int32 when constantValue is int int32ConstantValue:
Microsoft.Analyzers.Local (2)
ApiLifecycle\AssemblyAnalysis.cs (1)
148if (type.EnumUnderlyingType.SpecialType != SpecialType.System_Int32)
CallAnalysis\ToInvariantString.cs (1)
20SpecialType.System_Int32,
Microsoft.AspNetCore.Mvc.Api.Analyzers (5)
AddResponseTypeAttributeCodeFixAction.cs (1)
156field.Type.SpecialType == SpecialType.System_Int32 &&
SymbolApiResponseMetadataProvider.cs (4)
195(namedArgumentValue.Type.SpecialType & SpecialType.System_Int32) == SpecialType.System_Int32 && 212(parameter.Type.SpecialType & SpecialType.System_Int32) == SpecialType.System_Int32)
Microsoft.CodeAnalysis (190)
Compilation\Expression.cs (1)
13case SpecialType.System_Int32:
ConstantValue.cs (2)
444case SpecialType.System_Int32: return ConstantValueTypeDiscriminator.Int32; 496case ConstantValueTypeDiscriminator.Int32: return SpecialType.System_Int32;
Emit\CommonPEModuleBuilder.cs (1)
1151this.GetSpecialType(SpecialType.System_Int32, syntaxNodeOpt, diagnostics),
MetadataReader\MetadataTypeCodeExtensions.cs (3)
40return SpecialType.System_Int32; 114case SpecialType.System_Int32: 157case SpecialType.System_Int32:
Operations\ControlFlowGraphBuilder.cs (1)
5254var shiftConst = new LiteralOperation(semanticModel: null, operand.Syntax, _compilation.GetSpecialType(SpecialType.System_Int32),
PEWriter\Types.cs (1)
22SystemInt32 = CodeAnalysis.SpecialType.System_Int32,
SpecialMembers.cs (34)
171(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 179(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 206(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 207(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 215(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 324(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 372(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 373(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 374(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 514(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 602(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 713(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 767(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 896(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 910(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 911(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 918(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 919(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 926(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 974(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 999(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1165(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1180(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1188(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1195(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1234(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1250(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1257(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1266(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1275(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1299(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1315(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1354(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1358(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32,
SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
SpecialTypes.cs (2)
119s_typeIdToTypeCodeMap[(int)SpecialType.System_Int32] = Microsoft.Cci.PrimitiveTypeCode.Int32; 143s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int32] = SpecialType.System_Int32;
Symbols\Attributes\CommonAttributeData.cs (9)
216if (parameters[2].Type.SpecialType == SpecialType.System_Int32) 218Debug.Assert(parameters[2].Type.SpecialType == SpecialType.System_Int32); 219Debug.Assert(parameters[3].Type.SpecialType == SpecialType.System_Int32); 220Debug.Assert(parameters[4].Type.SpecialType == SpecialType.System_Int32); 222high = args[2].DecodeValue<int>(SpecialType.System_Int32); 223mid = args[3].DecodeValue<int>(SpecialType.System_Int32); 224low = args[4].DecodeValue<int>(SpecialType.System_Int32); 531alignment = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32); 543size = namedArg.Value.DecodeValue<int>(Microsoft.CodeAnalysis.SpecialType.System_Int32);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (3)
187parameterIndex = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32); 237elementCount = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32); 379elementCount = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32);
Symbols\INamedTypeSymbolInternal.cs (1)
52case SpecialType.System_Int32:
Symbols\TypedConstant.cs (1)
167case SpecialType.System_Int32:
WellKnownMembers.cs (119)
51(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 194(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 202(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 210(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 451(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 678(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 750(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 770(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 782(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 889(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 890(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 891(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 921(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 951(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1018(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1043(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1176(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1386(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1475(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1602(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1960(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1970(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2091(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2092(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2144(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2161(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2516(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2524(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2532(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2540(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2549(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2557(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2598(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2938(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2939(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2941(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2950(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2951(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2953(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2961(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2969(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2970(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Lambda id 2978(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2987(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2988(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Lambda id 3012(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3021(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3030(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3039(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3048(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3057(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3066(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3075(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3084(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3093(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3102(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3111(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Size 3112(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3120(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Source parameter index 3121(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Target local index 3130(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3139(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3148(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3157(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3166(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3175(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3184(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3193(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3202(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3211(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3220(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3229(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Size 3230(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3238(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Source parameter index 3239(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Target parameter index 3247(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Source local index 3248(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Target local index 3327(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3351(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3358(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 3369(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3370(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3379(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3396(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3397(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3413(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3420(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 3431(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3432(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3503(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3511(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3512(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3799(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3806(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 3964(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3972(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4065(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4087(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4110(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4118(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4139(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4162(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4171(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4188(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4203(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4218(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4235(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4243(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4250(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4284(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5236(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Argument: int 5247(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5258(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5269(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5270(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5281(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5292(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5293(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 5304(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32,
Microsoft.CodeAnalysis.Analyzers (31)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
378or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
27or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
409returnType: generator.TypeExpression(SpecialType.System_Int32),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
98var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
65SpecialType.System_Int32 => 1,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
140SpecialType.System_Int32 => value is int,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
442case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
136? factory.SimpleLocalDeclarationStatement(generatorInternal, compilation.GetSpecialType(SpecialType.System_Int32), HashCodeName, CreateLiteralExpression(factory, initHash)) 166compilation.GetSpecialType(SpecialType.System_Int32), 210method.ReturnType.SpecialType == SpecialType.System_Int32 &&
Microsoft.CodeAnalysis.AnalyzerUtilities (28)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
378or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
27or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (3)
50case SpecialType.System_Int32: 316case SpecialType.System_Int32: 336case SpecialType.System_Int32:
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
244var incrementValueType = WellKnownTypeProvider.Compilation.GetSpecialType(SpecialType.System_Int32);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
98var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
65SpecialType.System_Int32 => 1,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
Microsoft.CodeAnalysis.CodeStyle (22)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
295if (parameter.Type.SpecialType != SpecialType.System_Int32)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
98var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
65SpecialType.System_Int32 => 1,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
385case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
140SpecialType.System_Int32 => value is int,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
442case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
136? factory.SimpleLocalDeclarationStatement(generatorInternal, compilation.GetSpecialType(SpecialType.System_Int32), HashCodeName, CreateLiteralExpression(factory, initHash)) 166compilation.GetSpecialType(SpecialType.System_Int32), 210method.ReturnType.SpecialType == SpecialType.System_Int32 &&
Microsoft.CodeAnalysis.CSharp (213)
Binder\Binder_Conversions.cs (15)
4023case SpecialType.System_Int32: return (int)byteValue; 4043case SpecialType.System_Int32: return (int)charValue; 4063case SpecialType.System_Int32: return (int)uint16Value; 4083case SpecialType.System_Int32: return (int)uint32Value; 4103case SpecialType.System_Int32: return (int)uint64Value; 4123case SpecialType.System_Int32: return (int)nuintValue; 4142case SpecialType.System_Int32: return (int)sbyteValue; 4162case SpecialType.System_Int32: return (int)int16Value; 4182case SpecialType.System_Int32: return (int)int32Value; 4202case SpecialType.System_Int32: return (int)int64Value; 4222case SpecialType.System_Int32: return (int)nintValue; 4246case SpecialType.System_Int32: return (int)doubleValue; 4266case SpecialType.System_Int32: return (int)decimalValue; 4317case SpecialType.System_Int32: return (int.MinValue - 1D) < value && value < (int.MaxValue + 1D); 4347case SpecialType.System_Int32: return (int.MinValue - 1M) < value && value < (int.MaxValue + 1M);
Binder\Binder_Expressions.cs (24)
1474this.GetSpecialType(SpecialType.System_Int32, diagnostics, node), hasErrors); 2686TypeSymbol intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 4562GetSpecialType(SpecialType.System_Int32, diagnostics, nonNullSyntax)) 4643count = GenerateConversionForAssignment(GetSpecialType(SpecialType.System_Int32, diagnostics, node), count, diagnostics); 4787GetSpecialType(SpecialType.System_Int32, diagnostics, node)) 4808if (constantValue == null || constantValue.IsBad || expression.Type.SpecialType != SpecialType.System_Int32) 4832if (type == SpecialType.System_Int32) 5424lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.GetSpecialType(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true }; 7506case SpecialType.System_Int32: 9717BoundExpression convertedIndex = TryImplicitConversionToArrayIndex(index, SpecialType.System_Int32, node, diagnostics); 9805if (convertedIndex.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 9886if (hatExpression.Operand.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 9892else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex } } operand }) 9899arguments[0] is { ConstantValueOpt: { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex1 } } index && 10021var int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 10056TryImplicitConversionToArrayIndex(index, SpecialType.System_Int32, node, diagnostics) ?? 10093NamedTypeSymbol int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 10689original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None }) 10691var intPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10762var startArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10763var lengthArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10790original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } && 10791original.Parameters[1] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None }; 10853getMethod.ReturnType.SpecialType == SpecialType.System_Int32 &&
Binder\Binder_InterpolatedString.cs (2)
55var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 711var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, syntax);
Binder\Binder_Invocation.cs (2)
1696defaultValue = new BoundLiteral(syntax, ConstantValue.Create(line), Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1843TypeSymbol int32Type = GetSpecialType(SpecialType.System_Int32, diagnostics, node);
Binder\Binder_Operators.cs (3)
2664return SpecialType.System_Int32; 2666case SpecialType.System_Int32: 4732return new BoundLiteral(node, ConstantValue.Create((int)-2147483648), GetSpecialType(SpecialType.System_Int32, diagnostics, node));
Binder\Binder_Patterns.cs (2)
2151if (memberType.SpecialType == SpecialType.System_Int32 && 2389SpecialType.System_Int32 => BinaryOperatorKind.Int,
Binder\DecisionDagBuilder.cs (7)
499RoslynDebug.Assert(getLengthProperty.Type.SpecialType == SpecialType.System_Int32); 2704case (SpecialType.System_Int32, SpecialType.System_UInt32): 2705case (SpecialType.System_UInt32, SpecialType.System_Int32): 2714case (SpecialType.System_Int32, SpecialType.System_IntPtr): 2715case (SpecialType.System_Int32, SpecialType.System_UIntPtr): 2718case (SpecialType.System_IntPtr, SpecialType.System_Int32): 2720case (SpecialType.System_UIntPtr, SpecialType.System_Int32):
Binder\PatternExplainer.cs (2)
839SpecialType.System_Int32 => true, 865case SpecialType.System_Int32:
Binder\RefSafetyAnalysis.cs (2)
289return placeholder.Type?.SpecialType == SpecialType.System_Int32; 1111Debug.Assert(node.ArgumentPlaceholders.All(p => p is BoundImplicitIndexerValuePlaceholder { Type.SpecialType: SpecialType.System_Int32 }));
Binder\Semantics\Conversions\ConversionsBase.cs (5)
1380if (specialSource == SpecialType.System_Int32) 1771TypeSymbol expectedAttributeType = corLibrary.GetSpecialType(SpecialType.System_Int32); 2122case SpecialType.System_Int32: 2207case SpecialType.System_Int32: 3950case SpecialType.System_Int32:
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
354if (left.Type.SpecialType == SpecialType.System_Int32 ||
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
564operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntAddition, pointerType, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType)); 568operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.IntAndPointerAddition, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType, pointerType)); 574operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntSubtraction, pointerType, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType));
Binder\Semantics\Operators\OperatorFacts.cs (1)
43case SpecialType.System_Int32:
Binder\Semantics\Operators\OperatorKindExtensions.cs (2)
152case SpecialType.System_Int32: 170case SpecialType.System_Int32:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3821case SpecialType.System_Int32:
BoundTree\BoundInlineArrayAccess.cs (1)
19{ SpecialType: SpecialType.System_Int32 } or
CodeGen\EmitArrayInitializer.cs (1)
803SpecialType.System_Int32 or SpecialType.System_UInt32 or SpecialType.System_Single or
CodeGen\EmitExpression.cs (7)
1351case SpecialType.System_Int32: 2379Debug.Assert(expression.Type.SpecialType == SpecialType.System_Int32 || 3577Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3594Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3608Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3631Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3710Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32);
CodeGen\EmitStatement.cs (1)
1420var int32Type = Binder.GetSpecialType(_module.Compilation, SpecialType.System_Int32, syntaxNode, _diagnostics);
Compilation\BuiltInOperators.cs (6)
268case UnaryOperatorKind.Int: opType = _compilation.GetSpecialType(SpecialType.System_Int32); break; 720TypeSymbol rightType = _compilation.GetSpecialType(SpecialType.System_Int32); 748case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 780case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 812case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 839BinaryOperatorKind.Int => _compilation.GetSpecialType(SpecialType.System_Int32),
Compilation\CSharpCompilation.cs (5)
1809case SpecialType.System_Int32: 2270if (method.ReturnType.IsVoidType() || method.ReturnType.SpecialType == SpecialType.System_Int32) 2300return returnType.IsVoidType() || returnType.SpecialType == SpecialType.System_Int32; 2319if (returnType.SpecialType != SpecialType.System_Int32 && !returnType.IsVoidType()) 4656=> type.SpecialType is SpecialType.System_Int32 or SpecialType.System_UInt32 or SpecialType.System_Int64 or SpecialType.System_UInt64;
Compiler\MethodBodySynthesizer.cs (1)
94var intType = compilation.GetSpecialType(SpecialType.System_Int32);
Compiler\MethodBodySynthesizer.Lowered.cs (3)
55LocalSymbol i = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32)); 153LocalSymbol i = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32)); 361Debug.Assert(system_Int32.SpecialType == SpecialType.System_Int32);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
312var intType = Compilation.GetSpecialType(SpecialType.System_Int32);
Emitter\Model\PEAssemblyBuilder.cs (2)
645GetSpecialType(SpecialType.System_Int32, diagnostics)); 653int32Type: GetSpecialType(SpecialType.System_Int32, diagnostics));
Emitter\Model\PEModuleBuilder.cs (4)
2099Debug.Assert(intType.SpecialType == SpecialType.System_Int32); 2170Debug.Assert(intType.SpecialType == SpecialType.System_Int32); 2187Debug.Assert(intType.SpecialType == SpecialType.System_Int32); 2203Debug.Assert(intType.SpecialType == SpecialType.System_Int32);
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
55factory.Array(payloadArrayType.ElementType, factory.Binary(BinaryOperatorKind.Addition, factory.SpecialType(SpecialType.System_Int32), factory.MaximumMethodDefIndex(), factory.Literal(1))));
FlowAnalysis\AbstractFlowPass.cs (1)
1515case SpecialType.System_Int32:
FlowAnalysis\DefiniteAssignment.cs (1)
1548(elementAccess.Argument.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: 0 } ||
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
226var pendingBranchVar = new SynthesizedLocal(_F.CurrentFunction, TypeWithAnnotations.Create(_F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingBranch, tryStatementSyntax); 1132this.pendingCatch = new SynthesizedLocal(F.CurrentFunction, TypeWithAnnotations.Create(F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingCatch, tryStatementSyntax);
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
141stateField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName(), isPublic: true);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
104_int32Type = _bound.SpecialType(SpecialType.System_Int32);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
219methodBodyFactory.SpecialType(SpecialType.System_Int32), fileIndices.ToImmutable());
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
221SpecialType.System_Int32 or SpecialType.System_UInt32
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
26var intType = container.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32);
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
102EnsureSpecialType(SpecialType.System_Int32, bag); 177stateField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName());
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1074_whenNodeIdentifierLocal ??= _factory.SynthesizedLocal(_factory.SpecialType(SpecialType.System_Int32));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
262Debug.Assert(e.Property.GetMethod.Parameters[0].Type.SpecialType == SpecialType.System_Int32); 441if (operatorKind.OperandTypes() == BinaryOperatorKind.Int && comparisonType.SpecialType != SpecialType.System_Int32) 452comparisonType = _factory.SpecialType(SpecialType.System_Int32);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
2158Debug.Assert(rightType.SpecialType == SpecialType.System_Int32); 2230Debug.Assert(rightType.SpecialType == SpecialType.System_Int32); 2324Debug.Assert(sizeOfExpression.Type is { SpecialType: SpecialType.System_Int32 }); 2351case SpecialType.System_Int32: 2398case SpecialType.System_Int32:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1500_compilation.GetSpecialType(SpecialType.System_Int32))),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
670var intType = _factory.SpecialType(SpecialType.System_Int32); 859_compilation.GetSpecialType(SpecialType.System_Int32))),
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
609createSpan = _factory.ModuleBuilderOpt.EnsureInlineArrayAsReadOnlySpanExists(syntax, spanType.OriginalDefinition, _factory.SpecialType(SpecialType.System_Int32), _diagnostics.DiagnosticBag); 614createSpan = _factory.ModuleBuilderOpt.EnsureInlineArrayAsSpanExists(syntax, spanType.OriginalDefinition, _factory.SpecialType(SpecialType.System_Int32), _diagnostics.DiagnosticBag); 1674case SpecialType.System_Int32: 1701case SpecialType.System_Int32: 1725case SpecialType.System_Int32: 1746case SpecialType.System_Int32: 1777case SpecialType.System_Int32: return SpecialMember.System_Decimal__op_Explicit_ToInt32; 1797case SpecialType.System_Int32: return SpecialMember.System_Decimal__op_Implicit_FromInt32;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (6)
611TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 645MakeLiteral(forEachSyntax, ConstantValue.Default(SpecialType.System_Int32), intType)); 772NamedTypeSymbol intType = rewriter._factory.SpecialType(SpecialType.System_Int32); 912TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 934MakeLiteral(forEachSyntax, ConstantValue.Default(SpecialType.System_Int32), intType)); 1062TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (11)
261if (node.Argument.Type.SpecialType == SpecialType.System_Int32) 336rangeSizeExpr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: >= 0 and int rangeSizeConst } && 364return expr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: 0 }; 404Debug.Assert(index.Type?.SpecialType == SpecialType.System_Int32); 408if (index.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 626Debug.Assert(integerArgument.Type!.SpecialType == SpecialType.System_Int32); 723Debug.Assert(loweredExpr.Type!.SpecialType == SpecialType.System_Int32); 734Debug.Assert(loweredExpr.Type!.SpecialType == SpecialType.System_Int32); 782Debug.Assert(hatExpression.Operand is { Type: { SpecialType: SpecialType.System_Int32 } }); 786else if (unloweredExpr is BoundConversion { Operand: { Type: { SpecialType: SpecialType.System_Int32 } } operand }) 795arguments[0] is { Type.SpecialType: SpecialType.System_Int32, ConstantValueOpt.Value: int _ and >= 0 } index &&
Lowering\LocalRewriter\LocalRewriter_Literal.cs (4)
100arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((int)value), _compilation.GetSpecialType(SpecialType.System_Int32))); 124arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(low), _compilation.GetSpecialType(SpecialType.System_Int32))); 125arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(mid), _compilation.GetSpecialType(SpecialType.System_Int32))); 126arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(high), _compilation.GetSpecialType(SpecialType.System_Int32)));
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (1)
50case SpecialType.System_Int32:
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
932Debug.Assert(boundOne.Type is { SpecialType: SpecialType.System_Int32 }); 1073specialType = SpecialType.System_Int32; 1194case SpecialType.System_Int32:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
129this.cachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), syntax: F.Syntax, kind: SynthesizedLocalKind.StateMachineCachedState);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
109initialThreadIdField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeIteratorCurrentThreadIdFieldName());
Lowering\SyntheticBoundNodeFactory.cs (11)
734return Binary(BinaryOperatorKind.IntSubtraction, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 739return Binary(BinaryOperatorKind.IntMultiplication, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 749return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1104Debug.Assert(ex.Type is { SpecialType: CodeAnalysis.SpecialType.System_Int32 }); 1200return new BoundArrayLength(Syntax, array, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)); 1331return new BoundSizeOfOperator(Syntax, Type(type), Binder.GetConstantSizeOf(type), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1357SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1367SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1377SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1418SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1430SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32))
Parser\Lexer.cs (3)
349case SpecialType.System_Int32: 1074info.ValueKind = SpecialType.System_Int32; 2659info.ValueKind = SpecialType.System_Int32;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
690case SpecialType.System_Int32:
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (1)
134get { return Compilation.GetSpecialType(SpecialType.System_Int32); }
Symbols\Attributes\SourceAttributeData.cs (1)
374if (specType != SpecialType.System_Int32)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2508case SpecialType.System_Int32:
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
189int offset = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (3)
1971var int32Type = _compilation.GetSpecialType(SpecialType.System_Int32); 2622int arg = attribute.GetConstructorArgument<int>(i, SpecialType.System_Int32); 2814case SpecialType.System_Int32:
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1097TypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\SourceFixedFieldSymbol.cs (2)
47var intType = compilation.GetSpecialType(SpecialType.System_Int32); 90TypeSymbol intType = binder.GetSpecialType(SpecialType.System_Int32, diagnostics, sizeExpression);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5481TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Int32)),
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1019Debug.Assert(arguments.Attribute.AttributeConstructor.Parameters is [{ Type.SpecialType: SpecialType.System_Int32 }, { Type.SpecialType: SpecialType.System_String }]);
Symbols\Source\SourceModuleSymbol.cs (2)
680var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, 11)); 686var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, CSharpCompilationOptions.UpdatedMemorySafetyRulesVersion));
Symbols\Source\SourceNamedTypeSymbol.cs (3)
1022int length = attributeData.GetConstructorArgument<int>(0, SpecialType.System_Int32); 1221int length = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32); 1993(type.SpecialType == SpecialType.System_Int32 ||
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
69type = compilation.GetSpecialType(SpecialType.System_Int32); 76NamedTypeSymbol defaultUnderlyingType = compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
953else if (this.GetParameterType(1).StrippedType().SpecialType != SpecialType.System_Int32)
Symbols\SpecialTypeExtensions.cs (2)
19case SpecialType.System_Int32: 43case SpecialType.System_Int32:
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (2)
34return (ReturnType: TypeWithAnnotations.Create(Binder.GetSpecialType(compilation, SpecialType.System_Int32, location, diagnostics)), 81if (overridden is null || overridden.ReturnType.SpecialType != SpecialType.System_Int32)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
417ReturnType.SpecialType == SpecialType.System_Int32);
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
213arguments: ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, _arrayLength)),
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
49Construct(Binder.GetSpecialType(compilation, SpecialType.System_Int32, NoLocation.Singleton, diagnostics)); 52_returnType = Binder.GetSpecialType(compilation, SpecialType.System_Int32, NoLocation.Singleton, diagnostics);
Symbols\TypeSymbolExtensions.cs (5)
691case SpecialType.System_Int32: 1434case SpecialType.System_Int32: 1540case SpecialType.System_Int32: 2314case SpecialType.System_Int32: return 6; 2337case SpecialType.System_Int32: return 21;
Syntax\SyntaxKindExtensions.cs (1)
28return SpecialType.System_Int32;
Utilities\ValueSetFactory.cs (1)
42SpecialType.System_Int32 => ForInt,
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
158if (firstParameter is { Type.SpecialType: SpecialType.System_Int32, Name: "capacity" })
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (4)
33p.Type.SpecialType == SpecialType.System_Int32) 78method.OriginalDefinition.Parameters[0].Type.SpecialType == SpecialType.System_Int32; 116=> parameter.Type.SpecialType == SpecialType.System_Int32 && 120=> parameter.Type.SpecialType == SpecialType.System_Int32 &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
23case SpecialType.System_Int32:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
250var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.SpecialType != SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (1)
57static m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Int32, Name: "capacity" }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
281case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (9)
589return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 848return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 972return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1070return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1975return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1993return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2000return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2220return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2275return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32));
Microsoft.CodeAnalysis.CSharp.Features (14)
Completion\KeywordRecommenders\IntKeywordRecommender.cs (1)
50protected override SpecialType SpecialType => SpecialType.System_Int32;
Completion\Providers\DefaultArgumentProvider.cs (1)
45SpecialType.System_Int32 => "0",
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
90model.Compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(),
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (2)
303methodSymbol.ReturnType?.SpecialType == SpecialType.System_Int32 && 368=> typeSymbol.SpecialType == SpecialType.System_Int32;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
255Contract.ThrowIfFalse(controlFlowValueType.SpecialType == SpecialType.System_Int32);
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
69type: compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(allowVar: false),
Snippets\AbstractCSharpForLoopSnippetProvider.cs (1)
95: compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax();
Snippets\CSharpIntMainSnippetProvider.cs (1)
31=> (TypeSyntax)generator.TypeExpression(SpecialType.System_Int32);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
158if (firstParameter is { Type.SpecialType: SpecialType.System_Int32, Name: "capacity" })
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (4)
33p.Type.SpecialType == SpecialType.System_Int32) 78method.OriginalDefinition.Parameters[0].Type.SpecialType == SpecialType.System_Int32; 116=> parameter.Type.SpecialType == SpecialType.System_Int32 && 120=> parameter.Type.SpecialType == SpecialType.System_Int32 &&
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
37case SpecialType.System_Int32: return "int";
Microsoft.CodeAnalysis.CSharp.Workspaces (22)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3508SpecialType.System_Int32 => IntKeyword,
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (7)
27SpecialType.System_Int32, 74SpecialType.System_Int32, 84SpecialType.System_Int32, 96SpecialType.System_Int32, 111SpecialType.System_Int32, 126SpecialType.System_Int32, 217SpecialType.System_Int32 => s_int32Conversions,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
44SpecialType.System_Int32 => SyntaxKind.IntKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
250var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.SpecialType != SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (1)
57static m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Int32, Name: "capacity" }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
281case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (9)
589return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 848return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 972return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1070return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1975return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1993return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2000return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2220return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2275return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32));
Microsoft.CodeAnalysis.Extensions.Package (18)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
Microsoft.CodeAnalysis.Features (7)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
536=> property is { IsIndexer: true, Parameters: [{ Type.SpecialType: SpecialType.System_Int32 }] };
ExtractMethod\ExtractMethodFlowControlInformation.cs (1)
78controlFlowValueType = compilation.GetSpecialType(SpecialType.System_Int32);
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
137returnType: compilation.GetSpecialType(SpecialType.System_Int32),
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
677compilation.GetSpecialType(SpecialType.System_Int32),
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
587if (symbol.IsEnumType() && symbol.EnumUnderlyingType!.SpecialType != SpecialType.System_Int32)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
295if (parameter.Type.SpecialType != SpecialType.System_Int32)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
385case SpecialType.System_Int32:
Microsoft.CodeAnalysis.ResxSourceGenerator (24)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
378or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
27or SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
98var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
65SpecialType.System_Int32 => 1,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
63case SpecialType.System_Int32:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
281return SpecialType.System_Int32;
Microsoft.CodeAnalysis.VisualBasic (118)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
341SpecialType.System_Int32,
Binding\Binder_Conversions.vb (1)
285Case SyntaxKind.CIntKeyword : targetType = SpecialType.System_Int32
Binding\Binder_Expressions.vb (3)
3923Dim int32Type = GetSpecialType(SpecialType.System_Int32, node.ArgumentList, diagnostics) 4134Dim Int32Type = GetSpecialType(SpecialType.System_Int32, node, diagnostics) 4350Dim int32Type = GetSpecialType(SpecialType.System_Int32, arrayBoundsOpt, diagnostics)
Binding\Binder_Invocation.vb (5)
2719GetSpecialType(SpecialType.System_Int32, node, diagnostics)).MakeCompilerGenerated()}).AsImmutableOrNull(), 3178literal = New BoundLiteral(syntax, callerInfoValue, GetSpecialType(SpecialType.System_Int32, syntax, ignoreDiagnostics)) 3219defaultConstantValue = ConstantValue.Default(SpecialType.System_Int32) 3222If paramNullableUnderlyingTypeOrSelf.GetEnumUnderlyingTypeOrSelf().SpecialType = SpecialType.System_Int32 Then 3225defaultArgumentType = GetSpecialType(SpecialType.System_Int32, syntax, diagnostics)
Binding\Binder_Lookup.vb (1)
461Return SpecialType.System_Int32
Binding\Binder_Operators.vb (4)
484Dim rightTargetType As TypeSymbol = GetSpecialTypeForBinaryOperator(node, leftType, rightType, SpecialType.System_Int32, 1049defaultRightSpecialType = SpecialType.System_Int32 1088defaultLeftSpecialType = SpecialType.System_Int32 1143Dim int32Type = GetSpecialType(SpecialType.System_Int32, node.Operand, diagnostics)
Binding\Binder_SelectCase.vb (1)
703SpecialType.System_Int32,
Binding\Binder_Statements.vb (4)
2207Dim int32 As NamedTypeSymbol = GetSpecialType(SpecialType.System_Int32, midExpression, diagnostics) 3165Me.GetSpecialType(SpecialType.System_Int32, forStatement, diagnostics)) 3191Dim integerType = GetSpecialType(SpecialType.System_Int32, node, diagnostics) 5236GetSpecialType(SpecialType.System_Int32, node.ErrorNumber, diagnostics),
Binding\Binder_Symbols.vb (1)
790type = SpecialType.System_Int32
Binding\Binder_Utils.vb (3)
716specialType = SpecialType.System_Int32 719specialType = SpecialType.System_Int32 1379SpecialType.System_Int32,
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
376type = SpecialType.System_Int32
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (1)
57Dim i As LocalSymbol = F.SynthesizedLocal(Me.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))
BoundTree\BoundExpressionExtensions.vb (2)
373If node.Value.Discriminator = ConstantValueTypeDiscriminator.Int32 AndAlso node.Type.SpecialType = SpecialType.System_Int32 Then 431Case SpecialType.System_Int32
CodeGen\EmitExpression.vb (4)
1644Debug.Assert(expression.Type.SpecialType = SpecialType.System_Int32 OrElse expression.Type.SpecialType = SpecialType.System_Int64 OrElse expression.Type.SpecialType = SpecialType.System_UIntPtr) 2326Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32) 2342Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32) 2381Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
313Dim intType = Compilation.GetSpecialType(SpecialType.System_Int32)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
486SpecialType.System_Int32,
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
136Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
81_int32Type = _factory.SpecialType(SpecialType.System_Int32)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
553Debug.Assert(conversion.Type.IsNullableType AndAlso conversion.Type.GetNullableUnderlyingType.SpecialType = SpecialType.System_Int32) 597Dim isInt32 As Boolean = shiftedType.GetNullableUnderlyingTypeOrSelf.SpecialType = SpecialType.System_Int32
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (6)
276typeBeforeNegation = _factory.SpecialType(SpecialType.System_Int32) 316Return Me._factory.SpecialType(SpecialType.System_Int32) 459Case SpecialType.System_Int32 : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanInt32 506Case SpecialType.System_Int32 548Case SpecialType.System_Int32 : specialHelper = SpecialMember.System_Decimal__op_Implicit_FromInt32 584SpecialType.System_Int32 : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringInt32
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
216methodBodyFactory.SpecialType(SpecialType.System_Int32), fileIndices.ToImmutable())
Lowering\IteratorRewriter\IteratorRewriter.vb (3)
105EnsureSpecialType(SpecialType.System_Int32, bag) 139Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public) 146F.StateMachineField(F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeIteratorInitialThreadIdName(), Accessibility.Public),
Lowering\IteratorRewriter\IteratorStateMachine.vb (1)
34Dim intType = DeclaringCompilation.GetSpecialType(SpecialType.System_Int32)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (4)
483Debug.Assert(memberSymbol.ReturnType.SpecialType = SpecialType.System_Int32) 522Debug.Assert(memberSymbol.ReturnType.SpecialType = SpecialType.System_Int32) 694Debug.Assert(memberSymbol.ReturnType.SpecialType = SpecialType.System_Int32) 760Debug.Assert(memberSymbol.Parameters(2).Type.GetEnumUnderlyingTypeOrSelf().SpecialType = SpecialType.System_Int32)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (5)
844Case SpecialType.System_Int32 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToIntegerObject 932SpecialType.System_Int32 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringInt32 1009Case SpecialType.System_Int32 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToIntegerString 1077SpecialType.System_Int32 : member = SpecialMember.System_Decimal__CtorInt32 1149Case SpecialType.System_Int32 : member = WellKnownMember.System_Convert__ToInt32Decimal
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
242Dim integerType = GetSpecialTypeWithUseSiteDiagnostics(SpecialType.System_Int32, syntaxNode) 245ConstantValue.Default(SpecialType.System_Int32),
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (7)
70Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 110Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 199Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 266Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 324Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 341Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 948Dim intType = Me.GetSpecialType(SpecialType.System_Int32)
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
171Me.ReportBadType(selectCaseExpr, Compilation.GetSpecialType(SpecialType.System_Int32))
Lowering\LocalRewriter\LocalRewriter_Throw.vb (1)
22If expressionOpt.Type.SpecialType = SpecialType.System_Int32 Then
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (2)
42Dim int32 = nodeFactory.SpecialType(SpecialType.System_Int32) 144Dim int32 = nodeFactory.SpecialType(SpecialType.System_Int32)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
261Me.GetSpecialType(SpecialType.System_Int32))), 350Dim size = (New BoundLiteral(syntax, ConstantValue.Create(items.Length), GetSpecialType(SpecialType.System_Int32))).MakeCompilerGenerated()
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
96CachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), SynthesizedLocalKind.StateMachineCachedState, F.Syntax)
Preprocessor\CConst.vb (2)
55Case SpecialType.System_Int32 105Return New CConst(Of Integer)(value, SpecialType.System_Int32)
Preprocessor\ExpressionEvaluator.vb (10)
29Const ____Int32 = CType(SpecialType.System_Int32, Byte) 83Case SpecialType.System_Int32 327Case SpecialType.System_Int32 360Return SpecialType.System_Int32 511specialType = SpecialType.System_Int32 879Case SpecialType.System_Int32 918Case SpecialType.System_Int32 1000Right = ConvertToNumeric(Right, SpecialType.System_Int32, expr.Right) 1006Right = ConvertToNumeric(Right, SpecialType.System_Int32, expr.Right) 1029OperandType = SpecialType.System_Int32
Preprocessor\OperatorResolution.vb (2)
42Case SpecialType.System_Int32 86Const t_i4 As Byte = CType(SpecialType.System_Int32, Byte)
Semantics\Conversions.vb (1)
3344Case SpecialType.System_Int32, SpecialType.System_UInt32
Semantics\Operators.vb (5)
594SpecialType.System_Int32, 627SpecialType.System_Int32, 659SpecialType.System_Int32, 669intrinsicOperatorType = SpecialType.System_Int32 1727Const tInt As SByte = SpecialType.System_Int32
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
126Return Compilation.GetSpecialType(SpecialType.System_Int32)
Symbols\Attributes\SourceAttributeData.vb (1)
221foundMatch = specType = SpecialType.System_Int32
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1163SpecialType.System_Int32,
Symbols\MethodSymbol.vb (1)
570If returnType.SpecialType <> SpecialType.System_Int32 AndAlso returnType.SpecialType <> SpecialType.System_Void Then
Symbols\Source\SourceAssemblySymbol.vb (3)
1169Dim arg As Integer = attrData.GetConstructorArgument(Of Integer)(i, SpecialType.System_Int32) 1541Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32) 1580Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32)
Symbols\Source\SourceFieldSymbol.vb (1)
752Dim offset = attrData.CommonConstructorArguments(0).DecodeValue(Of Integer)(SpecialType.System_Int32)
Symbols\Source\SourceMethodSymbol.vb (1)
1542Dim priority As Integer = attrdata.GetConstructorArgument(Of Integer)(0, SpecialType.System_Int32)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2607New TypedConstant(GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Enum, CInt(ClassInterfaceType.None)))))
Symbols\Source\SourcePropertySymbol.vb (1)
562Dim priority As Integer = attrdata.GetConstructorArgument(Of Integer)(0, SpecialType.System_Int32)
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
68Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
Symbols\SpecialTypeExtensions.vb (10)
33SpecialType.System_Int32, 56SpecialType.System_Int32, 103SpecialType.System_Int32, 125SpecialType.System_Int32, 155Case SpecialType.System_Int32 200Case SpecialType.System_Int32 241Case SpecialType.System_Int32 287Case SpecialType.System_Int32 323Case SpecialType.System_Int32, SpecialType.System_UInt32 341Case SpecialType.System_Int32
Symbols\TypeSymbolExtensions.vb (1)
440Case SpecialType.System_Int32
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
188Case SpecialType.System_Int32
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
383Case SpecialType.System_UInt32, SpecialType.System_Int32,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (17)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
43Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
75Return GenerateIntegralLiteralExpression(type, SpecialType.System_Int32, DirectCast(value, Integer), canUseFieldReference, LiteralSpecialValues.Int32SpecialValues, Function(x) x < 0, Function(x) -x, "2147483648")
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
149If(namedType.EnumUnderlyingType IsNot Nothing AndAlso namedType.EnumUnderlyingType.SpecialType <> SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
33Case specialType.System_Int32 75specialType = specialType.System_Int32 109SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
102SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
110Case SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (9)
235Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 282Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 412Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 452Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 534Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 568Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 694Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 806Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 841Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32))
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
92SpecialType.System_Int32,
Completion\Providers\DefaultArgumentProvider.vb (1)
38Case SpecialType.System_Int32
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
43Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.vb (2)
146Case SpecialType.System_Int32 247SpecialType.System_Int32,
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
32Case SpecialType.System_Int32
Microsoft.CodeAnalysis.VisualBasic.Workspaces (19)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
360Case SpecialType.System_Int32
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
28Case SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
383Case SpecialType.System_UInt32, SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
75Return GenerateIntegralLiteralExpression(type, SpecialType.System_Int32, DirectCast(value, Integer), canUseFieldReference, LiteralSpecialValues.Int32SpecialValues, Function(x) x < 0, Function(x) -x, "2147483648")
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
149If(namedType.EnumUnderlyingType IsNot Nothing AndAlso namedType.EnumUnderlyingType.SpecialType <> SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
33Case specialType.System_Int32 75specialType = specialType.System_Int32 109SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
102SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
110Case SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (9)
235Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 282Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 412Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 452Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 534Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 568Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 694Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 806Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 841Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32))
Microsoft.CodeAnalysis.Workspaces (29)
Editing\SyntaxGenerator.cs (1)
794underlyingType: type.EnumUnderlyingType is null or { SpecialType: SpecialType.System_Int32 }
Recommendations\AbstractRecommendationServiceRunner.cs (1)
309AddSpecialTypeSymbolAndItsAliases(nameof(Int32), SpecialType.System_Int32);
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
98var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
65SpecialType.System_Int32 => 1,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
140SpecialType.System_Int32 => value is int,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
442case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
136? factory.SimpleLocalDeclarationStatement(generatorInternal, compilation.GetSpecialType(SpecialType.System_Int32), HashCodeName, CreateLiteralExpression(factory, initHash)) 166compilation.GetSpecialType(SpecialType.System_Int32), 210method.ReturnType.SpecialType == SpecialType.System_Int32 &&
Microsoft.Extensions.Options.SourceGeneration (2)
OptionsSourceGenContext.cs (1)
56SpecialType.System_Int32 => true,
Parser.cs (1)
604else if (ParserUtilities.TypeHasProperty(memberType, "Count", SpecialType.System_Int32))
Microsoft.Gen.Logging (1)
Parsing\AttributeProcessors.cs (1)
50else if (a.Type?.SpecialType == SpecialType.System_Int32)
Microsoft.Gen.Logging.Unit.Tests (3)
TypeSymbolExtensionsTests.cs (3)
287INamedTypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32); 298INamedTypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32); 308INamedTypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32);
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
39SpecialType.System_Int32,
Microsoft.Gen.Metrics (1)
Parser.cs (1)
39SpecialType.System_Int32,
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
39SpecialType.System_Int32,
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
249if ((returnSwappedSignatureElements[i].ManagedType is SpecialTypeInfo { SpecialType: SpecialType.System_Int32 or SpecialType.System_Enum } or EnumTypeInfo
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
44case { SpecialType: SpecialType.System_Int32 }:
Microsoft.Interop.LibraryImportGenerator (9)
Analyzers\ConvertToLibraryImportFixer.cs (1)
263editor.Generator.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)));
Analyzers\CustomMarshallerAttributeFixer.cs (8)
248gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)), 262gen.ParameterDeclaration("numElements", type: gen.TypeExpression(SpecialType.System_Int32), refKind: RefKind.Out), 278gen.ParameterDeclaration("numElements", type: gen.TypeExpression(SpecialType.System_Int32)), 309gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32)) 325gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32)) 460gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)), 493gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32)) 507gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32))
Microsoft.Interop.SourceGeneration (14)
ManagedTypeInfo.cs (1)
86public static readonly SpecialTypeInfo Int32 = new("int", "int", SpecialType.System_Int32);
MarshallerShape.cs (8)
316&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32 327&& m.Parameters[2].Type.SpecialType == SpecialType.System_Int32 357&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32 367&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32 377&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32 397&& m.Parameters[1].Type.SpecialType == SpecialType.System_Int32 709&& m.Parameters[0].Type.SpecialType == SpecialType.System_Int32 719&& m.Parameters[0].Type.SpecialType == SpecialType.System_Int32
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
111requiresCast = specialType.SpecialType != SpecialType.System_Int32;
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (1)
45or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int32 }, MarshallingAttributeInfo: NoMarshallingInfo or MarshalAsInfo(UnmanagedType.I4 or UnmanagedType.Error, _) }
MarshallingAttributeInfo.cs (1)
176SpecialType.System_Int32 => CreateWellKnownComExceptionMarshallingData($"{TypeNames.ExceptionAsHResultMarshaller}<int>", unmanagedReturnType),
TypeSymbolExtensions.cs (2)
181or SpecialType.System_Int32 196or SpecialType.System_Int32
Roslyn.Diagnostics.Analyzers (32)
AbstractRunIterations`1.cs (1)
117syntaxGenerator.TypeExpression(SpecialType.System_Int32)),
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
27case SpecialType.System_Int32: 52case SpecialType.System_Int32: 75case SpecialType.System_Int32: 110case SpecialType.System_Int32: 150case SpecialType.System_Int32: 173case SpecialType.System_Int32: 191case SpecialType.System_Int32: 215case SpecialType.System_Int32: 245case SpecialType.System_Int32: 266case SpecialType.System_Int32: 282return SpecialType.System_Int32; 381SpecialType.System_Int32 => (ulong)(int)value,
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
378or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DiagnosticHelpers.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (1)
27or SpecialType.System_Int32
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
409returnType: generator.TypeExpression(SpecialType.System_Int32),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
98var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
65SpecialType.System_Int32 => 1,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
135methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
291case SpecialType.System_Int32: 390case SpecialType.System_Int32: 664case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
24PredefinedType.Int32 => SpecialType.System_Int32, 49SpecialType.System_Int32 => PredefinedType.Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
140SpecialType.System_Int32 => value is int,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
442case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
136? factory.SimpleLocalDeclarationStatement(generatorInternal, compilation.GetSpecialType(SpecialType.System_Int32), HashCodeName, CreateLiteralExpression(factory, initHash)) 166compilation.GetSpecialType(SpecialType.System_Int32), 210method.ReturnType.SpecialType == SpecialType.System_Int32 &&
Roslyn.Diagnostics.CSharp.Analyzers (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
23case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
250var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.SpecialType != SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (1)
57static m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Int32, Name: "capacity" }]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
281case SpecialType.System_Int32:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (9)
589return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 848return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 972return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1070return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1975return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1993return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2000return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2220return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2275return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32));
Roslyn.Diagnostics.VisualBasic.Analyzers (16)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
383Case SpecialType.System_UInt32, SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
75Return GenerateIntegralLiteralExpression(type, SpecialType.System_Int32, DirectCast(value, Integer), canUseFieldReference, LiteralSpecialValues.Int32SpecialValues, Function(x) x < 0, Function(x) -x, "2147483648")
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
33Case specialType.System_Int32 75specialType = specialType.System_Int32 109SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
102SpecialType.System_Int32,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
110Case SpecialType.System_Int32
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (9)
235Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 282Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 412Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 452Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 534Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 568Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 694Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 806Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32)) 841Return CreateResult(Me.Compilation.GetSpecialType(SpecialType.System_Int32))
System.Text.Json.SourceGeneration (2)
Helpers\RoslynExtensions.cs (1)
193SpecialType.System_SByte or SpecialType.System_Int16 or SpecialType.System_Int32 or SpecialType.System_Int64 or
JsonSourceGenerator.Parser.cs (1)
1365SpecialType.System_Int32 or SpecialType.System_UInt32 or
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
96if (items[2].Type?.SpecialType == SpecialType.System_Int32)