Binder\Binder_Expressions.cs (18)
2776!MethodGroupConversionDoesNotExistOrHasErrors((BoundMethodGroup)operand, (NamedTypeSymbol)targetType, syntax.Location, diagnostics, out _))
5379BoundMethodGroup methodGroup = (BoundMethodGroup)argument;
5415var boundMethodGroup = new BoundMethodGroup(
7892var methodGroup = (BoundMethodGroup)expr;
7974var boundMethodGroup = new BoundMethodGroup(
8017private void BindMemberAccessReportError(BoundMethodGroup node, BindingDiagnosticBag diagnostics)
8108private BoundExpression BindMemberAccessBadResult(BoundMethodGroup node)
10117var boundMethodGroup = new BoundMethodGroup(
10237BoundMethodGroup node,
10256BoundMethodGroup node,
10286BoundMethodGroup methodGroup,
10304BoundMethodGroup methodGroup,
10376BoundMethodGroup node,
10460internal NamedTypeSymbol? GetMethodGroupDelegateType(BoundMethodGroup node)
10479private MethodSymbol? GetUniqueSignatureFromMethodGroup_CSharp10(BoundMethodGroup node, out bool useParams)
10615private MethodSymbol? GetUniqueSignatureFromMethodGroup(BoundMethodGroup node, out bool useParams)
Binder\Binder_Invocation.cs (11)
354node, expression, methodName, (BoundMethodGroup)boundExpression, analyzedArguments,
404BoundMethodGroup methodGroup = (BoundMethodGroup)expression;
693BoundMethodGroup methodGroup,
846private void ReportDynamicInvocationWarnings(SyntaxNode syntax, BoundMethodGroup methodGroup, BindingDiagnosticBag diagnostics, ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates)
883BoundMethodGroup boundMethodGroup,
938BoundMethodGroup boundMethodGroup,
2179var originalMethods = (expr.Kind == BoundKind.MethodGroup) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty;
2229var methodGroup = (BoundMethodGroup)boundArgument;
2250private void EnsureNameofExpressionSymbols(BoundMethodGroup methodGroup, BindingDiagnosticBag diagnostics)
Binder\Semantics\Conversions\Conversions.cs (4)
44public override Conversion GetMethodGroupDelegateConversion(BoundMethodGroup source, TypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
113public override Conversion GetMethodGroupFunctionPointerConversion(BoundMethodGroup source, FunctionPointerTypeSymbol destination, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
249private static MethodGroupResolution ResolveDelegateOrFunctionPointerMethodGroup(Binder binder, BoundMethodGroup source, MethodSymbol delegateInvokeMethodOpt, bool isFunctionPointer, in CallingConventionInfo callingConventionInfo, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
295public static bool ReportDelegateOrFunctionPointerMethodGroupDiagnostics(Binder binder, BoundMethodGroup expr, TypeSymbol targetType, BindingDiagnosticBag diagnostics)
FlowAnalysis\NullableWalker.cs (10)
7916internal override TypeWithAnnotations GetMethodGroupResultType(BoundMethodGroup group, MethodSymbol method)
8844var group = conversionOperand as BoundMethodGroup;
9607case BoundMethodGroup group:
9663Action<NamedTypeSymbol>? visitMethodGroupArgument(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group)
9671Action<NamedTypeSymbol>? analyzeMethodGroupConversion(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group, bool isTargetTyped)
9692Action<NamedTypeSymbol>? analyzeMethodGroupConversionAsContinuation(BoundDelegateCreationExpression node, BoundMethodGroup group)
9769public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
9808private MethodSymbol CheckMethodGroupReceiverNullability(BoundMethodGroup group, ImmutableArray<ParameterSymbol> parameters, MethodSymbol method, bool invokedAsExtensionMethod)
11668var receiverOpt = (expr as BoundMethodGroup)?.ReceiverOpt;
Generated\BoundNodes.xml.Generated.cs (17)
1304public BoundUnconvertedAddressOfOperator(SyntaxNode syntax, BoundMethodGroup operand, bool hasErrors = false)
1313public BoundMethodGroup Operand { get; }
1319public BoundUnconvertedAddressOfOperator Update(BoundMethodGroup operand)
6101public BoundMethodGroup Update(ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, ImmutableArray<MethodSymbol> methods, Symbol? lookupSymbolOpt, DiagnosticInfo? lookupError, BoundMethodGroupFlags? flags, FunctionTypeSymbol? functionType, BoundExpression? receiverOpt, LookupResultKind resultKind)
6105var result = new BoundMethodGroup(this.Syntax, typeArgumentsOpt, name, methods, lookupSymbolOpt, lookupError, flags, functionType, receiverOpt, resultKind, this.HasErrors);
9153return VisitMethodGroup((BoundMethodGroup)node, arg);
9464public virtual R VisitMethodGroup(BoundMethodGroup node, A arg) => this.DefaultVisit(node, arg);
9700public virtual BoundNode? VisitMethodGroup(BoundMethodGroup node) => this.DefaultVisit(node);
10448public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
10955BoundMethodGroup operand = (BoundMethodGroup)this.Visit(node.Operand);
11725public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
12570BoundMethodGroup operand = (BoundMethodGroup)this.Visit(node.Operand);
13890public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
13896BoundMethodGroup updatedNode;
16357public override TreeDumperNode VisitMethodGroup(BoundMethodGroup node, object? arg) => new TreeDumperNode("methodGroup", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (5)
791CheckMethodGroup((BoundMethodGroup)node.Operand, node.Conversion.Method, node.IsExtensionMethod, parentIsConversion: true, node.Type);
859CheckMethodGroup((BoundMethodGroup)node.Argument, node.MethodOpt, node.IsExtensionMethod, parentIsConversion: true, convertedToType: node.Type);
865public override BoundNode VisitMethodGroup(BoundMethodGroup node)
871private void CheckMethodGroup(BoundMethodGroup node, MethodSymbol method, bool isExtensionMethod, bool parentIsConversion, TypeSymbol convertedToType)
939return base.VisitMethodGroup((BoundMethodGroup)node.Expression);