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