Beispiel #1
0
        public override void ProcessBeforeInterior(ITreeNode element, IHighlightingConsumer consumer)
        {
            myContext.AdvanceContext(element, myProcessKind, myContextProviders);

            try
            {
                foreach (var(problemAnalyzerContext, problemAnalyzers) in myProblemAnalyzersByContext)
                {
                    if (!myContext.IsSuperSetOf(problemAnalyzerContext))
                    {
                        continue;
                    }

                    foreach (var problemAnalyzer in problemAnalyzers)
                    {
                        problemAnalyzer.RunInspection(element, DaemonProcess, myProcessKind, consumer, myContext);
                    }
                }
            }
            catch (OperationCanceledException)
            {
                throw;
            }
            catch (Exception exception)
            {
                myLogger.Error(exception, "An exception occured during call graph problem analyzer execution");
            }
        }
Beispiel #2
0
        public override void ProcessBeforeInterior(ITreeNode element, IHighlightingConsumer consumer)
        {
            myContext.AdvanceContext(element, myContextProviders);

            try
            {
                foreach (var problemAnalyzer in myProblemAnalyzers)
                {
                    IsProcessingFinished(consumer);
                    problemAnalyzer.RunInspection(element, consumer, myContext);
                }
            }
            catch (OperationCanceledException)
            {
                throw;
            }
            catch (Exception exception)
            {
                myLogger.Error(exception, "An exception occured during call graph problem analyzer execution");
            }
        }