28 references to MethodGroup
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Operators.cs (1)
3687case ConversionKind.MethodGroup:
Binder\Semantics\Conversions\Conversion.cs (2)
195Debug.Assert(_kind is ConversionKind.MethodGroup or ConversionKind.IntPtr or ConversionKind.ImplicitUserDefined or ConversionKind.ExplicitUserDefined); 959return Kind == ConversionKind.MethodGroup;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
41case ConversionKind.MethodGroup:
Binder\Semantics\Conversions\Conversions.cs (1)
504return new Conversion(ConversionKind.MethodGroup, method, isExtensionMethod: isExtensionMethod);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
679case ConversionKind.MethodGroup:
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
624case ConversionKind.MethodGroup:
CodeGen\EmitConversion.cs (2)
44case ConversionKind.MethodGroup: 123case ConversionKind.MethodGroup:
CodeGen\EmitExpression.cs (2)
1545case ConversionKind.MethodGroup: 3950conversionKind != ConversionKind.MethodGroup &&
Compilation\CSharpSemanticModel.cs (5)
2230conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.MethodOpt, delegateCreation.IsExtensionMethod); 2250else if (boundExpr is BoundConversion { ConversionKind: ConversionKind.MethodGroup, Conversion: var exprConversion, Type: { TypeKind: TypeKind.FunctionPointer }, SymbolOpt: var symbol }) 3537if ((conversion.ConversionKind == ConversionKind.MethodGroup) && conversion.IsExtensionMethod) 4307if (conversion.ConversionKind == ConversionKind.MethodGroup) 4311else if (conversion.Operand is BoundConversion { ConversionKind: ConversionKind.MethodGroup } nestedMethodGroupConversion)
FlowAnalysis\AbstractFlowPass.cs (1)
1743if (node.ConversionKind == ConversionKind.MethodGroup)
FlowAnalysis\NullableWalker.cs (1)
8976case ConversionKind.MethodGroup:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1392Debug.Assert(conversion.ConversionKind != ConversionKind.MethodGroup);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
690case ConversionKind.MethodGroup:
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
804case ConversionKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
215case ConversionKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
573case ConversionKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
548case ConversionKind.MethodGroup when oldNodeOpt is { Type: { TypeKind: TypeKind.FunctionPointer } funcPtrType }: 559case ConversionKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
231case ConversionKind.MethodGroup: // similarly for a method group
Operations\CSharpOperationFactory.cs (1)
1028if (boundConversion.ConversionKind == CSharp.ConversionKind.MethodGroup)
Operations\CSharpOperationFactory_Methods.cs (1)
145if (boundConversion.ConversionKind == ConversionKind.MethodGroup)