38 references to IsNativeIntegerType
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Operators.cs (1)
2392
&& type.
IsNativeIntegerType
;
Binder\Binder_Patterns.cs (2)
2146
SpecialType.System_IntPtr when type.
IsNativeIntegerType
=> BinaryOperatorKind.NInt,
2147
SpecialType.System_UIntPtr when type.
IsNativeIntegerType
=> BinaryOperatorKind.NUInt,
Binder\PatternExplainer.cs (4)
804
Debug.Assert(underlyingType.
IsNativeIntegerType
);
824
bool requiresCast = (type.IsEnumType() || requireExactType || type.
IsNativeIntegerType
) &&
861
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
862
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
Binder\Semantics\Conversions\ConversionsBase.cs (6)
1392
case SpecialType.System_IntPtr when destination.
IsNativeIntegerType
:
1395
case SpecialType.System_UIntPtr when destination.
IsNativeIntegerType
:
2129
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
2130
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
2220
(type.SpecialType == SpecialType.System_IntPtr || type.SpecialType == SpecialType.System_UIntPtr) && !type.
IsNativeIntegerType
;
3957
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)
3821
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
3842
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
CodeGen\EmitConversion.cs (3)
34
return type.
IsNativeIntegerType
;
151
case Microsoft.Cci.PrimitiveTypeCode.IntPtr when !fromType.
IsNativeIntegerType
:
152
case Microsoft.Cci.PrimitiveTypeCode.UIntPtr when !fromType.
IsNativeIntegerType
:
Compilation\CSharpCompilation.cs (1)
1815
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)
34
Debug.Assert(!underlyingType.
IsNativeIntegerType
);
Symbols\PublicModel\TypeSymbol.cs (1)
157
bool ITypeSymbol.IsNativeIntegerType => UnderlyingTypeSymbol.
IsNativeIntegerType
;
Symbols\TypeSymbolExtensions.cs (10)
54
return typeSymbol.IsReferenceType || typeSymbol.IsEnumType() || typeSymbol.SpecialType.CanBeConst() || typeSymbol.
IsNativeIntegerType
;
209
return type?.StrippedType().
IsNativeIntegerType
== true;
695
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
696
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
1508
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
:
1509
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
:
2282
case SpecialType.System_IntPtr when type.
IsNativeIntegerType
: return 12;
2283
case SpecialType.System_UIntPtr when type.
IsNativeIntegerType
: return 13;
2305
case SpecialType.System_IntPtr when underlyingType.
IsNativeIntegerType
: return 27;
2306
case SpecialType.System_UIntPtr when underlyingType.
IsNativeIntegerType
: return 28;
Utilities\ValueSetFactory.cs (1)
62
return ForSpecialType(type.SpecialType, type.
IsNativeIntegerType
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
4657
Assert.True(extensions[0].ExtensionParameter.Type.
IsNativeIntegerType
);
4658
Assert.True(extensions[1].ExtensionParameter.Type.
IsNativeIntegerType
);