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