8 implementations of IsTupleType
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
43public bool IsTupleType => false;
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
43public bool IsTupleType => false;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
43public bool IsTupleType => false;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
157bool ITypeSymbol.IsTupleType => UnderlyingTypeSymbol.IsTupleType;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
61public bool IsTupleType => _symbol.IsTupleType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
569Private ReadOnly Property ITypeSymbol_IsTupleSymbol As Boolean Implements ITypeSymbol.IsTupleType
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
43public bool IsTupleType => false;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
43public bool IsTupleType => false;
161 references to IsTupleType
GenerateDocumentationAndConfigFiles (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
412else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
20Debug.Assert(symbol.IsTupleType); 55contextualSymbol = contextualSymbol is { IsTupleType: true } ? contextualSymbol : null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
205if (namedType.OriginalDefinition.IsSpecialType() || namedType.IsNullable() || namedType.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
265if (valueIEquatable || memberType?.IsTupleType == true)
Microsoft.CodeAnalysis.Analyzers (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
412else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
20Debug.Assert(symbol.IsTupleType); 55contextualSymbol = contextualSymbol is { IsTupleType: true } ? contextualSymbol : null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
205if (namedType.OriginalDefinition.IsSpecialType() || namedType.IsNullable() || namedType.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
265if (valueIEquatable || memberType?.IsTupleType == true)
Microsoft.CodeAnalysis.AnalyzerUtilities (13)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
240if (tupleElementEntity.Type.IsTupleType)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (1)
333if (tupleOperation.Type?.IsTupleType != true ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
412else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
20Debug.Assert(symbol.IsTupleType); 55contextualSymbol = contextualSymbol is { IsTupleType: true } ? contextualSymbol : null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
Microsoft.CodeAnalysis.CodeStyle (12)
src\roslyn\src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
50if (field.ContainingType.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
412else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
20Debug.Assert(symbol.IsTupleType); 55contextualSymbol = contextualSymbol is { IsTupleType: true } ? contextualSymbol : null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
205if (namedType.OriginalDefinition.IsSpecialType() || namedType.IsNullable() || namedType.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
265if (valueIEquatable || memberType?.IsTupleType == true)
Microsoft.CodeAnalysis.CSharp (7)
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
129if (!(symbol.IsAnonymousType || symbol.IsTupleType))
SymbolDisplay\SymbolDisplayVisitor.Types.cs (6)
244if (this.IsMinimizing || (symbol.IsTupleType && !ShouldDisplayAsValueTuple(symbol))) 317Debug.Assert(symbol.IsTupleType); 334else if (symbol.IsTupleType && !ShouldDisplayAsValueTuple(symbol)) 545Debug.Assert(tupleSymbol.IsTupleType); 584Debug.Assert(symbol.IsTupleType); 734else if (symbol.IsTupleType && !ShouldDisplayAsValueTuple(symbol))
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
165if (type is not INamedTypeSymbol { IsTupleType: true, TupleElements.Length: >= 2 } tupleTypeOpt)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
39if (typeInDeclaration == null || !typeInDeclaration.IsTupleType)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
59if (targetType is not INamedTypeSymbol { IsTupleType: true, TupleElements: var tupleElements })
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
188Debug.Assert(typeSymbol.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
187if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType)) 225if (symbol.IsTupleType && symbol.TupleElements.Length >= 2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
368.Where(namedType => namedType.IsTupleType && index < namedType.TupleElements.Length)
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
60.Where(t => t.IsTupleType)
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
136var tupleTypes = inferredTypes.Where(t => t.IsTupleType).OfType<INamedTypeSymbol>().ToList();
src\roslyn\src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
165if (type is not INamedTypeSymbol { IsTupleType: true, TupleElements.Length: >= 2 } tupleTypeOpt)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
59if (targetType is not INamedTypeSymbol { IsTupleType: true, TupleElements: var tupleElements })
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
188Debug.Assert(typeSymbol.IsTupleType);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.cs (1)
121if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType))
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Simplification\CSharpSimplificationService.Expander.cs (1)
473if (aliasTarget is INamedTypeSymbol typeSymbol && typeSymbol.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
39if (typeInDeclaration == null || !typeInDeclaration.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
187if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType)) 225if (symbol.IsTupleType && symbol.TupleElements.Length >= 2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
368.Where(namedType => namedType.IsTupleType && index < namedType.TupleElements.Length)
Microsoft.CodeAnalysis.Extensions.Package (8)
Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
Microsoft.CodeAnalysis.Features (10)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
208if (tupleType?.IsTupleType != true)
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
51if (type.IsTupleType && syntaxFacts.SupportsTupleDeconstruction(expression.SyntaxTree.Options))
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (2)
197var hasAtLeastOneTupleWhichAppearsMultipleTimes = transitiveReferences.Any(kvp => kvp.Key.IsTupleType && kvp.Value.count >= 2); 203if (namedType.IsTupleType && !hasAtLeastOneTupleWhichAppearsMultipleTimes)
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
94else if (symbol.IsTupleType)
LanguageServices\AnonymousTypeDisplayService\StructuralTypeDisplayInfo.cs (1)
58if (type.IsTupleType && part.ToString() == "<tuple>")
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
424if (namedType.IsTupleType)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
61public bool IsTupleType => _symbol.IsTupleType;
Rename\SymbolicRenameInfo.cs (1)
157if (triggerSymbol.ContainingType?.IsTupleType == true)
src\roslyn\src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
50if (field.ContainingType.IsTupleType)
Microsoft.CodeAnalysis.NetAnalyzers (2)
src\9382845807600969\AnalysisEntityDataFlowOperationVisitor.cs (1)
239if (tupleElementEntity.Type.IsTupleType)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (1)
331if (tupleOperation.Type?.IsTupleType != true ||
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
412else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
20Debug.Assert(symbol.IsTupleType); 55contextualSymbol = contextualSymbol is { IsTupleType: true } ? contextualSymbol : null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
Microsoft.CodeAnalysis.VisualBasic (8)
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (1)
98If Not (symbol.IsAnonymousType OrElse symbol.IsTupleType) Then
SymbolDisplay\SymbolDisplayVisitor.Types.vb (6)
108If Me.IsMinimizing OrElse (symbol.IsTupleType AndAlso Not ShouldDisplayAsValueTuple(symbol)) Then 215ElseIf symbol.IsTupleType Then 320Debug.Assert(symbol.IsTupleType) 362Debug.Assert(tupleSymbol.IsTupleType) 383Debug.Assert(symbol.IsTupleType) 441ElseIf symbol.IsTupleType Then
Symbols\TypeSymbol.vb (1)
569Private ReadOnly Property ITypeSymbol_IsTupleSymbol As Boolean Implements ITypeSymbol.IsTupleType
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (2)
71If symbol.IsTupleType AndAlso 130If symbol.IsTupleType AndAlso symbol.TupleElements.Length >= 2 Then
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.vb (2)
109If symbol.IsTupleType AndAlso symbol.TupleUnderlyingType IsNot Nothing AndAlso Not symbol.Equals(symbol.TupleUnderlyingType) Then 166If symbol.IsTupleType AndAlso symbol.TupleElements.Length >= 2 Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (2)
71If symbol.IsTupleType AndAlso 130If symbol.IsTupleType AndAlso symbol.TupleElements.Length >= 2 Then
Microsoft.CodeAnalysis.Workspaces (16)
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (1)
113if (aliasSymbol.Target is INamedTypeSymbol { IsTupleType: false } or INamespaceSymbol)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
538=> container is not INamedTypeSymbol { IsTupleType: true } namedType
Rename\RenameUtilities.cs (1)
51return typeSymbol.IsTupleType ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
412else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
20Debug.Assert(symbol.IsTupleType); 55contextualSymbol = contextualSymbol is { IsTupleType: true } ? contextualSymbol : null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
205if (namedType.OriginalDefinition.IsSpecialType() || namedType.IsNullable() || namedType.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
265if (valueIEquatable || memberType?.IsTupleType == true)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Specs\Types\TypeSpec.cs (1)
23IsValueTuple = namedTypeSymbol.IsTupleType;
Roslyn.Diagnostics.Analyzers (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
412else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (2)
20Debug.Assert(symbol.IsTupleType); 55contextualSymbol = contextualSymbol is { IsTupleType: true } ? contextualSymbol : null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
238=> symbol is ITypeSymbol { IsTupleType: true }; 323=> symbol is IFieldSymbol { ContainingType.IsTupleType: true };
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
364if (type == null || type.IsAnonymousType() || type.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
335if (x.IsTupleType != y.IsTupleType) 347if (x.IsTupleType) 420Debug.Assert(y.IsTupleType);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
166if (x.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
205if (namedType.OriginalDefinition.IsSpecialType() || namedType.IsNullable() || namedType.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
265if (valueIEquatable || memberType?.IsTupleType == true)
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
39if (typeInDeclaration == null || !typeInDeclaration.IsTupleType)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
187if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType)) 225if (symbol.IsTupleType && symbol.TupleElements.Length >= 2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
368.Where(namedType => namedType.IsTupleType && index < namedType.TupleElements.Length)
Roslyn.Diagnostics.VisualBasic.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (2)
71If symbol.IsTupleType AndAlso 130If symbol.IsTupleType AndAlso symbol.TupleElements.Length >= 2 Then
System.Text.Json.SourceGeneration (2)
Helpers\RoslynExtensions.cs (1)
64if (namedType.IsTupleType)
JsonSourceGenerator.Parser.cs (1)
942IsValueTuple = type.IsTupleType,