5 instantiations of AttributeInfo
Microsoft.CodeAnalysis (5)
MetadataReader\PEModule.cs (5)
2514
result.Add(new
AttributeInfo
(attributeHandle, signatureIndex));
2547
return new
AttributeInfo
(attributeHandle, signatureIndex);
2568
attrInfo = new
AttributeInfo
(attributeHandle, signatureIndex);
2628
attributeInfo = new
AttributeInfo
(attributeHandle, signatureIndex);
2659
_lazyTypeDefToTypeIdentifierMap.TryAdd(typeDef, new
AttributeInfo
(customAttribute, signatureIndex));
59 references to AttributeInfo
Microsoft.CodeAnalysis (57)
MetadataReader\PEModule.cs (57)
90
private ConcurrentDictionary<TypeDefinitionHandle,
AttributeInfo
> _lazyTypeDefToTypeIdentifierMap;
981
AttributeInfo
attributeInfo;
1072
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.CollectionBuilderAttribute);
1097
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.DynamicAttribute);
1117
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NativeIntegerAttribute);
1147
AttributeInfo
info = FindTargetAttribute(MetadataReader, token, AttributeDescription.RefSafetyRulesAttribute, out foundAttributeType);
1163
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.InlineArrayAttribute);
1180
var
info = FindTargetAttribute(token, AttributeDescription.TupleElementNamesAttribute);
1212
AttributeInfo
info;
1274
var
info = FindTargetAttribute(handle, AttributeDescription.ExperimentalAttribute);
1278
private ObsoleteAttributeData? TryExtractExperimentalDataFromAttribute(
AttributeInfo
attributeInfo, IAttributeNamedArgumentDecoder decoder)
1347
List<
AttributeInfo
>? infos = FindTargetAttributes(token, AttributeDescription.CompilerFeatureRequiredAttribute);
1354
foreach (
var
info in infos)
1407
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.UnmanagedCallersOnlyAttribute);
1446
var
targetAttribute = FindTargetAttribute(token, AttributeDescription.InterpolatedStringHandlerArgumentAttribute);
1476
AttributeInfo
info = FindTargetAttribute(token, description);
1497
foreach (
var
attributeInfo in attributeInfos)
1510
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.AttributeUsageAttribute);
1558
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.InterfaceTypeAttribute);
1570
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.TypeLibTypeAttribute);
1583
AttributeInfo
info = FindLastTargetAttribute(token, AttributeDescription.DateTimeConstantAttribute);
1606
AttributeInfo
info = FindLastTargetAttribute(token, AttributeDescription.DecimalConstantAttribute);
1619
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullablePublicOnlyAttribute);
1635
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.InternalsVisibleToAttribute);
1642
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.ConditionalAttribute);
1652
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullAttribute);
1660
foreach (
var
ai in attrInfos)
1692
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullWhenAttribute);
1701
foreach (
var
ai in attrInfos)
1731
private ArrayBuilder<string> ExtractStringValuesFromAttributes(List<
AttributeInfo
> attrInfos)
1740
foreach (
var
ai in attrInfos)
1753
private ObsoleteAttributeData? TryExtractObsoleteDataFromAttribute(
AttributeInfo
attributeInfo, IAttributeNamedArgumentDecoder decoder)
1820
private ObsoleteAttributeData TryExtractDeprecatedDataFromAttribute(
AttributeInfo
attributeInfo)
1839
private ObsoleteAttributeData TryExtractWindowsExperimentalDataFromAttribute(
AttributeInfo
attributeInfo)
1853
private bool TryExtractInterfaceTypeFromAttribute(
AttributeInfo
attributeInfo, out ComInterfaceType interfaceType)
1904
private bool TryExtractTypeLibTypeFromAttribute(
AttributeInfo
info, out Cci.TypeLibTypeFlags flags)
2039
AttributeInfo
info = FindTargetAttribute(token, description);
2051
AttributeInfo
info = FindTargetAttribute(token, description);
2064
AttributeInfo
info = FindTargetAttribute(token, description);
2081
AttributeInfo
typeIdentifierInfo;
2497
internal List<
AttributeInfo
>? FindTargetAttributes(EntityHandle hasAttribute, AttributeDescription description)
2499
List<
AttributeInfo
>? result = null;
2510
result = new List<
AttributeInfo
>();
2525
internal
AttributeInfo
FindTargetAttribute(EntityHandle hasAttribute, AttributeDescription description)
2530
internal static
AttributeInfo
FindTargetAttribute(MetadataReader metadataReader, EntityHandle hasAttribute, AttributeDescription description, out bool foundAttributeType)
2554
return default(
AttributeInfo
);
2557
internal
AttributeInfo
FindLastTargetAttribute(EntityHandle hasAttribute, AttributeDescription description)
2561
AttributeInfo
attrInfo = default(
AttributeInfo
);
2576
return default(
AttributeInfo
);
2594
private bool IsNoPiaLocalType(TypeDefinitionHandle typeDef, out
AttributeInfo
attributeInfo)
2598
attributeInfo = default(
AttributeInfo
);
2637
attributeInfo = default(
AttributeInfo
);
2655
new ConcurrentDictionary<TypeDefinitionHandle,
AttributeInfo
>(),
3209
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullableContextAttribute);
3223
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullableAttribute);
3244
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.OverloadResolutionPriorityAttribute);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
751
var
info = _moduleSymbol.Module.FindTargetAttribute(_handle, AttributeDescription.CallerArgumentExpressionAttribute);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
523
var
attributeInfo = PEModule.FindTargetAttribute(peModule.Module.MetadataReader, theParameter.Handle, AttributeDescription.DateTimeConstantAttribute, out _);