1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2227return 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); 802ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 814PropertyGenerationSpec property = properties[i]; 914private static bool NeedsAccessorForGetter(PropertyGenerationSpec property) 921private static bool NeedsAccessorForSetter(PropertyGenerationSpec property) 944PropertyGenerationSpec property, 989PropertyGenerationSpec property, 1026PropertyGenerationSpec property, 1061ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 1069PropertyGenerationSpec property = properties[i]; 1213PropertyGenerationSpec firstProperty = entries[0].Property; 1227PropertyGenerationSpec property = entry.Property; 1283private static string GetQualifiedAccessorName(PropertyGenerationSpec property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation) 1306private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<PropertyGenerationSpec> properties) 1310foreach (PropertyGenerationSpec property in properties) 1397PropertyGenerationSpec property, 1529PropertyGenerationSpec propertyGenSpec = typeGenSpec.PropertyGenSpecs[i]; 1841private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec)
JsonSourceGenerator.Parser.cs (12)
603List<PropertyGenerationSpec>? propertySpecs = null; 816PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<PropertyGenerationSpec>.Empty, 1888private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 1898List<PropertyGenerationSpec> properties = new(); 1969PropertyGenerationSpec? propertySpec = ParsePropertyGenerationSpec( 2009public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 2022PropertyGenerationSpec propertySpec, 2038(PropertyGenerationSpec other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName]; 2117private PropertyGenerationSpec? ParsePropertyGenerationSpec( 2567List<PropertyGenerationSpec>? properties, 2585foreach (PropertyGenerationSpec property in properties) 2630static ParameterGenerationSpec? GetMatchingConstructorParameter(PropertyGenerationSpec propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
65public required ImmutableEquatableArray<PropertyGenerationSpec> PropertyGenSpecs { get; init; } 150foreach (PropertyGenerationSpec property in PropertyGenSpecs)