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