32 references to ParameterRefKinds
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Expressions.cs (1)
10800
var parameterRefKinds = methodSymbol.
ParameterRefKinds
;
Binder\ForEachLoopBinder.cs (3)
244
if (getEnumeratorMethod.
ParameterRefKinds
is { IsDefault: false } refKinds && refKinds[0] == RefKind.Ref)
1202
Debug.Assert(patternDisposeMethod.
ParameterRefKinds
.IsDefaultOrEmpty ||
1203
patternDisposeMethod.
ParameterRefKinds
.All(static refKind => refKind is RefKind.None or RefKind.In or RefKind.RefReadOnlyParameter));
Binder\Semantics\Operators\BinaryOperatorSignature.cs (6)
100
if (!Method.
ParameterRefKinds
.IsDefaultOrEmpty)
102
Debug.Assert(Method.
ParameterRefKinds
.Length == 2);
104
return Method.
ParameterRefKinds
[0];
120
if (!Method.
ParameterRefKinds
.IsDefaultOrEmpty)
122
Debug.Assert(Method.
ParameterRefKinds
.Length == 2);
124
return Method.
ParameterRefKinds
[1];
Binder\Semantics\Operators\UnaryOperatorSignature.cs (3)
54
if (!Method.
ParameterRefKinds
.IsDefaultOrEmpty)
56
Debug.Assert(Method.
ParameterRefKinds
.Length == 1);
58
return Method.
ParameterRefKinds
.Single();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (5)
1904
&& (sourceSignature.
ParameterRefKinds
.IsDefault, targetSignature.
ParameterRefKinds
.IsDefault) switch
1908
_ => sourceSignature.
ParameterRefKinds
.SequenceEqual(targetSignature.
ParameterRefKinds
)
3217
constructedFromMethod.
ParameterRefKinds
,
BoundTree\Constructors.cs (3)
192
var parameterRefKind = method.
ParameterRefKinds
.IsDefault ? RefKind.None : method.
ParameterRefKinds
[i];
232
var result = method.
ParameterRefKinds
;
BoundTree\NullabilityRewriter.cs (1)
167
updatedLambda = boundLambda.CreateLambdaSymbol(updatedContaining, lambda.ReturnTypeWithAnnotations, lambda.ParameterTypesWithAnnotations, lambda.
ParameterRefKinds
, lambda.RefKind);
Compilation\CSharpCompilation.cs (1)
2241
if (!method.
ParameterRefKinds
.IsDefault)
Compiler\ClsComplianceChecker.cs (2)
1334
xRefKinds = mX.
ParameterRefKinds
;
1338
yRefKinds = mY.
ParameterRefKinds
;
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
176
addArg(method.
ParameterRefKinds
[0], input);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
507
Debug.Assert(method.
ParameterRefKinds
.IsDefaultOrEmpty || method.
ParameterRefKinds
.All(static refKind => refKind is RefKind.In or RefKind.RefReadOnlyParameter or RefKind.None));
Lowering\SyntheticBoundNodeFactory.cs (1)
860
var result = method.
ParameterRefKinds
;
Symbols\MemberSymbolExtensions.cs (1)
88
return ((MethodSymbol)member).
ParameterRefKinds
;
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1144
if (this.
ParameterRefKinds
.IsDefault)
1149
foreach (var kind in this.
ParameterRefKinds
)