Ejemplo n.º 1
0
        void LoadCache()
        {
            if (!Environment.CanCacheIL)
            {
                return;
            }

            foreach (var upk in Input.Packages)
            {
                Namespace il;
                if (!upk.TryGetCache(SourcePackage.ILKey, out il))
                {
                    continue;
                }

                // Load IL cached in memory for faster `uno doctor`
                LoadNamespace(upk, il, Data.IL);
            }

            // Clean NameResolver cache because we've introduced new stuff
            NameResolver.ClearCache();
        }