1 write to RefKind
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2877
RefKind
= parameterInfo.RefKind,
10 references to RefKind
System.Text.Json.SourceGeneration (10)
JsonSourceGenerator.Emitter.cs (8)
1471
int nonOutParamCount = parameters.Count(p => p.
RefKind
!= RefKind.Out);
1473
Debug.Assert(paramCount > 0 || parameters.Any(p => p.
RefKind
== RefKind.Out));
1483
if (spec.
RefKind
== RefKind.Out)
1691
bool hasRefOrRefReadonlyParams = parameters.Any(p => p.
RefKind
== RefKind.Ref || p.
RefKind
== RefKindRefReadOnlyParameter);
1703
if (param.
RefKind
== RefKind.Ref || param.
RefKind
== RefKindRefReadOnlyParameter)
1764
return param.
RefKind
switch
JsonSourceGenerator.Parser.cs (2)
2900
int paramCount = constructorParameters?.Count(p => p.
RefKind
!= RefKind.Out) ?? 0;
2956
=> paramSpec.
RefKind
!= RefKind.Out &&