5 implementations of IsNativeIntegerType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationTypeSymbol.cs (1)
54public bool IsNativeIntegerType => false;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
145bool ITypeSymbol.IsNativeIntegerType => UnderlyingTypeSymbol.IsNativeIntegerType;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
145public bool IsNativeIntegerType => _symbol.IsNativeIntegerType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
564Private ReadOnly Property ITypeSymbol_IsNativeIntegerType As Boolean Implements ITypeSymbol.IsNativeIntegerType
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationTypeSymbol.cs (1)
54public bool IsNativeIntegerType => false;
32 references to IsNativeIntegerType
Microsoft.CodeAnalysis.CodeStyle (6)
ITypeSymbolExtensions.cs (4)
299case SpecialType.System_IntPtr when type.IsNativeIntegerType: 300case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 392case SpecialType.System_IntPtr when symbol.IsNativeIntegerType: 393case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
338if (x.IsNativeIntegerType != y.IsNativeIntegerType)
Microsoft.CodeAnalysis.CSharp (3)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (3)
205(symbol.IsNativeIntegerType && !format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType))) 643case SpecialType.System_IntPtr when symbol.IsNativeIntegerType: 645case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
115if (symbol.IsNativeIntegerType)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
11144Assert.True(nintSymbol.IsNativeIntegerType); 11167Assert.False(symbol.IsNativeIntegerType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\NativeIntegerTests.cs (9)
241Assert.Equal(isNativeInt, type.IsNativeIntegerType); 736Assert.Equal(isNativeInt, type.IsNativeIntegerType); 4078Assert.True(type.IsNativeIntegerType); 4125Assert.False(type.IsNativeIntegerType); 15296Assert.True(nintSymbol.IsNativeIntegerType); 15317Assert.False(nintSymbol.IsNativeIntegerType); 15340Assert.False(symbol.IsNativeIntegerType); 15391Assert.False(symbol.IsNativeIntegerType); 15421Assert.False(symbol.IsNativeIntegerType);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
188if (symbol is ITypeSymbol type && type.IsNativeIntegerType)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
115if (symbol.IsNativeIntegerType)
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
145public bool IsNativeIntegerType => _symbol.IsNativeIntegerType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
564Private ReadOnly Property ITypeSymbol_IsNativeIntegerType As Boolean Implements ITypeSymbol.IsNativeIntegerType
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.vb (1)
55Assert.Equal(isNativeInteger, type.IsNativeIntegerType)
Microsoft.CodeAnalysis.Workspaces (6)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (4)
299case SpecialType.System_IntPtr when type.IsNativeIntegerType: 300case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 392case SpecialType.System_IntPtr when symbol.IsNativeIntegerType: 393case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
338if (x.IsNativeIntegerType != y.IsNativeIntegerType)