Beispiel #1
0
        public static ParseCacheList CreateCacheList(AbstractDProject Project = null)
        {
            if (Project != null)
            {
                var pcl = ParseCacheList.Create(Project.LocalFileCache, Project.LocalIncludeCache, Project.Compiler.ParseCache);

                // Automatically include dep projects' caches
                foreach (var dep in Project.GetReferencedItems(IdeApp.Workspace.ActiveConfiguration))
                    if (dep is AbstractDProject)
                        pcl.Add((dep as AbstractDProject).LocalFileCache);

                return pcl;
            }
            else
                return ParseCacheList.Create(DCompilerService.Instance.GetDefaultCompiler().ParseCache);
        }