Skip to content

Conversation

sharwell
Copy link
Contributor

@sharwell sharwell commented Jul 23, 2024

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2136177

Note that much of the overhead in this implementation stems from the use of ignoreAssemblyKey: true here:

var result = symbolId.Resolve(projectCompilation, ignoreAssemblyKey: true, cancellationToken: cancellationToken);

If symbol resolution with ignoreAssemblyKey: false worked here frequently enough that it would be acceptable to always try it first and only fall back to ignoreAssemblyKey: true on failure, this method could be significantly improved.

@ghost ghost added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 23, 2024
/// <summary>
/// Get all the members of this symbol that have a particular name.
/// </summary>
void GetMembers<TArg>(string name, Action<INamespaceOrTypeSymbol, TArg> callback, TArg argument);
Copy link
Member

Choose a reason for hiding this comment

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

i don't have an issue with this. but my guess is that we need to be consistent with this and the other cases of Getmembers we have. want to extract out and bring to API review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants