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

Fix UseExpressionBodyHelper.GetDiagnosticLocation for indexer declara… #32445

Merged
merged 1 commit into from
Jan 15, 2019

Conversation

mavasani
Copy link
Contributor

…tions

Port existing override UseExpressionBodyForPropertiesHelper.GetDiagnosticLocation to UseExpressionBodyForIndexersHelper

Fixes #31308

@mavasani mavasani requested review from CyrusNajmabadi and a team January 14, 2019 23:12
}

var getAccessor = GetSingleGetAccessor(declaration.AccessorList);
return getAccessor.ExpressionBody.GetLocation();
Copy link
Member

Choose a reason for hiding this comment

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

i assume we won't even get here if the indexer only has a setter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that seems to the implementation for the property helper too.

@mavasani
Copy link
Contributor Author

@jinujoseph @vatsalyaagrawal for approval

@mavasani
Copy link
Contributor Author

@dotnet/roslyn-ide for an additional review.

@mavasani mavasani merged commit 9e50109 into dotnet:master Jan 15, 2019
@mavasani mavasani deleted the Issue31308 branch January 15, 2019 08:48
xoofx pushed a commit to stark-lang/stark-roslyn that referenced this pull request Apr 16, 2019
Fix UseExpressionBodyHelper.GetDiagnosticLocation for indexer declara…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants