2 types derived from MetadataWriter
Microsoft.CodeAnalysis (2)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
25internal sealed class DeltaMetadataWriter : MetadataWriter
PEWriter\FullMetadataWriter.cs (1)
18internal sealed class FullMetadataWriter : MetadataWriter
42 references to MetadataWriter
Microsoft.CodeAnalysis (41)
CodeGen\CompilationTestData.cs (2)
41public MetadataWriter? MetadataWriter { get; private set; } 47public void SetMetadataWriter(MetadataWriter writer)
CodeGen\ILBuilderEmit.cs (8)
49internal void EmitToken(Cci.IReference value, SyntaxNode? syntaxNode, DiagnosticBag diagnostics, Cci.MetadataWriter.RawTokenEncoding encoding = 0) 52if (encoding != Cci.MetadataWriter.RawTokenEncoding.None) 54token = Cci.MetadataWriter.GetRawToken(encoding, token); 67var token = Cci.MetadataWriter.GetRawToken(Cci.MetadataWriter.RawTokenEncoding.GreatestMethodDefinitionRowId, 0); 74this.GetCurrentWriter().WriteUInt32(Cci.MetadataWriter.ModuleVersionIdStringToken); 79var token = Cci.MetadataWriter.GetRawToken(Cci.MetadataWriter.RawTokenEncoding.DocumentRowId, module?.GetSourceDocumentIndexForIL(document) ?? 0xFFFF);
Emit\CommonPEModuleBuilder.cs (1)
712=> names?.Add(MetadataHelpers.BuildQualifiedName(type.NamespaceName, Cci.MetadataWriter.GetMetadataName(type, generation: 0)));
NativePdbWriter\PdbWriter.cs (2)
34private MetadataWriter _metadataWriter; 531public void SetMetadataEmitter(MetadataWriter metadataWriter)
NativePdbWriter\SymWriterMetadataProvider.cs (3)
16private readonly MetadataWriter _writer; 22internal SymWriterMetadataProvider(MetadataWriter writer) 48typeName = MetadataWriter.GetMetadataName((INamedTypeReference)t, generation);
PEWriter\CustomDebugInfoWriter.cs (1)
124var encMethodInfo = MetadataWriter.GetEncMethodDebugInfo(methodBody);
PEWriter\FullMetadataWriter.cs (2)
40public static MetadataWriter Create( 327internal FullReferenceIndexer(MetadataWriter metadataWriter)
PEWriter\MemberRefComparer.cs (2)
13private readonly MetadataWriter _metadataWriter; 15internal MemberRefComparer(MetadataWriter metadataWriter)
PEWriter\MetadataWriter.cs (7)
4197private readonly MetadataWriter _writer; 4201protected HeapOrReferenceIndexBase(MetadataWriter writer, int lastRowId) 4246public HeapOrReferenceIndex(MetadataWriter writer, int lastRowId = 0) 4251private HeapOrReferenceIndex(MetadataWriter writer, Dictionary<T, int> index, int lastRowId) 4273public TypeReferenceIndex(MetadataWriter writer, int lastRowId = 0) 4278private TypeReferenceIndex(MetadataWriter writer, Dictionary<ITypeReference, int> index, int lastRowId) 4301public InstanceAndStructuralReferenceIndex(MetadataWriter writer, IEqualityComparer<T> structuralComparer, int lastRowId = 0)
PEWriter\MetadataWriter.DynamicAnalysis.cs (1)
244BlobHandle partIndex = GetOrAddBlob(ImmutableArray.Create(MetadataWriter.s_utf8Encoding.GetBytes(part)));
PEWriter\MethodSpecComparer.cs (2)
13private readonly MetadataWriter _metadataWriter; 15internal MethodSpecComparer(MetadataWriter metadataWriter)
PEWriter\Miscellaneous.cs (1)
203void AssociateWithMetadataWriter(MetadataWriter metadataWriter);
PEWriter\PeWriter.cs (1)
96var mdWriter = FullMetadataWriter.Create(context, messageProvider, metadataOnly, isDeterministic,
PEWriter\ReferenceIndexer.cs (3)
17protected readonly MetadataWriter metadataWriter; 20internal ReferenceIndexer(MetadataWriter metadataWriter) 51var definingUnit = MetadataWriter.GetDefiningUnitReference(exportedType, Context);
PEWriter\ReferenceIndexerBase.cs (2)
64IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(fieldReference.GetContainingType(Context), Context); 156IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(methodReference.GetContainingType(Context), Context);
PEWriter\TypeNameSerializer.cs (1)
201sb.Append(MetadataWriter.StrongName(referencedAssembly));
PEWriter\TypeSpecComparer.cs (2)
12private readonly MetadataWriter _metadataWriter; 14internal TypeSpecComparer(MetadataWriter metadataWriter)
Microsoft.CodeAnalysis.UnitTests (1)
MetadataReferences\MetadataNameLimitTests.cs (1)
13/// Test <see cref="MetadataWriter.IsTooLongInternal"/>.