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

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