5 implementations of IsNativeIntegerType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\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)
575Private ReadOnly Property ITypeSymbol_IsNativeIntegerType As Boolean Implements ITypeSymbol.IsNativeIntegerType
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
54public bool IsNativeIntegerType => false;
37 references to IsNativeIntegerType
Microsoft.CodeAnalysis.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (4)
301case SpecialType.System_IntPtr when type.IsNativeIntegerType: 302case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 394case SpecialType.System_IntPtr when symbol.IsNativeIntegerType: 395case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
26visitor.WriteBoolean(symbol.IsNativeIntegerType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
338if (x.IsNativeIntegerType != y.IsNativeIntegerType) 350if (x.IsNativeIntegerType)
Microsoft.CodeAnalysis.CSharp (3)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (3)
208(symbol.IsNativeIntegerType && !Format.CompilerInternalOptions.IncludesOption(SymbolDisplayCompilerInternalOptions.UseNativeIntegerUnderlyingType))) 649case SpecialType.System_IntPtr when symbol.IsNativeIntegerType: 651case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
120if (symbol.IsNativeIntegerType)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
11178Assert.True(nintSymbol.IsNativeIntegerType); 11201Assert.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); 15322Assert.True(nintSymbol.IsNativeIntegerType); 15343Assert.False(nintSymbol.IsNativeIntegerType); 15366Assert.False(symbol.IsNativeIntegerType); 15417Assert.False(symbol.IsNativeIntegerType); 15447Assert.False(symbol.IsNativeIntegerType);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
167if (symbol is ITypeSymbol type && type.IsNativeIntegerType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
120if (symbol.IsNativeIntegerType)
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
145public bool IsNativeIntegerType => _symbol.IsNativeIntegerType;
Snippets\SnippetProviders\AbstractForLoopSnippetProvider.cs (1)
28=> type.IsIntegralType() || type.IsNativeIntegerType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
575Private 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 (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (4)
301case SpecialType.System_IntPtr when type.IsNativeIntegerType: 302case SpecialType.System_UIntPtr when type.IsNativeIntegerType: 394case SpecialType.System_IntPtr when symbol.IsNativeIntegerType: 395case SpecialType.System_UIntPtr when symbol.IsNativeIntegerType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
26visitor.WriteBoolean(symbol.IsNativeIntegerType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
338if (x.IsNativeIntegerType != y.IsNativeIntegerType) 350if (x.IsNativeIntegerType)