Skip to content

Reenable the 'use auto property' lightbulb.#5722

Closed
CyrusNajmabadi wants to merge 6 commits intodotnet:masterfrom
CyrusNajmabadi:useAutoProp
Closed

Reenable the 'use auto property' lightbulb.#5722
CyrusNajmabadi wants to merge 6 commits intodotnet:masterfrom
CyrusNajmabadi:useAutoProp

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

A couple of changes have been made here. We no longer implement this feature as a
'compilation end' analyzer. Instead, it's a 'symbol analyzer'. This should ideally
mean that the results it produces are available much quicker since we don't have to
wait for the compiltion analysis to end.

Previously this was a compilation analyzer because we wanted to also analyze all
usages to see if switching to an auto-prop would break things. Now we eagerly
detect that you can convert to an auto prop, but we defer the conflict check
to when you try to apply the feature (like we do for "inline temp").

A couple of changes have been made here.  We no longer implement this feature as a
'compilation end' analyzer.  Instead, it's a 'symbol analyzer'.  This should ideally
mean that the results it produces are available much quicker since we don't have to
wait for the compiltion analysis to end.

Previously this was a compilation analyzer because we wanted to also analyze all
usages to see if switching to an auto-prop would break things.  Now we eagerly
detect that you can convert to an auto prop, but we defer the conflict check
to when you try to apply the feature (like we do for "inline temp").
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

tagging @dotnet/roslyn-ide

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure how this file changed. will revert.

Conflicts:
	src/EditorFeatures/VisualBasic/UseAutoProperty/VisualBasicUseAutoPropertyAnalyzer.vb
@davkean
Copy link
Copy Markdown
Member

davkean commented Nov 24, 2015

tag @dotnet/roslyn-ide

@CyrusNajmabadi CyrusNajmabadi deleted the useAutoProp branch July 14, 2016 03:13
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.

4 participants