7 references to IsExtensionMethod
Microsoft.CodeAnalysis.CSharp (7)
Compilation\CSharpSemanticModel.cs (2)
3528if ((conversion.ConversionKind == ConversionKind.MethodGroup) && conversion.IsExtensionMethod) 4309if (conversion.IsExtensionMethod)
FlowAnalysis\AbstractFlowPass.cs (1)
1738if (node.IsExtensionMethod || ((object)node.SymbolOpt != null && node.SymbolOpt.RequiresInstanceReceiver))
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
693return DelegateCreation(mg.ReceiverOpt, node.SymbolOpt, node.Type, !node.SymbolOpt.RequiresInstanceReceiver && !node.IsExtensionMethod);
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
791CheckMethodGroup((BoundMethodGroup)node.Operand, node.Conversion.Method, node.IsExtensionMethod, parentIsConversion: true, node.Type);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
570var receiver = (!method.RequiresInstanceReceiver && !oldNodeOpt.IsExtensionMethod && !method.IsAbstract && !method.IsVirtual) ? _factory.Type(method.ContainingType) : mg.ReceiverOpt; 575isExtensionMethod: oldNodeOpt.IsExtensionMethod, wasTargetTyped: false, type: rewrittenType);