1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1376
return new
PropertyGenerationSpec
32 references to PropertyGenerationSpec
System.Text.Json.SourceGeneration (32)
JsonSourceGenerator.Emitter.cs (18)
13
using GenericAccessorEntry = (System.Text.Json.SourceGeneration.
PropertyGenerationSpec
Property, int Index, bool Disambiguate, bool NeedsGetter, bool NeedsSetter);
619
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
631
PropertyGenerationSpec
property = properties[i];
731
private static bool NeedsAccessorForGetter(
PropertyGenerationSpec
property)
738
private static bool NeedsAccessorForSetter(
PropertyGenerationSpec
property)
761
PropertyGenerationSpec
property,
806
PropertyGenerationSpec
property,
843
PropertyGenerationSpec
property,
878
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
886
PropertyGenerationSpec
property = properties[i];
1030
PropertyGenerationSpec
firstProperty = entries[0].Property;
1044
PropertyGenerationSpec
property = entry.Property;
1100
private static string GetQualifiedAccessorName(
PropertyGenerationSpec
property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation)
1123
private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<
PropertyGenerationSpec
> properties)
1127
foreach (
PropertyGenerationSpec
property in properties)
1214
PropertyGenerationSpec
property,
1346
PropertyGenerationSpec
propertyGenSpec = typeGenSpec.PropertyGenSpecs[i];
1660
private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec,
PropertyGenerationSpec
propertySpec)
JsonSourceGenerator.Parser.cs (12)
584
List<
PropertyGenerationSpec
>? propertySpecs = null;
738
PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<
PropertyGenerationSpec
>.Empty,
1037
private List<
PropertyGenerationSpec
> ParsePropertyGenerationSpecs(
1047
List<
PropertyGenerationSpec
> properties = new();
1118
PropertyGenerationSpec
? propertySpec = ParsePropertyGenerationSpec(
1158
public Dictionary<string, (
PropertyGenerationSpec
, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
1171
PropertyGenerationSpec
propertySpec,
1187
(
PropertyGenerationSpec
other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName];
1266
private
PropertyGenerationSpec
? ParsePropertyGenerationSpec(
1716
List<
PropertyGenerationSpec
>? properties,
1734
foreach (
PropertyGenerationSpec
property in properties)
1779
static ParameterGenerationSpec? GetMatchingConstructorParameter(
PropertyGenerationSpec
propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
63
public required ImmutableEquatableArray<
PropertyGenerationSpec
> PropertyGenSpecs { get; init; }
133
foreach (
PropertyGenerationSpec
property in PropertyGenSpecs)