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