17 references to ObjectConstructionStrategy
System.Text.Json.SourceGeneration (17)
JsonSourceGenerator.Emitter.cs (6)
499
ObjectConstructionStrategy
constructionStrategy = typeMetadata.ConstructionStrategy;
502
string parameterizedCreatorInvocation = constructionStrategy ==
ObjectConstructionStrategy
.ParameterizedConstructor
517
if (constructionStrategy is
ObjectConstructionStrategy
.ParameterizedConstructor)
522
if (constructionStrategy is
ObjectConstructionStrategy
.ParameterlessConstructor
523
or
ObjectConstructionStrategy
.ParameterizedConstructor)
1475
{ ConstructionStrategy:
ObjectConstructionStrategy
.ParameterlessConstructor } => $"() => new {typeSpec.TypeRef.FullyQualifiedName}()",
JsonSourceGenerator.Parser.cs (11)
514
ObjectConstructionStrategy
constructionStrategy = default;
593
constructionStrategy =
ObjectConstructionStrategy
.ParameterlessConstructor;
1438
out
ObjectConstructionStrategy
constructionStrategy,
1445
constructionStrategy =
ObjectConstructionStrategy
.NotApplicable;
1456
constructionStrategy =
ObjectConstructionStrategy
.ParameterlessConstructor;
1463
constructionStrategy =
ObjectConstructionStrategy
.ParameterizedConstructor;
1473
constructionStrategy =
ObjectConstructionStrategy
.NotApplicable;
1491
return constructionStrategy is
ObjectConstructionStrategy
.NotApplicable ? null : constructorParameters;
1498
ref
ObjectConstructionStrategy
constructionStrategy)
1500
if (constructionStrategy is
ObjectConstructionStrategy
.NotApplicable || properties is null)
1535
constructionStrategy =
ObjectConstructionStrategy
.ParameterizedConstructor;