1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2541
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);
831
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
843
PropertyGenerationSpec
property = properties[i];
943
private static bool NeedsAccessorForGetter(
PropertyGenerationSpec
property)
950
private static bool NeedsAccessorForSetter(
PropertyGenerationSpec
property)
980
PropertyGenerationSpec
property,
1030
PropertyGenerationSpec
property,
1068
PropertyGenerationSpec
property,
1109
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
1117
PropertyGenerationSpec
property = properties[i];
1261
PropertyGenerationSpec
firstProperty = entries[0].Property;
1275
PropertyGenerationSpec
property = entry.Property;
1331
private static string GetQualifiedAccessorName(
PropertyGenerationSpec
property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation)
1354
private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<
PropertyGenerationSpec
> properties)
1358
foreach (
PropertyGenerationSpec
property in properties)
1508
PropertyGenerationSpec
property,
1640
PropertyGenerationSpec
propertyGenSpec = typeGenSpec.PropertyGenSpecs[i];
1963
private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec,
PropertyGenerationSpec
propertySpec)
JsonSourceGenerator.Parser.cs (12)
664
List<
PropertyGenerationSpec
>? propertySpecs = null;
908
PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<
PropertyGenerationSpec
>.Empty,
2172
private List<
PropertyGenerationSpec
> ParsePropertyGenerationSpecs(
2183
List<
PropertyGenerationSpec
> properties = new();
2259
PropertyGenerationSpec
? propertySpec = ParsePropertyGenerationSpec(
2295
public Dictionary<string, (
PropertyGenerationSpec
, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
2308
PropertyGenerationSpec
propertySpec,
2324
(
PropertyGenerationSpec
other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName];
2403
private
PropertyGenerationSpec
? ParsePropertyGenerationSpec(
2880
List<
PropertyGenerationSpec
>? properties,
2898
foreach (
PropertyGenerationSpec
property in properties)
2943
static ParameterGenerationSpec? GetMatchingConstructorParameter(
PropertyGenerationSpec
propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
91
public required ImmutableEquatableArray<
PropertyGenerationSpec
> PropertyGenSpecs { get; init; }
184
foreach (
PropertyGenerationSpec
property in PropertyGenSpecs)