コード例 #1
0
        public void RegisterCodeBlockAction(DiagnosticAnalyzer analyzer, Action <CodeBlockAnalysisContext> action)
        {
            CodeBlockAnalyzerAction analyzerAction = new CodeBlockAnalyzerAction(action, analyzer);

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