예제 #1
0
        public void RegisterOperationBlockAction(DiagnosticAnalyzer analyzer, Action <OperationBlockAnalysisContext> action)
        {
            OperationBlockAnalyzerAction analyzerAction = new OperationBlockAnalyzerAction(action, analyzer);

            this.GetOrCreateAnalyzerActions(analyzer).AddOperationBlockAction(analyzerAction);
            _operationBlockActions = _operationBlockActions.Add(analyzerAction);
        }
예제 #2
0
 internal void AddOperationBlockEndAction(OperationBlockAnalyzerAction action)
 {
     _operationBlockEndActions = _operationBlockEndActions.Add(action);
 }
예제 #3
0
 internal void AddOperationBlockAction(OperationBlockAnalyzerAction action)
 {
     _operationBlockActions = _operationBlockActions.Add(action);
     IsEmpty = false;
 }