163 references to System_UIntPtr
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
133
UIntPtr = Compilation.GetSpecialType(SpecialType.
System_UIntPtr
);
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr
Microsoft.CodeAnalysis (22)
ConstantValue.cs (2)
449
case SpecialType.
System_UIntPtr
: return ConstantValueTypeDiscriminator.NUInt;
501
case ConstantValueTypeDiscriminator.NUInt: return SpecialType.
System_UIntPtr
;
MetadataReader\MetadataTypeCodeExtensions.cs (2)
67
return SpecialType.
System_UIntPtr
;
119
case 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)
32
case SpecialType.
System_UIntPtr
:
83
case SpecialType.
System_UIntPtr
:
156
case SpecialType.
System_UIntPtr
:
SpecialTypes.cs (2)
121
s_typeIdToTypeCodeMap[(int)SpecialType.
System_UIntPtr
] = Microsoft.Cci.PrimitiveTypeCode.UIntPtr;
145
s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.UIntPtr] = SpecialType.
System_UIntPtr
;
Symbols\INamedTypeSymbolInternal.cs (1)
60
case SpecialType.
System_UIntPtr
:
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr
Microsoft.CodeAnalysis.CodeStyle (8)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32
case SpecialType.
System_UIntPtr
:
83
case SpecialType.
System_UIntPtr
:
156
case SpecialType.
System_UIntPtr
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
306
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
399
case SpecialType.
System_UIntPtr
when symbol.IsNativeIntegerType:
675
case SpecialType.
System_UIntPtr
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34
PredefinedType.UIntPtr => SpecialType.
System_UIntPtr
,
59
SpecialType.
System_UIntPtr
=> PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.CSharp (72)
Binder\Binder_Conversions.cs (15)
3264
else if (destinationType == SpecialType.System_IntPtr || destinationType == SpecialType.
System_UIntPtr
)
3321
case SpecialType.
System_UIntPtr
: return (uint)byteValue;
3341
case SpecialType.
System_UIntPtr
: return (uint)charValue;
3361
case SpecialType.
System_UIntPtr
: return (uint)uint16Value;
3381
case SpecialType.
System_UIntPtr
: return (uint)uint32Value;
3401
case SpecialType.
System_UIntPtr
: return (uint)uint64Value;
3440
case SpecialType.
System_UIntPtr
: return (uint)sbyteValue;
3460
case SpecialType.
System_UIntPtr
: return (uint)int16Value;
3480
case SpecialType.
System_UIntPtr
: return (uint)int32Value;
3500
case SpecialType.
System_UIntPtr
: return (uint)int64Value;
3520
case SpecialType.
System_UIntPtr
: return (uint)nintValue;
3544
case SpecialType.
System_UIntPtr
: return (uint)doubleValue;
3564
case SpecialType.
System_UIntPtr
: return (uint)decimalValue;
3619
case SpecialType.
System_UIntPtr
:
3647
case SpecialType.
System_UIntPtr
:
Binder\Binder_Crefs.cs (1)
392
builder.Add(this.GetSpecialType(memberName == "nint" ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
, diagnostics, syntax).AsNativeInteger());
Binder\Binder_Operators.cs (1)
1678
return type.SpecialType == SpecialType.
System_UIntPtr
Binder\Binder_Patterns.cs (1)
1712
SpecialType.
System_UIntPtr
when type.IsNativeIntegerType => BinaryOperatorKind.NUInt,
Binder\Binder_Symbols.cs (1)
1003
node.IsNuint ? SpecialType.
System_UIntPtr
: SpecialType.None;
Binder\DecisionDagBuilder.cs (10)
1572
case (SpecialType.System_IntPtr, SpecialType.
System_UIntPtr
):
1573
case (SpecialType.
System_UIntPtr
, SpecialType.System_IntPtr):
1579
case (SpecialType.System_Int32, SpecialType.
System_UIntPtr
):
1581
case (SpecialType.System_UInt32, SpecialType.
System_UIntPtr
):
1584
case (SpecialType.
System_UIntPtr
, SpecialType.System_Int32):
1585
case (SpecialType.
System_UIntPtr
, SpecialType.System_UInt32):
1591
case (SpecialType.System_Int64, SpecialType.
System_UIntPtr
):
1593
case (SpecialType.System_UInt64, SpecialType.
System_UIntPtr
):
1596
case (SpecialType.
System_UIntPtr
, SpecialType.System_Int64):
1597
case (SpecialType.
System_UIntPtr
, SpecialType.System_UInt64):
Binder\PatternExplainer.cs (2)
682
else if (underlyingType.SpecialType == SpecialType.
System_UIntPtr
)
731
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1380
case SpecialType.
System_UIntPtr
when destination.IsNativeIntegerType:
2114
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
2204
(type.SpecialType == SpecialType.System_IntPtr || type.SpecialType == SpecialType.
System_UIntPtr
) && !type.IsNativeIntegerType;
3934
case SpecialType.
System_UIntPtr
:
Binder\Semantics\Operators\OperatorFacts.cs (1)
46
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3825
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
CodeGen\EmitConversion.cs (1)
387
if (p1t == SpecialType.System_IntPtr || p1t == SpecialType.
System_UIntPtr
)
CodeGen\EmitExpression.cs (3)
1358
case SpecialType.
System_UIntPtr
:
2349
expression.Type.SpecialType == SpecialType.
System_UIntPtr
);
3446
if (type.IsPointerOrFunctionPointer() || type.SpecialType == SpecialType.
System_UIntPtr
)
Compilation\CSharpCompilation.cs (1)
4157
return GetSpecialType(signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
).AsNativeInteger();
Compiler\ClsComplianceChecker.cs (1)
1020
case SpecialType.
System_UIntPtr
:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
796
case SpecialType.
System_UIntPtr
:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
599
return arrLength.Update(arrLength.Expression, _factory.SpecialType(SpecialType.
System_UIntPtr
));
2224
Debug.Assert(leftType.SpecialType is SpecialType.System_IntPtr or SpecialType.
System_UIntPtr
);
2372
destinationType = SpecialType.
System_UIntPtr
;
2380
destinationType = SpecialType.
System_UIntPtr
;
2439
TypeSymbol nativeUIntType = _factory.SpecialType(SpecialType.
System_UIntPtr
);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1569
else if (t0Type == SpecialType.
System_UIntPtr
)
1619
else if (s0Type == SpecialType.
System_UIntPtr
)
1702
case SpecialType.
System_UIntPtr
:
1712
case SpecialType.
System_UIntPtr
:
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
110
TypeSymbol uintPtrType = _factory.SpecialType(SpecialType.
System_UIntPtr
);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
1077
specialType = SpecialType.
System_UIntPtr
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
696
case SpecialType.
System_UIntPtr
when symbol.IsNativeIntegerType:
Symbols\Compilation_WellKnownMembers.cs (1)
1052
case SpecialType.
System_UIntPtr
:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
115
case SpecialType.
System_UIntPtr
:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
2180
case SpecialType.
System_UIntPtr
:
2843
Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.
System_UIntPtr
);
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
147
SpecialType.
System_UIntPtr
=> 1,
Symbols\MissingMetadataTypeSymbol.cs (1)
347
Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.
System_UIntPtr
);
Symbols\NativeIntegerTypeSymbol.cs (2)
34
Debug.Assert(underlyingType.SpecialType == SpecialType.System_IntPtr || underlyingType.SpecialType == SpecialType.
System_UIntPtr
);
313
Debug.Assert(_specialType == SpecialType.System_IntPtr || _specialType == SpecialType.
System_UIntPtr
);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1791
Debug.Assert(this.SpecialType == SpecialType.System_IntPtr || this.SpecialType == SpecialType.
System_UIntPtr
);
Symbols\SpecialTypeExtensions.cs (1)
49
case SpecialType.
System_UIntPtr
:
Symbols\TypeSymbol.cs (1)
569
|| (SpecialType is SpecialType.System_IntPtr or SpecialType.
System_UIntPtr
&& this.ContainingAssembly.RuntimeSupportsNumericIntPtr);
Symbols\TypeSymbolExtensions.cs (4)
655
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
1463
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
2237
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType: return 13;
2260
case SpecialType.
System_UIntPtr
when underlyingType.IsNativeIntegerType: return 28;
Utilities\ValueSetFactory.cs (1)
51
SpecialType.
System_UIntPtr
when isNative => ForNuint,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
96
else if (type.SpecialType is SpecialType.System_IntPtr or SpecialType.
System_UIntPtr
)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
469
Assert.Same(module.GetCorLibType(SpecialType.
System_UIntPtr
), method4ParamTypes[12]);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (3)
1606
return type.SpecialType == (signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
);
10375
Assert.Same(nuintType, comp.GetSpecialType(SpecialType.
System_UIntPtr
));
10394
Assert.Equal(SpecialType.
System_UIntPtr
, type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
96
else if (type.SpecialType is SpecialType.System_IntPtr or SpecialType.
System_UIntPtr
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\NativeIntegerTests.cs (12)
227
Assert.Equal(signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
, type.SpecialType);
242
Assert.Equal(signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
, type.SpecialType);
550
var specialType = signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
;
747
var specialType = signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
;
761
var specialType = signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
;
1545
verifyInterfaces(comp, (NamedTypeSymbol)comp.GetMember<MethodSymbol>("I.F2").ReturnType, SpecialType.
System_UIntPtr
, includesIEquatable);
1666
VerifyErrorType(comp.CreateNativeIntegerTypeSymbol(signed: false), SpecialType.
System_UIntPtr
, isNativeInt: true);
1668
VerifyErrorType(((Compilation)comp).CreateNativeIntegerTypeSymbol(signed: false), SpecialType.
System_UIntPtr
, isNativeInt: true);
3650
Assert.Equal(SpecialType.
System_UIntPtr
, underlyingType1.SpecialType);
3726
Assert.Equal(SpecialType.
System_UIntPtr
, underlyingType1.SpecialType);
3760
Assert.Equal(SpecialType.
System_UIntPtr
, underlyingType1.SpecialType);
4847
type.SpecialType == (signed ? SpecialType.System_IntPtr : SpecialType.
System_UIntPtr
);
Utilities\ValueSetTests.cs (1)
507
Assert.Same(ForNuint, ForSpecialType(SpecialType.
System_UIntPtr
, isNative: true));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\ClsComplianceTests.cs (1)
3187
case 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)
63
if (specialType is SpecialType.System_IntPtr or SpecialType.
System_UIntPtr
&& semanticModel.UnifiesNativeIntegers())
Microsoft.CodeAnalysis.Extensions.Package (8)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (3)
32
case SpecialType.
System_UIntPtr
:
83
case SpecialType.
System_UIntPtr
:
156
case SpecialType.
System_UIntPtr
:
Symbols\ITypeSymbolExtensions.cs (3)
306
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
399
case SpecialType.
System_UIntPtr
when symbol.IsNativeIntegerType:
675
case SpecialType.
System_UIntPtr
:
Symbols\PredefinedTypeExtensions.cs (2)
34
PredefinedType.UIntPtr => SpecialType.
System_UIntPtr
,
59
SpecialType.
System_UIntPtr
=> PredefinedType.UIntPtr,
Microsoft.CodeAnalysis.Features (1)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
60
var replacementNode = typeSymbol.SpecialType is SpecialType.System_IntPtr or SpecialType.
System_UIntPtr
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
61
Assert.Equal(SpecialType.
System_UIntPtr
, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.UIntPtr));
Microsoft.CodeAnalysis.VisualBasic (6)
CodeGen\EmitExpression.vb (1)
1644
Debug.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)
630
Case SpecialType.System_TypedReference, SpecialType.
System_UIntPtr
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
494
SpecialType.
System_UIntPtr
,
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1171
SpecialType.
System_UIntPtr
,
Symbols\SpecialTypeExtensions.vb (2)
62
SpecialType.
System_UIntPtr
,
216
Case SpecialType.System_IntPtr, SpecialType.
System_UIntPtr
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
533
Assert.Same([Module].GetCorLibType(SpecialType.
System_UIntPtr
), method4ParamTypes(12))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.vb (1)
51
Assert.Equal(If(signed, SpecialType.System_IntPtr, SpecialType.
System_UIntPtr
), type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\ClsComplianceTests.vb (1)
2578
Case 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)
32
case SpecialType.
System_UIntPtr
:
83
case SpecialType.
System_UIntPtr
:
156
case SpecialType.
System_UIntPtr
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (3)
306
case SpecialType.
System_UIntPtr
when type.IsNativeIntegerType:
399
case SpecialType.
System_UIntPtr
when symbol.IsNativeIntegerType:
675
case SpecialType.
System_UIntPtr
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\PredefinedTypeExtensions.cs (2)
34
PredefinedType.UIntPtr => SpecialType.
System_UIntPtr
,
59
SpecialType.
System_UIntPtr
=> PredefinedType.UIntPtr,
Microsoft.Interop.SourceGeneration (3)
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (1)
50
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.
System_UIntPtr
}, MarshallingAttributeInfo: NoMarshallingInfo or MarshalAsInfo(UnmanagedType.SysUInt, _) }
TypeSymbolExtensions.cs (2)
186
or SpecialType.
System_UIntPtr
;
201
or SpecialType.
System_UIntPtr
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
387
or SpecialType.
System_UIntPtr