1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2549return 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); 840ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 852PropertyGenerationSpec property = properties[i]; 952private static bool NeedsAccessorForGetter(PropertyGenerationSpec property) 959private static bool NeedsAccessorForSetter(PropertyGenerationSpec property) 982PropertyGenerationSpec property, 1027PropertyGenerationSpec property, 1064PropertyGenerationSpec property, 1099ImmutableEquatableArray<PropertyGenerationSpec> properties = typeGenerationSpec.PropertyGenSpecs; 1107PropertyGenerationSpec property = properties[i]; 1251PropertyGenerationSpec firstProperty = entries[0].Property; 1265PropertyGenerationSpec property = entry.Property; 1321private static string GetQualifiedAccessorName(PropertyGenerationSpec property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation) 1344private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<PropertyGenerationSpec> properties) 1348foreach (PropertyGenerationSpec property in properties) 1435PropertyGenerationSpec property, 1567PropertyGenerationSpec propertyGenSpec = typeGenSpec.PropertyGenSpecs[i]; 1890private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec)
JsonSourceGenerator.Parser.cs (12)
693List<PropertyGenerationSpec>? propertySpecs = null; 928PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<PropertyGenerationSpec>.Empty, 2190private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 2201List<PropertyGenerationSpec> properties = new(); 2275PropertyGenerationSpec? propertySpec = ParsePropertyGenerationSpec( 2310public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 2323PropertyGenerationSpec propertySpec, 2339(PropertyGenerationSpec other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName]; 2418private PropertyGenerationSpec? ParsePropertyGenerationSpec( 2887List<PropertyGenerationSpec>? properties, 2905foreach (PropertyGenerationSpec property in properties) 2950static ParameterGenerationSpec? GetMatchingConstructorParameter(PropertyGenerationSpec propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
72public required ImmutableEquatableArray<PropertyGenerationSpec> PropertyGenSpecs { get; init; } 165foreach (PropertyGenerationSpec property in PropertyGenSpecs)