1 write to IsExtensionMethod
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6823this.IsExtensionMethod = isExtensionMethod;
20 references to IsExtensionMethod
Microsoft.CodeAnalysis.CSharp (20)
CodeGen\EmitExpression.cs (1)
789EmitDelegateCreation(expression, receiver, expression.IsExtensionMethod, meth, expression.Type, used);
Compilation\CSharpSemanticModel.cs (4)
2220conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.MethodOpt, delegateCreation.IsExtensionMethod); 2226conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.IsExtensionMethod); 2232conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.IsExtensionMethod); 4781if (delegateCreation.IsExtensionMethod && method.IsExtensionMethod && (receiverOpt != null))
FlowAnalysis\NullableWalker.cs (2)
8782method = CheckMethodGroupReceiverNullability(group, delegateInvokeMethod.Parameters, method, node.IsExtensionMethod); 8785ReportNullabilityMismatchWithTargetDelegate(group.Syntax.Location, delegateType, delegateInvokeMethod, method, node.IsExtensionMethod);
Generated\BoundNodes.xml.Generated.cs (5)
6838if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || isExtensionMethod != this.IsExtensionMethod || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11470return node.Update(argument, node.MethodOpt, node.IsExtensionMethod, node.WasTargetTyped, type); 13810updatedNode = node.Update(argument, methodOpt, node.IsExtensionMethod, node.WasTargetTyped, infoAndType.Type!); 13815updatedNode = node.Update(argument, methodOpt, node.IsExtensionMethod, node.WasTargetTyped, node.Type); 16051new TreeDumperNode("isExtensionMethod", node.IsExtensionMethod, null),
Lowering\ClosureConversion\ClosureConversion.cs (1)
1339node.IsExtensionMethod,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
715bool staticMember = !node.MethodOpt.RequiresInstanceReceiver && !node.IsExtensionMethod;
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
787CheckMethodGroup((BoundMethodGroup)node.Argument, node.MethodOpt, node.IsExtensionMethod, parentIsConversion: true, convertedToType: node.Type);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
41return targetMethod.IsStatic && !boundDelegateCreation.IsExtensionMethod;
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (2)
33var receiver = (!method.RequiresInstanceReceiver && !node.IsExtensionMethod && !method.IsAbstract && !method.IsVirtual) ? _factory.Type(method.ContainingType) : VisitExpression(mg.ReceiverOpt)!; 35return node.Update(receiver, method, node.IsExtensionMethod, node.WasTargetTyped, node.Type);
Lowering\MethodToClassRewriter.cs (1)
589return node.Update(rewrittenArgument, method, node.IsExtensionMethod, node.WasTargetTyped, type);
Lowering\SpillSequenceSpiller.cs (1)
1111return UpdateExpression(builder, node.Update(argument, node.MethodOpt, node.IsExtensionMethod, node.WasTargetTyped, node.Type));