From 5eccec0808879d82b45f8383d7a1bfb9ee7adb4b Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Fri, 8 May 2020 12:44:05 -0700 Subject: [PATCH] use named params --- .../FindSymbols/FindReferences/DependentTypeFinder.cs | 8 ++++---- .../DependentTypeFinder_ImplementingTypes.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder.cs b/src/Workspaces/Core/Portable/FindSymbols/FindReferences/DependentTypeFinder.cs index 13ed6b1c060..ef82891ae14 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 aa82390db9a..6e292261002 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; -- GitLab