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