1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7091this.MethodOpt = methodOpt;
32 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (32)
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)
2222conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.MethodOpt, delegateCreation.IsExtensionMethod); 4286if (delegateCreation.Argument == boundNode && (object)delegateCreation.MethodOpt != null) 4796var method = delegateCreation.MethodOpt;
FlowAnalysis\AbstractFlowPass.cs (2)
1617if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 1621else if (node.MethodOpt is { } method && methodGroup.ReceiverOpt is { } receiver && !ignoreReceiver(method))
FlowAnalysis\NullableWalker.cs (2)
9597if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 9678var method = node.MethodOpt;
Generated\BoundNodes.xml.Generated.cs (4)
7107if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || isExtensionMethod != this.IsExtensionMethod || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11897return node.Update(argument, node.MethodOpt, node.IsExtensionMethod, node.WasTargetTyped, type); 14323MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 16655new 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)
1338if (node.MethodOpt?.MethodKind == MethodKind.LocalFunction) 1345node.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)
859CheckMethodGroup((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)
240node.MethodOpt?.MethodKind == MethodKind.LocalFunction;
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
31var method = node.MethodOpt;
Lowering\MethodToClassRewriter.cs (1)
588MethodSymbol? 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);