1 write to Methods
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\MethodGroup.cs (1)
27
this.
Methods
= new ArrayBuilder<MethodSymbol>();
28 references to Methods
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Expressions.cs (11)
7903
var method = resolution.MethodGroup.
Methods
[0];
8373
for (int i = methodGroup.
Methods
.Count - 1; i >= 0; i--)
8375
if ((object)methodGroup.
Methods
[i].ReduceExtensionMethod(left.Type, this.Compilation) == null)
8376
methodGroup.
Methods
.RemoveAt(i);
8380
if (methodGroup.
Methods
.Count != 0)
8386
if (methodGroup.
Methods
.Count == 0)
8411
methods: methodGroup.
Methods
,
10443
methodGroup.
Methods
,
10526
foreach (var m in methodGroup.
Methods
)
10692
var methods = ArrayBuilder<MethodSymbol>.GetInstance(capacity: methodGroup.
Methods
.Count);
10693
foreach (var extensionMethod in methodGroup.
Methods
)
Binder\Binder_Invocation.cs (4)
636
methods: methodGroup.
Methods
,
1120
Debug.Assert(methodGroup.
Methods
.Count > 0);
1121
Debug.Assert(((object)delegateTypeOpt == null) || (methodGroup.
Methods
.Count == 1));
1173
receiver: methodGroup.Receiver, invokedExpression: expression, arguments: analyzedArguments, memberGroup: methodGroup.
Methods
.ToImmutable(),
Binder\ForEachLoopBinder.cs (1)
1570
memberGroup: methodGroupResolutionResult.MethodGroup.
Methods
.ToImmutable(),
Binder\MethodGroupResolution.cs (3)
45
Debug.Assert((methodGroup == null) || (methodGroup.
Methods
.Count > 0));
87
MethodGroup?.
Methods
.Count == 1 && // Local functions cannot be overloaded
88
MethodGroup.
Methods
[0].MethodKind == MethodKind.LocalFunction;
Binder\Semantics\Conversions\Conversions.cs (2)
362
memberGroup: resolution.MethodGroup.
Methods
.ToImmutable(),
386
methods: methodGroup.
Methods
,
Binder\Semantics\OverloadResolution\MethodGroup.cs (7)
38
this.
Methods
.Add(method);
52
this.
Methods
.Add((MethodSymbol)member);
68
this.
Methods
.AddRange(methods);
86
this.
Methods
.Clear();
99
return this.
Methods
.Count > 0 ? this.
Methods
[0].Name : null;
125
Debug.Assert(this.
Methods
.Count == 0);