Binder\Binder_Expressions.cs (14)
2125if (IsBadLocalOrParameterCapture(parameter, parameter.Type, parameter.RefKind))
2129if (parameter.RefKind != RefKind.None)
2149(parameter.RefKind != RefKind.None || parameter.Type.IsRestrictedType()) &&
2152if (parameter.RefKind != RefKind.None)
2166else if (primaryCtor is { ThisParameter.RefKind: not RefKind.None } &&
2527if (thisSymbol is not null && thisSymbol.ContainingSymbol != ContainingMemberOrLambda && thisSymbol.RefKind != RefKind.None)
3447getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.RefReadOnlyParameter)
3460if (getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.In)
3471getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.RefReadOnlyParameter)
3860refKind = parameter.RefKind;
3879refKind = parameter.RefKind;
10069original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None })
10167original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } &&
10168original.Parameters[1] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None };
FlowAnalysis\NullableWalker.cs (6)
1316var refKind = parameter.RefKind;
2883if (parameter.RefKind != RefKind.Out)
10149case BoundParameter { ParameterSymbol: { RefKind: RefKind.None } parameter } when
10282VisitArgumentConversionAndInboundAssignmentsAndPreConditions(conversionOpt: null, variable.Expression, underlyingConversion, parameter.RefKind,
10296variable.Expression, parameter.RefKind, parameter, parameter.TypeWithAnnotations, GetRValueAnnotations(parameter),
11901parameter.RefKind,