2 overrides of IsNativeIntegerWrapperType
Microsoft.CodeAnalysis.CSharp (2)
Symbols\MissingMetadataTypeSymbol.cs (1)
361
internal sealed override bool
IsNativeIntegerWrapperType
=> _isNativeInt;
Symbols\NativeIntegerTypeSymbol.cs (1)
173
internal override bool
IsNativeIntegerWrapperType
=> true;
43 references to IsNativeIntegerWrapperType
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
1369
|| type.
IsNativeIntegerWrapperType
CodeGen\EmitConversion.cs (1)
157
(toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.IntPtr || toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.UIntPtr) && !toType.
IsNativeIntegerWrapperType
||
Symbols\AliasSymbol.cs (1)
421
if (namespaceOrType is TypeSymbol {
IsNativeIntegerWrapperType
: true } &&
Symbols\Compilation_WellKnownMembers.cs (1)
1025
builder.Add(type.
IsNativeIntegerWrapperType
);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
121
return (_transformFlags[_index++], type.
IsNativeIntegerWrapperType
) switch
Symbols\NativeIntegerTypeSymbol.cs (1)
202
other.
IsNativeIntegerWrapperType
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
209
if (type.
IsNativeIntegerWrapperType
)
Symbols\TypeSymbol.cs (1)
556
internal bool IsNativeIntegerType =>
IsNativeIntegerWrapperType
Symbols\TypeSymbolExtensions.cs (1)
1160
var result = type.VisitType((type, unused1, unused2) => type.
IsNativeIntegerWrapperType
, (object?)null, canDigThroughNullable: true);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\NumericIntPtrTests.cs (4)
10325
Assert.False(fromAPI.
IsNativeIntegerWrapperType
);
10338
Assert.False(fromAPI.
IsNativeIntegerWrapperType
);
10364
Assert.False(type.
IsNativeIntegerWrapperType
);
10698
Assert.False(m.ReturnType.
IsNativeIntegerWrapperType
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (30)
Semantics\NativeIntegerTests.cs (30)
226
Assert.Equal(isNativeInt, type.
IsNativeIntegerWrapperType
);
605
return type.Type.VisitType((type, unused1, unused2) => type.SpecialType == specialType && useNativeInteger == type.
IsNativeIntegerWrapperType
, (object)null) is { };
728
Assert.Equal(isNativeInt, type.
IsNativeIntegerWrapperType
);
814
Assert.True(type.
IsNativeIntegerWrapperType
);
927
Assert.True(type.
IsNativeIntegerWrapperType
);
1034
Assert.True(type.
IsNativeIntegerWrapperType
);
1106
Assert.True(type.
IsNativeIntegerWrapperType
);
1154
Assert.True(type1.
IsNativeIntegerWrapperType
);
1175
Assert.False(type2.
IsNativeIntegerWrapperType
);
1229
Assert.True(typeA.
IsNativeIntegerWrapperType
);
1247
Assert.False(typeB.
IsNativeIntegerWrapperType
);
1547
Assert.True(type.
IsNativeIntegerWrapperType
);
1803
Assert.True(type.
IsNativeIntegerWrapperType
);
1968
Assert.True(type.
IsNativeIntegerWrapperType
);
2138
Assert.True(type.
IsNativeIntegerWrapperType
);
2234
Assert.True(type.
IsNativeIntegerWrapperType
);
2361
Assert.True(type.
IsNativeIntegerWrapperType
);
2481
Assert.True(type.
IsNativeIntegerWrapperType
);
2637
Assert.True(type.
IsNativeIntegerWrapperType
);
2739
Assert.True(type.
IsNativeIntegerWrapperType
);
2879
Assert.True(type.
IsNativeIntegerWrapperType
);
3644
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3646
Assert.True(underlyingType1.
IsNativeIntegerWrapperType
);
3686
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3688
Assert.False(underlyingType1.
IsNativeIntegerWrapperType
);
3720
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3722
Assert.True(underlyingType1.
IsNativeIntegerWrapperType
);
3754
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3756
Assert.True(underlyingType1.
IsNativeIntegerWrapperType
);
4815
return type.
IsNativeIntegerWrapperType
&&