public void RunInspection(ITreeNode node, IDaemonProcess daemonProcess, DaemonProcessKind kind,
                           IHighlightingConsumer consumer, CallGraphContext context)
 {
     if (node is T t)
     {
         Analyze(t, daemonProcess, kind, consumer);
     }
 }
Ejemplo n.º 2
0
 public CallGraphProcess(
     IDaemonProcess process,
     DaemonProcessKind processKind,
     ICSharpFile file,
     ILogger logger,
     IEnumerable <ICallGraphContextProvider> contextProviders,
     IEnumerable <ICallGraphProblemAnalyzer> problemAnalyzers)
     : base(process, file)
 {
     myContext          = new CallGraphContext(processKind, process);
     myLogger           = logger;
     myContextProviders = contextProviders;
     myProblemAnalyzers = problemAnalyzers;
 }
        public UnityHighlightingProcess(
            [NotNull] IDaemonProcess process,
            [NotNull] ICSharpFile file,
            IEnumerable <IUnityDeclarationHighlightingProvider> declarationHighlightingProviders,
            UnityApi api,
            UnityCommonIconProvider commonIconProvider,
            DaemonProcessKind processKind)
            : base(process, file)
        {
            myContext = new CallGraphContext(processKind, process);
            myDeclarationHighlightingProviders = declarationHighlightingProviders;
            myAPI = api;
            myCommonIconProvider = commonIconProvider;

            myEventFunctions = DaemonProcess.CustomData.GetData(UnityEventFunctionAnalyzer.UnityEventFunctionNodeKey)
                               ?.Where(t => t != null && t.IsValid()).ToJetHashSet();

            DaemonProcess.CustomData.PutData(UnityEventFunctionAnalyzer.UnityEventFunctionNodeKey, myEventFunctions);
        }