52 references to MethodGroup
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder.ValueChecks.cs (3)
618
if (expr.Kind == BoundKind.
MethodGroup
&& valueKind != BindValueKind.RValueOrMethodGroup)
762
case BoundKind.
MethodGroup
when valueKind == BindValueKind.AddressOf:
767
case BoundKind.
MethodGroup
:
Binder\Binder_Deconstruct.cs (1)
661
if (memberAccess.Kind != BoundKind.
MethodGroup
)
Binder\Binder_Expressions.cs (6)
416
Debug.Assert(expr.Kind is BoundKind.UnboundLambda or BoundKind.
MethodGroup
);
588
if (IsEarlyAttributeBinder && result.Kind == BoundKind.
MethodGroup
&& (!IsInsideNameof || EnclosingNameofArgument != node))
2821
case BoundKind.
MethodGroup
:
5430
else if (argument.Kind == BoundKind.
MethodGroup
)
7958
case BoundKind.
MethodGroup
:
11343
if (access.Kind == BoundKind.
MethodGroup
)
Binder\Binder_Invocation.cs (8)
124
Debug.Assert(allowFieldsAndProperties || boundExpression.Kind is (BoundKind.
MethodGroup
or BoundKind.BadExpression));
246
string name = boundExpression.Kind == BoundKind.
MethodGroup
? GetName(node.Expression) : null;
350
else if (boundExpression.Kind == BoundKind.
MethodGroup
)
403
if (expression.Kind == BoundKind.
MethodGroup
)
592
else if (arg.Kind == BoundKind.
MethodGroup
)
727
Debug.Assert(extensionMemberAccess.Kind != BoundKind.
MethodGroup
);
2234
var originalMethods = (expr.Kind == BoundKind.
MethodGroup
) ? ((BoundMethodGroup)expr).Methods : ImmutableArray<MethodSymbol>.Empty;
2282
if (!boundArgument.HasAnyErrors && syntaxIsOk && boundArgument.Kind == BoundKind.
MethodGroup
)
Binder\Binder_Operators.cs (4)
3166
case BoundKind.
MethodGroup
: // New in Roslyn - see DevDiv #864740.
3294
operand.Kind == BoundKind.
MethodGroup
||
3714
case BoundKind.
MethodGroup
: // New in Roslyn - see DevDiv #864740.
4023
if (leftOperand.Kind == BoundKind.UnboundLambda || leftOperand.Kind == BoundKind.
MethodGroup
)
Binder\Binder_Query.cs (1)
931
Debug.Assert(ultimateReceiver.Kind != BoundKind.
MethodGroup
|| ultimateReceiver.HasAnyErrors);
Binder\Binder_Statements.cs (3)
894
BoundExpression expression = value.Kind is BoundKind.UnboundLambda or BoundKind.
MethodGroup
?
2371
case BoundKind.
MethodGroup
:
4134
if (boundAccess.Kind != BoundKind.
MethodGroup
)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1097
case BoundKind.
MethodGroup
:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
1021
(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.
MethodGroup
)))
1077
(!isFunctionPointer && argument.Kind is not (BoundKind.UnboundLambda or BoundKind.
MethodGroup
)))
1445
if (source.Kind is not (BoundKind.
MethodGroup
or BoundKind.UnconvertedAddressOfOperator))
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3586
if (node?.Kind == BoundKind.
MethodGroup
)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1222
else if (argument.Kind == BoundKind.
MethodGroup
&& parameterType.TypeKind == TypeKind.Delegate &&
1227
else if (argument.Kind == BoundKind.
MethodGroup
&& parameterType.TypeKind == TypeKind.FunctionPointer)
BoundTree\BoundExpressionExtensions.cs (2)
137
Debug.Assert(expr.Kind is BoundKind.
MethodGroup
or BoundKind.UnboundLambda);
172
case BoundKind.
MethodGroup
:
Compilation\CSharpSemanticModel.cs (2)
2228
case BoundKind.
MethodGroup
:
3365
case BoundKind.
MethodGroup
:
Compilation\MemberSemanticModel.cs (1)
1789
while (receiver?.Kind == BoundKind.
MethodGroup
)
FlowAnalysis\NullableWalker.cs (1)
8062
case BoundKind.
MethodGroup
:
Generated\BoundNodes.xml.Generated.cs (2)
6074
: base(BoundKind.
MethodGroup
, syntax, receiverOpt, resultKind, hasErrors || receiverOpt.HasErrors())
9187
case BoundKind.
MethodGroup
:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
787
if (node.Argument.Kind == BoundKind.
MethodGroup
)
789
throw ExceptionUtilities.UnexpectedValue(BoundKind.
MethodGroup
);
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
897
if (node.Argument.Kind != BoundKind.
MethodGroup
)
981
if (node.Expression.Kind == BoundKind.
MethodGroup
)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
35
case BoundKind.
MethodGroup
:
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
28
if (node.Argument.Kind == BoundKind.
MethodGroup
)
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
33
if (rewrittenOperand.Kind == BoundKind.
MethodGroup
)
Operations\CSharpOperationFactory.cs (2)
296
case BoundKind.
MethodGroup
:
1120
boundOperand.Kind == BoundKind.
MethodGroup
) &&
Operations\CSharpOperationFactory_Methods.cs (1)
163
if (boundDelegateCreationExpression.Argument.Kind == BoundKind.
MethodGroup
&&
Symbols\FunctionTypeSymbol.cs (1)
68
Debug.Assert(expression.Kind is BoundKind.
MethodGroup
or BoundKind.UnboundLambda);