コード例 #1
0
 internal void AddCompilationStartAction(CompilationStartAnalyzerAction action)
 {
     _compilationStartActions = _compilationStartActions.Add(action);
     IsEmpty = false;
 }
コード例 #2
0
        public void RegisterCompilationStartAction(DiagnosticAnalyzer analyzer, Action <CompilationStartAnalysisContext> action)
        {
            CompilationStartAnalyzerAction analyzerAction = new CompilationStartAnalyzerAction(action, analyzer);

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