55 references to HasValue
Microsoft.CodeAnalysis (55)
MetadataReader\PEModule.cs (55)
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.CompilerLoweringPreserveAttribute).HasValue; 1032return FindTargetAttribute(token, AttributeDescription.InterpolatedStringHandlerAttribute).HasValue; 1067return FindTargetAttribute(token, AttributeDescription.RequiredAttributeAttribute).HasValue; 1073if (info.HasValue) 1085return FindTargetAttribute(token, description).HasValue; 1098Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1); 1100if (!info.HasValue) 1118Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1); 1120if (!info.HasValue) 1137return FindTargetAttribute(token, AttributeDescription.ScopedRefAttribute).HasValue; 1142return FindTargetAttribute(token, AttributeDescription.UnscopedRefAttribute).HasValue; 1148if (info.HasValue) 1164if (info.HasValue) 1181Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1); 1183if (!info.HasValue) 1194return FindTargetAttribute(token, AttributeDescription.IsByRefLikeAttribute).HasValue; 1199return FindTargetAttribute(token, AttributeDescription.RequiresLocationAttribute).HasValue; 1215if (info.HasValue) 1221if (info.HasValue) 1236if (info.HasValue) 1243if (info.HasValue) 1275return info.HasValue ? TryExtractExperimentalDataFromAttribute(info, decoder) : null; 1280Debug.Assert(attributeInfo.HasValue); 1356if (!info.HasValue || !TryGetAttributeReader(info.Handle, out BlobReader sigReader) || !CrackStringInAttributeValue(out string? featureName, ref sigReader)) 1408if (!info.HasValue || info.SignatureIndex != 0 || !TryGetAttributeReader(info.Handle, out BlobReader sigReader)) 1447if (!targetAttribute.HasValue) 1477if (info.HasValue && 1512if (info.HasValue) 1559if (info.HasValue && TryExtractInterfaceTypeFromAttribute(info, out interfaceType)) 1571if (info.HasValue && TryExtractTypeLibTypeFromAttribute(info, out flags)) 1584if (info.HasValue && TryExtractLongValueFromAttribute(info.Handle, out value)) 1607if (info.HasValue && TryExtractDecimalValueFromDecimalConstantAttribute(info.Handle, out value)) 1620if (info.HasValue) 1755Debug.Assert(attributeInfo.HasValue); 1822Debug.Assert(attributeInfo.HasValue); 1841Debug.Assert(attributeInfo.HasValue); 1855Debug.Assert(attributeInfo.HasValue); 1906Debug.Assert(info.HasValue); 2040if (info.HasValue) 2052if (info.HasValue) 2065if (info.HasValue) 3210Debug.Assert(!info.HasValue || info.SignatureIndex == 0); 3212if (!info.HasValue) 3224Debug.Assert(!info.HasValue || info.SignatureIndex == 0 || info.SignatureIndex == 1); 3229if (!info.HasValue) 3245Debug.Assert(!info.HasValue || info.SignatureIndex == 0); 3247if (!info.HasValue)