2 overrides of IsNativeIntegerWrapperType
Microsoft.CodeAnalysis.CSharp (2)
Symbols\MissingMetadataTypeSymbol.cs (1)
362
internal sealed override bool
IsNativeIntegerWrapperType
=> _isNativeInt;
Symbols\NativeIntegerTypeSymbol.cs (1)
174
internal override bool
IsNativeIntegerWrapperType
=> true;
43 references to IsNativeIntegerWrapperType
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
1412
|| type.
IsNativeIntegerWrapperType
CodeGen\EmitConversion.cs (1)
157
(toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.IntPtr || toPredefTypeKind == Microsoft.Cci.PrimitiveTypeCode.UIntPtr) && !toType.
IsNativeIntegerWrapperType
||
Symbols\AliasSymbol.cs (1)
416
if (namespaceOrType is TypeSymbol {
IsNativeIntegerWrapperType
: true } &&
Symbols\Compilation_WellKnownMembers.cs (1)
1055
builder.Add(type.
IsNativeIntegerWrapperType
);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
120
return (_transformFlags[_index++], type.
IsNativeIntegerWrapperType
) switch
Symbols\NativeIntegerTypeSymbol.cs (1)
206
other.
IsNativeIntegerWrapperType
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
209
if (type.
IsNativeIntegerWrapperType
)
Symbols\TypeSymbol.cs (1)
570
internal bool IsNativeIntegerType =>
IsNativeIntegerWrapperType
Symbols\TypeSymbolExtensions.cs (1)
1250
var result = type.VisitType((type, unused1, unused2) => type.
IsNativeIntegerWrapperType
, (object?)null, canDigThroughNullable: true);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\NumericIntPtrTests.cs (4)
10365
Assert.False(fromAPI.
IsNativeIntegerWrapperType
);
10378
Assert.False(fromAPI.
IsNativeIntegerWrapperType
);
10404
Assert.False(type.
IsNativeIntegerWrapperType
);
10738
Assert.False(m.ReturnType.
IsNativeIntegerWrapperType
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (30)
Semantics\NativeIntegerTests.cs (30)
231
Assert.Equal(isNativeInt, type.
IsNativeIntegerWrapperType
);
610
return type.Type.VisitType((type, unused1, unused2) => type.SpecialType == specialType && useNativeInteger == type.
IsNativeIntegerWrapperType
, (object)null) is { };
733
Assert.Equal(isNativeInt, type.
IsNativeIntegerWrapperType
);
819
Assert.True(type.
IsNativeIntegerWrapperType
);
932
Assert.True(type.
IsNativeIntegerWrapperType
);
1039
Assert.True(type.
IsNativeIntegerWrapperType
);
1111
Assert.True(type.
IsNativeIntegerWrapperType
);
1159
Assert.True(type1.
IsNativeIntegerWrapperType
);
1180
Assert.False(type2.
IsNativeIntegerWrapperType
);
1234
Assert.True(typeA.
IsNativeIntegerWrapperType
);
1252
Assert.False(typeB.
IsNativeIntegerWrapperType
);
1552
Assert.True(type.
IsNativeIntegerWrapperType
);
1808
Assert.True(type.
IsNativeIntegerWrapperType
);
1973
Assert.True(type.
IsNativeIntegerWrapperType
);
2143
Assert.True(type.
IsNativeIntegerWrapperType
);
2239
Assert.True(type.
IsNativeIntegerWrapperType
);
2366
Assert.True(type.
IsNativeIntegerWrapperType
);
2486
Assert.True(type.
IsNativeIntegerWrapperType
);
2642
Assert.True(type.
IsNativeIntegerWrapperType
);
2744
Assert.True(type.
IsNativeIntegerWrapperType
);
2884
Assert.True(type.
IsNativeIntegerWrapperType
);
3649
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3651
Assert.True(underlyingType1.
IsNativeIntegerWrapperType
);
3691
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3693
Assert.False(underlyingType1.
IsNativeIntegerWrapperType
);
3725
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3727
Assert.True(underlyingType1.
IsNativeIntegerWrapperType
);
3759
Assert.False(underlyingType0.
IsNativeIntegerWrapperType
);
3761
Assert.True(underlyingType1.
IsNativeIntegerWrapperType
);
4846
return type.
IsNativeIntegerWrapperType
&&