public DaemonStageProcess(IDaemonProcess process, SearchDomainFactory searchDomainFactory, ICSharpFile csFile) { this.searchDomainFactory = searchDomainFactory; this.csFile = csFile; DaemonProcess = process; usages = process.GetStageProcess<CollectUsagesStageProcess>(); Assertion.Assert(usages != null, "usages != null"); }
public DaemonStageProcess(IDaemonProcess process, SearchDomainFactory searchDomainFactory, ICSharpFile csFile) { this.searchDomainFactory = searchDomainFactory; this.csFile = csFile; DaemonProcess = process; usages = process.GetStageProcess <CollectUsagesStageProcess>(); Assertion.Assert(usages != null, "usages != null"); }
public NancyDaemonStageProcess(SearchDomainFactory searchDomainFactory, [NotNull] IDaemonProcess daemonProcess, [CanBeNull] CollectUsagesStageProcess collectUsagesStageProcess, IContextBoundSettingsStore settingsStore) { DaemonProcess = daemonProcess; this.searchDomainFactory = searchDomainFactory; this.collectUsagesStageProcess = collectUsagesStageProcess; this.settingsStore = settingsStore; }
public NancyDaemonStageProcess(SearchDomainFactory searchDomainFactory, [NotNull] IDaemonProcess daemonProcess, [CanBeNull] CollectUsagesStageProcess collectUsagesStageProcess, IContextBoundSettingsStore settingsStore) { DaemonProcess = daemonProcess; this.searchDomainFactory = searchDomainFactory; this.collectUsagesStageProcess = collectUsagesStageProcess; this.settingsStore = settingsStore; }
public TypeUsageManager(CollectUsagesStageProcess collectUsagesStageProcess) { if (collectUsagesStageProcess == null) { throw new InvalidOperationException("collectUsagesStageProcess is null"); } this.collectUsagesStageProcess = collectUsagesStageProcess; }
public TypeUsageManager(CollectUsagesStageProcess collectUsagesStageProcess) { if (collectUsagesStageProcess == null) { throw new InvalidOperationException("collectUsagesStageProcess is null"); } this.collectUsagesStageProcess = collectUsagesStageProcess; }
public override ICollectUsagesPsiFileProcessor CreatePsiFileProcessor( CollectUsagesStageProcess collectUsagesStageProcess, IDaemonProcess daemonProcess, IContextBoundSettingsStore settingsStore, CollectUsagesStageProcess.PersistentData persistentData, TaskBarrier fibers, IReadOnlyList <IFile> psiFiles, IScopeProcessorFactory scopeProcessorFactory) { // TODO: We could return a no-op processor for .meta or boring assets return(new YamlCollectUsagesPsiFileProcessor()); }
private void MarkModulesAsUsed([CanBeNull] CollectUsagesStageProcess usagesStageProcess) { if (usagesStageProcess != null) { IEnumerable <IClass> nancyModules = NancyUtil.GetAvailableModules(DaemonProcess.PsiModule, searchDomainFactory.CreateSearchDomain(DaemonProcess.SourceFile), DaemonProcess.SourceFile.ResolveContext, true, null).SelectMany(_ => _.Value); foreach (IClass @class in nancyModules) { InterruptableActivityCookie.CheckAndThrow(); collectUsagesStageProcess.SetElementState(@class, UsageState.ACCESSED | UsageState.TYPEOF); } } }