132 references to System_UIntPtr
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
133UIntPtr = Compilation.GetSpecialType(SpecialType.System_UIntPtr);
Microsoft.CodeAnalysis (22)
ConstantValue.cs (2)
449case SpecialType.System_UIntPtr: return ConstantValueTypeDiscriminator.NUInt; 501case ConstantValueTypeDiscriminator.NUInt: return SpecialType.System_UIntPtr;
MetadataReader\MetadataTypeCodeExtensions.cs (2)
67return SpecialType.System_UIntPtr; 119case SpecialType.System_UIntPtr:
SpecialMembers.cs (12)
1003(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 1007(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 1011(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 1015(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 1019(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 1023(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 1027(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 1030(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 1035(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 1038(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 1043(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 1046(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr,
SpecialTypeExtensions.cs (3)
31case SpecialType.System_UIntPtr: 82case SpecialType.System_UIntPtr: 155case SpecialType.System_UIntPtr:
SpecialTypes.cs (2)
121s_typeIdToTypeCodeMap[(int)SpecialType.System_UIntPtr] = Microsoft.Cci.PrimitiveTypeCode.UIntPtr; 145s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UIntPtr] = SpecialType.System_UIntPtr;
Symbols\INamedTypeSymbolInternal.cs (1)
60case SpecialType.System_UIntPtr:
Microsoft.CodeAnalysis.CodeStyle (8)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
31case SpecialType.System_UIntPtr: 82case SpecialType.System_UIntPtr: 155case SpecialType.System_UIntPtr:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
302case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 395case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 672case SpecialType.System_UIntPtr:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
32PredefinedType.UIntPtr => SpecialType.System_UIntPtr,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
32SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_Crefs.cs (1)
373builder.Add(this.GetSpecialType(memberName == "nint" ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, diagnostics, syntax).AsNativeInteger());
Binder\Binder_Operators.cs (1)
1482return type.SpecialType == SpecialType.System_UIntPtr
Binder\Binder_Patterns.cs (1)
1712SpecialType.System_UIntPtr when type.IsNativeIntegerType => BinaryOperatorKind.NUInt,
Binder\Binder_Symbols.cs (1)
995node.IsNuint ? SpecialType.System_UIntPtr : SpecialType.None;
Binder\DecisionDagBuilder.cs (10)
1572case (SpecialType.System_IntPtr, SpecialType.System_UIntPtr): 1573case (SpecialType.System_UIntPtr, SpecialType.System_IntPtr): 1579case (SpecialType.System_Int32, SpecialType.System_UIntPtr): 1581case (SpecialType.System_UInt32, SpecialType.System_UIntPtr): 1584case (SpecialType.System_UIntPtr, SpecialType.System_Int32): 1585case (SpecialType.System_UIntPtr, SpecialType.System_UInt32): 1591case (SpecialType.System_Int64, SpecialType.System_UIntPtr): 1593case (SpecialType.System_UInt64, SpecialType.System_UIntPtr): 1596case (SpecialType.System_UIntPtr, SpecialType.System_Int64): 1597case (SpecialType.System_UIntPtr, SpecialType.System_UInt64):
Binder\PatternExplainer.cs (2)
682else if (underlyingType.SpecialType == SpecialType.System_UIntPtr) 731case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1380case SpecialType.System_UIntPtr when destination.IsNativeIntegerType: 2116case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2206(type.SpecialType == SpecialType.System_IntPtr || type.SpecialType == SpecialType.System_UIntPtr) && !type.IsNativeIntegerType; 3936case SpecialType.System_UIntPtr:
Binder\Semantics\Operators\OperatorFacts.cs (1)
46case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3766case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
CodeGen\EmitConversion.cs (1)
387if (p1t == SpecialType.System_IntPtr || p1t == SpecialType.System_UIntPtr)
CodeGen\EmitExpression.cs (3)
1358case SpecialType.System_UIntPtr: 2349expression.Type.SpecialType == SpecialType.System_UIntPtr); 3446if (type.IsPointerOrFunctionPointer() || type.SpecialType == SpecialType.System_UIntPtr)
Compilation\CSharpCompilation.cs (1)
4113return GetSpecialType(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr).AsNativeInteger();
Compiler\ClsComplianceChecker.cs (1)
1020case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
796case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
592return arrLength.Update(arrLength.Expression, _factory.SpecialType(SpecialType.System_UIntPtr)); 2206Debug.Assert(leftType.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr); 2354destinationType = SpecialType.System_UIntPtr; 2362destinationType = SpecialType.System_UIntPtr; 2421TypeSymbol nativeUIntType = _factory.SpecialType(SpecialType.System_UIntPtr);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1571else if (t0Type == SpecialType.System_UIntPtr) 1621else if (s0Type == SpecialType.System_UIntPtr) 1704case SpecialType.System_UIntPtr: 1714case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
110TypeSymbol uintPtrType = _factory.SpecialType(SpecialType.System_UIntPtr);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
944specialType = SpecialType.System_UIntPtr;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
651case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
Symbols\Compilation_WellKnownMembers.cs (1)
1052case SpecialType.System_UIntPtr:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
115case SpecialType.System_UIntPtr:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
1929case SpecialType.System_UIntPtr: 2585Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.System_UIntPtr);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
147SpecialType.System_UIntPtr => 1,
Symbols\MissingMetadataTypeSymbol.cs (1)
347Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.System_UIntPtr);
Symbols\NativeIntegerTypeSymbol.cs (2)
33Debug.Assert(underlyingType.SpecialType == SpecialType.System_IntPtr || underlyingType.SpecialType == SpecialType.System_UIntPtr); 308Debug.Assert(_specialType == SpecialType.System_IntPtr || _specialType == SpecialType.System_UIntPtr);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1757Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.System_UIntPtr);
Symbols\SpecialTypeExtensions.cs (1)
49case SpecialType.System_UIntPtr:
Symbols\TypeSymbol.cs (1)
559|| (SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr && this.ContainingAssembly.RuntimeSupportsNumericIntPtr);
Symbols\TypeSymbolExtensions.cs (4)
655case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 1462case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2226case SpecialType.System_UIntPtr when type.IsNativeIntegerType: return 13; 2249case SpecialType.System_UIntPtr when underlyingType.IsNativeIntegerType: return 28;
Utilities\ValueSetFactory.cs (1)
51SpecialType.System_UIntPtr when isNative => ForNuint,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
96else if (type.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
468Assert.Same(module.GetCorLibType(SpecialType.System_UIntPtr), method4ParamTypes[12]);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (3)
1600return type.SpecialType == (signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr); 10369Assert.Same(nuintType, comp.GetSpecialType(SpecialType.System_UIntPtr)); 10388Assert.Equal(SpecialType.System_UIntPtr, type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
96else if (type.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\NativeIntegerTests.cs (12)
222Assert.Equal(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, type.SpecialType); 237Assert.Equal(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, type.SpecialType); 545var specialType = signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr; 742var specialType = signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr; 756var specialType = signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr; 1540verifyInterfaces(comp, (NamedTypeSymbol)comp.GetMember<MethodSymbol>("I.F2").ReturnType, SpecialType.System_UIntPtr, includesIEquatable); 1661VerifyErrorType(comp.CreateNativeIntegerTypeSymbol(signed: false), SpecialType.System_UIntPtr, isNativeInt: true); 1663VerifyErrorType(((Compilation)comp).CreateNativeIntegerTypeSymbol(signed: false), SpecialType.System_UIntPtr, isNativeInt: true); 3645Assert.Equal(SpecialType.System_UIntPtr, underlyingType1.SpecialType); 3721Assert.Equal(SpecialType.System_UIntPtr, underlyingType1.SpecialType); 3755Assert.Equal(SpecialType.System_UIntPtr, underlyingType1.SpecialType); 4842type.SpecialType == (signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr);
Utilities\ValueSetTests.cs (1)
507Assert.Same(ForNuint, ForSpecialType(SpecialType.System_UIntPtr, isNative: true));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\ClsComplianceTests.cs (1)
3187case SpecialType.System_UIntPtr:
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
55=> container.IsSpecialType() || container.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr;
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
63if (specialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr &&
Microsoft.CodeAnalysis.Features (1)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
60var replacementNode = typeSymbol.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
61Assert.Equal(SpecialType.System_UIntPtr, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UIntPtr));
Microsoft.CodeAnalysis.VisualBasic (6)
CodeGen\EmitExpression.vb (1)
1623Debug.Assert(expression.Type.SpecialType = SpecialType.System_Int32 OrElse expression.Type.SpecialType = SpecialType.System_Int64 OrElse expression.Type.SpecialType = SpecialType.System_UIntPtr)
Compilation\ClsComplianceChecker.vb (1)
630Case SpecialType.System_TypedReference, SpecialType.System_UIntPtr
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
494SpecialType.System_UIntPtr,
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1156SpecialType.System_UIntPtr,
Symbols\SpecialTypeExtensions.vb (2)
62SpecialType.System_UIntPtr, 216Case SpecialType.System_IntPtr, SpecialType.System_UIntPtr
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
531Assert.Same([Module].GetCorLibType(SpecialType.System_UIntPtr), method4ParamTypes(12))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.vb (1)
51Assert.Equal(If(signed, SpecialType.System_IntPtr, SpecialType.System_UIntPtr), type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\ClsComplianceTests.vb (1)
2578Case SpecialType.System_SByte, SpecialType.System_UInt16, SpecialType.System_UInt32, SpecialType.System_UInt64, SpecialType.System_UIntPtr, SpecialType.System_TypedReference
Microsoft.CodeAnalysis.Workspaces (8)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
31case SpecialType.System_UIntPtr: 82case SpecialType.System_UIntPtr: 155case SpecialType.System_UIntPtr:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
302case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 395case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 672case SpecialType.System_UIntPtr:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
32PredefinedType.UIntPtr => SpecialType.System_UIntPtr,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
32SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
Microsoft.Interop.SourceGeneration (3)
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (1)
50or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UIntPtr }, MarshallingAttributeInfo: NoMarshallingInfo or MarshalAsInfo(UnmanagedType.SysUInt, _) }
TypeSymbolExtensions.cs (2)
186or SpecialType.System_UIntPtr; 201or SpecialType.System_UIntPtr