Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private CompilationWithAnalyzers GetAnalyzerAwareCompilation(Compilation compilation)
- {
- ImmutableArray<DiagnosticAnalyzer> analyzers = ImmutableArray.Create<DiagnosticAnalyzer>(new TypeNameShouldStartWithCapitalLetterDiagnosticAnalyzer());
- CompilationWithAnalyzers compilationWithAnalyzers = new CompilationWithAnalyzers(compilation, analyzers,
- GetAnalyzerOptions(),
- new CancellationToken());
- return compilationWithAnalyzers;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement