Skip to content

Use auto prop perf#5821

Closed
mavasani wants to merge 6 commits intodotnet:masterfrom
mavasani:useAutoPropPerf
Closed

Use auto prop perf#5821
mavasani wants to merge 6 commits intodotnet:masterfrom
mavasani:useAutoPropPerf

Conversation

@mavasani
Copy link
Copy Markdown
Contributor

@mavasani mavasani commented Oct 9, 2015

No description provided.

CyrusNajmabadi and others added 4 commits October 6, 2015 10:39
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").
1. Auto property analyzer now implements IBuiltInAnalyzer to explicitly specify which category of analyses it supports.
2. Switch method body compilers to use the origin semantic model for caching bound nodes if computing diagnostics for a semantic model.
@mavasani
Copy link
Copy Markdown
Contributor Author

mavasani commented Oct 9, 2015

/cc @CyrusNajmabadi see e285e65 for couple of changes I have tried on top of your original PR #5722

1) Change the auto property analyzer to register symbol actions for named types instead of properties. Otherwise, a diagnostic reported on a field from a property action is deemed as a non-local diagnostic.
2. Switch analyzer driver to now use the event from compilation event.
@davkean
Copy link
Copy Markdown
Member

davkean commented Nov 17, 2015

This is getting stale, is this relevant anymore?

@mavasani
Copy link
Copy Markdown
Contributor Author

Nope, closing it now.

@mavasani mavasani closed this Nov 17, 2015
jjonescz pushed a commit to jjonescz/roslyn that referenced this pull request Apr 28, 2026
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.

5 participants