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)
3290bool hasRefKinds = result.RefKinds.Any(); 3301result.RefKinds.Add(RefKind.None); 3308result.RefKinds.Add(refKind); 3492Debug.Assert(analyzedArguments.RefKinds.Count == 0 || analyzedArguments.RefKinds.Count == arguments.Count); 3643if (analyzedArguments.RefKinds is { Count: > 0 } refKindsBuilder) 5006BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics); 5009var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 5121arguments.RefKinds.ToImmutableOrNull(), 5301else if (analyzedArguments.Names.Count != 0 || analyzedArguments.RefKinds.Count != 0 || analyzedArguments.Arguments.Count != 1) 5503analyzedArguments.RefKinds.AddRange(refKinds); 6660var refKindsArray = analyzedArguments.RefKinds.ToImmutableOrNull(); 6765BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics); 6768var refKinds = analyzedArguments.RefKinds.ToImmutableOrNull(); 8195Debug.Assert(extensionMethodArguments.RefKinds.Count == 0); 8207if (originalArguments.RefKinds.Count > 0) 8209extensionMethodArguments.RefKinds.Add(RefKind.None); 8210extensionMethodArguments.RefKinds.AddRange(originalArguments.RefKinds); 9720var refKindsArray = arguments.RefKinds.ToImmutableOrNull(); 9785ImmutableArray<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, 4047arguments.RefKinds, 4116arguments.RefKinds,