1158 references to System_Int32
Microsoft.CodeAnalysis (145)
Compilation\Expression.cs (1)
13case SpecialType.System_Int32:
ConstantValue.cs (2)
440case SpecialType.System_Int32: return ConstantValueTypeDiscriminator.Int32; 492case ConstantValueTypeDiscriminator.Int32: return SpecialType.System_Int32;
Emit\CommonPEModuleBuilder.cs (1)
1039this.GetSpecialType(SpecialType.System_Int32, syntaxNodeOpt, diagnostics),
InternalUtilities\EnumUtilties.cs (1)
32case SpecialType.System_Int32:
MetadataReader\MetadataTypeCodeExtensions.cs (3)
40return SpecialType.System_Int32; 114case SpecialType.System_Int32: 145case SpecialType.System_Int32:
Operations\ControlFlowGraphBuilder.cs (1)
5146var shiftConst = new LiteralOperation(semanticModel: null, operand.Syntax, _compilation.GetSpecialType(SpecialType.System_Int32),
PEWriter\Types.cs (1)
22SystemInt32 = CodeAnalysis.SpecialType.System_Int32,
SpecialMembers.cs (20)
123(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 131(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 148(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 149(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 227(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 275(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 276(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 277(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 417(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 505(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 616(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 670(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 799(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 813(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 814(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 821(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 822(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 829(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 877(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 902(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32,
SpecialTypeExtensions.cs (11)
25case SpecialType.System_Int32: 50case SpecialType.System_Int32: 73case SpecialType.System_Int32: 108case SpecialType.System_Int32: 148case SpecialType.System_Int32: 171case SpecialType.System_Int32: 189case SpecialType.System_Int32: 213case SpecialType.System_Int32: 243case SpecialType.System_Int32: 264case SpecialType.System_Int32: 282return SpecialType.System_Int32;
SpecialTypes.cs (2)
105s_typeIdToTypeCodeMap[(int)SpecialType.System_Int32] = Microsoft.Cci.PrimitiveTypeCode.Int32; 129s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Int32] = SpecialType.System_Int32;
Symbols\Attributes\CommonAttributeData.cs (9)
211if (parameters[2].Type.SpecialType == SpecialType.System_Int32) 213Debug.Assert(parameters[2].Type.SpecialType == SpecialType.System_Int32); 214Debug.Assert(parameters[3].Type.SpecialType == SpecialType.System_Int32); 215Debug.Assert(parameters[4].Type.SpecialType == SpecialType.System_Int32); 217high = args[2].DecodeValue<int>(SpecialType.System_Int32); 218mid = args[3].DecodeValue<int>(SpecialType.System_Int32); 219low = args[4].DecodeValue<int>(SpecialType.System_Int32); 476alignment = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32); 488size = 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); 368elementCount = namedArg.Value.DecodeValue<int>(SpecialType.System_Int32);
Symbols\TypedConstant.cs (1)
165case SpecialType.System_Int32:
WellKnownMembers.cs (89)
48(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 71(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 214(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 222(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 230(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 492(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 719(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 791(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 906(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 907(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 908(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 938(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 968(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1035(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1168(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1378(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1467(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 1594(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1952(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 1962(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2083(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2084(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2136(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2153(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2508(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 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 2541(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2549(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2590(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 2940(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2941(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2943(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2952(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2953(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2955(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 2963(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2971(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2972(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Lambda id 2980(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2989(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Method id 2990(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Lambda id 3014(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3023(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3032(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3041(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3050(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3059(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3068(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3077(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3086(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3095(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3104(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3113(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Size 3114(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3122(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Source parameter index 3123(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Target local index 3132(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3141(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3150(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3159(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3168(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3177(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3186(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3195(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3204(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3213(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3222(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Local index 3231(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Size 3232(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Parameter index 3240(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Source parameter index 3241(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Target parameter index 3249(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Source local index 3250(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Target local index 3322(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3338(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3345(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 3354(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3371(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3372(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3380(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3387(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 3458(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3466(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3467(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3754(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, 3761(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32, // Return Type 3912(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Int32,
Microsoft.CodeAnalysis.CodeStyle (19)
EnumUtilties.cs (1)
32case SpecialType.System_Int32:
IMethodSymbolExtensions.cs (1)
105methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
ITypeSymbolExtensions.cs (3)
292case SpecialType.System_Int32: 385case SpecialType.System_Int32: 652case SpecialType.System_Int32:
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (11)
25case SpecialType.System_Int32: 50case SpecialType.System_Int32: 73case SpecialType.System_Int32: 108case SpecialType.System_Int32: 148case SpecialType.System_Int32: 171case SpecialType.System_Int32: 189case SpecialType.System_Int32: 213case SpecialType.System_Int32: 243case SpecialType.System_Int32: 264case SpecialType.System_Int32: 282return SpecialType.System_Int32;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
22SpecialType.System_Int32 => PredefinedType.Int32,
PredefinedTypeExtensions.cs (1)
22PredefinedType.Int32 => SpecialType.System_Int32,
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
CodeGenerationHelpers.cs (1)
141SpecialType.System_Int32 => value is int,
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 (181)
Binder\Binder_Conversions.cs (15)
1747case SpecialType.System_Int32: return (int)byteValue; 1767case SpecialType.System_Int32: return (int)charValue; 1787case SpecialType.System_Int32: return (int)uint16Value; 1807case SpecialType.System_Int32: return (int)uint32Value; 1827case SpecialType.System_Int32: return (int)uint64Value; 1847case SpecialType.System_Int32: return (int)nuintValue; 1866case SpecialType.System_Int32: return (int)sbyteValue; 1886case SpecialType.System_Int32: return (int)int16Value; 1906case SpecialType.System_Int32: return (int)int32Value; 1926case SpecialType.System_Int32: return (int)int64Value; 1946case SpecialType.System_Int32: return (int)nintValue; 1970case SpecialType.System_Int32: return (int)doubleValue; 1990case SpecialType.System_Int32: return (int)decimalValue; 2041case SpecialType.System_Int32: return (int.MinValue - 1D) < value && value < (int.MaxValue + 1D); 2071case SpecialType.System_Int32: return (int.MinValue - 1M) < value && value < (int.MaxValue + 1M);
Binder\Binder_Expressions.cs (18)
1399this.GetSpecialType(SpecialType.System_Int32, diagnostics, node), hasErrors); 2352TypeSymbol intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 3765GetSpecialType(SpecialType.System_Int32, diagnostics, nonNullSyntax)) 3846count = GenerateConversionForAssignment(GetSpecialType(SpecialType.System_Int32, diagnostics, node), count, diagnostics); 3990GetSpecialType(SpecialType.System_Int32, diagnostics, node)) 4011if (constantValue == null || constantValue.IsBad || expression.Type.SpecialType != SpecialType.System_Int32) 4035if (type == SpecialType.System_Int32) 6200case SpecialType.System_Int32: 8032var int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 8067TryImplicitConversionToArrayIndex(index, SpecialType.System_Int32, node, diagnostics) ?? 8104NamedTypeSymbol int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 8675original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None }) 8677var intPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 8732original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } && 8733original.Parameters[1] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None }) 8752var startArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 8753var lengthArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 8831getMethod.ReturnType.SpecialType == SpecialType.System_Int32 &&
Binder\Binder_InterpolatedString.cs (2)
55var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 565var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, syntax);
Binder\Binder_Invocation.cs (1)
1377defaultValue = new BoundLiteral(syntax, ConstantValue.Create(line), Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true };
Binder\Binder_Operators.cs (3)
1662return SpecialType.System_Int32; 1664case SpecialType.System_Int32: 3061return new BoundLiteral(node, ConstantValue.Create((int)-2147483648), GetSpecialType(SpecialType.System_Int32, diagnostics, node));
Binder\Binder_Patterns.cs (2)
1481if (memberType.SpecialType == SpecialType.System_Int32 && 1694SpecialType.System_Int32 => BinaryOperatorKind.Int,
Binder\DecisionDagBuilder.cs (8)
325RoslynDebug.Assert(getLengthProperty.Type.SpecialType == SpecialType.System_Int32); 339var lengthTemp = new BoundDagTemp(syntax, this._compilation.GetSpecialType(SpecialType.System_Int32), lengthEvaluation); 1519case (SpecialType.System_Int32, SpecialType.System_UInt32): 1520case (SpecialType.System_UInt32, SpecialType.System_Int32): 1529case (SpecialType.System_Int32, SpecialType.System_IntPtr): 1530case (SpecialType.System_Int32, SpecialType.System_UIntPtr): 1533case (SpecialType.System_IntPtr, SpecialType.System_Int32): 1535case (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\Semantics\Conversions\ConversionsBase.cs (5)
1290if (specialSource == SpecialType.System_Int32) 1616TypeSymbol expectedAttributeType = corLibrary.GetSpecialType(SpecialType.System_Int32); 1959case SpecialType.System_Int32: 2044case SpecialType.System_Int32: 3691case SpecialType.System_Int32:
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
354if (left.Type.SpecialType == SpecialType.System_Int32 ||
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
552operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntAddition, pointerType, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType)); 556operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.IntAndPointerAddition, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType, pointerType)); 562operators.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)
3042case SpecialType.System_Int32:
CodeGen\EmitArrayInitializer.cs (1)
709SpecialType.System_Int32 or SpecialType.System_UInt32 or SpecialType.System_Single or
CodeGen\EmitExpression.cs (7)
1300case SpecialType.System_Int32: 2124Debug.Assert(expression.Type.SpecialType == SpecialType.System_Int32 || 3308Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3325Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3339Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3362Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32); 3409Debug.Assert(node.Type.SpecialType == SpecialType.System_Int32);
CodeGen\EmitStatement.cs (1)
1368var int32Type = Binder.GetSpecialType(_module.Compilation, SpecialType.System_Int32, syntaxNode, _diagnostics);
Compilation\BuiltInOperators.cs (6)
268case UnaryOperatorKind.Int: opType = _compilation.GetSpecialType(SpecialType.System_Int32); break; 723TypeSymbol rightType = _compilation.GetSpecialType(SpecialType.System_Int32); 751case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 783case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 815case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32); 844case BinaryOperatorKind.Int: return nullable.Construct(_compilation.GetSpecialType(SpecialType.System_Int32));
Compilation\CSharpCompilation.cs (4)
1994if (method.ReturnType.IsVoidType() || method.ReturnType.SpecialType == SpecialType.System_Int32) 2019(result!.Type!.IsVoidType() || result.Type!.SpecialType == SpecialType.System_Int32); 2038if (returnType.SpecialType != SpecialType.System_Int32 && !returnType.IsVoidType()) 4130=> type.SpecialType is SpecialType.System_Int32 or SpecialType.System_UInt32 or SpecialType.System_Int64 or SpecialType.System_UInt64;
Compiler\MethodBodySynthesizer.cs (1)
93var 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)
485GetSpecialType(SpecialType.System_Int32, diagnostics));
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)
1379case SpecialType.System_Int32:
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
177var pendingBranchVar = new SynthesizedLocal(_F.CurrentFunction, TypeWithAnnotations.Create(_F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingBranch, tryStatementSyntax); 1010this.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)
2059Debug.Assert(rightType.SpecialType == SpecialType.System_Int32); 2131Debug.Assert(rightType.SpecialType == SpecialType.System_Int32); 2225Debug.Assert(sizeOfExpression.Type is { SpecialType: SpecialType.System_Int32 }); 2252case SpecialType.System_Int32: 2299case SpecialType.System_Int32:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1320TypeSymbol int32Type = compilation.GetSpecialType(SpecialType.System_Int32);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
1407case SpecialType.System_Int32: 1434case SpecialType.System_Int32: 1458case SpecialType.System_Int32: 1479case SpecialType.System_Int32: 1510case SpecialType.System_Int32: return SpecialMember.System_Decimal__op_Explicit_ToInt32; 1530case SpecialType.System_Int32: return SpecialMember.System_Decimal__op_Implicit_FromInt32;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (5)
529TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 555MakeLiteral(forEachSyntax, ConstantValue.Default(SpecialType.System_Int32), intType)); 708TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 734MakeLiteral(forEachSyntax, ConstantValue.Default(SpecialType.System_Int32), intType)); 835TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (6)
330Debug.Assert(integerArgument.Type!.SpecialType == SpecialType.System_Int32); 402Debug.Assert(loweredExpr.Type!.SpecialType == SpecialType.System_Int32); 413Debug.Assert(loweredExpr.Type!.SpecialType == SpecialType.System_Int32); 461Debug.Assert(hatExpression.Operand is { Type: { SpecialType: SpecialType.System_Int32 } }); 465else if (unloweredExpr is BoundConversion { Operand: { Type: { SpecialType: SpecialType.System_Int32 } } operand }) 474arguments[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)
756Debug.Assert(boundOne.Type is { SpecialType: SpecialType.System_Int32 }); 897specialType = SpecialType.System_Int32; 1018case SpecialType.System_Int32:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
125this.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)
662return Binary(BinaryOperatorKind.IntSubtraction, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 667return Binary(BinaryOperatorKind.IntMultiplication, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 677return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1002Debug.Assert(ex.Type is { SpecialType: CodeAnalysis.SpecialType.System_Int32 }); 1098return new BoundArrayLength(Syntax, array, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)); 1213return new BoundSizeOfOperator(Syntax, Type(type), Binder.GetConstantSizeOf(type), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1231SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1241SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1251SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1286SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1298SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32))
Parser\Lexer.cs (3)
358case SpecialType.System_Int32: 1283info.ValueKind = SpecialType.System_Int32; 2990info.ValueKind = SpecialType.System_Int32;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
639case SpecialType.System_Int32:
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (1)
131get { return Compilation.GetSpecialType(SpecialType.System_Int32); }
Symbols\Attributes\SourceAttributeData.cs (1)
340if (specType != SpecialType.System_Int32)
Symbols\BaseTypeAnalysis.cs (1)
262case SpecialType.System_Int32:
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
188int offset = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (3)
1953var int32Type = _compilation.GetSpecialType(SpecialType.System_Int32); 2556int arg = attribute.GetConstructorArgument<int>(i, SpecialType.System_Int32); 2745case SpecialType.System_Int32:
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1062TypeSymbol 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)
4358TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Int32)),
Symbols\Source\SourceModuleSymbol.cs (1)
592var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, 11));
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
69type = compilation.GetSpecialType(SpecialType.System_Int32); 76NamedTypeSymbol defaultUnderlyingType = compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
724else 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)), 83if (overridden is null || overridden.ReturnType.SpecialType != SpecialType.System_Int32)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
365ReturnType.SpecialType == SpecialType.System_Int32);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
48Construct(Binder.GetSpecialType(compilation, SpecialType.System_Int32, NoLocation.Singleton, diagnostics)); 51_returnType = Binder.GetSpecialType(compilation, SpecialType.System_Int32, NoLocation.Singleton, diagnostics);
Symbols\TypeSymbolExtensions.cs (5)
586case SpecialType.System_Int32: 1261case SpecialType.System_Int32: 1343case SpecialType.System_Int32: 2118case SpecialType.System_Int32: return 6; 2141case 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 (5)
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 &&
ITypeSymbolExtensions.cs (1)
17case SpecialType.System_Int32:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
CSharpTypeInferenceService.TypeInferrer.cs (9)
581return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 842return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 972return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1070return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1936return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1954return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1961return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2189return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2250return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32));
NamedTypeGenerator.cs (1)
245var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.SpecialType != SpecialType.System_Int32
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (17)
EditAndContinue\TopLevelEditingTests.cs (17)
5427semanticEdits: new[] { SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) }) 6744SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("S")) 7853SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 7890SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 9772SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C..ctor").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 13737SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.add_E").FirstOrDefault(m => m.GetParameterTypes()[0].Type.GetMemberTypeArgumentsNoUseSiteDiagnostics()[0].SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 13738SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.remove_E").FirstOrDefault(m => m.GetParameterTypes()[0].Type.GetMemberTypeArgumentsNoUseSiteDiagnostics()[0].SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 13759SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.add_E").FirstOrDefault(m => m.GetParameterTypes()[0].Type.GetMemberTypeArgumentsNoUseSiteDiagnostics()[0].GetMemberTypeArgumentsNoUseSiteDiagnostics()[1].SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 13760SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.remove_E").FirstOrDefault(m => m.GetParameterTypes()[0].Type.GetMemberTypeArgumentsNoUseSiteDiagnostics()[0].GetMemberTypeArgumentsNoUseSiteDiagnostics()[1].SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 13844SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.add_E").FirstOrDefault(m => m.GetParameterTypes()[0].Type.SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 13845SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.remove_E").FirstOrDefault(m => m.GetParameterTypes()[0].Type.SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 14433SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.set_P").FirstOrDefault(p => p.GetParameters()[0].Type.SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 14455SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.set_P").FirstOrDefault(p => p.GetParameters()[0].Type.SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 15697SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.set_Item").FirstOrDefault(p => p.GetParameters()[1].Type.SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 15790SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.get_Item").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 15791SemanticEdit(SemanticEditKind.Delete, c => c.GetMembers("C.set_Item").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol, deletedSymbolContainerProvider: c => c.GetMember("C")), 16959SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (90)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
971Assert.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)); 5784TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5821TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5848TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5865TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5900var intType = comp.GetSpecialType(SpecialType.System_Int32); 5942TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5963TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5982TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6001TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6019TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6045TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6071TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6096TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6121TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6147TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6181TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6205ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6265NamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6287NamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6334TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6359TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6378var intType = comp.GetSpecialType(SpecialType.System_Int32); 6407TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6423TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6439TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6454TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6474TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6494TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6515TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6538TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6555TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6597var intType = comp.GetSpecialType(SpecialType.System_Int32); 18849TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18867ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18887ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18910TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18927ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18953ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18978ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19003ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19029ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19071ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19110ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19149ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19188ITypeSymbol 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\EditAndContinue\EditAndContinueTests.cs (9)
3615Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.P").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol), 3708Edit(SemanticEditKind.Delete, symbolProvider: c => c.GetMembers("C.get_P").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol, newSymbolProvider: c=>c.GetMember("C")), 3709Edit(SemanticEditKind.Delete, symbolProvider: c => c.GetMembers("C.set_P").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol, newSymbolProvider: c=>c.GetMember("C")), 4080Edit(SemanticEditKind.Delete, symbolProvider: c => c.GetMembers("C.get_Item").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol, newSymbolProvider: c=>c.GetMember("C")), 4148Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.this[]").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol), 15613Edit(SemanticEditKind.Delete, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol, newSymbolProvider: c=>c.GetMember("C")), 15669Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol), 15741Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol), 15798Edit(SemanticEditKind.Delete, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol, newSymbolProvider: c=>c.GetMember("C")),
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);
Emit\NoPiaEmbedTypes.cs (1)
1266Assert.Equal(SpecialType.System_Int32, test9.EnumUnderlyingType.SpecialType);
PDB\PDBTests.cs (1)
621var stInt = c1.GetSpecialType(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Attributes\AttributeTests.cs (1)
5219NamedTypeSymbol 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\PatternMatchingTests2.cs (1)
3288comp.MakeTypeMissing(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Rewriters\LocalDeclarationRewriter.cs (1)
150var intType = compilation.GetSpecialType(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (5)
ExpressionCompilerTests.cs (1)
4712Assert.Equal(SpecialType.System_Int32, ((MethodSymbol)methodData.Method).ReturnType.SpecialType);
LocalsTests.cs (2)
2769Assert.Equal(SpecialType.System_Int32, ((MethodSymbol)testData.GetMethodData(typeName + ".<>m0").Method).ReturnType.SpecialType); 2778Assert.Equal(SpecialType.System_Int32, ((MethodSymbol)methodData.Method).ReturnType.SpecialType);
PseudoVariableTests.cs (1)
1121Assert.Equal(SpecialType.System_Int32, ((PointerTypeSymbol)((MethodSymbol)methodData.Method).ReturnType).PointedAtType.SpecialType);
UsingDebugInfoTests.cs (1)
850Assert.Equal(SpecialType.System_Int32, ((NamedTypeSymbol)typeSymbol).SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (10)
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)
89model.Compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(),
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (2)
310methodSymbol.ReturnType?.SpecialType == SpecialType.System_Int32 && 375=> typeSymbol.SpecialType == SpecialType.System_Int32;
J\s\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs\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 &&
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
66type: compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(allowVar: false),
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 (99)
Semantics\DeconstructionTests.cs (2)
6116Assert.Equal(SpecialType.System_Int32, type.Type.SpecialType); 6117Assert.Equal(SpecialType.System_Int32, type.ConvertedType.SpecialType);
Semantics\DelegateTypeTests.cs (1)
11445verifyConversions(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)
1207Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1289Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1333Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1406Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1520Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 1531Assert.Equal(SpecialType.System_Int32, boundNode.IterationVariables.Single().Type.SpecialType); 1591Assert.Equal(SpecialType.System_Int32, boundNode.IterationVariables.Single().Type.SpecialType); 1873Assert.Equal(SpecialType.System_Int32, info.ElementTypeWithAnnotations.SpecialType); 3235Assert.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 (3)
4009Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType); 4010Assert.Equal(SpecialType.System_Int32, typeInfo.ConvertedType.SpecialType); 4081Assert.Equal(SpecialType.System_Int32, typeInfo.Type.SpecialType);
Semantics\OverloadResolutionTests.cs (1)
7264Assert.Equal(SpecialType.System_Int32, methodSymbol.TypeArguments.Single().SpecialType);
Semantics\PrimaryConstructorTests.cs (7)
376Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 447Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 560Assert.Equal(SpecialType.System_Int32, x.Type.SpecialType); 594Assert.Equal(SpecialType.System_Int32, a.Type.SpecialType); 630Assert.Equal(SpecialType.System_Int32, p1.Type.SpecialType); 642Assert.Equal(SpecialType.System_Int32, p2.Type.SpecialType); 686Assert.Equal(SpecialType.System_Int32, p1.Type.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\RecordTests.cs (1)
12482verifyReturnType(property.GetMethod, CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Int32)));
Semantics\RefLocalsAndReturnsTests.cs (11)
4360Assert.Equal(SpecialType.System_Int32, ((IArrayTypeSymbol)model.GetTypeInfo(left).Type).ElementType.SpecialType); 4363Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4388Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.SpecialType); 4391Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4416Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.SpecialType); 4419Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4444Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(left).Type.SpecialType); 4447Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4475Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4503Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType); 4537Assert.Equal(SpecialType.System_Int32, model.GetTypeInfo(right).Type.SpecialType);
Semantics\StackAllocInitializerTests.cs (11)
1038Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.SpecialType); 1046Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1047Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 1062Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1063Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 1070Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 1149Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1150Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 1165Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1166Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 1173Assert.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)
7477comp.MakeTypeMissing(SpecialType.System_Int32); 7499comp.MakeTypeMissing(SpecialType.System_Int32); 7563comp.MakeTypeMissing(SpecialType.System_Int32);
Semantics\UnsafeTests.cs (10)
4434Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 4711Assert.Equal(SpecialType.System_Int32, type.SpecialType); 5327var intType = compilation.GetSpecialType(SpecialType.System_Int32); 5394var intType = compilation.GetSpecialType(SpecialType.System_Int32); 5452var intType = compilation.GetSpecialType(SpecialType.System_Int32); 7740{ SpecialType.System_Int32, 4 }, 7804Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 7866Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 7926Assert.Equal(SpecialType.System_Int32, sizeOfSummary.Type.SpecialType); 8484Assert.Equal(SpecialType.System_Int32, countSummary.ConvertedType.SpecialType);
Semantics\UsingStatementTests.cs (1)
1854Assert.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)
2521ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2522(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2533ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2534(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2545ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2546(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2557ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32), 2558(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2599ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)), 2608ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32)), 2627ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32), 2628compilation.GetSpecialType(SpecialType.System_Int32)), 2644ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)), 2743var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2760var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2780var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2790var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2818var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2838var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2873var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2905var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2939var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2970var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 2980var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 3016var 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)
299Assert.Equal(SpecialType.System_Int32, semanticInfo.Type.SpecialType); 300Assert.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)
1720var destinationType = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").Construct(comp.GetSpecialType(SpecialType.System_Int32));
Symbols\CorLibrary\CorTypes.cs (1)
47Assert.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)
2532var intType = compilation.GetSpecialType(SpecialType.System_Int32); 2811var int32Type = compilation.GetSpecialType(SpecialType.System_Int32); 2855var int32Type = compilation2.GetSpecialType(SpecialType.System_Int32); 2878int32Type = compilation2.GetSpecialType(SpecialType.System_Int32); 4040Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType); 4046Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType); 4070Assert.Equal(SpecialType.System_Int32, parameter.Type.SpecialType); 4076Assert.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)
59CheckIndexer(type.Indexers.Single(), false, true, SpecialType.System_Object, SpecialType.System_Int32, SpecialType.None); 2868var 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)
181Assert.Equal(SpecialType.System_Int32, nonDelegateEvent.Type.SpecialType);
Symbols\Metadata\PE\LoadingFields.cs (1)
64Assert.Same(((PEModuleSymbol)module2).GetCorLibType(SpecialType.System_Int32), f2.Type);
Symbols\Retargeting\RetargetCustomModifiers.cs (1)
172Assert.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)
3157var intType = helper.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\CustomModifierCopyTests.cs (5)
680var baseIndexer1 = (PropertySymbol)baseClass.GetMembers().Where(IsPropertyWithSingleParameter(SpecialType.System_Int32, isArrayType: true)).Single(); 684var derivedIndexer1 = (PropertySymbol)derivedClass.GetMembers().Where(IsPropertyWithSingleParameter(SpecialType.System_Int32, isArrayType: true)).Single(); 688var derived2Indexer1 = (PropertySymbol)derived2Class.GetMembers().Where(IsPropertyWithSingleParameter(SpecialType.System_Int32, isArrayType: true)).Single(); 1640var int32Type = comp.GetSpecialType(SpecialType.System_Int32); 1854var 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)
1553Assert.Same(comp.GetSpecialType(SpecialType.System_Int32), underType);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3264case SpecialType.System_Int32: 3452SpecialType.System_Int32 => SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword)),
CSharpTypeInferenceService.TypeInferrer.cs (9)
581return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 842return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 972return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1070return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1936return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1954return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 1961return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2189return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32)); 2250return CreateResult(this.Compilation.GetSpecialType(SpecialType.System_Int32));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
17case SpecialType.System_Int32:
NamedTypeGenerator.cs (1)
245var baseList = namedType.EnumUnderlyingType != null && namedType.EnumUnderlyingType.SpecialType != SpecialType.System_Int32
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (7)
26SpecialType.System_Int32, 71SpecialType.System_Int32, 79SpecialType.System_Int32, 89SpecialType.System_Int32, 105SpecialType.System_Int32, 118SpecialType.System_Int32, 208SpecialType.System_Int32 => s_int32Conversions,
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
46SpecialType.System_Int32 => SyntaxKind.IntKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.cs (10)
278var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 297VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Int32), "int"); 319var arrayType = _emptyCompilation.CreateArrayTypeSymbol(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)); 406var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 782Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32)), 786Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), initializer: Generator.LiteralExpression(0)), 790Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.Public), 794Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Static | DeclarationModifiers.ReadOnly), 798Generator.FieldDeclaration("fld", Generator.TypeExpression(SpecialType.System_Int32), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Required), 855_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 }] };
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
159case SpecialType.System_Int32:
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
140returnType: compilation.GetSpecialType(SpecialType.System_Int32),
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
382case SpecialType.System_Int32:
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
512if (symbol.IsEnumType() && symbol.EnumUnderlyingType.SpecialType != 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)
954&& arguments[0].Value.Type.SpecialType == SpecialType.System_Int32 955&& 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 (121)
Binding\Binder_Conversions.vb (1)
277Case SyntaxKind.CIntKeyword : targetType = SpecialType.System_Int32
Binding\Binder_Expressions.vb (3)
3892Dim int32Type = GetSpecialType(SpecialType.System_Int32, node.ArgumentList, diagnostics) 4103Dim Int32Type = GetSpecialType(SpecialType.System_Int32, node, diagnostics) 4319Dim int32Type = GetSpecialType(SpecialType.System_Int32, arrayBoundsOpt, diagnostics)
Binding\Binder_Invocation.vb (5)
2725GetSpecialType(SpecialType.System_Int32, node, diagnostics)).MakeCompilerGenerated()}).AsImmutableOrNull(), 3184literal = New BoundLiteral(syntax, callerInfoValue, GetSpecialType(SpecialType.System_Int32, syntax, ignoreDiagnostics)) 3225defaultConstantValue = ConstantValue.Default(SpecialType.System_Int32) 3228If paramNullableUnderlyingTypeOrSelf.GetEnumUnderlyingTypeOrSelf().SpecialType = SpecialType.System_Int32 Then 3231defaultArgumentType = GetSpecialType(SpecialType.System_Int32, syntax, diagnostics)
Binding\Binder_Lookup.vb (1)
461Return SpecialType.System_Int32
Binding\Binder_Operators.vb (4)
454Dim rightTargetType As TypeSymbol = GetSpecialTypeForBinaryOperator(node, leftType, rightType, SpecialType.System_Int32, 1019defaultRightSpecialType = SpecialType.System_Int32 1058defaultLeftSpecialType = SpecialType.System_Int32 1113Dim int32Type = GetSpecialType(SpecialType.System_Int32, node.Operand, diagnostics)
Binding\Binder_SelectCase.vb (1)
703SpecialType.System_Int32,
Binding\Binder_Statements.vb (4)
2178Dim int32 As NamedTypeSymbol = GetSpecialType(SpecialType.System_Int32, midExpression, diagnostics) 3136Me.GetSpecialType(SpecialType.System_Int32, forStatement, diagnostics)) 3162Dim integerType = GetSpecialType(SpecialType.System_Int32, node, diagnostics) 5205GetSpecialType(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)
1500Debug.Assert(expression.Type.SpecialType = SpecialType.System_Int32 OrElse expression.Type.SpecialType = SpecialType.System_Int64 OrElse expression.Type.SpecialType = SpecialType.System_UIntPtr) 2181Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32) 2197Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32) 2236Debug.Assert(node.Type.SpecialType = SpecialType.System_Int32)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
460SpecialType.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) 439Case SpecialType.System_Int32 : wellKnownHelper = WellKnownMember.System_Convert__ToBooleanInt32 486Case SpecialType.System_Int32 528Case SpecialType.System_Int32 : specialHelper = SpecialMember.System_Decimal__op_Implicit_FromInt32 564SpecialType.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)
488Debug.Assert(memberSymbol.ReturnType.SpecialType = SpecialType.System_Int32) 527Debug.Assert(memberSymbol.ReturnType.SpecialType = SpecialType.System_Int32) 699Debug.Assert(memberSymbol.ReturnType.SpecialType = SpecialType.System_Int32) 765Debug.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)
74Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 114Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 203Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 270Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 328Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 345Dim intType = Me.GetSpecialType(SpecialType.System_Int32) 952Dim 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)
Lowering\SyntheticBoundNodeFactory.vb (4)
445Dim boundNode = New BoundLiteral(_syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 928Dim boundNode As New BoundMethodDefIndex(Syntax, method, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 937Dim boundNode As New BoundMaximumMethodDefIndex(Syntax, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 975Dim boundNode As New BoundSourceDocumentIndex(Syntax, document, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32))
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)
3339Case SpecialType.System_Int32, SpecialType.System_UInt32
Semantics\Operators.vb (6)
359If method.Parameters(1).Type.GetNullableUnderlyingTypeOrSelf().SpecialType <> Microsoft.CodeAnalysis.SpecialType.System_Int32 Then 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)
136Return Compilation.GetSpecialType(SpecialType.System_Int32)
Symbols\Attributes\SourceAttributeData.vb (1)
205foundMatch = specType = SpecialType.System_Int32
Symbols\MethodSymbol.vb (1)
523If returnType.SpecialType <> SpecialType.System_Int32 AndAlso returnType.SpecialType <> SpecialType.System_Void Then
Symbols\Source\SourceAssemblySymbol.vb (3)
1134Dim arg As Integer = attrData.GetConstructorArgument(Of Integer)(i, SpecialType.System_Int32) 1501Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32) 1540Dim int32Type = Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32)
Symbols\Source\SourceFieldSymbol.vb (1)
732Dim offset = attrData.CommonConstructorArguments(0).DecodeValue(Of Integer)(SpecialType.System_Int32)
Symbols\Source\SourceNamedTypeSymbol.vb (2)
1788Return bodyBinder.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32, syntax.EnumStatement.Identifier, diagnostics) 2502New TypedConstant(GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Enum, CInt(ClassInterfaceType.None)))))
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
1348ImmutableArray.Create(New TypedConstant(_interface.ComClass.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32), 1844ImmutableArray.Create(New TypedConstant(_interface.ComClass.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32),
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
68Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
Symbols\SpecialTypeExtensions.vb (10)
33SpecialType.System_Int32, 56SpecialType.System_Int32, 103SpecialType.System_Int32, 125SpecialType.System_Int32, 155Case SpecialType.System_Int32 200Case SpecialType.System_Int32 241Case SpecialType.System_Int32 287Case SpecialType.System_Int32 323Case SpecialType.System_Int32, SpecialType.System_UInt32 341Case SpecialType.System_Int32
Symbols\TypeSymbolExtensions.vb (1)
440Case SpecialType.System_Int32
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (1)
188Case SpecialType.System_Int32
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
CastAnalyzer.vb (1)
386Case SpecialType.System_UInt32, SpecialType.System_Int32,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (14)
ITypeSymbolExtensions.vb (3)
33Case specialType.System_Int32 75specialType = specialType.System_Int32 109SpecialType.System_Int32,
StringExtensions.vb (1)
102SpecialType.System_Int32,
TypeSyntaxGeneratorVisitor.vb (1)
110Case SpecialType.System_Int32
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.EditorFeatures.UnitTests (5)
EditAndContinue\TopLevelEditingTests.vb (5)
3100SemanticEdit(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))) 4196SemanticEdit(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")) 7807SemanticEdit(SemanticEditKind.Delete, Function(c) c.GetMembers("C.set_P").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Int32)), deletedSymbolContainerProvider:=Function(c) c.GetMember("C")), 10553SemanticEdit(SemanticEditKind.Delete, Function(c) c.GetMembers("C.get_P").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Int32)), deletedSymbolContainerProvider:=Function(c) c.GetMember("C")), 10572SemanticEdit(SemanticEditKind.Delete, Function(c) c.GetMembers("C.get_P").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Int32)), deletedSymbolContainerProvider:=Function(c) c.GetMember("C")),
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (37)
Attributes\AttributeTests.vb (1)
2199Dim classYOfInt As NamedTypeSymbol = classY.Construct(ImmutableArray.Create(Of TypeSymbol)(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)))
CodeGen\CodeGenTuples.vb (32)
6865Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6888Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6917Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6940Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6960Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6980Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7001Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7019Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7044Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7069Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7094Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7119Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7150Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7169Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7191Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7219Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7245Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7268Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7291Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7309Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7327Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7343Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7364Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7385Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7406Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7433Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7450Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7503Dim intType = comp.GetSpecialType(SpecialType.System_Int32) 8935Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 10122Sub(t) Assert.Equal(SpecialType.System_Int32, t.SpecialType)) 20505Sub(t) Assert.Equal(SpecialType.System_Int32, t.SpecialType)) 20520Sub(t) Assert.Equal(SpecialType.System_Int32, t.SpecialType))
Emit\CompilationEmitTests.vb (1)
4282compilation.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.ExpressionEvaluator.ExpressionCompiler.UnitTests (4)
ExpressionCompilerTests.vb (2)
3439Assert.Equal(SpecialType.System_Int32, methodData.Method.ReturnType.SpecialType) 3474Assert.Equal(SpecialType.System_Int32, methodData.Method.ReturnType.SpecialType)
LocalsTests.vb (2)
1971Assert.Equal(SpecialType.System_Int32, testData.GetMethodData(typeName & ".<>m0").Method.ReturnType.SpecialType) 1980Assert.Equal(SpecialType.System_Int32, methodData.Method.ReturnType.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
95SpecialType.System_Int32,
Completion\Providers\DefaultArgumentProvider.vb (1)
38Case SpecialType.System_Int32
GenerateMember\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
44Return Me.Document.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
32Case SpecialType.System_Int32
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (62)
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 (11)
237Dim int32Type = c1.GetSpecialType(System_Int32) 460If type2.IsEnumType() AndAlso type1.SpecialType = SpecialType.System_Int32 Then 1088Dim int32Type = c1.GetSpecialType(System_Int32) 1351Case System_Int32 : Return c.ToInt32(Nothing) 1376Case System_Int32 : Return UncheckedCInt(val) 1392Case System_Int32 : Return UncheckedCInt(val) 1409Case System_Int32 : Return CInt(value) 1472Dim arrayInt32 = c1.CreateArrayTypeSymbol(c1.GetSpecialType(System_Int32)) 2032c1.GetSpecialType(System_Int32), 2048nullable.Construct(c1.GetSpecialType(System_Int32)), 2172Private 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) 6709Dim ienumerable = compilation.GetSpecialType(System_Collections_Generic_IEnumerable_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32))) 6710Dim ienumerator = compilation.GetSpecialType(System_Collections_Generic_IEnumerator_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32)))
Semantics\GetSemanticInfoTests.vb (3)
5722Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5737Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5944Dim 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)
33Assert.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)
155Assert.Equal(SpecialType.System_Int32, nonDelegateEvent.Type.SpecialType)
SymbolsTests\Metadata\PE\LoadingFields.vb (1)
60Assert.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)
365Assert.Equal(SpecialType.System_Int32, sourceType.EnumUnderlyingType.SpecialType) 374Assert.Equal(SpecialType.System_Int32, retargetingType.EnumUnderlyingType.SpecialType)
SymbolsTests\Source\BaseClassTests.vb (3)
2290Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2325Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2355Dim 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)
680Dim 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)
CastAnalyzer.vb (1)
386Case SpecialType.System_UInt32, SpecialType.System_Int32,
CodeGeneration\ExpressionGenerator.vb (1)
75Return GenerateIntegralLiteralExpression(type, SpecialType.System_Int32, DirectCast(value, Integer), canUseFieldReference, LiteralSpecialValues.Int32SpecialValues, Function(x) x < 0, Function(x) -x, "2147483648")
CodeGeneration\NamedTypeGenerator.vb (1)
149If(namedType.EnumUnderlyingType IsNot Nothing AndAlso namedType.EnumUnderlyingType.SpecialType <> SpecialType.System_Int32,
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
426Case SpecialType.System_Int32
ITypeSymbolExtensions.vb (3)
33Case specialType.System_Int32 75specialType = specialType.System_Int32 109SpecialType.System_Int32,
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
29Case SpecialType.System_Int32
StringExtensions.vb (1)
102SpecialType.System_Int32,
TypeSyntaxGeneratorVisitor.vb (1)
110Case SpecialType.System_Int32
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 (26)
CodeGenerationHelpers.cs (1)
141SpecialType.System_Int32 => value is int,
Editing\SyntaxGenerator.cs (1)
797underlyingType: type.EnumUnderlyingType is null or { SpecialType: SpecialType.System_Int32 }
EnumUtilties.cs (1)
32case SpecialType.System_Int32:
IMethodSymbolExtensions.cs (1)
105methodSymbol.ReturnType.SpecialType == SpecialType.System_Int32 ||
IntegerUtilities.cs (1)
67SpecialType.System_Int32 => unchecked((int)v),
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (11)
25case SpecialType.System_Int32: 50case SpecialType.System_Int32: 73case SpecialType.System_Int32: 108case SpecialType.System_Int32: 148case SpecialType.System_Int32: 171case SpecialType.System_Int32: 189case SpecialType.System_Int32: 213case SpecialType.System_Int32: 243case SpecialType.System_Int32: 264case SpecialType.System_Int32: 282return SpecialType.System_Int32;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (3)
292case SpecialType.System_Int32: 385case SpecialType.System_Int32: 652case SpecialType.System_Int32:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
22SpecialType.System_Int32 => PredefinedType.Int32,
PredefinedTypeExtensions.cs (1)
22PredefinedType.Int32 => SpecialType.System_Int32,
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
415case SpecialType.System_Int32:
Shared\Utilities\EnumValueUtilities.cs (1)
64SpecialType.System_Int32 => 1,
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)
652var constructed = method.Construct(compilation.GetSpecialType(SpecialType.System_Int32), method.TypeParameters[1]); 670var constructed = type.Construct(compilation.GetSpecialType(SpecialType.System_Int32), type.TypeParameters[1]); 727var a_string_b_int = a_string_b.Construct(compilation.GetSpecialType(SpecialType.System_Int32)); 735var a_b_int = a_b.Construct(compilation.GetSpecialType(SpecialType.System_Int32)); 1242var symbolKey1 = SymbolKey.Create(compilation1.GetSpecialType(SpecialType.System_Int32)); 1243var 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.VisualStudio.LanguageServices (1)
ProjectSystem\AbstractEntryPointFinder.cs (1)
51if (!symbol.ReturnsVoid && symbol.ReturnType.SpecialType != SpecialType.System_Int32)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
730case SpecialType.System_Int32:
ObjectBrowser\DescriptionBuilder.cs (1)
102if (underlyingType.SpecialType != SpecialType.System_Int32)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\AbstractCodeModelService.cs (1)
795EnvDTE.vsCMTypeRef.vsCMTypeRefInt => 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
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_ICompoundAssignmentOperation.vb (1)
101Where(Function(sym) sym.ReturnType.SpecialType = SpecialType.System_Int32).