コード例 #1
0
        protected void LoadFromCompiledPackage(ALProjectFile projectFile)
        {
            string projectPackageFileName = System.IO.Path.Combine(this.Path, projectFile.publisher.NotNull() + "_" +
                                                                   projectFile.name.NotNull() + "_" +
                                                                   projectFile.version.NotNull() + ".app");

            if (File.Exists(projectPackageFileName))
            {
                ALPackageSymbolsLibrary mainSymbolsLib = this.PackageSymbolsCache.GetSymbols(projectPackageFileName, false);
                this.Root.AddChildSymbol(mainSymbolsLib.Root);
            }
            else
            {
                this.Root.AddChildSymbol(new ALSymbolInformation(ALSymbolKind.Package, "Recompile solution - project file not found"));
            }
        }
コード例 #2
0
        public ALPackageSymbolsLibrary GetSymbols(string path, bool forceReload)
        {
            this.ClearInvalidPackages();
            ALPackageSymbolsLibrary symbols;

            if (!_cache.ContainsKey(path))
            {
                symbols = new ALPackageSymbolsLibrary(path);
                _cache.Add(path, symbols);
            }
            else
            {
                symbols = _cache[path];
            }
            symbols.Load(forceReload);
            return(symbols);
        }