Created
June 3, 2015 03:35
-
-
Save joymon/5300b07d2ea88c612768 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private CompilationWithAnalyzers GetAnalyzerAwareCompilation(Compilation compilation) | |
{ | |
ImmutableArray<DiagnosticAnalyzer> analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new TypeNameShouldStartWithCapitalLetterDiagnosticAnalyzer()); | |
CompilationWithAnalyzers compilationWithAnalyzers = new CompilationWithAnalyzers(compilation, analyzers, | |
GetAnalyzerOptions(), | |
new CancellationToken()); | |
return compilationWithAnalyzers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment