diff --git a/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder.cs b/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder.cs index 13ed6b1c060fc7facacbde96195a58be82da83ed..ef82891ae14bfd02c56f6f303a20c3cf55f0185b 100644 --- a/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder.cs +++ b/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder.cs @@ -88,7 +88,7 @@ internal static partial class DependentTypeFinder Solution solution, IImmutableSet projects, RelatedTypeCache cache, - Func>> findAsync, + Func>> findAsync, CancellationToken cancellationToken) { var dictionary = cache.GetValue(solution, s_createTypeMap); @@ -142,7 +142,7 @@ internal static partial class DependentTypeFinder } private static async Task> GetSymbolKeysAndProjectIdsAsync( - Func>> findAsync, + Func>> findAsync, CancellationToken cancellationToken) { // If we're the code that is actually computing the symbols, then just @@ -150,7 +150,7 @@ internal static partial class DependentTypeFinder // doesn't need to incur the cost of deserializing the symbol keys that // we're create right below this. var result = await findAsync(cancellationToken).ConfigureAwait(false); - return result.SelectAsArray(t => (t.Item1.GetSymbolKey(), t.Item2.Id)); + return result.SelectAsArray(t => (t.type.GetSymbolKey(), t.project.Id)); } /// @@ -162,7 +162,7 @@ internal static partial class DependentTypeFinder /// inherit from it that would match this search. /// If this search after finding the direct inherited types that match the provided /// predicate, or if the search should continue recursively using those types as the starting point. - private static async Task> DescendInheritanceTreeAsync( + private static async Task> DescendInheritanceTreeAsync( INamedTypeSymbol type, Solution solution, IImmutableSet projects, diff --git a/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder_ImplementingTypes.cs b/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder_ImplementingTypes.cs index aa82390db9afb6adf86230964e9fdde852e99c63..6e2922610021a8a5c2546ef2a9ea02397b6af3a2 100644 --- a/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder_ImplementingTypes.cs +++ b/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder_ImplementingTypes.cs @@ -90,10 +90,10 @@ static bool TypeMatches(INamedTypeSymbol type, SymbolSet set) // FindDerivedInterfacesAsync. Delegates/Enums only happen in a few corner cases. For example, enums // implement IComparable, and delegates implement ICloneable. return allTypes.WhereAsArray( - t => t.Item1.TypeKind == TypeKind.Class || - t.Item1.TypeKind == TypeKind.Struct || - t.Item1.TypeKind == TypeKind.Delegate || - t.Item1.TypeKind == TypeKind.Enum); + t => t.type.TypeKind == TypeKind.Class || + t.type.TypeKind == TypeKind.Struct || + t.type.TypeKind == TypeKind.Delegate || + t.type.TypeKind == TypeKind.Enum); } return ImmutableArray<(INamedTypeSymbol, Project)>.Empty;