1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1376return new PropertyGenerationSpec
32 references to PropertyGenerationSpec
System.Text.Json.SourceGeneration (32)
JsonSourceGenerator.Emitter.cs (18)
13using GenericAccessorEntry = (System.Text.Json.SourceGeneration.PropertyGenerationSpec Property, int Index, bool Disambiguate, bool NeedsGetter, bool NeedsSetter); 619ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 631PropertyGenerationSpec property = properties[i]; 731private static bool NeedsAccessorForGetter(PropertyGenerationSpec property) 738private static bool NeedsAccessorForSetter(PropertyGenerationSpec property) 761PropertyGenerationSpec property, 806PropertyGenerationSpec property, 843PropertyGenerationSpec property, 878ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 886PropertyGenerationSpec property = properties[i]; 1030PropertyGenerationSpec firstProperty = entries[0].Property; 1044PropertyGenerationSpec property = entry.Property; 1100private static string GetQualifiedAccessorName(PropertyGenerationSpec property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation) 1123private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<PropertyGenerationSpec> properties) 1127foreach (PropertyGenerationSpec property in properties) 1214PropertyGenerationSpec property, 1346PropertyGenerationSpec propertyGenSpec = typeGenSpec.PropertyGenSpecs[i]; 1660private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec)
JsonSourceGenerator.Parser.cs (12)
584List<PropertyGenerationSpec>? propertySpecs = null; 738PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<PropertyGenerationSpec>.Empty, 1037private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 1047List<PropertyGenerationSpec> properties = new(); 1118PropertyGenerationSpec? propertySpec = ParsePropertyGenerationSpec( 1158public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 1171PropertyGenerationSpec propertySpec, 1187(PropertyGenerationSpec other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName]; 1266private PropertyGenerationSpec? ParsePropertyGenerationSpec( 1716List<PropertyGenerationSpec>? properties, 1734foreach (PropertyGenerationSpec property in properties) 1779static ParameterGenerationSpec? GetMatchingConstructorParameter(PropertyGenerationSpec propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
63public required ImmutableEquatableArray<PropertyGenerationSpec> PropertyGenSpecs { get; init; } 133foreach (PropertyGenerationSpec property in PropertyGenSpecs)