public void RegisterSemanticModelAction(DiagnosticAnalyzer analyzer, Action <SemanticModelAnalysisContext> action)
        {
            SemanticModelAnalyzerAction analyzerAction = new SemanticModelAnalyzerAction(action, analyzer);

            this.GetOrCreateAnalyzerActions(analyzer).AddSemanticModelAction(analyzerAction);
            _semanticModelActions = _semanticModelActions.Add(analyzerAction);
        }
 internal void AddSemanticModelAction(SemanticModelAnalyzerAction action)
 {
     _semanticModelActions = _semanticModelActions.Add(action);
 }
Пример #3
0
 internal void AddSemanticModelAction(SemanticModelAnalyzerAction action)
 {
     _semanticModelActions = _semanticModelActions.Add(action);
     IsEmpty = false;
 }