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