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