Esempio n. 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);
        }
Esempio n. 2
0
 internal void AddOperationBlockStartAction(OperationBlockStartAnalyzerAction action)
 {
     _operationBlockStartActions = _operationBlockStartActions.Add(action);
 }