Exemple #1
0
 internal void AddSyntaxTreeAction(SyntaxTreeAnalyzerAction action)
 {
     _syntaxTreeActions = _syntaxTreeActions.Add(action);
     IsEmpty            = false;
 }
Exemple #2
0
        public void RegisterSyntaxTreeAction(DiagnosticAnalyzer analyzer, Action <SyntaxTreeAnalysisContext> action)
        {
            SyntaxTreeAnalyzerAction analyzerAction = new SyntaxTreeAnalyzerAction(action, analyzer);

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