5 instantiations of AttributeInfo
Microsoft.CodeAnalysis (5)
MetadataReader\PEModule.cs (5)
2509
result.Add(new
AttributeInfo
(attributeHandle, signatureIndex));
2542
return new
AttributeInfo
(attributeHandle, signatureIndex);
2563
attrInfo = new
AttributeInfo
(attributeHandle, signatureIndex);
2623
attributeInfo = new
AttributeInfo
(attributeHandle, signatureIndex);
2654
_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)
1342
List<
AttributeInfo
>? infos = FindTargetAttributes(token, AttributeDescription.CompilerFeatureRequiredAttribute);
1349
foreach (
var
info in infos)
1402
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.UnmanagedCallersOnlyAttribute);
1441
var
targetAttribute = FindTargetAttribute(token, AttributeDescription.InterpolatedStringHandlerArgumentAttribute);
1471
AttributeInfo
info = FindTargetAttribute(token, description);
1492
foreach (
var
attributeInfo in attributeInfos)
1505
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.AttributeUsageAttribute);
1553
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.InterfaceTypeAttribute);
1565
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.TypeLibTypeAttribute);
1578
AttributeInfo
info = FindLastTargetAttribute(token, AttributeDescription.DateTimeConstantAttribute);
1601
AttributeInfo
info = FindLastTargetAttribute(token, AttributeDescription.DecimalConstantAttribute);
1614
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullablePublicOnlyAttribute);
1630
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.InternalsVisibleToAttribute);
1637
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.ConditionalAttribute);
1647
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullAttribute);
1655
foreach (
var
ai in attrInfos)
1687
List<
AttributeInfo
> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullWhenAttribute);
1696
foreach (
var
ai in attrInfos)
1726
private ArrayBuilder<string> ExtractStringValuesFromAttributes(List<
AttributeInfo
> attrInfos)
1735
foreach (
var
ai in attrInfos)
1748
private ObsoleteAttributeData? TryExtractObsoleteDataFromAttribute(
AttributeInfo
attributeInfo, IAttributeNamedArgumentDecoder decoder)
1815
private ObsoleteAttributeData TryExtractDeprecatedDataFromAttribute(
AttributeInfo
attributeInfo)
1834
private ObsoleteAttributeData TryExtractWindowsExperimentalDataFromAttribute(
AttributeInfo
attributeInfo)
1848
private bool TryExtractInterfaceTypeFromAttribute(
AttributeInfo
attributeInfo, out ComInterfaceType interfaceType)
1899
private bool TryExtractTypeLibTypeFromAttribute(
AttributeInfo
info, out Cci.TypeLibTypeFlags flags)
2034
AttributeInfo
info = FindTargetAttribute(token, description);
2046
AttributeInfo
info = FindTargetAttribute(token, description);
2059
AttributeInfo
info = FindTargetAttribute(token, description);
2076
AttributeInfo
typeIdentifierInfo;
2492
internal List<
AttributeInfo
>? FindTargetAttributes(EntityHandle hasAttribute, AttributeDescription description)
2494
List<
AttributeInfo
>? result = null;
2505
result = new List<
AttributeInfo
>();
2520
internal
AttributeInfo
FindTargetAttribute(EntityHandle hasAttribute, AttributeDescription description)
2525
internal static
AttributeInfo
FindTargetAttribute(MetadataReader metadataReader, EntityHandle hasAttribute, AttributeDescription description, out bool foundAttributeType)
2549
return default(
AttributeInfo
);
2552
internal
AttributeInfo
FindLastTargetAttribute(EntityHandle hasAttribute, AttributeDescription description)
2556
AttributeInfo
attrInfo = default(
AttributeInfo
);
2571
return default(
AttributeInfo
);
2589
private bool IsNoPiaLocalType(TypeDefinitionHandle typeDef, out
AttributeInfo
attributeInfo)
2593
attributeInfo = default(
AttributeInfo
);
2632
attributeInfo = default(
AttributeInfo
);
2650
new ConcurrentDictionary<TypeDefinitionHandle,
AttributeInfo
>(),
3204
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullableContextAttribute);
3218
AttributeInfo
info = FindTargetAttribute(token, AttributeDescription.NullableAttribute);
3239
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 _);