35 references to IsNativeIntegerType
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Operators.cs (1)
1452&& type.IsNativeIntegerType;
Binder\Binder_Patterns.cs (2)
1701SpecialType.System_IntPtr when type.IsNativeIntegerType => BinaryOperatorKind.NInt, 1702SpecialType.System_UIntPtr when type.IsNativeIntegerType => BinaryOperatorKind.NUInt,
Binder\PatternExplainer.cs (4)
673Debug.Assert(underlyingType.IsNativeIntegerType); 693bool requiresCast = (type.IsEnumType() || requireExactType || type.IsNativeIntegerType) && 730case SpecialType.System_IntPtr when type.IsNativeIntegerType: 731case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
Binder\Semantics\Conversions\ConversionsBase.cs (6)
1302case SpecialType.System_IntPtr when destination.IsNativeIntegerType: 1305case SpecialType.System_UIntPtr when destination.IsNativeIntegerType: 1966case SpecialType.System_IntPtr when type.IsNativeIntegerType: 1967case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2057(type.SpecialType == SpecialType.System_IntPtr || type.SpecialType == SpecialType.System_UIntPtr) && !type.IsNativeIntegerType; 3698return type.IsNativeIntegerType;
Binder\Semantics\Operators\OperatorFacts.cs (2)
45case SpecialType.System_IntPtr when type.IsNativeIntegerType: 46case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3044case SpecialType.System_IntPtr when type.IsNativeIntegerType: 3065case SpecialType.System_UIntPtr when type.IsNativeIntegerType:
CodeGen\EmitConversion.cs (3)
34return type.IsNativeIntegerType; 148case Microsoft.Cci.PrimitiveTypeCode.IntPtr when !fromType.IsNativeIntegerType: 149case Microsoft.Cci.PrimitiveTypeCode.UIntPtr when !fromType.IsNativeIntegerType:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
783else if (input.Type.IsNativeIntegerType)
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
135Debug.Assert(!underlyingType.IsNativeIntegerType);
Symbols\NativeIntegerTypeSymbol.cs (1)
32Debug.Assert(!underlyingType.IsNativeIntegerType);
Symbols\PublicModel\TypeSymbol.cs (1)
145bool ITypeSymbol.IsNativeIntegerType => UnderlyingTypeSymbol.IsNativeIntegerType;
Symbols\TypeSymbolExtensions.cs (10)
45return typeSymbol.IsReferenceType || typeSymbol.IsEnumType() || typeSymbol.SpecialType.CanBeConst() || typeSymbol.IsNativeIntegerType; 170return type?.StrippedType().IsNativeIntegerType == true; 590case SpecialType.System_IntPtr when type.IsNativeIntegerType: 591case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 1349case SpecialType.System_IntPtr when type.IsNativeIntegerType: 1350case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 2124case SpecialType.System_IntPtr when type.IsNativeIntegerType: return 12; 2125case SpecialType.System_UIntPtr when type.IsNativeIntegerType: return 13; 2147case SpecialType.System_IntPtr when underlyingType.IsNativeIntegerType: return 27; 2148case SpecialType.System_UIntPtr when underlyingType.IsNativeIntegerType: return 28;
Utilities\ValueSetFactory.cs (1)
61return ForSpecialType(type.SpecialType, type.IsNativeIntegerType);