Skip to content

Add support for increment/decrement [Parameter] usage detection. #12544

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

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

NTaylorMullen
Copy link

  • Didn't realize there was an increment or decrement operation kind.
  • Added tests to cover this scenario

#12543

@mkArtakMSFT can I pull this into preview8? It was something I found while validating and has very low impact. I also verified the fix in VS:

image

- Didn't realize there was an increment or decrement operation kind.
- Added tests to cover this scenario

#12543
@mkArtakMSFT mkArtakMSFT added tell-mode Indicates a PR which is being merged during tell-mode area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Jul 24, 2019
@mkArtakMSFT
Copy link
Contributor

Go ahead!

else
{
var incrementOrDecrementOperation = (IIncrementOrDecrementOperation)context.Operation;
leftHandSide = incrementOrDecrementOperation.Target;
Copy link
Member

Choose a reason for hiding this comment

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

this is actually a great place to earn #PranavPoints by using a switch expression.

Copy link
Author

Choose a reason for hiding this comment

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

hahah, so true. Going to leave for now so I don't have to wait for a rebuild though.

@NTaylorMullen NTaylorMullen merged commit c76cb92 into master Jul 25, 2019
@ghost ghost deleted the nimullen/12543 branch July 25, 2019 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates tell-mode Indicates a PR which is being merged during tell-mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants