Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SymbolFinder.FindReferencesAsync not returning references used as base constructor #73704

Closed
wmjordan opened this issue May 25, 2024 · 2 comments · Fixed by #76097
Closed

SymbolFinder.FindReferencesAsync not returning references used as base constructor #73704

wmjordan opened this issue May 25, 2024 · 2 comments · Fixed by #76097
Assignees
Labels
Milestone

Comments

@wmjordan
Copy link

Version Used:
VS 17.11 preview 1

Steps to Reproduce:

Given the following sample code:

public class BankAccount(string accountID, string owner) {
}

public class CheckingAccount(string accountID, string owner, decimal overdraftLimit = 0) : BankAccount(accountID, owner) {
}
  1. Obtain the reference to the BackAccount constructor method as method and the owning project
  2. Pass them to the SymbolFinder.FindReferencesAsync(method, project.Solution)
  3. The constructor called within the CheckingAccount class declaration is not listed in the results.
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 25, 2024
@jasonmalinowski jasonmalinowski removed the untriaged Issues and PRs which have not yet been triaged by a lead label May 30, 2024
@jasonmalinowski jasonmalinowski added this to the 17.11 milestone May 30, 2024
@arunchndr arunchndr modified the milestones: 17.11, Backlog Oct 28, 2024
@CyrusNajmabadi
Copy link
Member

This is by design. doing SymbolFinder on the type will find that symbol.

@CyrusNajmabadi CyrusNajmabadi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
@wmjordan
Copy link
Author

Thank you for your explanation. I will get a workaround for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants