51 references to MethodGroup
Microsoft.CodeAnalysis.CSharp (51)
Binder\Binder.ValueChecks.cs (3)
612if (expr.Kind == BoundKind.MethodGroup && valueKind != BindValueKind.RValueOrMethodGroup) 755case BoundKind.MethodGroup when valueKind == BindValueKind.AddressOf: 760case BoundKind.MethodGroup:
Binder\Binder_Deconstruct.cs (1)
661if (memberAccess.Kind != BoundKind.MethodGroup)
Binder\Binder_Expressions.cs (6)
411Debug.Assert(expr.Kind is BoundKind.UnboundLambda or BoundKind.MethodGroup); 581if (IsEarlyAttributeBinder && result.Kind == BoundKind.MethodGroup && (!IsInsideNameof || EnclosingNameofArgument != node)) 2773case BoundKind.MethodGroup: 5376else if (argument.Kind == BoundKind.MethodGroup) 7890case BoundKind.MethodGroup: 10957if (access.Kind == BoundKind.MethodGroup)
Binder\Binder_Invocation.cs (7)
124Debug.Assert(allowFieldsAndProperties || boundExpression.Kind is (BoundKind.MethodGroup or BoundKind.BadExpression)); 246string name = boundExpression.Kind == BoundKind.MethodGroup ? GetName(node.Expression) : null; 350else if (boundExpression.Kind == BoundKind.MethodGroup) 402if (expression.Kind == BoundKind.MethodGroup) 591else if (arg.Kind == BoundKind.MethodGroup) 2179var originalMethods = (expr.Kind == BoundKind.MethodGroup) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty; 2227if (!boundArgument.HasAnyErrors && syntaxIsOk && boundArgument.Kind == BoundKind.MethodGroup)
Binder\Binder_Operators.cs (4)
3161case BoundKind.MethodGroup: // New in Roslyn - see DevDiv #864740. 3289operand.Kind == BoundKind.MethodGroup || 3709case BoundKind.MethodGroup: // New in Roslyn - see DevDiv #864740. 4018if (leftOperand.Kind == BoundKind.UnboundLambda || leftOperand.Kind == BoundKind.MethodGroup)
Binder\Binder_Query.cs (1)
956else if (ultimateReceiver.Kind == BoundKind.MethodGroup)
Binder\Binder_Statements.cs (3)
892BoundExpression expression = value.Kind is BoundKind.UnboundLambda or BoundKind.MethodGroup ? 2352case BoundKind.MethodGroup: 4116if (boundAccess.Kind != BoundKind.MethodGroup)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1097case BoundKind.MethodGroup:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
996(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.MethodGroup))) 1052(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.MethodGroup))) 1420if (source.Kind is not (BoundKind.MethodGroup or BoundKind.UnconvertedAddressOfOperator))
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3526if (node?.Kind == BoundKind.MethodGroup)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1220else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.Delegate && 1225else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.FunctionPointer)
BoundTree\BoundExpressionExtensions.cs (2)
137Debug.Assert(expr.Kind is BoundKind.MethodGroup or BoundKind.UnboundLambda); 172case BoundKind.MethodGroup:
Compilation\CSharpSemanticModel.cs (2)
2220case BoundKind.MethodGroup: 3357case BoundKind.MethodGroup:
Compilation\MemberSemanticModel.cs (1)
1789while (receiver?.Kind == BoundKind.MethodGroup)
FlowAnalysis\NullableWalker.cs (1)
7904case BoundKind.MethodGroup:
Generated\BoundNodes.xml.Generated.cs (2)
6075: base(BoundKind.MethodGroup, syntax, receiverOpt, resultKind, hasErrors || receiverOpt.HasErrors()) 9152case BoundKind.MethodGroup:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
787if (node.Argument.Kind == BoundKind.MethodGroup) 789throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup);
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
853if (node.Argument.Kind != BoundKind.MethodGroup) 937if (node.Expression.Kind == BoundKind.MethodGroup)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
36case BoundKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
28if (node.Argument.Kind == BoundKind.MethodGroup)
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
33if (rewrittenOperand.Kind == BoundKind.MethodGroup)
Operations\CSharpOperationFactory.cs (2)
296case BoundKind.MethodGroup: 1120boundOperand.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);