1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2541return 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); 831ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 843PropertyGenerationSpec property = properties[i]; 943private static bool NeedsAccessorForGetter(PropertyGenerationSpec property) 950private static bool NeedsAccessorForSetter(PropertyGenerationSpec property) 980PropertyGenerationSpec property, 1030PropertyGenerationSpec property, 1068PropertyGenerationSpec property, 1109ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 1117PropertyGenerationSpec property = properties[i]; 1261PropertyGenerationSpec firstProperty = entries[0].Property; 1275PropertyGenerationSpec property = entry.Property; 1331private static string GetQualifiedAccessorName(PropertyGenerationSpec property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation) 1354private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<PropertyGenerationSpec> properties) 1358foreach (PropertyGenerationSpec property in properties) 1508PropertyGenerationSpec property, 1640PropertyGenerationSpec propertyGenSpec = typeGenSpec.PropertyGenSpecs[i]; 1963private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec)
JsonSourceGenerator.Parser.cs (12)
664List<PropertyGenerationSpec>? propertySpecs = null; 908PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<PropertyGenerationSpec>.Empty, 2172private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 2183List<PropertyGenerationSpec> properties = new(); 2259PropertyGenerationSpec? propertySpec = ParsePropertyGenerationSpec( 2295public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 2308PropertyGenerationSpec propertySpec, 2324(PropertyGenerationSpec other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName]; 2403private PropertyGenerationSpec? ParsePropertyGenerationSpec( 2880List<PropertyGenerationSpec>? properties, 2898foreach (PropertyGenerationSpec property in properties) 2943static ParameterGenerationSpec? GetMatchingConstructorParameter(PropertyGenerationSpec propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
91public required ImmutableEquatableArray<PropertyGenerationSpec> PropertyGenSpecs { get; init; } 184foreach (PropertyGenerationSpec property in PropertyGenSpecs)