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

Incorporating new language features #8

Open
conwid opened this issue May 21, 2018 · 1 comment
Open

Incorporating new language features #8

conwid opened this issue May 21, 2018 · 1 comment

Comments

@conwid
Copy link
Owner

conwid commented May 21, 2018

The currently generated guard clauses could be made a lot more elegant by using the nameof operator and throw expressions. But in order to do this, first we should be able to determine the selected C# language version of the project.
See the stackoverflow question:

https://stackoverflow.com/questions/50176715/roslyn-net-compiler-platform-get-current-project-c-sharp-language-version

@conwid
Copy link
Owner Author

conwid commented Sep 25, 2018

This would be probably possible by changing the whole idea behind the tool and instead of a CodeRefactoringProvider, an Analyzer and a CodeFixProvider should be created. When registering a syntax node action with RegisterSyntaxNodeAction, the language version can be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant