Binder\Binder_Expressions.cs (14)
2092if (IsBadLocalOrParameterCapture(parameter, parameter.Type, parameter.RefKind))
2096if (parameter.RefKind != RefKind.None)
2116(parameter.RefKind != RefKind.None || parameter.Type.IsRestrictedType()) &&
2119if (parameter.RefKind != RefKind.None)
2133else if (primaryCtor is { ThisParameter.RefKind: not RefKind.None } &&
2494if (thisSymbol is not null && thisSymbol.ContainingSymbol != ContainingMemberOrLambda && thisSymbol.RefKind != RefKind.None)
3412getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.RefReadOnlyParameter)
3425if (getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.In)
3436getCorrespondingParameter(in result, parameters, arg).RefKind == RefKind.RefReadOnlyParameter)
3825refKind = parameter.RefKind;
3844refKind = parameter.RefKind;
10036original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None })
10134original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } &&
10135original.Parameters[1] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None };
FlowAnalysis\NullableWalker.cs (6)
1255var refKind = parameter.RefKind;
2822if (parameter.RefKind != RefKind.Out)
10088case BoundParameter { ParameterSymbol: { RefKind: RefKind.None } parameter } when
10221VisitArgumentConversionAndInboundAssignmentsAndPreConditions(conversionOpt: null, variable.Expression, underlyingConversion, parameter.RefKind,
10235variable.Expression, parameter.RefKind, parameter, parameter.TypeWithAnnotations, GetRValueAnnotations(parameter),
11840parameter.RefKind,