5 implementations of INamedTypeSymbol_TupleUnderlyingType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\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)
1481Private ReadOnly Property INamedTypeSymbol_TupleUnderlyingType As INamedTypeSymbol Implements INamedTypeSymbol.TupleUnderlyingType
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
126public INamedTypeSymbol TupleUnderlyingType => null;
61 references to INamedTypeSymbol_TupleUnderlyingType
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
415else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
24var isError = symbol.TupleUnderlyingType!.TypeKind == TypeKind.Error; 50visitor.WriteSymbolKey(symbol.TupleUnderlyingType); 71contextualSymbol?.TupleUnderlyingType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
445if (IsConstructedFromSelf(x.TupleUnderlyingType ?? x))
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
529return type.TupleUnderlyingType ?? type;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
191return namedTypeSymbol.TupleUnderlyingType ?? symbol;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (3)
183if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType)) 185return CreateSimpleTypeSyntax(symbol.TupleUnderlyingType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (18)
CodeGen\CodeGenDeconstructTests.cs (1)
1567var underlying = ((INamedTypeSymbol)tupleType).TupleUnderlyingType;
CodeGen\CodeGenTupleTest.cs (17)
5820Assert.Null(tupleWithoutNames.TupleUnderlyingType); 5878Assert.Null(tupleWithoutNames.TupleUnderlyingType); 5916Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind); 5955Assert.Null(tupleWithoutNames.TupleUnderlyingType); 6636Assert.Null(tuple1.TupleUnderlyingType); 6678Assert.Null(tuple1.TupleUnderlyingType); 6796Assert.Null(tuple1.TupleUnderlyingType); 6836var underlyingType = tuple1.TupleUnderlyingType; 16573Assert.Null(xSymbol.TupleUnderlyingType); 16610Assert.True(xSymbol.TupleUnderlyingType.IsErrorType()); 18979Assert.Null(int_string1.TupleUnderlyingType); 19004Assert.Null(int_string1.TupleUnderlyingType); 19005Assert.Null(int_string2.TupleUnderlyingType); 19030Assert.Null(int_string1.TupleUnderlyingType); 19031Assert.Null(int_string2.TupleUnderlyingType); 19032Assert.Null(int_object.TupleUnderlyingType); 27493var underlyingType = type.TupleUnderlyingType;
Microsoft.CodeAnalysis.CSharp.Features (1)
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
99var tupleUnderlyingType = tupleType.TupleUnderlyingType ?? tupleType;
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\TypeStyle\TypeStyleHelper.cs (1)
191return namedTypeSymbol.TupleUnderlyingType ?? symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (3)
183if (symbol.IsTupleType && symbol.TupleUnderlyingType != null && !symbol.Equals(symbol.TupleUnderlyingType)) 185return CreateSimpleTypeSyntax(symbol.TupleUnderlyingType);
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)
1481Private ReadOnly Property INamedTypeSymbol_TupleUnderlyingType As INamedTypeSymbol Implements INamedTypeSymbol.TupleUnderlyingType
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\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)
6893Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind) 6927Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind) 6946Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 6966Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 6987Assert.Equal(SymbolKind.ErrorType, tupleWithSomeNames.TupleUnderlyingType.Kind) 7249Assert.Equal(SymbolKind.NamedType, tupleWithoutNames.TupleUnderlyingType.Kind) 7278Assert.Equal(SymbolKind.NamedType, tuple.TupleUnderlyingType.Kind) 7296Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 7314Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 7545Dim underlyingType = tuple1.TupleUnderlyingType 7609Dim underlyingType = tuple1.TupleUnderlyingType 7644Dim underlyingType = tuple1.TupleUnderlyingType 23205Dim underlyingType = type.TupleUnderlyingType
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (3)
72symbol.TupleUnderlyingType IsNot Nothing AndAlso 73Not symbol.Equals(symbol.TupleUnderlyingType) Then 74Return CreateSimpleTypeSyntax(symbol.TupleUnderlyingType)
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
415else if (namedTypeSymbol.IsTupleType && namedTypeSymbol.TupleUnderlyingType is INamedTypeSymbol underlyingType && underlyingType != namedTypeSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
24var isError = symbol.TupleUnderlyingType!.TypeKind == TypeKind.Error; 50visitor.WriteSymbolKey(symbol.TupleUnderlyingType); 71contextualSymbol?.TupleUnderlyingType,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
445if (IsConstructedFromSelf(x.TupleUnderlyingType ?? x))