3 instantiations of FileKey
Microsoft.VisualStudio.LanguageServices (3)
FileKey.cs (1)
40return new FileKey(fullPath, FileUtilities.GetFileTimeStamp(fullPath));
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (2)
94var key = new FileKey(fullPath, snapshotTimestamp); 138var key = new FileKey(fullPath, snapshotTimestamp);
23 references to FileKey
Microsoft.VisualStudio.LanguageServices (23)
FileKey.cs (5)
11internal readonly struct FileKey : IEquatable<FileKey> 38public static FileKey Create(string fullPath) 52return obj is FileKey && Equals((FileKey)obj); 60public bool Equals(FileKey other)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (11)
94var key = new FileKey(fullPath, snapshotTimestamp); 138var key = new FileKey(fullPath, snapshotTimestamp); 184FileKey moduleFileKey, out TemporaryStorageService.TemporaryStreamStorage storage, out ModuleMetadata metadata) 197FileKey moduleFileKey, out TemporaryStorageService.TemporaryStreamStorage storage, out UnmanagedMemoryStream stream) 254private AssemblyMetadata CreateAssemblyMetadataFromMetadataImporter(FileKey fileKey) 267ModuleMetadata? TryCreateModuleMetadataFromMetadataImporter(FileKey moduleFileKey) 282bool TryGetFileMappingFromMetadataImporter(FileKey fileKey, [NotNullWhen(true)] out IMetaDataInfo? info, out IntPtr pImage, out long length) 320FileKey fileKey, 321Func<FileKey, ModuleMetadata> moduleMetadataFactory) 337var moduleFileKey = FileKey.Create(PathUtilities.CombineAbsoluteAndRelativePaths(assemblyDir, moduleName)!);
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.MetadataCache.cs (7)
22private readonly Dictionary<FileKey, ValueSource<AssemblyMetadata>> _metadataCache = new(); 26public bool TryGetMetadata(FileKey key, [NotNullWhen(true)] out AssemblyMetadata? metadata) 34public bool TryGetSource(FileKey key, [NotNullWhen(true)] out ValueSource<AssemblyMetadata>? source) 42private bool TryGetMetadata_NoLock(FileKey key, [NotNullWhen(true)] out AssemblyMetadata? metadata) 63public bool GetOrAddMetadata(FileKey key, ValueSource<AssemblyMetadata> metadataSource, out AssemblyMetadata metadata) 94using var pooledObject = SharedPools.Default<List<FileKey>>().GetPooledObject(); 105foreach (var key in keysToRemove)