3 instantiations of NullableAttributeStateParser
Microsoft.Extensions.AI.Abstractions (3)
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (3)
401
return new
NullableAttributeStateParser
(attribute.ConstructorArguments[0].Value);
405
return new
NullableAttributeStateParser
(null);
641
public static NullableAttributeStateParser Unknown =>
new
(UnknownByte);
12 references to NullableAttributeStateParser
Microsoft.Extensions.AI.Abstractions (12)
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (12)
77
NullableAttributeStateParser
parser = parameterInfo.Member is MethodBase method && IsPrivateOrInternalMethodAndAnnotationDisabled(method)
78
?
NullableAttributeStateParser
.Unknown
203
NullableAttributeStateParser
parser = annotationsDisabled ?
NullableAttributeStateParser
.Unknown : CreateParser(propertyInfo.GetCustomAttributesData());
262
NullableAttributeStateParser
parser = IsPrivateOrInternalFieldAndAnnotationDisabled(fieldInfo) ?
NullableAttributeStateParser
.Unknown : CreateParser(attributes);
323
private NullabilityInfo GetNullabilityInfo(MemberInfo memberInfo, Type type,
NullableAttributeStateParser
parser)
336
private NullabilityInfo GetNullabilityInfo(MemberInfo memberInfo, Type type,
NullableAttributeStateParser
parser, ref int index)
393
private static
NullableAttributeStateParser
CreateParser(IList<CustomAttributeData> customAttributes)
545
NullableAttributeStateParser
parser = CreateParser(contextTypeDefinition.GetCustomAttributesData());
578
private static bool TryPopulateNullabilityInfo(NullabilityInfo nullability,
NullableAttributeStateParser
parser, ref int index)
641
public static
NullableAttributeStateParser
Unknown => new(UnknownByte);