27 references to MethodGroup
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Operators.cs (1)
3682case 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)
481return new Conversion(ConversionKind.MethodGroup, method, methodGroup.IsExtensionMethodGroup);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
679case ConversionKind.MethodGroup:
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
619case ConversionKind.MethodGroup:
CodeGen\EmitConversion.cs (2)
44case ConversionKind.MethodGroup: 123case ConversionKind.MethodGroup:
CodeGen\EmitExpression.cs (2)
1545case ConversionKind.MethodGroup: 3924conversionKind != ConversionKind.MethodGroup &&
Compilation\CSharpSemanticModel.cs (4)
2222conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.MethodOpt, delegateCreation.IsExtensionMethod); 2242else if (boundExpr is BoundConversion { ConversionKind: ConversionKind.MethodGroup, Conversion: var exprConversion, Type: { TypeKind: TypeKind.FunctionPointer }, SymbolOpt: var symbol }) 3528if ((conversion.ConversionKind == ConversionKind.MethodGroup) && conversion.IsExtensionMethod) 4300Debug.Assert(conversion.ConversionKind == ConversionKind.MethodGroup);
FlowAnalysis\AbstractFlowPass.cs (1)
1736if (node.ConversionKind == ConversionKind.MethodGroup)
FlowAnalysis\NullableWalker.cs (1)
8842case ConversionKind.MethodGroup:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1394Debug.Assert(conversion.ConversionKind != ConversionKind.MethodGroup);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
690case ConversionKind.MethodGroup:
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
790case ConversionKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
215case ConversionKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
572case ConversionKind.MethodGroup:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
550case ConversionKind.MethodGroup when oldNodeOpt is { Type: { TypeKind: TypeKind.FunctionPointer } funcPtrType }: 561case 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)