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