52 references to MethodGroup
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder.ValueChecks.cs (3)
442if (expr.Kind == BoundKind.MethodGroup && valueKind != BindValueKind.RValueOrMethodGroup) 585case BoundKind.MethodGroup when valueKind == BindValueKind.AddressOf: 590case BoundKind.MethodGroup:
Binder\Binder_Conversions.cs (3)
648Debug.Assert(source.Kind is BoundKind.MethodGroup or BoundKind.UnboundLambda); 664source.Kind == BoundKind.MethodGroup && 1003if (node.Kind != BoundKind.MethodGroup)
Binder\Binder_Deconstruct.cs (1)
661if (memberAccess.Kind != BoundKind.MethodGroup)
Binder\Binder_Expressions.cs (5)
399Debug.Assert(expr.Kind is BoundKind.UnboundLambda or BoundKind.MethodGroup); 2563case BoundKind.MethodGroup: 4579else if (argument.Kind == BoundKind.MethodGroup) 6824case BoundKind.MethodGroup: 9352if (access.Kind == BoundKind.MethodGroup)
Binder\Binder_Invocation.cs (6)
182string name = boundExpression.Kind == BoundKind.MethodGroup ? GetName(node.Expression) : null; 268else if (boundExpression.Kind == BoundKind.MethodGroup) 315if (expression.Kind == BoundKind.MethodGroup) 483else if (arg.Kind == BoundKind.MethodGroup) 1843var originalMethods = (expr.Kind == BoundKind.MethodGroup) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty; 1891if (!boundArgument.HasAnyErrors && syntaxIsOk && boundArgument.Kind == BoundKind.MethodGroup)
Binder\Binder_Operators.cs (4)
3118case BoundKind.MethodGroup: // New in Roslyn - see DevDiv #864740. 3246operand.Kind == BoundKind.MethodGroup || 3637case BoundKind.MethodGroup: // New in Roslyn - see DevDiv #864740. 3941if (leftOperand.Kind == BoundKind.UnboundLambda || leftOperand.Kind == BoundKind.MethodGroup)
Binder\Binder_Query.cs (1)
955else if (ultimateReceiver.Kind == BoundKind.MethodGroup)
Binder\Binder_Statements.cs (3)
895BoundExpression expression = value.Kind is BoundKind.UnboundLambda or BoundKind.MethodGroup ? 2319case BoundKind.MethodGroup: 4020if (boundAccess.Kind != BoundKind.MethodGroup)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1060case BoundKind.MethodGroup:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
905(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.MethodGroup))) 961(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.MethodGroup))) 1329if (source.Kind is not (BoundKind.MethodGroup or BoundKind.UnconvertedAddressOfOperator))
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
2846if (node?.Kind == BoundKind.MethodGroup)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1185else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.Delegate && 1190else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.FunctionPointer)
BoundTree\BoundExpressionExtensions.cs (2)
119Debug.Assert(expr.Kind is BoundKind.MethodGroup or BoundKind.UnboundLambda); 154case BoundKind.MethodGroup:
Compilation\CSharpSemanticModel.cs (2)
2218case BoundKind.MethodGroup: 3350case BoundKind.MethodGroup:
Compilation\MemberSemanticModel.cs (1)
1780while (receiver?.Kind == BoundKind.MethodGroup)
FlowAnalysis\NullableWalker.cs (1)
7100case BoundKind.MethodGroup:
Generated\BoundNodes.xml.Generated.cs (2)
5964: base(BoundKind.MethodGroup, syntax, receiverOpt, resultKind, hasErrors || receiverOpt.HasErrors()) 8828case BoundKind.MethodGroup:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
708if (node.Argument.Kind == BoundKind.MethodGroup) 710throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup);
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
781if (node.Argument.Kind != BoundKind.MethodGroup) 865if (node.Expression.Kind == BoundKind.MethodGroup)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
36case BoundKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
26if (node.Argument.Kind == BoundKind.MethodGroup)
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
33if (rewrittenOperand.Kind == BoundKind.MethodGroup)
Operations\CSharpOperationFactory.cs (2)
292case BoundKind.MethodGroup: 1114boundOperand.Kind == BoundKind.MethodGroup) &&
Operations\CSharpOperationFactory_Methods.cs (1)
163if (boundDelegateCreationExpression.Argument.Kind == BoundKind.MethodGroup &&
Symbols\FunctionTypeSymbol.cs (1)
68Debug.Assert(expression.Kind is BoundKind.MethodGroup or BoundKind.UnboundLambda);