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];