Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. private CompilationWithAnalyzers GetAnalyzerAwareCompilation(Compilation compilation)
  2. {
  3. ImmutableArray<DiagnosticAnalyzer> analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new TypeNameShouldStartWithCapitalLetterDiagnosticAnalyzer());
  4.  
  5. CompilationWithAnalyzers compilationWithAnalyzers = new CompilationWithAnalyzers(compilation, analyzers,
  6. GetAnalyzerOptions(),
  7. new CancellationToken());
  8. return compilationWithAnalyzers;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement