1264 references to System_Int32
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
278case SpecialType.System_Int32:
ILLink.RoslynAnalyzer (2)
TrimAnalysis\TrimAnalysisVisitor.cs (2)
188 (operation.Type?.TypeKind == TypeKind.Enum || operation.Type?.SpecialType == SpecialType.System_Int32)) { 455 case 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 (175)
Compilation\Expression.cs (1)
13case SpecialType.System_Int32:
ConstantValue.cs (2)
446case SpecialType.System_Int32: return ConstantValueTypeDiscriminator.Int32; 498case ConstantValueTypeDiscriminator.Int32: return SpecialType.System_Int32;
Emit\CommonPEModuleBuilder.cs (1)
1060this.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)
5237var shiftConst = new LiteralOperation(semanticModel: null, operand.Syntax, _compilation.GetSpecialType(SpecialType.System_Int32),
PEWriter\Types.cs (1)
22SystemInt32 = CodeAnalysis.SpecialType.System_Int32,
SpecialMembers.cs (31)
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, 316(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 364(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 365(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 366(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 506(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 594(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 705(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 759(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 888(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 902(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 903(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, 966(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 991(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1157(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1172(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1180(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1187(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1226(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1242(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1249(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1258(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1267(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1291(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1307(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32,
SpecialTypeExtensions.cs (12)
26case SpecialType.System_Int32: 51case SpecialType.System_Int32: 74case SpecialType.System_Int32: 109case SpecialType.System_Int32: 149case SpecialType.System_Int32: 172case SpecialType.System_Int32: 190case SpecialType.System_Int32: 214case SpecialType.System_Int32: 244case SpecialType.System_Int32: 265case SpecialType.System_Int32: 283return SpecialType.System_Int32; 383SpecialType.System_Int32 => (ulong)(int)value,
SpecialTypes.cs (2)
111s_typeIdToTypeCodeMap[(int)SpecialType.System_Int32] = Microsoft.Cci.PrimitiveTypeCode.Int32; 135s_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); 511alignment = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32); 523size = 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\TypedConstant.cs (1)
167case SpecialType.System_Int32:
WellKnownMembers.cs (108)
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, 4057(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4080(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4088(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4109(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4132(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4141(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4158(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4173(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4188(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4205(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4213(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 4220(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 4254(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32,
Microsoft.CodeAnalysis.CodeStyle (21)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
295if (parameter.Type.SpecialType != SpecialType.System_Int32)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
26case SpecialType.System_Int32: 51case SpecialType.System_Int32: 74case SpecialType.System_Int32: 109case SpecialType.System_Int32: 149case SpecialType.System_Int32: 172case SpecialType.System_Int32: 190case SpecialType.System_Int32: 214case SpecialType.System_Int32: 244case SpecialType.System_Int32: 265case SpecialType.System_Int32: 283return SpecialType.System_Int32; 383SpecialType.System_Int32 => (ulong)(int)value,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
106methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
294case SpecialType.System_Int32: 387case SpecialType.System_Int32: 662case SpecialType.System_Int32:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
22PredefinedType.Int32 => SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
22SpecialType.System_Int32 => PredefinedType.Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
64SpecialType.System_Int32 => 1,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
387case SpecialType.System_Int32:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
140SpecialType.System_Int32 => value is int,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
23case SpecialType.System_Int32:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
422case SpecialType.System_Int32:
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 (200)
Binder\Binder_Expressions.cs (24)
1433this.GetSpecialType(SpecialType.System_Int32, diagnostics, node), hasErrors); 2524TypeSymbol intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 4381GetSpecialType(SpecialType.System_Int32, diagnostics, nonNullSyntax)) 4462count = GenerateConversionForAssignment(GetSpecialType(SpecialType.System_Int32, diagnostics, node), count, diagnostics); 4606GetSpecialType(SpecialType.System_Int32, diagnostics, node)) 4627if (constantValue == null || constantValue.IsBad || expression.Type.SpecialType != SpecialType.System_Int32) 4651if (type == SpecialType.System_Int32) 5219lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.GetSpecialType(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true }; 7168case SpecialType.System_Int32: 8970BoundExpression convertedIndex = TryImplicitConversionToArrayIndex(index, SpecialType.System_Int32, node, diagnostics); 9058if (convertedIndex.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 9139if (hatExpression.Operand.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 9145else if (convertedIndex is BoundConversion { Operand: { ConstantValueOpt: { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex } } operand }) 9152arguments[0] is { ConstantValueOpt: { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex1 } } index && 9274var int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 9309TryImplicitConversionToArrayIndex(index, SpecialType.System_Int32, node, diagnostics) ?? 9346NamedTypeSymbol int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 9940original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None }) 9942var intPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10013var startArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10014var lengthArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10038original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } && 10039original.Parameters[1] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None }; 10101getMethod.ReturnType.SpecialType == SpecialType.System_Int32 &&
Binder\Binder_InterpolatedString.cs (2)
55var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 573var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, syntax);
Binder\Binder_Invocation.cs (2)
1628defaultValue = new BoundLiteral(syntax, ConstantValue.Create(line), Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1724TypeSymbol int32Type = GetSpecialType(SpecialType.System_Int32, diagnostics, node);
Binder\Binder_Operators.cs (3)
1693return SpecialType.System_Int32; 1695case SpecialType.System_Int32: 3104return new BoundLiteral(node, ConstantValue.Create((int)-2147483648), GetSpecialType(SpecialType.System_Int32, diagnostics, node));
Binder\Binder_Patterns.cs (2)
1490if (memberType.SpecialType == SpecialType.System_Int32 && 1704SpecialType.System_Int32 => BinaryOperatorKind.Int,
Binder\DecisionDagBuilder.cs (8)
328RoslynDebug.Assert(getLengthProperty.Type.SpecialType == SpecialType.System_Int32); 342var lengthTemp = new BoundDagTemp(syntax, this._compilation.GetSpecialType(SpecialType.System_Int32), lengthEvaluation); 1542case (SpecialType.System_Int32, SpecialType.System_UInt32): 1543case (SpecialType.System_UInt32, SpecialType.System_Int32): 1552case (SpecialType.System_Int32, SpecialType.System_IntPtr): 1553case (SpecialType.System_Int32, SpecialType.System_UIntPtr): 1556case (SpecialType.System_IntPtr, SpecialType.System_Int32): 1558case (SpecialType.System_UIntPtr, SpecialType.System_Int32):
Binder\DecisionDagBuilder_ListPatterns.cs (1)
43var lengthTemp = new BoundDagTemp(syntax, _compilation.GetSpecialType(SpecialType.System_Int32), lengthEvaluation);
Binder\PatternExplainer.cs (2)
700SpecialType.System_Int32 => true, 726case SpecialType.System_Int32:
Binder\RefSafetyAnalysis.cs (2)
242return placeholder.Type?.SpecialType == SpecialType.System_Int32; 910Debug.Assert(node.ArgumentPlaceholders.All(p => p is BoundImplicitIndexerValuePlaceholder { Type.SpecialType: SpecialType.System_Int32 }));
Binder\Semantics\Conversions\ConversionsBase.cs (5)
1349if (specialSource == SpecialType.System_Int32) 1742TypeSymbol expectedAttributeType = corLibrary.GetSpecialType(SpecialType.System_Int32); 2085case SpecialType.System_Int32: 2170case SpecialType.System_Int32: 3907case SpecialType.System_Int32:
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
354if (left.Type.SpecialType == SpecialType.System_Int32 ||
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
551operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntAddition, pointerType, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType)); 555operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.IntAndPointerAddition, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType, pointerType)); 561operators.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)
3460case SpecialType.System_Int32:
BoundTree\BoundInlineArrayAccess.cs (1)
19{ SpecialType: SpecialType.System_Int32 } or
CodeGen\EmitArrayInitializer.cs (1)
805SpecialType.System_Int32 or SpecialType.System_UInt32 or SpecialType.System_Single or
CodeGen\EmitExpression.cs (7)
1340case SpecialType.System_Int32: 2347Debug.Assert(expression.Type.SpecialType == SpecialType.System_Int32 || 3530Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3547Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3561Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3584Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3667Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32);
CodeGen\EmitStatement.cs (1)
1393var 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)
1728case SpecialType.System_Int32: 2174if (method.ReturnType.IsVoidType() || method.ReturnType.SpecialType == SpecialType.System_Int32) 2199(result!.Type!.IsVoidType() || result.Type!.SpecialType == SpecialType.System_Int32); 2218if (returnType.SpecialType != SpecialType.System_Int32 && !returnType.IsVoidType()) 4423=> 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\Model\PEAssemblyBuilder.cs (1)
545GetSpecialType(SpecialType.System_Int32, diagnostics));
Emitter\Model\PEModuleBuilder.cs (4)
1906Debug.Assert(intType.SpecialType == SpecialType.System_Int32); 1975Debug.Assert(intType.SpecialType == SpecialType.System_Int32); 1992Debug.Assert(intType.SpecialType == SpecialType.System_Int32); 2008Debug.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)
1418case SpecialType.System_Int32:
FlowAnalysis\DefiniteAssignment.cs (1)
1587(elementAccess.Argument.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: 0 } ||
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
189var pendingBranchVar = new SynthesizedLocal(_F.CurrentFunction, TypeWithAnnotations.Create(_F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingBranch, tryStatementSyntax); 1045this.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)
105_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)
1066_whenNodeIdentifierLocal ??= _factory.SynthesizedLocal(_factory.SpecialType(SpecialType.System_Int32));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
243Debug.Assert(e.Property.GetMethod.Parameters[0].Type.SpecialType == SpecialType.System_Int32); 412if (operatorKind.OperandTypes() == BinaryOperatorKind.Int && comparisonType.SpecialType != SpecialType.System_Int32) 423comparisonType = _factory.SpecialType(SpecialType.System_Int32);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
2139Debug.Assert(rightType.SpecialType == SpecialType.System_Int32); 2211Debug.Assert(rightType.SpecialType == SpecialType.System_Int32); 2305Debug.Assert(sizeOfExpression.Type is { SpecialType: SpecialType.System_Int32 }); 2332case SpecialType.System_Int32: 2379case SpecialType.System_Int32:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1413_compilation.GetSpecialType(SpecialType.System_Int32))),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
559var intType = _factory.SpecialType(SpecialType.System_Int32); 706_compilation.GetSpecialType(SpecialType.System_Int32))), 744Debug.Assert(indexTemp.Type is { SpecialType: SpecialType.System_Int32 }); 1078Debug.Assert(indexTemp.Type is { SpecialType: SpecialType.System_Int32 });
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
603createSpan = _factory.ModuleBuilderOpt.EnsureInlineArrayAsReadOnlySpanExists(syntax, spanType.OriginalDefinition, _factory.SpecialType(SpecialType.System_Int32), _diagnostics.DiagnosticBag); 608createSpan = _factory.ModuleBuilderOpt.EnsureInlineArrayAsSpanExists(syntax, spanType.OriginalDefinition, _factory.SpecialType(SpecialType.System_Int32), _diagnostics.DiagnosticBag); 1463case SpecialType.System_Int32: 1490case SpecialType.System_Int32: 1514case SpecialType.System_Int32: 1535case SpecialType.System_Int32: 1566case SpecialType.System_Int32: return SpecialMember.System_Decimal__op_Explicit_ToInt32; 1586case SpecialType.System_Int32: return SpecialMember.System_Decimal__op_Implicit_FromInt32;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (6)
614TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 648MakeLiteral(forEachSyntax, ConstantValue.Default(SpecialType.System_Int32), intType)); 775NamedTypeSymbol intType = rewriter._factory.SpecialType(SpecialType.System_Int32); 915TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 937MakeLiteral(forEachSyntax, ConstantValue.Default(SpecialType.System_Int32), intType)); 1065TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (11)
221if (node.Argument.Type.SpecialType == SpecialType.System_Int32) 278if (startExpr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: 0 } && 279rangeSizeExpr.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: >= 0 and int rangeSizeConst } && 341Debug.Assert(index.Type?.SpecialType == SpecialType.System_Int32); 345if (index.ConstantValueOpt is { SpecialType: SpecialType.System_Int32, Int32Value: int constIndex }) 563Debug.Assert(integerArgument.Type!.SpecialType == SpecialType.System_Int32); 659Debug.Assert(loweredExpr.Type!.SpecialType == SpecialType.System_Int32); 670Debug.Assert(loweredExpr.Type!.SpecialType == SpecialType.System_Int32); 718Debug.Assert(hatExpression.Operand is { Type: { SpecialType: SpecialType.System_Int32 } }); 722else if (unloweredExpr is BoundConversion { Operand: { Type: { SpecialType: SpecialType.System_Int32 } } operand }) 731arguments[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)
773Debug.Assert(boundOne.Type is { SpecialType: SpecialType.System_Int32 }); 914specialType = SpecialType.System_Int32; 1035case SpecialType.System_Int32:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
124this.cachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), syntax: F.Syntax, kind: SynthesizedLocalKind.StateMachineCachedState);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
108initialThreadIdField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeIteratorCurrentThreadIdFieldName());
Lowering\SyntheticBoundNodeFactory.cs (11)
751return Binary(BinaryOperatorKind.IntSubtraction, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 756return Binary(BinaryOperatorKind.IntMultiplication, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 766return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1121Debug.Assert(ex.Type is { SpecialType: CodeAnalysis.SpecialType.System_Int32 }); 1217return new BoundArrayLength(Syntax, array, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)); 1348return new BoundSizeOfOperator(Syntax, Type(type), Binder.GetConstantSizeOf(type), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1374SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1384SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1394SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1435SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1447SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32))
Parser\Lexer.cs (3)
360case SpecialType.System_Int32: 1075info.ValueKind = SpecialType.System_Int32; 2612info.ValueKind = SpecialType.System_Int32;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
645case SpecialType.System_Int32:
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (1)
131get { return Compilation.GetSpecialType(SpecialType.System_Int32); }
Symbols\Attributes\SourceAttributeData.cs (1)
374if (specType != SpecialType.System_Int32)
Symbols\BaseTypeAnalysis.cs (1)
262case SpecialType.System_Int32:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1921case SpecialType.System_Int32:
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
188int offset = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (3)
1968var int32Type = _compilation.GetSpecialType(SpecialType.System_Int32); 2600int arg = attribute.GetConstructorArgument<int>(i, SpecialType.System_Int32); 2788case SpecialType.System_Int32:
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1073TypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\SourceFixedFieldSymbol.cs (2)
46var intType = compilation.GetSpecialType(SpecialType.System_Int32); 89TypeSymbol intType = binder.GetSpecialType(SpecialType.System_Int32, diagnostics, sizeExpression);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4578TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Int32)),
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
999Debug.Assert(arguments.Attribute.AttributeConstructor.Parameters is [{ Type.SpecialType: SpecialType.System_Int32 }, { Type.SpecialType: SpecialType.System_String }]);
Symbols\Source\SourceModuleSymbol.cs (1)
641var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, 11));
Symbols\Source\SourceNamedTypeSymbol.cs (3)
1012int length = attributeData.GetConstructorArgument<int>(0, SpecialType.System_Int32); 1204int length = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32); 1843(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)
727else 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)
378ReturnType.SpecialType == SpecialType.System_Int32);
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
200arguments: 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)
641case SpecialType.System_Int32: 1325case SpecialType.System_Int32: 1405case SpecialType.System_Int32: 2169case SpecialType.System_Int32: return 6; 2192case SpecialType.System_Int32: return 21;
Syntax\SyntaxKindExtensions.cs (1)
28return SpecialType.System_Int32;
Utilities\ValueSetFactory.cs (1)
41SpecialType.System_Int32 => ForInt,
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
325var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
61Parameters: [{ Type.SpecialType: SpecialType.System_Int32, Name: "capacity" }],
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (4)
30p.Type.SpecialType == SpecialType.System_Int32) 77method.OriginalDefinition.Parameters[0].Type.SpecialType == SpecialType.System_Int32; 115=> parameter.Type.SpecialType == SpecialType.System_Int32 && 119=> parameter.Type.SpecialType == SpecialType.System_Int32 &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
23case SpecialType.System_Int32:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
248var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.SpecialType != SpecialType.System_Int32
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (9)
569return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 828return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 952return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1050return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1881return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1899return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1906return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2126return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2181return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (79)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
968Assert.Equal(1, spillFieldsByType.Single(x => TypeSymbol.Equals(x.Key, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything2)).Count());
CodeGen\CodeGenDeconstructTests.cs (2)
7236Assert.Equal(SpecialType.System_Int32, symbolInfo.Symbol.GetTypeOrReturnType().SpecialType); 7511Assert.Equal(SpecialType.System_Int32, xSymbolInfo.Symbol.GetTypeOrReturnType().SpecialType);
CodeGen\CodeGenFunctionPointersTests.cs (15)
102(RefKind.None, IsSpecialType(SpecialType.System_Int32)), 146(RefKind.Ref, IsArrayType(IsSpecialType(SpecialType.System_Int32))), 170(RefKind.Ref, IsArrayType(IsSpecialType(SpecialType.System_Int32))), 200(RefKind.None, IsSpecialType(SpecialType.System_Int32))) 231(RefKind.In, IsSpecialType(SpecialType.System_Int32))); 565(RefKind.RefReadOnly, IsSpecialType(SpecialType.System_Int32))); 569(RefKind.RefReadOnly, IsSpecialType(SpecialType.System_Int32))); 574(RefKind.Out, IsSpecialType(SpecialType.System_Int32))); 579(RefKind.In, IsSpecialType(SpecialType.System_Int32))); 584(RefKind.Out, IsSpecialType(SpecialType.System_Int32))); 589(RefKind.In, IsSpecialType(SpecialType.System_Int32))); 657(RefKind.None, IsSpecialType(SpecialType.System_Int32)))), 691(RefKind.In, IsSpecialType(SpecialType.System_Int32))); 747(RefKind.Ref, IsSpecialType(SpecialType.System_Int32))); 794(RefKind.None, IsSpecialType(SpecialType.System_Int32))));
CodeGen\CodeGenTupleTest.cs (52)
498t => Assert.Equal(SpecialType.System_Int32, t.SpecialType)); 512t => Assert.Equal(SpecialType.System_Int32, t.SpecialType)); 524t => Assert.Equal(SpecialType.System_Int32, t.SpecialType)); 536t => Assert.Equal(SpecialType.System_Int32, t.SpecialType)); 699t => Assert.Equal(SpecialType.System_Int32, t.SpecialType)); 715t => Assert.Equal(SpecialType.System_Int32, t.SpecialType)); 1015Assert.Equal(SpecialType.System_Int32, t.SpecialType)); 5789TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5826TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5853TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5870TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5905var intType = comp.GetSpecialType(SpecialType.System_Int32); 5947TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5968TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5987TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6006TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6024TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6050TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6076TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6101TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6126TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6152TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6186TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6210ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6270NamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6292NamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6339TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6364TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6383var intType = comp.GetSpecialType(SpecialType.System_Int32); 6412TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6428TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6444TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6459TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6479TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6499TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6520TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6543TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6560TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6602var intType = comp.GetSpecialType(SpecialType.System_Int32); 18843TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18861ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18881ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18904TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18921ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18947ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18972ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18997ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19023ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19065ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19104ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19143ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19182ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32);
CodeGen\DestructorTests.cs (1)
601Assert.Equal(SpecialType.System_Int32, intType.SpecialType);
CodeGen\IndexAndRangeTests.cs (1)
1002Assert.Equal(SpecialType.System_Int32, property.Parameters[0].Type.SpecialType);
Emit\CompilationEmitTests.cs (1)
5044comp.GetSpecialType(SpecialType.System_Int32);
Emit\EmitMetadataTests.cs (6)
460Assert.Same(module.GetCorLibType(SpecialType.System_Int32), method4ParamTypes[4]); 666CheckConstantField(type, "I", Accessibility.Private, SpecialType.System_Int32, -1); 668CheckConstantField(type, "J", Accessibility.Internal, SpecialType.System_Int32, -1); 950Assert.Equal(SpecialType.System_Int32, pBack.Type.SpecialType); 1021Assert.Equal(SpecialType.System_Int32, p.Type.SpecialType); 1331CheckEnumType(type, Accessibility.Internal, SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTests.cs (1)
627var stInt = c1.GetSpecialType(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Attributes\AttributeTests.cs (1)
5515NamedTypeSymbol classYOfInt = classY.ConstructIfGeneric(ImmutableArray.Create(TypeWithAnnotations.Create(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))));
Attributes\AttributeTests_Synthesized.cs (1)
648var c1OfInt = comp.GetTypeByMetadataName("C1`1").Construct(comp.GetSpecialType(SpecialType.System_Int32));
Semantics\CollectionExpressionTests.cs (12)
3801var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 3856var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 3910var listType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 18423comp.MakeTypeMissing(SpecialType.System_Int32); 28834var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 28894var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 29115var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 29139collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 29174var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 29196collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 29228var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 29250collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32));
Semantics\InlineArrayTests.cs (14)
167Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 192var bufferOfInt = buffer.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 196Assert.Equal(SpecialType.System_Int32, bufferOfInt.TryGetInlineArrayElementField().Type.SpecialType); 236Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 590Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1173Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1195Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1225Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1253Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1313Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1339Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1370Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 1502Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType); 2239Assert.Equal(SpecialType.System_Int32, buffer.TryGetInlineArrayElementField().Type.SpecialType);
Semantics\PatternMatchingTests2.cs (1)
3271comp.MakeTypeMissing(SpecialType.System_Int32);
Semantics\PrimaryConstructorTests.cs (7)
411Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 482Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 595Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 681Assert.Equal(SpecialType.System_Int32, a.Type.SpecialType); 717Assert.Equal(SpecialType.System_Int32, p1.Type.SpecialType); 729Assert.Equal(SpecialType.System_Int32, p2.Type.SpecialType); 773Assert.Equal(SpecialType.System_Int32, p1.Type.SpecialType);
Semantics\RecordTests.cs (1)
12477verifyReturnType(property.GetMethod, CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Int32)));
Microsoft.CodeAnalysis.CSharp.Features (14)
Completion\KeywordRecommenders\IntKeywordRecommender.cs (1)
55protected 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)
304methodSymbol.ReturnType?.SpecialType == SpecialType.System_Int32 && 369=> typeSymbol.SpecialType == SpecialType.System_Int32;
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
64type: compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(allowVar: false),
Snippets\AbstractCSharpForLoopSnippetProvider.cs (1)
74return (compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(), inlineExpression);
Snippets\CSharpIntMainSnippetProvider.cs (1)
31=> (TypeSyntax)generator.TypeExpression(SpecialType.System_Int32);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
325var capacityConstructor = GetAccessibleInstanceConstructor(constructors, c => c.Parameters is [{ Name: "capacity", Type.SpecialType: SpecialType.System_Int32 }]);
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
61Parameters: [{ Type.SpecialType: SpecialType.System_Int32, Name: "capacity" }],
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (4)
30p.Type.SpecialType == SpecialType.System_Int32) 77method.OriginalDefinition.Parameters[0].Type.SpecialType == SpecialType.System_Int32; 115=> parameter.Type.SpecialType == SpecialType.System_Int32 && 119=> parameter.Type.SpecialType == SpecialType.System_Int32 &&
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (7)
EditAndContinue\TopLevelEditingTests.cs (7)
5992semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)]) 7415SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("S")) 8552SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 8588SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 20228SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("S.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Int32 }])), 20230SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("S.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Int32 }]).GetMethod), 20265SemanticEdit(SemanticEditKind.Update, c => c.GetMembers<IPropertySymbol>("S.this[]").Single(m => m.Parameters is [{ Type.SpecialType: SpecialType.System_Int32 }])),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_ICompoundAssignmentOperation.cs (1)
86var inSymbol = implicitSymbols.Where(sym => sym.ReturnType.SpecialType == SpecialType.System_Int32).Single();
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
37case SpecialType.System_Int32: return "int";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (92)
Semantics\DeconstructionTests.cs (2)
6113Assert.Equal(SpecialType.System_Int32, type.Type.SpecialType); 6114Assert.Equal(SpecialType.System_Int32, type.ConvertedType.SpecialType);
Semantics\DelegateTypeTests.cs (1)
13262verifyConversions(model, expr, getFunctionType(funcOfT.Construct(comp.GetSpecialType(SpecialType.System_Int32))), ConversionKind.FunctionType, ConversionKind.FunctionType);
Semantics\ExpressionBodiedMemberTests.cs (7)
75Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 76Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.SpecialType); 139Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 226Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 227Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.SpecialType); 315Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 316Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.SpecialType);
Semantics\ForEachTests.cs (9)
1208Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1290Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1334Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1407Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1521Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1532Assert.Equal(SpecialType.System_Int32, boundNode.IterationVariables.Single().Type.SpecialType); 1592Assert.Equal(SpecialType.System_Int32, boundNode.IterationVariables.Single().Type.SpecialType); 1874Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 3236Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType);
Semantics\GenericConstraintsTests.cs (2)
3175Assert.Equal(SpecialType.System_Int32, inferredMethod.TypeArguments.Single().SpecialType); 3230Assert.Equal(SpecialType.System_Int32, inferredMethod.TypeArguments.Single().SpecialType);
Semantics\ImplicitlyTypedLocalsTests.cs (1)
46Assert.Equal(SpecialType.System_Int32, fieldA.Type.SpecialType);
Semantics\InteractiveSemanticModelTests.cs (2)
126Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType); 141Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType);
Semantics\InteractiveUsingTests.cs (2)
35Assert.Equal(SpecialType.System_Int32, GetSpeculativeType(sub, "I").SpecialType); 187Assert.Equal(SpecialType.System_Int32, GetSpeculativeType(sub1, "A").SpecialType);
Semantics\LocalFunctionTests.cs (1)
458Assert.Equal(SpecialType.System_Int32, argType0.SpecialType);
Semantics\LookupTests.cs (1)
2009var m = ms.Where(mm => mm.Parameters[0].Type.SpecialType == SpecialType.System_Int32).Single();
Semantics\NullableConversionTests.cs (1)
812var nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(compilation.GetSpecialType(SpecialType.System_Int32));
Semantics\NullCoalesceAssignmentTests.cs (3)
160var int32 = comp.GetSpecialType(SpecialType.System_Int32); 186Assert.Equal(SpecialType.System_Int32, semanticModel.GetTypeInfo(defaultLiteral).Type.SpecialType); 187Assert.Equal(SpecialType.System_Int32, semanticModel.GetTypeInfo(defaultLiteral).ConvertedType.SpecialType);
Semantics\ObjectAndCollectionInitializerTests.cs (4)
3857Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType); 4088Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType); 4089Assert.Equal(SpecialType.System_Int32, typeInfo.ConvertedType.SpecialType); 4160Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType);
Semantics\OverloadResolutionTests.cs (1)
7262Assert.Equal(SpecialType.System_Int32, methodSymbol.TypeArguments.Single().SpecialType);
Semantics\QueryTests.cs (6)
2179Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2209Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2236Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2242Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2248Assert.Equal(SpecialType.System_Int32, info2.Type.SpecialType); 2301Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType);
Semantics\RefLocalsAndReturnsTests.cs (11)
4755Assert.Equal(SpecialType.System_Int32, ((IArrayTypeSymbol)model.GetTypeInfo(left).Type).ElementType.SpecialType); 4758Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4783Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.SpecialType); 4786Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4811Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.SpecialType); 4814Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4839Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(left).Type.SpecialType); 4842Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4870Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4898Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4932Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType);
Semantics\StackAllocInitializerTests.cs (11)
1054Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.SpecialType); 1062Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1063Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 1078Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1079Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 1086Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 1165Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1166Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 1181Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1182Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 1189Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType);
Semantics\StackAllocSpanExpressionsTests.cs (11)
60Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.SpecialType); 68Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 69Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 84Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 85Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 92Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 143Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 144Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 159Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 160Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 167Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType);
Semantics\TopLevelStatementsTests.cs (3)
7489comp.MakeTypeMissing(SpecialType.System_Int32); 7511comp.MakeTypeMissing(SpecialType.System_Int32); 7575comp.MakeTypeMissing(SpecialType.System_Int32);
Semantics\UnsafeTests.cs (10)
7272Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 7549Assert.Equal(SpecialType.System_Int32, type.SpecialType); 8165var intType = compilation.GetSpecialType(SpecialType.System_Int32); 8232var intType = compilation.GetSpecialType(SpecialType.System_Int32); 8290var intType = compilation.GetSpecialType(SpecialType.System_Int32); 10585{ SpecialType.System_Int32, 4 }, 10649Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 10711Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 10771Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 11336Assert.Equal(SpecialType.System_Int32, countSummary.ConvertedType.SpecialType);
Semantics\UsingStatementTests.cs (1)
1855Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(node).Type.SpecialType);
Semantics\Utf8StringsLiteralsTests.cs (1)
1943comp.MakeTypeMissing(SpecialType.System_Int32);
Utilities\ValueSetTests.cs (1)
496Assert.Same(ForInt, ForSpecialType(SpecialType.System_Int32));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (150)
Compilation\CompilationAPITests.cs (25)
2520ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2521(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2532ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2533(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2544ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2545(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2556ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2557(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2598ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2607ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32)), 2626ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32), 2627compilation.GetSpecialType(SpecialType.System_Int32)), 2643ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)), 2742var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2759var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2779var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2789var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2817var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2837var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2872var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2904var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2938var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2969var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2979var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 3015var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
Compilation\GetSemanticInfoBrokenCodeTests.cs (1)
271Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType);
Compilation\GetSemanticInfoTests.cs (24)
387ConversionTestHelper(model, (v3 as CastExpressionSyntax).Expression, comp.GetSpecialType(SpecialType.System_Int32), ConversionKind.Unboxing); 1422Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType); 1423Assert.Equal(SpecialType.System_Int32, bindInfo.ConvertedType.SpecialType); 1463Assert.Equal(SpecialType.System_Int32, bindInfo.Type.SpecialType); //still have the type since all candidates agree 1464Assert.Equal(SpecialType.System_Int32, bindInfo.ConvertedType.SpecialType); 2487Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2488Assert.Equal(SpecialType.System_Int32, info.ConvertedType.SpecialType); 2511Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 2512Assert.Equal(SpecialType.System_Int32, info.ConvertedType.SpecialType); 3611Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.SpecialType); 3636Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.SpecialType); 3637Assert.Equal(SpecialType.System_Int32, literalTypeInfo.ConvertedType.SpecialType); 3669Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.SpecialType); 3670Assert.Equal(SpecialType.System_Int32, literalTypeInfo.ConvertedType.SpecialType); 3705Assert.Equal(SpecialType.System_Int32, literalTypeInfo.Type.SpecialType); 3706Assert.Equal(SpecialType.System_Int32, literalTypeInfo.ConvertedType.SpecialType); 4117Assert.Equal(SpecialType.System_Int32, ((INamedTypeSymbol)info0.Symbol).TypeArguments.Single().SpecialType); 4120Assert.Equal(SpecialType.System_Int32, ((ITypeSymbol)info1.Symbol).SpecialType); 4125Assert.Equal(SpecialType.System_Int32, ((INamedTypeSymbol)info2.Symbol).TypeArguments.Single().SpecialType); 4171Assert.Equal(SpecialType.System_Int32, ((ITypeSymbol)info1.Symbol).SpecialType); 4176Assert.Equal(SpecialType.System_Int32, ((INamedTypeSymbol)info2.Symbol).TypeArguments.Single().SpecialType); 5523var otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5537var otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5727var typeInt = comp.GetSpecialType(SpecialType.System_Int32);
Compilation\QueryClauseInfoTests.cs (1)
22var int32 = c.GetSpecialType(SpecialType.System_Int32);
Compilation\SemanticModelAPITests.cs (9)
55Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType); 142Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType); 1929Assert.Equal(ConstantValue.Default(SpecialType.System_Int32), labelSymbol.SwitchCaseLabelConstant); 3166Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 3201Assert.Equal(SpecialType.System_Int32, info.Type.SpecialType); 3923var type1 = comp.GetSpecialType(SpecialType.System_Nullable_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 3930var type2 = comp.GetSpecialType(SpecialType.System_Nullable_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 4215Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(actual[0]).Type.SpecialType); 4505Assert.Equal(SpecialType.System_Int32, type.TupleElements[1].Type.SpecialType);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (4)
347Assert.Equal(SpecialType.System_Int32, paramSymbol.Type.SpecialType); 724Assert.Equal(ConstantValue.Default(SpecialType.System_Int32), labelSymbol.SwitchCaseLabelConstant); 1776var valueType = compilation.GetSpecialType(SpecialType.System_Int32); 3674Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType);
Compilation\SemanticModelGetSemanticInfoTests.cs (9)
5356Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 5381Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 6209Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8173Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8197Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8218Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 8334Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 9096Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 10985Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType);
Compilation\SemanticModelGetSemanticInfoTests_LateBound.cs (2)
379Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 380Assert.Equal(SpecialType.System_Int32, semanticInfo.ConvertedType.SpecialType);
Compilation\TypeInfoTests.cs (1)
21var int32 = c.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
DocumentationComments\CrefTests.cs (13)
1270Single(m => m.Parameters.Single().Type.SpecialType == SpecialType.System_Int32); 2218var expectedSymbol = compilation.GetSpecialType(SpecialType.System_Int32); 2412Single(method => method.ParameterTypesWithAnnotations.Single().SpecialType == SpecialType.System_Int32); 2597Single(method => method.ParameterTypesWithAnnotations.First().SpecialType == SpecialType.System_Int32); 2805Single(method => method.ParameterTypesWithAnnotations.Single().SpecialType == SpecialType.System_Int32); 2841Single(method => method.ParameterTypesWithAnnotations.Single().SpecialType == SpecialType.System_Int32 && method.ReturnType.SpecialType == SpecialType.System_Int32); 3006var typeInt = ((Compilation)compilation).GetSpecialType(SpecialType.System_Int32); 3078var expectedParameterType = compilation.GetSpecialType(SpecialType.System_Int32).ISymbol; 3136var expectedReturnType = compilation.GetSpecialType(SpecialType.System_Int32).ISymbol; 5403Assert.Equal(compilation.GetSpecialType(SpecialType.System_Int32), model.GetSymbolInfo(crefSyntaxes[0]).Symbol); 6218Assert.Equal(compilation.GetSpecialType(SpecialType.System_Int32), info.Symbol); 6251Assert.Equal(compilation.GetSpecialType(SpecialType.System_Int32), info.Symbol);
Symbols\AnonymousTypesSymbolTests.cs (1)
1925ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(), compilation.GetSpecialType(SpecialType.System_Boolean).GetPublicSymbol()),
Symbols\ConversionTests.cs (1)
1721var destinationType = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").Construct(comp.GetSpecialType(SpecialType.System_Int32));
Symbols\CorLibrary\CorTypes.cs (1)
48Assert.Equal(SpecialType.System_Int32, p.SpecialType);
Symbols\DefaultInterfaceImplementationTests.cs (7)
34657var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 34658var test1i1m1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M1"); 34659var test1i1m2 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)).GetMember<MethodSymbol>("M2"); 38954var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 38955var test1i1m1 = GetSingleProperty(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))); 41630var test1i1 = i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)); 41631var test1i1m1 = GetSingleEvent(i1.Construct(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)));
Symbols\ExtensionMethodTests.cs (8)
2526var intType = compilation.GetSpecialType(SpecialType.System_Int32); 2805var int32Type = compilation.GetSpecialType(SpecialType.System_Int32); 2849var int32Type = compilation2.GetSpecialType(SpecialType.System_Int32); 2872int32Type = compilation2.GetSpecialType(SpecialType.System_Int32); 4034Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType); 4040Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType); 4064Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType); 4070Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType);
Symbols\FunctionPointerTypeSymbolTests.cs (1)
380Assert.Equal(SpecialType.System_Int32, firstParam.Parameters.Single().Type.SpecialType);
Symbols\IndexerTests.cs (2)
60CheckIndexer(type.Indexers.Single(), false, true, SpecialType.System_Object, SpecialType.System_Int32, SpecialType.None); 2869var substitutedType = unsubstitutedType.Construct(comp.GetSpecialType(SpecialType.System_Int32));
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
48_intType = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Int32);
Symbols\Metadata\PE\LoadingEvents.cs (1)
180Assert.Equal(SpecialType.System_Int32, nonDelegateEvent.Type.SpecialType);
Symbols\Metadata\PE\LoadingFields.cs (1)
65Assert.Same(((PEModuleSymbol)module2).GetCorLibType(SpecialType.System_Int32), f2.Type);
Symbols\Retargeting\RetargetCustomModifiers.cs (1)
173Assert.Equal(SpecialType.System_Int32, volatileFld.Type.SpecialType);
Symbols\Retargeting\RetargetingTests.cs (4)
348Assert.Equal(SpecialType.System_Int32, sourceType.EnumUnderlyingType.SpecialType); 357Assert.Equal(SpecialType.System_Int32, retargetingType.EnumUnderlyingType.SpecialType); 651Assert.Equal(SpecialType.System_Int32, sourceTypeParameterConstraint.SpecialType); 658Assert.Equal(SpecialType.System_Int32, retargetingTypeParameterConstraint.SpecialType);
Symbols\Source\BaseClassTests.cs (1)
2033Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType);
Symbols\Source\ClsComplianceTests.cs (1)
3156var intType = helper.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\CustomModifierCopyTests.cs (5)
811var baseIndexer1 = (PropertySymbol)baseClass.GetMembers().Where(IsPropertyWithSingleParameter(SpecialType.System_Int32, isArrayType: true)).Single(); 815var derivedIndexer1 = (PropertySymbol)derivedClass.GetMembers().Where(IsPropertyWithSingleParameter(SpecialType.System_Int32, isArrayType: true)).Single(); 819var derived2Indexer1 = (PropertySymbol)derived2Class.GetMembers().Where(IsPropertyWithSingleParameter(SpecialType.System_Int32, isArrayType: true)).Single(); 1783var int32Type = comp.GetSpecialType(SpecialType.System_Int32); 1997var int32Type = comp.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\EnumTests.cs (4)
713VerifyEnumsValue(comp, "Figure", SpecialType.System_Int32, 0, 1, 2); 733VerifyEnumsValue(comp, "Figure", SpecialType.System_Int32, 0, 1, 2); 986Assert.Equal(SpecialType.System_Int32, type.SpecialType); 993var specialType = SpecialType.System_Int32;
Symbols\Source\ExpressionBodiedPropertyTests.cs (2)
274Assert.Equal(SpecialType.System_Int32, i.Type.SpecialType); 277Assert.Equal(SpecialType.System_Int32, i.Type.SpecialType);
Symbols\Source\MethodTests.cs (1)
1379Assert.Equal(SpecialType.System_Int32, classCBaseTypeArguments[0].SpecialType);
Symbols\Source\ModifierTests.cs (1)
152var intType = comp.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\PropertyTests.cs (2)
1883Assert.True(getters.Any(getter => getter.Parameters[0].Type.SpecialType == SpecialType.System_Int32)); 1887getter.Parameters[0].Type.SpecialType == SpecialType.System_Int32 &&
Symbols\Source\RecordTests.cs (7)
36Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 56Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 88Assert.Equal(SpecialType.System_Int32, a.Type.SpecialType); 121Assert.Equal(SpecialType.System_Int32, p1.Type.SpecialType); 133Assert.Equal(SpecialType.System_Int32, p2.Type.SpecialType); 154Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 188Assert.Equal(SpecialType.System_Int32, y.Type.SpecialType);
Symbols\Source\TypeMapTests.cs (3)
117Assert.Equal(SpecialType.System_Int32, neti.TypeArguments()[0].SpecialType); 137var _int = compilation.GetSpecialType(SpecialType.System_Int32); 179var _int = compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\SymbolDistinguisherTests.cs (2)
315var errorType = dummyComp.GetSpecialType(SpecialType.System_Int32); 316var validType = CreateEmptyCompilation("", new[] { MscorlibRef }).GetSpecialType(SpecialType.System_Int32);
Symbols\TypedConstantTests.cs (1)
35_intType = _compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\TypeResolutionTests.cs (1)
127Assert.Equal(SpecialType.System_Int32, intSym.SpecialType);
Symbols\TypeTests.cs (1)
1554Assert.Same(comp.GetSpecialType(SpecialType.System_Int32), underType);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3265case SpecialType.System_Int32: 3453SpecialType.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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
23case SpecialType.System_Int32:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
248var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.SpecialType != SpecialType.System_Int32
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (9)
569return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 828return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 952return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1050return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1881return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1899return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1906return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2126return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2181return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.cs (10)
277var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 296VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Int32), "int"); 318var arrayType = _emptyCompilation.CreateArrayTypeSymbol(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)); 405var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 781Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32)), 785Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), initializer: Generator.LiteralExpression(0)), 789Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.Public), 793Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Static | DeclarationModifiers.ReadOnly), 797Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Required), 854_emptyCompilation.GetSpecialType(SpecialType.System_Int32),
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
95(SpecialType.System_Int32, int intVal) => ConstantValue.Create(intVal),
Microsoft.CodeAnalysis.Features (5)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
534=> property is { IsIndexer: true, Parameters: [{ Type.SpecialType: SpecialType.System_Int32 }] };
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
138returnType: compilation.GetSpecialType(SpecialType.System_Int32),
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
473if (symbol.IsEnumType() && symbol.EnumUnderlyingType!.SpecialType != SpecialType.System_Int32)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
295if (parameter.Type.SpecialType != SpecialType.System_Int32)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
387case SpecialType.System_Int32:
Microsoft.CodeAnalysis.Features.UnitTests (9)
FindUsages\DefinitionItemFactoryTests.cs (9)
981var i = compilation.GetSpecialType(SpecialType.System_Int32); 1036var i = compilation.GetSpecialType(SpecialType.System_Int32); 1088var i = compilation.GetSpecialType(SpecialType.System_Int32); 1152var i = compilation.GetSpecialType(SpecialType.System_Int32); 1209var i = compilation.GetSpecialType(SpecialType.System_Int32); 1264var i = compilation.GetSpecialType(SpecialType.System_Int32); 1344var i = compilation.GetSpecialType(SpecialType.System_Int32); 1522var i = compilation.GetSpecialType(SpecialType.System_Int32); 1593var i = compilation.GetSpecialType(SpecialType.System_Int32);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
64case SpecialType.System_Int32:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
282return SpecialType.System_Int32;
Microsoft.CodeAnalysis.Test.Utilities (13)
Compilation\ControlFlowGraphVerifier.cs (2)
916&& arguments[0].Value.Type.SpecialType == SpecialType.System_Int32 917&& arguments[1].Value.Type.SpecialType == SpecialType.System_Int32;
Diagnostics\OperationTestAnalyzer.cs (11)
159conditionRight.Type.SpecialType == SpecialType.System_Int32 && 176setupAssignment.Value.Type.SpecialType == SpecialType.System_Int32) 241advanceAssignment.Value.Type.SpecialType == SpecialType.System_Int32) 250advanceOperation.RightOperand.Type.SpecialType == SpecialType.System_Int32) 265advanceAssignment.Value.Type.SpecialType == SpecialType.System_Int32) 357singleValueExpression.Type.SpecialType == SpecialType.System_Int32) 377rangeMinExpression.Type.SpecialType == SpecialType.System_Int32 && 380rangeMaxExpression.Type.SpecialType == SpecialType.System_Int32) 400relationalValueExpression.Type.SpecialType == SpecialType.System_Int32) 587if (argumentValue.HasValue && argument.Type.SpecialType == SpecialType.System_Int32) 631if (literal.Type.SpecialType == SpecialType.System_Int32 &&
Microsoft.CodeAnalysis.UnitTests (2)
CommonTypedConstantTests.cs (1)
30_intType = _compilation.GetSpecialType(SpecialType.System_Int32);
CorLibTypesTests.cs (1)
51Assert.Equal(SpecialType.System_Int32, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Int32));
Microsoft.CodeAnalysis.VisualBasic (115)
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)
3915Dim int32Type = GetSpecialType(SpecialType.System_Int32, node.ArgumentList, diagnostics) 4126Dim Int32Type = GetSpecialType(SpecialType.System_Int32, node, diagnostics) 4342Dim 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)
1623Debug.Assert(expression.Type.SpecialType = SpecialType.System_Int32 OrElse expression.Type.SpecialType = SpecialType.System_Int64 OrElse expression.Type.SpecialType = SpecialType.System_UIntPtr) 2305Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32) 2321Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32) 2360Debug.Assert(node.Type.SpecialType = 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)
429Debug.Assert(conversion.Type.IsNullableType AndAlso conversion.Type.GetNullableUnderlyingType.SpecialType = SpecialType.System_Int32) 471Dim 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) 443Case SpecialType.System_Int32 : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanInt32 490Case SpecialType.System_Int32 532Case SpecialType.System_Int32 : specialHelper = SpecialMember.System_Decimal__op_Implicit_FromInt32 568SpecialType.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)
930Case SpecialType.System_Int32 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToIntegerObject 1018SpecialType.System_Int32 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringInt32 1095Case SpecialType.System_Int32 : member = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToIntegerString 1163SpecialType.System_Int32 : member = SpecialMember.System_Decimal__CtorInt32 1235Case 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)
95CachedState = 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)
3343Case 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)
123Return Compilation.GetSpecialType(SpecialType.System_Int32)
Symbols\Attributes\SourceAttributeData.vb (1)
221foundMatch = specType = SpecialType.System_Int32
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1148SpecialType.System_Int32,
Symbols\MethodSymbol.vb (1)
540If returnType.SpecialType <> SpecialType.System_Int32 AndAlso returnType.SpecialType <> SpecialType.System_Void Then
Symbols\Source\SourceAssemblySymbol.vb (3)
1176Dim arg As Integer = attrData.GetConstructorArgument(Of Integer)(i, SpecialType.System_Int32) 1548Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32) 1587Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32)
Symbols\Source\SourceFieldSymbol.vb (1)
738Dim offset = attrData.CommonConstructorArguments(0).DecodeValue(Of Integer)(SpecialType.System_Int32)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2508New TypedConstant(GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Enum, CInt(ClassInterfaceType.None)))))
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
383Case SpecialType.System_UInt32, SpecialType.System_Int32,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (17)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
44Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
149If(namedType.EnumUnderlyingType IsNot Nothing AndAlso namedType.EnumUnderlyingType.SpecialType <> SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
33Case specialType.System_Int32 75specialType = specialType.System_Int32 109SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
102SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
110Case SpecialType.System_Int32
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.Emit.UnitTests (37)
Attributes\AttributeTests.vb (1)
2200Dim classYOfInt As NamedTypeSymbol = classY.Construct(ImmutableArray.Create(Of TypeSymbol)(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)))
CodeGen\CodeGenTuples.vb (32)
6864Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6887Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6916Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6939Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6959Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6979Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7000Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7018Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7043Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7068Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7093Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7118Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7149Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7168Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7190Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7218Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7244Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7267Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7290Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7308Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7326Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7342Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7363Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7384Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7405Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7432Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7449Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7502Dim intType = comp.GetSpecialType(SpecialType.System_Int32) 8934Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 10121Sub(t) Assert.Equal(SpecialType.System_Int32, t.SpecialType)) 20503Sub(t) Assert.Equal(SpecialType.System_Int32, t.SpecialType)) 20518Sub(t) Assert.Equal(SpecialType.System_Int32, t.SpecialType))
Emit\CompilationEmitTests.vb (1)
4283compilation.GetSpecialType(SpecialType.System_Int32)
Emit\EmitMetadata.vb (1)
523Assert.Same([Module].GetCorLibType(SpecialType.System_Int32), method4ParamTypes(4))
Emit\NoPiaEmbedTypes.vb (1)
1092Assert.Equal(SpecialType.System_Int32, test9.EnumUnderlyingType.SpecialType)
PDB\PDBTests.vb (1)
192Dim stInt = c1.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\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
44Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (2)
EditAndContinue\TopLevelEditingTests.vb (2)
3260SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("S").GetMember(Of NamedTypeSymbol)("C").GetMembers("F2").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Int32))) 4669SemanticEdit(SemanticEditKind.Delete, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Int32)), deletedSymbolContainerProvider:=Function(c) c.GetMember("S"))
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
32Case SpecialType.System_Int32
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (63)
Compilation\CompilationAPITests.vb (23)
1478Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 1494Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 1562ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1563DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1575ImmutableArray.Create(DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1576DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1586ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1587DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1607ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol), 1608DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)), 1634ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)), 1648ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)), 1663ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)), 1746Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1761Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1808Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1817Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1839Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1851Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1860Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1895Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1904Dim intType = compilation.GetSpecialType(SpecialType.System_Int32) 1917Dim intType = Compilation.GetSpecialType(SpecialType.System_Int32)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (3)
2760Assert.Equal(compilation.GetSpecialType(System_Int32), local.Type) 2796Assert.Equal(compilation.GetSpecialType(System_Int32), local.Type) 2826Assert.Equal(compilation.GetSpecialType(System_Int32), local.Type)
Semantics\BinaryOperators.vb (1)
1189rightName = compilation.GetSpecialType(SpecialType.System_Int32).ToTestDisplayString()
Semantics\Conversions.vb (12)
237Dim int32Type = c1.GetSpecialType(System_Int32) 460If type2.IsEnumType() AndAlso type1.SpecialType = SpecialType.System_Int32 Then 1089Dim int32Type = c1.GetSpecialType(System_Int32) 1353Case System_Int32 : Return c.ToInt32(Nothing) 1378Case System_Int32 : Return UncheckedCInt(val) 1394Case System_Int32 : Return UncheckedCInt(val) 1410Case System_Int32 : Return UncheckedCInt(UncheckedCLng(val)) 1427Case System_Int32 : Return CInt(value) 1490Dim arrayInt32 = c1.CreateArrayTypeSymbol(c1.GetSpecialType(System_Int32)) 2050c1.GetSpecialType(System_Int32), 2066nullable.Construct(c1.GetSpecialType(System_Int32)), 2190Private Const s_integer = System_Int32
Semantics\GetExtendedSemanticInfoTests.vb (16)
2929Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 2967Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 2987Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 3009Assert.Equal(System_Int32, symbol.Type.SpecialType) 3028Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 3317Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 3339Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 3361Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 3384Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 3432Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 3923Assert.Equal(semanticInfo.Type.SpecialType, System_Int32) 3964Assert.Equal(semanticInfo.Type.SpecialType, System_Int32) 5622Assert.Equal(System_Int32, semanticInfo.Type.SpecialType) 5683Assert.Equal(System_Int32, semanticInfo.ConvertedType.SpecialType) 6629Dim ienumerable = compilation.GetSpecialType(System_Collections_Generic_IEnumerable_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32))) 6630Dim ienumerator = compilation.GetSpecialType(System_Collections_Generic_IEnumerator_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32)))
Semantics\GetSemanticInfoTests.vb (3)
5721Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5736Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5943Dim typeInt = comp.GetSpecialType(SpecialType.System_Int32)
Semantics\OverloadResolution.vb (5)
183Dim TestClass2OfInteger = TestClass2.Construct(c1.GetSpecialType(System_Int32)) 194Dim intZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0I), c1.GetSpecialType(System_Int32)) 2510System_Int32, System_UInt32, System_Int64, System_UInt64, 2884Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing) 3075Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (43)
SymbolsTests\CorLibrary\CorTypes.vb (1)
45Assert.Equal(SpecialType.System_Int32, p.SpecialType)
SymbolsTests\InstantiatingGenerics.vb (2)
467Dim int = compilation.GetSpecialType(SpecialType.System_Int32) 689Dim int = compilation.GetSpecialType(SpecialType.System_Int32)
SymbolsTests\Metadata\PE\LoadingEvents.vb (1)
154Assert.Equal(SpecialType.System_Int32, nonDelegateEvent.Type.SpecialType)
SymbolsTests\Metadata\PE\LoadingFields.vb (1)
56Assert.Same(DirectCast(module2, PEModuleSymbol).GetCorLibType(SpecialType.System_Int32), f2.Type)
SymbolsTests\Retargeting\RetargetCustomModifiers.vb (1)
120Assert.Equal(SpecialType.System_Int32, volatileFld.[Type].SpecialType)
SymbolsTests\Retargeting\RetargetingTests.vb (2)
366Assert.Equal(SpecialType.System_Int32, sourceType.EnumUnderlyingType.SpecialType) 375Assert.Equal(SpecialType.System_Int32, retargetingType.EnumUnderlyingType.SpecialType)
SymbolsTests\Source\BaseClassTests.vb (3)
2289Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2324Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2354Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32))
SymbolsTests\Source\ClsComplianceTests.vb (1)
2560Dim integerType = helper.GetSpecialType(SpecialType.System_Int32)
SymbolsTests\Source\EnumTests.vb (5)
259VerifyEnumsValue(text, "c1.EnumTest", SpecialType.System_Int32, Nothing, Nothing) 845VerifyEnumsValue(comp, "Figure", SpecialType.System_Int32, 0, 1, 2) 886VerifyEnumsValue(comp, "Figure", SpecialType.System_Int32, 0, 1, 2) 1212Assert.Equal(type.SpecialType, SpecialType.System_Int32) 1350Return VerifyEnumsValue(comp, enumName, If(expectedEnumValues.Any() AndAlso expectedEnumValues.First().GetType() Is GetType(Long), SpecialType.System_Int64, SpecialType.System_Int32), expectedEnumValues)
SymbolsTests\Source\FieldTests.vb (2)
142Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), fieldT.Type) 535Dim substitutedType = type.Construct(compilation.GetSpecialType(SpecialType.System_Int32))
SymbolsTests\Source\ImplementsTests.vb (9)
1737Dim ifooTypeSayWithInt = (From m In ifooMethods Where m.Parameters(0).Type.SpecialType = SpecialType.System_Int32).First() 2222Dim ifooTypeStyleWithInt = (From m In ifooProps Where m.Parameters(0).Type.SpecialType = SpecialType.System_Int32).First() 2313Dim ifooTypeSayWithInt = (From m In ifooMethods Where m.Parameters(0).Type.SpecialType = SpecialType.System_Int32).First() 2403Dim ifooTypeStyleWithInt = (From m In ifooProps Where m.Parameters(0).Type.SpecialType = SpecialType.System_Int32).First() 2483Dim ifooTypeSayWithInt = (From m In ifooMethods Where m.Parameters(0).Type.SpecialType = SpecialType.System_Int32).First() 2535Dim outerOfInt = outerOfX.Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2544Dim iFooOfIntIntListOfString = iFooOfIntTU.Construct(comp.GetSpecialType(SpecialType.System_Int32), listOfString) 2549Dim ifooOfIntIntStringSay1 = (From m In iFooOfIntIntListOfStringMethods Where TypeSymbol.Equals(m.Parameters(0).Type, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything)).First() 2550Dim ifooOfIntIntStringSay2 = (From m In iFooOfIntIntListOfStringMethods Where Not TypeSymbol.Equals(m.Parameters(0).Type, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything)).First()
SymbolsTests\Source\MethodTests.vb (1)
681Dim constructedC = classC.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_Int32)}).AsImmutableOrNull())
SymbolsTests\Source\PropertyTests.vb (10)
783Assert.Equal(SpecialType.System_Int32, [property].Parameters(0).Type.SpecialType) 785Assert.Equal(SpecialType.System_Int32, [property].GetMethod.Parameters(0).Type.SpecialType) 787Assert.Equal(SpecialType.System_Int32, [property].SetMethod.Parameters(0).Type.SpecialType) 3796Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo().Items(1)"), SpeculativeBindingOption.BindAsExpression).Type.SpecialType) 3797Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo.Items(1)"), SpeculativeBindingOption.BindAsExpression).Type.SpecialType) 3798Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo()(1)"), SpeculativeBindingOption.BindAsExpression).Type.SpecialType) 3799Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Goo(1)"), SpeculativeBindingOption.BindAsExpression).Type.SpecialType) 3800Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("dd.Item(1)"), SpeculativeBindingOption.BindAsExpression).Type.SpecialType) 3801Assert.Equal(SpecialType.System_Int32, bindings.GetSpeculativeSemanticInfoSummary(position, SyntaxFactory.ParseExpression("Bar(1)"), SpeculativeBindingOption.BindAsExpression).Type.SpecialType) 4344Assert.Equal(SpecialType.System_Int32, propertiesDictionary!IntegerType.Type.SpecialType)
SymbolsTests\Source\TypeBindingTests.vb (4)
48Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), arrayTypeA.ElementType) 90Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), namedTypeA.TypeArguments(0)) 231Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), fieldB.Type) 445Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Int32), containerTypeB.TypeArguments(0))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\ConstantExpressionEvaluatorTests.vb (1)
16Assert.Equal(ConstantValueTypeDiscriminator.Int32, SpecialType.System_Int32.ToConstantValueDiscriminator())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (19)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
405Case SpecialType.System_Int32
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
29Case SpecialType.System_Int32
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
383Case SpecialType.System_UInt32, SpecialType.System_Int32,
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
149If(namedType.EnumUnderlyingType IsNot Nothing AndAlso namedType.EnumUnderlyingType.SpecialType <> SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (3)
33Case specialType.System_Int32 75specialType = specialType.System_Int32 109SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
102SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
110Case SpecialType.System_Int32
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.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.vb (10)
24Me._ienumerableInt = _emptyCompilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)) 254Dim intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32) 272VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Int32), "Integer") 293Dim arrayType = _emptyCompilation.CreateArrayTypeSymbol(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)) 368Dim intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32) 828Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32)), 832Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), initializer:=Generator.LiteralExpression(0)), 836Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility:=Accessibility.Public), 840Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), modifiers:=DeclarationModifiers.Static Or DeclarationModifiers.ReadOnly Or DeclarationModifiers.WithEvents), 938_emptyCompilation.GetSpecialType(SpecialType.System_Int32),
Microsoft.CodeAnalysis.Workspaces (28)
Editing\SyntaxGenerator.cs (1)
786underlyingType: type.EnumUnderlyingType is null or { SpecialType: SpecialType.System_Int32 }
Recommendations\AbstractRecommendationServiceRunner.cs (1)
310AddSpecialTypeSymbolAndItsAliases(nameof(Int32), SpecialType.System_Int32);
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (12)
26case SpecialType.System_Int32: 51case SpecialType.System_Int32: 74case SpecialType.System_Int32: 109case SpecialType.System_Int32: 149case SpecialType.System_Int32: 172case SpecialType.System_Int32: 190case SpecialType.System_Int32: 214case SpecialType.System_Int32: 244case SpecialType.System_Int32: 265case SpecialType.System_Int32: 283return SpecialType.System_Int32; 383SpecialType.System_Int32 => (ulong)(int)value,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
106methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
294case SpecialType.System_Int32: 387case SpecialType.System_Int32: 662case SpecialType.System_Int32:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
22PredefinedType.Int32 => SpecialType.System_Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
22SpecialType.System_Int32 => PredefinedType.Int32,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
64SpecialType.System_Int32 => 1,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
140SpecialType.System_Int32 => value is int,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (1)
23case SpecialType.System_Int32:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
422case SpecialType.System_Int32:
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.Workspaces.UnitTests (8)
SymbolKeyTests.cs (6)
723var constructed = method.Construct(compilation.GetSpecialType(SpecialType.System_Int32), method.TypeParameters[1]); 741var constructed = type.Construct(compilation.GetSpecialType(SpecialType.System_Int32), type.TypeParameters[1]); 798var a_string_b_int = a_string_b.Construct(compilation.GetSpecialType(SpecialType.System_Int32)); 806var a_b_int = a_b.Construct(compilation.GetSpecialType(SpecialType.System_Int32)); 1313var symbolKey1 = SymbolKey.Create(compilation1.GetSpecialType(SpecialType.System_Int32)); 1314var symbolKey2 = SymbolKey.Create(compilation2.GetSpecialType(SpecialType.System_Int32));
SyntaxNodeTests.cs (1)
103var cgenField = gen.FieldDeclaration("X", gen.TypeExpression(SpecialType.System_Int32), Accessibility.Private);
UtilityTest\DocumentationCommentIdTests.cs (1)
340var intType = compilation.GetSpecialType(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)
51else if (a.Type?.SpecialType == SpecialType.System_Int32)
Microsoft.Gen.Metrics (1)
Parser.cs (1)
38SpecialType.System_Int32,
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
38SpecialType.System_Int32,
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
304if ((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)
251editor.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)
132SpecialType.System_Int32 => CreateWellKnownComExceptionMarshallingData($"{TypeNames.ExceptionAsHResultMarshaller}<int>", unmanagedReturnType),
TypeSymbolExtensions.cs (2)
181or SpecialType.System_Int32 196or SpecialType.System_Int32
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\AbstractEntryPointFinder.cs (1)
48if (!symbol.ReturnsVoid && symbol.ReturnType.SpecialType != SpecialType.System_Int32)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
727case SpecialType.System_Int32:
ObjectBrowser\DescriptionBuilder.cs (1)
102if (underlyingType.SpecialType != SpecialType.System_Int32)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
542GenerateNumber(upperBound, SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32))
CodeModel\VisualBasicCodeModelService.vb (1)
785Case SpecialType.System_Int32
ObjectBrowser\DescriptionBuilder.vb (1)
107If underlyingType IsNot Nothing AndAlso underlyingType.SpecialType <> SpecialType.System_Int32 Then
Mvc.Analyzers.Test (3)
CodeAnalysisExtensionsTest.cs (3)
361Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32)); 409Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32)); 447Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32));
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
193SpecialType.System_SByte or SpecialType.System_Int16 or SpecialType.System_Int32 or SpecialType.System_Int64 or
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
96if (items[2].Type?.SpecialType == SpecialType.System_Int32)