1 instantiation of MetadataId
Microsoft.CodeAnalysis (1)
MetadataReference\Metadata.cs (1)
22
internal static MetadataId CreateNewId() => new
MetadataId
();
22 references to MetadataId
Microsoft.CodeAnalysis (9)
MetadataReference\AssemblyMetadata.cs (2)
91
: base(isImageOwner: true, id:
MetadataId
.CreateNewId())
98
: base(isImageOwner: true, id:
MetadataId
.CreateNewId())
MetadataReference\Metadata.cs (3)
22
internal static
MetadataId
CreateNewId() => new MetadataId();
37
public
MetadataId
Id { get; }
39
internal Metadata(bool isImageOwner,
MetadataId
id)
MetadataReference\ModuleMetadata.cs (2)
33
: base(isImageOwner: true, id:
MetadataId
.CreateNewId())
45
: base(isImageOwner: true, id:
MetadataId
.CreateNewId())
MetadataReference\PortableExecutableReference.cs (2)
174
/// Returns the <see cref="
MetadataId
"/> for this reference's <see cref="Metadata"/>.
181
public
MetadataId
GetMetadataId()
Microsoft.CodeAnalysis.Features (5)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (2)
49
private static readonly ConditionalWeakTable<
MetadataId
, AsyncLazy<bool>> s_metadataIdToDesignerAttributeInfo = new();
86
MetadataId
metadataId;
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (3)
407
private readonly
MetadataId
? _metadataId;
412
public UniqueDocumentKey(string filePath,
MetadataId
? metadataId, string language, SymbolKey symbolId, bool signaturesOnly)
423
public UniqueDocumentKey(AssemblyIdentity assemblyIdentity,
MetadataId
? metadataId, string language, SymbolKey symbolId, bool signaturesOnly)
Microsoft.CodeAnalysis.Workspaces (8)
FindSymbols\FindReferences\DependentProjectsFinder.cs (4)
27
/// Cache from the <see cref="
MetadataId
"/> for a particular <see cref="PortableExecutableReference"/> to the
30
private static readonly Dictionary<
MetadataId
, string?> s_metadataIdToAssemblyName = new();
329
using var _ = ArrayBuilder<(PortableExecutableReference reference,
MetadataId
metadataId)>.GetInstance(out var uncomputedReferences);
338
var
metadataId = SymbolTreeInfo.GetMetadataIdNoThrow(peReference);
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (4)
49
/// computation of the <see cref="SymbolTreeInfo"/> once per <see cref="
MetadataId
"/>, but we may then have to
52
private static readonly ConditionalWeakTable<
MetadataId
, AsyncLazy<SymbolTreeInfo>> s_metadataIdToSymbolTreeInfo = new();
70
public static
MetadataId
? GetMetadataIdNoThrow(PortableExecutableReference reference)
175
var
metadataId = GetMetadataIdNoThrow(reference);