1 instantiation of MetadataId
Microsoft.CodeAnalysis (1)
MetadataReference\Metadata.cs (1)
22internal 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)
22internal static MetadataId CreateNewId() => new MetadataId(); 37public MetadataId Id { get; } 39internal 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"/>. 181public MetadataId GetMetadataId()
Microsoft.CodeAnalysis.Features (5)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (2)
49private static readonly ConditionalWeakTable<MetadataId, AsyncLazy<bool>> s_metadataIdToDesignerAttributeInfo = new(); 86MetadataId metadataId;
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (3)
407private readonly MetadataId? _metadataId; 412public UniqueDocumentKey(string filePath, MetadataId? metadataId, string language, SymbolKey symbolId, bool signaturesOnly) 423public 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 30private static readonly Dictionary<MetadataId, string?> s_metadataIdToAssemblyName = new(); 330using var _ = ArrayBuilder<(PortableExecutableReference reference, MetadataId metadataId)>.GetInstance(out var uncomputedReferences); 339var 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 52private static readonly ConditionalWeakTable<MetadataId, AsyncLazy<SymbolTreeInfo>> s_metadataIdToSymbolTreeInfo = new(); 70public static MetadataId? GetMetadataIdNoThrow(PortableExecutableReference reference) 175var metadataId = GetMetadataIdNoThrow(reference);