1 write to IsExtensionMethod
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7093
this.
IsExtensionMethod
= isExtensionMethod;
20 references to IsExtensionMethod
Microsoft.CodeAnalysis.CSharp (20)
CodeGen\EmitExpression.cs (1)
803
EmitDelegateCreation(expression, receiver, expression.
IsExtensionMethod
, meth, expression.Type, used);
Compilation\CSharpSemanticModel.cs (4)
2222
conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.MethodOpt, delegateCreation.
IsExtensionMethod
);
2228
conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.
IsExtensionMethod
);
2234
conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.
IsExtensionMethod
);
4799
if (delegateCreation.
IsExtensionMethod
&& method.IsExtensionMethod && (receiverOpt != null))
FlowAnalysis\NullableWalker.cs (2)
9679
method = CheckMethodGroupReceiverNullability(group, delegateInvokeMethod.Parameters, method, node.
IsExtensionMethod
);
9682
ReportNullabilityMismatchWithTargetDelegate(group.Syntax.Location, delegateType, delegateInvokeMethod, method, node.
IsExtensionMethod
);
Generated\BoundNodes.xml.Generated.cs (5)
7108
if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || isExtensionMethod != this.
IsExtensionMethod
|| wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11898
return node.Update(argument, node.MethodOpt, node.
IsExtensionMethod
, node.WasTargetTyped, type);
14330
updatedNode = node.Update(argument, methodOpt, node.
IsExtensionMethod
, node.WasTargetTyped, infoAndType.Type!);
14335
updatedNode = node.Update(argument, methodOpt, node.
IsExtensionMethod
, node.WasTargetTyped, node.Type);
16657
new TreeDumperNode("isExtensionMethod", node.
IsExtensionMethod
, null),
Lowering\ClosureConversion\ClosureConversion.cs (1)
1355
node.
IsExtensionMethod
,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
794
bool staticMember = !node.MethodOpt.RequiresInstanceReceiver && !node.
IsExtensionMethod
;
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
859
CheckMethodGroup((BoundMethodGroup)node.Argument, node.MethodOpt, node.
IsExtensionMethod
, parentIsConversion: true, convertedToType: node.Type);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
41
return targetMethod.IsStatic && !boundDelegateCreation.
IsExtensionMethod
;
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (2)
35
var receiver = (!method.RequiresInstanceReceiver && !node.
IsExtensionMethod
&& !method.IsAbstract && !method.IsVirtual) ? _factory.Type(method.ContainingType) : VisitExpression(mg.ReceiverOpt)!;
37
return node.Update(receiver, method, node.
IsExtensionMethod
, node.WasTargetTyped, node.Type);
Lowering\MethodToClassRewriter.cs (1)
598
return node.Update(rewrittenArgument, method, node.
IsExtensionMethod
, node.WasTargetTyped, type);
Lowering\SpillSequenceSpiller.cs (1)
1209
return UpdateExpression(builder, node.Update(argument, node.MethodOpt, node.
IsExtensionMethod
, node.WasTargetTyped, node.Type));