예제 #1
0
 internal void AddSymbolStartAction(SymbolStartAnalyzerAction action)
 {
     _symbolStartActions = _symbolStartActions.Add(action);
     IsEmpty             = false;
 }
예제 #2
0
        public void RegisterSymbolStartAction(DiagnosticAnalyzer analyzer, Action <SymbolStartAnalysisContext> action, SymbolKind symbolKind)
        {
            var analyzerAction = new SymbolStartAnalyzerAction(action, symbolKind, analyzer);

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