1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6822this.MethodOpt = methodOpt;
32 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (32)
BoundTree\BoundExpressionExtensions.cs (2)
158if (delegateCreation != null && delegateCreation.MethodOpt is { }) 160symbols.Add(delegateCreation.MethodOpt);
CodeGen\EmitExpression.cs (1)
787var meth = expression.MethodOpt ?? receiver.Type.DelegateInvokeMethod();
Compilation\CSharpSemanticModel.cs (3)
2220conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.MethodOpt, delegateCreation.IsExtensionMethod); 4271if (delegateCreation.Argument == boundNode && (object)delegateCreation.MethodOpt != null) 4778var method = delegateCreation.MethodOpt;
FlowAnalysis\AbstractFlowPass.cs (2)
1520if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 1524else if (node.MethodOpt is { } method && methodGroup.ReceiverOpt is { } receiver && !ignoreReceiver(method))
FlowAnalysis\NullableWalker.cs (2)
8697if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 8778var method = node.MethodOpt;
Generated\BoundNodes.xml.Generated.cs (4)
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); 13804MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 16050new TreeDumperNode("methodOpt", node.MethodOpt, null),
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
452if (node.MethodOpt?.MethodKind == MethodKind.LocalFunction) 455var method = node.MethodOpt.OriginalDefinition;
Lowering\ClosureConversion\ClosureConversion.cs (2)
1322if (node.MethodOpt?.MethodKind == MethodKind.LocalFunction) 1329node.MethodOpt,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
713if ((object)node.MethodOpt != null) 715bool staticMember = !node.MethodOpt.RequiresInstanceReceiver && !node.IsExtensionMethod; 716return DelegateCreation(node.Argument, node.MethodOpt, node.Type, staticMember);
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
787CheckMethodGroup((BoundMethodGroup)node.Argument, node.MethodOpt, node.IsExtensionMethod, parentIsConversion: true, convertedToType: node.Type);
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
56var 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)
241node.MethodOpt?.MethodKind == MethodKind.LocalFunction;
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
29var method = node.MethodOpt;
Lowering\MethodToClassRewriter.cs (1)
579MethodSymbol? method = node.MethodOpt;
Lowering\SpillSequenceSpiller.cs (1)
1111return 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);