1 write to ParameterType
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2861
ParameterType
= parameterTypeRef,
8 references to ParameterType
System.Text.Json.SourceGeneration (8)
JsonSourceGenerator.Emitter.cs (8)
587
: $$"""new[] {{{string.Join(", ", typeMetadata.CtorParamGenSpecs.Select(p => $"typeof({p.
ParameterType
.FullyQualifiedName})"))}}}""";
1431
string parameterTypeFQN = (useGenericWrapper ? param.OpenParameterTypeFQN : null) ?? param.
ParameterType
.FullyQualifiedName;
1458
: $"new global::System.Type[] {{{string.Join(", ", parameters.Select(p => $"typeof({p.
ParameterType
.FullyQualifiedName}){(p.RefKind is RefKind.None ? "" : ".MakeByRefType()")}"))}}}";
1481
writer.WriteLine($"p{param.ParameterIndex} = ({param.
ParameterType
.FullyQualifiedName})args[{param.ParameterIndex}]!;");
1566
ParameterType = typeof({{spec.
ParameterType
.FullyQualifiedName}}),
1569
DefaultValue = {{(spec.HasDefaultValue ? CSharpSyntaxUtilities.FormatLiteral(spec.DefaultValue, spec.
ParameterType
) : "null")}},
1779
sb.Append($"var __temp{param.ParameterIndex} = ({param.
ParameterType
.FullyQualifiedName})args[{param.ArgsIndex}]; ");
1843
_ => $"({param.
ParameterType
.FullyQualifiedName})args[{param.ArgsIndex}]", // None or In (in doesn't require keyword at call site)