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);
802
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
814
PropertyGenerationSpec
property = properties[i];
914
private static bool NeedsAccessorForGetter(
PropertyGenerationSpec
property)
921
private static bool NeedsAccessorForSetter(
PropertyGenerationSpec
property)
944
PropertyGenerationSpec
property,
989
PropertyGenerationSpec
property,
1026
PropertyGenerationSpec
property,
1061
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
1069
PropertyGenerationSpec
property = properties[i];
1213
PropertyGenerationSpec
firstProperty = entries[0].Property;
1227
PropertyGenerationSpec
property = entry.Property;
1283
private static string GetQualifiedAccessorName(
PropertyGenerationSpec
property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation)
1306
private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<
PropertyGenerationSpec
> properties)
1310
foreach (
PropertyGenerationSpec
property in properties)
1397
PropertyGenerationSpec
property,
1529
PropertyGenerationSpec
propertyGenSpec = typeGenSpec.PropertyGenSpecs[i];
1841
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)