55 references to MethodGroup
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder.ValueChecks.cs (3)
839if (expr.Kind == BoundKind.MethodGroup && valueKind != BindValueKind.RValueOrMethodGroup) 983case BoundKind.MethodGroup when valueKind == BindValueKind.AddressOf: 988case BoundKind.MethodGroup:
Binder\Binder_Conversions.cs (4)
1315if (boundExpression.Kind != BoundKind.MethodGroup) 2166Debug.Assert(source.Kind is BoundKind.MethodGroup or BoundKind.UnboundLambda); 2182source.Kind == BoundKind.MethodGroup && 2534if (node.Kind != BoundKind.MethodGroup)
Binder\Binder_Deconstruct.cs (1)
661if (memberAccess.Kind != BoundKind.MethodGroup)
Binder\Binder_Expressions.cs (6)
426Debug.Assert(expr.Kind is BoundKind.UnboundLambda or BoundKind.MethodGroup); 598if (IsEarlyAttributeBinder && result.Kind == BoundKind.MethodGroup && (!IsInsideNameof || EnclosingNameofArgument != node)) 2839case BoundKind.MethodGroup: 5463else if (argument.Kind == BoundKind.MethodGroup) 7992case BoundKind.MethodGroup: 11406if (access.Kind == BoundKind.MethodGroup)
Binder\Binder_Invocation.cs (7)
125Debug.Assert(allowFieldsAndProperties || boundExpression.Kind is (BoundKind.MethodGroup or BoundKind.BadExpression)); 247string name = boundExpression.Kind == BoundKind.MethodGroup ? GetName(node.Expression) : null; 358else if (boundExpression.Kind == BoundKind.MethodGroup) 411if (expression.Kind == BoundKind.MethodGroup) 600else if (arg.Kind == BoundKind.MethodGroup) 735Debug.Assert(extensionMemberAccess.Kind != BoundKind.MethodGroup); 2326var originalMethods = (expr.Kind == BoundKind.MethodGroup) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty;
Binder\Binder_Operators.cs (4)
4766case BoundKind.MethodGroup: // New in Roslyn - see DevDiv #864740. 4894operand.Kind == BoundKind.MethodGroup || 5314case BoundKind.MethodGroup: // New in Roslyn - see DevDiv #864740. 5623if (leftOperand.Kind == BoundKind.UnboundLambda || leftOperand.Kind == BoundKind.MethodGroup)
Binder\Binder_Query.cs (1)
942Debug.Assert(ultimateReceiver.Kind != BoundKind.MethodGroup || ultimateReceiver.HasAnyErrors);
Binder\Binder_Statements.cs (3)
899BoundExpression expression = value.Kind is BoundKind.UnboundLambda or BoundKind.MethodGroup ? 2399case BoundKind.MethodGroup: 4163if (boundAccess.Kind != BoundKind.MethodGroup)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1097case BoundKind.MethodGroup:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
1024(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.MethodGroup))) 1080(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.MethodGroup))) 1448if (source.Kind is not (BoundKind.MethodGroup or BoundKind.UnconvertedAddressOfOperator))
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3600if (node?.Kind == BoundKind.MethodGroup)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1252else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.Delegate && 1257else if (argument.Kind == BoundKind.MethodGroup && parameterType.TypeKind == TypeKind.FunctionPointer)
BoundTree\BoundExpressionExtensions.cs (2)
137Debug.Assert(expr.Kind is BoundKind.MethodGroup or BoundKind.UnboundLambda); 182case BoundKind.MethodGroup:
Compilation\CSharpSemanticModel.cs (2)
2221case BoundKind.MethodGroup: 3358case BoundKind.MethodGroup:
Compilation\MemberSemanticModel.cs (1)
1828while (receiver?.Kind == BoundKind.MethodGroup)
FlowAnalysis\NullableWalker.cs (1)
8503case BoundKind.MethodGroup:
Generated\BoundNodes.xml.Generated.cs (2)
6081: base(BoundKind.MethodGroup, syntax, receiverOpt, resultKind, hasErrors || receiverOpt.HasErrors()) 9198case BoundKind.MethodGroup:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
788if (node.Argument.Kind == BoundKind.MethodGroup) 790throw ExceptionUtilities.UnexpectedValue(BoundKind.MethodGroup);
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
913if (node.Argument.Kind != BoundKind.MethodGroup) 997if (node.Expression.Kind == BoundKind.MethodGroup)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
35case 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);