8 instantiations of MetadataBuilder
Microsoft.CodeAnalysis (4)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
81debugMetadataOpt: (context.Module.DebugInformationFormat == DebugInformationFormat.PortablePdb) ? new MetadataBuilder() : null,
PEWriter\FullMetadataWriter.cs (3)
49var builder = new MetadataBuilder(); 54debugBuilderOpt = hasPdbStream ? new MetadataBuilder() : null; 58debugBuilderOpt = metadataOnly ? null : new MetadataBuilder();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (1)
4058var metadataBuilder = new MetadataBuilder();
Emit\CompilationEmitTests.cs (1)
641var metadataBuilder = new MetadataBuilder();
System.Reflection.Emit (2)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
39private MetadataBuilder _pdbBuilder = new();
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
42_metadataBuilder = new MetadataBuilder();
35 references to MetadataBuilder
Microsoft.CodeAnalysis (10)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
134private static MetadataBuilder MakeTablesBuilder(EmitBaseline previousGeneration)
PEWriter\FullMetadataWriter.cs (4)
49var builder = new MetadataBuilder(); 50MetadataBuilder? debugBuilderOpt; 76MetadataBuilder builder, 77MetadataBuilder? debugBuilderOpt,
PEWriter\MetadataBuilderExtensions.cs (1)
13internal static BlobHandle GetOrAddBlobAndFree(this MetadataBuilder metadataBuilder, PooledBlobBuilder builder)
PEWriter\MetadataWriter.cs (4)
95MetadataBuilder metadata, 96MetadataBuilder debugMetadataOpt, 430protected readonly MetadataBuilder metadata; 433protected readonly MetadataBuilder _debugMetadataOpt;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenFunctionPointersTests.cs (3)
4058var metadataBuilder = new MetadataBuilder(); 12602private static void DefineInvalidSignatureAttributeIL(MetadataBuilder metadata, BlobBuilder ilBuilder, SignatureHeader headerToUseForM) 12744MetadataBuilder metadataBuilder,
Emit\CompilationEmitTests.cs (1)
641var metadataBuilder = new MetadataBuilder();
System.Reflection.Emit (12)
System\Reflection\Emit\ModuleBuilderImpl.cs (4)
19private readonly MetadataBuilder _metadataBuilder; 39private MetadataBuilder _pdbBuilder = new(); 46internal ModuleBuilderImpl(string name, Assembly coreAssembly, MetadataBuilder builder, PersistedAssemblyBuilder assemblyBuilder) 117internal void AppendMetadata(MethodBodyStreamEncoder methodBodyEncoder, BlobBuilder fieldDataBuilder, out MetadataBuilder pdbBuilder)
System\Reflection\Emit\PersistedAssemblyBuilder.cs (8)
19private readonly MetadataBuilder _metadataBuilder; 110/// <returns>A <see cref="MetadataBuilder"/> that includes all members defined in the Assembly.</returns> 114public MetadataBuilder GenerateMetadata(out BlobBuilder ilStream, out BlobBuilder mappedFieldData) 126/// <param name="pdbBuilder">Outputs <see cref="MetadataBuilder"/> that includes PDB metadata.</param> 127/// <returns>A <see cref="MetadataBuilder"/> that includes all members defined in the Assembly.</returns> 131public MetadataBuilder GenerateMetadata(out BlobBuilder ilStream, out BlobBuilder mappedFieldData, out MetadataBuilder pdbBuilder) 138private void PopulateAssemblyMetadata(out BlobBuilder ilStream, out BlobBuilder fieldData, out MetadataBuilder pdbBuilder)
System.Reflection.Metadata (9)
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (3)
22private readonly MetadataBuilder _tablesAndHeaps; 54public MetadataRootBuilder(MetadataBuilder tablesAndHeaps, string? metadataVersion = null, bool suppressValidation = false) 120MetadataBuilder.SerializeMetadataHeader(builder, MetadataVersion, _serializedMetadata.Sizes);
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (3)
133/// An offset in the corresponding heap, or -1 if <paramref name="handle"/> can only be interpreted in a context of a specific <see cref="MetadataReader"/> or <see cref="MetadataBuilder"/>. 156/// Zero based offset, or -1 if <paramref name="handle"/> can only be interpreted in a context of a specific <see cref="MetadataReader"/> or <see cref="MetadataBuilder"/>. 184/// Zero based offset, or -1 if <paramref name="handle"/> can only be interpreted in a context of a specific <see cref="MetadataReader"/> or <see cref="MetadataBuilder"/>.
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (3)
20private readonly MetadataBuilder _builder; 48MetadataBuilder tablesAndHeaps, 133MetadataBuilder.SerializeMetadataHeader(builder, MetadataVersion, _serializedMetadata.Sizes);