177 references to System_UIntPtr
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
133UIntPtr = Compilation.GetSpecialType(SpecialType.System_UIntPtr);
GenerateDocumentationAndConfigFiles (8)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.System_UIntPtr => PredefinedType.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)
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 1031(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, 1051(byte)SpecialType.System_UIntPtr, // DeclaringTypeId 1054(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_UIntPtr,
SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
SpecialTypes.cs (2)
129s_typeIdToTypeCodeMap[(int)SpecialType.System_UIntPtr] = Microsoft.Cci.PrimitiveTypeCode.UIntPtr; 153s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UIntPtr] = SpecialType.System_UIntPtr;
Symbols\INamedTypeSymbolInternal.cs (1)
60case SpecialType.System_UIntPtr:
Microsoft.CodeAnalysis.Analyzers (9)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
384or SpecialType.System_UIntPtr
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
384or SpecialType.System_UIntPtr
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.CSharp (72)
Binder\Binder_Conversions.cs (15)
3969else if (destinationType == SpecialType.System_IntPtr || destinationType == SpecialType.System_UIntPtr) 4026case SpecialType.System_UIntPtr: return (uint)byteValue; 4046case SpecialType.System_UIntPtr: return (uint)charValue; 4066case SpecialType.System_UIntPtr: return (uint)uint16Value; 4086case SpecialType.System_UIntPtr: return (uint)uint32Value; 4106case SpecialType.System_UIntPtr: return (uint)uint64Value; 4145case SpecialType.System_UIntPtr: return (uint)sbyteValue; 4165case SpecialType.System_UIntPtr: return (uint)int16Value; 4185case SpecialType.System_UIntPtr: return (uint)int32Value; 4205case SpecialType.System_UIntPtr: return (uint)int64Value; 4225case SpecialType.System_UIntPtr: return (uint)nintValue; 4249case SpecialType.System_UIntPtr: return (uint)doubleValue; 4269case SpecialType.System_UIntPtr: return (uint)decimalValue; 4324case SpecialType.System_UIntPtr: 4352case SpecialType.System_UIntPtr:
Binder\Binder_Crefs.cs (1)
572builder.Add(this.GetSpecialType(memberName == "nint" ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, diagnostics, syntax).AsNativeInteger());
Binder\Binder_Operators.cs (1)
2391return type.SpecialType == SpecialType.System_UIntPtr
Binder\Binder_Patterns.cs (1)
2397SpecialType.System_UIntPtr when type.IsNativeIntegerType => BinaryOperatorKind.NUInt,
Binder\Binder_Symbols.cs (1)
1007node.IsNuint ? SpecialType.System_UIntPtr : SpecialType.None;
Binder\DecisionDagBuilder.cs (10)
2708case (SpecialType.System_IntPtr, SpecialType.System_UIntPtr): 2709case (SpecialType.System_UIntPtr, SpecialType.System_IntPtr): 2715case (SpecialType.System_Int32, SpecialType.System_UIntPtr): 2717case (SpecialType.System_UInt32, SpecialType.System_UIntPtr): 2720case (SpecialType.System_UIntPtr, SpecialType.System_Int32): 2721case (SpecialType.System_UIntPtr, SpecialType.System_UInt32): 2727case (SpecialType.System_Int64, SpecialType.System_UIntPtr): 2729case (SpecialType.System_UInt64, SpecialType.System_UIntPtr): 2732case (SpecialType.System_UIntPtr, SpecialType.System_Int64): 2733case (SpecialType.System_UIntPtr, SpecialType.System_UInt64):
Binder\PatternExplainer.cs (2)
821else if (underlyingType.SpecialType == SpecialType.System_UIntPtr) 870case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1395case SpecialType.System_UIntPtr when destination.IsNativeIntegerType: 2130case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2220(type.SpecialType == SpecialType.System_IntPtr || type.SpecialType == SpecialType.System_UIntPtr) && !type.IsNativeIntegerType; 3956case SpecialType.System_UIntPtr:
Binder\Semantics\Operators\OperatorFacts.cs (1)
46case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3844case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
CodeGen\EmitConversion.cs (1)
418if (p1t == SpecialType.System_IntPtr || p1t == SpecialType.System_UIntPtr)
CodeGen\EmitExpression.cs (3)
1369case SpecialType.System_UIntPtr: 2381expression.Type.SpecialType == SpecialType.System_UIntPtr); 3490if (type.IsPointerOrFunctionPointer() || type.SpecialType == SpecialType.System_UIntPtr)
Compilation\CSharpCompilation.cs (1)
4345return GetSpecialType(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr).AsNativeInteger();
Compiler\ClsComplianceChecker.cs (1)
1020case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
800case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
600return arrLength.Update(arrLength.Expression, _factory.SpecialType(SpecialType.System_UIntPtr)); 2225Debug.Assert(leftType.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr); 2373destinationType = SpecialType.System_UIntPtr; 2381destinationType = SpecialType.System_UIntPtr; 2440TypeSymbol nativeUIntType = _factory.SpecialType(SpecialType.System_UIntPtr);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1685else if (t0Type == SpecialType.System_UIntPtr) 1735else if (s0Type == SpecialType.System_UIntPtr) 1818case SpecialType.System_UIntPtr: 1828case SpecialType.System_UIntPtr:
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
110TypeSymbol uintPtrType = _factory.SpecialType(SpecialType.System_UIntPtr);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
1103specialType = SpecialType.System_UIntPtr;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
696case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
Symbols\Compilation_WellKnownMembers.cs (1)
1094case SpecialType.System_UIntPtr:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
115case SpecialType.System_UIntPtr:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
2516case SpecialType.System_UIntPtr: 3217Debug.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)
35Debug.Assert(underlyingType.SpecialType == SpecialType.System_IntPtr || underlyingType.SpecialType == SpecialType.System_UIntPtr); 324Debug.Assert(_specialType == SpecialType.System_IntPtr || _specialType == SpecialType.System_UIntPtr);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1874Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.System_UIntPtr);
Symbols\SpecialTypeExtensions.cs (1)
49case SpecialType.System_UIntPtr:
Symbols\TypeSymbol.cs (1)
561|| (SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr && this.ContainingAssembly.RuntimeSupportsNumericIntPtr);
Symbols\TypeSymbolExtensions.cs (4)
696case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 1547case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2321case SpecialType.System_UIntPtr when type.IsNativeIntegerType: return 13; 2344case SpecialType.System_UIntPtr when underlyingType.IsNativeIntegerType: return 28;
Utilities\ValueSetFactory.cs (1)
52SpecialType.System_UIntPtr when isNative => ForNuint,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
96else if (type.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
96else if (type.SpecialType is SpecialType.System_IntPtr or 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 && semanticModel.UnifiesNativeIntegers())
Microsoft.CodeAnalysis.Extensions.Package (8)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.Features (1)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
51var replacementNode = typeSymbol.SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
384or SpecialType.System_UIntPtr
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.System_UIntPtr => PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.VisualBasic (6)
CodeGen\EmitExpression.vb (1)
1644Debug.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)
1171SpecialType.System_UIntPtr,
Symbols\SpecialTypeExtensions.vb (2)
62SpecialType.System_UIntPtr, 216Case SpecialType.System_IntPtr, SpecialType.System_UIntPtr
Microsoft.CodeAnalysis.Workspaces (8)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.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
Roslyn.Diagnostics.Analyzers (9)
src\roslyn\src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32case SpecialType.System_UIntPtr: 83case SpecialType.System_UIntPtr: 156case SpecialType.System_UIntPtr:
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
384or SpecialType.System_UIntPtr
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
299case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 398case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType: 674case SpecialType.System_UIntPtr:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34PredefinedType.UIntPtr => SpecialType.System_UIntPtr, 59SpecialType.System_UIntPtr => PredefinedType.UIntPtr,