public void RegisterCompilationEndAction(DiagnosticAnalyzer analyzer, Action <CompilationEndAnalysisContext> action)
        {
            CompilationEndAnalyzerAction analyzerAction = new CompilationEndAnalyzerAction(action, analyzer);

            this.GetOrCreateAnalyzerActions(analyzer).AddCompilationEndAction(analyzerAction);
            _compilationEndActions = _compilationEndActions.Add(analyzerAction);
        }
 internal void AddCompilationEndAction(CompilationEndAnalyzerAction action)
 {
     _compilationEndActions = _compilationEndActions.Add(action);
 }