2 types derived from Metadata
Microsoft.CodeAnalysis (2)
MetadataReference\AssemblyMetadata.cs (1)
21
public sealed class AssemblyMetadata :
Metadata
MetadataReference\ModuleMetadata.cs (1)
21
public 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>
268
protected override
Metadata
CommonCopy()
MetadataReference\Metadata.cs (2)
55
protected abstract
Metadata
CommonCopy();
60
public
Metadata
Copy()
MetadataReference\MetadataImageReference.cs (3)
19
private readonly
Metadata
_metadata;
21
internal MetadataImageReference(
Metadata
metadata, MetadataReferenceProperties properties, DocumentationProvider? documentation, string? filePath, string? display)
28
protected override
Metadata
GetMetadataImpl()
MetadataReference\MetadataReference.cs (7)
104
/// Reusing <see cref="
Metadata
"/> object to create multiple references allows for sharing data across these references.
125
Metadata
metadata = properties.Kind switch
146
/// Reusing <see cref="
Metadata
"/> object to create multiple references allows for sharing data across these references.
163
Metadata
metadata = properties.Kind switch
188
/// Reusing <see cref="
Metadata
"/> object to create multiple references allows for sharing data across these references.
206
Metadata
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>
280
protected 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"/>
154
protected abstract
Metadata
GetMetadataImpl();
156
internal
Metadata
GetMetadataNoCopy()
162
/// Returns a copy of the <see cref="
Metadata
"/> object this <see cref="PortableExecutableReference"/>
168
public
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)
322
Metadata
? metadata = GetMetadata(peReference, MessageProvider, location, diagnostics);
476
private
Metadata
? GetMetadata(PortableExecutableReference peReference, CommonMessageProvider messageProvider, Location location, DiagnosticBag diagnostics)
478
Metadata
? existingMetadata;
488
Metadata
? newMetadata;
527
private bool TryGetObservedMetadata(PortableExecutableReference peReference, DiagnosticBag diagnostics, out
Metadata
? metadata)
531
Debug.Assert(existing is
Metadata
|| existing is Diagnostic);
533
metadata = existing as
Metadata
;
548
var
metadata = GetMetadata(peReference, MessageProvider, Location.None, diagnostics);
Microsoft.CodeAnalysis.Scripting (14)
Hosting\AssemblyLoader\MetadataShadowCopy.cs (2)
30
public
Metadata
Metadata { get; }
32
internal MetadataShadowCopy(FileShadowCopy primaryModule, FileShadowCopy documentationFileOpt,
Metadata
metadataCopy)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (12)
38
public readonly
Metadata
Private;
40
public CacheEntry(TPublic @public,
Metadata
@private)
56
private readonly Dictionary<FileKey, CacheEntry<
Metadata
>> _noShadowCopyCache = new Dictionary<FileKey, CacheEntry<
Metadata
>>();
230
public
Metadata
GetMetadata(string fullPath, MetadataImageKind kind)
241
CacheEntry<
Metadata
> existing;
248
Metadata
newMetadata;
263
CacheEntry<
Metadata
> existing;
270
Metadata
publicMetadata = newMetadata.Copy();
271
_noShadowCopyCache.Add(key, new CacheEntry<
Metadata
>(publicMetadata, newMetadata));
417
Metadata
privateMetadata;
427
var
publicMetadata = privateMetadata.Copy();
Microsoft.CodeAnalysis.Workspaces (14)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (3)
82
private static
Metadata
? GetMetadataNoThrow(PortableExecutableReference reference)
251
Checksum checksum,
Metadata
? metadata) : IDisposable
272
private static ImmutableArray<ModuleMetadata> GetModuleMetadata(
Metadata
? metadata)
Serialization\SerializedPortableExecutableReference.cs (5)
21
private readonly
Metadata
_metadata;
30
Metadata
metadata,
48
protected override
Metadata
GetMetadataImpl()
56
var
metadata = TryGetMetadata(this);
69
static ImmutableArray<ModuleMetadata> GetModules(
Metadata
? metadata)
Serialization\SerializerService_Reference.cs (5)
220
private static void WriteMvidsTo(
Metadata
? metadata, ObjectWriter writer)
336
private static void WriteTo(
Metadata
? metadata, ObjectWriter writer)
387
private (
Metadata
metadata, ImmutableArray<ITemporaryStorageStreamHandle> storageHandles)? TryReadMetadataFrom(
546
private static
Metadata
? TryGetMetadata(PortableExecutableReference reference)
578
protected override
Metadata
GetMetadataImpl()
Workspace\Host\Metadata\MetadataServiceFactory.cs (1)
46
protected override
Metadata
GetMetadataImpl()
rzc (5)
CachingMetadataReference.cs (1)
24
protected override
Metadata
GetMetadataImpl()
MetadataCache.cs (4)
22
internal
Metadata
GetMetadata(string fullPath)
41
Metadata
metadata;
73
public MetadataCacheEntry(DateTime timestamp,
Metadata
metadata)
83
public
Metadata
Metadata { get; }
VBCSCompiler (6)
src\roslyn\src\Compilers\Server\VBCSCompiler\MetadataCache.cs (6)
20
private readonly ConcurrentLruCache<FileKey,
Metadata
> _metadataCache =
21
new ConcurrentLruCache<FileKey,
Metadata
>(CacheSize);
56
internal
Metadata
GetMetadata(string fullPath, MetadataReferenceProperties properties)
61
Metadata
? metadata;
80
Metadata
result = AssemblyMetadata.Create(allModules);
129
protected override
Metadata
GetMetadataImpl()