1 instantiation of PropertyGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1205
return new
PropertyGenerationSpec
18 references to PropertyGenerationSpec
System.Text.Json.SourceGeneration (18)
JsonSourceGenerator.Emitter.cs (4)
601
ImmutableEquatableArray<
PropertyGenerationSpec
> properties = typeGenerationSpec.PropertyGenSpecs;
612
PropertyGenerationSpec
property = properties[i];
805
PropertyGenerationSpec
propertyGenSpec = typeGenSpec.PropertyGenSpecs[i];
1062
private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec,
PropertyGenerationSpec
propertySpec)
JsonSourceGenerator.Parser.cs (12)
518
List<
PropertyGenerationSpec
>? propertySpecs = null;
668
PropertyGenSpecs = propertySpecs?.ToImmutableEquatableArray() ?? ImmutableEquatableArray<
PropertyGenerationSpec
>.Empty,
916
private List<
PropertyGenerationSpec
> ParsePropertyGenerationSpecs(
924
List<
PropertyGenerationSpec
> properties = new();
995
PropertyGenerationSpec
? propertySpec = ParsePropertyGenerationSpec(
1035
public Dictionary<string, (
PropertyGenerationSpec
, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
1048
PropertyGenerationSpec
propertySpec,
1064
(
PropertyGenerationSpec
other, ISymbol otherSymbol, int index) = state.AddedProperties[propertySpec.EffectiveJsonPropertyName];
1118
private
PropertyGenerationSpec
? ParsePropertyGenerationSpec(
1502
List<
PropertyGenerationSpec
>? properties,
1516
foreach (
PropertyGenerationSpec
property in properties)
1560
static ParameterGenerationSpec? GetMatchingConstructorParameter(
PropertyGenerationSpec
propSpec, ParameterGenerationSpec[]? paramGenSpecs)
Model\TypeGenerationSpec.cs (2)
63
public required ImmutableEquatableArray<
PropertyGenerationSpec
> PropertyGenSpecs { get; init; }
120
foreach (
PropertyGenerationSpec
property in PropertyGenSpecs)