1 write to RefKinds
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (1)
25this.RefKinds = new ArrayBuilder<RefKind>(32);
47 references to RefKinds
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder_Deconstruct.cs (1)
647analyzedArguments.RefKinds.Add(RefKind.Out);
Binder\Binder_Expressions.cs (21)
3293bool hasRefKinds = result.RefKinds.Any(); 3304result.RefKinds.Add(RefKind.None); 3311result.RefKinds.Add(refKind); 3495Debug.Assert(analyzedArguments.RefKinds.Count == 0 || analyzedArguments.RefKinds.Count == arguments.Count); 3646if (analyzedArguments.RefKinds is { Count: > 0 } refKindsBuilder) 5009BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics); 5012var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 5124arguments.RefKinds.ToImmutableOrNull(), 5304else if (analyzedArguments.Names.Count != 0 || analyzedArguments.RefKinds.Count != 0 || analyzedArguments.Arguments.Count != 1) 5506analyzedArguments.RefKinds.AddRange(refKinds); 6663var refKindsArray = analyzedArguments.RefKinds.ToImmutableOrNull(); 6768BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 6771var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 8198Debug.Assert(extensionMethodArguments.RefKinds.Count == 0); 8210if (originalArguments.RefKinds.Count > 0) 8212extensionMethodArguments.RefKinds.Add(RefKind.None); 8213extensionMethodArguments.RefKinds.AddRange(originalArguments.RefKinds); 9723var refKindsArray = arguments.RefKinds.ToImmutableOrNull(); 9788ImmutableArray<RefKind> argumentRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull();
Binder\Binder_Invocation.cs (11)
313ImmutableArray<RefKind> refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 480var refKindsArray = arguments.RefKinds.ToImmutableOrNull(); 1202BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 1232if (analyzedArguments.RefKinds.Count == 0) 1234analyzedArguments.RefKinds.Count = analyzedArguments.Arguments.Count; 1239analyzedArguments.RefKinds[0] = RefKind.Ref; 1262var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 1951var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 2178var argRefKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 2382analyzedArguments.RefKinds.ToImmutableOrNull(), 2394var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull();
Binder\ForEachLoopBinder.cs (1)
1469analyzedArguments.RefKinds,
Binder\Semantics\Conversions\Conversions.cs (1)
423analyzedArguments.RefKinds.Add(parameter.RefKind);
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (8)
32this.RefKinds.Clear(); 78return RefKinds.Count > 0 ? RefKinds[i] : Microsoft.CodeAnalysis.RefKind.None; 95bool hasRefKinds = RefKinds.Count > 0; 101if ((object?)argument.Type != null && argument.Type.IsDynamic() && (!hasRefKinds || RefKinds[i] == Microsoft.CodeAnalysis.RefKind.None)) 141instance.RefKinds.AddRange(original.RefKinds); 156instance.RefKinds.AddRange(argumentRefKindsOpt);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
976arguments.RefKinds, 1020arguments.RefKinds, 4068arguments.RefKinds, 4137arguments.RefKinds,