1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2487return new PropertyGenerationSpec
32 references to PropertyGenerationSpec
System.Text.Json.SourceGeneration (32)
JsonSourceGenerator.Emitter.cs (18)
14using GenericAccessorEntry = (System.Text.Json.SourceGeneration.PropertyGenerationSpec Property, int Index, bool Disambiguate, bool NeedsGetter, bool NeedsSetter); 828ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 840PropertyGenerationSpec property = properties[i]; 940private static bool NeedsAccessorForGetter(PropertyGenerationSpec property) 947private static bool NeedsAccessorForSetter(PropertyGenerationSpec property) 970PropertyGenerationSpec property, 1015PropertyGenerationSpec property, 1052PropertyGenerationSpec property, 1087ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 1095PropertyGenerationSpec property = properties[i]; 1239PropertyGenerationSpec firstProperty = entries[0].Property; 1253PropertyGenerationSpec property = entry.Property; 1309private static string GetQualifiedAccessorName(PropertyGenerationSpec property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation) 1332private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<PropertyGenerationSpec> properties) 1336foreach (PropertyGenerationSpec property in properties) 1423PropertyGenerationSpec property, 1555PropertyGenerationSpec propertyGenSpec = typeGenSpec.PropertyGenSpecs[i]; 1878private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec)
JsonSourceGenerator.Parser.cs (12)
693List<PropertyGenerationSpec>? propertySpecs = null; 924PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<PropertyGenerationSpec>.Empty, 2128private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 2139List<PropertyGenerationSpec> properties = new(); 2213PropertyGenerationSpec? propertySpec = ParsePropertyGenerationSpec( 2248public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 2261PropertyGenerationSpec propertySpec, 2277(PropertyGenerationSpec other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName]; 2356private PropertyGenerationSpec? ParsePropertyGenerationSpec( 2825List<PropertyGenerationSpec>? properties, 2843foreach (PropertyGenerationSpec property in properties) 2888static ParameterGenerationSpec? GetMatchingConstructorParameter(PropertyGenerationSpec propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
72public required ImmutableEquatableArray<PropertyGenerationSpec> PropertyGenSpecs { get; init; } 165foreach (PropertyGenerationSpec property in PropertyGenSpecs)