1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1940return 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); 731ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 743PropertyGenerationSpec property = properties[i]; 843private static bool NeedsAccessorForGetter(PropertyGenerationSpec property) 850private static bool NeedsAccessorForSetter(PropertyGenerationSpec property) 873PropertyGenerationSpec property, 918PropertyGenerationSpec property, 955PropertyGenerationSpec property, 990ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 998PropertyGenerationSpec property = properties[i]; 1142PropertyGenerationSpec firstProperty = entries[0].Property; 1156PropertyGenerationSpec property = entry.Property; 1212private static string GetQualifiedAccessorName(PropertyGenerationSpec property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation) 1235private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<PropertyGenerationSpec> properties) 1239foreach (PropertyGenerationSpec property in properties) 1326PropertyGenerationSpec property, 1458PropertyGenerationSpec propertyGenSpec = typeGenSpec.PropertyGenSpecs[i]; 1770private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec)
JsonSourceGenerator.Parser.cs (12)
602List<PropertyGenerationSpec>? propertySpecs = null; 799PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<PropertyGenerationSpec>.Empty, 1601private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 1611List<PropertyGenerationSpec> properties = new(); 1682PropertyGenerationSpec? propertySpec = ParsePropertyGenerationSpec( 1722public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 1735PropertyGenerationSpec propertySpec, 1751(PropertyGenerationSpec other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName]; 1830private PropertyGenerationSpec? ParsePropertyGenerationSpec( 2280List<PropertyGenerationSpec>? properties, 2298foreach (PropertyGenerationSpec property in properties) 2343static ParameterGenerationSpec? GetMatchingConstructorParameter(PropertyGenerationSpec propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
65public required ImmutableEquatableArray<PropertyGenerationSpec> PropertyGenSpecs { get; init; } 150foreach (PropertyGenerationSpec property in PropertyGenSpecs)