1 instantiation of MetadataShadowCopy
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
428return new CacheEntry<MetadataShadowCopy>(new MetadataShadowCopy(manifestModuleCopy, documentationFileCopy, publicMetadata), privateMetadata);
22 references to MetadataShadowCopy
Microsoft.CodeAnalysis.Scripting (12)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
111MetadataShadowCopy? copy = null;
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (11)
52private readonly Dictionary<FileKey, CacheEntry<MetadataShadowCopy>> _shadowCopies = new Dictionary<FileKey, CacheEntry<MetadataShadowCopy>>(); 288public MetadataShadowCopy GetMetadataShadowCopy(string fullPath, MetadataImageKind kind) 293private MetadataShadowCopy GetMetadataShadowCopyNoCheck(string fullPath, MetadataImageKind kind) 304CacheEntry<MetadataShadowCopy> existing; 311CacheEntry<MetadataShadowCopy> newCopy = CreateMetadataShadowCopy(fullPath, kind); 330CacheEntry<MetadataShadowCopy> existing; 343private bool CopyExistsOrIsSuppressed(FileKey key, out CacheEntry<MetadataShadowCopy> existing) 347existing = default(CacheEntry<MetadataShadowCopy>); 397private CacheEntry<MetadataShadowCopy> CreateMetadataShadowCopy(string originalPath, MetadataImageKind kind) 428return new CacheEntry<MetadataShadowCopy>(new MetadataShadowCopy(manifestModuleCopy, documentationFileCopy, publicMetadata), privateMetadata);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (10)
MetadataShadowCopyProviderTests.cs (10)
88var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly); 89var sc2 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly); 107var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly); 116var sc2 = _provider.GetMetadataShadowCopy(mscorlib, MetadataImageKind.Assembly); 127var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly); 131var sc2 = _provider.GetMetadataShadowCopy(sc1.PrimaryModule.FullPath, MetadataImageKind.Assembly); 200var sc1 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly); 201var sc2 = _provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly); 213var sc3a = _provider.GetMetadataShadowCopy(dll2.Path, MetadataImageKind.Module); 230var sc = provider.GetMetadataShadowCopy(dll.Path, MetadataImageKind.Assembly);