-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Update FAR and Go to Def to work on indexers #76220
Conversation
@@ -66,7 +66,8 @@ internal abstract class AbstractGoToDefinitionSymbolService : IGoToDefinitionSym | |||
{ | |||
var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); | |||
var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); | |||
var token = await syntaxTree.GetTouchingTokenAsync(position, syntaxFacts.IsBindableToken, cancellationToken, findInsideTrivia: true).ConfigureAwait(false); | |||
var token = await syntaxTree.GetTouchingTokenAsync( | |||
semanticModel: null, position, syntaxFacts.IsBindableToken, cancellationToken, findInsideTrivia: true).ConfigureAwait(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this helper is GetTargetIfControlFlowAsync. which is basically saying "if you're on a keyword like 'continue' go to the dest of that". That's purely syntactic and doesn't need semantics here.
though let me see if i can clean up duplicative work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #31819