public NTriplesCache(
     Lifetime lifetime,
     IShellLocks shellLocks,
     IPsiConfiguration psiConfiguration,
     IPersistentIndexManager persistentIdIndex)
     : base(lifetime, shellLocks, psiConfiguration, persistentIdIndex)
 {
 }
Beispiel #2
0
 public PsiCache(Lifetime lifetime,
                 IShellLocks shellLocks,
                 IPsiConfiguration psiConfiguration, IPersistentIndexManager persistentIdIndex)
 {
     myPsiConfiguration  = psiConfiguration;
     myPersistentIdIndex = persistentIdIndex;
     myShellLocks        = shellLocks;
 }
Beispiel #3
0
 public NTriplesCache(
     Lifetime lifetime,
     IShellLocks shellLocks,
     IPsiConfiguration psiConfiguration,
     IPersistentIndexManager persistentIdIndex)
     : base(lifetime, shellLocks, psiConfiguration, persistentIdIndex)
 {
 }
 public JavaScriptDependentFilesCacheHack(
 Lifetime lifetime, IViewable<ILibraryFiles> libraryFiles,
 JavaScriptDependentFilesModuleFactory dependentFilesModuleFactory,
 JavaScriptDependentFilesBuilder builder, IShellLocks locks,
 IPsiConfiguration configuration, IPersistentIndexManager persistentIndexManager)
     : base(lifetime, new ListEvents<ILibraryFiles>(lifetime, "booo"),
        dependentFilesModuleFactory, builder,
        locks, configuration, persistentIndexManager)
 {
 }
Beispiel #5
0
 public PsiCache(Lifetime lifetime,
                 IPsiServices psiServices,
                 IShellLocks shellLocks,
                 CacheManager cacheManager,
                 IPsiConfiguration psiConfiguration, IPersistentIndexManager persistentIdIndex)
 {
     myPsiConfiguration  = psiConfiguration;
     myPersistentIdIndex = persistentIdIndex;
     myShellLocks        = shellLocks;
     //using (ReadLockCookie.Create())
     //{
     lifetime.AddBracket(() => cacheManager.RegisterCache(this), () => cacheManager.UnregisterCache(this));
     //}
 }
Beispiel #6
0
 protected SimpleCacheBase(
     ISolution solution,
     IShellLocks shellLocks,
     IPsiConfiguration psiConfiguration,
     IPersistentIndexManager persistentIndexManager,
     int cacheFormatVersion,
     string cacheName)
 {
     _solution               = solution;
     _cacheFormatVersion     = cacheFormatVersion;
     _cacheName              = cacheName;
     _shellLocks             = shellLocks;
     _psiConfiguration       = psiConfiguration;
     _persistentIndexManager = persistentIndexManager;
 }
Beispiel #7
0
        protected NTriplesCacheBase(
            Lifetime lifetime,
            IShellLocks shellLocks,
            IPsiConfiguration psiConfiguration,
            IPersistentIndexManager persistentIdIndex)
        {
            this.myPsiConfiguration  = psiConfiguration;
            this.myPersistentIdIndex = persistentIdIndex;
            this.myShellLocks        = shellLocks;

            //using (ReadLockCookie.Create())
            //{
            //lifetime.AddBracket(() => cacheManager.RegisterCache(this), () => cacheManager.UnregisterCache(this));
            //}
        }
Beispiel #8
0
 public TestCache(Lifetime lifetime, ISolution solution, IUnitTestingSettingsAccessor settingsAccessor,
                  IShellLocks shellLocks, IPsiConfiguration psiConfiguration, ISettingsStore settingsStore,
                  KarmaTestProvider testProvider, JasmineElementFactory jasmineFactory,
                  IPersistentIndexManager persistentIndexManager, IJavaScriptDependencyManager javaScriptDependencyManager)
 {
     _lifetime                    = lifetime;
     _solution                    = solution;
     _settingsAccessor            = settingsAccessor;
     _shellLocks                  = shellLocks;
     _psiConfiguration            = psiConfiguration;
     _testProvider                = testProvider;
     myJasmineFactory             = jasmineFactory;
     _persistentIndexManager      = persistentIndexManager;
     _javaScriptDependencyManager = javaScriptDependencyManager;
     _settingsStore               = settingsStore.BindToContextLive(lifetime, ContextRange.ManuallyRestrictWritesToOneContext(solution.ToDataContext()), BindToContextFlags.Normal);
     _settingsStore.Changed.Advise(lifetime, OnSettingsChange);
     Active = new Property <bool>(lifetime, "KarmaTestCache", true);
 }
Beispiel #9
0
		public TestCache(Lifetime lifetime, ISolution solution, IUnitTestingSettingsAccessor settingsAccessor,
			IShellLocks shellLocks, IPsiConfiguration psiConfiguration, ISettingsStore settingsStore,
			KarmaTestProvider testProvider, JasmineElementFactory jasmineFactory,
			IPersistentIndexManager persistentIndexManager, IJavaScriptDependencyManager javaScriptDependencyManager)
		{
			_lifetime = lifetime;
			_solution = solution;
			_settingsAccessor = settingsAccessor;
			_shellLocks = shellLocks;
			_psiConfiguration = psiConfiguration;
			_testProvider = testProvider;
			myJasmineFactory = jasmineFactory;
			_persistentIndexManager = persistentIndexManager;
			_javaScriptDependencyManager = javaScriptDependencyManager;
			_settingsStore = settingsStore.BindToContextLive(lifetime, ContextRange.ManuallyRestrictWritesToOneContext(solution.ToDataContext()), BindToContextFlags.Normal);
			_settingsStore.Changed.Advise(lifetime, OnSettingsChange);
			Active = new Property<bool>(lifetime, "KarmaTestCache", true);
		}
Beispiel #10
0
        public NitraSolutionComponent(Lifetime lifetime, ISolution solution, ChangeManager changeManager, DocumentManager documentManager,
                                      IShellLocks locks, IPsiConfiguration psiConfiguration, IPersistentIndexManager persistentIndexManager)
        {
            _persistentIndexManager = persistentIndexManager;
            _psiConfiguration       = psiConfiguration;
            _locks           = locks;
            _solution        = solution;
            _documentManager = documentManager;
            //changeManager.Changed2.Advise(lifetime, OnChangeManagerChanged);

            changeManager.RegisterChangeProvider(lifetime, this);
            changeManager.AddDependency(lifetime, this, documentManager.ChangeProvider);
            changeManager.AddDependency(lifetime, this, solution);

            foreach (var project in solution.GetAllProjects())
            {
                Debug.WriteLine(project.Name);
                //var projectItem = project as JetBrains.Proj
                foreach (var file in project.GetAllProjectFiles())
                {
                    var ext = System.IO.Path.GetExtension(file.Name);
                    if (string.Equals(ext, ".dll", StringComparison.InvariantCultureIgnoreCase))
                    {
                        continue;
                    }

                    if (file.LanguageType.Name == "MSBuild")
                    {
                        continue;
                    }

                    if (string.Equals(ext, ".dsl", StringComparison.InvariantCultureIgnoreCase))
                    {
                        var    stream  = file.CreateReadStream();
                        string content = "";
                        using (var streamReader = new StreamReader(stream))
                            content = streamReader.ReadToEnd();
                        Debug.WriteLine(content);
                    }

                    Debug.WriteLine(file.Name);
                }
            }
        }
Beispiel #11
0
        public NitraSolutionComponent(Lifetime lifetime, ISolution solution, ChangeManager changeManager, DocumentManager documentManager,
            IShellLocks locks, IPsiConfiguration psiConfiguration, IPersistentIndexManager persistentIndexManager)
        {
            _persistentIndexManager = persistentIndexManager;
              _psiConfiguration = psiConfiguration;
              _locks = locks;
              _solution = solution;
              _documentManager = documentManager;
              //changeManager.Changed2.Advise(lifetime, OnChangeManagerChanged);

              changeManager.RegisterChangeProvider(lifetime, this);
              changeManager.AddDependency(lifetime, this, documentManager.ChangeProvider);
              changeManager.AddDependency(lifetime, this, solution);

              foreach (var project in solution.GetAllProjects())
              {
            Debug.WriteLine(project.Name);
            //var projectItem = project as JetBrains.Proj
            foreach (var file in project.GetAllProjectFiles())
            {
              var ext = System.IO.Path.GetExtension(file.Name);
              if (string.Equals(ext, ".dll", StringComparison.InvariantCultureIgnoreCase))
            continue;

              if (file.LanguageType.Name == "MSBuild")
            continue;

              if (string.Equals(ext, ".dsl", StringComparison.InvariantCultureIgnoreCase))
              {
            var stream = file.CreateReadStream();
            string content = "";
            using (var streamReader = new StreamReader(stream))
              content = streamReader.ReadToEnd();
            Debug.WriteLine(content);
              }

              Debug.WriteLine(file.Name);
            }

              }
        }
Beispiel #12
0
 public PsiPersistentCache(IShellLocks locks, int formatVersion, string cacheDirectoryName, IPsiConfiguration psiConfiguration)
     : base(locks, formatVersion, cacheDirectoryName, psiConfiguration)
 {
 }
Beispiel #13
0
        public AttributedTypesCache(Lifetime lifetime, IDependencyStore dependencyStore, IShellLocks shellLocks, IPsiConfiguration psiConfiguration, IPersistentIndexManager persistentIndexManager, CommonIdentifierIntern identifierIntern, AttributedTypesCacheBuilder builder, ISolution solution, IShellLocks locks, IPsiFiles psiFiles)
        {
            myShellLocks             = shellLocks;
            myPersistentIndexManager = persistentIndexManager;
            Builder    = builder;
            myLocks    = locks;
            myPsiFiles = psiFiles;

            var solutionCacheFolder = psiConfiguration.SolutionCachesConfiguration.GetSolutionCacheFolder(solution);

            myCacheFile = solutionCacheFolder.Combine(IMAGE_FILE);
        }