1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2227
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);
811
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
823
PropertyGenerationSpec
property = properties[i];
923
private static bool NeedsAccessorForGetter(
PropertyGenerationSpec
property)
930
private static bool NeedsAccessorForSetter(
PropertyGenerationSpec
property)
953
PropertyGenerationSpec
property,
998
PropertyGenerationSpec
property,
1035
PropertyGenerationSpec
property,
1070
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
1078
PropertyGenerationSpec
property = properties[i];
1222
PropertyGenerationSpec
firstProperty = entries[0].Property;
1236
PropertyGenerationSpec
property = entry.Property;
1292
private static string GetQualifiedAccessorName(
PropertyGenerationSpec
property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation)
1315
private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<
PropertyGenerationSpec
> properties)
1319
foreach (
PropertyGenerationSpec
property in properties)
1406
PropertyGenerationSpec
property,
1538
PropertyGenerationSpec
propertyGenSpec = typeGenSpec.PropertyGenSpecs[i];
1861
private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec,
PropertyGenerationSpec
propertySpec)
JsonSourceGenerator.Parser.cs (12)
603
List<
PropertyGenerationSpec
>? propertySpecs = null;
816
PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<
PropertyGenerationSpec
>.Empty,
1888
private List<
PropertyGenerationSpec
> ParsePropertyGenerationSpecs(
1898
List<
PropertyGenerationSpec
> properties = new();
1969
PropertyGenerationSpec
? propertySpec = ParsePropertyGenerationSpec(
2009
public Dictionary<string, (
PropertyGenerationSpec
, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
2022
PropertyGenerationSpec
propertySpec,
2038
(
PropertyGenerationSpec
other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName];
2117
private
PropertyGenerationSpec
? ParsePropertyGenerationSpec(
2567
List<
PropertyGenerationSpec
>? properties,
2585
foreach (
PropertyGenerationSpec
property in properties)
2630
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)