protected override void Analyze(IInvocationExpression expression, IHighlightingConsumer consumer, IReadOnlyCallGraphContext context) { var callee = CallGraphUtil.GetCallee(expression); if (PerformanceCriticalCodeStageUtil.IsInvokedElementExpensive(callee as IMethod) || myContextProvider.IsMarkedStage(callee, context)) { CreateHighlighting(expression, consumer); } }
protected override bool IsMarkedFast(IDeclaredElement declaredElement) => PerformanceCriticalCodeStageUtil.IsInvokedElementExpensive(declaredElement as IMethod);