5 instantiations of AttributeInfo
Microsoft.CodeAnalysis (5)
MetadataReader\PEModule.cs (5)
2504
result.Add(new
AttributeInfo
(attributeHandle, signatureIndex));
2537
return new
AttributeInfo
(attributeHandle, signatureIndex);
2558
attrInfo = new
AttributeInfo
(attributeHandle, signatureIndex);
2618
attributeInfo = new
AttributeInfo
(attributeHandle, signatureIndex);
2649
_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;
1067
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.CollectionBuilderAttribute);
1092
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.DynamicAttribute);
1112
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NativeIntegerAttribute);
1142
AttributeInfo
info = FindTargetAttribute(MetadataReader, token, AttributeDescription.RefSafetyRulesAttribute, out foundAttributeType);
1158
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.InlineArrayAttribute);
1175
var
info = FindTargetAttribute(token, AttributeDescription.TupleElementNamesAttribute);
1207
AttributeInfo
info;
1269
var
info = FindTargetAttribute(handle, AttributeDescription.ExperimentalAttribute);
1273
private ObsoleteAttributeData? TryExtractExperimentalDataFromAttribute(
AttributeInfo
attributeInfo, IAttributeNamedArgumentDecoder decoder)
1337
List<
AttributeInfo
>? infos = FindTargetAttributes(token, AttributeDescription.CompilerFeatureRequiredAttribute);
1344
foreach (
var
info in infos)
1397
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.UnmanagedCallersOnlyAttribute);
1436
var
targetAttribute = FindTargetAttribute(token, AttributeDescription.InterpolatedStringHandlerArgumentAttribute);
1466
AttributeInfo
info = FindTargetAttribute(token, description);
1487
foreach (
var
attributeInfo in attributeInfos)
1500
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.AttributeUsageAttribute);
1548
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.InterfaceTypeAttribute);
1560
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.TypeLibTypeAttribute);
1573
AttributeInfo
info = FindLastTargetAttribute(token, AttributeDescription.DateTimeConstantAttribute);
1596
AttributeInfo
info = FindLastTargetAttribute(token, AttributeDescription.DecimalConstantAttribute);
1609
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullablePublicOnlyAttribute);
1625
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.InternalsVisibleToAttribute);
1632
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.ConditionalAttribute);
1642
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullAttribute);
1650
foreach (
var
ai in attrInfos)
1682
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullWhenAttribute);
1691
foreach (
var
ai in attrInfos)
1721
private ArrayBuilder<string> ExtractStringValuesFromAttributes(List<
AttributeInfo
> attrInfos)
1730
foreach (
var
ai in attrInfos)
1743
private ObsoleteAttributeData? TryExtractObsoleteDataFromAttribute(
AttributeInfo
attributeInfo, IAttributeNamedArgumentDecoder decoder)
1810
private ObsoleteAttributeData TryExtractDeprecatedDataFromAttribute(
AttributeInfo
attributeInfo)
1829
private ObsoleteAttributeData TryExtractWindowsExperimentalDataFromAttribute(
AttributeInfo
attributeInfo)
1843
private bool TryExtractInterfaceTypeFromAttribute(
AttributeInfo
attributeInfo, out ComInterfaceType interfaceType)
1894
private bool TryExtractTypeLibTypeFromAttribute(
AttributeInfo
info, out Cci.TypeLibTypeFlags flags)
2029
AttributeInfo
info = FindTargetAttribute(token, description);
2041
AttributeInfo
info = FindTargetAttribute(token, description);
2054
AttributeInfo
info = FindTargetAttribute(token, description);
2071
AttributeInfo
typeIdentifierInfo;
2487
internal List<
AttributeInfo
>? FindTargetAttributes(EntityHandle hasAttribute, AttributeDescription description)
2489
List<
AttributeInfo
>? result = null;
2500
result = new List<
AttributeInfo
>();
2515
internal
AttributeInfo
FindTargetAttribute(EntityHandle hasAttribute, AttributeDescription description)
2520
internal static
AttributeInfo
FindTargetAttribute(MetadataReader metadataReader, EntityHandle hasAttribute, AttributeDescription description, out bool foundAttributeType)
2544
return default(
AttributeInfo
);
2547
internal
AttributeInfo
FindLastTargetAttribute(EntityHandle hasAttribute, AttributeDescription description)
2551
AttributeInfo
attrInfo = default(
AttributeInfo
);
2566
return default(
AttributeInfo
);
2584
private bool IsNoPiaLocalType(TypeDefinitionHandle typeDef, out
AttributeInfo
attributeInfo)
2588
attributeInfo = default(
AttributeInfo
);
2627
attributeInfo = default(
AttributeInfo
);
2645
new ConcurrentDictionary<TypeDefinitionHandle,
AttributeInfo
>(),
3199
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullableContextAttribute);
3213
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullableAttribute);
3234
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 _);