1 write to MethodGroup
Microsoft.CodeAnalysis.CSharp (1)
Binder\MethodGroupResolution.cs (1)
53this.MethodGroup = methodGroup;
25 references to MethodGroup
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (1)
619bool resolvedToMethodGroup = resolution.MethodGroup != null;
Binder\Binder_Expressions.cs (4)
7900if (resolution.MethodGroup != null && !resolution.HasAnyErrors) 7903var method = resolution.MethodGroup.Methods[0]; 8434firstResult.MethodGroup.Free(); 10280return new MethodGroupResolution(methodResolution.MethodGroup, methodResolution.OtherSymbol, methodResolution.OverloadResolutionResult, methodResolution.AnalyzedArguments, methodResolution.ResultKind, diagnostics.ToReadOnlyAndFree());
Binder\Binder_Invocation.cs (6)
730resultKind = resolution.MethodGroup.ResultKind; 731typeArguments = resolution.MethodGroup.TypeArguments.ToImmutable(); 760if (resolution.MethodGroup != null) 765resolution.MethodGroup, delegateTypeOpt: null, diagnostics: BindingDiagnosticBag.Discarded, queryClause: queryClause); 834resolution.MethodGroup, delegateTypeOpt: null, diagnostics: diagnostics, queryClause: queryClause); 960methodGroup: resolution.MethodGroup,
Binder\ForEachLoopBinder.cs (1)
1570memberGroup: methodGroupResolutionResult.MethodGroup.Methods.ToImmutable(),
Binder\MethodGroupResolution.cs (7)
63get { return (this.MethodGroup == null) && ((object)this.OtherSymbol == null); } 75return (this.MethodGroup != null) && 83get { return (this.MethodGroup != null) && this.MethodGroup.IsExtensionMethodGroup; } 87MethodGroup?.Methods.Count == 1 && // Local functions cannot be overloaded 88MethodGroup.Methods[0].MethodKind == MethodKind.LocalFunction; 93this.MethodGroup?.Free();
Binder\Semantics\Conversions\Conversions.cs (6)
107ToConversion(resolution.OverloadResolutionResult, resolution.MethodGroup, methodSymbol.ParameterCount); 124ToConversion(resolution.OverloadResolutionResult, resolution.MethodGroup, destination.Signature.ParameterCount); 317if (resolution.MethodGroup != null) 326if (resolution.MethodGroup.IsExtensionMethodGroup) 361receiver: resolution.MethodGroup.Receiver, invokedExpression: expr.Syntax, arguments: resolution.AnalyzedArguments, 362memberGroup: resolution.MethodGroup.Methods.ToImmutable(),