Example #1
0
 internal void AddSemanticModelAction(SemanticModelAnalyzerAction action)
 {
     _semanticModelActions = _semanticModelActions.Add(action);
     IsEmpty = false;
 }
Example #2
0
        public void RegisterSemanticModelAction(DiagnosticAnalyzer analyzer, Action <SemanticModelAnalysisContext> action)
        {
            SemanticModelAnalyzerAction analyzerAction = new SemanticModelAnalyzerAction(action, analyzer);

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