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

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