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)
3293
bool hasRefKinds = result.
RefKinds
.Any();
3304
result.
RefKinds
.Add(RefKind.None);
3311
result.
RefKinds
.Add(refKind);
3495
Debug.Assert(analyzedArguments.
RefKinds
.Count == 0 || analyzedArguments.
RefKinds
.Count == arguments.Count);
3646
if (analyzedArguments.
RefKinds
is { Count: > 0 } refKindsBuilder)
5009
BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.
RefKinds
, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics);
5012
var refKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
5124
arguments.
RefKinds
.ToImmutableOrNull(),
5304
else if (analyzedArguments.Names.Count != 0 || analyzedArguments.
RefKinds
.Count != 0 || analyzedArguments.Arguments.Count != 1)
5506
analyzedArguments.
RefKinds
.AddRange(refKinds);
6663
var refKindsArray = analyzedArguments.
RefKinds
.ToImmutableOrNull();
6768
BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.
RefKinds
, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
6771
var refKinds = analyzedArguments.
RefKinds
.ToImmutableOrNull();
8198
Debug.Assert(extensionMethodArguments.
RefKinds
.Count == 0);
8210
if (originalArguments.
RefKinds
.Count > 0)
8212
extensionMethodArguments.
RefKinds
.Add(RefKind.None);
8213
extensionMethodArguments.
RefKinds
.AddRange(originalArguments.
RefKinds
);
9723
var refKindsArray = arguments.
RefKinds
.ToImmutableOrNull();
9788
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
,
4068
arguments.
RefKinds
,
4137
arguments.
RefKinds
,