Пример #1
0
        public void RegisterOperationBlockStartAction(DiagnosticAnalyzer analyzer, Action <OperationBlockStartAnalysisContext> action)
        {
            OperationBlockStartAnalyzerAction analyzerAction = new OperationBlockStartAnalyzerAction(action, analyzer);

            this.GetOrCreateAnalyzerActions(analyzer).AddOperationBlockStartAction(analyzerAction);
            _operationBlockStartActions = _operationBlockStartActions.Add(analyzerAction);
        }
Пример #2
0
 internal void AddOperationBlockStartAction(OperationBlockStartAnalyzerAction action)
 {
     _operationBlockStartActions = _operationBlockStartActions.Add(action);
 }