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