Ejemplo n.º 1
0
 public void AddCompilationStartAction(CompilationStartAnalyzerAction action)
 {
     this.compilationStartActions = this.compilationStartActions.Add(action);
 }
Ejemplo n.º 2
0
 public void RegisterCompilationStartAction(DiagnosticAnalyzer analyzer, Action<CompilationStartAnalysisContext> action)
 {
     CompilationStartAnalyzerAction analyzerAction = new CompilationStartAnalyzerAction(action, analyzer);
     this.GetOrCreateAnalyzerActions(analyzer).AddCompilationStartAction(analyzerAction);
     this.compilationStartActions = this.compilationStartActions.Add(analyzerAction);
 }