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