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