public void RegisterSyntaxTreeAction(DiagnosticAnalyzer analyzer, Action <SyntaxTreeAnalysisContext> action)
        {
            SyntaxTreeAnalyzerAction analyzerAction = new SyntaxTreeAnalyzerAction(action, analyzer);

            this.GetOrCreateAnalyzerActions(analyzer).AddSyntaxTreeAction(analyzerAction);
            _syntaxTreeActions = _syntaxTreeActions.Add(analyzerAction);
        }
 internal void AddSyntaxTreeAction(SyntaxTreeAnalyzerAction action)
 {
     _syntaxTreeActions = _syntaxTreeActions.Add(action);
 }
Exemplo n.º 3
0
 internal void AddSyntaxTreeAction(SyntaxTreeAnalyzerAction action)
 {
     _syntaxTreeActions = _syntaxTreeActions.Add(action);
     IsEmpty            = false;
 }