Binder\Binder_Expressions.cs (14)
2095if (IsBadLocalOrParameterCapture(parameter, parameter.Type, parameter.RefKind))
2099if (parameter.RefKind != RefKind.None)
2119(parameter.RefKind != RefKind.None || parameter.Type.IsRestrictedType()) &&
2122if (parameter.RefKind != RefKind.None)
2136else if (primaryCtor is { ThisParameter.RefKind: not RefKind.None } &&
2497if (thisSymbol is not null && thisSymbol.ContainingSymbol != ContainingMemberOrLambda && thisSymbol.RefKind != RefKind.None)
3415getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.RefReadOnlyParameter)
3428if (getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.In)
3439getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.RefReadOnlyParameter)
3828refKind = parameter.RefKind;
3847refKind = parameter.RefKind;
10037original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None })
10135original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } &&
10136original.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,