1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7090this.MethodOpt = methodOpt;
34 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (34)
BoundTree\BoundExpressionExtensions.cs (2)
176if (delegateCreation != null && delegateCreation.MethodOpt is { }) 178symbols.Add(delegateCreation.MethodOpt);
CodeGen\EmitExpression.cs (1)
801var meth = expression.MethodOpt ?? receiver.Type.DelegateInvokeMethod();
Compilation\CSharpSemanticModel.cs (3)
2230conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.MethodOpt, delegateCreation.IsExtensionMethod); 4295if (delegateCreation.Argument == boundNode && (object)delegateCreation.MethodOpt != null) 4804var method = delegateCreation.MethodOpt;
FlowAnalysis\AbstractFlowPass.cs (2)
1624if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 1628else if (node.MethodOpt is { } method && methodGroup.ReceiverOpt is { } receiver && !ignoreReceiver(method))
FlowAnalysis\NullableWalker.cs (2)
9759if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 9840var method = node.MethodOpt;
Generated\BoundNodes.xml.Generated.cs (4)
7106if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || isExtensionMethod != this.IsExtensionMethod || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 12050MethodSymbol? methodOpt = this.VisitMethodSymbol(node.MethodOpt); 14503MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 16834new TreeDumperNode("methodOpt", node.MethodOpt, null),
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
471if (node.MethodOpt?.MethodKind == MethodKind.LocalFunction) 474var method = node.MethodOpt.OriginalDefinition;
Lowering\ClosureConversion\ClosureConversion.cs (2)
1336if (node.MethodOpt?.MethodKind == MethodKind.LocalFunction) 1343node.MethodOpt,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
792if ((object)node.MethodOpt != null) 794bool staticMember = !node.MethodOpt.RequiresInstanceReceiver && !node.IsExtensionMethod; 795return DelegateCreation(node.Argument, node.MethodOpt, node.Type, staticMember);
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
903CheckMethodGroup((BoundMethodGroup)node.Argument, node.MethodOpt, node.IsExtensionMethod, parentIsConversion: true, convertedToType: node.Type);
Lowering\ExtensionMethodReferenceRewriter.cs (2)
205var methodOpt = VisitMethodSymbolWithExtensionRewrite(rewriter, node.MethodOpt); 212Debug.Assert(node.MethodOpt!.OriginalDefinition.TryGetCorrespondingExtensionImplementationMethod() == (object)methodOpt.OriginalDefinition);
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
61var targetMethod = boundDelegateCreation.MethodOpt;
Lowering\LocalRewriter\DelegateCacheRewriter.cs (3)
37var targetMethod = boundDelegateCreation.MethodOpt; 46Debug.Assert(boundDelegateCreation.MethodOpt is { }); 126var targetMethod = boundDelegateCreation.MethodOpt;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
240node.MethodOpt?.MethodKind == MethodKind.LocalFunction;
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
31var method = node.MethodOpt;
Lowering\MethodToClassRewriter.cs (1)
367MethodSymbol? method = node.MethodOpt;
Lowering\SpillSequenceSpiller.cs (1)
1209return UpdateExpression(builder, node.Update(argument, node.MethodOpt, node.IsExtensionMethod, node.WasTargetTyped, node.Type));
Operations\CSharpOperationFactory_Methods.cs (2)
164boundDelegateCreationExpression.MethodOpt != null) 171return CreateBoundMethodGroupSingleMethodOperation(boundMethodGroup, boundDelegateCreationExpression.MethodOpt, boundMethodGroup.SuppressVirtualCalls);