5 implementations of TupleUnderlyingType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationAbstractNamedTypeSymbol.cs (1)
126public INamedTypeSymbol TupleUnderlyingType => null;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
171INamedTypeSymbol INamedTypeSymbol.TupleUnderlyingType
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
76public INamedTypeSymbol TupleUnderlyingType => _symbol.TupleUnderlyingType;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
1252Private ReadOnly Property INamedTypeSymbol_TupleUnderlyingType As INamedTypeSymbol Implements INamedTypeSymbol.TupleUnderlyingType
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationAbstractNamedTypeSymbol.cs (1)
126public INamedTypeSymbol TupleUnderlyingType => null;
61 references to TupleUnderlyingType
Microsoft.CodeAnalysis.CodeStyle (5)
SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
432if (IsConstructedFromSelf(x.TupleUnderlyingType ?? x))
SymbolKey.SymbolKeyWriter.cs (1)
409else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
SymbolKey.TupleTypeSymbolKey.cs (3)
24var isError = symbol.TupleUnderlyingType!.TypeKind == TypeKind.Error; 50visitor.WriteSymbolKey(symbol.TupleUnderlyingType); 71contextualSymbol?.TupleUnderlyingType,
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
523return type.TupleUnderlyingType ?? type;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
TypeStyleHelper.cs (1)
201return namedTypeSymbol.TupleUnderlyingType ?? symbol;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (3)
178if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType)) 180return CreateSimpleTypeSyntax(symbol.TupleUnderlyingType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (18)
CodeGen\CodeGenDeconstructTests.cs (1)
1567var underlying = ((INamedTypeSymbol)tupleType).TupleUnderlyingType;
CodeGen\CodeGenTupleTest.cs (17)
5815Assert.Null(tupleWithoutNames.TupleUnderlyingType); 5873Assert.Null(tupleWithoutNames.TupleUnderlyingType); 5911Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind); 5950Assert.Null(tupleWithoutNames.TupleUnderlyingType); 6631Assert.Null(tuple1.TupleUnderlyingType); 6673Assert.Null(tuple1.TupleUnderlyingType); 6791Assert.Null(tuple1.TupleUnderlyingType); 6831var underlyingType = tuple1.TupleUnderlyingType; 16579Assert.Null(xSymbol.TupleUnderlyingType); 16616Assert.True(xSymbol.TupleUnderlyingType.IsErrorType()); 18985Assert.Null(int_string1.TupleUnderlyingType); 19010Assert.Null(int_string1.TupleUnderlyingType); 19011Assert.Null(int_string2.TupleUnderlyingType); 19036Assert.Null(int_string1.TupleUnderlyingType); 19037Assert.Null(int_string2.TupleUnderlyingType); 19038Assert.Null(int_object.TupleUnderlyingType); 27531var underlyingType = type.TupleUnderlyingType;
Microsoft.CodeAnalysis.CSharp.Features (1)
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
100var tupleUnderlyingType = tupleType.TupleUnderlyingType ?? tupleType;
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (3)
178if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType)) 180return CreateSimpleTypeSyntax(symbol.TupleUnderlyingType);
TypeStyleHelper.cs (1)
201return namedTypeSymbol.TupleUnderlyingType ?? symbol;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
76public INamedTypeSymbol TupleUnderlyingType => _symbol.TupleUnderlyingType;
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
221symbol = symbol.TupleUnderlyingType 368Return If(tupleSymbol.TupleUnderlyingType, tupleSymbol)
Symbols\NamedTypeSymbol.vb (1)
1252Private ReadOnly Property INamedTypeSymbol_TupleUnderlyingType As INamedTypeSymbol Implements INamedTypeSymbol.TupleUnderlyingType
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
TypeSyntaxGeneratorVisitor.vb (3)
72symbol.TupleUnderlyingType IsNot Nothing AndAlso 73Not symbol.Equals(symbol.TupleUnderlyingType) Then 74Return CreateSimpleTypeSyntax(symbol.TupleUnderlyingType)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (13)
CodeGen\CodeGenTuples.vb (13)
6894Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind) 6928Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind) 6947Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 6967Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 6988Assert.Equal(SymbolKind.ErrorType, tupleWithSomeNames.TupleUnderlyingType.Kind) 7250Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind) 7279Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind) 7297Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 7315Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 7546Dim underlyingType = tuple1.TupleUnderlyingType 7610Dim underlyingType = tuple1.TupleUnderlyingType 7645Dim underlyingType = tuple1.TupleUnderlyingType 23207Dim underlyingType = type.TupleUnderlyingType
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
TypeSyntaxGeneratorVisitor.vb (3)
72symbol.TupleUnderlyingType IsNot Nothing AndAlso 73Not symbol.Equals(symbol.TupleUnderlyingType) Then 74Return CreateSimpleTypeSyntax(symbol.TupleUnderlyingType)
Microsoft.CodeAnalysis.Workspaces (5)
SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
432if (IsConstructedFromSelf(x.TupleUnderlyingType ?? x))
SymbolKey.SymbolKeyWriter.cs (1)
409else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
SymbolKey.TupleTypeSymbolKey.cs (3)
24var isError = symbol.TupleUnderlyingType!.TypeKind == TypeKind.Error; 50visitor.WriteSymbolKey(symbol.TupleUnderlyingType); 71contextualSymbol?.TupleUnderlyingType,