1 instantiation of CustomAttributeValue
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
99return new CustomAttributeValue<TType>(fixedArguments, namedArguments);
101 references to CustomAttributeValue
ILCompiler.Compiler (66)
Compiler\AssemblyExtensions.cs (1)
25CustomAttributeValue<TypeDesc> decoded = attr.DecodeValue(new CustomAttributeTypeProvider(assembly));
Compiler\CustomAttributeExtensions.cs (5)
13public static CustomAttributeValue<TypeDesc>? GetDecodedCustomAttribute(this PropertyPseudoDesc prop, string attributeNamespace, string attributeName) 27public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this PropertyPseudoDesc prop, string attributeNamespace, string attributeName) 42public static CustomAttributeValue<TypeDesc>? GetDecodedCustomAttribute(this EventPseudoDesc @event, string attributeNamespace, string attributeName) 56public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this EventPseudoDesc @event, string attributeNamespace, string attributeName) 71public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributesForModule(this EcmaModule module, string attributeNamespace, string attributeName)
Compiler\Dataflow\AttributeDataFlow.cs (2)
17using CustomAttributeValue = System.Reflection.Metadata.CustomAttributeValue<Internal.TypeSystem.TypeDesc>; 48public DependencyList? ProcessAttributeDataflow(MethodDesc method, CustomAttributeValue arguments)
Compiler\Dataflow\CompilerGeneratedState.cs (2)
619CustomAttributeValue<TypeDesc>? decodedAttribute = ecmaMethod.GetDecodedCustomAttribute("System.Runtime.CompilerServices", "AsyncIteratorStateMachineAttribute"); 652private static TypeDesc? GetFirstConstructorArgumentAsType(CustomAttributeValue<TypeDesc> attribute)
Compiler\Dataflow\DiagnosticUtilities.cs (13)
36internal static bool TryGetRequiresAttribute(TypeSystemEntity member, string requiresAttributeName, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) 39CustomAttributeValue<TypeDesc>? decoded; 72internal static string GetRequiresAttributeMessage(CustomAttributeValue<TypeDesc> attribute) 80internal static string GetRequiresAttributeUrl(CustomAttributeValue<TypeDesc> attribute) 92/// <remarks>Unlike <see cref="DoesMemberRequire(TypeSystemEntity, string, out CustomAttributeValue{TypeDesc}?)"/> 98internal static bool IsInRequiresScope(this MethodDesc method, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) 121internal static bool DoesMethodRequire(this MethodDesc method, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) 151internal static bool DoesFieldRequire(this FieldDesc field, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) 162internal static bool DoesPropertyRequire(this PropertyPseudoDesc property, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) => 165internal static bool DoesEventRequire(this EventPseudoDesc @event, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) => 168internal static bool DoesTypeRequire(this TypeDesc type, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) => 176internal static bool DoesMemberRequire(this TypeSystemEntity member, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute) 189private static bool ExcludeStatics(CustomAttributeValue<TypeDesc> attribute)
Compiler\Dataflow\ReflectionMarker.cs (3)
301if (_logger.ShouldSuppressAnalysisWarningsForRequires(entity, DiagnosticUtilities.RequiresUnreferencedCodeAttribute, out CustomAttributeValue<TypeDesc>? requiresAttribute) && 374bool isReflectionAccessCoveredByRUC = _logger.ShouldSuppressAnalysisWarningsForRequires(entity, DiagnosticUtilities.RequiresUnreferencedCodeAttribute, out CustomAttributeValue<TypeDesc>? requiresUnreferencedCodeAttribute); 393private void ReportRequires(in MessageOrigin origin, TypeSystemEntity entity, string requiresAttributeName, in CustomAttributeValue<TypeDesc> requiresAttribute)
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
86internal static void ReportRequires(in DiagnosticContext diagnosticContext, TypeSystemEntity calledMember, string requiresAttributeName, in CustomAttributeValue<TypeDesc> requiresAttribute)
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (2)
120CustomAttributeValue<TypeDesc> decodedValue = attribute.DecodeValue(attributeTypeProvider); 162private static bool AddDependenciesFromCustomAttributeBlob(DependencyList dependencies, NodeFactory factory, TypeDesc attributeType, CustomAttributeValue<TypeDesc> value)
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (3)
60(TypeDesc owningType, IEnumerable<CustomAttributeValue<TypeDesc>> attributes) = _entity switch 66foreach (CustomAttributeValue<TypeDesc> attribute in attributes) 84CustomAttributeValue<TypeDesc> attribute)
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (1)
133CustomAttributeValue<TypeDesc>? decodedAttr = null;
Compiler\Logger.cs (1)
248internal bool ShouldSuppressAnalysisWarningsForRequires(TypeSystemEntity originMember, string requiresAttribute, [NotNullWhen(returnValue: true)] out CustomAttributeValue<TypeDesc>? attribute)
Compiler\Logging\MessageContainer.cs (1)
204foreach (var attribute in ecmaAssembly.GetDecodedCustomAttributes("System.Reflection", "AssemblyMetadataAttribute"))
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (11)
34public CustomAttributeValue<TypeDesc> OriginAttribute { get; } 37public Suppression(SuppressMessageInfo suppressMessageInfo, CustomAttributeValue<TypeDesc> originAttribute, TypeSystemEntity provider) 173private static bool TryDecodeSuppressMessageAttributeData(CustomAttributeValue<TypeDesc> attribute, out SuppressMessageInfo info) 234foreach (CustomAttributeValue<TypeDesc> ca in GetDecodedCustomAttributes(provider, UnconditionalSuppressMessageAttributeNamespace, UnconditionalSuppressMessageAttributeName)) 263IEnumerable<CustomAttributeValue<TypeDesc>> attributes, 267foreach (CustomAttributeValue<TypeDesc> instance in attributes) 306private static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(TypeSystemEntity entity, string attributeNamespace, string attributeName) 312return Enumerable.Empty<CustomAttributeValue<TypeDesc>>(); 316return Enumerable.Empty<CustomAttributeValue<TypeDesc>>(); 320return Enumerable.Empty<CustomAttributeValue<TypeDesc>>(); 328return Enumerable.Empty<CustomAttributeValue<TypeDesc>>();
Compiler\MetadataManager.cs (2)
22using CustomAttributeValue = System.Reflection.Metadata.CustomAttributeValue<Internal.TypeSystem.TypeDesc>; 1305public virtual DependencyList GetDependenciesForCustomAttribute(NodeFactory factory, MethodDesc attributeCtor, CustomAttributeValue decodedValue, TypeSystemEntity parent)
Compiler\SubstitutionProvider.cs (2)
61foreach (var featureSwitchDefinitionAttribute in property.GetDecodedCustomAttributes("System.Diagnostics.CodeAnalysis", "FeatureSwitchDefinitionAttribute")) 71foreach (var featureGuardAttribute in property.GetDecodedCustomAttributes("System.Diagnostics.CodeAnalysis", "FeatureGuardAttribute"))
Compiler\UsageBasedMetadataManager.cs (3)
24using CustomAttributeValue = System.Reflection.Metadata.CustomAttributeValue<Internal.TypeSystem.TypeDesc>; 379foreach (var attribute in ecmaAssembly.GetDecodedCustomAttributes("System.Reflection", "AssemblyMetadataAttribute")) 792public override DependencyList GetDependenciesForCustomAttribute(NodeFactory factory, MethodDesc attributeCtor, CustomAttributeValue decodedValue, TypeSystemEntity parent)
src\runtime\src\coreclr\tools\Common\Compiler\MethodExtensions.cs (5)
21var decodedValue = decoded.Value; 35var decodedValue = decoded.Value; 49var decodedValue = decoded.Value; 69var decodedValue = decoded.Value; 86var decodedValue = decoded.Value;
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (4)
330CustomAttributeValue<TypeDesc> attrValue = attr.DecodeValue(new CustomAttributeTypeProvider(currentAssembly)); 422void ProcessTypeMapAssemblyTargetAttribute(CustomAttributeValue<TypeDesc> attrValue, Map typeMapState) 444void ProcessTypeMapAttribute(CustomAttributeValue<TypeDesc> attrValue, Map typeMapState) 466void ProcessTypeMapAssociationAttribute(CustomAttributeValue<TypeDesc> attrValue, Map typeMapState)
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (1)
902CustomAttributeValue<TypeDesc>? guidAttributeValue = (parameterType as EcmaType)?
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (3)
98CustomAttributeValue<TypeDesc> unmanagedCallersOnlyAttribute = ((EcmaMethod)method).GetDecodedCustomAttribute("System.Runtime.InteropServices", "UnmanagedCallersOnlyAttribute").Value; 121CustomAttributeValue<TypeDesc>? unmanagedCallConvAttribute = ecmaMethod.GetDecodedCustomAttribute("System.Runtime.InteropServices", "UnmanagedCallConvAttribute"); 157private static UnmanagedCallingConventions GetUnmanagedCallingConventionFromAttribute(CustomAttributeValue<TypeDesc> attributeWithCallConvsArray, TypeSystemContext context)
ILCompiler.ReadyToRun (14)
Compiler\AssemblyExtensions.cs (1)
29CustomAttributeValue<TypeDesc> decoded = attribute.DecodeValue(new CustomAttributeTypeProvider(assembly));
Compiler\ReadyToRunVisibilityRootProvider.cs (1)
154foreach (var assemblyMetadata in assembly.GetDecodedCustomAttributes("System.Reflection", "AssemblyMetadataAttribute"))
src\runtime\src\coreclr\tools\Common\Compiler\MethodExtensions.cs (5)
21var decodedValue = decoded.Value; 35var decodedValue = decoded.Value; 49var decodedValue = decoded.Value; 69var decodedValue = decoded.Value; 86var decodedValue = decoded.Value;
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (4)
330CustomAttributeValue<TypeDesc> attrValue = attr.DecodeValue(new CustomAttributeTypeProvider(currentAssembly)); 422void ProcessTypeMapAssemblyTargetAttribute(CustomAttributeValue<TypeDesc> attrValue, Map typeMapState) 444void ProcessTypeMapAttribute(CustomAttributeValue<TypeDesc> attrValue, Map typeMapState) 466void ProcessTypeMapAssociationAttribute(CustomAttributeValue<TypeDesc> attrValue, Map typeMapState)
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (3)
98CustomAttributeValue<TypeDesc> unmanagedCallersOnlyAttribute = ((EcmaMethod)method).GetDecodedCustomAttribute("System.Runtime.InteropServices", "UnmanagedCallersOnlyAttribute").Value; 121CustomAttributeValue<TypeDesc>? unmanagedCallConvAttribute = ecmaMethod.GetDecodedCustomAttribute("System.Runtime.InteropServices", "UnmanagedCallConvAttribute"); 157private static UnmanagedCallingConventions GetUnmanagedCallingConventionFromAttribute(CustomAttributeValue<TypeDesc> attributeWithCallConvsArray, TypeSystemContext context)
ILCompiler.TypeSystem (14)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
533CustomAttributeValue<TypeDesc> decoded = attribute.DecodeValue(
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (1)
809var dec = reader.GetCustomAttribute(attr).DecodeValue(new CustomAttributeTypeProvider(this));
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (1)
576var attrValue = attr.DecodeValue(new CustomAttributeTypeProvider(_module));
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.TypeEquivalence.cs (1)
16CustomAttributeValue<TypeDesc>? guidAttribute;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (7)
15public static CustomAttributeValue<TypeDesc>? GetDecodedCustomAttribute(this EcmaType This, 29public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this EcmaType This, 43public static CustomAttributeValue<TypeDesc>? GetDecodedCustomAttribute(this EcmaMethod This, 57public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this EcmaMethod This, 71public static CustomAttributeValue<TypeDesc>? GetDecodedCustomAttribute(this EcmaField This, 85public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this EcmaField This, 99public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this EcmaAssembly This,
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (3)
23CustomAttributeValue<TypeDesc>? decodedAttribute = method.GetDecodedCustomAttribute("System.Runtime.CompilerServices", "UnsafeAccessorAttribute"); 169private static bool TryParseUnsafeAccessorAttribute(MethodDesc method, CustomAttributeValue<TypeDesc> decodedValue, out UnsafeAccessorKind kind, out string name) 621CustomAttributeValue<TypeDesc> decoded = unsafeAccessorTypeAttribute.DecodeValue(
Microsoft.NET.HostModel (4)
ComHost\ClsidMap.cs (4)
147CustomAttributeValue<KnownType> data = comVisibleAttribute.DecodeValue(new TypeResolver()); 163CustomAttributeValue<KnownType> data = comVisibleAttribute.DecodeValue(new TypeResolver()); 197CustomAttributeValue<KnownType> data = attribute.DecodeValue(new TypeResolver()); 211CustomAttributeValue<KnownType> data = attribute.DecodeValue(new TypeResolver());
System.Reflection.Metadata (2)
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
22public CustomAttributeValue<TType> DecodeValue(EntityHandle constructor, BlobHandle value)
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (1)
87public CustomAttributeValue<TType> DecodeValue<TType>(ICustomAttributeTypeProvider<TType> provider)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
95CustomAttributeValue<RoType> cav = CustomAttribute.DecodeValue(_module);