2 types derived from Metadata
Microsoft.CodeAnalysis (2)
MetadataReference\AssemblyMetadata.cs (1)
21public sealed class AssemblyMetadata : Metadata
MetadataReference\ModuleMetadata.cs (1)
21public sealed partial class ModuleMetadata : Metadata
75 references to Metadata
Microsoft.CodeAnalysis (36)
MetadataReference\AssemblyMetadata.cs (4)
197/// <exception cref="ArgumentException"><paramref name="modules"/> is empty or contains a module that doesn't own its image (was created via <see cref="Metadata.Copy"/>).</exception> 229/// <exception cref="ArgumentException"><paramref name="modules"/> is empty or contains a module that doesn't own its image (was created via <see cref="Metadata.Copy"/>).</exception> 242/// <exception cref="ArgumentException"><paramref name="modules"/> is empty or contains a module that doesn't own its image (was created via <see cref="Metadata.Copy"/>).</exception> 268protected override Metadata CommonCopy()
MetadataReference\Metadata.cs (2)
55protected abstract Metadata CommonCopy(); 60public Metadata Copy()
MetadataReference\MetadataImageReference.cs (3)
19private readonly Metadata _metadata; 21internal MetadataImageReference(Metadata metadata, MetadataReferenceProperties properties, DocumentationProvider? documentation, string? filePath, string? display) 28protected override Metadata GetMetadataImpl()
MetadataReference\MetadataReference.cs (7)
104/// Reusing <see cref="Metadata"/> object to create multiple references allows for sharing data across these references. 125Metadata metadata = properties.Kind switch 146/// Reusing <see cref="Metadata"/> object to create multiple references allows for sharing data across these references. 163Metadata metadata = properties.Kind switch 188/// Reusing <see cref="Metadata"/> object to create multiple references allows for sharing data across these references. 206Metadata metadata = properties.Kind switch 230/// Reusing <see cref="Metadata"/> object allows for sharing data across these references.
MetadataReference\ModuleMetadata.cs (2)
82/// cref="Metadata.Copy"/> will not call this when they are disposed.</param> 280protected override Metadata CommonCopy()
MetadataReference\PortableExecutableReference.cs (10)
144/// <see cref="Metadata"/> objects may cache information decoded from the PE image. 145/// Reusing <see cref="Metadata"/> instances across metadata references will result in better performance. 147/// The calling <see cref="Compilation"/> doesn't take ownership of the <see cref="Metadata"/> objects returned by this method. 149/// The <see cref="Metadata"/> object is kept alive by the <see cref="Compilation"/> that called <see cref="GetMetadataNoCopy"/> 154protected abstract Metadata GetMetadataImpl(); 156internal Metadata GetMetadataNoCopy() 162/// Returns a copy of the <see cref="Metadata"/> object this <see cref="PortableExecutableReference"/> 168public Metadata GetMetadata() 174/// Returns the <see cref="MetadataId"/> for this reference's <see cref="Metadata"/>. 175/// This will be equivalent to calling <see cref="GetMetadata()"/>.<see cref="Metadata.Id"/>,
ReferenceManager\CommonReferenceManager.Resolution.cs (8)
322Metadata? metadata = GetMetadata(peReference, MessageProvider, location, diagnostics); 476private Metadata? GetMetadata(PortableExecutableReference peReference, CommonMessageProvider messageProvider, Location location, DiagnosticBag diagnostics) 478Metadata? existingMetadata; 488Metadata? newMetadata; 527private bool TryGetObservedMetadata(PortableExecutableReference peReference, DiagnosticBag diagnostics, out Metadata? metadata) 531Debug.Assert(existing is Metadata || existing is Diagnostic); 533metadata = existing as Metadata; 548var metadata = GetMetadata(peReference, MessageProvider, Location.None, diagnostics);
Microsoft.CodeAnalysis.Scripting (14)
Hosting\AssemblyLoader\MetadataShadowCopy.cs (2)
30public Metadata Metadata { get; } 32internal MetadataShadowCopy(FileShadowCopy primaryModule, FileShadowCopy documentationFileOpt, Metadata metadataCopy)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (12)
38public readonly Metadata Private; 40public CacheEntry(TPublic @public, Metadata @private) 56private readonly Dictionary<FileKey, CacheEntry<Metadata>> _noShadowCopyCache = new Dictionary<FileKey, CacheEntry<Metadata>>(); 230public Metadata GetMetadata(string fullPath, MetadataImageKind kind) 241CacheEntry<Metadata> existing; 248Metadata newMetadata; 263CacheEntry<Metadata> existing; 270Metadata publicMetadata = newMetadata.Copy(); 271_noShadowCopyCache.Add(key, new CacheEntry<Metadata>(publicMetadata, newMetadata)); 417Metadata privateMetadata; 427var publicMetadata = privateMetadata.Copy();
Microsoft.CodeAnalysis.Workspaces (14)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (3)
82private static Metadata? GetMetadataNoThrow(PortableExecutableReference reference) 251Checksum checksum, Metadata? metadata) : IDisposable 272private static ImmutableArray<ModuleMetadata> GetModuleMetadata(Metadata? metadata)
Serialization\SerializedPortableExecutableReference.cs (5)
21private readonly Metadata _metadata; 30Metadata metadata, 48protected override Metadata GetMetadataImpl() 56var metadata = TryGetMetadata(this); 69static ImmutableArray<ModuleMetadata> GetModules(Metadata? metadata)
Serialization\SerializerService_Reference.cs (5)
220private static void WriteMvidsTo(Metadata? metadata, ObjectWriter writer) 336private static void WriteTo(Metadata? metadata, ObjectWriter writer) 387private (Metadata metadata, ImmutableArray<ITemporaryStorageStreamHandle> storageHandles)? TryReadMetadataFrom( 546private static Metadata? TryGetMetadata(PortableExecutableReference reference) 578protected override Metadata GetMetadataImpl()
Workspace\Host\Metadata\MetadataServiceFactory.cs (1)
46protected override Metadata GetMetadataImpl()
rzc (5)
CachingMetadataReference.cs (1)
24protected override Metadata GetMetadataImpl()
MetadataCache.cs (4)
22internal Metadata GetMetadata(string fullPath) 41Metadata metadata; 73public MetadataCacheEntry(DateTime timestamp, Metadata metadata) 83public Metadata Metadata { get; }
VBCSCompiler (6)
src\roslyn\src\Compilers\Server\VBCSCompiler\MetadataCache.cs (6)
20private readonly ConcurrentLruCache<FileKey, Metadata> _metadataCache = 21new ConcurrentLruCache<FileKey, Metadata>(CacheSize); 56internal Metadata GetMetadata(string fullPath, MetadataReferenceProperties properties) 61Metadata? metadata; 80Metadata result = AssemblyMetadata.Create(allModules); 129protected override Metadata GetMetadataImpl()