1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2487
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);
828
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
840
PropertyGenerationSpec
property = properties[i];
940
private static bool NeedsAccessorForGetter(
PropertyGenerationSpec
property)
947
private static bool NeedsAccessorForSetter(
PropertyGenerationSpec
property)
970
PropertyGenerationSpec
property,
1015
PropertyGenerationSpec
property,
1052
PropertyGenerationSpec
property,
1087
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
1095
PropertyGenerationSpec
property = properties[i];
1239
PropertyGenerationSpec
firstProperty = entries[0].Property;
1253
PropertyGenerationSpec
property = entry.Property;
1309
private static string GetQualifiedAccessorName(
PropertyGenerationSpec
property, string typeFriendlyName, string accessorKind, string memberName, int propertyIndex, bool needsDisambiguation)
1332
private static HashSet<string> GetDuplicateMemberNames(ImmutableEquatableArray<
PropertyGenerationSpec
> properties)
1336
foreach (
PropertyGenerationSpec
property in properties)
1423
PropertyGenerationSpec
property,
1555
PropertyGenerationSpec
propertyGenSpec = typeGenSpec.PropertyGenSpecs[i];
1878
private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec,
PropertyGenerationSpec
propertySpec)
JsonSourceGenerator.Parser.cs (12)
693
List<
PropertyGenerationSpec
>? propertySpecs = null;
924
PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<
PropertyGenerationSpec
>.Empty,
2128
private List<
PropertyGenerationSpec
> ParsePropertyGenerationSpecs(
2139
List<
PropertyGenerationSpec
> properties = new();
2213
PropertyGenerationSpec
? propertySpec = ParsePropertyGenerationSpec(
2248
public Dictionary<string, (
PropertyGenerationSpec
, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
2261
PropertyGenerationSpec
propertySpec,
2277
(
PropertyGenerationSpec
other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName];
2356
private
PropertyGenerationSpec
? ParsePropertyGenerationSpec(
2825
List<
PropertyGenerationSpec
>? properties,
2843
foreach (
PropertyGenerationSpec
property in properties)
2888
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)