Exemplo n.º 1
0
 internal void AddCompilationStartAction(CompilationStartAnalyzerAction action)
 {
     _compilationStartActions = _compilationStartActions.Add(action);
     IsEmpty = false;
 }
Exemplo n.º 2
0
        public void RegisterCompilationStartAction(DiagnosticAnalyzer analyzer, Action <CompilationStartAnalysisContext> action)
        {
            CompilationStartAnalyzerAction analyzerAction = new CompilationStartAnalyzerAction(action, analyzer);

            this.GetOrCreateAnalyzerActions(analyzer).AddCompilationStartAction(analyzerAction);
        }