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