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)
7913internal override TypeWithAnnotations GetMethodGroupResultType(BoundMethodGroup group, MethodSymbol method)
8841var group = conversionOperand as BoundMethodGroup;
9604case BoundMethodGroup group:
9660Action<NamedTypeSymbol>? visitMethodGroupArgument(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group)
9668Action<NamedTypeSymbol>? analyzeMethodGroupConversion(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group, bool isTargetTyped)
9689Action<NamedTypeSymbol>? analyzeMethodGroupConversionAsContinuation(BoundDelegateCreationExpression node, BoundMethodGroup group)
9766public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
9805private MethodSymbol CheckMethodGroupReceiverNullability(BoundMethodGroup group, ImmutableArray<ParameterSymbol> parameters, MethodSymbol method, bool invokedAsExtensionMethod)
11665var receiverOpt = (expr as BoundMethodGroup)?.ReceiverOpt;
Generated\BoundNodes.xml.Generated.cs (17)
1305public BoundUnconvertedAddressOfOperator(SyntaxNode syntax, BoundMethodGroup operand, bool hasErrors = false)
1314public BoundMethodGroup Operand { get; }
1320public BoundUnconvertedAddressOfOperator Update(BoundMethodGroup operand)
6102public BoundMethodGroup Update(ImmutableArray<TypeWithAnnotations> typeArgumentsOpt, string name, ImmutableArray<MethodSymbol> methods, Symbol? lookupSymbolOpt, DiagnosticInfo? lookupError, BoundMethodGroupFlags? flags, FunctionTypeSymbol? functionType, BoundExpression? receiverOpt, LookupResultKind resultKind)
6106var result = new BoundMethodGroup(this.Syntax, typeArgumentsOpt, name, methods, lookupSymbolOpt, lookupError, flags, functionType, receiverOpt, resultKind, this.HasErrors);
9154return VisitMethodGroup((BoundMethodGroup)node, arg);
9465public virtual R VisitMethodGroup(BoundMethodGroup node, A arg) => this.DefaultVisit(node, arg);
9701public virtual BoundNode? VisitMethodGroup(BoundMethodGroup node) => this.DefaultVisit(node);
10449public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
10956BoundMethodGroup operand = (BoundMethodGroup)this.Visit(node.Operand);
11726public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
12571BoundMethodGroup operand = (BoundMethodGroup)this.Visit(node.Operand);
13891public override BoundNode? VisitMethodGroup(BoundMethodGroup node)
13897BoundMethodGroup updatedNode;
16358public 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);