MetadataReader\PEModule.cs (54)
987return FindTargetAttribute(token, AttributeDescription.ParamArrayAttribute).HasValue;
992return FindTargetAttribute(token, AttributeDescription.ParamCollectionAttribute).HasValue;
997return FindTargetAttribute(token, AttributeDescription.IsReadOnlyAttribute).HasValue;
1002return FindTargetAttribute(token, AttributeDescription.DoesNotReturnAttribute).HasValue;
1007return FindTargetAttribute(token, AttributeDescription.IsUnmanagedAttribute).HasValue;
1012return FindTargetAttribute(token, ignoreCase ? AttributeDescription.CaseInsensitiveExtensionAttribute : AttributeDescription.CaseSensitiveExtensionAttribute).HasValue;
1017return FindTargetAttribute(token, AttributeDescription.VisualBasicEmbeddedAttribute).HasValue;
1022return FindTargetAttribute(token, AttributeDescription.CodeAnalysisEmbeddedAttribute).HasValue;
1027return FindTargetAttribute(token, AttributeDescription.InterpolatedStringHandlerAttribute).HasValue;
1062return FindTargetAttribute(token, AttributeDescription.RequiredAttributeAttribute).HasValue;
1068if (info.HasValue)
1080return FindTargetAttribute(token, description).HasValue;
1093Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1);
1095if (!info.HasValue)
1113Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1);
1115if (!info.HasValue)
1132return FindTargetAttribute(token, AttributeDescription.ScopedRefAttribute).HasValue;
1137return FindTargetAttribute(token, AttributeDescription.UnscopedRefAttribute).HasValue;
1143if (info.HasValue)
1159if (info.HasValue)
1176Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1);
1178if (!info.HasValue)
1189return FindTargetAttribute(token, AttributeDescription.IsByRefLikeAttribute).HasValue;
1194return FindTargetAttribute(token, AttributeDescription.RequiresLocationAttribute).HasValue;
1210if (info.HasValue)
1216if (info.HasValue)
1231if (info.HasValue)
1238if (info.HasValue)
1270return info.HasValue ? TryExtractExperimentalDataFromAttribute(info, decoder) : null;
1275Debug.Assert(attributeInfo.HasValue);
1346if (!info.HasValue || !TryGetAttributeReader(info.Handle, out BlobReader sigReader) || !CrackStringInAttributeValue(out string? featureName, ref sigReader))
1398if (!info.HasValue || info.SignatureIndex != 0 || !TryGetAttributeReader(info.Handle, out BlobReader sigReader))
1437if (!targetAttribute.HasValue)
1467if (info.HasValue &&
1502if (info.HasValue)
1549if (info.HasValue && TryExtractInterfaceTypeFromAttribute(info, out interfaceType))
1561if (info.HasValue && TryExtractTypeLibTypeFromAttribute(info, out flags))
1574if (info.HasValue && TryExtractLongValueFromAttribute(info.Handle, out value))
1597if (info.HasValue && TryExtractDecimalValueFromDecimalConstantAttribute(info.Handle, out value))
1610if (info.HasValue)
1745Debug.Assert(attributeInfo.HasValue);
1812Debug.Assert(attributeInfo.HasValue);
1831Debug.Assert(attributeInfo.HasValue);
1845Debug.Assert(attributeInfo.HasValue);
1896Debug.Assert(info.HasValue);
2030if (info.HasValue)
2042if (info.HasValue)
2055if (info.HasValue)
3200Debug.Assert(!info.HasValue || info.SignatureIndex == 0);
3202if (!info.HasValue)
3214Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1);
3219if (!info.HasValue)
3235Debug.Assert(!info.HasValue || info.SignatureIndex == 0);
3237if (!info.HasValue)