30 references to MetadataBlock
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (30)
DkmUtilities.cs (14)
50internal static ImmutableArray<MetadataBlock> GetMetadataBlocks( 53ImmutableArray<MetadataBlock> previousMetadataBlocks) 62var builder = ArrayBuilder<MetadataBlock>.GetInstance(); 83if (!TryGetMetadataBlock(previousMetadataBlocks, index, ptr, size, out var block)) 96if (!TryGetMetadataBlock(previousMetadataBlocks, index, ptr, size, out var intrinsicsBlock)) 105internal static ImmutableArray<MetadataBlock> GetMetadataBlocks(GetMetadataBytesPtrFunction getMetaDataBytesPtrFunction, ImmutableArray<AssemblyIdentity> missingAssemblyIdentities) 107ArrayBuilder<MetadataBlock>? builder = null; 122if (!TryGetMetadataBlock(ptr, size, out var block)) 128builder ??= ArrayBuilder<MetadataBlock>.GetInstance(); 132return builder == null ? ImmutableArray<MetadataBlock>.Empty : builder.ToImmutableAndFree(); 174private static unsafe bool TryGetMetadataBlock(IntPtr ptr, uint size, out MetadataBlock block) 193private static bool TryGetMetadataBlock(ImmutableArray<MetadataBlock> previousMetadataBlocks, int index, IntPtr ptr, uint size, out MetadataBlock block) 197var previousBlock = previousMetadataBlocks[index];
ExpressionCompiler.cs (7)
268internal static bool ShouldTryAgainWithMoreMetadataBlocks(DkmUtilities.GetMetadataBytesPtrFunction getMetaDataBytesPtrFunction, ImmutableArray<AssemblyIdentity> missingAssemblyIdentities, ref ImmutableArray<MetadataBlock> references) 333ImmutableArray<MetadataBlock> metadataBlocks, 340ImmutableArray<MetadataBlock> metadataBlocks, 352internal abstract ImmutableArray<MetadataBlock> GetMetadataBlocks( 358ImmutableArray<MetadataBlock> metadataBlocks, 391internal delegate EvaluationContextBase CreateContextDelegate(ImmutableArray<MetadataBlock> metadataBlocks, bool useReferencedModulesOnly); 414ImmutableArray<MetadataBlock> metadataBlocks,
MetadataBlock.cs (4)
15internal readonly struct MetadataBlock(ModuleId moduleId, Guid generationId, IntPtr pointer, int size) : IEquatable<MetadataBlock> 43public bool Equals(MetadataBlock other) 53if (!(obj is MetadataBlock)) 57return Equals((MetadataBlock)obj);
MetadataContext.cs (3)
13internal readonly ImmutableArray<MetadataBlock> MetadataBlocks; 16internal MetadataContext(ImmutableArray<MetadataBlock> metadataBlocks, ImmutableDictionary<MetadataContextId, TAssemblyContext> assemblyContexts) 22internal bool Matches(ImmutableArray<MetadataBlock> metadataBlocks)
MetadataUtilities.cs (2)
27this ImmutableArray<MetadataBlock> metadataBlocks, 47foreach (var block in metadataBlocks)