1 type derived from MetadataDecoder
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
26internal sealed class MemberRefMetadataDecoder : MetadataDecoder
32 instantiations of MetadataDecoder
Microsoft.CodeAnalysis.CSharp (32)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
103var metadataDecoder = new MetadataDecoder(metadataAssembly.PrimaryModule);
Symbols\Attributes\PEAttributeData.cs (1)
30_decoder = new MetadataDecoder(moduleSymbol);
Symbols\Metadata\PE\PEAssemblySymbol.cs (2)
313PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this, PrimaryModule, this.Assembly.Handle, CompilerFeatureRequiredFeatures.None, new MetadataDecoder(PrimaryModule)), 329var experimentalData = PrimaryModule.Module.TryDecodeExperimentalAttributeData(Assembly.Handle, new MetadataDecoder(PrimaryModule));
Symbols\Metadata\PE\PEEventSymbol.cs (3)
93var metadataDecoder = new MetadataDecoder(moduleSymbol, containingType); 445var metadataDecoder = new MetadataDecoder(moduleSymbol, method); 486new MetadataDecoder(containingPEModule, containingType));
Symbols\Metadata\PE\PEFieldSymbol.cs (3)
310FieldInfo<TypeSymbol> fieldInfo = new MetadataDecoder(moduleSymbol, _containingType).DecodeFieldSignature(_handle); 356var decoder = new MetadataDecoder(containingPEModule); 656new MetadataDecoder(containingPEModule, containingType));
Symbols\Metadata\PE\PEMethodSymbol.cs (4)
835ParamInfo<TypeSymbol>[] paramInfo = new MetadataDecoder(moduleSymbol, this).GetSignatureForMethod(_handle, out signatureHeader, out mrEx); 1308var explicitlyOverriddenMethods = new MetadataDecoder(moduleSymbol, _containingType).GetExplicitlyOverriddenMethods(_containingType.Handle, _handle, this.ContainingType); 1467var decoder = new MetadataDecoder(containingModule, this); 1609var unmanagedCallersOnlyData = containingModule.Module.TryGetUnmanagedCallersOnlyAttribute(_handle, new MetadataDecoder(containingModule),
Symbols\Metadata\PE\PEModuleSymbol.cs (3)
454return new MetadataDecoder(this).GetTypeSymbolForSerializedType(typeName); 833PEUtilities.DeriveCompilerFeatureRequiredAttributeDiagnostic(this, this, Token, CompilerFeatureRequiredFeatures.None, new MetadataDecoder(this)), 877var experimentalData = _module.TryDecodeExperimentalAttributeData(Token, new MetadataDecoder(this));
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
551return (NamedTypeSymbol)new MetadataDecoder(moduleSymbol, this).GetTypeOfToken(token); 573var tokenDecoder = new MetadataDecoder(moduleSymbol, this); 1205var decoder = new MetadataDecoder(moduleSymbol, this); 2172var decoder = new MetadataDecoder(ContainingPEModule, this); 2423if (this.ContainingPEModule.Module.HasAttributeUsageAttribute(_handle, new MetadataDecoder(ContainingPEModule), out AttributeUsageInfo info)) 2527var decoder = new MetadataDecoder(ContainingPEModule);
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
339var result = (NamedTypeSymbol)new MetadataDecoder(ContainingPEModule).GetTypeOfToken(typeDef, out bool isNoPiaLocalType);
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
1197PEMethodSymbol method => new MetadataDecoder(containingModule, method), 1198PEPropertySymbol => new MetadataDecoder(containingModule, (PENamedTypeSymbol)ContainingType),
Symbols\Metadata\PE\PEPropertySymbol.cs (3)
197var metadataDecoder = new MetadataDecoder(moduleSymbol, containingType); 709var metadataDecoder = new MetadataDecoder(_containingType.ContainingPEModule, _containingType); 976var decoder = new MetadataDecoder(containingPEModule, containingType);
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
255tokenDecoder = new MetadataDecoder(moduleSymbol, (PEMethodSymbol)_containingSymbol); 259tokenDecoder = new MetadataDecoder(moduleSymbol, (PENamedTypeSymbol)_containingSymbol);
Symbols\ObsoleteAttributeHelpers.cs (1)
46var obsoleteAttributeData = containingModule.Module.TryGetDeprecatedOrExperimentalOrObsoleteAttribute(token, new MetadataDecoder(containingModule), ignoreByRefLikeMarker, ignoreRequiredMemberMarker);
38 references to MetadataDecoder
Microsoft.CodeAnalysis.CSharp (38)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (2)
27MetadataDecoder metadataDecoder, 33private readonly MetadataDecoder _metadataDecoder = metadataDecoder;
Emitter\EditAndContinue\EmitHelpers.cs (2)
64var metadataDecoder = (MetadataDecoder)metadataSymbols.MetadataDecoder;
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (2)
103var metadataDecoder = new MetadataDecoder(metadataAssembly.PrimaryModule); 112internal static SynthesizedTypeMaps GetSynthesizedTypesFromMetadata(MetadataReader reader, MetadataDecoder metadataDecoder)
Symbols\Attributes\PEAttributeData.cs (1)
20private readonly MetadataDecoder _decoder;
Symbols\Metadata\PE\PEEventSymbol.cs (2)
93var metadataDecoder = new MetadataDecoder(moduleSymbol, containingType); 445var metadataDecoder = new MetadataDecoder(moduleSymbol, method);
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
356var decoder = new MetadataDecoder(containingPEModule);
Symbols\Metadata\PE\PEMethodSymbol.cs (3)
544MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.Module, _handle, out parameterCount, out typeParameterCount); 647MetadataDecoder.GetSignatureCountsOrThrow(_containingType.ContainingPEModule.Module, _handle, 1467var decoder = new MetadataDecoder(containingModule, this);
Symbols\Metadata\PE\PEModuleSymbol.cs (3)
63/// It is used by <see cref="MetadataDecoder"/> to speed up type reference resolution 72/// It is used by <see cref="MetadataDecoder"/> to speed up type reference resolution 74/// by <see cref="MetadataDecoder"/> as we resolve TypeRefs from the module.
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
573var tokenDecoder = new MetadataDecoder(moduleSymbol, this); 1205var decoder = new MetadataDecoder(moduleSymbol, this); 2172var decoder = new MetadataDecoder(ContainingPEModule, this); 2527var decoder = new MetadataDecoder(ContainingPEModule);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1187internal DiagnosticInfo? DeriveCompilerFeatureRequiredDiagnostic(MetadataDecoder decoder)
Symbols\Metadata\PE\PEPropertySymbol.cs (6)
197var metadataDecoder = new MetadataDecoder(moduleSymbol, containingType); 228MetadataDecoder metadataDecoder) 709var metadataDecoder = new MetadataDecoder(_containingType.ContainingPEModule, _containingType); 830MetadataDecoder metadataDecoder, 976var decoder = new MetadataDecoder(containingPEModule, containingType); 1081MetadataDecoder metadataDecoder)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (6)
169MetadataDecoder tokenDecoder = GetDecoder(moduleSymbol); 250private MetadataDecoder GetDecoder(PEModuleSymbol moduleSymbol) 252MetadataDecoder tokenDecoder; 265private TypeWithAnnotations GetConstraintTypeOrDefault(PEModuleSymbol moduleSymbol, MetadataReader metadataReader, MetadataDecoder tokenDecoder, GenericParameterConstraintHandle constraintHandle, ref bool hasUnmanagedModreqPattern) 538MetadataDecoder tokenDecoder = GetDecoder(moduleSymbol); 719internal DiagnosticInfo? DeriveCompilerFeatureRequiredDiagnostic(MetadataDecoder decoder)
Symbols\Metadata\PE\PEUtilities.cs (1)
11internal static DiagnosticInfo? DeriveCompilerFeatureRequiredAttributeDiagnostic(Symbol symbol, PEModuleSymbol module, EntityHandle handle, CompilerFeatureRequiredFeatures allowedFeatures, MetadataDecoder decoder)
Symbols\Metadata\PE\SymbolFactory.cs (1)
131MetadataDecoder.IsOrClosedOverATypeFromAssemblies(arguments[i].Key, linkedAssemblies)))
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
377result = MetadataDecoder.SubstituteNoPiaLocalType( 616if (MetadataDecoder.IsOrClosedOverATypeFromAssemblies(oldArguments[i].Type, assembliesToEmbedTypesFrom)) 629if (MetadataDecoder.IsOrClosedOverATypeFromAssemblies(newArguments[i].Type, linkedAssemblies))