Skip to content

Additional cleanup to FAR engine.#54644

Merged
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
CyrusNajmabadi:farRefactorings2
Jul 7, 2021
Merged

Additional cleanup to FAR engine.#54644
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
CyrusNajmabadi:farRefactorings2

Conversation

@CyrusNajmabadi
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi commented Jul 6, 2021

Followup to #54641. That should go in first.

Should be reviewed with whitespace off.

@ghost ghost added the Area-IDE label Jul 6, 2021
/// Implementations of this method must be thread-safe.
/// </summary>
Task<ImmutableArray<Project>> DetermineProjectsToSearchAsync(
ISymbol symbol, Solution solution, IImmutableSet<Project>? projects, CancellationToken cancellationToken);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was exactly one implementation of this method, with no sublcasses overriding it. So i just inlined the one impl at teh callsite.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review July 7, 2021 02:58
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner July 7, 2021 02:58
namespace Microsoft.CodeAnalysis.FindSymbols
{
using ProjectToDocumentMap = Dictionary<Project, Dictionary<Document, HashSet<(SymbolGroup group, ISymbol symbol, IReferenceFinder finder)>>>;
using ProjectToDocumentMap = Dictionary<Project, Dictionary<Document, HashSet<ISymbol>>>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of passing around the symbol group through everything, it can be computed and cached right before we notify the FAR listeners.

@CyrusNajmabadi
Copy link
Contributor Author

This is ready for review.

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge July 7, 2021 07:47
@CyrusNajmabadi CyrusNajmabadi merged commit 755a2ac into dotnet:main Jul 7, 2021
@ghost ghost added this to the Next milestone Jul 7, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the farRefactorings2 branch July 7, 2021 17:53
@allisonchou allisonchou modified the milestones: Next, 17.0.P3 Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants