1 write to RefKinds
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (1)
25
this.
RefKinds
= new ArrayBuilder<RefKind>(32);
47 references to RefKinds
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder_Deconstruct.cs (1)
647
analyzedArguments.
RefKinds
.Add(RefKind.Out);
Binder\Binder_Expressions.cs (21)
3290
bool hasRefKinds = result.
RefKinds
.Any();
3301
result.
RefKinds
.Add(RefKind.None);
3308
result.
RefKinds
.Add(refKind);
3492
Debug.Assert(analyzedArguments.
RefKinds
.Count == 0 || analyzedArguments.
RefKinds
.Count == arguments.Count);
3643
if (analyzedArguments.
RefKinds
is { Count: > 0 } refKindsBuilder)
5006
BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.
RefKinds
, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics);
5009
var refKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
5121
arguments.
RefKinds
.ToImmutableOrNull(),
5301
else if (analyzedArguments.Names.Count != 0 || analyzedArguments.
RefKinds
.Count != 0 || analyzedArguments.Arguments.Count != 1)
5503
analyzedArguments.
RefKinds
.AddRange(refKinds);
6660
var refKindsArray = analyzedArguments.
RefKinds
.ToImmutableOrNull();
6765
BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.
RefKinds
, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
6768
var refKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
8195
Debug.Assert(extensionMethodArguments.
RefKinds
.Count == 0);
8207
if (originalArguments.
RefKinds
.Count > 0)
8209
extensionMethodArguments.
RefKinds
.Add(RefKind.None);
8210
extensionMethodArguments.
RefKinds
.AddRange(originalArguments.
RefKinds
);
9720
var refKindsArray = arguments.
RefKinds
.ToImmutableOrNull();
9785
ImmutableArray<RefKind> argumentRefKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
Binder\Binder_Invocation.cs (11)
313
ImmutableArray<RefKind> refKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
480
var refKindsArray = arguments.
RefKinds
.ToImmutableOrNull();
1202
BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.
RefKinds
, analyzedArguments.Names, ref argsToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
1232
if (analyzedArguments.
RefKinds
.Count == 0)
1234
analyzedArguments.
RefKinds
.Count = analyzedArguments.Arguments.Count;
1239
analyzedArguments.
RefKinds
[0] = RefKind.Ref;
1262
var argRefKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
1951
var argRefKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
2178
var argRefKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
2382
analyzedArguments.
RefKinds
.ToImmutableOrNull(),
2394
var refKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
Binder\ForEachLoopBinder.cs (1)
1469
analyzedArguments.
RefKinds
,
Binder\Semantics\Conversions\Conversions.cs (1)
423
analyzedArguments.
RefKinds
.Add(parameter.RefKind);
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (8)
32
this.
RefKinds
.Clear();
78
return
RefKinds
.Count > 0 ?
RefKinds
[i] : Microsoft.CodeAnalysis.RefKind.None;
95
bool hasRefKinds =
RefKinds
.Count > 0;
101
if ((object?)argument.Type != null && argument.Type.IsDynamic() && (!hasRefKinds ||
RefKinds
[i] == Microsoft.CodeAnalysis.RefKind.None))
141
instance.
RefKinds
.AddRange(original.
RefKinds
);
156
instance.
RefKinds
.AddRange(argumentRefKindsOpt);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
976
arguments.
RefKinds
,
1020
arguments.
RefKinds
,
4047
arguments.
RefKinds
,
4116
arguments.
RefKinds
,