public void RegisterCodeBlockAction(DiagnosticAnalyzer analyzer, Action <CodeBlockAnalysisContext> action)
        {
            CodeBlockAnalyzerAction analyzerAction = new CodeBlockAnalyzerAction(action, analyzer);

            this.GetOrCreateAnalyzerActions(analyzer).AddCodeBlockAction(analyzerAction);
        }
 internal void AddCodeBlockAction(CodeBlockAnalyzerAction action)
 {
     _codeBlockActions = _codeBlockActions.Add(action);
     IsEmpty           = false;
 }
示例#3
0
 internal void AddCodeBlockAction(CodeBlockAnalyzerAction action)
 {
     _codeBlockActions = _codeBlockActions.Add(action);
 }