142 references to System_UIntPtr
Microsoft.CodeAnalysis (21)
ConstantValue.cs (2)
445case SpecialType.System_UIntPtr: return ConstantValueTypeDiscriminator.NUInt; 497case ConstantValueTypeDiscriminator.NUInt: return SpecialType.System_UIntPtr;
MetadataReader\MetadataTypeCodeExtensions.cs (2)
67return SpecialType.System_UIntPtr; 119case SpecialType.System_UIntPtr:
SpecialMembers.cs (12)
914(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 918(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 922(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 926(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 930(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 934(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 938(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 941(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 946(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 949(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr, 954(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 957(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr,
SpecialTypeExtensions.cs (3)
30case SpecialType.System_UIntPtr: 81case SpecialType.System_UIntPtr: 154case SpecialType.System_UIntPtr:
SpecialTypes.cs (2)
115s_typeIdToTypeCodeMap[(int)SpecialType.System_UIntPtr] = Microsoft.Cci.PrimitiveTypeCode.UIntPtr; 139s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UIntPtr] = SpecialType.System_UIntPtr;
Microsoft.CodeAnalysis.CodeStyle (8)
ITypeSymbolExtensions.cs (3)
300case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 393case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 662case SpecialType.System_UIntPtr:
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (3)
30case SpecialType.System_UIntPtr: 81case SpecialType.System_UIntPtr: 154case SpecialType.System_UIntPtr:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
32SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
PredefinedTypeExtensions.cs (1)
32PredefinedType.UIntPtr => SpecialType.System_UIntPtr,
Microsoft.CodeAnalysis.CSharp (72)
Binder\Binder_Conversions.cs (15)
1693else if (destinationType == SpecialType.System_IntPtr || destinationType == SpecialType.System_UIntPtr) 1750case SpecialType.System_UIntPtr: return (uint)byteValue; 1770case SpecialType.System_UIntPtr: return (uint)charValue; 1790case SpecialType.System_UIntPtr: return (uint)uint16Value; 1810case SpecialType.System_UIntPtr: return (uint)uint32Value; 1830case SpecialType.System_UIntPtr: return (uint)uint64Value; 1869case SpecialType.System_UIntPtr: return (uint)sbyteValue; 1889case SpecialType.System_UIntPtr: return (uint)int16Value; 1909case SpecialType.System_UIntPtr: return (uint)int32Value; 1929case SpecialType.System_UIntPtr: return (uint)int64Value; 1949case SpecialType.System_UIntPtr: return (uint)nintValue; 1973case SpecialType.System_UIntPtr: return (uint)doubleValue; 1993case SpecialType.System_UIntPtr: return (uint)decimalValue; 2048case SpecialType.System_UIntPtr: 2076case SpecialType.System_UIntPtr:
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)
1451return type.SpecialType == SpecialType.System_UIntPtr
Binder\Binder_Patterns.cs (1)
1702SpecialType.System_UIntPtr when type.IsNativeIntegerType => BinaryOperatorKind.NUInt,
Binder\Binder_Symbols.cs (1)
993node.IsNuint ? SpecialType.System_UIntPtr : SpecialType.None;
Binder\DecisionDagBuilder.cs (10)
1523case (SpecialType.System_IntPtr, SpecialType.System_UIntPtr): 1524case (SpecialType.System_UIntPtr, SpecialType.System_IntPtr): 1530case (SpecialType.System_Int32, SpecialType.System_UIntPtr): 1532case (SpecialType.System_UInt32, SpecialType.System_UIntPtr): 1535case (SpecialType.System_UIntPtr, SpecialType.System_Int32): 1536case (SpecialType.System_UIntPtr, SpecialType.System_UInt32): 1542case (SpecialType.System_Int64, SpecialType.System_UIntPtr): 1544case (SpecialType.System_UInt64, SpecialType.System_UIntPtr): 1547case (SpecialType.System_UIntPtr, SpecialType.System_Int64): 1548case (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)
1305case SpecialType.System_UIntPtr when destination.IsNativeIntegerType: 1967case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2057(type.SpecialType == SpecialType.System_IntPtr || type.SpecialType == SpecialType.System_UIntPtr) && !type.IsNativeIntegerType; 3697case SpecialType.System_UIntPtr:
Binder\Semantics\Operators\OperatorFacts.cs (1)
46case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3065case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
CodeGen\EmitConversion.cs (1)
386if (p1t == SpecialType.System_IntPtr || p1t == SpecialType.System_UIntPtr)
CodeGen\EmitExpression.cs (3)
1318case SpecialType.System_UIntPtr: 2126expression.Type.SpecialType == SpecialType.System_UIntPtr); 3224if (type.IsPointerOrFunctionPointer() || type.SpecialType == SpecialType.System_UIntPtr)
Compilation\CSharpCompilation.cs (1)
3819return GetSpecialType(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr).AsNativeInteger();
Compiler\ClsComplianceChecker.cs (1)
1013case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
796case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
590return arrLength.Update(arrLength.Expression, _factory.SpecialType(SpecialType.System_UIntPtr)); 2126Debug.Assert(leftType.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr); 2274destinationType = SpecialType.System_UIntPtr; 2282destinationType = SpecialType.System_UIntPtr; 2341TypeSymbol nativeUIntType = _factory.SpecialType(SpecialType.System_UIntPtr);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1418else if (t0Type == SpecialType.System_UIntPtr) 1468else if (s0Type == SpecialType.System_UIntPtr) 1551case SpecialType.System_UIntPtr: 1561case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
110TypeSymbol uintPtrType = _factory.SpecialType(SpecialType.System_UIntPtr);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
927specialType = SpecialType.System_UIntPtr;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
645case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
Symbols\BaseTypeAnalysis.cs (1)
270case SpecialType.System_UIntPtr:
Symbols\Compilation_WellKnownMembers.cs (1)
1024case SpecialType.System_UIntPtr:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
116case SpecialType.System_UIntPtr:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2493Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.System_UIntPtr);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
145SpecialType.System_UIntPtr => 1,
Symbols\MissingMetadataTypeSymbol.cs (1)
346Debug.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); 288Debug.Assert(_specialType == SpecialType.System_IntPtr || _specialType == SpecialType.System_UIntPtr);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1644Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.System_UIntPtr);
Symbols\SpecialTypeExtensions.cs (1)
49case SpecialType.System_UIntPtr:
Symbols\TypeSymbol.cs (1)
557|| (SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr && this.ContainingAssembly.RuntimeSupportsNumericIntPtr);
Symbols\TypeSymbolExtensions.cs (4)
591case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 1350case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2125case SpecialType.System_UIntPtr when type.IsNativeIntegerType: return 13; 2148case SpecialType.System_UIntPtr when underlyingType.IsNativeIntegerType: return 28;
Utilities\ValueSetFactory.cs (1)
51SpecialType.System_UIntPtr when isNative => ForNuint,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
101else 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)
1566return type.SpecialType == (signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr); 10335Assert.Same(nuintType, comp.GetSpecialType(SpecialType.System_UIntPtr)); 10354Assert.Equal(SpecialType.System_UIntPtr, type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (1)
CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
101else 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); 4816type.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)
65if (specialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr &&
Microsoft.CodeAnalysis.Features (1)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
61var 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)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
345SpecialType.System_UIntPtr
CodeGen\EmitExpression.vb (1)
1500Debug.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)
468SpecialType.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)
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (3)
30case SpecialType.System_UIntPtr: 81case SpecialType.System_UIntPtr: 154case SpecialType.System_UIntPtr:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (3)
300case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 393case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 662case SpecialType.System_UIntPtr:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
32SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
PredefinedTypeExtensions.cs (1)
32PredefinedType.UIntPtr => SpecialType.System_UIntPtr,