1 write to RefKind
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1706
RefKind
= parameterInfo.RefKind,
10 references to RefKind
System.Text.Json.SourceGeneration (10)
JsonSourceGenerator.Emitter.cs (8)
1250
int nonOutParamCount = parameters.Count(p => p.
RefKind
!= RefKind.Out);
1252
Debug.Assert(paramCount > 0 || parameters.Any(p => p.
RefKind
== RefKind.Out));
1262
if (spec.
RefKind
== RefKind.Out)
1472
bool hasRefOrRefReadonlyParams = parameters.Any(p => p.
RefKind
== RefKind.Ref || p.
RefKind
== RefKindRefReadOnlyParameter);
1484
if (param.
RefKind
== RefKind.Ref || param.
RefKind
== RefKindRefReadOnlyParameter)
1545
return param.
RefKind
switch
JsonSourceGenerator.Parser.cs (2)
1729
int paramCount = constructorParameters?.Count(p => p.
RefKind
!= RefKind.Out) ?? 0;
1785
=> paramSpec.
RefKind
!= RefKind.Out &&