36 references to IsNativeIntegerType
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Operators.cs (1)
1483
&& type.
IsNativeIntegerType
;
Binder\Binder_Patterns.cs (2)
1711
SpecialType.System_IntPtr when type.
IsNativeIntegerType
=> BinaryOperatorKind.NInt,
1712
SpecialType.System_UIntPtr when type.
IsNativeIntegerType
=> BinaryOperatorKind.NUInt,
Binder\PatternExplainer.cs (4)
673
Debug.Assert(underlyingType.
IsNativeIntegerType
);
693
bool requiresCast = (type.IsEnumType() || requireExactType || type.
IsNativeIntegerType
) &&
730
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
731
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
Binder\Semantics\Conversions\ConversionsBase.cs (6)
1377
case SpecialType.System_IntPtr when destination.
IsNativeIntegerType
:
1380
case SpecialType.System_UIntPtr when destination.
IsNativeIntegerType
:
2115
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
2116
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
2206
(type.SpecialType == SpecialType.System_IntPtr || type.SpecialType == SpecialType.System_UIntPtr) && !type.
IsNativeIntegerType
;
3937
return type.
IsNativeIntegerType
;
Binder\Semantics\Operators\OperatorFacts.cs (2)
45
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
46
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3745
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
3766
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
CodeGen\EmitConversion.cs (3)
34
return type.
IsNativeIntegerType
;
148
case Microsoft.Cci.PrimitiveTypeCode.IntPtr when !fromType.
IsNativeIntegerType
:
149
case Microsoft.Cci.PrimitiveTypeCode.UIntPtr when !fromType.
IsNativeIntegerType
:
Compilation\CSharpCompilation.cs (1)
1738
if (typeArgument.
IsNativeIntegerType
)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
783
else if (input.Type.
IsNativeIntegerType
)
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
137
Debug.Assert(!underlyingType.
IsNativeIntegerType
);
Symbols\NativeIntegerTypeSymbol.cs (1)
32
Debug.Assert(!underlyingType.
IsNativeIntegerType
);
Symbols\PublicModel\TypeSymbol.cs (1)
145
bool ITypeSymbol.IsNativeIntegerType => UnderlyingTypeSymbol.
IsNativeIntegerType
;
Symbols\TypeSymbolExtensions.cs (10)
53
return typeSymbol.IsReferenceType || typeSymbol.IsEnumType() || typeSymbol.SpecialType.CanBeConst() || typeSymbol.
IsNativeIntegerType
;
191
return type?.StrippedType().
IsNativeIntegerType
== true;
654
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
655
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
1461
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
1462
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
2225
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
: return 12;
2226
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
: return 13;
2248
case SpecialType.System_IntPtr when underlyingType.
IsNativeIntegerType
: return 27;
2249
case SpecialType.System_UIntPtr when underlyingType.
IsNativeIntegerType
: return 28;
Utilities\ValueSetFactory.cs (1)
61
return ForSpecialType(type.SpecialType, type.
IsNativeIntegerType
);