1 write to ParameterType
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2861ParameterType = 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})"))}}}"""; 1431string 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()")}"))}}}"; 1481writer.WriteLine($"p{param.ParameterIndex} = ({param.ParameterType.FullyQualifiedName})args[{param.ParameterIndex}]!;"); 1566ParameterType = typeof({{spec.ParameterType.FullyQualifiedName}}), 1569DefaultValue = {{(spec.HasDefaultValue ? CSharpSyntaxUtilities.FormatLiteral(spec.DefaultValue, spec.ParameterType) : "null")}}, 1779sb.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)