public virtual void AddFrequentlyCalledMethodHighlighting(IHighlightingConsumer consumer,
                                                           ICSharpDeclaration declaration,
                                                           string text, string tooltip, DaemonProcessKind kind)
 {
     consumer.AddHotHighlighting(ContextProvider, declaration,
                                 SettingsStore.BoundSettingsStore, text, tooltip, kind, EnumerableCollection <BulbMenuItem> .Empty, true);
 }
 public virtual void AddFrequentlyCalledMethodHighlighting(IHighlightingConsumer consumer,
                                                           ICSharpDeclaration declaration,
                                                           string text, string tooltip, DaemonProcessKind kind)
 {
     consumer.AddHotHighlighting(CallGraphSwaExtensionProvider, declaration, MarksProvider, Settings, text,
                                 tooltip, kind, EnumerableCollection <BulbMenuItem> .Empty, myProvider, true);
 }
Beispiel #3
0
 protected virtual void AddHighlighting(IHighlightingConsumer consumer, ICSharpDeclaration element, string text,
                                        string tooltip, DaemonProcessKind kind)
 {
     consumer.AddImplicitConfigurableHighlighting(element);
     consumer.AddHotHighlighting(CallGraphSwaExtensionProvider, element, MarksProvider,
                                 SettingsStore.BoundSettingsStore, text, tooltip, kind, GetActions(element), ElementIdProvider);
 }
        public virtual void AddFrequentlyCalledMethodHighlighting(IHighlightingConsumer consumer,
                                                                  ICSharpDeclaration cSharpDeclaration,
                                                                  string text, string tooltip, IReadOnlyCallGraphContext context)
        {
            // gutter mark
            var actions = GetActions(cSharpDeclaration, context);

            consumer.AddHotHighlighting(PerformanceContextProvider, cSharpDeclaration,
                                        SettingsStore.BoundSettingsStore, text, tooltip, context, actions, true);
        }
Beispiel #5
0
 public virtual void AddEventFunctionHighlighting(IHighlightingConsumer consumer, IMethod method,
                                                  UnityEventFunction eventFunction, string text, DaemonProcessKind kind)
 {
     foreach (var declaration in method.GetDeclarations())
     {
         if (declaration is ICSharpDeclaration cSharpDeclaration)
         {
             consumer.AddImplicitConfigurableHighlighting(cSharpDeclaration);
             consumer.AddHotHighlighting(Swa, CallGraphSwaExtensionProvider, cSharpDeclaration, Analyzer, Settings, text,
                                         GetEventFunctionTooltip(eventFunction), kind, GetEventFunctionActions(cSharpDeclaration));
         }
     }
 }
        public virtual void AddEventFunctionHighlighting(IHighlightingConsumer consumer, IMethod method,
                                                         UnityEventFunction eventFunction, string text, IReadOnlyCallGraphContext context)
        {
            var tooltip = GetEventFunctionTooltip(eventFunction);

            foreach (var declaration in method.GetDeclarations())
            {
                if (declaration is ICSharpDeclaration cSharpDeclaration)
                {
                    consumer.AddImplicitConfigurableHighlighting(cSharpDeclaration);
                    consumer.AddHotHighlighting(PerformanceContextProvider, cSharpDeclaration,
                                                SettingsStore.BoundSettingsStore, text, tooltip, context, GetEventFunctionActions(cSharpDeclaration, context));
                }
            }
        }
 protected virtual void AddHighlighting(IHighlightingConsumer consumer, ICSharpDeclaration element, string text,
                                        string tooltip, IReadOnlyCallGraphContext context)
 {
     consumer.AddImplicitConfigurableHighlighting(element);
     consumer.AddHotHighlighting(ContextProvider, element, SettingsStore.BoundSettingsStore, text, tooltip, context, GetActions(element));
 }
 protected virtual void AddHighlighting(IHighlightingConsumer consumer, ICSharpDeclaration element, string text,
                                        string tooltip, DaemonProcessKind kind)
 {
     consumer.AddImplicitConfigurableHighlighting(element);
     consumer.AddHotHighlighting(Swa, CallGraphSwaExtensionProvider, element, Analyzer, Settings, text, tooltip, kind, GetActions(element));
 }